Skip to content

CloudStack uses 1st cdrom of VM to mount ConfigDrive ISO #4808

@aleskxyz

Description

@aleskxyz
ISSUE TYPE
  • Bug Report
COMPONENT NAME
ConfigDrive
CLOUDSTACK VERSION
4.14.1
CONFIGURATION

N/A

OS / ENVIRONMENT

ESXi 6.5
CentOS7

SUMMARY

This bug report actually has 2 root cause that solving each of them can solve the bug.

  1. Based on design document of ConfigDrive feature, the iso should be mounted on 2nd cdrom drive of VM but CS don't even create it.

  2. When user tries to attach an ISO to the created VM, CloudStack tries to replace the ISOs but don't answer the esxi question about unmounting iso, so the operation fails.

STEPS TO REPRODUCE
Create a network with ConfigDrive as userdata
Create a VM attached to that network and start it
Attach an ISO to the VM
EXPECTED RESULTS
CloudStack creates the 2nd cdrom drive for VM and mount ConfigDrive ISO on it
or
CloudStack answer the question of ESXi about unmounting ConfigDrive ISO
ACTUAL RESULTS
CloudStack tries to unmount ConfigDrive iso but leave the esxi question unanswered so operation fails. 

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions