[openstack-dev] [devstack] Bug in is_*_enabled functions?

Brian Haley brian.haley at hp.com
Thu Feb 27 16:34:04 UTC 2014


On 02/26/2014 04:23 PM, Brian Haley wrote:
> On 02/26/2014 01:36 PM, Dean Troyer wrote:
>> On Wed, Feb 26, 2014 at 11:51 AM, Brian Haley <brian.haley at hp.com
>> <mailto:brian.haley at hp.com>> wrote:
>>
>>     While trying to track down why Jenkins was handing out -1's in a
>>     Neutron patch,
>>     I was seeing errors in the devstack tests it runs.  When I dug
>>     deeper it looked
>>     like it wasn't properly determining that Neutron was enabled -
>>     ENABLED_SERVICES
>>     had multiple "q-*" entries, but 'is_service_enabled neutron' was
>>     returning 0.
>>
>>
>> This is the correct return, 0 == success.

Ok, part of this is my kernel background, where true=1 like it should be :)
So there's a -EUSERERROR there.

Something is still wonky in the log below though...

> But, at least in lib/neutron, there is a check like this:
> 
> if is_service_enabled neutron; then
> ...
> fi
> 
> Which will fail with a 0 return code and miss some config.
> 
>> Can you point to a specific log example?
> 
> http://logs.openstack.org/89/70689/24/check/check-devstack-dsvm-neutron/8e137e0/console.html
<snip>

> neutron.common.legacy [-] Skipping unknown group key: firewall_driver
> 2014-02-26 13:12:01.183 | ++ probe_id=ace800b2-5753-4609-b2c3-f9c87d0cc004
> 2014-02-26 13:12:01.184 | ++ echo ' ip netns exec
> qprobe-ace800b2-5753-4609-b2c3-f9c87d0cc004'
> 2014-02-26 13:12:01.184 | + probe_cmd=' ip netns exec
> qprobe-ace800b2-5753-4609-b2c3-f9c87d0cc004'
> 2014-02-26 13:12:01.185 | + [[ True = \T\r\u\e ]]
> 2014-02-26 13:12:01.185 | + check_command='while !  ip netns exec
> qprobe-ace800b2-5753-4609-b2c3-f9c87d0cc004 ping -w 1 -c 1 10.1.0.4; do sleep 1;
> done'
> 2014-02-26 13:12:01.185 | + timeout 90 sh -c 'while !  ip netns exec
> qprobe-ace800b2-5753-4609-b2c3-f9c87d0cc004 ping -w 1 -c 1 10.1.0.4; do sleep 1;
> done'
> 2014-02-26 13:12:01.194 | Cannot open network namespace: Permission denied
> 2014-02-26 13:12:02.201 | Cannot open network namespace: Permission denied
> 2014-02-26 13:12:03.207 | Cannot open network namespace: Permission denied
> 2014-02-26 13:12:04.213 | Cannot open network namespace: Permission denied

That call to 'ip netns exec...' should be:

sudo /usr/local/bin/neutron-rootwrap /etc/neutron/rootwrap.conf ip netns exec...

Perhaps there's something up with this test - exercises/floating_ips.sh - I'll
try running it by hand.

-Brian



More information about the OpenStack-dev mailing list