I'm getting a number of failures when I run the test suite.
======================================================================
ERROR: test_associate_disassociate_address (nova.tests.test_cloud.CloudTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/soren/src/openstack/nova/nova/nova/tests/test_cloud.py", line 112, in test_associate_disassociate_address
public_ip=address)
File "/home/soren/src/openstack/nova/nova/nova/api/ec2/cloud.py", line 758, in associate_address
self.compute_api.associate_floating_ip(context, instance_id, public_ip)
File "/home/soren/src/openstack/nova/nova/nova/compute/api.py", line 501, in associate_floating_ip
instance['fixed_ip'])
File "/home/soren/src/openstack/nova/nova/nova/network/api.py", line 70, in associate_floating_ip
host = fixed_ip['network']['host']
File "/home/soren/src/openstack/nova/nova/nova/db/sqlalchemy/models.py", line 74, in __getitem__
return getattr(self, key)
File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/attributes.py", line 163, in __get__
instance_dict(instance))
File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/attributes.py", line 382, in get
value = callable_(passive=passive)
File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/strategies.py", line 578, in __call__
(mapperutil.state_str(state), self.key)
DetachedInstanceError: Parent instance <FixedIp at 0x5a13e90> is not bound to a Session; lazy load operation of attribute 'network' cannot proceed
======================================================================
ERROR: test_private_ipv6 (nova.tests.test_network.NetworkTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/soren/src/openstack/nova/nova/nova/tests/test_network.py", line 108, in test_private_ipv6
instance_ref['id'])
File "/home/soren/src/openstack/nova/nova/nova/db/api.py", line 361, in instance_get_fixed_address_v6
return IMPL.instance_get_fixed_address_v6(context, instance_id)
File "/home/soren/src/openstack/nova/nova/nova/db/sqlalchemy/api.py", line 107, in wrapper
return f(*args, **kwargs)
File "/home/soren/src/openstack/nova/nova/nova/db/sqlalchemy/api.py", line 810, in instance_get_fixed_address_v6
network_ref = network_get_by_instance(context, instance_id)
File "/home/soren/src/openstack/nova/nova/nova/db/sqlalchemy/api.py", line 95, in wrapper
raise exception.NotAuthorized()
NotAuthorized: None
I'm getting a number of failures when I run the test suite.
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= disassociate_ address (nova.tests. test_cloud. CloudTestCase) ------- ------- ------- ------- ------- ------- ------- ------- ------- soren/src/ openstack/ nova/nova/ nova/tests/ test_cloud. py", line 112, in test_associate_ disassociate_ address ip=address) soren/src/ openstack/ nova/nova/ nova/api/ ec2/cloud. py", line 758, in associate_address compute_ api.associate_ floating_ ip(context, instance_id, public_ip) soren/src/ openstack/ nova/nova/ nova/compute/ api.py" , line 501, in associate_ floating_ ip 'fixed_ ip']) soren/src/ openstack/ nova/nova/ nova/network/ api.py" , line 70, in associate_ floating_ ip 'network' ]['host' ] soren/src/ openstack/ nova/nova/ nova/db/ sqlalchemy/ models. py", line 74, in __getitem__ python2. 6/dist- packages/ sqlalchemy/ orm/attributes. py", line 163, in __get__ dict(instance) ) python2. 6/dist- packages/ sqlalchemy/ orm/attributes. py", line 382, in get (passive= passive) python2. 6/dist- packages/ sqlalchemy/ orm/strategies. py", line 578, in __call__ .state_ str(state) , self.key) eError: Parent instance <FixedIp at 0x5a13e90> is not bound to a Session; lazy load operation of attribute 'network' cannot proceed
ERROR: test_associate_
-------
Traceback (most recent call last):
File "/home/
public_
File "/home/
self.
File "/home/
instance[
File "/home/
host = fixed_ip[
File "/home/
return getattr(self, key)
File "/usr/lib/
instance_
File "/usr/lib/
value = callable_
File "/usr/lib/
(mapperutil
DetachedInstanc
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= test_network. NetworkTestCase ) ------- ------- ------- ------- ------- ------- ------- ------- ------- soren/src/ openstack/ nova/nova/ nova/tests/ test_network. py", line 108, in test_private_ipv6 ref['id' ]) soren/src/ openstack/ nova/nova/ nova/db/ api.py" , line 361, in instance_ get_fixed_ address_ v6 get_fixed_ address_ v6(context, instance_id) soren/src/ openstack/ nova/nova/ nova/db/ sqlalchemy/ api.py" , line 107, in wrapper soren/src/ openstack/ nova/nova/ nova/db/ sqlalchemy/ api.py" , line 810, in instance_ get_fixed_ address_ v6 get_by_ instance( context, instance_id) soren/src/ openstack/ nova/nova/ nova/db/ sqlalchemy/ api.py" , line 95, in wrapper NotAuthorized( )
ERROR: test_private_ipv6 (nova.tests.
-------
Traceback (most recent call last):
File "/home/
instance_
File "/home/
return IMPL.instance_
File "/home/
return f(*args, **kwargs)
File "/home/
network_ref = network_
File "/home/
raise exception.
NotAuthorized: None
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= test_virt. IptablesFirewal lTestCase) ------- ------- ------- ------- ------- ------- ------- ------- ------- soren/src/ openstack/ nova/nova/ nova/tests/ test_virt. py", line 306, in test_static_filters modify_ rules(self. in_rules)
ERROR: test_static_filters (nova.tests.
-------
Traceback (most recent call last):
File "/home/
out_rules = self.fw.
TypeError: modify_rules() takes exactly 3 arguments (2 given)
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= instances (nova.tests. test_cloud. CloudTestCase) ------- ------- ------- ------- ------- ------- ------- ------- ------- soren/src/ openstack/ nova/nova/ nova/tests/ test_cloud. py", line 282, in test_describe_ instances ']['availabilit yZone'] , 'zone1')
FAIL: test_describe_
-------
Traceback (most recent call last):
File "/home/
['placement
AssertionError: u'nova' != 'zone1'
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= update_ state (nova.tests. test_cloud. CloudTestCase) ------- ------- ------- ------- ------- ------- ------- ------- ------- soren/src/ openstack/ nova/nova/ nova/tests/ test_cloud. py", line 305, in test_instance_ update_ state assert_ (len(rv[ 'reservationSet ']) == 0)
FAIL: test_instance_
-------
Traceback (most recent call last):
File "/home/
self.
AssertionError
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= test_compute. ComputeTestCase ) ------- ------- ------- ------- ------- ------- ------- ------- ------- soren/src/ openstack/ nova/nova/ nova/tests/ test_compute. py", line 105, in test_run_terminate assertEqual( len(instances) , 1)
FAIL: test_run_terminate (nova.tests.
-------
Traceback (most recent call last):
File "/home/
self.
AssertionError: 3 != 1
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= up_to_date (nova.tests. test_misc. ProjectTestCase ) ------- ------- ------- ------- ------- ------- ------- ------- ------- soren/src/ openstack/ nova/nova/ nova/tests/ test_misc. py", line 53, in test_authors_ up_to_date
FAIL: test_authors_
-------
Traceback (most recent call last):
File "/home/
'%r not listed in Authors' % missing)
AssertionError: set([u'<email address hidden>', u'<nova@u4>', u'<email address hidden>', u'<email address hidden>', u'<email address hidden>']) not listed in Authors
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= report_ disabled_ hosts_as_ up (nova.tests. test_scheduler. SimpleDriverTes tCase) ------- ------- ------- ------- ------- ------- ------- ------- ------- soren/src/ openstack/ nova/nova/ nova/tests/ test_scheduler. py", line 196, in test_doesnt_ report_ disabled_ hosts_as_ up assertEqual( 0, len(hosts))
FAIL: test_doesnt_
-------
Traceback (most recent call last):
File "/home/
self.
AssertionError: 0 != 1
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= enabled_ hosts_as_ up (nova.tests. test_scheduler. SimpleDriverTes tCase) ------- ------- ------- ------- ------- ------- ------- ------- ------- soren/src/ openstack/ nova/nova/ nova/tests/ test_scheduler. py", line 215, in test_reports_ enabled_ hosts_as_ up assertEqual( 2, len(hosts))
FAIL: test_reports_
-------
Traceback (most recent call last):
File "/home/
self.
AssertionError: 2 != 3
------- ------- ------- ------- ------- ------- ------- ------- ------- -------
Ran 277 tests in 88.005s
FAILED (errors=3, failures=6)