[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-3916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Prasanna Santhanam resolved CLOUDSTACK-3916.
--------------------------------------------

    Resolution: Fixed

Man - this is an evasive test. I've removed the size check as it does not make 
sense for ISOs. A mounted ISO size can be different from the size of the iso 
file itself. It's the contents that make up size when mounted on the loop 
device. Simply mount and unmount iso within the guest instead. 

Please reopen if this fails again.
                
> [Automation] TestVMLifeCycle.test_10_attachAndDetach_iso failing while 
> checking size of iso 
> --------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-3916
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3916
>             Project: CloudStack
>          Issue Type: Test
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Automation, Test
>    Affects Versions: 4.2.0
>         Environment: Automation 
>            Reporter: Rayees Namathponnan
>            Assignee: Prasanna Santhanam
>            Priority: Critical
>             Fix For: 4.2.0
>
>
> Test case TestVMLifeCycle.test_10_attachAndDetach_iso failin KVM , and Xen 
> Test cases failed below error
> paramiko.transport: DEBUG: [chan 6] EOF received (6)
> paramiko.transport: DEBUG: [chan 6] EOF sent (6)
> sshClient: DEBUG: {Cmd: mount |grep /dev/hdc|head -1 via Host: 10.223.122.72} 
> {returns: ['/dev/hdc on /mnt/tmp type iso9660 (ro)']}
> testclient.testcase.TestVMLifeCycle: DEBUG: Found a mount point at ['/dev/hdc 
> on /mnt/tmp type iso9660 (ro)']
> --------------------- >> end captured logging << ---------------------
> Stacktrace
>   File "/usr/local/lib/python2.7/unittest/case.py", line 318, in run
>     testMethod()
>   File 
> "/Repo_30X/ipcl/cloudstack/test/integration/smoke/test_vm_life_cycle.py", 
> line 778, in test_10_attachAndDetach_iso
>     "ISO size mismatch. reported size within guest %s" % str(iso_size)
>   File "/usr/local/lib/python2.7/unittest/case.py", line 494, in assertEqual
>     assertion_func(first, second, msg=msg)
>   File "/usr/local/lib/python2.7/unittest/case.py", line 487, in 
> _baseAssertEqual
>     raise self.failureException(msg)
> ISO size mismatch. reported size within guest 360448
> Test case trying to get ISO size with below command;
> [root@RyzNW2VM1 mnt1]# mount |grep /dev/hdc |head -1
> /dev/hdc on /tmp/mnt1 type iso9660 (ro)
> Prasanna - i dont think we can get size from this; can you please check your 
> recent check in ?
> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;h=93f79e1a158cb1f69915a4036f5c1840a38c5e53

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to