bhouse-nexthop commented on PR #14637: URL: https://github.com/apache/cloudstack/pull/14637#issuecomment-7220809504
Thanks @winterhazel, both look good to me, I'm keeping them. - **Reuse the ISO from the VM object:** every caller passes VMs that were just loaded from `UserVmDao` or just provisioned, and nothing changes their ISO between that and the attach, so the extra lookup wasn't needed. - **Detach the non-binaries ISOs from every CD-ROM:** good catch. With the binaries ISO in an extra slot and another ISO in the primary slot, the later `detachIso(vmId, null)` would hit "more than one ISO attached" and leave the binaries mounted. Detaching everything else first leaves exactly one ISO, so that call resolves it. The `KubernetesCluster*Test` tests pass on the new head, including the two new cases. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
