yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #63030
[Bug 1680353] Re: Some ip addresses in unit tests are invalid
** Changed in: nova
Status: In Progress => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1680353
Title:
Some ip addresses in unit tests are invalid
Status in OpenStack Compute (nova):
Invalid
Bug description:
When I take py27 tests on nova, the error log is:
nova.tests.unit.api.openstack.compute.test_access_ips.AccessIPsAPIValidationTestV21.test_create_server_with_invalid_access_ipv4 [11.017594s] ... FAILED
Traceback (most recent call last):
File "nova/api/openstack/extensions.py", line 338, in wrapped
return f(*args, **kwargs)
File "nova/api/openstack/compute/servers.py", line 639, in create
**create_kwargs)
File "nova/hooks.py", line 154, in inner
rv = f(*args, **kwargs)
File "nova/compute/api.py", line 1612, in create
check_server_group_quota=check_server_group_quota)
File "nova/compute/api.py", line 1243, in _create_instance
key_pair)
File "nova/compute/api.py", line 1106, in _provision_instances
quotas.rollback()
File "/var/lib/jenkins/workspace/TCS-SRC-N-TEST/03-CODE/nova/nova/.tox/py27/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
self.force_reraise()
File "/var/lib/jenkins/workspace/TCS-SRC-N-TEST/03-CODE/nova/nova/.tox/py27/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
six.reraise(self.type_, self.value, self.tb)
File "nova/compute/api.py", line 1021, in _provision_instances
instance.update(base_options)
File "/var/lib/jenkins/workspace/TCS-SRC-N-TEST/03-CODE/nova/nova/.tox/py27/lib/python2.7/site-packages/oslo_versionedobjects/base.py", line 804, in update
setattr(self, key, value)
File "/var/lib/jenkins/workspace/TCS-SRC-N-TEST/03-CODE/nova/nova/.tox/py27/lib/python2.7/site-packages/oslo_versionedobjects/base.py", line 72, in setter
field_value = field.coerce(self, name, value)
File "/var/lib/jenkins/workspace/TCS-SRC-N-TEST/03-CODE/nova/nova/.tox/py27/lib/python2.7/site-packages/oslo_versionedobjects/fields.py", line 195, in coerce
return self._type.coerce(obj, attr, value)
File "/var/lib/jenkins/workspace/TCS-SRC-N-TEST/03-CODE/nova/nova/.tox/py27/lib/python2.7/site-packages/oslo_versionedobjects/fields.py", line 502, in coerce
result = IPAddress.coerce(obj, attr, value)
File "/var/lib/jenkins/workspace/TCS-SRC-N-TEST/03-CODE/nova/nova/.tox/py27/lib/python2.7/site-packages/oslo_versionedobjects/fields.py", line 489, in coerce
raise ValueError(six.text_type(e))
ValueError: failed to detect a valid IP address from '1.1.1.1.1.1'
I find that some addresses in unit tests are invalid, this should be
fixed.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1680353/+subscriptions
References