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

role api_ready: In cluster deployment, wait for all Managers to become available #41

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ exclude_paths:
- .dev_dir/example_dev_vars.yml
- .dev_dir/*
- playbooks/tests/configuration_file_dev_vars.yml
- .ansible
# parseable: true
# quiet: true
# strict: true
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
- uses: isort/isort-action@master
with:
requirementsFiles: "requirements.txt"
isortVersion: '5.12.0'

- name: Install pycln
run: pip install pycln==2.4.0
Expand Down
6 changes: 5 additions & 1 deletion roles/api_ready/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
Check that API server is ready - verify "isServerReady" response with "/dataservice/client/server/ready" endpoint.
Parameters: retries: {{ retry_value_manager_api_ready }} delay: {{ delay_value_manager_api_ready }}
ansible.builtin.uri:
url: "https://{{ (vmanage_instances | first).mgmt_public_ip }}/dataservice/client/server/ready"
url: "https://{{ device_item.mgmt_public_ip }}/dataservice/client/server/ready"
method: "GET"
validate_certs: false
return_content: true
Expand All @@ -20,3 +20,7 @@
until:
- manager_response.json is defined
- manager_response.json.isServerReady | bool == true
loop: "{{ vmanage_instances }}"
loop_control:
loop_var: device_item
label: "hostname: {{ device_item.hostname }}, device_ip: {{ device_item.system_ip }}"
4 changes: 2 additions & 2 deletions roles/onboarding_controllers/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
username: "{{ (vmanage_instances | first).admin_username }}"
password: "{{ (vmanage_instances | first).admin_password }}"
register: device_details_info
loop: "{{ vsmart_instances + vbond_instances + [(vmanage_instances | first)] }}"
loop: "{{ vsmart_instances + vbond_instances + [vmanage_instances | first] }}"
loop_control:
loop_var: device_item
label: "hostname: {{ device_item.hostname }}, device_ip: {{ device_item.system_ip }}"
Expand All @@ -85,7 +85,7 @@
username: "{{ (vmanage_instances | first).admin_username }}"
password: "{{ (vmanage_instances | first).admin_password }}"
register: device_details_info
loop: "{{ vsmart_instances + vbond_instances + [(vmanage_instances | first)] }}"
loop: "{{ vsmart_instances + vbond_instances + [vmanage_instances | first] }}"
loop_control:
loop_var: device_item
label: "hostname: {{ device_item.hostname }}, device_ip: {{ device_item.system_ip }}"
Expand Down