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

[skip ci] infra: use dedicated variables for balancer status #6788

Merged
merged 1 commit into from Aug 4, 2021

Conversation

dsavineau
Copy link
Contributor

The balancer status is registered during the cephadm-adopt, rolling_update
and swith2container playbooks. But it is also used in the ceph-handler role
which is included in those playbooks too.
Even if the ceph-handler tasks are skipped for rolling_update and
switch2container, the balancer_status variable is erased with the skip task
result.

play1:
register: balancer_status
play2:
register: balancer_status <-- skipped
play3:
when: (balancer_status.stdout | from_json)['active'] | bool

This leads to issue like:

The conditional check '(balancer_status.stdout | from_json)['active'] | bool'
failed. The error was: Unexpected templating type error occurred on
({% if (balancer_status.stdout | from_json)['active'] | bool %} True
{% else %} False {% endif %}): expected string or buffer.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1982054

Signed-off-by: Dimitri Savineau dsavinea@redhat.com

The balancer status is registered during the cephadm-adopt, rolling_update
and swith2container playbooks. But it is also used in the ceph-handler role
which is included in those playbooks too.
Even if the ceph-handler tasks are skipped for rolling_update and
switch2container, the balancer_status variable is erased with the skip task
result.

play1:
  register: balancer_status
play2:
  register: balancer_status <-- skipped
play3:
  when: (balancer_status.stdout | from_json)['active'] | bool

This leads to issue like:

The conditional check '(balancer_status.stdout | from_json)['active'] | bool'
failed. The error was: Unexpected templating type error occurred on
({% if (balancer_status.stdout | from_json)['active'] | bool %} True
{% else %} False {% endif %}): expected string or buffer.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1982054

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
@dsavineau dsavineau requested a review from guits August 3, 2021 16:34
@dsavineau dsavineau changed the title [skip ci] infra: use dedicated variables for balancer status infra: use dedicated variables for balancer status Aug 3, 2021
@dsavineau
Copy link
Contributor Author

jenkins test centos-non_container-all_daemons

@dsavineau
Copy link
Contributor Author

jenkins test centos-container-all_daemons

@dsavineau
Copy link
Contributor Author

jenkins test centos-non_container-update

@dsavineau
Copy link
Contributor Author

jenkins test centos-container-update

@dsavineau
Copy link
Contributor Author

jenkins test centos-non_container-switch_to_containers

@dsavineau
Copy link
Contributor Author

jenkins test centos-container-cephadm_adopt

@dsavineau
Copy link
Contributor Author

jenkins test centos-container-all_daemons

@guits
Copy link
Collaborator

guits commented Aug 4, 2021

jenkins test centos-container-cephadm_adopt

@guits
Copy link
Collaborator

guits commented Aug 4, 2021

jenkins test centos-non_container-all_daemons

@dsavineau dsavineau changed the title infra: use dedicated variables for balancer status [skip ci] infra: use dedicated variables for balancer status Aug 4, 2021
@guits guits merged commit 3866616 into ceph:master Aug 4, 2021
@dsavineau dsavineau deleted the BZ1982054 branch August 4, 2021 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants