kiranchavala opened a new issue, #7443:
URL: https://github.com/apache/cloudstack/issues/7443

   ##### ISSUE TYPE
   
    * Bug Report
   
   
   ##### COMPONENT NAME
   
   ~~~
   Testing
   ~~~
   
   ##### CLOUDSTACK VERSION
   N/A
   
   ##### CONFIGURATION
   N/A
   
   
   ##### OS / ENVIRONMENT
   
   Ubuntu 22.0.4 
   
   ##### SUMMARY
   
   Smoketests are failing if run on Ubuntu 22.04 and python version (3.10.6)
   
   
   In the #6978 , Dockerfile was updated to use Ubuntu 22.0.4
   
   In Ubuntu 22.04 the python version is 
   
   root@6c66e082ef0c:~# python --version 
   Python 3.10.6
   
   
   In Ubuntu 20.0.4 the python version is 
   
   root@6c6890001b5b:~# python --version 
   Python 3.8.10
   
   
   
   ##### STEPS TO REPRODUCE
   
   
   Deploy latest docker image for the cloudstack-simulator which based on 
Ubuntu 22.0.4 
   
   1. docker run --name simulator -p 8080:5050 -d 
apache/cloudstack-simulator:4.19.0.0-SNAPSHOT-20230411-063947
   
   
   Deploy a datacenter
   
   2. docker exec -it simulator python 
/root/tools/marvin/marvin/deployDataCenter.py -i /root/setup/dev/advanced.cfg
   
   
   
   Run a sample smoke test 
   
   3. docker exec -it simulator  nosetests -v --with-marvin   
--marvin-config=setup/dev/advanced.cfg   --with-xunit   --xunit-file=xunit.xml  
 -a tags=advanced,required_hardware=false   --zone=Sandbox-simulator   
--hypervisor=simulator    test/integration/smoke/test_vm_life_cycle.py
   
   ~~~
   
   ==== Marvin Init Started ====
   
   === Marvin Parse Config Successful ===
   
   === Marvin Setting TestData Successful===
   
   ==== Log Folder Path: /tmp/MarvinLogs/Apr_17_2023_06_56_34_IHX5TS All logs 
will be available here ====
   
   === Marvin Init Logging Successful===
   
   ==== Marvin Init Successful ====
   Traceback (most recent call last):
     File "/usr/local/bin/nosetests", line 8, in <module>
       sys.exit(run_exit())
     File "/usr/local/lib/python3.10/dist-packages/nose/core.py", line 118, in 
__init__
       unittest.TestProgram.__init__(
     File "/usr/lib/python3.10/unittest/main.py", line 100, in __init__
       self.parseArgs(argv)
     File "/usr/local/lib/python3.10/dist-packages/nose/core.py", line 179, in 
parseArgs
       self.createTests()
     File "/usr/local/lib/python3.10/dist-packages/nose/core.py", line 193, in 
createTests
       self.test = self.testLoader.loadTestsFromNames(self.testNames)
     File "/usr/local/lib/python3.10/dist-packages/nose/loader.py", line 481, 
in loadTestsFromNames
       return unittest.TestLoader.loadTestsFromNames(self, names, module)
     File "/usr/lib/python3.10/unittest/loader.py", line 220, in 
loadTestsFromNames
       suites = [self.loadTestsFromName(name, module) for name in names]
     File "/usr/lib/python3.10/unittest/loader.py", line 220, in <listcomp>
       suites = [self.loadTestsFromName(name, module) for name in names]
     File "/usr/local/lib/python3.10/dist-packages/nose/loader.py", line 431, 
in loadTestsFromName
       return self.loadTestsFromModule(
     File "/usr/local/lib/python3.10/dist-packages/nose/loader.py", line 329, 
in loadTestsFromModule
       elif isfunction(test) and self.selector.wantFunction(test):
     File "/usr/local/lib/python3.10/dist-packages/nose/selector.py", line 149, 
in wantFunction
       plug_wants = self.plugins.wantFunction(function)
     File "/usr/local/lib/python3.10/dist-packages/nose/plugins/manager.py", 
line 99, in __call__
       return self.call(*arg, **kw)
     File "/usr/local/lib/python3.10/dist-packages/nose/plugins/manager.py", 
line 167, in simple
       result = meth(*arg, **kw)
     File "/usr/local/lib/python3.10/dist-packages/nose/plugins/attrib.py", 
line 278, in wantFunction
       return self.validateAttrib(function)
     File "/usr/local/lib/python3.10/dist-packages/nose/plugins/attrib.py", 
line 242, in validateAttrib
       if isinstance(value, collections.Callable):
   AttributeError: module 'collections' has no attribute 'Callable'
   
   
   ~~~
   
   ##### EXPECTED RESULTS
   
   The smoke tests should pass suucessfully on Ubuntu 22.04 and python version 
3.10.6 
   
   
   ##### ACTUAL RESULTS
   
   The smoke tests fail  on Ubuntu 22.04 and python version 3.10.6 
   
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to