Skip to content

Commit 5450e92

Browse files
authored
Merge branch 'stackhpc/2025.1' into update-dependency/kolla-ansible/stackhpc/2025.1
2 parents 78c5096 + 7482064 commit 5450e92

File tree

5 files changed

+71
-15
lines changed

5 files changed

+71
-15
lines changed

etc/kayobe/ansible/pulp-artifact-upload.yml

Lines changed: 62 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@
2828
- urllib3
2929
state: present
3030

31+
- name: Upload an artifact
32+
pulp.squeezer.artifact:
33+
pulp_url: "{{ remote_pulp_url }}"
34+
username: "{{ remote_pulp_username }}"
35+
password: "{{ remote_pulp_password }}"
36+
file: "{{ found_files.files[0].path }}"
37+
state: present
38+
register: upload_result
39+
until: upload_result is success
40+
retries: 3
41+
delay: 60
42+
3143
- name: Get sha256 hash
3244
ansible.builtin.stat:
3345
path: "{{ found_files.files[0].path }}"
@@ -46,49 +58,87 @@
4658
checksum_algorithm: sha256
4759
register: checksum_stats
4860

49-
- name: Ensure file repo exists
50-
pulp.squeezer.file_repository:
61+
- name: Upload checksum artifact
62+
pulp.squeezer.artifact:
5163
pulp_url: "{{ remote_pulp_url }}"
5264
username: "{{ remote_pulp_username }}"
5365
password: "{{ remote_pulp_password }}"
54-
name: "{{ repository_name }}"
66+
file: "/tmp/{{ found_files.files[0].path | basename }}.sha256"
5567
state: present
56-
register: file_repo_result
57-
until: file_repo_result is success
68+
register: checksum_upload_result
69+
until: checksum_upload_result is success
5870
retries: 3
59-
delay: 5
71+
delay: 60
72+
when: upload_checksum
6073

61-
- name: Upload artifact
74+
- name: Create file content from artifact
6275
pulp.squeezer.file_content:
6376
pulp_url: "{{ remote_pulp_url }}"
6477
username: "{{ remote_pulp_username }}"
6578
password: "{{ remote_pulp_password }}"
66-
file: "{{ found_files.files[0].path }}"
6779
sha256: "{{ file_stats.stat.checksum }}"
6880
relative_path: "{{ found_files.files[0].path | basename }}"
6981
state: present
70-
repository: "{{ repository_name }}"
7182
register: file_content_result
7283
until: file_content_result is success
7384
retries: 3
7485
delay: 5
7586

76-
- name: Upload checksum
87+
- name: Create checksum content from artifact
7788
pulp.squeezer.file_content:
7889
pulp_url: "{{ remote_pulp_url }}"
7990
username: "{{ remote_pulp_username }}"
8091
password: "{{ remote_pulp_password }}"
81-
file: "/tmp/{{ found_files.files[0].path | basename }}.sha256"
8292
sha256: "{{ checksum_stats.stat.checksum }}"
8393
relative_path: "{{ found_files.files[0].path | basename }}.sha256"
8494
state: present
85-
repository: "{{ repository_name }}"
8695
register: checksum_content_result
8796
until: checksum_content_result is success
8897
retries: 3
8998
delay: 5
9099
when: upload_checksum
91100

101+
- name: Ensure file repo exists
102+
pulp.squeezer.file_repository:
103+
pulp_url: "{{ remote_pulp_url }}"
104+
username: "{{ remote_pulp_username }}"
105+
password: "{{ remote_pulp_password }}"
106+
name: "{{ repository_name }}"
107+
state: present
108+
register: file_repo_result
109+
until: file_repo_result is success
110+
retries: 3
111+
delay: 5
112+
113+
- name: Add content to file repo
114+
pulp.squeezer.file_repository_content:
115+
pulp_url: "{{ remote_pulp_url }}"
116+
username: "{{ remote_pulp_username }}"
117+
password: "{{ remote_pulp_password }}"
118+
repository: "{{ repository_name }}"
119+
present_content:
120+
- relative_path: "{{ found_files.files[0].path | basename }}"
121+
sha256: "{{ file_stats.stat.checksum }}"
122+
register: file_repo_content_result
123+
until: file_repo_content_result is success
124+
retries: 3
125+
delay: 5
126+
127+
- name: Add checksum content to file repo
128+
pulp.squeezer.file_repository_content:
129+
pulp_url: "{{ remote_pulp_url }}"
130+
username: "{{ remote_pulp_username }}"
131+
password: "{{ remote_pulp_password }}"
132+
repository: "{{ repository_name }}"
133+
present_content:
134+
- relative_path: "{{ found_files.files[0].path | basename }}.sha256"
135+
sha256: "{{ checksum_stats.stat.checksum }}"
136+
register: checksum_repo_content_result
137+
until: checksum_repo_content_result is success
138+
retries: 3
139+
delay: 5
140+
when: upload_checksum
141+
92142
- name: Create a new publication to point to this version
93143
pulp.squeezer.file_publication:
94144
pulp_url: "{{ remote_pulp_url }}"

etc/kayobe/ansible/requirements.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
collections:
33
- name: stackhpc.cephadm
44
version: 1.19.3
5+
# NOTE: Pinning pulp.squeezer to 0.0.13 because 0.0.14+ depends on the
6+
# pulp_glue Python library being installed.
57
- name: pulp.squeezer
6-
version: 0.1.1
8+
version: 0.0.13
79
- name: stackhpc.pulp
810
version: 0.5.5
911
- name: stackhpc.hashicorp

etc/kayobe/seed.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ seed_pulp_container:
104104
image: pulp/pulp
105105
pre: "{{ kayobe_config_path }}/containers/pulp/pre.yml"
106106
post: "{{ kayobe_config_path }}/containers/pulp/post.yml"
107-
tag: "3.43.1"
107+
tag: "3.81.0"
108108
network_mode: host
109109
# Override deploy_containers_defaults.init == true to ensure
110110
# s6-overlay-suexec starts as pid 1

releasenotes/notes/ansible-requirements-bump-89313038efba83b3.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ features:
55
versions. This includes:
66
77
* ``stackhpc.cephadm`` - ``1.19.1`` -> ``1.19.3``
8-
* ``pulp.squeezer`` - ``0.0.13`` -> ``0.1.1``
98
* ``ansible-lockdown.rhel9_cis`` - ``1.3.1`` -> ``v1.3.4``
109
* ``geerlingguy.pip`` - ``2.2.0`` -> ``3.1.0``
1110
* ``monolithprojects.github_actions_runner`` - ``1.18.5`` -> ``1.25.1``
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
features:
3+
- |
4+
The Seed Pulp container version has been bumped from ``3.43.1`` to
5+
``3.81.0``.

0 commit comments

Comments
 (0)