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

   ##### ISSUE TYPE
    * Other
   
   ##### COMPONENT NAME
   ~~~
   Sytem integation testing wrt general /all
   ~~~
   
   ##### CLOUDSTACK VERSION
   
   ~~~
   4.17.1 and upwards
   ~~~
   
   ##### OS / ENVIRONMENT
   <!--
   NA
   -->
   
   ##### SUMMARY
   
   Requirement: need to run existing system integration tests, or their subset, 
against an existing test instance.
   One main feature is that it uses vmware hypervisor.
   What needs to be done to setup a test system and configure it to access that 
test instance?
   
   ##### STEPS TO REPRODUCE
   What I have done so far: followed a GitHub workflow test iteration e.g.
   
   ~~~
   # https://github.com/apache/cloudstack/actions/runs/5963475928/workflow
   ...
   mvn clean install -am -Dsimulator -Dnoredist -P developer,systemvm -pl 
plugins/hypervisors/kvm
   mvn clean install -am -Dsimulator -Dnoredist -P developer,systemvm -pl 
plugins/hypervisors/vmware
   
   ~~~
   
   Also, I've tried to run a Python test manually in a cloned repo for the 
branch 4.17.1:
   ~~~
   > python3 test_volumes.py
   ~~~
   
   ##### EXPECTED RESULTS
   I thought that anything will happen, ending in an error like "can't access 
test system" or similar.
   
   ##### ACTUAL RESULTS
   Immediate process breakup:
   ~~~
   > mvn clean install -am -Dsimulator -Dnoredist -P developer,systemvm -pl 
plugins/hypervisors/vmware
   > org.apache.maven.MavenExecutionException: Could not find the selected 
project in the reactor: plugins/hypervisors/
   ~~~
   For the manual test:
   ~~~
   > python3 test_volumes.py
   > [WARNING]: cannot initiate Sentry error reporting: [Errno 6] No such 
device or address. (UserWarning)
   > ImportError: cannot import name 'escape' from 'jinja2' 
(/usr/local/lib/python3.9/dist-packages/jinja2/__init__.py)
   
   ~~~
   
   ##### Final thoughts
   As it seems [1] the jinja dependency error comes from the fact that the 
environment uses Flask 1.x. and Jinja2 3.x which are not compatible through the 
reqired "escape" component by Flask which has been dropped in Jinja.
   
   [1] 
https://stackoverflow.com/questions/71718167/importerror-cannot-import-name-escape-from-jinja2
   
   
   


-- 
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