[ https://issues.apache.org/jira/browse/CLOUDSTACK-6443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13986789#comment-13986789 ]
Min Chen commented on CLOUDSTACK-6443: -------------------------------------- DeployVMCmd invoked by admin user should return a UserVmResponse with FULL response view. > [Automation] Two Test Cases failed on "test_volumes.py" - AttributeError: > VirtualMachine instance has no attribute 'hostid' > --------------------------------------------------------------------------------------------------------------------------- > > Key: CLOUDSTACK-6443 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6443 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Automation, IAM > Affects Versions: 4.4.0 > Reporter: Chandan Purushothama > Assignee: Min Chen > Priority: Blocker > Fix For: 4.4.0 > > > Two Test Cases Failed: > test_07_resize_fail > test_08_resize_volume > *Error Message1*: > VirtualMachine instance has no attribute 'hostid' > -------------------- >> begin captured logging << -------------------- > test_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: > ::::::::::::STARTED : TC: test_07_resize_fail ::::::::::: > test_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: Fail > Resize Volume ID: b5521198-97f1-4f2c-afea-fcadf70d4249 > test_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: > sending GET request: resizeVolume {'diskofferingid': > u'9015ab2c-1d88-4e39-bcd8-d7fa22a1b2ca', 'id': 'invalid id'} > test_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: > Computed Signature by Marvin: bCeC5im5Fgxi23vWk4lBzKbQm7A= > requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection > (1): 10.223.240.161 > requests.packages.urllib3.connectionpool: DEBUG: "GET > /client/api?apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&response=json&command=resizeVolume&signature=bCeC5im5Fgxi23vWk4lBzKbQm7A%3D&diskofferingid=9015ab2c-1d88-4e39-bcd8-d7fa22a1b2ca&id=invalid+id > HTTP/1.1" 431 330 > test_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: > Request: > http://10.223.240.161:8080/client/api?apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&response=json&command=resizeVolume&signature=bCeC5im5Fgxi23vWk4lBzKbQm7A%3D&diskofferingid=9015ab2c-1d88-4e39-bcd8-d7fa22a1b2ca&id=invalid+id > Response: { "resizevolumeresponse" : > {"uuidList":[],"errorcode":431,"cserrorcode":9999,"errortext":"Unable to > execute API command resizevolume due to invalid value. Invalid parameter id > value=invalid id due to incorrect long value format, or entity does not exist > or due to incorrect parameter annotation for the field in api cmd class."} } > test_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: > sending GET request: resizeVolume {'diskofferingid': 'invalid id', 'id': > u'b5521198-97f1-4f2c-afea-fcadf70d4249'} > test_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: > Computed Signature by Marvin: DbNaHKDzesuJcTU1thWGQg88UPk= > requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection > (1): 10.223.240.161 > requests.packages.urllib3.connectionpool: DEBUG: "GET > /client/api?apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&response=json&command=resizeVolume&signature=DbNaHKDzesuJcTU1thWGQg88UPk%3D&diskofferingid=invalid+id&id=b5521198-97f1-4f2c-afea-fcadf70d4249 > HTTP/1.1" 431 342 > test_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: > Request: > http://10.223.240.161:8080/client/api?apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&response=json&command=resizeVolume&signature=DbNaHKDzesuJcTU1thWGQg88UPk%3D&diskofferingid=invalid+id&id=b5521198-97f1-4f2c-afea-fcadf70d4249 > Response: { "resizevolumeresponse" : > {"uuidList":[],"errorcode":431,"cserrorcode":9999,"errortext":"Unable to > execute API command resizevolume due to invalid value. Invalid parameter > diskofferingid value=invalid id due to incorrect long value format, or entity > does not exist or due to incorrect parameter annotation for the field in api > cmd class."} } > test_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: > sending GET request: listVolumes {'virtualmachineid': > u'bca5f583-139f-46e4-87d5-09fb5adac313', 'type': 'ROOT', 'listall': True} > test_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: > Computed Signature by Marvin: f1JO1y9Ye2m1qw3+QCZu9+B8zRo= > requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection > (1): 10.223.240.161 > requests.packages.urllib3.connectionpool: DEBUG: "GET > /client/api?apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&virtualmachineid=bca5f583-139f-46e4-87d5-09fb5adac313&command=listVolumes&signature=f1JO1y9Ye2m1qw3%2BQCZu9%2BB8zRo%3D&type=ROOT&response=json&listall=True > HTTP/1.1" 200 941 > test_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: > Request: > http://10.223.240.161:8080/client/api?apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&virtualmachineid=bca5f583-139f-46e4-87d5-09fb5adac313&command=listVolumes&signature=f1JO1y9Ye2m1qw3%2BQCZu9%2BB8zRo%3D&type=ROOT&response=json&listall=True > Response: { "listvolumesresponse" : { "count":1 ,"volume" : [ > {"id":"cdd07eae-d43d-4edf-bd7c-54bef224dec5","name":"ROOT-27","zoneid":"4fbc4494-e655-49b6-bda1-7ad8eb641732","zonename":"test0","type":"ROOT","deviceid":0,"virtualmachineid":"bca5f583-139f-46e4-87d5-09fb5adac313","vmname":"QA-bca5f583-139f-46e4-87d5-09fb5adac313","vmstate":"Running","size":21474836480,"created":"2014-04-16T15:57:47-0700","state":"Ready","account":"test-TestVolumes-test_01_create_volume-7K52C0","domainid":"fe2a30b2-c5a8-11e3-8f55-66bc12ed7ec3","domain":"ROOT","storagetype":"shared","hypervisor":"XenServer","storage":"primary0clus0","destroyed":false,"serviceofferingid":"6f622cbe-7fce-4f13-b280-1a2c7103d707","serviceofferingname":"Tiny > Instance","serviceofferingdisplaytext":"Tiny > Instance","isextractable":true,"tags":[],"displayvolume":true,"path":"57d4793f-afd1-4e9d-9fba-fa4d951f65a9","storageid":"ac0c4b04-6b72-38b1-a72f-c7fe7163d17a","quiescevm":false} > ] } } > test_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: > sending GET request: resizeVolume {'diskofferingid': > u'99abc953-02eb-4b1a-8131-58a520aa4f67', 'id': > u'cdd07eae-d43d-4edf-bd7c-54bef224dec5'} > test_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: > Computed Signature by Marvin: Y30cLJNNZcV+YJ3YAwUgwxq/s84= > requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection > (1): 10.223.240.161 > requests.packages.urllib3.connectionpool: DEBUG: "GET > /client/api?apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&response=json&command=resizeVolume&signature=Y30cLJNNZcV%2BYJ3YAwUgwxq%2Fs84%3D&diskofferingid=99abc953-02eb-4b1a-8131-58a520aa4f67&id=cdd07eae-d43d-4edf-bd7c-54bef224dec5 > HTTP/1.1" 200 77 > test_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: > Request: > http://10.223.240.161:8080/client/api?apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&response=json&command=resizeVolume&signature=Y30cLJNNZcV%2BYJ3YAwUgwxq%2Fs84%3D&diskofferingid=99abc953-02eb-4b1a-8131-58a520aa4f67&id=cdd07eae-d43d-4edf-bd7c-54bef224dec5 > Response: { "resizevolumeresponse" : > {"jobid":"b64ea14e-5062-45da-99e5-d91c8fe6a221"} } > test_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: > sending GET request: queryAsyncJobResult {'jobid': > u'b64ea14e-5062-45da-99e5-d91c8fe6a221'} > test_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: > Computed Signature by Marvin: eqJmJFc4/II56BONP6iuVZJIkIw= > requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection > (1): 10.223.240.161 > requests.packages.urllib3.connectionpool: DEBUG: "GET > /client/api?signature=eqJmJFc4%2FII56BONP6iuVZJIkIw%3D&apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&command=queryAsyncJobResult&response=json&jobid=b64ea14e-5062-45da-99e5-d91c8fe6a221 > HTTP/1.1" 200 348 > test_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: > Request: > http://10.223.240.161:8080/client/api?signature=eqJmJFc4%2FII56BONP6iuVZJIkIw%3D&apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&command=queryAsyncJobResult&response=json&jobid=b64ea14e-5062-45da-99e5-d91c8fe6a221 > Response: { "queryasyncjobresultresponse" : > {"accountid":"ee1fdc10-c5b4-11e3-8f55-66bc12ed7ec3","userid":"ee1fe85e-c5b4-11e3-8f55-66bc12ed7ec3","cmd":"org.apache.cloudstack.api.command.admin.volume.ResizeVolumeCmdByAdmin","jobstatus":0,"jobprocstatus":0,"jobresultcode":0,"created":"2014-04-16T16:00:01-0700","jobid":"b64ea14e-5062-45da-99e5-d91c8fe6a221"} > } > test_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: job: > b64ea14e-5062-45da-99e5-d91c8fe6a221 still processing,will timeout in 3600s > test_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: > sending GET request: queryAsyncJobResult {'jobid': > u'b64ea14e-5062-45da-99e5-d91c8fe6a221'} > test_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: > Computed Signature by Marvin: eqJmJFc4/II56BONP6iuVZJIkIw= > requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection > (1): 10.223.240.161 > requests.packages.urllib3.connectionpool: DEBUG: "GET > /client/api?signature=eqJmJFc4%2FII56BONP6iuVZJIkIw%3D&apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&command=queryAsyncJobResult&response=json&jobid=b64ea14e-5062-45da-99e5-d91c8fe6a221 > HTTP/1.1" 200 470 > test_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: > Request: > http://10.223.240.161:8080/client/api?signature=eqJmJFc4%2FII56BONP6iuVZJIkIw%3D&apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&command=queryAsyncJobResult&response=json&jobid=b64ea14e-5062-45da-99e5-d91c8fe6a221 > Response: { "queryasyncjobresultresponse" : > {"accountid":"ee1fdc10-c5b4-11e3-8f55-66bc12ed7ec3","userid":"ee1fe85e-c5b4-11e3-8f55-66bc12ed7ec3","cmd":"org.apache.cloudstack.api.command.admin.volume.ResizeVolumeCmdByAdmin","jobstatus":2,"jobprocstatus":0,"jobresultcode":530,"jobresulttype":"object","jobresult":{"errorcode":530,"errortext":"Can > only resize Data volumes via new disk > offering"},"created":"2014-04-16T16:00:01-0700","jobid":"b64ea14e-5062-45da-99e5-d91c8fe6a221"} > } > test_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: > Attaching volume (ID: b5521198-97f1-4f2c-afea-fcadf70d4249) to VM (ID: > bca5f583-139f-46e4-87d5-09fb5adac313) > test_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: > sending GET request: attachVolume {'virtualmachineid': > u'bca5f583-139f-46e4-87d5-09fb5adac313', 'id': > u'b5521198-97f1-4f2c-afea-fcadf70d4249'} > test_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: > Computed Signature by Marvin: f5e/GdN9winbDJPVI5xe0AV9pi8= > requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection > (1): 10.223.240.161 > requests.packages.urllib3.connectionpool: DEBUG: "GET > /client/api?apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&virtualmachineid=bca5f583-139f-46e4-87d5-09fb5adac313&id=b5521198-97f1-4f2c-afea-fcadf70d4249&command=attachVolume&signature=f5e%2FGdN9winbDJPVI5xe0AV9pi8%3D&response=json > HTTP/1.1" 200 77 > test_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: > Request: > http://10.223.240.161:8080/client/api?apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&virtualmachineid=bca5f583-139f-46e4-87d5-09fb5adac313&id=b5521198-97f1-4f2c-afea-fcadf70d4249&command=attachVolume&signature=f5e%2FGdN9winbDJPVI5xe0AV9pi8%3D&response=json > Response: { "attachvolumeresponse" : > {"jobid":"53b9e664-c5a4-4e89-86f1-91d518b4cca1"} } > test_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: > sending GET request: queryAsyncJobResult {'jobid': > u'53b9e664-c5a4-4e89-86f1-91d518b4cca1'} > test_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: > Computed Signature by Marvin: 7twrbzHD92PvC9M6+/IUsi6KHkI= > requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection > (1): 10.223.240.161 > requests.packages.urllib3.connectionpool: DEBUG: "GET > /client/api?signature=7twrbzHD92PvC9M6%2B%2FIUsi6KHkI%3D&apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&command=queryAsyncJobResult&response=json&jobid=53b9e664-c5a4-4e89-86f1-91d518b4cca1 > HTTP/1.1" 200 430 > test_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: > Request: > http://10.223.240.161:8080/client/api?signature=7twrbzHD92PvC9M6%2B%2FIUsi6KHkI%3D&apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&command=queryAsyncJobResult&response=json&jobid=53b9e664-c5a4-4e89-86f1-91d518b4cca1 > Response: { "queryasyncjobresultresponse" : > {"accountid":"ee1fdc10-c5b4-11e3-8f55-66bc12ed7ec3","userid":"ee1fe85e-c5b4-11e3-8f55-66bc12ed7ec3","cmd":"org.apache.cloudstack.api.command.admin.volume.AttachVolumeCmdByAdmin","jobstatus":0,"jobprocstatus":0,"jobresultcode":0,"jobinstancetype":"Volume","jobinstanceid":"b5521198-97f1-4f2c-afea-fcadf70d4249","created":"2014-04-16T16:00:06-0700","jobid":"53b9e664-c5a4-4e89-86f1-91d518b4cca1"} > } > test_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: job: > 53b9e664-c5a4-4e89-86f1-91d518b4cca1 still processing,will timeout in 3600s > test_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: > sending GET request: queryAsyncJobResult {'jobid': > u'53b9e664-c5a4-4e89-86f1-91d518b4cca1'} > test_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: > Computed Signature by Marvin: 7twrbzHD92PvC9M6+/IUsi6KHkI= > requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection > (1): 10.223.240.161 > requests.packages.urllib3.connectionpool: DEBUG: "GET > /client/api?signature=7twrbzHD92PvC9M6%2B%2FIUsi6KHkI%3D&apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&command=queryAsyncJobResult&response=json&jobid=53b9e664-c5a4-4e89-86f1-91d518b4cca1 > HTTP/1.1" 200 1361 > test_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: > Request: > http://10.223.240.161:8080/client/api?signature=7twrbzHD92PvC9M6%2B%2FIUsi6KHkI%3D&apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&command=queryAsyncJobResult&response=json&jobid=53b9e664-c5a4-4e89-86f1-91d518b4cca1 > Response: { "queryasyncjobresultresponse" : > {"accountid":"ee1fdc10-c5b4-11e3-8f55-66bc12ed7ec3","userid":"ee1fe85e-c5b4-11e3-8f55-66bc12ed7ec3","cmd":"org.apache.cloudstack.api.command.admin.volume.AttachVolumeCmdByAdmin","jobstatus":1,"jobprocstatus":0,"jobresultcode":0,"jobresulttype":"object","jobresult":{"volume":{"id":"b5521198-97f1-4f2c-afea-fcadf70d4249","name":"TestDiskServ","zoneid":"4fbc4494-e655-49b6-bda1-7ad8eb641732","zonename":"test0","type":"DATADISK","deviceid":1,"virtualmachineid":"bca5f583-139f-46e4-87d5-09fb5adac313","vmname":"QA-bca5f583-139f-46e4-87d5-09fb5adac313","vmstate":"Running","size":1073741824,"created":"2014-04-16T15:58:03-0700","state":"Ready","account":"test-TestVolumes-test_01_create_volume-7K52C0","domainid":"fe2a30b2-c5a8-11e3-8f55-66bc12ed7ec3","domain":"ROOT","storagetype":"shared","hypervisor":"XenServer","diskofferingid":"99abc953-02eb-4b1a-8131-58a520aa4f67","diskofferingname":"Small","diskofferingdisplaytext":"Small","storage":"primary0clus0","attached":"2014-04-16T16:00:08-0700","destroyed":false,"isextractable":true,"tags":[],"displayvolume":true,"path":"a060d7ba-6144-44fd-a45b-e7777e8e874a","storageid":"ac0c4b04-6b72-38b1-a72f-c7fe7163d17a","quiescevm":false,"jobid":"53b9e664-c5a4-4e89-86f1-91d518b4cca1","jobstatus":0}},"created":"2014-04-16T16:00:06-0700","jobid":"53b9e664-c5a4-4e89-86f1-91d518b4cca1"} > } > test_07_resize_fail (integration.smoke.test_volumes.TestVolumes): CRITICAL: > EXCEPTION: test_07_resize_fail: Traceback (most recent call last): > File "/usr/local/lib/python2.7/unittest/case.py", line 327, in run > testMethod() > File "/root/asf/cloudstack/test/integration/smoke/test_volumes.py", line > 636, in test_07_resize_fail > hosts = Host.list(self.apiClient, id=self.virtual_machine.hostid) > AttributeError: VirtualMachine instance has no attribute 'hostid' > --------------------- >> end captured logging << --------------------- > Stacktrace > File "/usr/local/lib/python2.7/unittest/case.py", line 327, in run > testMethod() > File "/root/asf/cloudstack/test/integration/smoke/test_volumes.py", line > 636, in test_07_resize_fail > hosts = Host.list(self.apiClient, id=self.virtual_machine.hostid) > 'VirtualMachine instance has no attribute \'hostid\'\n-------------------- >> > begin captured logging << --------------------\ntest_07_resize_fail > (integration.smoke.test_volumes.TestVolumes): DEBUG: ::::::::::::STARTED : > TC: test_07_resize_fail :::::::::::\ntest_07_resize_fail > (integration.smoke.test_volumes.TestVolumes): DEBUG: Fail Resize Volume ID: > b5521198-97f1-4f2c-afea-fcadf70d4249\ntest_07_resize_fail > (integration.smoke.test_volumes.TestVolumes): DEBUG: sending GET request: > resizeVolume {\'diskofferingid\': u\'9015ab2c-1d88-4e39-bcd8-d7fa22a1b2ca\', > \'id\': \'invalid id\'}\ntest_07_resize_fail > (integration.smoke.test_volumes.TestVolumes): DEBUG: Computed Signature by > Marvin: > bCeC5im5Fgxi23vWk4lBzKbQm7A=\nrequests.packages.urllib3.connectionpool: INFO: > Starting new HTTP connection (1): > 10.223.240.161\nrequests.packages.urllib3.connectionpool: DEBUG: "GET > /client/api?apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&response=json&command=resizeVolume&signature=bCeC5im5Fgxi23vWk4lBzKbQm7A%3D&diskofferingid=9015ab2c-1d88-4e39-bcd8-d7fa22a1b2ca&id=invalid+id > HTTP/1.1" 431 330\ntest_07_resize_fail > (integration.smoke.test_volumes.TestVolumes): DEBUG: Request: > http://10.223.240.161:8080/client/api?apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&response=json&command=resizeVolume&signature=bCeC5im5Fgxi23vWk4lBzKbQm7A%3D&diskofferingid=9015ab2c-1d88-4e39-bcd8-d7fa22a1b2ca&id=invalid+id > Response: { "resizevolumeresponse" : > {"uuidList":[],"errorcode":431,"cserrorcode":9999,"errortext":"Unable to > execute API command resizevolume due to invalid value. Invalid parameter id > value=invalid id due to incorrect long value format, or entity does not exist > or due to incorrect parameter annotation for the field in api cmd class."} > }\ntest_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: > sending GET request: resizeVolume {\'diskofferingid\': \'invalid id\', > \'id\': u\'b5521198-97f1-4f2c-afea-fcadf70d4249\'}\ntest_07_resize_fail > (integration.smoke.test_volumes.TestVolumes): DEBUG: Computed Signature by > Marvin: > DbNaHKDzesuJcTU1thWGQg88UPk=\nrequests.packages.urllib3.connectionpool: INFO: > Starting new HTTP connection (1): > 10.223.240.161\nrequests.packages.urllib3.connectionpool: DEBUG: "GET > /client/api?apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&response=json&command=resizeVolume&signature=DbNaHKDzesuJcTU1thWGQg88UPk%3D&diskofferingid=invalid+id&id=b5521198-97f1-4f2c-afea-fcadf70d4249 > HTTP/1.1" 431 342\ntest_07_resize_fail > (integration.smoke.test_volumes.TestVolumes): DEBUG: Request: > http://10.223.240.161:8080/client/api?apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&response=json&command=resizeVolume&signature=DbNaHKDzesuJcTU1thWGQg88UPk%3D&diskofferingid=invalid+id&id=b5521198-97f1-4f2c-afea-fcadf70d4249 > Response: { "resizevolumeresponse" : > {"uuidList":[],"errorcode":431,"cserrorcode":9999,"errortext":"Unable to > execute API command resizevolume due to invalid value. Invalid parameter > diskofferingid value=invalid id due to incorrect long value format, or entity > does not exist or due to incorrect parameter annotation for the field in api > cmd class."} }\ntest_07_resize_fail > (integration.smoke.test_volumes.TestVolumes): DEBUG: sending GET request: > listVolumes {\'virtualmachineid\': u\'bca5f583-139f-46e4-87d5-09fb5adac313\', > \'type\': \'ROOT\', \'listall\': True}\ntest_07_resize_fail > (integration.smoke.test_volumes.TestVolumes): DEBUG: Computed Signature by > Marvin: > f1JO1y9Ye2m1qw3+QCZu9+B8zRo=\nrequests.packages.urllib3.connectionpool: INFO: > Starting new HTTP connection (1): > 10.223.240.161\nrequests.packages.urllib3.connectionpool: DEBUG: "GET > /client/api?apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&virtualmachineid=bca5f583-139f-46e4-87d5-09fb5adac313&command=listVolumes&signature=f1JO1y9Ye2m1qw3%2BQCZu9%2BB8zRo%3D&type=ROOT&response=json&listall=True > HTTP/1.1" 200 941\ntest_07_resize_fail > (integration.smoke.test_volumes.TestVolumes): DEBUG: Request: > http://10.223.240.161:8080/client/api?apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&virtualmachineid=bca5f583-139f-46e4-87d5-09fb5adac313&command=listVolumes&signature=f1JO1y9Ye2m1qw3%2BQCZu9%2BB8zRo%3D&type=ROOT&response=json&listall=True > Response: { "listvolumesresponse" : { "count":1 ,"volume" : [ > {"id":"cdd07eae-d43d-4edf-bd7c-54bef224dec5","name":"ROOT-27","zoneid":"4fbc4494-e655-49b6-bda1-7ad8eb641732","zonename":"test0","type":"ROOT","deviceid":0,"virtualmachineid":"bca5f583-139f-46e4-87d5-09fb5adac313","vmname":"QA-bca5f583-139f-46e4-87d5-09fb5adac313","vmstate":"Running","size":21474836480,"created":"2014-04-16T15:57:47-0700","state":"Ready","account":"test-TestVolumes-test_01_create_volume-7K52C0","domainid":"fe2a30b2-c5a8-11e3-8f55-66bc12ed7ec3","domain":"ROOT","storagetype":"shared","hypervisor":"XenServer","storage":"primary0clus0","destroyed":false,"serviceofferingid":"6f622cbe-7fce-4f13-b280-1a2c7103d707","serviceofferingname":"Tiny > Instance","serviceofferingdisplaytext":"Tiny > Instance","isextractable":true,"tags":[],"displayvolume":true,"path":"57d4793f-afd1-4e9d-9fba-fa4d951f65a9","storageid":"ac0c4b04-6b72-38b1-a72f-c7fe7163d17a","quiescevm":false} > ] } }\ntest_07_resize_fail (integration.smoke.test_volumes.TestVolumes): > DEBUG: sending GET request: resizeVolume {\'diskofferingid\': > u\'99abc953-02eb-4b1a-8131-58a520aa4f67\', \'id\': > u\'cdd07eae-d43d-4edf-bd7c-54bef224dec5\'}\ntest_07_resize_fail > (integration.smoke.test_volumes.TestVolumes): DEBUG: Computed Signature by > Marvin: > Y30cLJNNZcV+YJ3YAwUgwxq/s84=\nrequests.packages.urllib3.connectionpool: INFO: > Starting new HTTP connection (1): > 10.223.240.161\nrequests.packages.urllib3.connectionpool: DEBUG: "GET > /client/api?apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&response=json&command=resizeVolume&signature=Y30cLJNNZcV%2BYJ3YAwUgwxq%2Fs84%3D&diskofferingid=99abc953-02eb-4b1a-8131-58a520aa4f67&id=cdd07eae-d43d-4edf-bd7c-54bef224dec5 > HTTP/1.1" 200 77\ntest_07_resize_fail > (integration.smoke.test_volumes.TestVolumes): DEBUG: Request: > http://10.223.240.161:8080/client/api?apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&response=json&command=resizeVolume&signature=Y30cLJNNZcV%2BYJ3YAwUgwxq%2Fs84%3D&diskofferingid=99abc953-02eb-4b1a-8131-58a520aa4f67&id=cdd07eae-d43d-4edf-bd7c-54bef224dec5 > Response: { "resizevolumeresponse" : > {"jobid":"b64ea14e-5062-45da-99e5-d91c8fe6a221"} }\ntest_07_resize_fail > (integration.smoke.test_volumes.TestVolumes): DEBUG: sending GET request: > queryAsyncJobResult {\'jobid\': > u\'b64ea14e-5062-45da-99e5-d91c8fe6a221\'}\ntest_07_resize_fail > (integration.smoke.test_volumes.TestVolumes): DEBUG: Computed Signature by > Marvin: > eqJmJFc4/II56BONP6iuVZJIkIw=\nrequests.packages.urllib3.connectionpool: INFO: > Starting new HTTP connection (1): > 10.223.240.161\nrequests.packages.urllib3.connectionpool: DEBUG: "GET > /client/api?signature=eqJmJFc4%2FII56BONP6iuVZJIkIw%3D&apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&command=queryAsyncJobResult&response=json&jobid=b64ea14e-5062-45da-99e5-d91c8fe6a221 > HTTP/1.1" 200 348\ntest_07_resize_fail > (integration.smoke.test_volumes.TestVolumes): DEBUG: Request: > http://10.223.240.161:8080/client/api?signature=eqJmJFc4%2FII56BONP6iuVZJIkIw%3D&apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&command=queryAsyncJobResult&response=json&jobid=b64ea14e-5062-45da-99e5-d91c8fe6a221 > Response: { "queryasyncjobresultresponse" : > {"accountid":"ee1fdc10-c5b4-11e3-8f55-66bc12ed7ec3","userid":"ee1fe85e-c5b4-11e3-8f55-66bc12ed7ec3","cmd":"org.apache.cloudstack.api.command.admin.volume.ResizeVolumeCmdByAdmin","jobstatus":0,"jobprocstatus":0,"jobresultcode":0,"created":"2014-04-16T16:00:01-0700","jobid":"b64ea14e-5062-45da-99e5-d91c8fe6a221"} > }\ntest_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: > job: b64ea14e-5062-45da-99e5-d91c8fe6a221 still processing,will timeout in > 3600s\ntest_07_resize_fail (integration.smoke.test_volumes.TestVolumes): > DEBUG: sending GET request: queryAsyncJobResult {\'jobid\': > u\'b64ea14e-5062-45da-99e5-d91c8fe6a221\'}\ntest_07_resize_fail > (integration.smoke.test_volumes.TestVolumes): DEBUG: Computed Signature by > Marvin: > eqJmJFc4/II56BONP6iuVZJIkIw=\nrequests.packages.urllib3.connectionpool: INFO: > Starting new HTTP connection (1): > 10.223.240.161\nrequests.packages.urllib3.connectionpool: DEBUG: "GET > /client/api?signature=eqJmJFc4%2FII56BONP6iuVZJIkIw%3D&apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&command=queryAsyncJobResult&response=json&jobid=b64ea14e-5062-45da-99e5-d91c8fe6a221 > HTTP/1.1" 200 470\ntest_07_resize_fail > (integration.smoke.test_volumes.TestVolumes): DEBUG: Request: > http://10.223.240.161:8080/client/api?signature=eqJmJFc4%2FII56BONP6iuVZJIkIw%3D&apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&command=queryAsyncJobResult&response=json&jobid=b64ea14e-5062-45da-99e5-d91c8fe6a221 > Response: { "queryasyncjobresultresponse" : > {"accountid":"ee1fdc10-c5b4-11e3-8f55-66bc12ed7ec3","userid":"ee1fe85e-c5b4-11e3-8f55-66bc12ed7ec3","cmd":"org.apache.cloudstack.api.command.admin.volume.ResizeVolumeCmdByAdmin","jobstatus":2,"jobprocstatus":0,"jobresultcode":530,"jobresulttype":"object","jobresult":{"errorcode":530,"errortext":"Can > only resize Data volumes via new disk > offering"},"created":"2014-04-16T16:00:01-0700","jobid":"b64ea14e-5062-45da-99e5-d91c8fe6a221"} > }\ntest_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: > Attaching volume (ID: b5521198-97f1-4f2c-afea-fcadf70d4249) to VM (ID: > bca5f583-139f-46e4-87d5-09fb5adac313)\ntest_07_resize_fail > (integration.smoke.test_volumes.TestVolumes): DEBUG: sending GET request: > attachVolume {\'virtualmachineid\': > u\'bca5f583-139f-46e4-87d5-09fb5adac313\', \'id\': > u\'b5521198-97f1-4f2c-afea-fcadf70d4249\'}\ntest_07_resize_fail > (integration.smoke.test_volumes.TestVolumes): DEBUG: Computed Signature by > Marvin: > f5e/GdN9winbDJPVI5xe0AV9pi8=\nrequests.packages.urllib3.connectionpool: INFO: > Starting new HTTP connection (1): > 10.223.240.161\nrequests.packages.urllib3.connectionpool: DEBUG: "GET > /client/api?apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&virtualmachineid=bca5f583-139f-46e4-87d5-09fb5adac313&id=b5521198-97f1-4f2c-afea-fcadf70d4249&command=attachVolume&signature=f5e%2FGdN9winbDJPVI5xe0AV9pi8%3D&response=json > HTTP/1.1" 200 77\ntest_07_resize_fail > (integration.smoke.test_volumes.TestVolumes): DEBUG: Request: > http://10.223.240.161:8080/client/api?apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&virtualmachineid=bca5f583-139f-46e4-87d5-09fb5adac313&id=b5521198-97f1-4f2c-afea-fcadf70d4249&command=attachVolume&signature=f5e%2FGdN9winbDJPVI5xe0AV9pi8%3D&response=json > Response: { "attachvolumeresponse" : > {"jobid":"53b9e664-c5a4-4e89-86f1-91d518b4cca1"} }\ntest_07_resize_fail > (integration.smoke.test_volumes.TestVolumes): DEBUG: sending GET request: > queryAsyncJobResult {\'jobid\': > u\'53b9e664-c5a4-4e89-86f1-91d518b4cca1\'}\ntest_07_resize_fail > (integration.smoke.test_volumes.TestVolumes): DEBUG: Computed Signature by > Marvin: > 7twrbzHD92PvC9M6+/IUsi6KHkI=\nrequests.packages.urllib3.connectionpool: INFO: > Starting new HTTP connection (1): > 10.223.240.161\nrequests.packages.urllib3.connectionpool: DEBUG: "GET > /client/api?signature=7twrbzHD92PvC9M6%2B%2FIUsi6KHkI%3D&apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&command=queryAsyncJobResult&response=json&jobid=53b9e664-c5a4-4e89-86f1-91d518b4cca1 > HTTP/1.1" 200 430\ntest_07_resize_fail > (integration.smoke.test_volumes.TestVolumes): DEBUG: Request: > http://10.223.240.161:8080/client/api?signature=7twrbzHD92PvC9M6%2B%2FIUsi6KHkI%3D&apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&command=queryAsyncJobResult&response=json&jobid=53b9e664-c5a4-4e89-86f1-91d518b4cca1 > Response: { "queryasyncjobresultresponse" : > {"accountid":"ee1fdc10-c5b4-11e3-8f55-66bc12ed7ec3","userid":"ee1fe85e-c5b4-11e3-8f55-66bc12ed7ec3","cmd":"org.apache.cloudstack.api.command.admin.volume.AttachVolumeCmdByAdmin","jobstatus":0,"jobprocstatus":0,"jobresultcode":0,"jobinstancetype":"Volume","jobinstanceid":"b5521198-97f1-4f2c-afea-fcadf70d4249","created":"2014-04-16T16:00:06-0700","jobid":"53b9e664-c5a4-4e89-86f1-91d518b4cca1"} > }\ntest_07_resize_fail (integration.smoke.test_volumes.TestVolumes): DEBUG: > job: 53b9e664-c5a4-4e89-86f1-91d518b4cca1 still processing,will timeout in > 3600s\ntest_07_resize_fail (integration.smoke.test_volumes.TestVolumes): > DEBUG: sending GET request: queryAsyncJobResult {\'jobid\': > u\'53b9e664-c5a4-4e89-86f1-91d518b4cca1\'}\ntest_07_resize_fail > (integration.smoke.test_volumes.TestVolumes): DEBUG: Computed Signature by > Marvin: > 7twrbzHD92PvC9M6+/IUsi6KHkI=\nrequests.packages.urllib3.connectionpool: INFO: > Starting new HTTP connection (1): > 10.223.240.161\nrequests.packages.urllib3.connectionpool: DEBUG: "GET > /client/api?signature=7twrbzHD92PvC9M6%2B%2FIUsi6KHkI%3D&apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&command=queryAsyncJobResult&response=json&jobid=53b9e664-c5a4-4e89-86f1-91d518b4cca1 > HTTP/1.1" 200 1361\ntest_07_resize_fail > (integration.smoke.test_volumes.TestVolumes): DEBUG: Request: > http://10.223.240.161:8080/client/api?signature=7twrbzHD92PvC9M6%2B%2FIUsi6KHkI%3D&apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&command=queryAsyncJobResult&response=json&jobid=53b9e664-c5a4-4e89-86f1-91d518b4cca1 > Response: { "queryasyncjobresultresponse" : > {"accountid":"ee1fdc10-c5b4-11e3-8f55-66bc12ed7ec3","userid":"ee1fe85e-c5b4-11e3-8f55-66bc12ed7ec3","cmd":"org.apache.cloudstack.api.command.admin.volume.AttachVolumeCmdByAdmin","jobstatus":1,"jobprocstatus":0,"jobresultcode":0,"jobresulttype":"object","jobresult":{"volume":{"id":"b5521198-97f1-4f2c-afea-fcadf70d4249","name":"TestDiskServ","zoneid":"4fbc4494-e655-49b6-bda1-7ad8eb641732","zonename":"test0","type":"DATADISK","deviceid":1,"virtualmachineid":"bca5f583-139f-46e4-87d5-09fb5adac313","vmname":"QA-bca5f583-139f-46e4-87d5-09fb5adac313","vmstate":"Running","size":1073741824,"created":"2014-04-16T15:58:03-0700","state":"Ready","account":"test-TestVolumes-test_01_create_volume-7K52C0","domainid":"fe2a30b2-c5a8-11e3-8f55-66bc12ed7ec3","domain":"ROOT","storagetype":"shared","hypervisor":"XenServer","diskofferingid":"99abc953-02eb-4b1a-8131-58a520aa4f67","diskofferingname":"Small","diskofferingdisplaytext":"Small","storage":"primary0clus0","attached":"2014-04-16T16:00:08-0700","destroyed":false,"isextractable":true,"tags":[],"displayvolume":true,"path":"a060d7ba-6144-44fd-a45b-e7777e8e874a","storageid":"ac0c4b04-6b72-38b1-a72f-c7fe7163d17a","quiescevm":false,"jobid":"53b9e664-c5a4-4e89-86f1-91d518b4cca1","jobstatus":0}},"created":"2014-04-16T16:00:06-0700","jobid":"53b9e664-c5a4-4e89-86f1-91d518b4cca1"} > }\ntest_07_resize_fail (integration.smoke.test_volumes.TestVolumes): > CRITICAL: EXCEPTION: test_07_resize_fail: Traceback (most recent call > last):\n File "/usr/local/lib/python2.7/unittest/case.py", line 327, in > run\n testMethod()\n File > "/root/asf/cloudstack/test/integration/smoke/test_volumes.py", line 636, in > test_07_resize_fail\n hosts = Host.list(self.apiClient, > id=self.virtual_machine.hostid)\nAttributeError: VirtualMachine instance has > no attribute \'hostid\'\n\n--------------------- >> end captured logging << > ---------------------' > *Error Message 2* > VirtualMachine instance has no attribute 'hostid' > -------------------- >> begin captured logging << -------------------- > test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: > ::::::::::::STARTED : TC: test_08_resize_volume ::::::::::: > test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: > Attaching volume (ID: b5521198-97f1-4f2c-afea-fcadf70d4249) to VM (ID: > bca5f583-139f-46e4-87d5-09fb5adac313) > test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: > sending GET request: attachVolume {'virtualmachineid': > u'bca5f583-139f-46e4-87d5-09fb5adac313', 'id': > u'b5521198-97f1-4f2c-afea-fcadf70d4249'} > test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: > Computed Signature by Marvin: f5e/GdN9winbDJPVI5xe0AV9pi8= > requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection > (1): 10.223.240.161 > requests.packages.urllib3.connectionpool: DEBUG: "GET > /client/api?apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&virtualmachineid=bca5f583-139f-46e4-87d5-09fb5adac313&id=b5521198-97f1-4f2c-afea-fcadf70d4249&command=attachVolume&signature=f5e%2FGdN9winbDJPVI5xe0AV9pi8%3D&response=json > HTTP/1.1" 200 77 > test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: > Request: > http://10.223.240.161:8080/client/api?apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&virtualmachineid=bca5f583-139f-46e4-87d5-09fb5adac313&id=b5521198-97f1-4f2c-afea-fcadf70d4249&command=attachVolume&signature=f5e%2FGdN9winbDJPVI5xe0AV9pi8%3D&response=json > Response: { "attachvolumeresponse" : > {"jobid":"f86264b5-a60a-45e4-92a9-29de0389507b"} } > test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: > sending GET request: queryAsyncJobResult {'jobid': > u'f86264b5-a60a-45e4-92a9-29de0389507b'} > test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: > Computed Signature by Marvin: qs67evEFCdG9twTqHxfEi74n39Y= > requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection > (1): 10.223.240.161 > requests.packages.urllib3.connectionpool: DEBUG: "GET > /client/api?signature=qs67evEFCdG9twTqHxfEi74n39Y%3D&apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&command=queryAsyncJobResult&response=json&jobid=f86264b5-a60a-45e4-92a9-29de0389507b > HTTP/1.1" 200 430 > test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: > Request: > http://10.223.240.161:8080/client/api?signature=qs67evEFCdG9twTqHxfEi74n39Y%3D&apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&command=queryAsyncJobResult&response=json&jobid=f86264b5-a60a-45e4-92a9-29de0389507b > Response: { "queryasyncjobresultresponse" : > {"accountid":"ee1fdc10-c5b4-11e3-8f55-66bc12ed7ec3","userid":"ee1fe85e-c5b4-11e3-8f55-66bc12ed7ec3","cmd":"org.apache.cloudstack.api.command.admin.volume.AttachVolumeCmdByAdmin","jobstatus":0,"jobprocstatus":0,"jobresultcode":0,"jobinstancetype":"Volume","jobinstanceid":"b5521198-97f1-4f2c-afea-fcadf70d4249","created":"2014-04-16T16:00:17-0700","jobid":"f86264b5-a60a-45e4-92a9-29de0389507b"} > } > test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: > job: f86264b5-a60a-45e4-92a9-29de0389507b still processing,will timeout in > 3600s > test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: > sending GET request: queryAsyncJobResult {'jobid': > u'f86264b5-a60a-45e4-92a9-29de0389507b'} > test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: > Computed Signature by Marvin: qs67evEFCdG9twTqHxfEi74n39Y= > requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection > (1): 10.223.240.161 > requests.packages.urllib3.connectionpool: DEBUG: "GET > /client/api?signature=qs67evEFCdG9twTqHxfEi74n39Y%3D&apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&command=queryAsyncJobResult&response=json&jobid=f86264b5-a60a-45e4-92a9-29de0389507b > HTTP/1.1" 200 1361 > test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): DEBUG: > Request: > http://10.223.240.161:8080/client/api?signature=qs67evEFCdG9twTqHxfEi74n39Y%3D&apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&command=queryAsyncJobResult&response=json&jobid=f86264b5-a60a-45e4-92a9-29de0389507b > Response: { "queryasyncjobresultresponse" : > {"accountid":"ee1fdc10-c5b4-11e3-8f55-66bc12ed7ec3","userid":"ee1fe85e-c5b4-11e3-8f55-66bc12ed7ec3","cmd":"org.apache.cloudstack.api.command.admin.volume.AttachVolumeCmdByAdmin","jobstatus":1,"jobprocstatus":0,"jobresultcode":0,"jobresulttype":"object","jobresult":{"volume":{"id":"b5521198-97f1-4f2c-afea-fcadf70d4249","name":"TestDiskServ","zoneid":"4fbc4494-e655-49b6-bda1-7ad8eb641732","zonename":"test0","type":"DATADISK","deviceid":1,"virtualmachineid":"bca5f583-139f-46e4-87d5-09fb5adac313","vmname":"QA-bca5f583-139f-46e4-87d5-09fb5adac313","vmstate":"Running","size":1073741824,"created":"2014-04-16T15:58:03-0700","state":"Ready","account":"test-TestVolumes-test_01_create_volume-7K52C0","domainid":"fe2a30b2-c5a8-11e3-8f55-66bc12ed7ec3","domain":"ROOT","storagetype":"shared","hypervisor":"XenServer","diskofferingid":"99abc953-02eb-4b1a-8131-58a520aa4f67","diskofferingname":"Small","diskofferingdisplaytext":"Small","storage":"primary0clus0","attached":"2014-04-16T16:00:20-0700","destroyed":false,"isextractable":true,"tags":[],"displayvolume":true,"path":"a060d7ba-6144-44fd-a45b-e7777e8e874a","storageid":"ac0c4b04-6b72-38b1-a72f-c7fe7163d17a","quiescevm":false,"jobid":"f86264b5-a60a-45e4-92a9-29de0389507b","jobstatus":0}},"created":"2014-04-16T16:00:17-0700","jobid":"f86264b5-a60a-45e4-92a9-29de0389507b"} > } > test_08_resize_volume (integration.smoke.test_volumes.TestVolumes): CRITICAL: > EXCEPTION: test_08_resize_volume: Traceback (most recent call last): > File "/usr/local/lib/python2.7/unittest/case.py", line 327, in run > testMethod() > File "/root/asf/cloudstack/test/integration/smoke/test_volumes.py", line > 687, in test_08_resize_volume > hosts = Host.list(self.apiClient, id=self.virtual_machine.hostid) > AttributeError: VirtualMachine instance has no attribute 'hostid' > --------------------- >> end captured logging << --------------------- > Stacktrace > File "/usr/local/lib/python2.7/unittest/case.py", line 327, in run > testMethod() > File "/root/asf/cloudstack/test/integration/smoke/test_volumes.py", line > 687, in test_08_resize_volume > hosts = Host.list(self.apiClient, id=self.virtual_machine.hostid) > 'VirtualMachine instance has no attribute \'hostid\'\n-------------------- >> > begin captured logging << --------------------\ntest_08_resize_volume > (integration.smoke.test_volumes.TestVolumes): DEBUG: ::::::::::::STARTED : > TC: test_08_resize_volume :::::::::::\ntest_08_resize_volume > (integration.smoke.test_volumes.TestVolumes): DEBUG: Attaching volume (ID: > b5521198-97f1-4f2c-afea-fcadf70d4249) to VM (ID: > bca5f583-139f-46e4-87d5-09fb5adac313)\ntest_08_resize_volume > (integration.smoke.test_volumes.TestVolumes): DEBUG: sending GET request: > attachVolume {\'virtualmachineid\': > u\'bca5f583-139f-46e4-87d5-09fb5adac313\', \'id\': > u\'b5521198-97f1-4f2c-afea-fcadf70d4249\'}\ntest_08_resize_volume > (integration.smoke.test_volumes.TestVolumes): DEBUG: Computed Signature by > Marvin: > f5e/GdN9winbDJPVI5xe0AV9pi8=\nrequests.packages.urllib3.connectionpool: INFO: > Starting new HTTP connection (1): > 10.223.240.161\nrequests.packages.urllib3.connectionpool: DEBUG: "GET > /client/api?apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&virtualmachineid=bca5f583-139f-46e4-87d5-09fb5adac313&id=b5521198-97f1-4f2c-afea-fcadf70d4249&command=attachVolume&signature=f5e%2FGdN9winbDJPVI5xe0AV9pi8%3D&response=json > HTTP/1.1" 200 77\ntest_08_resize_volume > (integration.smoke.test_volumes.TestVolumes): DEBUG: Request: > http://10.223.240.161:8080/client/api?apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&virtualmachineid=bca5f583-139f-46e4-87d5-09fb5adac313&id=b5521198-97f1-4f2c-afea-fcadf70d4249&command=attachVolume&signature=f5e%2FGdN9winbDJPVI5xe0AV9pi8%3D&response=json > Response: { "attachvolumeresponse" : > {"jobid":"f86264b5-a60a-45e4-92a9-29de0389507b"} }\ntest_08_resize_volume > (integration.smoke.test_volumes.TestVolumes): DEBUG: sending GET request: > queryAsyncJobResult {\'jobid\': > u\'f86264b5-a60a-45e4-92a9-29de0389507b\'}\ntest_08_resize_volume > (integration.smoke.test_volumes.TestVolumes): DEBUG: Computed Signature by > Marvin: > qs67evEFCdG9twTqHxfEi74n39Y=\nrequests.packages.urllib3.connectionpool: INFO: > Starting new HTTP connection (1): > 10.223.240.161\nrequests.packages.urllib3.connectionpool: DEBUG: "GET > /client/api?signature=qs67evEFCdG9twTqHxfEi74n39Y%3D&apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&command=queryAsyncJobResult&response=json&jobid=f86264b5-a60a-45e4-92a9-29de0389507b > HTTP/1.1" 200 430\ntest_08_resize_volume > (integration.smoke.test_volumes.TestVolumes): DEBUG: Request: > http://10.223.240.161:8080/client/api?signature=qs67evEFCdG9twTqHxfEi74n39Y%3D&apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&command=queryAsyncJobResult&response=json&jobid=f86264b5-a60a-45e4-92a9-29de0389507b > Response: { "queryasyncjobresultresponse" : > {"accountid":"ee1fdc10-c5b4-11e3-8f55-66bc12ed7ec3","userid":"ee1fe85e-c5b4-11e3-8f55-66bc12ed7ec3","cmd":"org.apache.cloudstack.api.command.admin.volume.AttachVolumeCmdByAdmin","jobstatus":0,"jobprocstatus":0,"jobresultcode":0,"jobinstancetype":"Volume","jobinstanceid":"b5521198-97f1-4f2c-afea-fcadf70d4249","created":"2014-04-16T16:00:17-0700","jobid":"f86264b5-a60a-45e4-92a9-29de0389507b"} > }\ntest_08_resize_volume (integration.smoke.test_volumes.TestVolumes): > DEBUG: job: f86264b5-a60a-45e4-92a9-29de0389507b still processing,will > timeout in 3600s\ntest_08_resize_volume > (integration.smoke.test_volumes.TestVolumes): DEBUG: sending GET request: > queryAsyncJobResult {\'jobid\': > u\'f86264b5-a60a-45e4-92a9-29de0389507b\'}\ntest_08_resize_volume > (integration.smoke.test_volumes.TestVolumes): DEBUG: Computed Signature by > Marvin: > qs67evEFCdG9twTqHxfEi74n39Y=\nrequests.packages.urllib3.connectionpool: INFO: > Starting new HTTP connection (1): > 10.223.240.161\nrequests.packages.urllib3.connectionpool: DEBUG: "GET > /client/api?signature=qs67evEFCdG9twTqHxfEi74n39Y%3D&apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&command=queryAsyncJobResult&response=json&jobid=f86264b5-a60a-45e4-92a9-29de0389507b > HTTP/1.1" 200 1361\ntest_08_resize_volume > (integration.smoke.test_volumes.TestVolumes): DEBUG: Request: > http://10.223.240.161:8080/client/api?signature=qs67evEFCdG9twTqHxfEi74n39Y%3D&apiKey=MNQSBTYnkNvc4PCMgv7itBuPnuHpnUT_TEJRzzCOZXPL5bl9ihaz0P3TpkK3IW36icuUoFQkySLQkvQ9K6Dh0Q&command=queryAsyncJobResult&response=json&jobid=f86264b5-a60a-45e4-92a9-29de0389507b > Response: { "queryasyncjobresultresponse" : > {"accountid":"ee1fdc10-c5b4-11e3-8f55-66bc12ed7ec3","userid":"ee1fe85e-c5b4-11e3-8f55-66bc12ed7ec3","cmd":"org.apache.cloudstack.api.command.admin.volume.AttachVolumeCmdByAdmin","jobstatus":1,"jobprocstatus":0,"jobresultcode":0,"jobresulttype":"object","jobresult":{"volume":{"id":"b5521198-97f1-4f2c-afea-fcadf70d4249","name":"TestDiskServ","zoneid":"4fbc4494-e655-49b6-bda1-7ad8eb641732","zonename":"test0","type":"DATADISK","deviceid":1,"virtualmachineid":"bca5f583-139f-46e4-87d5-09fb5adac313","vmname":"QA-bca5f583-139f-46e4-87d5-09fb5adac313","vmstate":"Running","size":1073741824,"created":"2014-04-16T15:58:03-0700","state":"Ready","account":"test-TestVolumes-test_01_create_volume-7K52C0","domainid":"fe2a30b2-c5a8-11e3-8f55-66bc12ed7ec3","domain":"ROOT","storagetype":"shared","hypervisor":"XenServer","diskofferingid":"99abc953-02eb-4b1a-8131-58a520aa4f67","diskofferingname":"Small","diskofferingdisplaytext":"Small","storage":"primary0clus0","attached":"2014-04-16T16:00:20-0700","destroyed":false,"isextractable":true,"tags":[],"displayvolume":true,"path":"a060d7ba-6144-44fd-a45b-e7777e8e874a","storageid":"ac0c4b04-6b72-38b1-a72f-c7fe7163d17a","quiescevm":false,"jobid":"f86264b5-a60a-45e4-92a9-29de0389507b","jobstatus":0}},"created":"2014-04-16T16:00:17-0700","jobid":"f86264b5-a60a-45e4-92a9-29de0389507b"} > }\ntest_08_resize_volume (integration.smoke.test_volumes.TestVolumes): > CRITICAL: EXCEPTION: test_08_resize_volume: Traceback (most recent call > last):\n File "/usr/local/lib/python2.7/unittest/case.py", line 327, in > run\n testMethod()\n File > "/root/asf/cloudstack/test/integration/smoke/test_volumes.py", line 687, in > test_08_resize_volume\n hosts = Host.list(self.apiClient, > id=self.virtual_machine.hostid)\nAttributeError: VirtualMachine instance has > no attribute \'hostid\'\n\n--------------------- >> end captured logging << > ---------------------' -- This message was sent by Atlassian JIRA (v6.2#6252)