openshift-ansible: Local VMs deployment fails with "NetworkManager must be installed and enabled prior to installation"
Description
Local VMs deployment fails with “NetworkManager must be installed and enabled prior to installation” even though NetworkManager is running on the host machine.
Version
ansible 2.3.1.0
config file = /root/openshift-ansible/ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.13 (default, Jun 26 2017, 10:20:05) [GCC 7.1.1 20170622 (Red Hat 7.1.1-3)]
openshift-ansible-3.7.1-1-40-g3be2748d
Steps To Reproduce
- Install dependencies, clone openshift-ansible repo.
- Run
bin/cluster create libvirt lenaic
Expected Results
Successfully deployed OpenShift.
Observed Results
Task openshift_node_dnsmasq fails with:
TASK [openshift_node_dnsmasq : fail] ***************************************************************************************************************************
Monday 31 July 2017 13:41:55 +0200 (0:00:00.869) 0:46:40.076 ***********
fatal: [lenaic-node-compute-5db33]: FAILED! => {
"changed": false,
"failed": true
}
MSG:
Currently, NetworkManager must be installed and enabled prior to installation.
fatal: [lenaic-node-compute-12c02]: FAILED! => {
"changed": false,
"failed": true
}
MSG:
Currently, NetworkManager must be installed and enabled prior to installation.
fatal: [lenaic-node-infra-e10d2]: FAILED! => {
"changed": false,
"failed": true
}
MSG:
Currently, NetworkManager must be installed and enabled prior to installation.
PLAY RECAP *****************************************************************************************************************************************************
lenaic-master-2ab2c : ok=327 changed=69 unreachable=0 failed=0
lenaic-node-compute-12c02 : ok=208 changed=40 unreachable=0 failed=1
lenaic-node-compute-5db33 : ok=212 changed=43 unreachable=0 failed=1
lenaic-node-infra-e10d2 : ok=208 changed=40 unreachable=0 failed=1
localhost : ok=96 changed=45 unreachable=0 failed=0
Monday 31 July 2017 13:41:55 +0200 (0:00:00.158) 0:46:40.234 ***********
===============================================================================
os_update_latest : Update all packages ------------------------------- 1542.56s
docker : Install Docker ----------------------------------------------- 169.61s
openshift_common : Install the base package for versioning ------------ 105.35s
docker : Install Docker ------------------------------------------------ 70.03s
openshift_common : Install the base package for versioning ------------- 50.87s
Wait for the VMs to get an IP ------------------------------------------ 39.08s
Wait for the VMs to get an IP ------------------------------------------ 38.80s
Wait for the VMs to get an IP ------------------------------------------ 22.08s
openshift_facts : Ensure various deps are installed -------------------- 20.78s
openshift_excluder : Install docker excluder --------------------------- 11.41s
openshift_excluder : Install openshift excluder ------------------------ 11.13s
openshift_docker_facts : Set docker facts ------------------------------ 10.73s
openshift_docker_facts : Set docker facts ------------------------------ 10.01s
openshift_manageiq : Configure role/user permissions -------------------- 9.98s
openshift_master : Start and enable master ------------------------------ 9.23s
docker : Start the Docker service --------------------------------------- 8.49s
openshift_facts : Gather Cluster facts and set is_containerized if needed --- 7.85s
openshift_docker_facts : Set docker facts ------------------------------- 7.51s
openshift_master : Create master config --------------------------------- 7.04s
openshift_facts --------------------------------------------------------- 6.96s
Failure summary:
1. Host: lenaic-node-compute-5db33
Play: Configure nodes
Task: openshift_node_dnsmasq : fail
Message: Currently, NetworkManager must be installed and enabled prior to installation.
2. Host: lenaic-node-compute-12c02
Play: Configure nodes
Task: openshift_node_dnsmasq : fail
Message: Currently, NetworkManager must be installed and enabled prior to installation.
3. Host: lenaic-node-infra-e10d2
Play: Configure nodes
Task: openshift_node_dnsmasq : fail
Message: Currently, NetworkManager must be installed and enabled prior to installation.
ACTION [create] failed: Command 'ansible-playbook -i inventory/libvirt/hosts -e 'num_masters=1 num_nodes=2 cluster_id=lenaic cluster_env=dev num_etcd=0 num_infra=1 deployment_type=origin' playbooks/libvirt/openshift-cluster/launch.yml' returned non-zero exit status 2
Additional Information
Host system: Fedora release 26 (Twenty Six)
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 2
- Comments: 15 (3 by maintainers)
Could this check be done by the prerequisites.yml playbook? It seems strange to be able to run through the prerequisites and then fail on this when running deploy_cluster.yml.
@aizuddin85 I did it as “workaround”. But my expectations are that openshift-ansible will install and enable NM if needed.
@bacek in your case, you need to set the NetworkManager to active.
The task for NM was returned False when your NM is inactive or disabled.
This is where the checks are: https://github.com/openshift/openshift-ansible/issues/4950#issuecomment-321499515