From 59d035b3eec5f53ad34aa8442e8977f229a70664 Mon Sep 17 00:00:00 2001 From: Jack Hodgkiss Date: Thu, 23 Oct 2025 23:06:38 +0100 Subject: [PATCH] feat: add step to perform image data migration The command `pulpcore-manager container-handle-image-data`[0] can be used to resolve issues with missing image fields. This will happen post deployment of Pulp. [0]: https://github.com/pulp/pulp_container/pull/1554 --- doc/source/operations/upgrading-openstack.rst | 18 ------------------ etc/kayobe/containers/pulp/post.yml | 7 +++++++ 2 files changed, 7 insertions(+), 18 deletions(-) diff --git a/doc/source/operations/upgrading-openstack.rst b/doc/source/operations/upgrading-openstack.rst index 2450ea9aff..28526afa98 100644 --- a/doc/source/operations/upgrading-openstack.rst +++ b/doc/source/operations/upgrading-openstack.rst @@ -150,24 +150,6 @@ To mitigate the impact of these changes, two scripts have been added: Known issues ============ -Pulp Upgrade ------------- - -It was found that if pulp is upgraded from 3.43.1 to 3.81.0, most of pulp -APIs become unusable because of a bug related to missing response header -when docker clients expect it. - -Generally pulp is considered to be safe to completely destroy and re-deploy. -So, users are encouraged to upgrade pulp in this method. - -If your pulp has custom built images, we recommended either not doing pulp -upgrade by pinning pulp version at ``seed_pulp_container.pulp.tag`` in -``$KAYOBE_CONFIG_PATH/seed.yml`` (``$KAYOBE_CONFIG_PATH/environments//seed.yml`` -if using environments) to 3.43.1, - -or pulling all custom built images before destroying pulp then push them again -after pulp upgrade is done. - Cinder ------ diff --git a/etc/kayobe/containers/pulp/post.yml b/etc/kayobe/containers/pulp/post.yml index 34c25093f1..7e8154f024 100644 --- a/etc/kayobe/containers/pulp/post.yml +++ b/etc/kayobe/containers/pulp/post.yml @@ -28,6 +28,13 @@ - stackhpc_pulp_sync_for_local_container_build | bool - pulp_settings.changed +- name: Manage Pulp content image data + become: true + command: >- + docker exec -u root pulp + bash -c + 'pulpcore-manager container-handle-image-data' + - name: Ensure Pulp stack user exists ansible.builtin.include_role: name: stackhpc.pulp.pulp_user