Hello Jason, thanks for swift response:

*What does your inventory file look like?*

# Create an OSEv3 group that contains the masters and nodes groups
[OSEv3:children]
masters
nodes
nfs

# Set variables common for all OSEv3 hosts
[OSEv3:vars]
ansible_ssh_user=root
debug_level=2
deployment_type=origin


# htpasswd auth
openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login':
'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider',
'filename': '/etc/origin/master/htpasswd'}]

# default subdomain to use for exposed routes
osm_default_subdomain=app.maomuffy.lab

# default project node selector
osm_default_node_selector='region=primary'

# default selectors for router and registry services
openshift_router_selector='region=infra'
openshift_registry_selector='region=infra'

## Registry Storage Options
##
## Storage Kind
openshift_hosted_registry_storage_kind=nfs
##
## Storage Host
openshift_hosted_registry_storage_host=registry.maomuffy.lab
##
## NFS Export Options
openshift_hosted_registry_storage_nfs_options='*(rw,root_squash)'
##
## NFS Export Directory
openshift_hosted_registry_storage_nfs_directory=/exports
##
## Registry Volume Name
openshift_hosted_registry_storage_volume_name=registry
##
## Persistent Volume Access Mode
openshift_hosted_registry_storage_access_modes=['ReadWriteMany']

openshift_override_hostname_check=true

# host group for masters
[masters]
master.maomuffy.lab openshift_ip=1.1.1.171

[nfs]
registry.maomuffy.lab

[nodes]
master.maomuffy.lab openshift_node_labels="{'region': 'infra', 'zone':
'default'}" openshift_ip=1.1.1.171 openshift_schedulable=False
node1.maomuffy.lab openshift_node_labels="{'region': 'primary', 'zone':
'north'}" openshift_ip=1.1.1.172


After running the installer again with the exception of changing the
*debug_level=2* to *debug_level=5*, it worked. I have battled with this
error for two days now and for some weird reason, it worked. Not sure what
fixed it really.

Thanks again for your help!


On Fri, Apr 1, 2016 at 1:53 PM, Jason DeTiberus <[email protected]> wrote:

> What does your inventory file look like?
>
> How about the output of the journal logs for origin-master?
>
> Is this a cloud deployment (AWS, GCE, OpenStack)? If so, are you
> configuring the cloud provider integration?
> On Apr 1, 2016 8:18 AM, "Mfawa Alfred Onen" <[email protected]>
> wrote:
>
>> I wanted to setup a small lab consisting of 1 Master, 1 Node, 1 NFS
>> storage Node for the Registry but got the following error during the
>> ansible playbook run. I am using the openshift-ansible installer (for
>> advanced installation) from
>> https://github.com/openshift/openshift-ansible
>>
>> *1. Ansible Playbook Error*
>>
>> TASK: [openshift_node | Start and enable node]
>> ********************************
>> failed: [master.maomuffy.lab] => {"failed": true}
>> msg: Job for origin-node.service failed because the control process
>> exited with error code. See "systemctl status origin-node.service" and
>> "journalctl -xe" for details.
>>
>> failed: [node1.maomuffy.lab] => {"failed": true}
>> msg: Job for origin-node.service failed because the control process
>> exited with error code. See "systemctl status origin-node.service" and
>> "journalctl -xe" for details.
>>
>>
>> FATAL: all hosts have already failed -- aborting
>>
>> PLAY RECAP
>> ********************************************************************
>>            to retry, use: --limit @/root/config.retry
>>
>> localhost                  : ok=22   changed=0    unreachable=0
>>  failed=0
>> master.maomuffy.lab        : ok=295  changed=2    unreachable=0
>>  failed=1
>> node1.maomuffy.lab         : ok=72   changed=1    unreachable=0
>>  failed=1
>> registry.maomuffy.lab      : ok=35   changed=0    unreachable=0
>>  failed=0
>>
>>
>> *2. Result of "systemctl status origin-node.service -l"*
>>
>> origin-node.service - Origin Node
>>    Loaded: loaded (/usr/lib/systemd/system/origin-node.service; enabled;
>> vendor preset: disabled)
>>   Drop-In: /usr/lib/systemd/system/origin-node.service.d
>>            ââopenshift-sdn-ovs.conf
>>    Active: activating (start) since Fri 2016-04-01 15:08:50 WAT; 28s ago
>>      Docs: https://github.com/openshift/origin
>>  Main PID: 22983 (openshift)
>>    CGroup: /system.slice/origin-node.service
>>            ââ22983 /usr/bin/openshift start node
>> --config=/etc/origin/node/node-config.yaml --loglevel=2
>>
>> Apr 01 15:09:14 master.maomuffy.lab origin-node[22983]: W0401
>> 15:09:14.509989   22983 subnets.go:150] Could not find an allocated subnet
>> for node: master.maomuffy.lab, Waiting...
>> Apr 01 15:09:15 master.maomuffy.lab origin-node[22983]: W0401
>> 15:09:15.022509   22983 subnets.go:150] Could not find an allocated subnet
>> for node: master.maomuffy.lab, Waiting...
>> Apr 01 15:09:15 master.maomuffy.lab origin-node[22983]: W0401
>> 15:09:15.530037   22983 subnets.go:150] Could not find an allocated subnet
>> for node: master.maomuffy.lab, Waiting...
>> Apr 01 15:09:16 master.maomuffy.lab origin-node[22983]: W0401
>> 15:09:16.038613   22983 subnets.go:150] Could not find an allocated subnet
>> for node: master.maomuffy.lab, Waiting...
>> Apr 01 15:09:16 master.maomuffy.lab origin-node[22983]: W0401
>> 15:09:16.546537   22983 subnets.go:150] Could not find an allocated subnet
>> for node: master.maomuffy.lab, Waiting...
>> Apr 01 15:09:17 master.maomuffy.lab origin-node[22983]: W0401
>> 15:09:17.050915   22983 subnets.go:150] Could not find an allocated subnet
>> for node: master.maomuffy.lab, Waiting...
>> Apr 01 15:09:17 master.maomuffy.lab origin-node[22983]: W0401
>> 15:09:17.554703   22983 subnets.go:150] Could not find an allocated subnet
>> for node: master.maomuffy.lab, Waiting...
>> Apr 01 15:09:18 master.maomuffy.lab origin-node[22983]: W0401
>> 15:09:18.059674   22983 subnets.go:150] Could not find an allocated subnet
>> for node: master.maomuffy.lab, Waiting...
>> Apr 01 15:09:18 master.maomuffy.lab origin-node[22983]: W0401
>> 15:09:18.563857   22983 subnets.go:150] Could not find an allocated subnet
>> for node: master.maomuffy.lab, Waiting...
>> Apr 01 15:09:19 master.maomuffy.lab origin-node[22983]: W0401
>> 15:09:19.070060   22983 subnets.go:150] Could not find an allocated subnet
>> for node: master.maomuffy.lab, Waiting...
>>
>> *3. Result of "journalctl -xe"*
>>
>> Apr 01 15:10:21 master.maomuffy.lab origin-node[23029]: W0401
>> 15:10:21.856119   23029 subnets.go:150] Could not find an allocated su
>> Apr 01 15:10:22 master.maomuffy.lab origin-node[23029]: W0401
>> 15:10:22.358740   23029 subnets.go:150] Could not find an allocated su
>> Apr 01 15:10:22 master.maomuffy.lab origin-node[23029]: W0401
>> 15:10:22.864887   23029 subnets.go:150] Could not find an allocated su
>> Apr 01 15:10:23 master.maomuffy.lab origin-node[23029]: W0401
>> 15:10:23.371731   23029 subnets.go:150] Could not find an allocated su
>> Apr 01 15:10:23 master.maomuffy.lab origin-node[23029]: W0401
>> 15:10:23.879284   23029 subnets.go:150] Could not find an allocated su
>> Apr 01 15:10:24 master.maomuffy.lab origin-node[23029]: W0401
>> 15:10:24.385482   23029 subnets.go:150] Could not find an allocated su
>> Apr 01 15:10:24 master.maomuffy.lab origin-node[23029]: W0401
>> 15:10:24.891242   23029 subnets.go:150] Could not find an allocated su
>> Apr 01 15:10:25 master.maomuffy.lab origin-node[23029]: W0401
>> 15:10:25.397224   23029 subnets.go:150] Could not find an allocated su
>> Apr 01 15:10:25 master.maomuffy.lab origin-node[23029]: F0401
>> 15:10:25.897766   23029 node.go:258] error: SDN node startup failed: F
>> Apr 01 15:10:25 master.maomuffy.lab systemd[1]: origin-node.service: main
>> process exited, code=exited, status=255/n/a
>> Apr 01 15:10:25 master.maomuffy.lab systemd[1]: Failed to start Origin
>> Node.
>> -- Subject: Unit origin-node.service has failed
>> -- Defined-By: systemd
>> -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>> --
>> -- Unit origin-node.service has failed.
>> --
>> -- The result is failed.
>> Apr 01 15:10:25 master.maomuffy.lab systemd[1]: Unit origin-node.service
>> entered failed state.
>> Apr 01 15:10:25 master.maomuffy.lab systemd[1]: origin-node.service
>> failed.
>> Apr 01 15:10:26 master.maomuffy.lab systemd[1]: origin-node.service
>> holdoff time over, scheduling restart.
>> Apr 01 15:10:26 master.maomuffy.lab systemd[1]: Starting Origin Node...
>> -- Subject: Unit origin-node.service has begun start-up
>> -- Defined-By: systemd
>> -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>> --
>> -- Unit origin-node.service has begun starting up.
>>
>> *4. Checking /var/log/messages*
>>
>> Apr  1 15:11:30 master origin-node: I0401 15:11:30.804637   23092
>> manager.go:172] Version: {KernelVersion:3.10.0-327.10.1.el7.x86_64
>> ContainerOsVersion:CentOS Linux 7 (Core) DockerVersion:1.9.1
>> CadvisorVersion: CadvisorRevision:}
>> Apr  1 15:11:30 master origin-node: I0401 15:11:30.805420   23092
>> server.go:320] Using root directory: /var/lib/origin/openshift.local.volumes
>> Apr  1 15:11:30 master origin-node: I0401 15:11:30.805646   23092
>> server.go:654] Watching apiserver
>> Apr  1 15:11:30 master origin-node: I0401 15:11:30.823906   23092
>> plugins.go:122] Loaded network plugin "redhat/openshift-ovs-subnet"
>> Apr  1 15:11:30 master origin-node: I0401 15:11:30.823960   23092
>> kubelet.go:370] Hairpin mode set to true
>> Apr  1 15:11:31 master origin-node: W0401 15:11:31.527611   23092
>> subnets.go:150] Could not find an allocated subnet for node:
>> master.maomuffy.lab, Waiting...
>> Apr  1 15:11:31 master origin-node: I0401 15:11:31.658479   23092
>> manager.go:196] Setting dockerRoot to /var/lib/docker
>> Apr  1 15:11:31 master origin-node: I0401 15:11:31.658561   23092
>> plugins.go:56] Registering credential provider: .dockercfg
>> Apr  1 15:11:32 master origin-node: W0401 15:11:32.050089   23092
>> subnets.go:150] Could not find an allocated subnet for node:
>> master.maomuffy.lab, Waiting...
>> Apr  1 15:11:32 master origin-node: W0401 15:11:32.555947   23092
>> subnets.go:150] Could not find an allocated subnet for node:
>> master.maomuffy.lab, Waiting...
>> Apr  1 15:11:33 master origin-node: W0401 15:11:33.066090   23092
>> subnets.go:150] Could not find an allocated subnet for node:
>> master.maomuffy.lab, Waiting...
>> Apr  1 15:11:33 master origin-node: W0401 15:11:33.572013   23092
>> subnets.go:150] Could not find an allocated subnet for node:
>> master.maomuffy.lab, Waiting...
>> Apr  1 15:11:33 master origin-node: F0401 15:11:33.148075   23072
>> node.go:258] error: SDN node startup failed: Failed to start plugin: Failed
>> to get subnet for this host: master.maomuffy.lab, error: hostsubnets
>> "master.maomuffy.lab" not found
>>
>> What could I have done wrong considering I used the documentation here:
>> https://docs.openshift.org/latest/install_config/install/advanced_install.html#single-master
>>
>> Kind Regards!
>>
>> --
>> *Mfawa Alfred Onen*
>> System Administrator / GDG Lead, Bingham University
>> Department of Computer Science,
>> Bingham University.
>>
>> E-Mail: [email protected]
>> Phone1: +234 805 944 3154
>> Phone2: +234 803 079 6088
>> Twitter: @muffycompo <https://twitter.com/muffycompo>
>> Google+: https://plus.google.com/+MfawaAlfredOnen
>>
>> _______________________________________________
>> users mailing list
>> [email protected]
>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>>
>>


-- 
*Mfawa Alfred Onen*
System Administrator / GDG Lead, Bingham University
Department of Computer Science,
Bingham University.

E-Mail: [email protected]
Phone1: +234 805 944 3154
Phone2: +234 803 079 6088
Twitter: @muffycompo <https://twitter.com/muffycompo>
Google+: https://plus.google.com/+MfawaAlfredOnen
_______________________________________________
users mailing list
[email protected]
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

Reply via email to