Showing posts with label vcac appliance upgrade fails. Show all posts
Showing posts with label vcac appliance upgrade fails. Show all posts

Thursday, January 15, 2015

vCAC Server Appliance 6.x upgrade fails, the Update / Install runs for long time and fails

In my previous post, I discussed how to come out of the checking for updates loop. Sometimes after 3-4 hours the appliance was able to detect the updates and again the installation of updates would take a very long time and fail after couple of hour. Good amount of space was available on all VM partitions.

Here is what I did to fix this issue,

 * Before jumping on to the solution, make sure you backup below files
  1.  /etc/vcac/
  2. /etc/vco/
  3. /etc/apache2/
  4. /etc/rabitmq/

 Important: Backup "ovf-env.xml" located at "/opt/vmware/etc/vami", in my case this file was empty after couple of reboots. This file is required while the upgrade process runs post-install scripts.

Don’t forget to take snapshot of VM before starting the upgrade!!!

Time(NTP) is synchronized on all machines.

Solution:

Uninstall the Vmware tools. As its an Appliance the procedure is different.

1. Take ssh connection to vCAC Server Appliance.

2. Make note of the vmware tools RPMs installed by running the below command

lab-vcac-server:~ # rpm -qa | grep -i vmware-tools

vmware-tools-libraries-nox-9.4.6-1.sles11
vmware-tools-core-9.4.6-1.sles11
vmware-tools-vmxnet-common-9.4.6-5.sles11
vmware-tools-vsock-kmp-default-9.5.6.0_3.0.76_0.11-5.sles11
vmware-tools-plugins-deployPkg-9.4.6-1.sles11
vmware-tools-plugins-powerOps-9.4.6-1.sles11
vmware-tools-vmxnet-kmp-trace-2.0.15.0_3.0.76_0.11-5.sles11
vmware-tools-guestlib-9.4.6-1.sles11
vmware-tools-services-9.4.6-1.sles11
vmware-tools-vmci-kmp-default-9.5.13.0_3.0.76_0.11-5.sles11
vmware-tools-vsock-common-9.4.6-5.sles11
vmware-tools-vmxnet-kmp-default-2.0.15.0_3.0.76_0.11-5.sles11
vmware-tools-plugins-autoUpgrade-9.4.6-1.sles11
vmware-tools-plugins-grabbitmqProxy-9.4.6-1.sles11
vmware-tools-plugins-hgfsServer-9.4.6-1.sles11
vmware-tools-plugins-timeSync-9.4.6-1.sles11
vmware-tools-plugins-vmbackup-9.4.6-1.sles11
vmware-tools-esx-nox-9.4.6-1.sles11
vmware-tools-esx-kmods-default-9.4.6-1.sles11
vmware-tools-foundation-9.4.6-1.sles11
vmware-tools-vmci-common-9.4.6-5.sles11
vmware-tools-vmci-kmp-trace-9.5.13.0_3.0.76_0.11-5.sles11
vmware-tools-plugins-guestInfo-9.4.6-1.sles11
vmware-tools-plugins-vix-9.4.6-1.sles11
vmware-tools-vsock-kmp-trace-9.5.6.0_3.0.76_0.11-5.sles11

3. Now run the below command to uninstall all vmware-tools RPMs
# zypper remove 'vmware-tools-*'

This command works for all SLES 11 editions.

4. Confirm all the RPM are gone by running the command rpm -qa | grep -i vmware-tools

This will uninstall the vmware tools.

5. Now go ahead and Run the "Check Updates" it would take 20-30 seconds and click on "Install Updates" which would take couple of minutes.

At the final stage of upgrade, the appliance runs the post-upgrade scripts which would look for "ovf-env.xml" which has vCAC Server Appliance's network information, vm description, SSH settings and vsphere port group information. Sometimes after reboot this file goes blank, if that happens it would again fail the upgrade. Make sure you backup this file.


After the successful upgrade, the vmware tools are installed automatically. I hope this post was informative.

vCAC Server Appliance 6.x: Check Updates status stuck on "Checking for available updates" forever

I encountered this issue while upgrading vCAC 6.1 to vRealize Automation 6.2. As per the procedure, I mounted the upgrade updates ISO image to the vCAC Server Appliance and clicked on Check Updates and it remained there forever.



These were steps I tried initially to stop this with no luck!

Restarting the vCAC server services

Rebooting the Appliance

Migrating Appliance on different host

Even after reboot, the status was "Checking for available updates". So basically there was no option on console or command to come out of this loop.

Solution:

The solution is to fool the appliance to stop looking for updates in never ending loop. Follow the below steps to stop this

1. Click on the Update tab and Settings tab.

2. Under Update Settings Select "Automatic Check for Updates".


3. Set the next coming time slot, the options are available in hourly gap and click on save settings.

4. Wait till the appliance passes the selected time slot and it will automatically come out of the loop.

Important: Make sure you choose the option which you are not using to update, i.e., if I am using the CD-ROM option then I would select "Use Default Repository" or "Use Specified Repository" to break the loop.

This was tricky and simple. Hope this was informative.