Skip to content

Smoke test: Update user for XenServer template#10918

Closed
Pearl1594 wants to merge 1 commit into4.20from
fix-test-SharedNet
Closed

Smoke test: Update user for XenServer template#10918
Pearl1594 wants to merge 1 commit into4.20from
fix-test-SharedNet

Conversation

@Pearl1594
Copy link
Copy Markdown
Contributor

Description

This PR fixes the constant test failure observed on the 4.20 health check branch. This depends on change of the template being used as well as fixing Configdrive functionality on XenServer / XCP-ng addressed with: #10912

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • build/CI
  • test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

nosetests --with-xunit --xunit-file=results.xml --with-marvin --marvin-config=/marvin/pr10912-t13399-xcpng82-advanced-cfg -s -a tags=failure --hypervisor=xenserver /marvin/tests/smoke/test_network.py
/usr/local/lib/python3.6/site-packages/paramiko/transport.py:32: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography. The next release of cryptography will remove support for Python 3.6.
  from cryptography.hazmat.backends import default_backend

==== Marvin Init Started ====

=== Marvin Parse Config Successful ===

=== Marvin Setting TestData Successful===

==== Log Folder Path: /marvin/MarvinLogs/May_26_2025_08_08_00_6GSRX6 All logs will be available here ====

=== Marvin Init Logging Successful===

