Port replication configs are not set into rings

Bug #1903762 reported by Erlon R. Cruz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Swift Storage Charm
In Progress
Medium
Erlon R. Cruz

Bug Description

After if any of the replication port configuration options (object-server-port-rep, container-server-port-rep, account-server-port-rep) are changed, the ring files are not updated accordingly
so, when the service restarts, the replication fails with the message:

Can't find itself in policy with index 0 with ips 127.0.0.1, ::1, 10.5.0.41, fe80::f816:3eff:feaf:e114, 252.0.41.1, fe80::7c84:fbff:fe69:f2be, fe80::7c84:fbff:fe69:f2be, fe80::7098:6dff:fe95:2f72, fe80::1 and with port 6020 in ring file, not replicating

Steps to reproduce:

1. Install the swift cluster from charm version 272
2. Set any of the settings above with a value different than defaults
   juju config swift-storage-z1 object-server-port-rep=6020
3. Restart all swift-services in the nodes

Result:

- Changes are applied to object-server-replicator.conf but 'swift-ring-builder object.builder'
  show old information
- Swift logs show the error above
- Swift stop object/account and container replication

summary: - *port-rep configs are not set into rings
+ Port replication configs are not set into rings
Revision history for this message
Edward Hope-Morley (hopem) wrote :
Changed in charm-swift-storage:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Erlon R. Cruz (sombrafam)
milestone: none → 21.01
Revision history for this message
Erlon R. Cruz (sombrafam) wrote :

Hi folks, I have performed the following tests in the last version of these patches:

### 1. Direct upgrade from 265 -> 273 (proxy first) - **OK**
### 2. Upgrade from 265 -> 272 -> 273 - **OK**
### 3. Change in swift storage setting - **OK**
### 4. 265 -> 273: Upgrade proxy first - **OK**
### 5. 265 -> 273: Upgrade storage first - **OK**
### 6. 272 -> 273: Upgrade proxy first - **OK**
### 7. 272 -> 273: Upgrade storage first - **OK**
### 8. Install 273: Proxy first - **OK**
### 9. Install 273: Storage first - **OK**

Erlon

David Ames (thedac)
Changed in charm-swift-storage:
milestone: 21.01 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.