Created
June 9, 2015 09:26
-
-
Save FlorianOtel/f2a383e8f9fb18a427a2 to your computer and use it in GitHub Desktop.
OpenShift v3 beta3 ansible playbook run -- Create master config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is an example of a bring your own (byo) host inventory | |
# Create an OSEv3 group that contains the masters and nodes groups | |
[OSEv3:children] | |
masters | |
nodes | |
# 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 | |
# To deploy origin, change deployment_type to origin | |
deployment_type=enterprise | |
# Pre-release registry URL | |
# openshift_registry_url=docker-buildvm-rhose.usersys.redhat.com:5000/openshift3_beta/ose-${component}:${version} | |
# Pre-release additional repo | |
# openshift_additional_repos=[{'id': 'ose-devel', 'name': 'ose-devel', 'baseurl': 'http://buildvm-devops.usersys.redhat.com/puddle/build/OpenShiftEnterprise/3.0/latest/RH7-RHOSE-3.0/$basearch/os', 'enabled': 1, 'gpgcheck': 0}] | |
# openshift_additional_repos=[{'id': 'ose-devel', 'name': 'ose-devel', 'baseurl': 'http://buildvm-devops.usersys.redhat.com/puddle/build/OpenShiftEnterpriseErrata/3.0/latest/RH7-RHOSE-3.0/$basearch/os', 'enabled': 1, 'gpgcheck': 0}] | |
# Origin copr repo | |
#openshift_additional_repos=[{'id': 'openshift-origin-copr', 'name': 'OpenShift Origin COPR', 'baseurl': 'https://copr-be.cloud.fedoraproject.org/results/maxamillion/origin-next/epel-7-$basearch/', 'enabled': 1, 'gpgcheck': 1, gpgkey: 'https://copr-be.cloud.fedoraproject.org/results/maxamillion/origin-next/pubkey.gpg'}] | |
# host group for masters | |
[masters] | |
master1.nuage-vpc253.internal openshift_hostname=master1.nuage-vpc253.internal openshift_public_hostname=master1.nuage-vpc253.internal | |
# host group for nodes | |
[nodes] | |
node1.nuage-vpc253.internal openshift_hostname=node1.nuage-vpc253.internal openshift_public_hostname=node1.nuage-vpc253.internal | |
node2.nuage-vpc253.internal openshift_hostname=node2.nuage-vpc253.internal openshift_public_hostname=node2.nuage-vpc253.internal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TASK: [openshift_master | Create config parent directory if it doesn't exist] *** | |
<master1.nuage-vpc253.internal> | |
<master1.nuage-vpc253.internal> path=/etc/openshift state=directory | |
<master1.nuage-vpc253.internal> ConnectTimeout=10 PasswordAuthentication=no KbdInteractiveAuthentication=no ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey ControlMaster=auto Port=22 ControlPersist=60s | |
<master1.nuage-vpc253.internal> | |
<master1.nuage-vpc253.internal> ConnectTimeout=10 PasswordAuthentication=no 'LANG=C LC_CTYPE=C /usr/bin/python /root/.ansible/tmp/ansible-tmp-1433841422.98-42792006541956/file; rm -rf /root/.ansible/tmp/ansible-tmp-1433841422.98-42792006541956/ >/dev/null 2>&1' KbdInteractiveAuthentication=no ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey ControlMaster=auto Port=22 ControlPersist=60s | |
ok: [master1.nuage-vpc253.internal] => {"changed": false, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/openshift", "secontext": "system_u:object_r:etc_t:s0", "size": 19, "state": "directory", "uid": 0} | |
TASK: [openshift_master | Use enterprise default for openshift_registry_url if not set] *** | |
<master1.nuage-vpc253.internal> | |
ok: [master1.nuage-vpc253.internal] => {"ansible_facts": {"openshift_registry_url": "openshift3_beta/ose-${component}:${version}"}} | |
TASK: [openshift_master | Use online default for openshift_registry_url if not set] *** | |
skipping: [master1.nuage-vpc253.internal] | |
TASK: [openshift_master | Create master config] ******************************* | |
<master1.nuage-vpc253.internal> | |
<master1.nuage-vpc253.internal> --config=/etc/openshift/master.yaml chdir=/var/lib/openshift --master=https://ip-172-16-253-120.nuage-vpc253.internal:8443 --portal-net=172.30.17.0/24 creates=/etc/openshift/master.yaml --public-master=https://52.24.60.138:8443 --images=openshift3_beta/ose-${component}:${version} --listen=https://0.0.0.0:8443 | |
<master1.nuage-vpc253.internal> ConnectTimeout=10 PasswordAuthentication=no KbdInteractiveAuthentication=no ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey ControlMaster=auto Port=22 ControlPersist=60s | |
<master1.nuage-vpc253.internal> | |
<master1.nuage-vpc253.internal> ConnectTimeout=10 PasswordAuthentication=no 'LANG=C LC_CTYPE=C /usr/bin/python /root/.ansible/tmp/ansible-tmp-1433841423.32-85121768773325/command; rm -rf /root/.ansible/tmp/ansible-tmp-1433841423.32-85121768773325/ >/dev/null 2>&1' KbdInteractiveAuthentication=no ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey ControlMaster=auto Port=22 ControlPersist=60s | |
failed: [master1.nuage-vpc253.internal] => {"changed": true, "cmd": ["/usr/bin/openshift", "start", "master", "--write-config", "--config=/etc/openshift/master.yaml", "--portal-net=172.30.17.0/24", "--master=https://ip-172-16-253-120.nuage-vpc253.internal:8443", "--public-master=https://52.24.60.138:8443", "--listen=https://0.0.0.0:8443", "--images=openshift3_beta/ose-${component}:${version}"], "delta": "0:00:00.050166", "end": "2015-06-09 05:17:03.645616", "rc": 1, "start": "2015-06-09 05:17:03.595450", "warnings": []} | |
stderr: Error: flag needs an argument: --write-config | |
Run 'openshift help' for usage. | |
stdout: | |
Usage: | |
openshift start master [options] | |
Options: | |
--config='': Location of the master configuration file to run from. When running from a configuration file, all other command-line arguments are ignored. | |
--cors-allowed-origins=[]: List of allowed origins for CORS, comma separated. An allowed origin can be a regular expression to support subdomain matching. CORS is enabled for localhost, 127.0.0.1, and the asset server by default. | |
--create-certs=true: Indicates whether missing certs should be created | |
--dns='tcp://0.0.0.0:53': The address to listen for DNS requests on. | |
--etcd='https://0.0.0.0:4001': The address of the etcd server (host, host:port, or URL). If specified, no built-in etcd will be started. | |
--etcd-dir='openshift.local.etcd': The etcd data directory. | |
--host-subnet-length=8: The length of subnet each host is given from the network-cidr. | |
--images='openshift/origin-${component}:${version}': When fetching images used by the cluster for important components, use this format on both master and nodes. The latest release will be used by default. | |
--kubeconfig='': Path to the kubeconfig file to use for requests to the Kubernetes API. | |
--kubernetes='https://localhost:8443': removed in favor of --kubeconfig | |
--latest-images=false: If true, attempt to use the latest images for the cluster instead of the latest release. | |
--listen='https://0.0.0.0:8443': The address to listen for connections on (scheme://host:port). | |
--master='https://localhost:8443': The master address for use by OpenShift components (host, host:port, or URL). Scheme and port default to the --listen scheme and port. When unset, attempt to use the first public IPv4 non-loopback address registered on this host. | |
--network-cidr='10.1.0.0/16': The CIDR string representing the network that all containers should belong to. | |
--network-plugin='': The name of the networking plugin to be used for networking. | |
--nodes=[]: The hostnames of each node. This currently must be specified up front. Comma delimited list | |
--portal-net=172.30.0.0/16: A CIDR notation IP range from which to assign portal IPs. This must not overlap with any IP ranges assigned to nodes for pods. | |
--public-master='https://localhost:8443': The master address for use by public clients, if different (host, host:port, or URL). Defaults to same as --master. | |
--write-config='': Directory to write an initial config into. After writing, exit without starting the server. | |
Use "openshift start --help" for a list of all commands available in openshift start. | |
Use "openshift options" for a list of global command-line options (applies to all commands). | |
FATAL: all hosts have already failed -- aborting | |
PLAY RECAP ******************************************************************** | |
to retry, use: --limit @/root/config.retry | |
localhost : ok=1 changed=0 unreachable=0 failed=0 | |
master1.nuage-vpc253.internal : ok=26 changed=2 unreachable=0 failed=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment