tempest.scenario.test_network_basic_ops.TestNetworkBasicOps fails on cirros 0.6.1

Bug #2007973 reported by Martin Kopec
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Fix Released
Undecided
Martin Kopec

Bug Description

Recently we've merged the cirros version bump from 0.5.2 to 0.6.1:
https://review.opendev.org/c/openstack/devstack/+/859773

It turns out that they switched to dhcpcd for network setup since version 0.6.0
https://github.com/cirros-dev/cirros/blob/8d608dcb04ff8ee3af37710d2308c2a6d7e2d86e/ChangeLog#L20

Tempest uses udhcpc as the default dhcp client:
https://opendev.org/openstack/tempest/src/commit/1569290be06e61d63061ae35a997aff0ebad68f1/tempest/config.py#L1204

As a result the following test fails with cirros 0.6.1:

tempest.scenario.test_network_basic_ops.TestNetworkBasicOps

Traceback (most recent call last):
  File "/opt/stack/tempest/tempest/common/utils/__init__.py", line 70, in wrapper
    return f(*func_args, **func_kwargs)
  File "/opt/stack/tempest/tempest/scenario/test_network_basic_ops.py", line 635, in test_subnet_details
    ssh_client.renew_lease(fixed_ip=floating_ip['fixed_ip_address'],
  File "/opt/stack/tempest/tempest/common/utils/linux/remote_client.py", line 176, in renew_lease
    return getattr(self, '_renew_lease_' + dhcp_client)(fixed_ip=fixed_ip)
  File "/opt/stack/tempest/tempest/common/utils/linux/remote_client.py", line 146, in _renew_lease_udhcpc
    pid = self.exec_command('cat {path}{nic}.pid'.
  File "/opt/stack/tempest/tempest/lib/common/utils/linux/remote_client.py", line 31, in wrapper
    return function(self, *args, **kwargs)
  File "/opt/stack/tempest/tempest/lib/common/utils/linux/remote_client.py", line 115, in exec_command
    return self.ssh_client.exec_command(cmd)
  File "/opt/stack/tempest/tempest/lib/common/ssh.py", line 238, in exec_command
    raise exceptions.SSHExecCommandFailed(
tempest.lib.exceptions.SSHExecCommandFailed: Command 'set -eu -o pipefail; PATH=$PATH:/sbin:/usr/sbin; cat /var/run/udhcpc.eth0.pid', exit status: 1, stderr:
cat: can't open '/var/run/udhcpc.eth0.pid': No such file or directory

This affects all tempest-slow jobs where the test(s) is executed.

Revision history for this message
Martin Kopec (mkopec) wrote :
Changed in tempest:
assignee: nobody → Martin Kopec (mkopec)
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tempest (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/tempest/+/874586

Changed in tempest:
status: Confirmed → In Progress
Revision history for this message
Martin Kopec (mkopec) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tempest (master)

Change abandoned by "Martin Kopec <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/tempest/+/874586
Reason: gonna be addressed in https://review.opendev.org/c/openstack/devstack/+/881504

Revision history for this message
Martin Kopec (mkopec) wrote :

at the end, we fixed this outside of tempest .. in devstack by https://review.opendev.org/c/openstack/devstack/+/881504

Changed in tempest:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.