Bug 1461664 - Redeploy etcd certificates failed when etcd is provided via system container
Summary: Redeploy etcd certificates failed when etcd is provided via system container
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.6.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Jan Chaloupka
QA Contact: Gaoyun Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-15 06:18 UTC by Gaoyun Pei
Modified: 2017-08-16 19:51 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-10 05:28:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2017:1716 0 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.6 RPM Release Advisory 2017-08-10 09:02:50 UTC

Description Gaoyun Pei 2017-06-15 06:18:43 UTC
Description of problem:
Install etcd as system container, the service name will be etcd. But redeploy cert playbook was trying to restart etcd_container service since "is_containerized": true  detected.
https://github.com/openshift/openshift-ansible/blob/openshift-ansible-3.6.109-1/playbooks/common/openshift-etcd/restart.yml#L8


Version-Release number of selected component (if applicable):
openshift-ansible-3.6.109-1.git.0.256e658.el7.noarch

How reproducible:
Always

Steps to Reproduce:
1.Install ocp-3.6 env on AtomicHost, enable etcd system container installed.
After installation, etcd service is running well
[root@qe-gpei-etcd-sc-4-etcd-1 etcd]# systemctl status etcd
● etcd.service - Etcd Server
   Loaded: loaded (/etc/systemd/system/etcd.service; enabled; vendor preset: disabled)
   Active: active (running) since Thu 2017-06-15 02:29:44 UTC; 3h 16min ago
 Main PID: 14193 (runc)
   Memory: 4.6M
   CGroup: /system.slice/etcd.service
           └─14193 /bin/runc --systemd-cgroup run etcd


2.Try to redeploy etcd cert with redeploy-etcd-certificates.yml playbook
ansible-playbook -i host /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/redeploy-etcd-certificates.yml


Actual results:
TASK [restart etcd] ************************************************************
fatal: [qe-gpei-etcd-sc-4-etcd-1.0615-re6.qe.rhcloud.com]: FAILED! => {
    "changed": false, 
    "failed": true
}

MSG:

Could not find the requested service etcd_container: cannot check nor set state


Expected results:


Additional info:

Comment 1 Jan Chaloupka 2017-06-20 10:07:18 UTC
https://github.com/openshift/openshift-ansible/pull/4504

Giuseppe, can you test it on AH?

Comment 2 Giuseppe Scrivano 2017-06-20 10:30:20 UTC
I've tested it on AH and it solves the problem for me.

Comment 4 Gaoyun Pei 2017-06-23 09:43:56 UTC
Verify this issue with openshift-ansible-3.6.123-1.git.0.0371aff.el7

When running redeploy-etcd-certificates.yml playbook against ocp-3.6 cluster with etcd running as system container, it could restart etcd service correctly.

Comment 6 errata-xmlrpc 2017-08-10 05:28:09 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/RHEA-2017:1716


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