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 2021/09/02 09:02:24 UTC

[GitHub] [cloudstack] shwstppr opened a new pull request #5401: marvin: fix exception logging

shwstppr opened a new pull request #5401:
URL: https://github.com/apache/cloudstack/pull/5401


   ### Description
   
   Fixes #5203
   
   ### Types of changes
   
   - [ ] Breaking change (fix or feature that would cause existing functionality to change)
   - [ ] New feature (non-breaking change which adds functionality)
   - [ ] Bug fix (non-breaking change which fixes an issue)
   - [ ] Enhancement (improves an existing feature and functionality)
   - [x] Cleanup (Code refactoring and cleanup, that may add test cases)
   
   ### Feature/Enhancement Scale or Bug Severity
   
   #### Feature/Enhancement Scale
   
   - [ ] Major
   - [ ] Minor
   
   #### Bug Severity
   
   - [ ] 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 -->
   Tested marvin logs with and without changes while making ACS throw exception for an async API
   ```
   [root@pr5201-t1929-kvm-centos7-marvin marvin]# nosetests --with-xunit --xunit-file=results.xml --with-marvin --marvin-config=./pr5201-t1929-kvm-centos7-advanced-cfg -s -a tags=advanced --hypervisor=KVM tests/smoke/test_deploy_vm_iso.py
   
   ==== Marvin Init Started ====
   
   === Marvin Parse Config Successful ===
   
   === Marvin Setting TestData Successful===
   
   ==== Log Folder Path: /marvin/MarvinLogs/Sep_02_2021_08_56_13_EU0IU4 All logs will be available here ====
   
   === Marvin Init Logging Successful===
   
   ==== Marvin Init Successful ====
   === TestName: test_deploy_vm_from_iso | Status : EXCEPTION ===
   
   === Final results are now copied to: /marvin//MarvinLogs/test_deploy_vm_iso_AWJQLB ===
   [root@pr5201-t1929-kvm-centos7-marvin marvin]# cat /marvin//MarvinLogs/test_deploy_vm_iso_AWJQLB/failed_plus_exceptions.txt 
   2021-09-02 08:56:26,082 - CRITICAL - EXCEPTION: test_deploy_vm_from_iso: ['NoneType: None\n']
   [root@pr5201-t1929-kvm-centos7-marvin marvin]# rm -f /usr/local/lib/python3.6/site-packages/marvin/cloudstackException.py 
   [root@pr5201-t1929-kvm-centos7-marvin marvin]# vi /usr/local/lib/python3.6/site-packages/marvin/cloudstackException.py
   [root@pr5201-t1929-kvm-centos7-marvin marvin]# python3 -m py_compile /usr/local/lib/python3.6/site-packages/marvin/cloudstackException.py
   [root@pr5201-t1929-kvm-centos7-marvin marvin]# nosetests --with-xunit --xunit-file=results.xml --with-marvin --marvin-config=./pr5201-t1929-kvm-centos7-advanced-cfg -s -a tags=advanced --hypervisor=KVM tests/smoke/test_deploy_vm_iso.py
   
   ==== Marvin Init Started ====
   
   === Marvin Parse Config Successful ===
   
   === Marvin Setting TestData Successful===
   
   ==== Log Folder Path: /marvin/MarvinLogs/Sep_02_2021_08_57_49_DQLC8J All logs will be available here ====
   
   === Marvin Init Logging Successful===
   
   ==== Marvin Init Successful ====
   === TestName: test_deploy_vm_from_iso | Status : EXCEPTION ===
   
   === Final results are now copied to: /marvin//MarvinLogs/test_deploy_vm_iso_1X0ZMN ===
   [root@pr5201-t1929-kvm-centos7-marvin marvin]# cat /marvin//MarvinLogs/test_deploy_vm_iso_1X0ZMN/failed_plus_exceptions.txt 
   2021-09-02 08:58:02,358 - CRITICAL - EXCEPTION: test_deploy_vm_from_iso: ['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 "/marvin/tests/smoke/test_deploy_vm_iso.py", line 150, in test_deploy_vm_from_iso\n    hypervisor=self.hypervisor\n', '  File "/usr/local/lib/python3.6/site-packages/marvin/lib/base.py", line 672, in create\n    virtual_machine = apiclient.deployVirtualMachine(cmd, method=method)\n', '  File "/usr/local/lib/python3.6/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py", line 2625, in deployVirtualMachine\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 : \'f91ae009-0bb0-11ec-85de-1e0050000361\', userid : \'f91c23af-0bb0-11ec-85de-1e0050000361\', cmd : \'org.apache.cloudstack.api.command.admin.vm.DeployVMCmdByAdmin\', jobstatus : 2, jobprocstatus : 0, jobresultcode : 530, jobresulttype : \'object\', jobresult : {errorcode : 533, errortext : \'Unable to create a deployment for VM instance {id: "33", name: "i-35-33-VM", uuid: "6a8e9431-8a31-4a4e-be22-b4a9f97283b9", type="User"}\'}, jobinstancetype : \'VirtualMachine\', jobinstanceid : \'6a8e9431-8a31-4a4e-be22-b4a9f97283b9\', created : \'2021-09-02T08:57:55+0000\', completed : \'2021-09-02T08:57:55+0000\', jobid : \'9fcc8cf6-6433-423d-8577-c8972b6235b9\'}\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: commits-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack] blueorangutan commented on pull request #5401: marvin: fix exception logging

Posted by GitBox <gi...@apache.org>.
blueorangutan commented on pull request #5401:
URL: https://github.com/apache/cloudstack/pull/5401#issuecomment-911424214


   @shwstppr a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.


-- 
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: commits-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack] shwstppr closed pull request #5401: marvin: fix exception logging

Posted by GitBox <gi...@apache.org>.
shwstppr closed pull request #5401:
URL: https://github.com/apache/cloudstack/pull/5401


   


-- 
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: commits-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack] blueorangutan commented on pull request #5401: marvin: fix exception logging

Posted by GitBox <gi...@apache.org>.
blueorangutan commented on pull request #5401:
URL: https://github.com/apache/cloudstack/pull/5401#issuecomment-912504504


   Packaging result: :heavy_check_mark: el7 :heavy_check_mark: el8 :heavy_check_mark: debian :heavy_check_mark: suse15. SL-JID 1127


-- 
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: commits-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack] blueorangutan removed a comment on pull request #5401: marvin: fix exception logging

Posted by GitBox <gi...@apache.org>.
blueorangutan removed a comment on pull request #5401:
URL: https://github.com/apache/cloudstack/pull/5401#issuecomment-911424214






-- 
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: commits-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack] shwstppr commented on pull request #5401: marvin: fix exception logging

Posted by GitBox <gi...@apache.org>.
shwstppr commented on pull request #5401:
URL: https://github.com/apache/cloudstack/pull/5401#issuecomment-911421683


   @blueorangutan package


-- 
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: commits-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack] blueorangutan commented on pull request #5401: marvin: fix exception logging

Posted by GitBox <gi...@apache.org>.
blueorangutan commented on pull request #5401:
URL: https://github.com/apache/cloudstack/pull/5401#issuecomment-911459773


   Packaging result: :heavy_check_mark: el7 :heavy_check_mark: el8 :heavy_check_mark: debian :heavy_check_mark: suse15. SL-JID 1098


-- 
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: commits-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack] nvazquez commented on pull request #5401: marvin: fix exception logging

Posted by GitBox <gi...@apache.org>.
nvazquez commented on pull request #5401:
URL: https://github.com/apache/cloudstack/pull/5401#issuecomment-914436576


   Ping for review @weizhouapache @rhtyd @davidjumani @sureshanaparti


-- 
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: commits-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack] blueorangutan commented on pull request #5401: marvin: fix exception logging

Posted by GitBox <gi...@apache.org>.
blueorangutan commented on pull request #5401:
URL: https://github.com/apache/cloudstack/pull/5401#issuecomment-912486477


   @shwstppr a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.


-- 
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: commits-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack] blueorangutan commented on pull request #5401: marvin: fix exception logging

Posted by GitBox <gi...@apache.org>.
blueorangutan commented on pull request #5401:
URL: https://github.com/apache/cloudstack/pull/5401#issuecomment-913971652


   @nvazquez a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests


-- 
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: commits-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack] rhtyd merged pull request #5401: marvin: fix exception logging

Posted by GitBox <gi...@apache.org>.
rhtyd merged pull request #5401:
URL: https://github.com/apache/cloudstack/pull/5401


   


-- 
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: commits-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack] shwstppr commented on pull request #5401: marvin: fix exception logging

Posted by GitBox <gi...@apache.org>.
shwstppr commented on pull request #5401:
URL: https://github.com/apache/cloudstack/pull/5401#issuecomment-912486257


   @blueorangutan package


-- 
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: commits-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack] shwstppr removed a comment on pull request #5401: marvin: fix exception logging

Posted by GitBox <gi...@apache.org>.
shwstppr removed a comment on pull request #5401:
URL: https://github.com/apache/cloudstack/pull/5401#issuecomment-911421683


   @blueorangutan package


-- 
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: commits-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack] blueorangutan commented on pull request #5401: marvin: fix exception logging

Posted by GitBox <gi...@apache.org>.
blueorangutan commented on pull request #5401:
URL: https://github.com/apache/cloudstack/pull/5401#issuecomment-914433626


   <b>Trillian test result (tid-1976)</b>
   Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
   Total time taken: 41511 seconds
   Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr5401-t1976-kvm-centos7.zip
   Smoke tests completed. 89 look OK, 0 have errors
   Only failed tests results shown below:
   
   
   Test | Result | Time (s) | Test File
   --- | --- | --- | ---
   


-- 
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: commits-unsubscribe@cloudstack.apache.org

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



[GitHub] [cloudstack] nvazquez commented on pull request #5401: marvin: fix exception logging

Posted by GitBox <gi...@apache.org>.
nvazquez commented on pull request #5401:
URL: https://github.com/apache/cloudstack/pull/5401#issuecomment-913970873


   @blueorangutan test


-- 
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: commits-unsubscribe@cloudstack.apache.org

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