Page MenuHomePhabricator

WMCS: migrate python2 scripts to python3
Open, MediumPublic


In the WMCS team we use/have several python2 scripts that need to migrate to python3. This task is to track this work.

Things to take into account:

  • a given script may be more commonly used than others. If we use the script a lot we must ensure we don't leave it in a broken state.
  • I'm sure certain scripts may require almost no changes, because they already have py3 support or because is rather simple
  • some scripts may have module dependencies that may require changes in the dependency chain we install via puppet

This wikitech page contains many of the scripts we have (but we have even more!) with a brief description in some cases:
We can use this moment to generate some additional documentation bits for those lacking any.

  • wmcs-cold-migrate
  • wmcs-cold-nova-migrate
  • wmcs-live-migrate
  • wmcs-region-migrate
  • wmcs-region-migrate-security-groups
  • wmcs-region-migrate-quotas
  • wmcs-novastats-imagestats
  • wmcs-novastats-alltrusty
  • wmcs-novastats-flavorreport
  • wmcs-novastats-puppetleaks
  • wmcs-novastats-capacity
  • wmcs-novastats-imagestats
  • wmcs-novastats-dnsleaks
  • wmcs-novastats-proxyleaks
  • wmcs-makedomain
  • wmcs-wikireplica-dns
  • wmcs-spreadcheck


Related Gerrit Patches:
operations/puppet : productionmwopenstackclients: add python3 version
operations/puppet : move to python3

Event Timeline

aborrero created this task.Aug 6 2019, 11:35 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 6 2019, 11:35 AM
aborrero triaged this task as Medium priority.Aug 6 2019, 11:35 AM
aborrero moved this task from Inbox to Important on the cloud-services-team (Kanban) board.
bd808 added a project: Epic.

Change 565456 had a related patch set uploaded (by Andrew Bogott; owner: Andrew Bogott):
[operations/puppet@production] mwopenstackclients: add python3 version

Change 565458 had a related patch set uploaded (by Andrew Bogott; owner: Andrew Bogott):
[operations/puppet@production] move to python3

Change 565456 merged by Andrew Bogott:
[operations/puppet@production] mwopenstackclients: add python3 version

There are 4 versions of the wmcs-makedomain script (I just picked one at random):


Which one needs porting, or is it all of them?