Not able to run cat and systool with sudo

Bug #1476533 reported by Vincent Hou
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Gate
New
Undecided
Unassigned

Bug Description

2015-07-20 13:22:18.458 | > Jul 20 13:21:28 bare-trusty-rax-ord-3806692 sudo: jenkins :
 command not allowed ; TTY=unknown ; PWD=/home/jenkins/workspace/gate-cinder-python27 ; USER=root ;
COMMAND=/home/jenkins/workspace/gate-cinder-python27/.tox/py27/bin/cinder-rootwrap /etc/cinder/rootwrap.conf
cat /etc/iscsi/initiatorname.iscsi
2015-07-20 13:22:18.458 | > Jul 20 13:21:29 bare-trusty-rax-ord-3806692 sudo: jenkins :
 command not allowed ; TTY=unknown ; PWD=/home/jenkins/workspace/gate-cinder-python27 ; USER=root ;
COMMAND=/home/jenkins/workspace/gate-cinder-python27/.tox/py27/bin/cinder-rootwrap /etc/cinder/rootwrap.conf
systool -c fc_host -v
2015-07-20 13:22:18.458 | > Jul 20 13:21:29 bare-trusty-rax-ord-3806692 sudo: jenkins :
 command not allowed ; TTY=unknown ; PWD=/home/jenkins/workspace/gate-cinder-python27 ; USER=root ;
COMMAND=/home/jenkins/workspace/gate-cinder-python27/.tox/py27/bin/cinder-rootwrap /etc/cinder/rootwrap.conf
systool -c fc_host -v
2015-07-20 13:22:18.459 | + sudoresult=1
2015-07-20 13:22:18.459 | + '[' 1 -ne 0 ']'
2015-07-20 13:22:18.459 | + echo
2015-07-20 13:22:18.459 |
2015-07-20 13:22:18.459 | + echo 'This test has failed because it attempted to execute commands'
2015-07-20 13:22:18.459 | This test has failed because it attempted to execute commands
2015-07-20 13:22:18.460 | + echo 'with sudo. See above for the exact commands used.'

I always get the above errors for the patch: https://review.openstack.org/#/c/189614/

The commands cat and systool are already in volume.filters.

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.