[Users] Failed to enable SELinux boolean

Ofer Schreiber oschreib at redhat.com
Tue Jun 5 09:19:29 UTC 2012


That's a known issue.
we should run semanage instead of sebool, so it won't fail if selinux is disabled.

Currently, you can run setup only when selinux is enabled.

Thanks,
Ofer

----- Original Message -----
> Hello,
> 
> recent snapshot, engine-setup fails (selinux is disabled in the OS):
> 
> 2012-06-05 03:34:26::DEBUG::setup_sequences::59::root:: running
> _configureSelinuxBoolean
> 2012-06-05 03:34:26::DEBUG::engine-setup::668::root:: Enable
> httpd_can_network_connect boolean
> 2012-06-05 03:34:26::DEBUG::common_utils::309::root:: Executing
> command --> '/usr/sbin/setsebool -P httpd_can_network_connect 1'
> 2012-06-05 03:34:26::DEBUG::common_utils::335::root:: output =
> 2012-06-05 03:34:26::DEBUG::common_utils::336::root:: stderr =
> setsebool:  SELinux is disabled.
> 
> 2012-06-05 03:34:26::DEBUG::common_utils::337::root:: retcode = 1
> 2012-06-05 03:34:26::DEBUG::setup_sequences::62::root:: Traceback
> (most recent call last):
>   File "/usr/share/ovirt-engine/scripts/setup_sequences.py", line 60,
>   in run
>     function()
>   File "/usr/bin/engine-setup", line 670, in _configureSelinuxBoolean
>     out, rc = utils.execCmd(cmd, None, True,
>     output_messages.ERR_FAILED_UPDATING_SELINUX_BOOLEAN)
>   File "/usr/share/ovirt-engine/scripts/common_utils.py", line 340,
>   in execCmd
>     raise Exception(msg)
> Exception: Failed to enable SELinux boolean
> 
> Regards,
> Nerijus
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
> 



More information about the Users mailing list