Impacts after migration:
- [1] still reachable as before
- the machine shall be reached at riverside.internal.admin.swh.network (ssh).
Note:
Node exposing sentry service: riverside.internal.softwareheritage.org [2].
[1] https://sentry.softwareheritage.org
[2] https://inventory.internal.admin.swh.network/virtualization/virtual-machines/12/
Step-by-step plan:
- [x] Gandi: Reduce sentry.s.o CNAME ttl early (days before migration starts, e.g. ~300s)
- [x] Inventory:
- [x] Reserve new ip in vlan 442
- [x] Deprecate the ip from vlan 440
- [ ] D7045: Puppet manifest adaptations for moving the node to the admin vlan [4]
- [ ] Firewall: Open rule to allow access from pergamon to riverside:9000
- [ ] On {pergamon, riverside, rp1} [5]
- [ ] Stop puppet agent
- [ ] On pergamon
- [ ] Deploy new puppet manifest change (last time we forgot ¯\_(ツ)_/¯)
- [ ] On riverside:
- [ ] Update the ip to the new vlan442 ip (192.168.50.70)
- [ ] Modify directly through the proxmox ui (not `terraform`-ed yet)
- [ ] Connect through ssh and adapt /etc/network/interfaces with new ip
- [ ] Adapt hardware entry about network (proxmox ui) to change from vmbr0 to vmbr442
- [ ] Update the hostname to riverside.i.a.s.n
- [ ] Remove the puppet certificates `rm -rf /var/lib/puppet/ssl` (agent node)
- [ ] Update the facts `/etc/facter/facts.d/deployment.yaml` to `admin`
- [ ] Reboot machine (poweroff, start)
- [ ] Run puppet with `puppet agent --test --fqdn riverside.internal.admin.swh.network`
- [ ] Install necessary facts for cloud-init to stop tampering with /etc/hosts
- [ ] On pergamon:
- [ ] Run puppet agent
- [ ] Decommission riverside.i.s.o certificate
- [ ] On rp1:
- [ ] Run puppet agent
- [ ] Gandi: Change sentry.s.o CNAME value from `pergamon` to `swh-rproxy3.inria.fr.` (to target the admin reverse proxy)
- [ ] Inventory:
- [ ] Change the reserved ip status to active
- [ ] Update sentry node with its new ip [1]
- [ ] Terraform:
- [ ] Reference riverside node in sysadm terraform admin manifest [3]
[3] https://forge.softwareheritage.org/source/swh-sysadmin-provisioning/browse/master/proxmox/terraform/admin/admin.tf
[4] Check the diff description/code for more details
[5]
```
$ clush -b -w pergamon -w riverside -w rp1.internal.admin.swh.network "puppet agent --disable T3891"
```