+ # for some very odd reason, this sometimes fails with the following symptom
+ # # yum install sfa-client
+ # Setting up Install Process
+ # ...
+ # Downloading Packages:
+ # Running rpm_check_debug
+ # Running Transaction Test
+ # Transaction Test Succeeded
+ # Running Transaction
+ # Transaction couldn't start:
+ # installing package sfa-client-2.1-7.onelab.2012.05.23.i686 needs 68KB on the / filesystem
+ # [('installing package sfa-client-2.1-7.onelab.2012.05.23.i686 needs 68KB on the / filesystem', (9, '/', 69632L))]
+ # even though in the same context I have
+ # [2012.05.23--f14-32-sfastd1-1-vplc07] / # df -h
+ # Filesystem Size Used Avail Use% Mounted on
+ # /dev/hdv1 806G 264G 501G 35% /
+ # none 16M 36K 16M 1% /tmp
+ #
+ # so as a workaround, we first try yum install, and then invoke rpm on the cached rpm...
+ def sfa_install_client(self):
+ "yum install sfa-client"
+ first_try=self.yum_install("sfa-client")
+ if first_try: return True
+ utils.header ("********** Regular yum failed - special workaround in place, 2nd chance")
+ (code,cached_rpm_path)=utils.output_of(self.actual_command_in_guest('find /var/cache/yum -name sfa-client\*.rpm'))
+ utils.header("rpm_path=<<%s>>"%rpm_path)
+ # just for checking
+ self.run_in_guest("rpm -i %s"%cached_rpm_path)
+ return self.yum_check_installed ("sfa-client")
+