Failure in NetworkTestCase for range_allocation and
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Jay Pipes |
Bug Description
On trunk, these have been appearing consistently:
=======
[FAIL]: nova.tests.
Traceback (most recent call last):
File "/home/
self.
twisted.
a = False
b = True
=======
[FAIL]: nova.tests.
Traceback (most recent call last):
File "/home/
self.
twisted.
a = False
b = True
-------
Ran 80 tests in 24.274s
FAILED (failures=2, successes=78)
Assigning to myself...I'll try and track down the fix...
Hmm, something to do with gflags is broken it seems:
jpipes@ serialcoder: ~/repos/ nova/bug608772$ python run_tests.py nova.tests. network_ unittest. NetworkTestCase .test_allocate_ deallocate_ ip network_ unittest allocate_ deallocate_ ip ... [FAIL]
INFO:root:Flushing redis datastore
nova.tests.
NetworkTestCase
test_
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= == network_ unittest. NetworkTestCase .test_allocate_ deallocate_ ip
[FAIL]: nova.tests.
Traceback (most recent call last): jpipes/ repos/nova/bug608772/nova/tests/ network_ unittest. py", line 79, in test_allocate_ deallocate_ ip assertEqual( False, is_in_project( address, "project0")) trial.unittest. FailTest: not equal:
File "/home/
self.
twisted.
a = False
b = True
------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- --
Ran 1 tests in 0.756s
FAILED (failures=1)
$> cat run_tests.err.log
DEBUG:root: Allocating IP 10.0.0.3 to project0 /home/jpipes/ repos/nova/bug608772/networks/ nova-100. pid --listen- address= 10.0.0. 1 --except- interface= lo --dhcp- range=10. 0.0.3,static, 600s --dhcp- hostsfile= /home/jpipes/ repos/nova/bug608772/networks/ nova-100. conf --dhcp- script= /home/jpipes/ repos/nova/bug608772/bin/nova- dhcpbridge --leasefile-ro ISSUE_IP: warning: no vendor libraries included jpipes/ repos/nova/bug608772/bin/nova- dhcpbridge" , line 94, in <module> exit(main( )) jpipes/ repos/nova/bug608772/bin/nova- dhcpbridge" , line 71, in main get('FLAGFILE' , FLAGS.dhcpbridg e_flagfile) python2. 6/dist- packages/ gflags. py", line 810, in __getattr__ name)
DEBUG:root:FAKE NET: ifconfig vlan100
DEBUG:root:FAKE NET: ifconfig br100
DEBUG:root:Starting dnsmasq server for network with vlan 100
DEBUG:root:FAKE NET: sudo dnsmasq --strict-order --bind-interfaces --conf-file= --pid-file=
DEBUG:root:FAKE NET: sudo iptables --delete FORWARD -d 10.0.0.2 -p udp --dport 1194 -j ACCEPT
DEBUG:root:FAKE NET: sudo iptables -I FORWARD -d 10.0.0.2 -p udp --dport 1194 -j ACCEPT
DEBUG:root:FAKE NET: sudo iptables --delete PREROUTING -t nat -d 127.0.0.1 -p udp --dport 1149 -j DNAT --to 10.0.0.2:1194
DEBUG:root:FAKE NET: sudo iptables -I PREROUTING -t nat -d 127.0.0.1 -p udp --dport 1149 -j DNAT --to 10.0.0.2:1194
DEBUG:root:Was allocated 10.0.0.3
DEBUG:root:Result was 1
DEBUG:root:
, Traceback (most recent call last):
File "/home/
sys.
File "/home/
flagfile = os.environ.
File "/usr/lib/
raise AttributeError(
AttributeError: dhcpbridge_flagfile
DEBUG:root:Get Network By Address: 10.0.0.3 RELEASE_ IP: warning: no vendor libraries included jpipes/ repos/nova/bug608772/bin/nova- dhcpbridge" , line 94, in <module> exit(main( )) jpipes/ repos/nova/bug608772/bin/nova- dhcpbridge" , line 71, in main get('FLAGFILE' , FLAGS.dhcpbridg e_flagfile) python2. 6/dist- packages/ gflags. py", line 810, in __getattr__ name)
DEBUG:root:Found 10.0.0.3 in project0
DEBUG:root:Result was 1
DEBUG:root:
, Traceback (most recent call last):
File "/home/
sys.
File "/home/
flagfile = os.environ.
File "/usr/lib/
raise AttributeError(
AttributeError: dhcpbridge_flagfile
I've tried renaming the flagfile variable, moving it to different locations, etc. No luck...