==== Marvin Init Successful ====
Executing command '{'name': 'MySharedNetwork - Test', 'displaytext': 'MySharedNetwork', 'vlan': 124, 'gateway': '172.16.129.1', 'netmask': '255.255.255.0', 'startip': '172.16.129.2', 'endip': '172.16.129.21', 'acltype': 'domain', 'scope': 'all', 'networkofferingid': 'd58f4a2b-6639-40d0-badd-f18496c83a8d', 'physicalnetworkid': 'b845d0aa-0287-4085-92df-5a078ebfdc25'}'
====Trying SSH Connection: Host:10.0.56.94 User:root                                   Port:22 RetryCnt:5===
SshClient: Exception under createConnection: ['Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.6/site-packages/marvin/sshClient.py", line 130, in createConnection\n    look_for_keys=False\n', '  File "/usr/local/lib/python3.6/site-packages/paramiko/client.py", line 409, in connect\n    raise NoValidConnectionsError(errors)\n', 'paramiko.ssh_exception.NoValidConnectionsError: [Errno None] Unable to connect to port 22 on 10.0.56.94\n']
NoneType: None
====Trying SSH Connection: Host:10.0.56.94 User:root                                   Port:22 RetryCnt:4===
SshClient: Exception under createConnection: ['Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.6/site-packages/marvin/sshClient.py", line 130, in createConnection\n    look_for_keys=False\n', '  File "/usr/local/lib/python3.6/site-packages/paramiko/client.py", line 409, in connect\n    raise NoValidConnectionsError(errors)\n', 'paramiko.ssh_exception.NoValidConnectionsError: [Errno None] Unable to connect to port 22 on 10.0.56.94\n']
NoneType: None
====Trying SSH Connection: Host:10.0.56.94 User:root                                   Port:22 RetryCnt:3===
SshClient: Exception under createConnection: ['Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.6/site-packages/marvin/sshClient.py", line 130, in createConnection\n    look_for_keys=False\n', '  File "/usr/local/lib/python3.6/site-packages/paramiko/client.py", line 457, in connect\n    server_key = t.get_remote_server_key()\n', '  File "/usr/local/lib/python3.6/site-packages/paramiko/transport.py", line 953, in get_remote_server_key\n    raise SSHException("No existing session")\n', 'paramiko.ssh_exception.SSHException: No existing session\n']
NoneType: None
====Trying SSH Connection: Host:10.0.56.94 User:root                                   Port:22 RetryCnt:2===
===SSH to Host 10.0.56.94 port : 22 SUCCESSFUL===
{Cmd: sudo bash -c "if [ ! -d /root/iso ]; then mkdir /root/iso; fi" via Host: 10.0.56.94} {returns: []}
{Cmd: sudo umount /root/iso via Host: 10.0.56.94} {returns: ['umount: /root/iso: not mounted.']}
{Cmd: sudo blkid -t LABEL='config-2' /dev/sr? /dev/hd? /dev/sd? /dev/xvd? -o device via Host: 10.0.56.94} {returns: ['/dev/sr0']}
{Cmd: sudo mount /dev/sr0 /root/iso via Host: 10.0.56.94} {returns: ['mount: /root/iso: WARNING: source write-protected, mounted read-only.']}
{Cmd: sudo cat /root/iso/openstack/latest/network_data.json via Host: 10.0.56.94} {returns: ['{"links":[{"ethernet_mac_address":"1e:00:78:00:00:35","id":"eth0","mtu":1500,"type":"phy"},{"ethernet_mac_address":"02:01:00:cd:00:01","id":"eth1","mtu":1500,"type":"phy"}],"networks":[{"id":"eth0","ip_address":"172.16.129.14","link":"eth0","netmask":"255.255.255.0","network_id":"02647b90-edb5-4a1a-a4c6-d9cc468c1e13","type":"ipv4","routes":[{"gateway":"172.16.129.1","netmask":"0.0.0.0","network":"0.0.0.0"}]},{"id":"eth1","ip_address":"10.1.1.6","link":"eth1","netmask":"255.255.255.0","network_id":"82539005-90a3-4b4e-a25c-6ac1314d19d7","type":"ipv4","routes":[{"gateway":"10.1.1.1","netmask":"0.0.0.0","network":"0.0.0.0"}]}],"services":[{"address":"10.0.32.1","type":"dns"},{"address":"8.8.8.8","type":"dns"}]}']}
{Cmd: sudo umount -d /root/iso via Host: 10.0.56.94} {returns: []}
{Cmd: sudo ls /root/iso via Host: 10.0.56.94} {returns: []}
{Cmd: ip address via Host: 10.0.56.94} {returns: ['1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000', '    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00', '    inet 127.0.0.1/8 scope host lo', '       valid_lft forever preferred_lft forever', '    inet6 ::1/128 scope host noprefixroute', '       valid_lft forever preferred_lft forever', '2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000', '    link/ether 1e:00:78:00:00:35 brd ff:ff:ff:ff:ff:ff', '    altname enX0', '    inet 172.16.129.14/24 brd 172.16.129.255 scope global eth0', '       valid_lft forever preferred_lft forever', '    inet6 fe80::1c00:78ff:fe00:35/64 scope link', '       valid_lft forever preferred_lft forever', '3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000', '    link/ether 02:01:00:cd:00:01 brd ff:ff:ff:ff:ff:ff', '    altname enX1', '    inet 10.1.1.6/24 brd 10.1.1.255 scope global eth1', '       valid_lft forever preferred_lft forever', '    inet6 fe80::1:ff:fecd:1/64 scope link', '       valid_lft forever preferred_lft forever']}
=== TestName: test_01_deployVMInSharedNetwork | Status : SUCCESS ===

=== Final results are now copied to: /marvin//MarvinLogs/test_network_4JTIHM ===

How did you try to break this feature and the system with this change?

@Pearl1594 Pearl1594 requested a review from vishesh92 May 26, 2025 08:49
@boring-cyborg boring-cyborg bot added component:integration-test Python Warning... Python code Ahead! labels May 26, 2025
@codecov
Copy link
Copy Markdown

codecov bot commented May 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 16.13%. Comparing base (f99fb3e) to head (8f1803f).
Report is 1 commits behind head on 4.20.

Additional details and impacted files
@@            Coverage Diff            @@
##               4.20   #10918   +/-   ##
=========================================
  Coverage     16.13%   16.13%           
- Complexity    13238    13241    +3     
=========================================
  Files          5656     5656           
  Lines        497622   497622           
  Branches      60339    60339           
=========================================
+ Hits          80303    80315   +12     
+ Misses       408369   408355   -14     
- Partials       8950     8952    +2     
Flag Coverage Δ
uitests 4.00% <ø> (ø)
unittests 16.99% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Pearl1594
Copy link
Copy Markdown
Contributor Author

May not be required - works with ubuntu user with new template.

@Pearl1594 Pearl1594 closed this May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:integration-test Python Warning... Python code Ahead!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant