ccycv commented on issue #7325: URL: https://github.com/apache/cloudstack/issues/7325#issuecomment-1461573167
> @ccycv > > I see that the "rootdisksize": 0, for the service offering id "08f5f8fa-88d7-44c7-8ed5-7f06a6031888" > > Could you please create custom service offering with root disk say 20 gb and then try scaling of the vm > > Ideally, resizeVolume api will be triggered as part for the scale virtual machine job > > https://cloudstack.apache.org/api/apidocs-4.17/apis/resizeVolume.html > > My lab Logs > > ``` > > 2023-03-09 06:36:33,520 DEBUG [c.c.a.t.Request] (Work-Job-Executor-7:ctx-0d678fa0 job-193/job-194 ctx-1616eb76) (logid:38b3bcf8) Seq 2-236720455413664548: Sending { Cmd , MgmtId: 32989174039340, via: 2(ref-trl-4565-k-M7-kiran-chavala-kvm2), Ver: v1, Flags: 100011, [{"com.cloud.agent.api.storage.ResizeVolumeCommand":{"path":"ab2b387c-4d2d-4e12-9ec0-b64a9406eb74","pool":{"id":"1","uuid":"93ae92ce-5e8c-3460-b256-d0162835d9fe","host":"10.0.32.4","path":"/acs/primary/ref-trl-4565-k-M7-kiran-chavala/ref-trl-4565-k-M7-kiran-chavala-kvm-pri1","port":"2049","type":"NetworkFilesystem"},"currentSize":"8589934592","newSize":"(20.00 GB) 21474836480","shrinkOk":"false","vmInstance":"i-2-20-VM","managed":"false","wait":"0","bypassHostMaintenance":"false"}}] } > ``` > > Could you please send the management server logs ( /var/log/cloudstack/management/management-server.log ) Yes, it is with 0 > @ccycv > > I see that the "rootdisksize": 0, for the service offering id "08f5f8fa-88d7-44c7-8ed5-7f06a6031888" > > Could you please create custom service offering with root disk say 20 gb and then try scaling of the vm > > Ideally, resizeVolume api will be triggered as part for the scale virtual machine job > > https://cloudstack.apache.org/api/apidocs-4.17/apis/resizeVolume.html > > My lab Logs > > ``` > > 2023-03-09 06:36:33,520 DEBUG [c.c.a.t.Request] (Work-Job-Executor-7:ctx-0d678fa0 job-193/job-194 ctx-1616eb76) (logid:38b3bcf8) Seq 2-236720455413664548: Sending { Cmd , MgmtId: 32989174039340, via: 2(ref-trl-4565-k-M7-kiran-chavala-kvm2), Ver: v1, Flags: 100011, [{"com.cloud.agent.api.storage.ResizeVolumeCommand":{"path":"ab2b387c-4d2d-4e12-9ec0-b64a9406eb74","pool":{"id":"1","uuid":"93ae92ce-5e8c-3460-b256-d0162835d9fe","host":"10.0.32.4","path":"/acs/primary/ref-trl-4565-k-M7-kiran-chavala/ref-trl-4565-k-M7-kiran-chavala-kvm-pri1","port":"2049","type":"NetworkFilesystem"},"currentSize":"8589934592","newSize":"(20.00 GB) 21474836480","shrinkOk":"false","vmInstance":"i-2-20-VM","managed":"false","wait":"0","bypassHostMaintenance":"false"}}] } > ``` > > Could you please send the management server logs ( /var/log/cloudstack/management/management-server.log ) Yes, it is with "0" because I want to set any rootdisksize at deploy, this is why "Disk offering strictness" is disabled. In this way I can scale the VM as I wish and resize the volume, but the volume not with scale... And to answer to your question, this is what happens when I create a disk offering with 20 and use on this vm for scale. ``` "errorcode": 431, "errortext": "You cannot pass in a custom disk size to a non-custom disk offering." ``` -- 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]
