Page MenuHomePhabricator

Netbox: modify move-server script to allow for 1G->10G upgrade during process
Open, LowPublic

Description

We are currently planning to migrate hosts in eqiad rows A and B from the old Juniper switches in those rows - some of which only have 1G ports - to the replacement Nokia devices, which support 1/10/25G on all ports. In particular we will be moving many wikikube-worker hosts as part of T432652: eqiad row A&B host migration details request for Service Ops.

I'm conscious that we also have a request to move as many wikikube-worker nodes from 1G to 10G uplinks as we can in T440696: Eqiad worker nodes should be connected to 10G NICs.

So I think what might be a good idea is if we modify the Move specific servers' uplinks from old to new ToR Netbox script to add a tickbox to "upgrade 1G links to 10G". If ticked the script will do the same as it does now, but set the 'type' for moved links to '10gbase-x-sfpp'. It should only allow that if the destination switch is a Nokia (where 1G and 10G can be mixed).

This would allow us to do move certain hosts and upgrade them from 1G to 10G connectivity in the process. On the host side they would still need to be reimaged to configure the 10G interface (or have /etc/network/interfaces manually updated), but it might be easier than moving at 1G and then upgrading to 10G separately.

Event Timeline

cmooney triaged this task as Low priority.

Cathal and I chatted about this in IRC so I'm summarizing my points here for task visibility.

I don't really wanna slow down the migration of the switches with reimaging. I rather we handle this one by one after the fact.

If it was something where we can cookbook batch a script that did the NIC only and didn't require reimage then we could handle directly. If it required a full downtime and reimage, versus the 2 minute downtime to move the port, I rather push this to its own project per host rather than the switch migration.

Edit addition.

I understand this a bit better, it would be mainly for the 85 wikikube hosts in rows A/B

  1. new 10G connections run to the new switches, connected to the 10G ports on wikikube.
  2. serviceops reimages to the new port, disables old port, brings existing reimaged host online on new switch
  3. update to task, old port can be killed by dc/netops

At first I didn't like the idea but now I"m coming around to it after a bit of discussion and clarification of scope. So this would work nicely for the 85 wikikube hosts and leave their migration to ServiceOps scheduling during the migration window.

I understand this a bit better, it would be mainly for the 85 wikikube hosts in rows A/B

It wouldn't actually be them all, just the 20 wikikube-workers in A/B with 10G NICs listed in T440696

  1. new 10G connections run to the new switches, connected to the 10G ports on wikikube.
  2. serviceops reimages to the new port, disables old port, brings existing reimaged host online on new switch
  3. update to task, old port can be killed by dc/netops

I think what we could do is have those 20 hosts migrated in advance - through the speed upgrade under T440696. So by the time you get to T432652 the ask for those is just to remove the old 1G cable.

It's definitely optional, I can also see why it's adding complexity. The speed upgrade task being landed on us in parallel to the migration one kind of makes it tricky no matter what way we go.

Sorry @RobH @Jclark-ctr if I wasn't clear here what I had imagined we use this for is to help us get T432652 over the line - moving the identified wikikube-workers in rows A/B in advance of tackling T440696.

  1. John pre-cables the identified wikikube-workers in rows A and B with a 10G DAC to the equivalent number Nokia port (+1)
  2. At an arranged time service ops depool a number of these in batches allowing for the move/upgrade
  3. We run the Netbox script to move the switch connections for those servers
    • Ticking the new box to set the Nokia port to 10G rather than copying 1G speed from source port
  4. We run Homer against the Nokia switch(es) to configure these 10G ports
  5. We update /etc/network/interfaces on the servers to reference the 10G interface name and reboot the box
  6. We reboot the server
  7. We run Homer against the Juniper switch(es) to disable the old 1G ports
  8. Check all connectivity is ok
  9. Repool the servers
  10. Remove those servers from the list we need to migrate under T440696

If we are going to instead tackle the 10G upgrade after the host migration to the Nokias then it doesn't make a huge difference.

However on balance I feel the easiest way to complete the 10G upgrade for these is to take advantage of the new switches being ready in parallel, and do it in advance of the other move. The advantage doing it that way is we don't need to co-ordinate the new cable installs with the Service Ops / Netbox / Switch changes. So DC-Ops can pre-run the cables and let the other SREs get on with it.