Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Document hotfix process #701

Merged
merged 4 commits into from
Feb 28, 2024
Merged

Conversation

slagle
Copy link
Collaborator

@slagle slagle commented Feb 21, 2024

Signed-off-by: James Slagle [email protected]

Signed-off-by: James Slagle <[email protected]>
Copy link
Collaborator

@igallagh-redhat igallagh-redhat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi James, this looks really good. I've added some suggestions to align your content with our style guidance, and to add some punctuation. No deal-breakers ;-)
Thank you!

Copy link
Collaborator

@fao89 fao89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+2

+
----
$ ssh <ssh_user>@<data_plane_node>
$ sudo rpm -F /tmp/hotfix-rpms/*.rpm
Copy link
Contributor

@ciecierski ciecierski Feb 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is diffrent dir path, then in scp command above.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed.


. Update the affected `OpenStackDataPlaneNodeSet` resources by customizing the container locations to the hotfixed container locations. For more information about how to set the hotfixed container locations, see <<_customizing_container_image_locations>>.

. Create a new `OpenStackDataPlaneDeployment` resource that deploys the affected `OpenStackDataPlaneNodeSet` resources. For more information about how to create `OpenStackDataPlaneDeployment` resources, see <<proc_deploying-the-data-plane_{context}>>.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make more sense to update openstackdataplanenodeset instead? Hotfixed image may be gone away on next 'normal' openstackdataplanedeployment run.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does say to update OpenStackDataPlaneNodeSet

Comment on lines 21 to 42
+
* Replace `<hotfix_id>` with a hotfix identifier such as a Jira issue, for example `osprh-0000`.

. Create a container image tagged with your registry account details and a hotfix identifier:
----
$ updated_container="<updated_container_registry>/<updated_container_project>/<container_image>:<hotfix_id>"
$ container=$(buildah from <container_registry>/<container_project>/<container_image>:<container_tag>)
$ buildah run --user root $container mkdir -p /<hotfix_id>/rpms
$ buildah copy --user root $container <hotfix_id>/rpms/*.rpm /hotfix_id/rpms
$ buildah run --user root rpm -F /<hotfix_id/rpms/*.rpm
$ buildah commit $container $updated_container
$ buildah push $updated_container
----
+
* Replace `<hotfix_id>` with a hotfix identifier such as a Jira issue, for example `osprh-0000`.
* Replace `<updated_container_registry>` with a container registry to serve the updated container image. The OCP internal container image registry can be used.
* Replace `<updated_container_project>` with a container project to use for the updated container image.
* Replace `<container_project>` with the container project for the container being updated.
* Replace `<container_registry>` with the container registry for the container being updated.
* Replace `<container_image>` with the container image being updated.
* Replace `<container_tag>` with the container tag being updated.
+
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed, thanks.

Copy link
Contributor

openshift-ci bot commented Feb 28, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: igallagh-redhat, slagle

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@slagle slagle merged commit 1f47716 into openstack-k8s-operators:main Feb 28, 2024
5 of 7 checks passed
@slagle slagle deleted the hotfix-process branch April 22, 2024 10:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants