cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-7467) TestVolumes.test_07_resize_fail failing
Date Tue, 02 Sep 2014 19:11:21 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-7467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14118561#comment-14118561
] 

ASF subversion and git services commented on CLOUDSTACK-7467:
-------------------------------------------------------------

Commit 24dd6cee78ec779498b532d5dbb5015490642129 in cloudstack's branch refs/heads/master from
[~alexbre]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=24dd6ce ]

CLOUDSTACK-7467 Fix TestVolumes.test_07_resize_fail

Previously if you had a volume using a non customisable disk offering, and
attempted to resize it passing in the same disk offering id, the command would
be accepted, but it would actually be resized to its current size (i.e. the
provided size parameter was ignored). This is what the test used to check.

Commit de6a3112b6b80952d1598acaa112ac50a3ef9d32 modified the logic to check if
the provided diskofferingid was the same as the current one, and if so treat it
as if it hadn't been provided - this means the resize command now fails, which
is probably the more sensible thing to do (rather than giving the impression it
will be resized but actually not doing so).

This change therefore modifies the test logic to match.

Signed-off-by: Mike Tutkowski <mike.tutkowski@solidfire.com>


> TestVolumes.test_07_resize_fail failing
> ---------------------------------------
>
>                 Key: CLOUDSTACK-7467
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7467
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Volumes
>    Affects Versions: 4.5.0
>            Reporter: Alex Brett
>            Assignee: Mike Tutkowski
>             Fix For: 4.5.0
>
>         Attachments: management-server.log, runinfo.txt
>
>
> Commit de6a3112b6b80952d1598acaa112ac50a3ef9d32 (https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;h=de6a3112b6b80952d1598acaa112ac50a3ef9d32)
has caused the BVT test integration.smoke.test_volumes.TestVolumes.test_07_resize_fail to
start failing with:
> {noformat}
> ======================================================================
> ERROR: Test resize (negative) non-existent volume
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/root/cloudstack/test/integration/smoke/test_volumes.py", line 591, in test_07_resize_fail
>     self.apiClient.resizeVolume(cmd)
>   File "/usr/local/lib/python2.7/dist-packages/marvin/cloudstackAPI/cloudstackAPIClient.py",
line 1716, in resizeVolume
>     response = self.connection.marvinRequest(command, response_type=response, method=method)
>   File "/usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py", line
379, in marvinRequest
>     raise e
> Exception: Job failed: {jobprocstatus : 0, created : u'2014-09-02T12:19:32+0000', cmd
: u'org.apache.cloudstack.api.command.admin.volume.ResizeVolumeCmdByAdmin', userid : u'71a314e6-3296-11e4-b130-0a474b082b17',
jobstatus : 2, jobid : u'b719d471-9acd-49c4-9493-599b7053d4b1', jobresultcode : 530, jobresulttype
: u'object', jobresult : {errorcode : 530, errortext : u"To change a volume's size without
providing a new disk offering, its current disk offering must be customizable or it must be
a root volume."}, accountid : u'71a306cc-3296-11e4-b130-0a474b082b17'}
> -------------------- >> begin captured stdout << ---------------------
> === TestName: test_07_resize_fail | Status : EXCEPTION ===
> {noformat}
> From what I can see here the test is providing a diskofferingid in its command, so the
error text doesn't appear to make sense, but I'm not hugely familiar with this area so it
is possible the test has always been doing something wrong...
> I'll attach the full runinfo.txt and management server log from a run to this ticket
- assigning initially to Mike Tutkowski as the author of the above commit...



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message