← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1116236] Re: DB Migration truncates long Mixed IPv4-IPv6 Addresses

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => grizzly-3

-- 
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/1116236

Title:
  DB Migration truncates long Mixed IPv4-IPv6 Addresses

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  As part of bp migration-testing-with-data we are working on expand ip
  addresses tests to assure that it works with the longest kinds of
  IPv6, mixed IPv4 and IPv6 and edge values.

  So when trying with a mixed address value like
  2002:2002:2002:2002:2002:2002:192.168.254.254 (which is a format
  defined at RFC4291 http://tools.ietf.org/html/rfc4291#section-2.2 Text
  Representation of Addresses, item 3) it fails with the follow trace:

  ======================================================================
  FAIL: nova.tests.test_migrations.TestMigrations.test_mysql_opportunistically
  ----------------------------------------------------------------------
  _StringException: Empty attachments:
    pythonlogging:'nova'

  Traceback (most recent call last):
    File "/opt/stack/nova/nova/tests/test_migrations.py", line 243, in test_mysql_opportunistically
      self._walk_versions(engine, False, False)
    File "/opt/stack/nova/nova/tests/test_migrations.py", line 282, in _walk_versions
      self._migrate_up(engine, version, with_data=True)
    File "/opt/stack/nova/nova/tests/test_migrations.py", line 330, in _migrate_up
      check(engine, data)
    File "/opt/stack/nova/nova/tests/test_migrations.py", line 428, in _check_149
      self.assertIn(row['cidr'], iplist)
  MismatchError: '2002:20002:2002:2002:2002:2002:192.168.' not in ['127.0.0.1', '255.255.255.255', '2001:db8::1:2', '::1', '255.255.255.255', 'abcd:ef01:2345:6789:abcd:ef01:2345:6789', '2002:20002:2002:2002:2002:2002:192.168.254.254']

  So the migrated value is truncated.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1116236/+subscriptions