Bug 1571819 - [free-int] error during logging upgrade - "openshift-logging" namespace not found
Summary: [free-int] error during logging upgrade - "openshift-logging" namespace not f...
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.10.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 3.10.0
Assignee: ewolinet
QA Contact: Anping Li
Depends On:
TreeView+ depends on / blocked
Reported: 2018-04-25 13:13 UTC by Justin Pierce
Modified: 2018-07-30 19:14 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: The default namespace for the logging stack has been changed to 'openshift-logging', but we will keep prior deployments in their namespaces if already configured. When a prior installation exists we do not create the 'openshift-logging' namespace, and part of installing logging we annotate projects including 'openshift-logging'. Consequence: Annotating the project 'openshift-logging' fails because it does not exist. Fix: We do an intersection of existing projects and projects we pre-defined as infra/ops projects when when we annotate. Result: We only annotate the ops/infra projects if they exist on the OCP cluster.
Clone Of:
Last Closed: 2018-07-30 19:13:48 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:1816 0 None None None 2018-07-30 19:14:10 UTC

Description Justin Pierce 2018-04-25 13:13:40 UTC
Description of problem:
During a an upgrade from 3.9 to v3.10.0-0.27.0, the following error was reported:

TASK [openshift_logging : command] *********************************************
Tuesday 24 April 2018  23:20:25 +0000 (0:00:02.089)       0:03:29.304 ********* 
fatal: [free-int-master-3c664]: FAILED! => {"changed": true, "cmd": ["oc", "--config=/etc/origin/master/admin.kubeconfig", "get", "namespaces", "-o", "jsonpath={.items[*].metadata.name}", "default", "openshift", "openshift-infra", "kube-system", "openshift-logging"], "delta": "0:00:00.192676", "end": "2018-04-24 23:20:26.272034", "msg": "non-zero return code", "rc": 1, "start": "2018-04-24 23:20:26.079358", "stderr": "Error from server (NotFound): namespaces \"openshift-logging\" not found", "stderr_lines": ["Error from server (NotFound): namespaces \"openshift-logging\" not found"], "stdout": "default openshift openshift-infra kube-system", "stdout_lines": ["default openshift openshift-infra kube-system"]}

Version-Release number of the following components:

Expected results:
Logging should have been installed. 'openshift_logging_install_logging: true' appears to have been in the inventory.

Comment 5 Anping Li 2018-05-22 02:07:34 UTC
The logging redeploy works with ose-ansible/images/v3.10.0- For there are some issue with OCP upgrade. So I installed v3.9 on v3.10 during this testing.
v3.9 logging are deployed in logging namespace. After upgrade, the all resource are upgraded as expected to v3.10 in logging namespaces. No error are reported in playbooks.

Comment 7 errata-xmlrpc 2018-07-30 19:13:48 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.


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