Add new locally scoped relation and context updates for nova-ceilometer
This commit is contained in:
parent
2ea2f1658a
commit
70c7b91f47
1
hooks/nova-ceilometer-relation-changed
Symbolic link
1
hooks/nova-ceilometer-relation-changed
Symbolic link
@ -0,0 +1 @@
|
||||
nova_compute_hooks.py
|
1
hooks/nova-ceilometer-relation-joined
Symbolic link
1
hooks/nova-ceilometer-relation-joined
Symbolic link
@ -0,0 +1 @@
|
||||
nova_compute_hooks.py
|
@ -209,6 +209,12 @@ def upgrade_charm():
|
||||
amqp_joined(relation_id=r_id)
|
||||
|
||||
|
||||
@hooks.hook('nova-ceilometer-relation-changed')
|
||||
@restart_on_change(restart_map())
|
||||
def nova_ceilometer_relation_changed():
|
||||
CONFIGS.writeall()
|
||||
|
||||
|
||||
def main():
|
||||
try:
|
||||
hooks.execute(sys.argv)
|
||||
|
@ -69,7 +69,12 @@ BASE_RESOURCE_MAP = {
|
||||
context.OSConfigFlagContext(),
|
||||
CloudComputeContext(),
|
||||
NovaComputeLibvirtContext(),
|
||||
NovaComputeCephContext()],
|
||||
NovaComputeCephContext(),
|
||||
context.SubordinateConfigContext(
|
||||
interface='nova-ceilometer',
|
||||
service='nova',
|
||||
config_file=NOVA_CONF,
|
||||
)],
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -22,6 +22,9 @@ requires:
|
||||
nrpe-external-master:
|
||||
interface: nrpe-external-master
|
||||
scope: container
|
||||
nova-ceilometer:
|
||||
interface: nova-ceilometer
|
||||
scope: container
|
||||
peers:
|
||||
compute-peer:
|
||||
interface: nova
|
||||
|
@ -84,3 +84,9 @@ volume_api_class = nova.volume.cinder.API
|
||||
{% if live_migration_uri -%}
|
||||
live_migration_uri = {{ live_migration_uri }}
|
||||
{% endif -%}
|
||||
|
||||
{% if sections and 'DEFAULT' in sections -%}
|
||||
{% for key, value in sections['DEFAULT'] -%}
|
||||
{{ key }} = {{ value }}
|
||||
{% endfor -%}
|
||||
{% endif -%}
|
Loading…
x
Reference in New Issue
Block a user