← Back to team overview

yahoo-eng-team team mailing list archive

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

 

Reviewed:  https://review.openstack.org/463309
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=b92a37f3efb45ff2a503ed81863816b1a316cd8c
Submitter: Jenkins
Branch:    master

commit b92a37f3efb45ff2a503ed81863816b1a316cd8c
Author: AlexSTafeyev <alexo101087@xxxxxxxxx>
Date:   Mon May 8 10:57:37 2017 +0000

    Change PATH for "ip addr list" command so it could work with cloud-user
    
    It's needed for some custom images like RHEL7 where /usr/sbin/ is not
    enabled by default for users under test.
    
    Change-Id: Ib75c468cc15f9912e110af4748734bf0b48bcf5d
    Closes-bug: 1689279


** Changed in: neutron
       Status: In Progress => Fix Released

-- 
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:
  Fix Released

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


References