JoaoJandre commented on PR #7131:
URL: https://github.com/apache/cloudstack/pull/7131#issuecomment-1564280597

   Hey @rohityadavcloud,
   I managed to find the problem with mbx, during the deployment of the zone, 
ACS would try to get the system template from a directory and put in its right 
place, but the template was not there. So what I had to do was do the mbx 
deploy, then log into the mgmt VM, download the template and place it 
correctly, and then do the mbx launch. There wasn't any mention of this in 
mbx's readme (unless I missed it) and honestly I expected mbx to do that for me 
(maybe it was supposed to do it but there's a bug somewhere?).
   
   I was able to run the smoke tests using mbx with my changes, and had a few 
failures (but none of them related to log4j2):
   
   These failed because of timeouts:
   
   test_attach_and_distribute_multiple_volumes | `Error` | 32.642 | 
test_attach_multiple_volumes.py
   test_attach_multiple_volumes | `Failure` | 18.087 | 
test_attach_multiple_volumes.py
   test_attach_multiple_volumes | `Error` | 18.090 | 
test_attach_multiple_volumes.py
   
   All of these failed because the python module OpenSSL was not installed in 
the VM (after installing it with pip the tests passed):
   
   test_certauthority_root.py
   test_vm_life_cycle.py
   test_vm_snapshots.py
   test_volumes.py
   test_vpc_ipv6.py
   test_vpc_redundant.py
   test_vpc_router_nics.py
   test_vpc_vpn.py
   test_host_maintenance.py
   
   ---
   
   test_deploy_vm_extra_config_data.py failed because the module lxml was not 
installed in the VM (after installing it, the test passed)
   
   
   test_deploy_vm_iso_uefi.py
   Fails with exception, Says that host is not kvm because 'kvm' != 'KVM', when 
changed to check if string is 'KVM' throws another exception: 
   ```
   CSLog: CRITICAL: EXCEPTION: None: ['Traceback (most recent call last):\n', ' 
 File "/usr/local/lib/python3.6/site-packages/nose/suite.py", line 210, in 
run\n    self.setUp()\n', '  File 
"/usr/local/lib/python3.6/site-packages/nose/suite.py", line 293, in setUp\n    
self.setupContext(ancestor)\n', '  File 
"/usr/local/lib/python3.6/site-packages/nose/suite.py", line 316, in 
setupContext\n    try_run(context, names)\n', '  File 
"/usr/local/lib/python3.6/site-packages/nose/util.py", line 471, in try_run\n   
 return func()\n', '  File "/marvin/tests/smoke/test_deploy_vm_iso_uefi.py", 
line 60, in setUpClass\n    raise unittest.SkipTest("At least one host should 
support UEFI")\n', 'unittest.case.SkipTest: At least one host should support 
UEFI\n']
   --------------------- >> end captured logging << 
---------------------]]></skipped><system-out><![CDATA[=== TestName: None | 
Status : EXCEPTION ===
   ```
   Unrelated to log4j.
   
   
   test_gateway_on_shared_networks.py
   
   Error:
   ```
   Traceback (most recent call last):
     File 
"/usr/local/lib/python3.6/site-packages/marvin/cloudstackConnection.py", line 
376, in marvinRequest
       raise self.__lastError
     File 
"/usr/local/lib/python3.6/site-packages/marvin/cloudstackConnection.py", line 
310, in __parseAndGetResponse
       response_cls)
     File "/usr/local/lib/python3.6/site-packages/marvin/jsonHelper.py", line 
155, in getResultObj
       raise cloudstackException.CloudstackAPIException(respname, errMsg)
   marvin.cloudstackException.CloudstackAPIException: Execute cmd: 
createnetwork failed, due to: errorCode: 431, errorText:The VLAN tag to use for 
new guest network, 111 is already being used for dynamic vlan allocation for 
the guest network in zone DC
   ```
   Caused by physical network dynamic VLAN allocation range being 100 to 199. 
Unrelated to log4j2.
   
   
   test_07_list_default_iso | `Failure` | 0.028 | test_iso.py
   
   Error:
   ```
     File "/usr/lib64/python3.6/unittest/case.py", line 622, in run
       testMethod()
     File "/marvin/tests/smoke/test_iso.py", line 615, in 
test_07_list_default_iso
       self.get_iso_details("vmware-tools.iso")
     File "/marvin/tests/smoke/test_iso.py", line 267, in get_iso_details
       "Check if ISO exists in ListIsos")
     File 
"/usr/local/lib/python3.6/site-packages/marvin/cloudstackTestCase.py", line 94, 
in assertEqual
       super(cloudstackTestCase,self).assertEqual(first,second,msg)
     File "/usr/lib64/python3.6/unittest/case.py", line 846, in assertEqual
       assertion_func(first, second, msg=msg)
     File "/usr/lib64/python3.6/unittest/case.py", line 839, in _baseAssertEqual
       raise self.failureException(msg)
   1 != 0 : b'Check if ISO exists in ListIsos'
   ```
   Fails because env does not have vmware-tools.iso. Unrelated to log4j2.
   
   
   test_01_isolated_persistent_network | `Failure` | 73.776 | 
test_persistent_network.py
   Error:
   ```
    CRITICAL: FAILED: test_01_isolated_persistent_network: ['Traceback (most 
recent call last):\n', '  File "/usr/lib64/python3.6/unittest/case.py", line 
60, in testPartExecutor\n    yield\n', '  File 
"/usr/lib64/python3.6/unittest/case.py", line 622, in run\n    testMethod()\n', 
'  File "/marvin/tests/smoke/test_persistent_network.py", line 317, in 
test_01_isolated_persistent_network\n    "Failed to find bridge on the 
breth1$-{networkVlan}")\n', '  File 
"/usr/local/lib/python3.6/site-packages/marvin/cloudstackTestCase.py", line 94, 
in assertEqual\n    
super(cloudstackTestCase,self).assertEqual(first,second,msg)\n', '  File 
"/usr/lib64/python3.6/unittest/case.py", line 846, in assertEqual\n    
assertion_func(first, second, msg=msg)\n', '  File 
"/usr/lib64/python3.6/unittest/case.py", line 839, in _baseAssertEqual\n    
raise self.failureException(msg)\n', "AssertionError: 1 != 0 : b'Failed to find 
bridge on the breth1$-{networkVlan}'\n"] `
   ```
   Unrelated to Log4j2.
   
   test_02_L2_persistent_network | `Failure` | 3.200 | 
test_persistent_network.py
   Error:
   ```
    CRITICAL: FAILED: test_02_L2_persistent_network: ['Traceback (most recent 
call last):\n', '  File "/usr/lib64/python3.6/unittest/case.py", line 60, in 
testPartExecutor\n    yield\n', '  File 
"/usr/lib64/python3.6/unittest/case.py", line 622, in run\n    testMethod()\n', 
'  File "/marvin/tests/smoke/test_persistent_network.py", line 349, in 
test_02_L2_persistent_network\n    
self.validate_persistent_network_resources_created_on_host(network_vlan)\n', '  
File "/marvin/tests/smoke/test_persistent_network.py", line 399, in 
validate_persistent_network_resources_created_on_host\n    "Failed to find 
bridge on the breth1-" + str(network_vlan))\n', '  File 
"/usr/local/lib/python3.6/site-packages/marvin/cloudstackTestCase.py", line 94, 
in assertEqual\n    
super(cloudstackTestCase,self).assertEqual(first,second,msg)\n', '  File 
"/usr/lib64/python3.6/unittest/case.py", line 846, in assertEqual\n    
assertion_func(first, second, msg=msg)\n', '  File 
"/usr/lib64/python3.6/unittest/case.py", li
 ne 839, in _baseAssertEqual\n    raise self.failureException(msg)\n', 
"AssertionError: 1 != 0 : b'Failed to find bridge on the breth1-90'\n"]
   ```
   Unrelated to Log4j2.
   
   test_03_deploy_and_destroy_VM_and_verify_network_resources_persist | 
`Failure` | 44.881 | test_persistent_network.py
   
   Error:
   ```
   CRITICAL: FAILED: 
