openshift-ansible: htpasswd' is unavailable. Please install httpd-tools on the control node
Description
Playbook fails at:
TASK [openshift_metrics : fail] *****************************************************************************************************************************************
fatal: [apps.mydomain.com]: FAILED! => {"changed": false, "failed": true, "msg": "'htpasswd' is unavailable. Please install httpd-tools on the control node"}
On a single master install.
Version
Please put the following version information in the code block indicated below.
ansible --version ansible 2.3.0.0 python version = 2.7.13 (default, Jan 19 2017, 14:48:08) [GCC 6.3.0 20170118]
Steps To Reproduce
- Run
ansible-playbook -i inventory.erb ./openshift-ansible/playbooks/byo/config.ymlwhere the inventory is:
[OSEv3:children]
masters
nodes
nfs
[OSEv3:vars]
ansible_ssh_user=root
deployment_type=origin
openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/master/htpasswd'}]
containerized=true
openshift_release=v3.6.0
openshift_image_tag=v3.6.0
openshift_public_hostname=apps.domain.com
openshift_master_default_subdomain=apps.domain.com
openshift_hosted_metrics_deploy=true
enable_excluders=false
openshift_disable_check=docker_storage
openshift_hosted_metrics_public_url=apps.domain.com
[etcd]
apps.domain.com
[nfs]
apps.domain.com
[masters]
apps.domain.com openshift_schedulable=true
[nodes]
apps.domain.com openshift_node_labels="{'region': 'infra', 'zone': 'default'}" openshift_schedulable=true
Expected Results
Expect installation to complete successfully, including installing metrics.
Observed Results
Fails with
TASK [openshift_metrics : fail] *****************************************************************************************************************************************
fatal: [apps.mydomain.com]: FAILED! => {"changed": false, "failed": true, "msg": "'htpasswd' is unavailable. Please install httpd-tools on the control node"}
to retry, use: --limit @/home/john/git/openshift-ansible/playbooks/byo/config.retry
PLAY RECAP **************************************************************************************************************************************************************
apps.mydomain.com : ok=492 changed=38 unreachable=0 failed=1
localhost : ok=14 changed=0 unreachable=0 failed=0
Failure summary:
1. Hosts: apps.mydomain.com
Play: Create Hosted Resources
Task: openshift_metrics : fail
Message: 'htpasswd' is unavailable. Please install httpd-tools on the control node
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 16 (7 by maintainers)
@ewolinetz @magick93 I’m surprised we don’t have that documented in our README
https://github.com/openshift/openshift-ansible#setup