Vish, didn't you move the flag definition? And didn't I recently see a patch
that removed an "unused" import from dhcpleasor? That import was probably to
provide access to the flag.
Joshua
On Thu, Jul 22, 2010 at 8:43 AM, vishvananda <email address hidden> wrote:
> Default flagfile with no params won't work. It needs the flagfile
> specified
>
> On Jul 22, 2010 11:31 AM, "Jay Pipes" <email address hidden> wrote:
>
> If I call default_flagfile() with no params (use defaults), I still get
> some weird name resolution errors:
>
>
> DEBUG:root:ISSUE_IP: warning: no vendor libraries included
> , DEBUG:root:Called add for mac 02:16:3e:0e:4e:f0 with ip 10.0.0.3 and
> hostname test-host on interface br100
>
> Traceback (most recent call last):
>
> File "/home/jpipes/repos/nova/bug608772/bin/nova-dhcpbridge", line 94, in
> <module>
> sys.exit(ma...
> File "/home/jpipes/repos/nova/bug608772/bin/nova-dhcpbridge", line 88, in
> main
> globals()[action+'_lease'](mac, ip, hostname, interface)
> File "/home/jpipes/repos/nova/bug608772/bin/nova-dhcpbridge", line 47, in
> add_lease
> network.lease_ip(ip)
> AttributeError: 'module' object has no attribute 'lease_ip'
>
>
> --
> Failure in NetworkTestCase for range_allocation and
> https://bugs.launchpad.net/bugs/608772
> Yo...
>
> --
> Failure in NetworkTestCase for range_allocation and
> https://bugs.launchpad.net/bugs/608772
> You received this bug notification because you are a member of Nova
> Bugs, which is subscribed to OpenStack Compute (nova).
>
> Status in OpenStack Compute (Nova): New
>
> Bug description:
> On trunk, these have been appearing consistently:
>
>
> ===============================================================================
> [FAIL]:
> nova.tests.network_unittest.NetworkTestCase.test_allocate_deallocate_ip
>
> Traceback (most recent call last):
> File "/home/jpipes/repos/nova/working/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
>
>
> ===============================================================================
> [FAIL]: nova.tests.network_unittest.NetworkTestCase.test_range_allocation
>
> Traceback (most recent call last):
> File "/home/jpipes/repos/nova/working/nova/tests/network_unittest.py",
> line 103, in test_range_allocation
> self.assertEqual(False, is_in_project(address, "project0"))
> twisted.trial.unittest.FailTest: not equal:
> 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...
>
>
>
Vish, didn't you move the flag definition? And didn't I recently see a patch
that removed an "unused" import from dhcpleasor? That import was probably to
provide access to the flag.
Joshua
On Thu, Jul 22, 2010 at 8:43 AM, vishvananda <email address hidden> wrote:
> Default flagfile with no params won't work. It needs the flagfile 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 88, in )[action+ '_lease' ](mac, ip, hostname, interface) jpipes/ repos/nova/bug608772/bin/nova- dhcpbridge" , line 47, in lease_ip( ip) /bugs.launchpad .net/bugs/ 608772 /bugs.launchpad .net/bugs/ 608772 ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= == network_ unittest. NetworkTestCase .test_allocate_ deallocate_ ip jpipes/ repos/nova/ working/ nova/tests/ network_ unittest. py", deallocate_ ip l(False, is_in_project( address, "project0")) trial.unittest. FailTest: not equal: ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= == network_ unittest. NetworkTestCase .test_range_ allocation jpipes/ repos/nova/ working/ nova/tests/ network_ unittest. py", allocation l(False, is_in_project( address, "project0")) trial.unittest. FailTest: not equal: ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- --
> specified
>
> On Jul 22, 2010 11:31 AM, "Jay Pipes" <email address hidden> wrote:
>
> If I call default_flagfile() with no params (use defaults), I still get
> some weird name resolution errors:
>
>
> DEBUG:root:
> , DEBUG:root:Called add for mac 02:16:3e:0e:4e:f0 with ip 10.0.0.3 and
> hostname test-host on interface br100
>
> Traceback (most recent call last):
>
> File "/home/
> <module>
> sys.exit(ma...
> File "/home/
> main
> globals(
> File "/home/
> add_lease
> network.
> AttributeError: 'module' object has no attribute 'lease_ip'
>
>
> --
> Failure in NetworkTestCase for range_allocation and
> https:/
> Yo...
>
> --
> Failure in NetworkTestCase for range_allocation and
> https:/
> You received this bug notification because you are a member of Nova
> Bugs, which is subscribed to OpenStack Compute (nova).
>
> Status in OpenStack Compute (Nova): New
>
> Bug description:
> On trunk, these have been appearing consistently:
>
>
> =======
> [FAIL]:
> nova.tests.
>
> Traceback (most recent call last):
> File "/home/
> line 79, in test_allocate_
> self.assertEqua
> twisted.
> a = False
> b = True
>
>
> =======
> [FAIL]: nova.tests.
>
> Traceback (most recent call last):
> File "/home/
> line 103, in test_range_
> self.assertEqua
> 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...
>
>
>