Installation fails when invoked through SSH

Description

When running the installation command over SSH on any CentOS / RHEL version that has selinux enabled, installation will inevitably fail.

This is due to incorrect selinux detection.

The installation code tries to detect whether selinux is enabled and enforcing. It does so by invoking the getenforce utility: https://github.com/cloudify-cosmo/cloudify-manager-install/blob/4.3rc1/cfy_manager/components/manager/manager.py#L63

When SSH'ing, /usr/sbin is not found in the PATH, so getenforce isn't invoked at all. The installation code assumes in that case that selinux is not installed, and goes about installing things.

Should be fixed by explicitly referring to /usr/sbin/getenforce.

Steps to Reproduce

add steps to reproduce

Why Propose Close?

None

Status

Assignee

Łukasz Maksymczuk

Reporter

Isaac Shabtay

Labels

Severity

High

Target Version

4.4

Premium Only

yes

Found In Version

4.3

QA Owner

Uri Wygodny

Bug Type

new feature bug

Customer Encountered

None

Customer Name

None

Release Notes

yes

Priority

None

Epic Link

Sprint

None

Fix versions

Priority

Unprioritized