openshift-ansible: Unable to restart service origin-master-api

Description

During the installation of Openshift Origin I am getting the error below;

fatal: [dae-openshift-dev.digitaldev.local]: FAILED! => { “changed”: false, “invocation”: { “module_args”: { “daemon_reload”: false, “enabled”: null, “masked”: null, “name”: “origin-master-api”, “no_block”: false, “state”: “restarted”, “user”: false } }, “msg”: “Unable to restart service origin-master-api: Job for origin-master-api.service failed because the control process exited with error code. See "systemctl status origin-master-api.service" and "journalctl -xe" for details.\n” }

Version

Please put the following version information in the code block indicated below.

ansible 2.4.2.0


https://github.com/openshift/openshift-ansible.git

ansible-playbook -i /etc/ansible/hosts /openshift/openshift-ansible/playbooks/openshift-master/config.yml

VERSION INFORMATION HERE PLEASE
Expected Results

I am expecting OpenShift Origin to be installed.

Example command and output or error messages
 ansible-playbook -i /etc/ansible/hosts /openshift/openshift-ansible/playbooks/openshift-master/config.yml 

    "msg": "Unable to restart service origin-master-api: Job for origin-master-api.service failed because the control process exited with error code. See \"systemctl status origin-master-api.service\" and \"journalctl -xe\" for details.\n"
Observed Results

The ansible playbook execcutes up to the point where it tries to restart the origin-master-api. When I do a ‘docker ps -a’ I don’t see the container that it’s trying to start.


##### Additional Information

Provide any additional information which may help us diagnose the
issue.
I tries running the playbook as root and as a non-root user without any success

* OS - 
CentOS Linux release 7.4.1708 (Core)
* Inventory file - 
[OSEv3:children]
masters
nodes
etcd

# Set variables common for all OSEv3 hosts
[OSEv3:vars]
# SSH user, this user should allow ssh based auth without requiring a password
ansible_ssh_user=root

# If ansible_ssh_user is not root, ansible_sudo must be set to true
#ansible_sudo=true
ansible_user=root
#ansible_user=osadmin
ansible_become=true
product_type=openshift
deployment_type=origin
enable_excluders=false

# uncomment the following to enable htpasswd authentication; defaults to DenyAllPasswordIdentityProvider
openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/
etc/origin/openshift-passwd'}]

containerized=true
openshift_release=v3.9
openshift_image_tag=v3.9.0
openshift_public_hostname=dae-openshift-dev.digitaldev.local
openshift_master_default_subdomain=apps.dae-openshift-dev.digitaldev.local
openshift_disable_check=memory_availability,docker_storage,disk_availability,package_version
os_firewall_enabled=false
etcd_version=3.2.7

# host group for masters
[masters]
dae-openshift-dev.digitaldev.local

# host group for nodes, includes region info
[nodes]
dae-openshift-dev.digitaldev.local
[etcd]
dae-openshift-dev.digitaldev.local

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 16 (3 by maintainers)

Most upvoted comments

@randy280872 i got a same problem, and i reslove it by redeploying all certificates. you can try like this:

ansible-playbook -i <inventory_file> \
    /usr/share/ansible/openshift-ansible/playbooks/redeploy-certificates.yml

after that ,i get a error message like “can not connect master api”, because api server not start yet, so i retry to run :

ansible-playbook -i /etc/ansible/inventory.ini  \
/usr/share/openshift-ansible/playbooks/deploy_cluster.yml

it’s All Complete! 😃