Skip to content

Commit a144453

Browse files
committed
DNM - test pulp collections bump
1 parent 40afadd commit a144453

File tree

5 files changed

+24
-69
lines changed

5 files changed

+24
-69
lines changed

.github/workflows/overcloud-host-image-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ jobs:
253253
source venvs/kayobe/bin/activate &&
254254
source src/kayobe-config/kayobe-env --environment ci-builder &&
255255
kayobe playbook run \
256-
src/kayobe-config/etc/kayobe/ansible/pulp/pulp-artifact-upload.yml \
256+
src/kayobe-config/etc/kayobe/ansible/pulp/pulp-artifact-upload.yml -vvvvv \
257257
-e artifact_path=/opt/kayobe/images/overcloud-rocky-9 \
258258
-e artifact_tag=${{ steps.host_image_tag.outputs.host_image_tag }} \
259259
-e artifact_type="kayobe-images" \
@@ -321,7 +321,7 @@ jobs:
321321
source venvs/kayobe/bin/activate &&
322322
source src/kayobe-config/kayobe-env --environment ci-builder &&
323323
kayobe playbook run \
324-
src/kayobe-config/etc/kayobe/ansible/pulp/pulp-artifact-upload.yml \
324+
src/kayobe-config/etc/kayobe/ansible/pulp/pulp-artifact-upload.yml -vvvvv \
325325
-e artifact_path=/opt/kayobe/images/overcloud-ubuntu-noble \
326326
-e artifact_tag=${{ steps.host_image_tag.outputs.host_image_tag }} \
327327
-e artifact_type="kayobe-images" \

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

Lines changed: 15 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,11 @@
2626
- ndg-httpsclient
2727
- pyasn1
2828
- urllib3
29+
- packaging
30+
- pulp-glue<0.34.0,>=0.33.0
31+
- pulp-glue-deb<0.4.0,>=0.3.0
2932
state: present
3033

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-
4334
- name: Get sha256 hash
4435
ansible.builtin.stat:
4536
path: "{{ found_files.files[0].path }}"
@@ -58,87 +49,49 @@
5849
checksum_algorithm: sha256
5950
register: checksum_stats
6051

61-
- name: Upload checksum artifact
62-
pulp.squeezer.artifact:
52+
- name: Ensure file repo exists
53+
pulp.squeezer.file_repository:
6354
pulp_url: "{{ remote_pulp_url }}"
6455
username: "{{ remote_pulp_username }}"
6556
password: "{{ remote_pulp_password }}"
66-
file: "/tmp/{{ found_files.files[0].path | basename }}.sha256"
57+
name: "{{ repository_name }}"
6758
state: present
68-
register: checksum_upload_result
69-
until: checksum_upload_result is success
59+
register: file_repo_result
60+
until: file_repo_result is success
7061
retries: 3
71-
delay: 60
72-
when: upload_checksum
62+
delay: 5
7363

74-
- name: Create file content from artifact
64+
- name: Upload artifact
7565
pulp.squeezer.file_content:
7666
pulp_url: "{{ remote_pulp_url }}"
7767
username: "{{ remote_pulp_username }}"
7868
password: "{{ remote_pulp_password }}"
69+
file: "{{ found_files.files[0].path }}"
7970
sha256: "{{ file_stats.stat.checksum }}"
8071
relative_path: "{{ found_files.files[0].path | basename }}"
8172
state: present
73+
repository: "{{ repository_name }}"
8274
register: file_content_result
8375
until: file_content_result is success
8476
retries: 3
8577
delay: 5
8678

87-
- name: Create checksum content from artifact
79+
- name: Upload checksum
8880
pulp.squeezer.file_content:
8981
pulp_url: "{{ remote_pulp_url }}"
9082
username: "{{ remote_pulp_username }}"
9183
password: "{{ remote_pulp_password }}"
84+
file: "/tmp/{{ found_files.files[0].path | basename }}.sha256"
9285
sha256: "{{ checksum_stats.stat.checksum }}"
9386
relative_path: "{{ found_files.files[0].path | basename }}.sha256"
9487
state: present
88+
repository: "{{ repository_name }}"
9589
register: checksum_content_result
9690
until: checksum_content_result is success
9791
retries: 3
9892
delay: 5
9993
when: upload_checksum
10094

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-
14295
- name: Create a new publication to point to this version
14396
pulp.squeezer.file_publication:
14497
pulp_url: "{{ remote_pulp_url }}"

etc/kayobe/ansible/requirements.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
collections:
33
- name: stackhpc.cephadm
44
version: 1.22.0
5-
# NOTE: Pinning pulp.squeezer to 0.0.13 because 0.0.14+ depends on the
6-
# pulp_glue Python library being installed.
75
- name: pulp.squeezer
8-
version: 0.0.13
6+
version: 0.2.3
97
- name: stackhpc.pulp
10-
version: 0.5.5
8+
version: full-parallel
9+
type: git
10+
source: https://github.com/stackhpc/ansible-collection-pulp
1111
- name: stackhpc.hashicorp
1212
version: 2.7.1
1313
- name: stackhpc.kayobe_workflows

etc/kayobe/kolla-image-tags.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Dict of Kolla image tags to deploy for each service.
33
# Each key is the tag variable prefix name, and the value is another dict,
44
# where the key is the OS distro and the value is the tag to deploy.
5+
# Foo test ci
56
kolla_image_tags:
67
openstack:
78
rocky-9: 2025.1-rocky-9-20250730T105631

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
kayobe@git+https://github.com/stackhpc/kayobe@stackhpc/18.3.0.6
22
ansible-modules-hashivault>=5.3.0
3-
pulp-glue<0.32,>=0.29.2
3+
pulp-glue==0.33.*
4+
pulp-glue-deb==0.3.*
45
jmespath

0 commit comments

Comments
 (0)