-
Notifications
You must be signed in to change notification settings - Fork 109
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
Integrate set_openstack_containers in validated architecture playbook #2321
Integrate set_openstack_containers in validated architecture playbook #2321
Conversation
Thanks for the PR! ❤️ |
ff609fe
to
31dda41
Compare
31dda41
to
61e8a79
Compare
61e8a79
to
f827098
Compare
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/22d4d4ce35104af69ea43d1dc6731d88 ✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 09m 36s |
f827098
to
f27eee2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice.
playbooks/06-deploy-architecture.yml
Outdated
@@ -197,6 +197,15 @@ | |||
- update_containers | |||
- edpm_bootstrap | |||
|
|||
- name: Update containers in deployed OSP operators using set_openstack_containers role | |||
vars: | |||
cifmw_set_openstack_containers_extra_vars: "{{ cifmw_edpm_prepare_extra_vars }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
edpm_prepare vars are not used in VA/DT deployments
ansible.builtin.include_role: | ||
name: set_openstack_containers | ||
tags: | ||
- set_openstack_containers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments:
- You assume we call deploy-edpm only using the reproducer, that with this change, will inject the tag in the skip list
- You assume that we want the role to be executed by default, that's the meaning of adding a tag here without a when condition.
- This skip strategy is not aligned with the rest of "skip flags" we have all over the framework. Please, use a flag like
cifmw_update_containers
with a sanefalse
default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ciecierski sorry mate, I may miss-expressed what I wanted. cifmw_update_containers
was just an example of the kind of flag we usually do, for this new task create a new one called: cifmw_set_openstack_containers
that defaults to false. Yes, false, as the regular behavior we had (and we still want) is to preserve what's deployed. If someone wants to patch the images all he/she needs is to make the flag true.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PS: We doc those vars here, so add the new one in that file too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pablintino I added cifmw_update_containers to not create more vars, but then I realized that there are deployments jobs which have cifmw_update_containers set to false. Those deployment jobs are using containers from compose. I'm going to add cifmw_set_openstack_containers for set_openstack_containers role include.
I'm not sure if I should remove cifmw_update_containers from update_containers include. update_containers role default value for cifmw_update_containers is false, but it used only for applying generated template: https://github.com/openstack-k8s-operators/ci-framework/blob/main/roles/update_containers/tasks/main.yml#L30
Do you think we want to generate template always? Should I remove when: cifmw_update_containers or it can stay?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ciecierski I thought about telling you to do so, but I'd prefer to keep your change as scoped to your issue as posible, so no worries, we will do it during the cleanup of the framework.
Care to add the new var to this doc? https://github.com/openstack-k8s-operators/ci-framework/blob/main/docs/source/usage/01_usage.md
f27eee2
to
42b5279
Compare
42b5279
to
318e690
Compare
ansible.builtin.include_role: | ||
name: set_openstack_containers | ||
tags: | ||
- set_openstack_containers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ciecierski sorry mate, I may miss-expressed what I wanted. cifmw_update_containers
was just an example of the kind of flag we usually do, for this new task create a new one called: cifmw_set_openstack_containers
that defaults to false. Yes, false, as the regular behavior we had (and we still want) is to preserve what's deployed. If someone wants to patch the images all he/she needs is to make the flag true.
318e690
to
6e6c3fe
Compare
6e6c3fe
to
ca36c32
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pablintino The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
ca36c32
to
b96a7e2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm other than a small nit, thanks!
set_openstack_containers role is used to update openstack container images using openstack version cr in crc update jobs. Let's use the same to update the containers in architecture jobs. It will be used in downstream VA architecture jobs to use RHEL openstack services container. set_openstack_containers role in update job is activate using cifmw_set_openstack_containers var set to true. By default the role is not activate.
b96a7e2
to
b0d6227
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
599aab0
into
openstack-k8s-operators:main
/cherry-pick 18.0-fr1 |
@ciecierski: new pull request created: #2480 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
set_openstack_containers role is used to update openstack container images using openstack version cr in update jobs. Let's use the same to update the containers in va.
It will be used in downstream VA jobs to use RHEL openstack services container.