Bug 1558248 - [DOCS] Missing ansible host prep docs
Summary: [DOCS] Missing ansible host prep docs
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Documentation
Version: 3.9.0
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: ---
Assignee: Alex Dellapenta
QA Contact: Johnny Liu
Vikram Goyal
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-03-19 21:57 UTC by Eric Rich
Modified: 2018-03-28 19:24 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-28 19:24:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Eric Rich 2018-03-19 21:57:40 UTC
Document URL: https://docs.openshift.com/container-platform/3.9/install_config/install/host_preparation.html#install-config-install-host-preparation

Section Number and Name: Missing (Ansible Section) 

Describe the issue: We define that: 

> This includes verifying system and environment requirements per component type and properly installing and configuring Docker. It also includes installing Ansible version 2.4 or later, as the advanced installation method is based on Ansible playbooks and as such requires directly invoking Ansible.

https://docs.openshift.com/container-platform/3.9/install_config/install/advanced_install.html#advanced-before-you-begin

However the denoted section: https://docs.openshift.com/container-platform/3.9/install_config/install/host_preparation.html#install-config-install-host-preparation has not Ansible Install or Verification steps.

Suggestions for improvement: Add an ansible install/verification section to the host preparation documents. 

Additional information:

Comment 1 Eric Rich 2018-03-20 01:00:06 UTC
Not having this will result in customers not having ansible installed on the nodes! 

Leading to install errors like: 

https://github.com/openshift/openshift-ansible-contrib/issues/941 

Failure summary:

TASK [Gather Cluster facts] ****************************************************************************************************************
fatal: [grumpy.dwarf.mine]: FAILED! => {"changed": false, "module_stderr": "Shared connection to host.domain closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n  File \"/tmp/ansible_MqiPXn/ansible_module_openshift_facts.py\", line 18, in <module>\r\n    import ipaddress\r\nImportError: No module named ipaddress\r\n", "msg": "MODULE FAILURE", "rc": 0}

...

  1. Hosts:    host.domain
     Play:     Initialize cluster facts
     Task:     Gather Cluster facts
     Message:  MODULE FAILURE

Comment 4 Scott Dodson 2018-03-20 14:51:47 UTC
We don't need ansible installed on all nodes. python-ipaddress is required on all nodes and the prerequisites playbook should install that before it's required.

Eric, can you confirm whether or not playbooks/prerequisites.yml was called and provide complete reproducer steps?

Comment 5 Eric Rich 2018-03-20 15:22:37 UTC
(In reply to Scott Dodson from comment #4)
> We don't need ansible installed on all nodes. python-ipaddress is required
> on all nodes and the prerequisites playbook should install that before it's
> required.
> 
> Eric, can you confirm whether or not playbooks/prerequisites.yml was called
> and provide complete reproducer steps?

Our docs, don't explain to run the pre-requisites.yml playbook - I was not even aware that it existed! 

It's not listed as a playbook in https://docs.openshift.com/container-platform/3.9/install_config/install/advanced_install.html#running-the-advanced-installation-individual-components 

Do we should we have/call out in https://docs.openshift.com/container-platform/3.9/install_config/install/host_preparation.html that we have this playbook and that it should be run? 

Is this called by default with other playbooks? If so I don't believe it ran (I did not call it nor do I see it get called, in my latest run of ansible).

Comment 6 Alex Dellapenta 2018-03-20 15:26:58 UTC
I'm adding it.

Comment 8 Johnny Liu 2018-03-22 05:51:24 UTC
LGTM.


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