User Tools

Site Tools


testnodereimage

Reimaging Testnodes

Summary

Testnodes can be reimaged using the Cobbler Web UI or CLI. Both methods are documented here. Generally, the Infra team will handle reimaging broken or new testnodes.

Cobbler Web UI

If you don't already have a Cobbler Web UI account, request one by filing a ticket.

Single Testnode

  1. Click Systems on the left sidebar
  2. Locate the system you want to reimage
    1. If desired, increase the Items/page dropdown in the upper right corner
  3. Click the system's name under the Name header
  4. Set the Profile dropdown to your desired distro/profile
  5. Check Netboot Enabled
  6. Click Save
  7. Power cycle the testnode

Multiple Testnodes

  1. Click Systems on the left sidebar
  2. Check the boxes next to the systems you want to reimage
  3. If desired, select Change profile under the Batch Actions drop-down at the top
    1. Enter the desired profile name
    2. Click OK
  4. Check the boxes next to the systems you want to reimage (again if you changed the Profile)
  5. Select Netboot Enabled under the Batch Actions drop-down at the top
  6. Click OK
  7. Power cycle the testnodes you wish to reimage

Cobbler CLI

You will need to have sudo access on the cobbler host. This is typically reserved for Infra Admins.

ssh cobbler.front.sepia.ceph.com

# To see a list of available Profiles/Distros,
sudo cobbler profile list

# To list the systems
sudo cobbler system list

# After you've decided on a profile,
sudo cobbler system edit --name $SHORT_HOSTNAME --profile=$PROFILE_NAME --netboot-enabled=1

# Example:
sudo cobbler system edit --name smithi001 --profile=CentOS-7.2-x86_64 --netboot-enabled=1

# Example for reimaging a large number of testnodes at once:
for host in smithi{001..030}; do sudo cobbler system edit --name $host --profile=CentOS-7.2-x86_64 --netboot-enabled=1; ipmitool -I lanplus -U inktank -P XXXXX -H $host.ipmi.sepia.ceph.com chassis power cycle; done

Now power cycle the testnode.

testnodereimage.txt · Last modified: 2016/08/12 17:55 by dgalloway