test_03_deploy_and_destroy_VM_and_verify_network_resources_persist: ['Traceback 
(most recent call last):\n', '  File 
"/marvin/tests/smoke/test_persistent_network.py", line 385, in 
test_03_deploy_and_destroy_VM_and_verify_network_resources_persist\n    
self.validate_persistent_network_resources_created_on_host(network_vlan)\n', '  
File "/marvin/tests/smoke/test_persistent_network.py", line 399, in 
validate_persistent_network_resources_created_on_host\n    "Failed to find 
bridge on the breth1-" + str(network_vlan))\n', '  File 
"/usr/local/lib/python3.6/site-packages/marvin/cloudstackTestCase.py", line 94, 
in assertEqual\n    
super(cloudstackTestCase,self).assertEqual(first,second,msg)\n', '  File 
"/usr/lib64/python3.6/unittest/case.py", line 846, in assertEqual\n    
assertion_func(first, second, msg=msg)\n', '  File 
"/usr/lib64/python3.6/unittest/case.py", line 839, in _baseAssertEqual\n    
raise self.failureException(msg)\n', "AssertionError: 1 != 0 : b'Failed to 
 find bridge on the breth1-99'\n", '\nDuring handling of the above exception, 
another exception occurred:\n\n', 'Traceback (most recent call last):\n', '  
File "/usr/lib64/python3.6/unittest/case.py", line 60, in testPartExecutor\n    
yield\n', '  File "/usr/lib64/python3.6/unittest/case.py", line 622, in run\n   
 testMethod()\n', '  File "/marvin/tests/smoke/test_persistent_network.py", 
line 387, in 
test_03_deploy_and_destroy_VM_and_verify_network_resources_persist\n    
self.fail("Exception occurred: %s" % e)\n', '  File 
"/usr/lib64/python3.6/unittest/case.py", line 687, in fail\n    raise 
self.failureException(msg)\n', "AssertionError: Exception occurred: 1 != 0 : 
b'Failed to find bridge on the breth1-99'\n"]
   ```
   Unrelated to Log4j2.
   
   
   test_01_add_primary_storage_disabled_host | `Error` | 0.824 | 
test_primary_storage.py
   test_01_primary_storage_nfs | `Error` | 0.471 | test_primary_storage.py
   ContextSuite context=TestStorageTags>:setup | `Error` | 1.903 | 
test_primary_storage.py
   Error:
   ```
     File 
"/usr/local/lib/python3.6/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py",
 line 3805, in createStoragePool
       response = self.connection.marvinRequest(command, 
response_type=response, method=method)
     File 
"/usr/local/lib/python3.6/site-packages/marvin/cloudstackConnection.py", line 
381, in marvinRequest
       raise e
     File 
"/usr/local/lib/python3.6/site-packages/marvin/cloudstackConnection.py", line 
376, in marvinRequest
       raise self.__lastError
     File 
"/usr/local/lib/python3.6/site-packages/marvin/cloudstackConnection.py", line 
310, in __parseAndGetResponse
       response_cls)
     File "/usr/local/lib/python3.6/site-packages/marvin/jsonHelper.py", line 
