Page MenuHomePhabricator

codfw: 3 VM request for ML team etcd
Closed, ResolvedPublic

Description

Site/Location: CODFW
Number of systems: 3
Service: ml-etcd
Networking Requirements: internal network
Processor Requirements: 1 core
Memory: 3G
Disks: 1x20G for /
Other Requirements: Row diversity (each machine on a different row)

Machine names: ml-etcd2001 - ml-etcd2003

Event Timeline

@klausman Could you add the new cluster prefixes for ml (ml-etcd and others) to https://wikitech.wikimedia.org/wiki/Infrastructure_naming_conventions#Servers ? that would be nice, thank you!

Dzahn removed Dzahn as the assignee of this task.Jan 27 2021, 9:38 PM
Legoktm triaged this task as Medium priority.Jan 27 2021, 11:24 PM

$ sudo cookbook sre.ganeti.makevm --vcpus 1 --memory 3 --disk 20 codfw_B ml-etcd2001.codfw.wmnet
IPv4: 10.192.16.44/22
IPv6: 2620:0:860:102:10:192:16:44/64
MAC: aa:00:00:71:6a:f3

$ sudo cookbook sre.ganeti.makevm --vcpus 1 --memory 3 --disk 20 codfw_B ml-etcd2002.codfw.wmnet
IPv4: 10.192.16.45/22
IPv6: 2620:0:860:102:10:192:16:45/64
MAC: aa:00:00:a7:b7:49

$ sudo cookbook sre.ganeti.makevm --vcpus 1 --memory 3 --disk 20 codfw_D ml-etcd2003.codfw.wmnet
IPv4: 10.192.48.12/22
IPv6: 2620:0:860:104:10:192:48:12/64
MAC: aa:00:00:8e:8a:8d

(yes, I accidentally created the second VM on the B row instead of C, but I don't think it's really a problem)

Looks good to me! From here you can look at the "Planned -> Staged" step in the Server Lifecycle page:

https://wikitech.wikimedia.org/wiki/Server_Lifecycle#Planned_-%3E_Staged

You will need to add the MAC addresses above to DHCP (add the hosts to files/dhcpd/linux-host-entries.ttyS0-115200 in modules/install_server) and run puppet on the codfw install server, install2003.

You will also have to pick a partman recipe and add your hosts to install_server/files/autoinstall/netboot.cfg

After that you can start up the VMs and connect to console (sudo gnt-instance console <FQDN>) and watch them boot to PXE into the Debian installer.

After that is done, set boot order back to disk and start them one more time (https://wikitech.wikimedia.org/wiki/Ganeti#Set_boot_order_to_disk)

Now add to site.pp in puppet with role(insetup), run puppet at least once, later replace with your actual puppet role.

Feel free to ping me on IRC with any questions.

All machines are now base installed (puppet-runs done with insetup).

akosiaris claimed this task.
akosiaris subscribed.

Resolving per last comment. Feel free to reopen though!