This procedure should be followed when new machines is being added to the Sepia lab.
cd /path/to/ceph-sepia-secrets
git checkout master && git pull
git checkout -b wip-new-hosts
(or similar branch name)ansible/inventory/sepia
ansible/inventory/group_vars/
Run this role to add the new machines DNS “A records” to the sepia dns server according to the sepia inventory
ansible-playbook nameserver.yml --tags=“records”
Run this role to create dhcp leases for the new machines according to the sepia inventory
ansible-playbook dhcp-server.yml
Check if the switch ports(BMC/front) may need to be changed
You can tell by sshing to store01.front.sepia.ceph.com and running zgrep -i "ac:1f:6b:c6:5a:7" /var/log/messages*
the DHCP server listens on all interfaces. and bond0 is on the front vlan. The requests should be coming in on br-ipmi for BMCs if not that tells us the switch BMC port is probably on the wrong vlan.
If thats the case, we need a switch port config change and we do it according to this wiki - https://wiki.sepia.ceph.com/doku.php?id=services:networking
*To submit the ticket for the IT to change the vlan we will write the port number according to the wiki, the port numbers should be documented in the racking ticket
The default Supermicro BMC username/password is ADMIN:ADMIN. Dell is root:calvin
You can use this playbook to change the login credentials: https://github.com/ceph/ceph-cm-ansible/blob/master/tools/set-bmc-static.yml
setup_user: true
use_dhcp: true
ansible-playbook tools/set-bmc-static.yml --limit $NEW_MACHINE_TYPE
Setting them to boot to the bios for editing boot device and enabling PCI slots were the 10GbE nics are connected
ipmitool -I lanplus -U inktank -P ApGNXcA7 -H machine01.ipmi.sepia.ceph.com chassis bootdev bios ipmitool -I lanplus -U inktank -P ApGNXcA7 -H machine01.ipmi.sepia.ceph.com chassis power cycle
ansible-playbook cobbler.yml --tags systems
Skip if these are testnodes.
Send an e-mail to “sepia@ceph.io” So we will know which OS's to install on the new machines
for example:
Hey all, The new machines "machines" are almost ready. There are 6 of them. What operating system(s) would you all like installed on them?
we will boot one of the machines to inktank-rescue cobbler profile
And By running lsblk we will find out if the drive we want to install the OS on is /dev/sda
According to the requested os versions from step 8 image the machines
ansible-playbook common.yml --limit="machines"