Pages

Thursday, February 19, 2015

Red Hat Satellite - 5.7 - Kickstart hangs on running post installation scripts

After I upgraded from Satellite 5.6 to 5.7, I was unable to kickstart any new servers using my existing kickstart scripts.  The kickstart would start, do all my partitioning and package installation and then hang on "Running post installation scripts."  I let it sit for over 30 minutes, no go.

It did not register to my Satellite server yet, so I knew it had not processed the entire kickstart file yet.  I started making a new kickstart profile to see if it was something that didn't convert well in the upgrade.  When I got to the scripts part, I saw a new post script listed called "Registration and server actions"

I could not do anything to the script besides reorder. I reordered the scripts so that the weird script was on the bottom, updated the profile and tried to kickstart again. This time, it worked.

TLDR: Put the "Registration and server actions" post script on the bottom of your kickstart script listing.

Example:

Monday, February 2, 2015

Red Hat Satellite 5 - Ran out of disk after 5.7 update

I'm still using Satellite 5 in production because Satellite 6 is just not ready yet for prime time use. At least, not in my opinion.  The recent Satellite 5.7 update change the entire interface to look a lot more modern as well as a bunch of bug fixes.

The 5.6 to 5.7 update went perfectly for me. Nothing broke and I did not lose any functionality.  However, today my Satellite 5 server stopped working. I could not get to the web interface and client servers could not install packages.  Sign into the server and see that the / partition was full.

Some searching turned up, that one of the 5.7 changes was that they moved the location of where postgres was keeping its data. The upgrade process moved all of the data out of the old location (where I had a separate mount point) and moved it to a new location in /opt, where I don't have enough disk.

  • Old location in 5.6
    • /var/lib/pgsql
  • New location in 5.7
    • /opt/rh/postgresql92/root/var/lib/pgsql
I made sure Satellite was fully stopped
  • rhn-satellite stop
Then, I copied the data directory from the new location to the old location. After that, I umounted /var/lib/pgsql, changed the mount point in fstab and remounted it in the new location.  Started satellite up
  • rhn-satellite start
Once I verified that Satellite was back and happy. I stopped the Satellite, umounted the partition and deleted everything that was in that data directory so my / partition would get some space back. Remounted pgsql and started satellite. Everything is happy.