Bug 1573696

Summary: Failed to uninstall eventrouter.
Product: OpenShift Container Platform Reporter: Qiaoling Tang <qitang>
Component: LoggingAssignee: ewolinet
Status: CLOSED ERRATA QA Contact: Qiaoling Tang <qitang>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.10.0CC: aos-bugs, ewolinet, jcantril, rmeggins
Target Milestone: ---Keywords: Regression
Target Release: 3.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
As part of fixing our check that we are only installing logging in a single namespace we didn't update to not include the eventrouter in the list of namespaces we installed into which created a false positive.
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-30 19:14:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Qiaoling Tang 2018-05-02 03:35:42 UTC
Description of problem:

Failed to uninstall eventrouter with logging. The messages are in the below:

fatal: [$master]: FAILED! => {
    "assertion": "_current_logging_namespace.split(\" \") | count <= 1", 
    "changed": false, 
    "evaluated_to": false, 
    "failed": true, 
    "msg": "Configuring aggregated logging in multiple namespaces is not supported:   current namespace(s): default openshift-logging   specified namespace: default openshift-logging"
}


Version-Release number of selected component (if applicable):
# oc version
oc v3.10.0-0.30.0
kubernetes v1.10.0+b81c8f8
features: Basic-Auth GSSAPI Kerberos SPNEGO

openshift v3.10.0-0.31.0
kubernetes v1.10.0+b81c8f8

# rpm -qa | grep openshift-ansible
openshift-ansible-3.10.0-0.31.0.git.0.9f771c7.el7.noarch
openshift-ansible-roles-3.10.0-0.31.0.git.0.9f771c7.el7.noarch
openshift-ansible-docs-3.10.0-0.31.0.git.0.9f771c7.el7.noarch
openshift-ansible-playbooks-3.10.0-0.31.0.git.0.9f771c7.el7.noarch

# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.5 (Maipo)
# uname -a
Linux host-$master-ip 3.10.0-862.el7.x86_64 #1 SMP Wed Mar 21 18:14:51 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux


How reproducible:
Always

Steps to Reproduce:
1. Deploy eventrouter by setting the following value in inventory file and run ansible-playbooks:
openshift_logging_install_logging=true
openshift_logging_install_eventrouter=true

2. Wait until all pods are running, then set "openshift_logging_install_logging=false
openshift_logging_install_eventrouter=false" in inventory and rerun ansible-playbooks

Actual results:
Failed to uninstall eventrouter

Expected results:
Eventrouter can be uninstalled successfully.

Additional info:
image version
logging-curator/images/v3.10.0-0.31.0.0
logging-fluentd/images/v3.10.0-0.31.0.0
logging-eventrouter/images/v3.10.0-0.31.0.0

Comment 3 Qiaoling Tang 2018-05-07 10:02:39 UTC
verified on openshift v3.10.0-0.33.0.0

Comment 5 errata-xmlrpc 2018-07-30 19:14:34 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-2018:1816