Uploaded image for project: 'CLOUDIFY (R&D)'
  1. CY-102

Installation fails when invoked through SSH

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Unprioritized
    • Resolution: Done
    • Fix Version/s: 4.4, 4.3.1
    • Labels:
    • Steps to Reproduce:
      add steps to reproduce
    • Severity:
      High
    • Target Version:
      4.4
    • Premium Only:
      yes
    • Found In Version:
      4.3
    • Sprint:
      4.4 Sprint 2, 4.4 Sprint 1
    • Epic Link:
    • Bug Type:
      new feature bug
    • Release Notes:
      yes

      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.

        Attachments

          Activity

            People

            • Assignee:
              lukasz.maksymczuk Łukasz Maksymczuk
              Reporter:
              removed3 Former user (Inactive)
              QA Owner:
              Uri Wygodny (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: