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

re-create verifier issue #32

Open
martbhell opened this issue Nov 19, 2019 · 0 comments
Open

re-create verifier issue #32

martbhell opened this issue Nov 19, 2019 · 0 comments

Comments

@martbhell
Copy link
Contributor

martbhell commented Nov 19, 2019

If someone runs "rally delete-verifier" and then runs this role to re-create the verifier, then the below ansible task will not execute because of the conditional - and they did not delete the tempest_config.


https://github.com/CSCfi/ansible-role-rally-scenarios/blob/master/tasks/tempest_verifiers.yml#L82

  - name: Configure rally verifier if templating in the temp**l**est config file task changed
    shell: "source /home/rally/rally/bin/activate && rally deployment use {{ item.key }} &>/dev/null && rally verify use-verifier --id {{ item.key }} &&  rally verify configure-verifier --extend /home/rally/tempest_configs/{{ item.key }}.tempest && deactivate"
    args:
      executable: /bin/bash
    when: reg_tempest_config.changed

Probably what we want to do here is to add an OR statement to the above task, maybe something like:

    when: reg_tempest_config.changed or verifiers.changed

But it takes some testing, the task that creates the verifiers variables is set to "changed_when: False"

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