===============================================================================
[FAIL]: nova.tests....
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...
-------------------------------------------------------------------------------
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...
strange. This is working in my clean author branch on Mac. Did I fix it by
accident? Looks like the flag is defined somewhere wrong?
On Jul 22, 2010 11:10 AM, "Jay Pipes" <email address hidden> wrote:
Hmm, something to do with gflags is broken it seems:
jpipes@ serialcoder: ~/repos/ nova/bug608772$ python run_tests.py network_ unittest. NetworkTestCase .test_allocate_ deallocate_ ip
nova.tests.
INFO:root:Flushing redis datastore
nova.tests. network_ unittest allocate_ deallocate_ ip ...
NetworkTestCase
test_
[FAIL]
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= == jpipes/ repos/nova/bug608772/nova/tests/ network_ unittest. py", deallocate_ ip
[FAIL]: nova.tests....
File "/home/
line 79, in test_allocate_
self.assertEqua l(False, is_in_project( address, "project0")) trial.unittest. FailTest: not... ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- --
twisted.
-------
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 address= 10.0.0. 1 --except- interface= lo range=10. 0.0.3,static, 600s hostsfile= /home/jpipes/ repos/nova/bug608772/networks/ nova-100. conf script= /home/jpipes/ repos/nova/bug608772/bin/nova- dhcpbridge ISSUE_IP: warning: no vendor libraries included jpipes/ repos/nova/bug608772/bin/nova- dhcpbridge" , line 94, in jpipes/ repos/nova/bug608772/bin/nova- dhcpbridge" , line 71, in 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=
--listen-
--dhcp-
--dhcp-
--dhcp-
--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:
, Traceback (most recent call last):
File "/home/
<module>
sys.exit(main())
File "/home/
main
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 jpipes/ repos/nova/bug608772/bin/nova- dhcpbridge" , line 71, in 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/
<module>
sys.exit(main())
File "/home/
main
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...
-- /bugs.launchpad .net/bugs/ 608772
Failure in NetworkTestCase for range_allocation and
https:/
Yo...