openshift-ansible: Unable to restart service origin-master
Description
Hello guys,
I tried to deploy openshift on GCE, following this tutorial: https://www.youtube.com/watch?v=1Lo10hLC2XE , but I keep have this error
Version
ansible 2.3.0.0
If you’re operating from a git clone:
openshift-ansible-3.6.68-1-2-gf20bf53
Steps To Reproduce
- set to ansible.cfg to :
# config file for ansible -- http://ansible.com/
# ==============================================
# This config file provides examples for running
# the OpenShift playbooks with the provided
# inventory scripts.
[defaults]
# Set the log_path
#log_path = /tmp/ansible.log
# Additional default options for OpenShift Ansible
callback_plugins = callback_plugins/
forks = 20
host_key_checking = False
retry_files_enabled = False
nocows = True
# Uncomment to use the provided BYO inventory
hostfile = inventory/byo/hosts
# Uncomment to use the provided GCE dynamic inventory script
#hostfile = inventory/gce/gce.py
# Uncomment to use the provided AWS dynamic inventory script
#hostfile = inventory/aws/ec2.py
# Additional ssh options for OpenShift Ansible
[ssh_connection]
pipelining = True
- set the hosts file
inventory/byo/hostto :
[OSEv3:children]
masters
nodes
[OSEv3:vars]
ansible_ssh_user=elmehdiezghari
ansible_become=yes
deployment_type=origin
openshift_release=v1.5.0
containerized=true
openshift_install_examples=true
# use htpasswd authentication with demo/demo
openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/master/htpasswd'}]
openshift_master_htpasswd_users={'demo': '$apr1$.MaA77kd$Rlnn6RXq9kCjnEfh5I3w/.'}
# put the router on dedicated infra node
openshift_hosted_router_selector='region=infra'
openshift_master_default_subdomain=origin.mezghari.ml
# put the image registry on dedicated infra node
openshift_hosted_registry_selector='region=infra'
# project pods should be placed on primary nodes
osm_default_node_selector='region=primary'
[masters]
master.mezghari.ml openshift_public_hostname=master.mezghari.ml
[nodes]
# master needs to be included in the node to be configured in the SDN
master.mezghari.ml openshift_public_hostname=master.mezghari.ml
infra openshift_node_labels="{'region': 'infra', 'zone': 'default'}"
node1 penshift_node_labels="{'region': 'primary', 'zone': 'default'}"
node2 openshift_node_labels="{'region': 'primary', 'zone': 'default'}
```"
Example command and output or error messages
##### Observed Results
I keep getting this error :
RUNNING HANDLER [openshift_master : restart master] ***************************************************************
fatal: [master.mezghari.ml]: FAILED! => {
"changed": false,
"failed": true
}
MSG:
Unable to restart service origin-master: Job for origin-master.service failed because the control process exited with error code. See "systemctl status origin-master.service" and "journalctl -xe" for details.
Example command and output or error messages
systemctl status origin-master.service :
origin-master.service
Loaded: loaded (/etc/systemd/system/origin-master.service; enabled; vendor preset: disabled)
Active: activating (auto-restart) (Result: exit-code) since Mon 2017-05-15 13:39:19 UTC; 2s ago
Process: 5324 ExecStop=/usr/bin/docker stop origin-master (code=exited, status=1/FAILURE)
Process: 5205 ExecStartPost=/usr/bin/sleep 10 (code=exited, status=0/SUCCESS)
Process: 5204 ExecStart=/usr/bin/docker run --rm --privileged --net=host --name origin-master --env-file=/etc/sysconfig/origin-master -v /var/lib/origin:/var/lib/origin -v /var/log:/var/log -v /var/run/docker.sock:/var/run/docker.sock -v /etc/origin:/etc/origin openshift/origin:${IMAGE_VERSION} start master --config=${CONFIG_FILE} $OPTIONS (code=exited, status=255)
Process: 5200 ExecStartPre=/usr/bin/docker rm -f origin-master (code=exited, status=1/FAILURE)
Main PID: 5204 (code=exited, status=255)
May 15 13:39:19 master systemd[1]: origin-master.service: control process exited, code=ex...us=1
May 15 13:39:19 master systemd[1]: Failed to start origin-master.service.
May 15 13:39:19 master systemd[1]: Unit origin-master.service entered failed state.
May 15 13:39:19 master systemd[1]: origin-master.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
Do you have please any idea how to solve this, or even an other way to have openshift installed over google cloud service.
Thank you,
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 21 (7 by maintainers)
@elmehdi92 ok, if you can provide the journalctl and docker logs, that would help. Right now I only know that the origin-master container failed to start, but not why.