Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1598705 - Deploying metrics server with ansible-playbook fails on Atomic Host
Summary: Deploying metrics server with ansible-playbook fails on Atomic Host
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.10.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 3.10.0
Assignee: Scott Dodson
QA Contact: Weinan Liu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-06 09:10 UTC by Weinan Liu
Modified: 2018-07-06 10:04 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-07-06 10:04:23 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Weinan Liu 2018-07-06 09:10:49 UTC
Description of problem:
Deploying metrics server fails with ansibile play book on Atomic Host.
The PR [1] add  a new flex-volume-plugin-dir /etc/origin/kubelet-plugin//volume/exec. the  flex-volume-plugin-dir couldn't pass the mater_check_path [2].


[1]https://github.com/openshift/openshift-ansible/commit/9c02aa722035e2b8e1ee3dd6390420c49f1deae3#diff-2043912067de8a475948b7fd66d45743
[2]  https://github.com/openshift/openshift-ansible/blob/master/roles/lib_utils/action_plugins/master_check_paths_in_config.py



Version-Release number of selected component (if applicable):
openshift-ansible:v3.10.12-1


How reproducible:
always

Steps to Reproduce:
1. Update qe-inventory-host-file to include metrics install parameters:
  openshift_metrics_install_metrics=True
  oreg_url=registry.reg-aws.openshift.com:443/openshift3/ose-${component}:${version}

2. Install metrics by
$ ansible-playbook -i qe-inventory-host-file playbooks/openshift-metrics/config.yml 

Actual results:
Ansibole-playbook fails with errors below:
fatal: [host-8-251-213.host.centralci.eng.rdu2.redhat.com]: FAILED! => {
    "msg": "A string value that appears to be a file path located outside of\n/etc/origin/master/, /var/lib/origin, /etc/origin/cloudprovider has been found in /etc/origin/master/master-config.yaml.\nIn 3.10 and newer, all files needed by the master must reside inside of\nthose directories or a subdirectory or it will not be readable by the\nmaster process. Please migrate all files needed by the master into\none of /etc/origin/master/, /var/lib/origin, /etc/origin/cloudprovider or a subdirectory and update your master configs before\nproceeding. The string found was: /etc/origin/kubelet-plugins/volume/exec\n***********************\nNOTE: the following items do not need to be migrated, they will be migrated\nfor you: oauthConfig.identityProviders"

Expected results:
metrics pods deployed Successfully

Additional info:
N/A

Comment 1 Anping Li 2018-07-06 09:19:32 UTC
The bug will block all the post deployment via ansible-playbook on Atomic hosts.

Comment 2 Anping Li 2018-07-06 10:04:23 UTC
The playbooks used are not latest.


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