Skip to content

Fix adoption issues with swift-ring-tool#416

Merged
openshift-merge-bot[bot] merged 1 commit intoopenstack-k8s-operators:mainfrom
cschwede:fix-swift-ring-tool
Dec 16, 2025
Merged

Fix adoption issues with swift-ring-tool#416
openshift-merge-bot[bot] merged 1 commit intoopenstack-k8s-operators:mainfrom
cschwede:fix-swift-ring-tool

Conversation

@cschwede
Copy link
Collaborator

This commit fixes two issues:

  1. Removing a node by hostname only works with the "--ip" flag, otherwise swift-ring-builder won't find the device itself. Using the "--ip" works both with IP addresses and hostnames.

  2. After removing a device it is set to None within the ring, and the metaswap function raises an exception because "dev" is not a dict.

This commit fixes two issues:

1. Removing a node by hostname only works with the "--ip" flag,
   otherwise swift-ring-builder won't find the device itself. Using the
   "--ip" works both with IP addresses and hostnames.

2. After removing a device it is set to None within the ring, and the
   metaswap function raises an exception because "dev" is not a dict.

Signed-off-by: Christian Schwede <cschwede@redhat.com>
Copy link
Contributor

@fmount fmount left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 16, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cschwede, fmount

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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

@openshift-merge-bot openshift-merge-bot bot merged commit a303028 into openstack-k8s-operators:main Dec 16, 2025
5 checks passed
@cschwede
Copy link
Collaborator Author

/cherry-pick 18.0-fr4

@cschwede cschwede deleted the fix-swift-ring-tool branch December 18, 2025 12:57
@openshift-cherrypick-robot

@cschwede: new pull request created: #425

Details

In response to this:

/cherry-pick 18.0-fr4

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants