openshift-ansible icon indicating copy to clipboard operation
openshift-ansible copied to clipboard

3.7.0 upgrade - "Check selinux label of '/var/lib/etcd/' - error

Open leodavidsec opened this issue 8 years ago • 1 comments

Description

Trying to upgrade 3.7.0 to any higher version generates an etcd error

Version

Please put the following version information in the code block indicated below.

  • ansible 2.4.2.0

If you're operating from a git clone:

  • The output of git describe

If you're running from playbooks installed via RPM

  • openshift-ansible-3.9.0-0.53.0.git.1.af49d87.el7.noarch

Place the output between the code block below:

VERSION INFORMATION HERE PLEASE
Steps To Reproduce
  1. [step 1]
  2. [step 2]
Expected Results

Describe what you expected to happen.

 ansible-playbook -i /etc/ansible/hosts /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/upgrades/v3_7/upgrade.yml
Observed Results

Describe what is actually happening.

TASK [etcd : Check selinux label of '/var/lib/etcd/'] ********************************************************************************************************************
fatal: [10.10.7.101]: FAILED! => {"changed": true, "cmd": ["stat", "-c", "%C", "/var/lib/etcd/"], "delta": "0:00:00.003541", "end": "2018-04-23 10:16:03.431046", "msg": "non-zero return code", "rc": 1, "start": "2018-04-23 10:16:03.427505", "stderr": "stat: failed to get security context of â/var/lib/etcd/â: No data available", "stderr_lines": ["stat: failed to get security context of â/var/lib/etcd/â: No data available"], "stdout": "?", "stdout_lines": ["?"]}
        to retry, use: --limit @/usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/upgrades/v3_7/upgrade.retry

For long output or logs, consider using a gist

Additional Information

Provide any additional information which may help us diagnose the issue.

  • Your operating system and version, ie: RHEL 7.2, Fedora 23 ($ cat /etc/redhat-release)
  • Your inventory file (especially any non-standard configuration parameters)
  • Sample code, etc
Failure summary:


  1. Hosts:    10.x.x.x
     Play:     Backup etcd
     Task:     Check selinux label of '/var/lib/etcd/'
     Message:  non-zero return code

leodavidsec avatar Apr 23 '18 09:04 leodavidsec

My bad, is seems that installation is not possible with selinux disabled anymore. Once i have enabled selinux, the playbook worked until i've got: "fatal: [10.10.7.101]: FAILED! => {"changed": false, "msg": "Console install failed."}" This seems to be related to something else...

leodavidsec avatar Apr 23 '18 11:04 leodavidsec