Comment 10 for bug 2065761

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

The SAAS entry in the consuming model shows an error

```
juju status

SAAS Status Store URL
mongodb error juju-34-controller admin/stg-github-runner-mq.mongodb
```

and

juju status mongodb --format yaml

gives
```
  mongodb:
    url: juju-34-controller:admin/stg-github-runner-mq.mongodb
    endpoints:
      database:
        interface: mongodb_client
        role: provider
    life: dying
    application-status:
      current: error
      message: 'cannot get discharge from "https://controller-address:17070/offeraccess":
        third party refused discharge: cannot discharge: permission denied'
      since: 15 Jul 2024 10:41:18Z
    relations:
      database:
      - github-runner-webhook-router
```

fwiw, I also get a permission error in the offer model for a juju grant command

stg-github-runner-mq@bastion:~$ juju grant -v stg-github-runner-mq consume juju-34-controller:admin/stg-github-runner-mq.mongodb
ERROR permission denied

So maybe the root cause is related to permissions.