Hide Forgot
Description of problem: If the open-vm-tools package from the latest CloudEngine-1.0 Puddle: 2012-02-03.2 (http://download.lab.bos.redhat.com/rel-eng/CloudForms/CloudEngine/1.0/2012-02-03.2/el6-engine-and-agents/x86_64/) is included a template, the following error shows up in /var/log/imagefactory.log when the image is built using aeolus-image: Error: Package: open-vm-toolsd-8.8.0-0.el6.1.x86_64 (aeolus) Requires: libhgfs.so.0()(64bit) The template file is included in a comment below. Steps to Reproduce: - Install aeolus >> yum install aeolus-all >> rpm -qa aeolus-all aeolus-all-0.8.0-17.el6.noarch - Run aeolus-configure -p vsphere - Set up an account for the vsphere provider - Run: >> aeolus-image build --target vsphere --template rhel62AudreyVmtools.xml The build fails - see the error in var/log/imagefactory.log. ...... File "/usr/lib/python2.6/site-packages/imgfac/builders/Fedora_vsphere_Builder.py", line 115, in build_upload self.output_descriptor = self.guest.customize_and_generate_icicle(libvirt_xml) File "/usr/lib/python2.6/site-packages/oz/RedHat.py", line 1178, in customize_and_generate_icicle return self._internal_customize(libvirt_xml, True) File "/usr/lib/python2.6/site-packages/oz/RedHat.py", line 1154, in _internal_customize self.do_customize(guestaddr) File "/usr/lib/python2.6/site-packages/oz/RedHat.py", line 1110, in do_customize tunnels=self.tunnels) File "/usr/lib/python2.6/site-packages/oz/RedHat.py", line 476, in guest_execute_command command, timeout, tunnels) File "/usr/lib/python2.6/site-packages/oz/ozutil.py", line 355, in ssh_execute_command return subprocess_check_output(cmd) File "/usr/lib/python2.6/site-packages/oz/ozutil.py", line 323, in subprocess_check_output raise SubprocessException("'%s' failed(%d): %s" % (cmd, retcode, stderr), retcode) SubprocessException: 'ssh -i /etc/oz/id_rsa-icicle-gen -F /dev/null -o ServerAliveInterval=30 -o StrictHostKeyChecking=no -o ConnectTimeout=10 -o UserKnownHostsFile=/dev/null -o PasswordAuthentication=no root.122.53 yum -y install "aeolus-audrey-agent" "open-vm-tools" ' failed(1): Warning: Permanently added '192.168.122.53' (RSA) to the list of known hosts. Error: Package: open-vm-toolsd-8.8.0-0.el6.1.x86_64 (aeolus) Requires: libhgfs.so.0()(64bit)
--> Package open-vm-toolsd.x86_64 0:8.8.0-0.el6.1 will be installed --> Processing Dependency: libvmtools.so.0()(64bit) for package: open-vm-toolsd-8.8.0-0.el6.1.x86_64 --> Processing Dependency: libhgfs.so.0()(64bit) for package: open-vm-toolsd-8.8.0-0.el6.1.x86_64 --> Processing Dependency: libdnet.so.1()(64bit) for package: open-vm-toolsd-8.8.0-0.el6.1.x86_64 --> Processing Dependency: libguestlib.so.0()(64bit) for package: open-vm-toolsd-8.8.0-0.el6.1.x86_64 --> Running transaction check ---> Package libdnet.x86_64 0:1.12-8.el6 will be installed ---> Package open-vm-tools-libs.x86_64 0:8.8.0-0.el6.1 will be installed ---> Package open-vm-toolsd.x86_64 0:8.8.0-0.el6.1 will be installed --> Processing Dependency: libhgfs.so.0()(64bit) for package: open-vm-toolsd-8.8.0-0.el6.1.x86_64 --> Finished Dependency Resolution Error: Package: open-vm-toolsd-8.8.0-0.el6.1.x86_64 (CE-NIGHTLY) Requires: libhgfs.so.0()(64bit) You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
rhel5 tracked here.. https://bugzilla.redhat.com/show_bug.cgi?id=788085
Please retest against: open-vm-tools-8.8.0-0.el6.2.x86_64.rpm (should be available in brew)
Built open-vm-toolsd-8.8.0-1 to address this issue. The problem was that one of the plugins of vmtoolsd, libvix, requires libhgfs, which in turn requires the hgfs kmod. I can now manually install open-vm-toolsd (from RPM) and start the vmtoolsd service; I see the VM's IP in the vsphere UI.
For an instance started from a RHEL 5.7 image: Verified that a public ip address is returned by Deltacloud for a vsphere instance which was launched from an image containing open-vm-tools. The ip address is available as soon as the instance is launched and the state of the image = RUNNING. [rlandy@localhost systemtests]$ curl -X GET --user 'uname;password' "http://hp-dl360g5-02.rhts.eng.bos.redhat.com:4006/api/instances/rlandyRhel5VmTools?format=xml" <?xml version='1.0' encoding='utf-8' ?> <instance href='http://hp-dl360g5-02.rhts.eng.bos.redhat.com:4006/api/instances/rlandyRhel5VmTools' id='rlandyRhel5VmTools'> <name>rlandyRhel5VmTools</name> <owner_id>xxx</owner_id> <image href='http://hp-dl360g5-02.rhts.eng.bos.redhat.com:4006/api/images/factory-image-c838925e-57fb-4250-a382-06f4b7613b8a' id='factory-image-c838925e-57fb-4250-a382-06f4b7613b8a'></image> <realm href='http://hp-dl360g5-02.rhts.eng.bos.redhat.com:4006/api/realms/datastore1' id='datastore1'></realm> <state>RUNNING</state> <hardware_profile href='http://hp-dl360g5-02.rhts.eng.bos.redhat.com:4006/api/hardware_profiles/default' id='default'> <property kind='fixed' name='cpu' unit='count' value='2'></property> <property kind='fixed' name='memory' unit='MB' value='512'></property> <property kind='fixed' name='storage' unit='GB' value='11274355666'></property> </hardware_profile> <actions> <link href='http://hp-dl360g5-02.rhts.eng.bos.redhat.com:4006/api/instances/rlandyRhel5VmTools/reboot' method='post' rel='reboot' /> <link href='http://hp-dl360g5-02.rhts.eng.bos.redhat.com:4006/api/instances/rlandyRhel5VmTools/stop' method='post' rel='stop' /> <link href='http://hp-dl360g5-02.rhts.eng.bos.redhat.com:4006/api/images;instance_id=rlandyRhel5VmTools' method='post' rel='create_image' /> </actions> <public_addresses><address type='ipv4'>10.10.77.139</address></public_addresses> <private_addresses></private_addresses> </instance> >> $ ssh root.77.139 [root@dhcp77-139 log]# rpm -qa |grep open-vm-tools open-vm-tools-8.8.0-5.el5 open-vm-tools-libs-8.8.0-5.el5 open-vm-toolsd-8.8.0-5.el5 [root@dhcp77-139 log]# cat /media/deltacloud-user-data.txt 1|https://deaddonkey.usersys.redhat.com|conductor_key|xxxxxx [root@dhcp77-139 log]# [root@dhcp77-139 log]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.7 (Tikanga) [root@dhcp77-139 ~]# service vmtoolsd status -l (pid 2772) is running...
Also verified that an ip address is available for a RUNNING RHEL 6.2 instance - launched from an image that includes open-vm-tools. See comment 4 in https://bugzilla.redhat.com/show_bug.cgi?id=790257
Also verified that we are able to install opne-vm-tools on rhel 5.7: rhel 3261/3261 Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package open-vm-toolsd.x86_64 0:8.8.0-5.el5 set to be updated --> Processing Dependency: libvmtools.so.0()(64bit) for package: open-vm-toolsd --> Processing Dependency: libguestlib.so.0()(64bit) for package: open-vm-toolsd --> Running transaction check ---> Package open-vm-tools-libs.x86_64 0:8.8.0-5.el5 set to be updated --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: open-vm-toolsd x86_64 8.8.0-5.el5 el5_tools 155 k Installing for dependencies: open-vm-tools-libs x86_64 8.8.0-5.el5 el5_tools 199 k Transaction Summary ================================================================================ Install 2 Package(s) Upgrade 0 Package(s) Total download size: 354 k Is this ok [y/N]: y Downloading Packages: (1/2): open-vm-toolsd-8.8.0-5.el5.x86_64.rpm | 155 kB 00:00 (2/2): open-vm-tools-libs-8.8.0-5.el5.x86_64.rpm | 199 kB 00:00 -------------------------------------------------------------------------------- Total 419 kB/s | 354 kB 00:00 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing : open-vm-tools-libs 1/2 Installing : open-vm-toolsd 2/2 duration: 851(ms) Installed products updated. Installed: open-vm-toolsd.x86_64 0:8.8.0-5.el5 Dependency Installed: open-vm-tools-libs.x86_64 0:8.8.0-5.el5 Complete! Verified that the service starts on install and that the ip address is available: [root@dhcp77-139 yum.repos.d]# service vmtoolsd status -l (pid 6782) is running... [root@dhcp77-139 yum.repos.d]# ifconfig eth0 Link encap:Ethernet HWaddr 00:50:56:BB:00:03 inet addr:10.10.77.139
Verfication for RHEL 6 install: Resolving Dependencies --> Running transaction check ---> Package open-vm-tools.x86_64 0:8.8.0-4.el6 will be installed --> Processing Dependency: open-vm-toolsd = 8.8.0-4.el6 for package: open-vm-tools-8.8.0-4.el6.x86_64 --> Running transaction check ---> Package open-vm-toolsd.x86_64 0:8.8.0-4.el6 will be installed --> Processing Dependency: libvmtools.so.0()(64bit) for package: open-vm-toolsd-8.8.0-4.el6.x86_64 --> Processing Dependency: libguestlib.so.0()(64bit) for package: open-vm-toolsd-8.8.0-4.el6.x86_64 --> Running transaction check ---> Package open-vm-tools-libs.x86_64 0:8.8.0-4.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: open-vm-tools x86_64 8.8.0-4.el6 aeolus 5.6 k Installing for dependencies: open-vm-tools-libs x86_64 8.8.0-4.el6 aeolus 173 k open-vm-toolsd x86_64 8.8.0-4.el6 aeolus 131 k Transaction Summary ================================================================================ Install 3 Package(s) Total download size: 309 k Installed size: 984 k Is this ok [y/N]: y Downloading Packages: (1/3): open-vm-tools-8.8.0-4.el6.x86_64.rpm | 5.6 kB 00:00 (2/3): open-vm-tools-libs-8.8.0-4.el6.x86_64.rpm | 173 kB 00:00 (3/3): open-vm-toolsd-8.8.0-4.el6.x86_64.rpm | 131 kB 00:00 -------------------------------------------------------------------------------- Total 309 kB/s | 309 kB 00:01 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Warning: RPMDB altered outside of yum. Installing : open-vm-tools-libs-8.8.0-4.el6.x86_64 1/3 Installing : open-vm-toolsd-8.8.0-4.el6.x86_64 2/3 Installing : open-vm-tools-8.8.0-4.el6.x86_64 3/3 Installed products updated. Installed: open-vm-tools.x86_64 0:8.8.0-4.el6 Dependency Installed: open-vm-tools-libs.x86_64 0:8.8.0-4.el6 open-vm-toolsd.x86_64 0:8.8.0-4.el6 Complete! [root@dhcp77-101 ~]# service vmtoolsd status vmtoolsd (pid 22340) is running... [root@dhcp77-101 ~]# ifconfig eth0 Link encap:Ethernet HWaddr 00:50:56:BB:00:27 inet addr:10.10.77.101 rpm -qa |grep open-vm-tools open-vm-toolsd-8.8.0-4.el6.x86_64 open-vm-tools-libs-8.8.0-4.el6.x86_64 open-vm-tools-8.8.0-4.el6.x86_64