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