Bug 1313169 - Ansible installer tries to enable etcd_container service even though containerized=false
Summary: Ansible installer tries to enable etcd_container service even though containe...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Samuel Munilla
QA Contact: Ma xiaoqiang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-01 07:02 UTC by Kenjiro Nakayama
Modified: 2019-10-10 11:22 UTC (History)
9 users (show)

Fixed In Version: openshift-ansible-3.0.57-1.git.0.c633ce7.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-12 16:38:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 2193661 0 None None None 2016-03-09 05:37:20 UTC
Red Hat Product Errata RHBA-2016:1065 0 normal SHIPPED_LIVE Red Hat OpenShift Enterprise atomic-openshift-utils bug fix update 2016-05-12 20:32:56 UTC

Description Kenjiro Nakayama 2016-03-01 07:02:29 UTC
Description of problem:

Ansible installer tries to enable etcd_container service even though containerized=false

Version-Release number of selected component (if applicable):

atomic-openshift-3.1.1.6-3.git.16.5327e56.el7aos.x86_64

How reproducible:
Steps to Reproduce:

1. Set OSE v3 installation ansible with containerized=false and etcd hosts.

(e.g.)
containerized=false
  ...
[OSEv3:children]
etcd
  ...
[etcd]
  ...
xxxxx.example.com
yyyyy.example.com

2. Run ansible installer
3. Hit the error below

TASK: [etcd | Enable etcd] ****************************************************
failed: [xxxx.example.com] => {"failed": true}
msg: Error when trying to enable etcd_container: rc=1 Failed to execute operation: Access denied


Actual results:

Hit following error:

TASK: [etcd | Enable etcd] ****************************************************
failed: [xxxx.example.com] => {"failed": true}
msg: Error when trying to enable etcd_container: rc=1 Failed to execute operation: Access denied

Expected results:

Install without any error

Additional info:

I will upload users log files in private.

Comment 3 Kenjiro Nakayama 2016-03-01 07:08:12 UTC
If I executed "systemctl enable etcd_container" instead of "etcd", I got same error "Access denied"[1].

From this, I guess it is a bug of Ansible installer, it should run systemctl enable etcd. 

If this is a bug, could you please provide us with workaround?

[1]
# systemctl enable etcd_container
Failed to execute operation: Access denied

Comment 4 Kenjiro Nakayama 2016-03-01 12:34:40 UTC
Sorry, I forgot to tell the ansible version

$ cat ansible-rpm-qa-output.txt |grep ansible
ansible-1.9.4-1.el7aos.noarch
openshift-ansible-roles-3.0.35-1.git.0.6a386dd.el7aos.noarch
openshift-ansible-3.0.35-1.git.0.6a386dd.el7aos.noarch
openshift-ansible-lookup-plugins-3.0.35-1.git.0.6a386dd.el7aos.noarch
openshift-ansible-playbooks-3.0.35-1.git.0.6a386dd.el7aos.noarch
openshift-ansible-filter-plugins-3.0.35-1.git.0.6a386dd.el7aos.noarch

Comment 5 Brenton Leanhardt 2016-03-01 16:03:41 UTC
Does this happen on openshift-ansible-3.0.47-1.git.0.4498ce3.el7aos ?  That's the currently released version.

Comment 6 Kenjiro Nakayama 2016-03-02 02:38:57 UTC
Yes, it does. The customer confirmed it failed with current released version.

Comment 8 Kenjiro Nakayama 2016-03-02 10:03:59 UTC
OK, I think I understand this bug. 
If we set containerized=false in /etc/ansible/hosts as below, some parts of the ansible tries to install by containerized mode.

~~~
containerized=false
~~~

The doc[1] is wrong or installer's bug?

https://docs.openshift.com/enterprise/3.1/install_config/install/advanced_install.html#configuring-ansible
"If set to false or unset, the default RPM method is used."


NOTE: I know there is a workaround to unset containerized=false.

Comment 9 Brenton Leanhardt 2016-03-02 12:57:39 UTC
We're discussing https://github.com/openshift/openshift-ansible/pull/1533 as a potential fix for this.

Comment 10 Kenjiro Nakayama 2016-03-03 03:40:01 UTC
Although I commented on https://github.com/openshift/openshift-ansible/pull/1533, you may hit another containerized installation issue.

~~~
TASK: [openshift_master_ca | Create the master certificates if they do not already exist] ***
failed: [master.example.com] => {"cmd": "/usr/local/bin/oadm create-master-certs --hostnames=kubernetes.default,10.67.112.120,kubernetes.default.svc.cluster.local,kubernetes,openshift.default....}
msg: [Errno 2] No such file or directory
~~~

I will attach the entire log in private.

Comment 12 Kenjiro Nakayama 2016-03-03 04:48:53 UTC
(In reply to Kenjiro Nakayama from comment #10)

As for the new issue, PR has been opened.

https://github.com/openshift/openshift-ansible/pull/1537

Comment 17 Ma xiaoqiang 2016-03-15 01:22:16 UTC
Check on openshift-ansible-3.0.57-1.git.0.c633ce7.el7.noarch

Install ha-master env with "containerized=false" successfully, move this issue to VERIFIED.

Comment 19 errata-xmlrpc 2016-05-12 16:38:24 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1065


Note You need to log in before you can comment on or make changes to this bug.