
----- Original Message -----
From: "Jürgen Brandl" <lists@jbrandl.com> To: "鎖心□愛妳" <mzcwlong@vip.qq.com> Cc: "users" <users@ovirt.org> Sent: Sunday, November 30, 2014 2:12:32 PM Subject: Re: [ovirt-users] Failed to execute stage 'Environment setup': Command'/bin/systemctl' failed to execute
Hello,
I did a bit of debugging the issue, here are all the errors, which i found useful: # yum install ovirt-hosted-engine-setup [...] Installing : vdsm-4.16.7-1.gitdb83943.el7.x86_64 277/281 SELinux: Could not downgrade policy file /etc/selinux/targeted/policy/policy.29, searching for an older version. SELinux: Could not open policy file <= /etc/selinux/targeted/policy/policy.29: No such file or directory /sbin/load_policy: Can't load policy: No such file or directory libsemanage.semanage_reload_policy: load_policy returned error code 2. SELinux: Could not downgrade policy file /etc/selinux/targeted/policy/policy.29, searching for an older version. SELinux: Could not open policy file <= /etc/selinux/targeted/policy/policy.29: No such file or directory /sbin/load_policy: Can't load policy: No such file or directory libsemanage.semanage_reload_policy: load_policy returned error code 2. Traceback (most recent call last): File "/usr/bin/vdsm-tool", line 209, in main return tool_command[cmd]["command"](*args) File "/usr/lib/python2.7/site-packages/vdsm/tool/seboolsetup.py", line 66, in sebool_config setup_booleans(True) File "/usr/lib/python2.7/site-packages/vdsm/tool/seboolsetup.py", line 53, in setup_booleans sebool_obj.finish() File "/usr/lib/python2.7/site-packages/seobject/__init__.py", line 281, in finish self.commit() File "/usr/lib/python2.7/site-packages/seobject/__init__.py", line 274, in commit raise ValueError(_("Could not commit semanage transaction")) ValueError: Could not commit semanage transaction [...]
Since I assume you did this (yum install) prior to the next steps, I'd first try to solve this one. Seems like some failure running vdsm-tool related to selinux, during the %post scriptlet, perhaps 'vdsm-tool sebool-config'. What happens when you run this one? Is selinux generally installed/configured/enabled/working well? Please check/post also /var/log/yum.log and /var/log/vdsm. Thanks, -- Didi