GabrielBrascher edited a comment on pull request #4978: URL: https://github.com/apache/cloudstack/pull/4978#issuecomment-899835219
For reference, the tests that failed [here](https://github.com/apache/cloudstack/pull/4978#issuecomment-899504564) are: 1. test_hostha_enable_ha_when_host_disabled 2. test_hostha_enable_ha_when_host_in_maintenance I am still checking why they are failing and if it is related to this specific PR. Logs: ``` testcase classname="tests.smoke.test_hostha_kvm.TestHAKVM" name="test_hostha_configure_default_driver" time="0.719" "tests.smoke.test_hostha_kvm.TestHAKVM" name="test_hostha_enable_ha_when_host_disabled" time="1.115" "marvin.cloudstackException.CloudstackAPIException" message="Execute cmd: updatehost failed, due to: errorCode: 530, errorText:Failed to update host:2,No next resource state found for current state = Maintenance event = Disable": File "/usr/lib64/python3.6/unittest/case.py", line 60, in testPartExecutor yield File "/usr/lib64/python3.6/unittest/case.py", line 622, in run testMethod() File "/marvin/tests/smoke/test_hostha_kvm.py", line 259, in test_hostha_enable_ha_when_host_disabled self.disableHost(self.host.id) File "/marvin/tests/smoke/test_hostha_kvm.py", line 609, in disableHost response = self.apiclient.updateHost(cmd) File "/usr/local/lib/python3.6/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py", line 915, in updateHost response = self.connection.marvinRequest(command, response_type=response, method=method) File "/usr/local/lib/python3.6/site-packages/marvin/cloudstackConnection.py", line 381, in marvinRequest raise e File "/usr/local/lib/python3.6/site-packages/marvin/cloudstackConnection.py", line 376, in marvinRequest raise self.__lastError File "/usr/local/lib/python3.6/site-packages/marvin/cloudstackConnection.py", line 310, in __parseAndGetResponse response_cls) File "/usr/local/lib/python3.6/site-packages/marvin/jsonHelper.py", line 155, in getResultObj raise cloudstackException.CloudstackAPIException(respname, errMsg) marvin.cloudstackException.CloudstackAPIException: Execute cmd: updatehost failed, due to: errorCode: 530, errorText:Failed to update host:2,No next resource state found for current state = Maintenance event = Disable === TestName: test_hostha_enable_ha_when_host_disabled | Status : EXCEPTION === ------------------------ "tests.smoke.test_hostha_kvm.TestHAKVM" name="test_hostha_enable_ha_when_host_disconected" time="14.522" "checkForState:: expected=Ineligible, actual={haenable : True, hastate : 'Ineligible', haprovider : 'kvmhaprovider'} ]]></system-out></testcase><testcase classname="tests.smoke.test_hostha_kvm.TestHAKVM" name="test_hostha_enable_ha_when_host_in_maintenance" time="303.923" message="Job failed: {accountid : '5e5de944-fe40-11eb-9d50-1e003b000428', userid : '5e5edcd4-fe40-11eb-9d50-1e003b000428', cmd : 'org.apache.cloudstack.api.command.admin.host.PrepareForMaintenanceCmd', jobstatus : 2, jobprocstatus : 0, jobresultcode : 530, jobresulttype : 'object', jobresult : {errorcode : 530, errortext : 'Failed to prepare host for maintenance due to: Host is already in state Maintenance. Cannot recall for maintenance until resolved.'}, jobinstancetype : 'Host', jobinstanceid : '23cb0154-392a-4af3-80e2-3bf0d24bc341', created : '2021-08-16T13:19:01+0000', completed : '2021-08-16T13:19:01+0000', jobid : '946cb1c8-37cb-4110-b5ea-529da895d05e': File "/usr/lib64/python3.6/unittest/case.py", line 60, in testPartExecutor yield File "/usr/lib64/python3.6/unittest/case.py", line 622, in run testMethod() File "/marvin/tests/smoke/test_hostha_kvm.py", line 285, in test_hostha_enable_ha_when_host_in_maintenance self.setHostToMaintanance(self.host.id) File "/marvin/tests/smoke/test_hostha_kvm.py", line 623, in setHostToMaintanance response = self.apiclient.prepareHostForMaintenance(cmd) File "/usr/local/lib/python3.6/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py", line 2435, in prepareHostForMaintenance response = self.connection.marvinRequest(command, response_type=response, method=method) File "/usr/local/lib/python3.6/site-packages/marvin/cloudstackConnection.py", line 381, in marvinRequest raise e File "/usr/local/lib/python3.6/site-packages/marvin/cloudstackConnection.py", line 376, in marvinRequest raise self.__lastError File "/usr/local/lib/python3.6/site-packages/marvin/cloudstackConnection.py", line 105, in __poll % async_response) Exception: Job failed: {accountid : '5e5de944-fe40-11eb-9d50-1e003b000428', userid : '5e5edcd4-fe40-11eb-9d50-1e003b000428', cmd : 'org.apache.cloudstack.api.command.admin.host.PrepareForMaintenanceCmd', jobstatus : 2, jobprocstatus : 0, jobresultcode : 530, jobresulttype : 'object', jobresult : {errorcode : 530, errortext : 'Failed to prepare host for maintenance due to: Host is already in state Maintenance. Cannot recall for maintenance until resolved.'}, jobinstancetype : 'Host', jobinstanceid : '23cb0154-392a-4af3-80e2-3bf0d24bc341', created : '2021-08-16T13:19:01+0000', completed : '2021-08-16T13:19:01+0000', jobid : '946cb1c8-37cb-4110-b5ea-529da895d05e'} === TestName: test_hostha_enable_ha_when_host_in_maintenance | Status : EXCEPTION === ``` -- 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]
