Traceback (most recent call last):
File "/home/jpipes/repos/nova/bug608772/nova/tests/network_unittest.py", line 79, in test_allocate_deallocate_ip
self.assertEqual(False, is_in_project(address, "project0"))
twisted.trial.unittest.FailTest: not equal:
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
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=/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
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:ISSUE_IP: warning: no vendor libraries included
, Traceback (most recent call last):
File "/home/jpipes/repos/nova/bug608772/bin/nova-dhcpbridge", line 94, in <module>
sys.exit(main())
File "/home/jpipes/repos/nova/bug608772/bin/nova-dhcpbridge", line 71, in main
flagfile = os.environ.get('FLAGFILE', FLAGS.dhcpbridge_flagfile)
File "/usr/lib/python2.6/dist-packages/gflags.py", line 810, in __getattr__
raise AttributeError(name)
AttributeError: dhcpbridge_flagfile
DEBUG:root:Get Network By Address: 10.0.0.3
DEBUG:root:Found 10.0.0.3 in project0
DEBUG:root:Result was 1
DEBUG:root:RELEASE_IP: warning: no vendor libraries included
, Traceback (most recent call last):
File "/home/jpipes/repos/nova/bug608772/bin/nova-dhcpbridge", line 94, in <module>
sys.exit(main())
File "/home/jpipes/repos/nova/bug608772/bin/nova-dhcpbridge", line 71, in main
flagfile = os.environ.get('FLAGFILE', FLAGS.dhcpbridge_flagfile)
File "/usr/lib/python2.6/dist-packages/gflags.py", line 810, in __getattr__
raise AttributeError(name)
AttributeError: dhcpbridge_flagfile
I've tried renaming the flagfile variable, moving it to different locations, etc. No luck...
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...