155, in getResultObj
       raise cloudstackException.CloudstackAPIException(respname, errMsg)
   Execute cmd: createstoragepool failed, due to: errorCode: 530, 
errorText:Failed to add data store: Failed to access storage pool
   ```
   Same error for the three above. Unrelated to Log4j2.
   
   test_02_list_snapshots_with_removed_data_store | `Error` | 130.389 | 
test_snapshots.py
   test_02_list_snapshots_with_removed_data_store | `Error` | 130.399 | 
test_snapshots.py
   
   ```
   test_02_list_snapshots_with_removed_data_store 
(tests.smoke.test_snapshots.TestSnapshotRootDisk): ERROR: Exception:['Traceback 
(most recent call last):\n', '  File 
"/usr/local/lib/python3.6/site-packages/marvin/cloudstackConnection.py", line 
310, in __parseAndGetResponse\n    response_cls)\n', '  File 
"/usr/local/lib/python3.6/site-packages/marvin/jsonHelper.py", line 155, in 
getResultObj\n    raise cloudstackException.CloudstackAPIException(respname, 
errMsg)\n', 'marvin.cloudstackException.CloudstackAPIException: Execute cmd: 
createstoragepool failed, due to: errorCode: 530, errorText:Failed to add data 
store: Failed to access storage pool\n']
   ```
   Same error for the two above. Unrelated to log4j2.
   
   
   runTest | `Error` | 0.002 | test_storage_policy.py
   
   Error:
   ```
     File "/usr/lib64/python3.6/unittest/case.py", line 622, in run
       testMethod()
     File "/usr/local/lib/python3.6/site-packages/nose/failure.py", line 39, in 
runTest
       raise self.exc_val.with_traceback(self.tb)
     File "/usr/local/lib/python3.6/site-packages/nose/loader.py", line 418, in 
loadTestsFromName
       addr.filename, addr.module)
     File "/usr/local/lib/python3.6/site-packages/nose/importer.py", line 47, 
in importFromPath
       return self.importFromDir(dir_path, fqname)
     File "/usr/local/lib/python3.6/site-packages/nose/importer.py", line 94, 
in importFromDir
       mod = load_module(part_fqname, fh, filename, desc)
     File "/usr/lib64/python3.6/imp.py", line 235, in load_module
       return load_source(name, filename, file)
     File "/usr/lib64/python3.6/imp.py", line 172, in load_source
       module = _load(spec)
     File "<frozen importlib._bootstrap>", line 684, in _load
     File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
     File "<frozen importlib._bootstrap_external>", line 678, in exec_module
     File "<frozen importlib._bootstrap>", line 219, in 
_call_with_frames_removed
     File "/marvin/tests/smoke/test_storage_policy.py", line 34, in <module>
       from marvin.cloudstackAPI import (importVsphereStoragePolicies,
   cannot import name 'importVsphereStoragePolicies'
   ```
   Unrelated to log4j2.
   
   These failed because another test disabled a host previously, after the host 
was enabled the tests passed.
   test_01_deploy_vm_on_specific_host | `Error` | 0.147 | 
test_vm_deployment_planner.py
   test_02_deploy_vm_on_specific_cluster | `Error` | 0.121 | 
test_vm_deployment_planner.py
   test_03_deploy_vm_on_specific_pod | `Error` | 0.174 | 
test_vm_deployment_planner.py
   test_04_deploy_vm_on_host_override_pod_and_cluster | `Error` | 0.189 | 
test_vm_deployment_planner.py
   test_05_deploy_vm_on_cluster_override_pod | `Error` | 0.142 | 
test_vm_deployment_planner.py


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