Comment 0 for bug 2051365

Revision history for this message
Christopher Bartz (bartz) wrote :

I have a cross-controller integration between a k8s application and rabbitmq. After I run the rotate-service-user-password action, the relationship data bag of the k8s unit gets updated to the private-address field instead of the password field:

```
$ juju show-unit flask-rabbitmq/0
flask-rabbitmq/0:
  opened-ports: []
  charm: local:jammy/flask-rabbitmq-6
  leader: true
  life: alive
  relation-info:
  - relation-id: 5
    endpoint: amqp
    cross-model: true
    related-endpoint: amqp
    application-data: {}
    related-units:
      rabbitmq-server/0:
        in-scope: true
        data:
          egress-subnets: 10.33.194.148/32
          hostname: 10.33.194.148
          ingress-address: 10.33.194.148
          password: 54ymh56NPnbcb5bs2HWPBxBGrW66tkyB595wN89ZF6jRxt94wzhJ2xxqPy4nzsY5
          private-address: bRVd96pPRcztp65bdHLycwsJf8TxytLHTpmd4CLPLCTGMJ7j3VYtbcBBts3RYtdh

```

Steps to reproduce:
 - create integration
 - run the action
 - look in the relation data bag of the k8s unit

This problem was observed for a cross-controller integration between a k8s cloud and openstack cloud, and
could be reproduced inside a multipass vm.

rabbitmq-server channel 3.9/stable rev 183
k8s cloud env: juju 2.9.44
openstack cloud env: 3.1.6

multipass env: juju 3.1.7 for both controllers

```
╰─$ juju status --relations
Model Controller Cloud/Region Version SLA Timestamp
reactive-runner lxd localhost/localhost 3.1.7 unsupported 13:25:09+01:00

App Version Status Scale Charm Channel Rev Exposed Message
rabbitmq-server 3.9.13 active 1 rabbitmq-server 3.9/stable 183 no Unit is ready

Unit Workload Agent Machine Public address Ports Message
rabbitmq-server/0* active idle 4 10.33.194.148 5672,15672/tcp Unit is ready

Machine State Address Inst id Base AZ Message
4 started 10.33.194.148 juju-963f30-4 ubuntu@22.04 Running

Offer Application Charm Rev Connected Endpoint Interface Role
rabbitmq-server rabbitmq-server rabbitmq-server 183 1/1 amqp rabbitmq provider

Integration provider Requirer Interface Type Message
rabbitmq-server:amqp github-runner:amqp rabbitmq regular
rabbitmq-server:cluster rabbitmq-server:cluster rabbitmq-ha peer
```
```
╰─$ juju switch microk8s; juju status --relations
Model Controller Cloud/Region Version SLA Timestamp
flask microk8s microk8s/localhost 3.1.7 unsupported 13:29:40+01:00

SAAS Status Store URL
rabbitmq-server active lxd admin/reactive-runner.rabbitmq-server

App Version Status Scale Charm Channel Rev Address Exposed Message
flask-rabbitmq active 1 flask-rabbitmq 6 10.152.183.225 no

Unit Workload Agent Address Ports Message
flask-rabbitmq/0* active idle 10.1.225.163

Integration provider Requirer Interface Type Message
flask-rabbitmq:secret-storage flask-rabbitmq:secret-storage secret-storage peer
rabbitmq-server:amqp flask-rabbitmq:amqp rabbitmq regular
```