-
Notifications
You must be signed in to change notification settings - Fork 54
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
[citest skip] make min_ansible_version a string in meta/main.yml #281
Merged
richm
merged 1 commit into
linux-system-roles:master
from
richm:min-ansible-version-str
Jun 28, 2022
Merged
[citest skip] make min_ansible_version a string in meta/main.yml #281
richm
merged 1 commit into
linux-system-roles:master
from
richm:min-ansible-version-str
Jun 28, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The Ansible developers say that `min_ansible_version` in meta/main.yml must be a `string` value like `"2.9"`, not a `float` value like `2.9`. Signed-off-by: Rich Megginson <rmeggins@redhat.com>
richm
added a commit
to richm/linux-system-roles-storage
that referenced
this pull request
Jul 19, 2022
[1.9.0] - 2022-07-19 -------------------- ### New Features - Add support for attaching LVM cache to existing LVs (linux-system-roles#273) Fixes: linux-system-roles#252 - Add support for managing pool members (linux-system-roles#264) For LVM pools this adds support for adding and removing members (PVs) from the pool (VG). * Do not allow removing members from existing pools in safe mode - ensure role works with gather_facts: false (linux-system-roles#277) Ensure tests work when using ANSIBLE_GATHERING=explicit ### Bug Fixes - loop variables are scoped local - no need to reset them (linux-system-roles#282) If you use ```yaml loop_control: loop_var: storage_test_pool ``` Then the variable `storage_test_pool` is scoped local to the task and is undefined after the task. In addition, referencing the variable after the loop causes this warning: ``` [WARNING]: The loop variable 'storage_test_pool' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. ``` - support ansible-core-2.13 (linux-system-roles#278) Looks like ansible-core-2.13 (or latest jinja3) does not support constructs like this: ``` var: "{{ [some list] }} + {{ [other list] }}" ``` instead, the entire thing has to be evaluated in the same jinja evaluation context: ``` var: "{{ [some list] + [other list] }}" ``` In addition - it is an Ansible antipattern to use ```yaml - set_fact: var: "{{ var + item }}" loop: "{{ some_list }}" ``` so that was rewritten to use filters instead ### Other Changes - ensure cryptsetup is available for testing (linux-system-roles#279) - make min_ansible_version a string in meta/main.yml (linux-system-roles#281) The Ansible developers say that `min_ansible_version` in meta/main.yml must be a `string` value like `"2.9"`, not a `float` value like `2.9`. - Skip the entire test_lvm_pool_members playbook with old blivet (linux-system-roles#280) Multiple bugs in blivet were fixed in order to make the feature work and without the correct version even the most basic test to remove a PV from a VG will fail so we should skip the entire test with old versions of blivet. Skip test on el7 if blivet version is too old Add support for `is_rhel7` Refactor EL platform and version checking code Add a name for the `end_play` task - Add CHANGELOG.md (linux-system-roles#283) Signed-off-by: Rich Megginson <rmeggins@redhat.com>
richm
added a commit
that referenced
this pull request
Jul 21, 2022
* Version 1.9.0 - CHANGELOG.md [citest skip] [1.9.0] - 2022-07-19 -------------------- ### New Features - Add support for attaching LVM cache to existing LVs (#273) Fixes: #252 - Add support for managing pool members (#264) For LVM pools this adds support for adding and removing members (PVs) from the pool (VG). * Do not allow removing members from existing pools in safe mode - ensure role works with gather_facts: false (#277) Ensure tests work when using ANSIBLE_GATHERING=explicit ### Bug Fixes - loop variables are scoped local - no need to reset them (#282) If you use ```yaml loop_control: loop_var: storage_test_pool ``` Then the variable `storage_test_pool` is scoped local to the task and is undefined after the task. In addition, referencing the variable after the loop causes this warning: ``` [WARNING]: The loop variable 'storage_test_pool' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. ``` - support ansible-core-2.13 (#278) Looks like ansible-core-2.13 (or latest jinja3) does not support constructs like this: ``` var: "{{ [some list] }} + {{ [other list] }}" ``` instead, the entire thing has to be evaluated in the same jinja evaluation context: ``` var: "{{ [some list] + [other list] }}" ``` In addition - it is an Ansible antipattern to use ```yaml - set_fact: var: "{{ var + item }}" loop: "{{ some_list }}" ``` so that was rewritten to use filters instead ### Other Changes - ensure cryptsetup is available for testing (#279) - make min_ansible_version a string in meta/main.yml (#281) The Ansible developers say that `min_ansible_version` in meta/main.yml must be a `string` value like `"2.9"`, not a `float` value like `2.9`. - Skip the entire test_lvm_pool_members playbook with old blivet (#280) Multiple bugs in blivet were fixed in order to make the feature work and without the correct version even the most basic test to remove a PV from a VG will fail so we should skip the entire test with old versions of blivet. Skip test on el7 if blivet version is too old Add support for `is_rhel7` Refactor EL platform and version checking code Add a name for the `end_play` task - Add CHANGELOG.md (#283) Signed-off-by: Rich Megginson <rmeggins@redhat.com> * ensure tests work with gather_facts: false is not a new feature ensure tests work with gather_facts: false is not a new feature
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The Ansible developers say that
min_ansible_version
in meta/main.ymlmust be a
string
value like"2.9"
, not afloat
value like2.9
.Signed-off-by: Rich Megginson rmeggins@redhat.com