vault is not using vip to communicate with other services

Bug #1878035 reported by Ashley Lai
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
vault-charm
Fix Released
Medium
David Ames

Bug Description

On the deployment, barbican-vault is communicating with vault using the internal IP instead of the vip.

2020-05-09 19:01:08 INFO juju-log secrets-storage:53: Retrieving secret-id from vault (https://192.168.33.159:8200)

artifacts can be found on the bottom of the link:
https://solutions.qa.canonical.com/#/qa/testRun/d9623788-6774-4cf5-a1a9-df70d510a0c6

Revision history for this message
Dmitrii Shcherbakov (dmitriis) wrote :

The log message is from barbican-vault which simply uses a URL from the interface code

https://opendev.org/openstack/charm-barbican-vault/src/commit/5eb8923ec028d9f480fa97f281c54c38c8dc09ef/src/reactive/barbican_vault_handlers.py#L41

The interface code simply passes it through as well:
https://github.com/openstack-charmers/charm-interface-vault-kv/blob/5e71b61c1ddb6ecaade2b6675a5d8cf26655d7b0/requires.py#L92-L98
https://github.com/openstack-charmers/charm-interface-vault-kv/blob/5e71b61c1ddb6ecaade2b6675a5d8cf26655d7b0/provides.py#L41-L60

At the vault side, the content of a published URL depends on whether a relation to charm-hacluster is present or not:

https://opendev.org/openstack/charm-vault/src/commit/324d5f638110876993d6b584e9b2220558049a10/src/reactive/vault_handlers.py#L504-L525

I think it is safe to say that if a VIP is configured and the ha.available flag is not set then we should not expose a URL and wait until ha.available is set.

Triaging based on the above.

Changed in vault-charm:
status: New → Triaged
importance: Undecided → Medium
milestone: none → 20.05
Ashley Lai (alai)
summary: - vault is not using vip to communicate with others services
+ vault is not using vip to communicate with other services
Revision history for this message
Ashley Lai (alai) wrote :

Submitted to field high as it is blocking SSL deployment.

David Ames (thedac)
Changed in vault-charm:
assignee: nobody → David Ames (thedac)
Revision history for this message
David Ames (thedac) wrote :
Changed in vault-charm:
status: Triaged → In Progress
David Ames (thedac)
Changed in vault-charm:
status: In Progress → Fix Committed
David Ames (thedac)
Changed in vault-charm:
status: Fix Committed → Fix Released
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.