Page MenuHomePhabricator

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

Description

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

StatusSubtypeAssignedTask
ResolvedPetrb
OpenNone

Event Timeline

this is how .net was setup in past

 9  2018-12-23 23:59:53 wget -qO- https://packages.microsoft.com/keys/microsoft.asc | 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 https://packages.microsoft.com/config/debian/9/prod.list
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 claimed this task.

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