shwstppr opened a new pull request, #6729: URL: https://github.com/apache/cloudstack/pull/6729
### Description Fixes network update for IPv6 offering upgrade ### 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 - [ ] Minor #### Bug Severity - [x] BLOCKER - [ ] Critical - [ ] Major - [ ] Minor - [ ] Trivial ### Screenshots (if appropriate): ### How Has This Been Tested? <!-- Please describe in detail how you tested your changes. --> <!-- Include details of your testing environment, and the tests you ran to --> <!-- see how your change affects other areas of the code, etc. --> <!-- Please read the [CONTRIBUTING](https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md) document --> Before fix: ``` # cat /marvin//MarvinLogs/test_network_ipv6_W9ENW4/results.txt Test to verify IPv6 network ... === TestName: test_01_verify_ipv6_network | Status : SUCCESS === ok Test to verify redundant IPv6 network ... === TestName: test_02_verify_ipv6_network_redundant | Status : SUCCESS === ok Test to verify IPv4 network upgraded to IPv6 network ... === TestName: test_03_verify_upgraded_ipv6_network | Status : EXCEPTION === ERROR Test to verify redundant IPv4 network upgraded to redundant IPv6 network ... === TestName: test_04_verify_upgraded_ipv6_network_redundant | Status : EXCEPTION === ERROR # cat /marvin//MarvinLogs/test_network_ipv6_W9ENW4/failed_plus_exceptions.txt 2022-09-12 09:02:13,776 - CRITICAL - EXCEPTION: test_03_verify_upgraded_ipv6_network: ['Traceback (most recent call last):\n', ' File "/usr/lib64/python3.6/unittest/case.py", line 60, in testPartExecutor\n yield\n', ' File "/usr/lib64/python3.6/unittest/case.py", line 622, in run\n testMethod()\n', ' File "/usr/local/lib/python3.6/site-packages/marvin/lib/decoratorGenerators.py", line 30, in test_wrapper\n return test(self, *args, **kwargs)\n', ' File "/marvin/tests/component/test_network_ipv6.py", line 888, in test_03_verify_upgraded_ipv6_network\n self.updateNetworkWithOffering()\n', ' File "/marvin/tests/component/test_network_ipv6.py", line 548, in updateNetworkWithOffering\n self.network.update(self.userapiclient, networkofferingid=self.network_offering_update.id)\n', ' File "/usr/local/lib/python3.6/site-packages/marvin/lib/base.py", line 3275, in update\n return (apiclient.updateNetwork(cmd))\n', ' File "/usr/local/lib/python3.6/site-packages/marvin /cloudstackAPI/cloudstackAPIClient.py", line 2187, in updateNetwork\n response = self.connection.marvinRequest(command, response_type=response, method=method)\n', ' File "/usr/local/lib/python3.6/site-packages/marvin/cloudstackConnection.py", line 381, in marvinRequest\n raise e\n', ' File "/usr/local/lib/python3.6/site-packages/marvin/cloudstackConnection.py", line 376, in marvinRequest\n raise self.__lastError\n', ' File "/usr/local/lib/python3.6/site-packages/marvin/cloudstackConnection.py", line 105, in __poll\n % async_response)\n', 'Exception: Job failed: {accountid : \'2668148f-79d0-465b-924f-6c8d136315cb\', userid : \'48c0288b-bfc8-4b0f-8ea9-471f598ec4fd\', cmd : \'org.apache.cloudstack.api.command.user.network.UpdateNetworkCmd\', jobstatus : 2, jobprocstatus : 0, jobresultcode : 530, jobresulttype : \'object\', jobresult : {errorcode : 530, errortext : "Failed to upgrade network offering to \'Test Network offering-NF816G\' as unable to allocate IPv6 network"} , jobinstancetype : \'Network\', created : \'2022-09-12T09:01:14+0000\', completed : \'2022-09-12T09:01:14+0000\', jobid : \'915100ce-d7f9-4455-9725-f52ac6dfd3f3\'}\n'] 2022-09-12 09:05:45,283 - CRITICAL - EXCEPTION: test_04_verify_upgraded_ipv6_network_redundant: ['Traceback (most recent call last):\n', ' File "/usr/lib64/python3.6/unittest/case.py", line 60, in testPartExecutor\n yield\n', ' File "/usr/lib64/python3.6/unittest/case.py", line 622, in run\n testMethod()\n', ' File "/usr/local/lib/python3.6/site-packages/marvin/lib/decoratorGenerators.py", line 30, in test_wrapper\n return test(self, *args, **kwargs)\n', ' File "/marvin/tests/component/test_network_ipv6.py", line 928, in test_04_verify_upgraded_ipv6_network_redundant\n self.updateNetworkWithOffering()\n', ' File "/marvin/tests/component/test_network_ipv6.py", line 548, in updateNetworkWithOffering\n self.network.update(self.userapiclient, networkofferingid=self.network_offering_update.id)\n', ' File "/usr/local/lib/python3.6/site-packages/marvin/lib/base.py", line 3275, in update\n return (apiclient.updateNetwork(cmd))\n', ' File "/usr/local/lib/python3.6/ site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py", line 2187, in updateNetwork\n response = self.connection.marvinRequest(command, response_type=response, method=method)\n', ' File "/usr/local/lib/python3.6/site-packages/marvin/cloudstackConnection.py", line 381, in marvinRequest\n raise e\n', ' File "/usr/local/lib/python3.6/site-packages/marvin/cloudstackConnection.py", line 376, in marvinRequest\n raise self.__lastError\n', ' File "/usr/local/lib/python3.6/site-packages/marvin/cloudstackConnection.py", line 105, in __poll\n % async_response)\n', 'Exception: Job failed: {accountid : \'2668148f-79d0-465b-924f-6c8d136315cb\', userid : \'48c0288b-bfc8-4b0f-8ea9-471f598ec4fd\', cmd : \'org.apache.cloudstack.api.command.user.network.UpdateNetworkCmd\', jobstatus : 2, jobprocstatus : 0, jobresultcode : 530, jobresulttype : \'object\', jobresult : {errorcode : 530, errortext : "Failed to upgrade network offering to \'Network off-RVR services-0HRGO3\' as unable to allocate IPv6 network"}, jobinstancetype : \'Network\', created : \'2022-09-12T09:04:38+0000\', completed : \'2022-09-12T09:04:38+0000\', jobid : \'3a37d6d5-b841-493d-97dd-105316ea7787\'}\n'] ``` -- 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]
