Send additional info to support CMR
Send application name and local unit name when talking to ceph. This ensures that the response from ceph can be spotted by the unit making the request. This is already being done in the classic charms *1 *1 https://review.opendev.org/q/topic:%22bug%252F1780712%22+(status:open%20OR%20status:merged) Change-Id: I0eb96ab8b1048bf209ffb011dd585af956ab779a Closes-Bug: #1926667
This commit is contained in:
parent
72245e1d00
commit
3ca251fb01
|
@ -16,7 +16,11 @@ import json
|
|||
|
||||
import charms.reactive as reactive
|
||||
|
||||
from charmhelpers.core.hookenv import log
|
||||
from charmhelpers.core.hookenv import (
|
||||
application_name,
|
||||
local_unit,
|
||||
log,
|
||||
)
|
||||
from charmhelpers.contrib.network.ip import format_ipv6_addr
|
||||
|
||||
from charmhelpers.contrib.storage.linux.ceph import (
|
||||
|
@ -285,6 +289,9 @@ class CephRequires(reactive.Endpoint):
|
|||
for relation in self.relations:
|
||||
relation.to_publish['broker_req'] = json.loads(
|
||||
request.request)
|
||||
relation.to_publish_raw[
|
||||
'application-name'] = application_name()
|
||||
relation.to_publish_raw['unit-name'] = local_unit()
|
||||
|
||||
def get_current_request(self):
|
||||
broker_reqs = []
|
||||
|
|
Loading…
Reference in New Issue