Page MenuHomePhabricator

migrate wm-bot from server wm-bot2 to wm-bot
Closed, ResolvedPublic


Long time ago we had old server called wm-bot, then we had to reimage it and labs don't support renames, so wm-bot2 was created and wm-bot deleted.

Now we needed upgrade from debian 8 to debian 9 so new server wm-bot was created. Nothing is running there though

  • setup .net core runtime
  • figure out if we can get instance with more storage, this is not enough
  • check if postgres and mysql connection works fine
  • check if all network ports we need to use are properly configured
  • check all locations - are html pages, and logs on shared storage? do we need to copy them?
  • announce the migration somehow - bot will be down for hours
  • shutdown wm-bot on wm-bot2
  • transfer all configuration from wm-bot2
  • copy logs if needed
  • start wm-bot on wm-bot
  • create nat proxy on old instance for NetCat so that services with hardcoded IP still work

Related Objects


Event Timeline

Petrb created this task.May 19 2019, 11:38 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMay 19 2019, 11:38 AM
Petrb triaged this task as High priority.May 19 2019, 11:38 AM
Petrb updated the task description. (Show Details)May 19 2019, 11:50 AM

this is how .net was setup in past

 9  2018-12-23 23:59:53 wget -qO- | gpg --dearmor > microsoft.asc.gpg
10  2018-12-23 23:59:53 sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/
11  2018-12-23 23:59:53 wget -q
12  2018-12-23 23:59:53 sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list
13  2018-12-23 23:59:53 sudo chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg
14  2018-12-23 23:59:54 sudo chown root:root /etc/apt/sources.list.d/microsoft-prod.list
Petrb updated the task description. (Show Details)May 19 2019, 7:33 PM
Petrb updated the task description. (Show Details)Feb 14 2020, 10:34 AM
Petrb closed this task as Resolved.Feb 14 2020, 10:53 AM
Petrb claimed this task.

NAT is not going to be possible as old instance is going to be deleted