Bug 1744248 - redefining openshift_metrics_project from default openshift-infra will cause installation to fail
Summary: redefining openshift_metrics_project from default openshift-infra will cause ...
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.11.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 3.11.z
Assignee: Russell Teague
QA Contact: Junqi Zhao
Depends On:
TreeView+ depends on / blocked
Reported: 2019-08-21 15:55 UTC by Chuck Douglas
Modified: 2019-11-18 14:52 UTC (History)
0 users

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Last Closed: 2019-11-18 14:52:08 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github openshift openshift-ansible pull 11973 0 None closed Bug 1744248: Update docs to indicate that changing will break install 2020-05-21 14:38:43 UTC
Red Hat Product Errata RHBA-2019:3817 0 None None None 2019-11-18 14:52:18 UTC

Description Chuck Douglas 2019-08-21 15:55:19 UTC
Description of problem:
./roles/openshift_metrics/README.md states that:

`The following variables need to be set and will be validated:

- `openshift_metrics_hawkular_hostname`: hostname used on the hawkular metrics route.

- `openshift_metrics_project`: project (i.e. namespace) where the components will be

Setting `openshift_metrics_project` to anything other than the default of `openshift-infra`, however, causes the installation to fail during the
`./roles/openshift_metrics/tasks/pre_install.yaml` playbook with the message:

`Cannot get annotations on {{ openshift_metrics_project }} namespace`

where `{{ openshift_metrics_project }}` is the redefined name.  This appears to be due to the fact that there is not a play that creates a newly defined `openshift_metrics_project` namespace.  `openshift-infra` is created by default in other plays.

Version-Release number of the following components:

rpm -q openshift-ansible

rpm -q ansible                                                                                                                           

ansible --version
ansible 2.6.14
  config file = /root/openshift-cluster-311-lab/ansible.cfg
  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /bin/ansible
  python version = 2.7.5 (default, Jun 11 2019, 12:19:05) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]

How reproducible: Always

Steps to Reproduce:
1.  define an OSEv3 variable `openshift_metrics_project=openshift-metrics`
2. run installer.
3. fails

Actual results:
Cannot get annotations on openshift-metrics namespace

Expected results:
Functioning cluster with metrics installed.

Comment 1 Scott Dodson 2019-10-15 15:20:11 UTC
Thanks, however this cannot be reconfigured due to several other factors as such it's not included in the product documentation at docs.openshift.com.

Do you mind opening a pull request to amend in the in project documentation?

Comment 2 Chuck Douglas 2019-10-22 15:12:58 UTC
Pull request submitted.


Comment 6 errata-xmlrpc 2019-11-18 14:52:08 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.