Damans227 commented on code in PR #14073:
URL: https://github.com/apache/cloudstack/pull/14073#discussion_r4195666595


##########
server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java:
##########
@@ -5042,8 +5043,10 @@ private Long getDeviceId(UserVmVO vm, Long deviceId) {
         int maxDevices = getMaxDataVolumesSupported(vm) + 2; // add 2 to 
consider devices root volume and cdrom
         int maxDeviceId = maxDevices - 1;
         List<VolumeVO> vols = _volsDao.findByInstance(vm.getId());
+        boolean vmHasConfigDrive = vmInstanceDetailsDao.findDetail(vm.getId(), 
VmDetailConstants.CONFIG_DRIVE_LOCATION) != null;

Review Comment:
   makes sense, checking if the default network uses config drive for user data 
would work even before the first start



##########
server/src/main/java/com/cloud/network/element/ConfigDriveNetworkElement.java:
##########
@@ -142,7 +142,7 @@ public class ConfigDriveNetworkElement extends AdapterBase 
implements NetworkEle
     @Inject
     private HypervisorGuruManager _hvGuruMgr;
 
-    private final static Integer CONFIGDRIVEDISKSEQ = 4;
+    public static final Integer CONFIGDRIVEDISKSEQ = 4;

Review Comment:
   makes sense to focus on duplicate ids. a vm that already has a data disk on 
4 still clashes after upgrade though, since nothing moves that disk



-- 
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]

Reply via email to