← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1689279] [NEW] tempest scenario trunk test "test_subport_connectivity" fails with non root rhel user

 

Public bug reported:

When I run the test (python -m testtools.run)
neutron.tests.tempest.scenario.test_trunk.TrunkTest.test_subport_connectivity
with rhel image and "cloud_user" user the test fails due to following :


Traceback (most recent call last):
  File "/home/centos/tempest-upstream/neutron/neutron/tests/tempest/scenario/test_trunk.py", line 242, in test_subport_connectivity
    out = server['ssh_client'].exec_command('ip addr list')
  File "tempest/lib/common/ssh.py", line 202, in exec_command
    stderr=err_data, stdout=out_data)
tempest.lib.exceptions.SSHExecCommandFailed: Command 'ip addr list', exit status: 127, stderr:
bash: ip: command not found

stdout:

Ran 1 test in 154.543s


adding sudo in the code for the command solves the issue

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1689279

Title:
  tempest  scenario trunk test "test_subport_connectivity" fails with
  non root rhel user

Status in neutron:
  New

Bug description:
  When I run the test (python -m testtools.run)
  neutron.tests.tempest.scenario.test_trunk.TrunkTest.test_subport_connectivity
  with rhel image and "cloud_user" user the test fails due to following
  :


  
  Traceback (most recent call last):
    File "/home/centos/tempest-upstream/neutron/neutron/tests/tempest/scenario/test_trunk.py", line 242, in test_subport_connectivity
      out = server['ssh_client'].exec_command('ip addr list')
    File "tempest/lib/common/ssh.py", line 202, in exec_command
      stderr=err_data, stdout=out_data)
  tempest.lib.exceptions.SSHExecCommandFailed: Command 'ip addr list', exit status: 127, stderr:
  bash: ip: command not found

  stdout:

  Ran 1 test in 154.543s


  adding sudo in the code for the command solves the issue

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1689279/+subscriptions


Follow ups