Skip to content

ConfigDrive ISO is not detached from stopped on VMware #9453

@weizhouapache

Description

@weizhouapache

steps to reproduce the issue

  • create L2 network with ConfigDrive

  • create a vm on the network

ACS created a ConfigDrive ISO and attached to the VM on creation

2024-07-26T07:36:08,710 DEBUG [c.c.a.t.Request] (Work-Job-Executor-22:[ctx-901ad6df, job-185/job-186, ctx-f987f596]) (logid:0f2a1e0f) Seq 3-48413695994248261: Sending  { Cmd , MgmtId: 32989425697365, via: 3(s-2-VM), Ver: v1, Flags: 100011, [{"com.cloud.agent.api.HandleConfigDriveIsoCommand":{"isoFile":"configdrive/i-2-24-VM.iso","create":"true","destStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"NFS://10.0.32.4/acs/secondary/pr9346-t10845-vmware-80/pr9346-t10845-vmware-80-sec1","_role":"Image"}},"useHostCacheOnUnsupportedPool":"true","preferHostCache":"false","wait":"0","bypassHostMaintenance":"false"}}] }
2024-07-26T07:36:09,256 DEBUG [c.c.a.m.ClusteredAgentManagerImpl] (Work-Job-Executor-22:[ctx-901ad6df, job-185/job-186, ctx-f987f596]) (logid:0f2a1e0f) Details from executing class com.cloud.agent.api.HandleConfigDriveIsoCommand: Successfully saved config drive at secondary storage
  • stop the vm

ACS delete the ConfigDrive ISO

2024-07-26T08:06:35,901 DEBUG [c.c.a.t.Request] (Work-Job-Executor-23:[ctx-131bbbc2, job-187/job-188, ctx-d832a569]) (logid:451911a4) Seq 3-48413695994248293: Sending  { Cmd , MgmtId: 32989425697365, via: 3(s-2-VM), Ver: v1, Flags: 100011, [{"com.cloud.agent.api.HandleConfigDriveIsoCommand":{"isoFile":"configdrive/i-2-24-VM.iso","create":"false","destStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"NFS://10.0.32.4/acs/secondary/pr9346-t10845-vmware-80/pr9346-t10845-vmware-80-sec1","_role":"Image"}},"useHostCacheOnUnsupportedPool":"false","preferHostCache":"false","wait":"0","bypassHostMaintenance":"false"}}] }

However, on vCenter the VM still has the ISO attached, which will causes some problem e.g. during VM snapshotting

image

ISSUE TYPE
  • Bug Report
COMPONENT NAME

CLOUDSTACK VERSION
4.19
CONFIGURATION
OS / ENVIRONMENT

vmware 8.0b

SUMMARY
STEPS TO REPRODUCE

EXPECTED RESULTS

ACTUAL RESULTS

Metadata

Metadata

Labels

No labels
No labels

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