Bug 1436106

Summary: Metrics deployment failed when running "Create objects"
Product: OpenShift Container Platform Reporter: Gaoyun Pei <gpei>
Component: InstallerAssignee: ewolinet
Status: CLOSED ERRATA QA Contact: Gaoyun Pei <gpei>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.5.0CC: aos-bugs, gpei, jokerman, mmccomas
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-12 19:04:17 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 Gaoyun Pei 2017-03-27 07:49:15 UTC
Description of problem:
Enable metrics deployment during installation with setting openshift_hosted_metrics_deploy=true in ansible inventory file, installation playbook failed as:

TASK [openshift_metrics : Checking generation of {{file_content.kind}} {{file_content.metadata.name}}] ***
Monday 27 March 2017  06:44:50 +0000 (0:00:01.841)       0:18:33.813 ********** 
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ScannerError: {{ item.content | b64decode | from_yaml }}:
fatal: [ec2-54-164-204-163.compute-1.amazonaws.com]: FAILED! => {
    "failed": true
}

MSG:

Unexpected failure during module execution.



Version-Release number of selected component (if applicable):
openshift-ansible-3.5.45-1.git.0.eb0859b.el7.noarch.rpm

How reproducible:
Always

Steps to Reproduce:
1.Set openshift_hosted_metrics_deploy=true in ansible inventory, start installation playbook.


Actual results:


Expected results:


Additional info:

Comment 2 ewolinet 2017-03-27 22:20:11 UTC
I'm currently running into other issues when running the BYO playbook trying to recreate this. Can you provide your inventory file you are using please?

Can you also provide the '-vvv' output of that failing task? I'm not sure where the 'ScannerError' is coming from.

Comment 3 Scott Dodson 2017-03-28 01:06:15 UTC
Gaoyun, Also, how reproducable is this?

Comment 4 ewolinet 2017-03-28 20:48:58 UTC
I'm able to recreate this now... it seems its having problems with the 'metrics-heapster-rc.yaml' template each time.

Comment 6 Gaoyun Pei 2017-03-29 06:47:48 UTC
Hi, Eric/Scott

It's always reproducible when running with openshift-ansible-3.5.45-1, and the metrics related '-vvv' output was attached in Comment 1, sorry for my late reply. 

And I have tried installation with the proposed PR https://github.com/openshift/openshift-ansible/pull/3791, it works well on metrics deployment, thanks!

Comment 8 Gaoyun Pei 2017-03-30 05:24:35 UTC
Verify this bug with openshift-ansible-3.5.46-1.git.0.f676f1c.el7.noarch.rpm

Set openshift_hosted_metrics_deploy=true in ansible inventory, installation playbook run well and metrics pod were deployed.

Comment 10 errata-xmlrpc 2017-04-12 19:04:17 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-2017:0903