Page MenuHomePhabricator

Improvements to cold-migrate script
Closed, ResolvedPublic

Description

From a few uses...

  1. Automatically reactivate / deactivate images if required
  2. Read credentials from env variables so that just sourcing ~/novaenv
  3. Probably more!

Event Timeline

Restricted Application added subscribers: Zppix, Aklapper. · View Herald Transcript

Change 299590 had a related patch set uploaded (by Andrew Bogott):
Include nova mysql password in novaenv.sh

https://gerrit.wikimedia.org/r/299590

Change 299602 had a related patch set uploaded (by Andrew Bogott):
cold-migrate password reform: use novaenv.sh for vitals wherever possible.

https://gerrit.wikimedia.org/r/299602

The password improvements are attached.

Deactivate/reactivate are not supported in the current version of the glance client running on labcontrol1001... looks like that wasn't added until M.

Change 299661 had a related patch set uploaded (by Andrew Bogott):
cold-migrate: activate/deactivate base image as needed.

https://gerrit.wikimedia.org/r/299661

Change 299590 merged by Yuvipanda:
Include nova mysql password in novaenv.sh

https://gerrit.wikimedia.org/r/299590

Change 299602 merged by Yuvipanda:
cold-migrate: use novaenv.sh for credentials

https://gerrit.wikimedia.org/r/299602

Change 299661 merged by Yuvipanda:
cold-migrate: activate/deactivate base image as needed.

https://gerrit.wikimedia.org/r/299661

Andrew subscribed.

@yuvi, happy with this now?

Yup! Thanks for the fixes!