Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heketi topology load fails #3

Open
fernandohackbart opened this issue Jan 7, 2018 · 2 comments
Open

Heketi topology load fails #3

fernandohackbart opened this issue Jan 7, 2018 · 2 comments

Comments

@fernandohackbart
Copy link
Owner

This is failing as Heketi is not immediatelly available

- name: Loading topology to Heketi from {{ k8s_gluster_adm_dir }}/topology.json with http://{{ heketi_cluster_ip }}:{{ k8s_heketi_cluster_port }}
  shell: "heketi-cli --secret {{ k8s_heketi_secret }} topology load -j {{ k8s_gluster_adm_dir }}/topology.json"
  args:
    chdir: "{{ k8s_gluster_adm_dir }}"
  environment:
    HEKETI_CLI_SERVER: "http://{{ heketi_cluster_ip }}:{{ k8s_heketi_cluster_port }}"
    HEKETI_CLI_USER: "admin"

The error is:

fatal: [192.168.40.48]: FAILED! => {"changed": true, "cmd": "kubectl label node 192.168.40.48 node-role.kubernetes.io/node=worker", "delta": "0:00:00.626456", "end": "2018-01-07 10:45:49.994694", "msg": "non-zero return code", "rc": 1, "start": "2018-01-07 10:45:49.368238", "stderr": "Error from server (NotFound): nodes \"192.168.40.48\" not found", "stderr_lines": ["Error from server (NotFound): nodes \"192.168.40.48\" not found"], "stdout": "", "stdout_lines": []}                                                                                                          
fatal: [192.168.40.43]: FAILED! => {"changed": true, "cmd": "kubectl label node 192.168.40.43 node-role.kubernetes.io/node=worker", "delta": "0:00:00.642968", "end": "2018-01-07 10:45:50.031128", "msg": "non-zero return code", "rc": 1, "start": "2018-01-07 10:45:49.388160", "stderr": "Error from server (NotFound): nodes \"192.168.40.43\" not found", "stderr_lines": ["Error from server (NotFound): nodes \"192.168.40.43\" not found"], "stdout": "", "stdout_lines": []}    
@fernandohackbart
Copy link
Owner Author

Have to wait until GlusterFS servers are available

@fernandohackbart
Copy link
Owner Author

fernandohackbart commented Feb 4, 2019

kubectl wait -n kube-system --for=condition=Ready ds/glusterfs
kubectl wait -n kube-system --for=condition=Ready deployment/deploy-heketi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant