VMware Cloud Community
V8888
Contributor
Contributor

How to uninstall or update guest agents on linux templates?

How to uninstall or update vCAC guest agents on linux templates? Apparently only the installation instructions exist out there on the KBs . If we try to overwrite the existing version, we get this error!

[root@localhost tmp]# rpm -ivh gugent-6.1.0-073014.x86_64.rpm

Preparing...                ########################################### [100%]

        file /usr/bin/gugent from install of gugent-6.1.0-073014.x86_64 conflict                                                                              s with file from package gugent-6.0.1-71.x86_64

        file /usr/share/gugent/VRM_daemon.pl from install of gugent-6.1.0-073014                                                                              .x86_64 conflicts with file from package gugent-6.0.1-71.x86_64

        file /usr/share/gugent/gugent.properties from install of gugent-6.1.0-07                                                                              3014.x86_64 conflicts with file from package gugent-6.0.1-71.x86_64

        file /usr/share/gugent/installgugent.sh from install of gugent-6.1.0-073                                                                              014.x86_64 conflicts with file from package gugent-6.0.1-71.x86_64

        file /usr/share/gugent/site/dops/hostname.py from install of gugent-6.1.                                                                              0-073014.x86_64 conflicts with file from package gugent-6.0.1-71.x86_64

        file /usr/share/gugent/site/dops/interface.py from install of gugent-6.1                                                                              .0-073014.x86_64 conflicts with file from package gugent-6.0.1-71.x86_64

Tags (3)
0 Kudos
4 Replies
admin
Immortal
Immortal

Are you using vCAC 6.0, or 6.1?  In 6.1 we have a script called preparevCACTemplate.sh that automates agent setup on linux.

If you're still on 6.0, you can first check for any installed RPM's, remove them, and then install the new version.

"rpm -e gugent-6.0.1-71.x86_64" should remove the old gugent first, allowing you to install the new gugent.

0 Kudos
V8888
Contributor
Contributor

Thanks for the reply. Using 6.1 but the template has 6.0.1 agent that I am trying to update to 6.1 as the guest agent is not properly running the work item.

Problem is If I try to install I get the message already installed

[root@localhost tmp]# rpm -i gugent-6.0.1-71.x86_64.rpm

        package gugent-6.0.1-71.x86_64 is already installed

If I try to uninstall the same, I get the message it's not installed

[root@localhost tmp]# rpm -e gugent-6.0.1-71.x86_64.rpm

error: package gugent-6.0.1-71.x86_64.rpm is not installed

I able to navigate to the directory and start the service even but still the uninstall step says the package not installed !!!

[root@localhost tmp]# cd /usr/share/gugent

[root@localhost gugent]# ./installgugent.sh -servername:443 ssl

mkdir: cannot create directory `/usr/share/log': File exists

[root@localhost gugent]# ./rungugent.sh

Application.MachineQuery: [Information] uuid = 564d4ef3-ebd9-d1a0-5003-fb237c647223

Application: [Debug] Using the network enabled proxy ...

Application: [Debug] The vCAC endpoint is https://servername:443/VMPS2.

Application: [Debug] The AXIS2C directory is axis2/.

Application: [Debug] Requesting work for agent ID f34e4d56-d9eb-a0d1-5003-fb237c647223.

Application: [Debug] Fetching a work item ...

Application: [Debug] Requesting work for agent ID 564d4ef3-ebd9-d1a0-5003-fb237c647223.

Application: [Debug] Fetching a work item ...

0 Kudos
admin
Immortal
Immortal

When you use the "rpm -e" command you cannot specify the rpm itself (as you have done with this command: "rpm -e gugent-6.0.1-71.x86_64.rpm" ), you must specify the installed package (e.g. "rpm -e gugent-6.0.1-71.x86_64").

However, since you are using 6.1, I recommend you download and run the "preparevCACTemplate.sh" script.  It automates removal of old versions of the gugent, and installs the new agent/gugent onto your template.

Usage instructions can be found in 6.1 documentation, but I'll put them here for your benefit:

1. Make sure you're root

2. wget http://<appD IP>/tools/preparevCACTemplate.sh

3. chmod +x preparevCACTemplate.sh

4. ./prepareTemplate.sh

At this point follow the onscreen prompts.  You'll need to know the IP/server address of the vCAC Appliance, Application Services Appliance, and IaaS server.

Please let me know if you need further help.

0 Kudos
V8888
Contributor
Contributor

Thanks a bunch. It works..

0 Kudos