Pearl1594 opened a new pull request #4651: URL: https://github.com/apache/cloudstack/pull/4651
### Description This PR fixes the test failures noticed on VMware test runs where in change of service offering for a VM fails with the following error: ``` 2021-02-04 11:58:05,241 - CRITICAL - EXCEPTION: test_04_change_offering_small: ['Traceback (most recent call last):\n', ' File "/usr/lib64/python2.7/unittest/case.py", line 369, in run\n testMethod()\n', ' File "/marvin/tests/smoke/test_service_offerings.py", line 511, in test_04_change_offering_small\n self.apiclient.changeServiceForVirtualMachine(cmd)\n', ' File "/usr/lib/python2.7/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py", line 1086, in changeServiceForVirtualMachine\n response = self.connection.marvinRequest(command, response_type=response, method=method)\n', ' File "/usr/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line 379, in marvinRequest\n raise e\n', 'CloudstackAPIException: Execute cmd: changeserviceforvirtualmachine failed, due to: errorCode: 431, errorText:VM current state is : PowerOn. But VM should be in PowerOff state.\n'] ``` This seems to be a consequence of changing the enabling volumeresize with changeServiceForVirtualMachine introduced with : https://github.com/apache/cloudstack/pull/4491. The failure is seen in **test_service_offerings.py -> test_04_change_offering_small** and **test_vm_snapshots.py -> test_change_service_offering_for_vm_with_snapshots** ### Types of changes - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] New feature (non-breaking change which adds functionality) - [X] Bug fix (non-breaking change which fixes an issue) - [ ] Enhancement (improves an existing feature and functionality) - [ ] Cleanup (Code refactoring and cleanup, that may add test cases) ### Feature/Enhancement Scale or Bug Severity #### Feature/Enhancement Scale - [ ] Major - [X] Minor #### Bug Severity - [ ] BLOCKER - [ ] Critical - [ ] Major - [X] Minor - [ ] Trivial ---------------------------------------------------------------- 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: [email protected]
