This is an old revision of the document!
Table of Contents
FOG - WIP
Summary
We're currently testing FOG. These are just some quick how-tos and notes.
The deployment of a FOG server could be mostly automated via ansible. I wrote a playbook to take the ansible inventory and make it into a FOG-consumable CSV but it still has to be manually uploaded via the web UI.
Zack is currently working on a teuthology branch that'll allow us to run a proof-of-concept teuthology run where the testnodes got reimaged after every job.
Our instance is currently hosted at http://172.21.13.245/fog. Login is fog:password.
How-Tos
Capturing an OS image
Each testnode machine type will need an image for each distro version. e.g., mira_ubuntu_16.04, smithi_ubuntu_14.04, etc.
To capture an image:
- Create the image in FOG
- Name should be in a $MACHINETYPE_$OS_$VERSION format
- e.g., mira_ubuntu_16.04, smithi_ubuntu_14.04, etc.
- Set Operating System to Linux
- The rest of the defaults are fine
- Reimage a testnode with the OS image you want to capture
- Do this using cobbler
- Once the testnode has been reimaged and you've confirmed ceph-cm-ansible ran successfully, update DHCP
ssh store01.front.sepia.ceph.comsudo -i- Edit
/etc/dhcp/dhcpd.front.conf - Find the entry for the testnode you just reimaged and add
next-server 172.21.13.245; filename "/undionly.kpxe"; # Example: host mira082 { hardware ethernet 00:25:90:09:e2:0a; fixed-address 172.21.7.120; next-server 172.21.13.245; filename "/undionly.kpxe"; }
- Restart dhcpd
service dhcpd restart
- Back in FOG, open the host entry (Host Management → search for hostname)
- Set the Host Image to the image you want to capture
- Click UPDATE
- On the left sidebar, click Basic Tasks
- Click Capture
- Now power cycle the testnode
The testnode will reboot and PXE boot to the FOG server. It will automatically run its LiveOS that will capture the image and upload it to FOG.
Repeat this process for each distro and machine type you want to capture an image of. Be sure to comment the changes in the DHCP config each time so you can PXE boot and reimage via Cobbler.
