openshift / openshift-ansible

Install and config an OpenShift 3.x cluster
https://try.openshift.com
Apache License 2.0
2.17k stars 2.32k forks source link

openshift_storage_glusterfs : Label GlusterFS nodes #8503

Closed RobMokkink closed 6 years ago

RobMokkink commented 6 years ago

Description

The task "openshift_storage_glusterfs : Label GlusterFS nodes" fails

Version
ansible 2.5.2
  config file = /home/rob/Documents/Linux/openshift/ansible.cfg
  configured module search path = [u'/home/rob/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.15 (default, May 16 2018, 17:50:09) [GCC 8.1.1 20180502 (Red Hat 8.1.1-1)]

openshift-ansible-3.9.29-1
Steps To Reproduce
  1. [step 1]
  2. [step 2]
Expected Results

Describe what you expected to happen.

Glusterfs installed
Observed Results

Describe what is actually happening.

failed: [osemaster.lab.local] (item=osenode1.lab.local) => {"changed": false, "item": "osenode1.lab.local", "msg": {"cmd": "/usr/local/bin/oc label node osenode1.lab.local glusterfs=storage-host --overwrite", "results": {}, "returncode": 1, "stderr": "Error from server (NotFound): nodes \"osenode1.lab.local\" not found\n", "stdout": ""}}
failed: [osemaster.lab.local] (item=osenode2.lab.local) => {"changed": false, "item": "osenode2.lab.local", "msg": {"cmd": "/usr/local/bin/oc label node osenode2.lab.local glusterfs=storage-host --overwrite", "results": {}, "returncode": 1, "stderr": "Error from server (NotFound): nodes \"osenode2.lab.local\" not found\n", "stdout": ""}}
failed: [osemaster.lab.local] (item=osenode3.lab.local) => {"changed": false, "item": "osenode3.lab.local", "msg": {"cmd": "/usr/local/bin/oc label node osenode3.lab.local glusterfs=storage-host --overwrite", "results": {}, "returncode": 1, "stderr": "Error from server (NotFound): nodes \"osenode3.lab.local\" not found\n", "stdout": ""}}

For long output or logs, consider using a gist

Additional Information

Provide any additional information which may help us diagnose the issue.

Atomic host 7.1804

# Lab inventory with glusterfs
#
[OSEv3:children]
masters
nodes
etcd
# Specify there will be GlusterFS nodes
glusterfs
glusterfs_registry

[OSEv3:vars]
ansible_ssh_user=root
openshift_deployment_type=origin

# Region to choose for the router
openshift_router_selector='region=master'

# Default subdomain
openshift_master_default_subdomain=cloudapps.lab.local

# Hosts only need 4gb ram, this is for lab environments the case
openshift_check_min_host_memory_gb=4

# Skip certain checks
openshift_disable_check=memory_availability,disk_availability,docker_image_availability

# Release to install
openshift_release=3.9

# Tag for docker images
openshift_image_tag=v3.9.0

# Installe examples
openshift_install_examples=true

# Install container version not rpm based
containerized=true

# Configure the multi-tenant SDN plugin (default is 'redhat/openshift-ovs-subnet')
os_sdn_network_plugin_name='redhat/openshift-ovs-multitenant'

[masters]
osemaster.lab.local

[node]
# A hosted registry, by default, will only be deployed on nodes labeled
# "region=infra".
osemaster.lab.local openshift_node_labels="{'region': 'master'}" openshift_schedulable=True
osenode1.lab.local openshift_schedulable=True
osenode2.lab.local openshift_schedulable=True
osenode3.lab.local openshift_schedulable=True

[etcd]
osemaster.lab.local

[glusterfs]
osenode1.lab.local glusterfs_ip=10.0.0.21 glusterfs_devices='[ "/dev/vdc" ]'
osenode2.lab.local glusterfs_ip=10.0.0.22 glusterfs_devices='[ "/dev/vdc" ]'
osenode3.lab.local glusterfs_ip=10.0.0.23 glusterfs_devices='[ "/dev/vdc" ]'

[glusterfs_registry]
osenode1.lab.local glusterfs_ip=10.0.0.21 glusterfs_devices='[ "/dev/vdc" ]'
osenode2.lab.local glusterfs_ip=10.0.0.22 glusterfs_devices='[ "/dev/vdc" ]'
osenode3.lab.local glusterfs_ip=10.0.0.23 glusterfs_devices='[ "/dev/vdc" ]'
DanyC97 commented 6 years ago

it will help if you would provide info as to which openshift-ansbile version (git describe will help from within the directory) you running

RobMokkink commented 6 years ago

Hi,

It is version openshift-ansible-3.9.29-1

RobMokkink commented 6 years ago

My bad made a typo in the inventory.