[Yahoo-eng-team] [Bug 1684861] Re: Mitaka -> Newton: Database online_data_migrations in newton fail due to missing keypairs

2017-08-11 Thread Matt Riedemann
** Also affects: nova/ocata
   Importance: Undecided
   Status: New

** Also affects: nova/newton
   Importance: Undecided
   Status: New

** Changed in: nova
 Assignee: (unassigned) => Dan Smith (danms)

** Changed in: nova
   Status: In Progress => Fix Released

** Changed in: nova
   Importance: Undecided => Low

** Changed in: nova/newton
   Status: New => In Progress

** Changed in: nova/ocata
   Status: New => Fix Released

** Changed in: nova/ocata
 Assignee: (unassigned) => Lee Yarwood (lyarwood)

** Changed in: nova/ocata
   Importance: Undecided => Low

** Changed in: nova/newton
   Importance: Undecided => Low

** Changed in: nova
   Importance: Low => Medium

** Changed in: nova/ocata
   Importance: Low => Medium

** Changed in: nova/newton
   Importance: Low => Medium

** Changed in: nova/newton
 Assignee: (unassigned) => Lee Yarwood (lyarwood)

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

Title:
  Mitaka -> Newton: Database online_data_migrations in newton fail due
  to missing keypairs

Status in OpenStack Compute (nova):
  Fix Released
Status in OpenStack Compute (nova) newton series:
  In Progress
Status in OpenStack Compute (nova) ocata series:
  Fix Released

Bug description:
  Upgrading the deployment from Mitaka to Newton.
  This bug blocks people from upgrading to Ocata because the database migration 
for nova fails.

  Running nova newton 14.0.5, the database is 334

  root@moby:/backups# nova-manage db online_data_migrations
  Option "verbose" from group "DEFAULT" is deprecated for removal.  Its value 
may be silently ignored in the future.
  Running batches of 50 until complete
  50 rows matched query migrate_flavors, 50 migrated
  20 rows matched query migrate_flavors, 20 migrated
  Error attempting to run 
  30 rows matched query migrate_instances_add_request_spec, 30 migrated
  Error attempting to run 
  50 rows matched query migrate_instances_add_request_spec, 50 migrated
  Error attempting to run 
  50 rows matched query migrate_instances_add_request_spec, 50 migrated
  Error attempting to run 
  50 rows matched query migrate_instances_add_request_spec, 50 migrated
  Error attempting to run 
  50 rows matched query migrate_instances_add_request_spec, 50 migrated
  Error attempting to run 
  50 rows matched query migrate_instances_add_request_spec, 50 migrated
  Error attempting to run 
  50 rows matched query migrate_instances_add_request_spec, 50 migrated
  Error attempting to run 
  50 rows matched query migrate_instances_add_request_spec, 50 migrated
  Error attempting to run 
  50 rows matched query migrate_instances_add_request_spec, 50 migrated
  Error attempting to run 
  50 rows matched query migrate_instances_add_request_spec, 50 migrated
  Error attempting to run 
  50 rows matched query migrate_instances_add_request_spec, 50 migrated
  Error attempting to run 
  /usr/lib/python2.7/dist-packages/pkg_resources/__init__.py:188: 
RuntimeWarning: You have iterated over the result of 
pkg_resources.parse_version. This is a legacy behavior which is inconsistent 
with the new version class introduced in setuptools 8.0. In most cases, 
conversion to a tuple is unnecessary. For comparison of versions, sort the 
Version instances directly. If you have another use case requiring the tuple, 
please file a bug with the setuptools project describing that need.
stacklevel=1,
  50 rows matched query migrate_instances_add_request_spec, 5 migrated
  2017-04-20 14:48:36.586 396 ERROR nova.objects.keypair 
[req-565cbe62-030b-4b00-b9db-5ee82117889b - - - - -] Some instances are still 
missing keypair information. Unable to run keypair migration at this time.
  5 rows matched query migrate_aggregates, 5 migrated
  5 rows matched query migrate_instance_groups_to_api_db, 5 migrated
  2 rows matched query delete_build_requests_with_no_instance_uuid, 2 migrated
  Error attempting to run 
  50 rows matched query migrate_instances_add_request_spec, 0 migrated
  2017-04-20 14:48:40.620 396 ERROR nova.objects.keypair 
[req-565cbe62-030b-4b00-b9db-5ee82117889b - - - - -] Some instances are still 
missing keypair information. Unable to run keypair migration at this time.
  root@moby:/backups#

  Adding a 'raise' after 
