Closed smossber closed 6 years ago
@smossber can you try with a newer openshift-ansible tag version ?
I tried with latest openshift-ansible-3.7.29-1
and no longer have that error however i have a new one
2018-02-11 11:14:57,659 p=29824 u=root | TASK [openshift_storage_glusterfs : Load heketi topology] ************************************************************************************************************************************************
2018-02-11 11:15:02,789 p=29824 u=root | fatal: [370-master1]: FAILED! => {"changed": true, "cmd": ["oc", "rsh", "--namespace=glusterfs", "deploy-heketi-storage-1-2pq9l", "heketi-cli", "-s", "http://localhost:8080", "--user", "admin", "--secret", "hGg3nkBKHQAURiCnOlto2VjZBun/lSYKixb+TT5LEoE=", "topology", "load", "--json=/tmp/openshift-glusterfs-ansible-ls3tKn/topology.json", "2>&1"], "delta": "0:00:04.809425", "end": "2018-02-11 11:14:32.737780", "failed_when_result": true, "rc": 0, "start": "2018-02-11 11:14:27.928355", "stderr": "", "stderr_lines": [], "stdout": "Creating cluster ... ID: f197eab8f8508e7bd392398674229539\n\tCreating node 370-gluster1 ... ID: a540ed1d70f0a92991edea422007f1a5\n\t\tAdding device /dev/sdd ... OK\n\tCreating node 370-gluster2 ... Unable to create node: Unable to execute command on glusterfs-storage-chwv4:\n\tCreating node 370-gluster3 ... Unable to create node: Unable to execute command on glusterfs-storage-chwv4:", "stdout_lines": ["Creating cluster ... ID: f197eab8f8508e7bd392398674229539", "\tCreating node 370-gluster1 ... ID: a540ed1d70f0a92991edea422007f1a5", "\t\tAdding device /dev/sdd ... OK", "\tCreating node 370-gluster2 ... Unable to create node: Unable to execute command on glusterfs-storage-chwv4:", "\tCreating node 370-gluster3 ... Unable to create node: Unable to execute command on glusterfs-storage-chwv4:"]}
for which i'll open a new issue.
@smossber i assume is all fixed, if so please can you close the issue ?
Description
After a failed GlusterFS deployment I wanted to wipe everything as I've understood that the config playbook is not idempotent.
But when running /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-glusterfs/config.yml with openshift_storage_glusterfs_wipe set to true, I get an error similar to https://github.com/openshift/openshift-ansible/issues/5548 on the task "Unlabel any existing GlusterFS nodes". It complains that the dict object openshift can't be found.
Version
Please put the following version information in the code block indicated below.
ansible --version
If you're running from playbooks installed via RPM or
atomic-openshift-utils
rpm -q atomic-openshift-utils openshift-ansible
Place the output between the code block below:
Steps To Reproduce
[step 1] ansible-playbook /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-glusterfs/config.yml -e openshift_storage_glusterfs_wipe=true
[step 2]
Expected Results
Describe what you expected to happen.
Ansible playbook to be able to perform the step.
Observed Results
Describe what is actually happening.
For long output or logs, consider using a gist
Additional Information
Provide any additional information which may help us diagnose the issue.
$ cat /etc/redhat-release
)Snippet from inventory
openshift_deployment_type=openshift-enterprise openshift_release=v3.7
openshift_master_dynamic_provisioning_enabled=true ...
host group for masters
[masters] master1.openshift.mitzicom.int.m0sslab.org master2.openshift.mitzicom.int.m0sslab.org master3.openshift.mitzicom.int.m0sslab.org
host group for etcd
[etcd] master1.openshift.mitzicom.int.m0sslab.org master2.openshift.mitzicom.int.m0sslab.org master3.openshift.mitzicom.int.m0sslab.org
[lb]
lb.openshift.mitzicom.int.m0sslab.org
host group for nodes, includes region info
[nodes] master[1:3].openshift.mitzicom.int.m0sslab.org openshift_node_labels="{'region': 'primary', 'zone': 'management'}" openshift_schedulable=false infra1.openshift.mitzicom.int.m0sslab.org openshift_node_labels="{'region':'infra', 'zone': 'management'}" infra2.openshift.mitzicom.int.m0sslab.org openshift_node_labels="{'region':'infra', 'zone': 'management'}" node1.openshift.mitzicom.int.m0sslab.org openshift_node_labels="{'region': 'primary', 'zone': 'app'}" node2.openshift.mitzicom.int.m0sslab.org openshift_node_labels="{'region': 'primary', 'zone': 'app'}"
[glusterfs] infra2.openshift.mitzicom.int.m0sslab.org glusterfs_devices="[ '/dev/vdc' ]" infra1.openshift.mitzicom.int.m0sslab.org glusterfs_devices="[ '/dev/vdc' ]" node1.openshift.mitzicom.int.m0sslab.org glusterfs_devices="[ '/dev/vdc' ]"`