You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2020/08/14 07:34:37 UTC

[GitHub] [cloudstack] shwstppr commented on issue #4237: Test scale_vm_vm needs fixing for XenServer/XCP-ng

shwstppr commented on issue #4237:
URL: https://github.com/apache/cloudstack/issues/4237#issuecomment-673934722


   @rhtyd @DaanHoogland @Spaceman1984 
   Dynamic scaling for running VM is failing here,
   https://github.com/apache/cloudstack/blob/master/plugins/hypervisors/xenserver/src/main/java/com/cloud/hypervisor/xenserver/resource/CitrixResourceBase.java#L4606
   
   I checked with xcp-ng and tried to change compute offering for a Macchinina VM (memory 512mb to 768mb).
   `memory-static-min` and  `memory-static-max` for VM remains the same as initial offering value (512mb in my case) and hence the check fails. I checked with hypervisor itself.
   ```
   [12:50 xcp-ng-monkeybox ~]# xe vm-param-get param-name=memory-static-min uuid=4af04114-a83b-c8ba-1002-005bb11c4b35
   536870912
   [12:51 xcp-ng-monkeybox ~]# xe vm-param-get param-name=memory-static-max uuid=4af04114-a83b-c8ba-1002-005bb11c4b35
   536870912
   ```
   When I update these values to some appropriate range (512-1024 as I wanted to scale my VM's memory from 512 to 768mb) dynamic scaling works fine.
   ```
   [12:51 xcp-ng-monkeybox ~]# xe vm-shutdown uuid=4af04114-a83b-c8ba-1002-005bb11c4b35
   [12:51 xcp-ng-monkeybox ~]# xe vm-memory-static-range-set uuid=4af04114-a83b-c8ba-1002-005bb11c4b35 min=536870912 max=1073741824
   [12:51 xcp-ng-monkeybox ~]# xe vm-start uuid=4af04114-a83b-c8ba-1002-005bb11c4b35
   [12:51 xcp-ng-monkeybox ~]# xe vm-param-get param-name=memory-static-min uuid=4af04114-a83b-c8ba-1002-005bb11c4b35
   536870912
   [12:51 xcp-ng-monkeybox ~]# xe vm-param-get param-name=memory-static-max uuid=4af04114-a83b-c8ba-1002-005bb11c4b35
   1073741824
   ```
   So, should we be setting this memory-static range for the VM during deployment? I also checked with a CentOS7  VM so this doesn't seem to a problem with guest OS.


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org