Description of problem: # /etc/init.d/ovirt-guest-agent start Starting ovirt-guest-agent: Traceback (most recent call last): File "/usr/share/ovirt-guest-agent/ovirt-guest-agent.py", line 25, in ? from GuestAgentLinux2 import LinuxVdsAgent File "/usr/share/ovirt-guest-agent/GuestAgentLinux2.py", line 170 param = '-r' if reboot else '-h' ^ SyntaxError: invalid syntax [FAILED] # python Python 2.4.3 (#1, Oct 23 2012, 22:02:41) [GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> param = '-r' if True else '-h' File "<stdin>", line 1 param = '-r' if True else '-h' ^ SyntaxError: invalid syntax rhel6 comparison: $ python Python 2.6.6 (r266:84292, May 27 2013, 05:35:12) [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> param = '-r' if True else '-h' >>> param '-r' Version-Release number of selected component (if applicable): is13 How reproducible: 100% Steps to Reproduce: 1. start GA 2. 3. Actual results: FAILED because syntax error Expected results: happy running Additional info: be more conservative :)
Merged to u/s master branch: http://gerrit.ovirt.org/gitweb?p=ovirt-guest-agent.git;a=commit;h=7ceef1528359bea44aa2f705318bff1bbfb9d7a6
FailedQA in rhevm-guest-agent-1.0.8-4.el5ev (is17). The problem still persists: # rpm -q rhevm-guest-agent rhevm-guest-agent-1.0.8-4.el5ev # cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.10 (Tikanga) # /etc/init.d/ovirt-guest-agent start Starting ovirt-guest-agent: Traceback (most recent call last): File "/usr/share/ovirt-guest-agent/ovirt-guest-agent.py", line 25, in ? from GuestAgentLinux2 import LinuxVdsAgent File "/usr/share/ovirt-guest-agent/GuestAgentLinux2.py", line 170 param = '-r' if reboot else '-h' ^ SyntaxError: invalid syntax [FAILED]
Patch was in the build but was not applied -_-
Verified in rhevm-guest-agent-1.0.8-5.el5ev (is18). [root@localhost ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.10 (Tikanga) [root@localhost ~]# /etc/init.d/ovirt-guest-agent start Starting ovirt-guest-agent: [ OK ]
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2014-0057.html