[jira] [Updated] (CLOUDSTACK-6443) [Automation] Fix the script "test_volumes.py" - AttributeError: VirtualMachine instance has no attribute 'hostid'
[ https://issues.apache.org/jira/browse/CLOUDSTACK-6443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Abhinandan Prateek updated CLOUDSTACK-6443: --- Assignee: Srikanteswararao Talluri > [Automation] Fix the script "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 >Affects Versions: 4.4.0 >Reporter: Chandan Purushothama >Assignee: Srikanteswararao Talluri >Priority: Blocker > Fix For: 4.4.0 > > > Two Test Cases Effected due to the same bug. Need to be corrected at two > places: > est_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":,"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":,"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
[jira] [Updated] (CLOUDSTACK-6443) [Automation] Fix the script "test_volumes.py" - AttributeError: VirtualMachine instance has no attribute 'hostid'
[ https://issues.apache.org/jira/browse/CLOUDSTACK-6443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rayees Namathponnan updated CLOUDSTACK-6443: Issue Type: Test (was: Bug) > [Automation] Fix the script "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: Test > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Automation >Affects Versions: 4.4.0 >Reporter: Chandan Purushothama >Assignee: Srikanteswararao Talluri >Priority: Blocker > Fix For: 4.4.0 > > > Two Test Cases Effected due to the same bug. Need to be corrected at two > places: > est_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":,"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":,"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: D