https://github.com/openstack/nova/blob/stable/newton/nova/cmd/manage.py#L896
  you can see:

  root@moby:/backups# nova-manage db online_data_migrations
  Option "verbose" from group "DEFAULT" is deprecated for removal.  Its value 
may be silently ignored in the future.
  Running batches of 50 until complete
  Error attempting to run 
  error: 'NoneType' object has no attribute 'key_name'

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : yahoo-eng-team@lists.launchpad.net
Unsubscribe : 

[Yahoo-eng-team] [Bug 1684861] Re: Mitaka -> Newton: Database online_data_migrations in newton fail due to missing keypairs

2017-06-29 Thread Sean Dague
Found open reviews for this bug in gerrit, setting to In Progress.

review: https://review.openstack.org/463366 in branch: stable/newton


** Changed in: nova
   Status: Invalid => In Progress

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

Title:
  Mitaka -> Newton: Database online_data_migrations in newton fail due
  to missing keypairs

Status in OpenStack Compute (nova):
  In Progress

Bug description:
  Upgrading the deployment from Mitaka to Newton.
  This bug blocks people from upgrading to Ocata because the database migration 
for nova fails.

  Running nova newton 14.0.5, the database is 334

  root@moby:/backups# nova-manage db online_data_migrations
  Option "verbose" from group "DEFAULT" is deprecated for removal.  Its value 
may be silently ignored in the future.
  Running batches of 50 until complete
  50 rows matched query migrate_flavors, 50 migrated
  20 rows matched query migrate_flavors, 20 migrated
  Error attempting to run 
  30 rows matched query migrate_instances_add_request_spec, 30 migrated
  Error attempting to run 
  50 rows matched query migrate_instances_add_request_spec, 50 migrated
  Error attempting to run 
  50 rows matched query migrate_instances_add_request_spec, 50 migrated
  Error attempting to run 
  50 rows matched query migrate_instances_add_request_spec, 50 migrated
  Error attempting to run 
  50 rows matched query migrate_instances_add_request_spec, 50 migrated
  Error attempting to run 
  50 rows matched query migrate_instances_add_request_spec, 50 migrated
  Error attempting to run 
  50 rows matched query migrate_instances_add_request_spec, 50 migrated
  Error attempting to run 
  50 rows matched query migrate_instances_add_request_spec, 50 migrated
  Error attempting to run 
  50 rows matched query migrate_instances_add_request_spec, 50 migrated
  Error attempting to run 
  50 rows matched query migrate_instances_add_request_spec, 50 migrated
  Error attempting to run 
  50 rows matched query migrate_instances_add_request_spec, 50 migrated
  Error attempting to run 
  /usr/lib/python2.7/dist-packages/pkg_resources/__init__.py:188: 
RuntimeWarning: You have iterated over the result of 
pkg_resources.parse_version. This is a legacy behavior which is inconsistent 
with the new version class introduced in setuptools 8.0. In most cases, 
conversion to a tuple is unnecessary. For comparison of versions, sort the 
Version instances directly. If you have another use case requiring the tuple, 
please file a bug with the setuptools project describing that need.
stacklevel=1,
  50 rows matched query migrate_instances_add_request_spec, 5 migrated
  2017-04-20 14:48:36.586 396 ERROR nova.objects.keypair 
[req-565cbe62-030b-4b00-b9db-5ee82117889b - - - - -] Some instances are still 
missing keypair information. Unable to run keypair migration at this time.
  5 rows matched query migrate_aggregates, 5 migrated
  5 rows matched query migrate_instance_groups_to_api_db, 5 migrated
  2 rows matched query delete_build_requests_with_no_instance_uuid, 2 migrated
  Error attempting to run 
  50 rows matched query migrate_instances_add_request_spec, 0 migrated
  2017-04-20 14:48:40.620 396 ERROR nova.objects.keypair 
[req-565cbe62-030b-4b00-b9db-5ee82117889b - - - - -] Some instances are still 
missing keypair information. Unable to run keypair migration at this time.
  root@moby:/backups#

  Adding a 'raise' after 
https://github.com/openstack/nova/blob/stable/newton/nova/cmd/manage.py#L896
  you can see:

  root@moby:/backups# nova-manage db online_data_migrations
  Option "verbose" from group "DEFAULT" is deprecated for removal.  Its value 
may be silently ignored in the future.
  Running batches of 50 until complete
  Error attempting to run 
  error: 'NoneType' object has no attribute 'key_name'

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp