Add new locally scoped relation and context updates for nova-ceilometer
This commit is contained in:
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)
|
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():
|
def main():
|
||||||
try:
|
try:
|
||||||
hooks.execute(sys.argv)
|
hooks.execute(sys.argv)
|
||||||
|
@@ -69,7 +69,12 @@ BASE_RESOURCE_MAP = {
|
|||||||
context.OSConfigFlagContext(),
|
context.OSConfigFlagContext(),
|
||||||
CloudComputeContext(),
|
CloudComputeContext(),
|
||||||
NovaComputeLibvirtContext(),
|
NovaComputeLibvirtContext(),
|
||||||
NovaComputeCephContext()],
|
NovaComputeCephContext(),
|
||||||
|
context.SubordinateConfigContext(
|
||||||
|
interface='nova-ceilometer',
|
||||||
|
service='nova',
|
||||||
|
config_file=NOVA_CONF,
|
||||||
|
)],
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -22,6 +22,9 @@ requires:
|
|||||||
nrpe-external-master:
|
nrpe-external-master:
|
||||||
interface: nrpe-external-master
|
interface: nrpe-external-master
|
||||||
scope: container
|
scope: container
|
||||||
|
nova-ceilometer:
|
||||||
|
interface: nova-ceilometer
|
||||||
|
scope: container
|
||||||
peers:
|
peers:
|
||||||
compute-peer:
|
compute-peer:
|
||||||
interface: nova
|
interface: nova
|
||||||
|
@@ -84,3 +84,9 @@ volume_api_class = nova.volume.cinder.API
|
|||||||
{% if live_migration_uri -%}
|
{% if live_migration_uri -%}
|
||||||
live_migration_uri = {{ live_migration_uri }}
|
live_migration_uri = {{ live_migration_uri }}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
|
||||||
|
{% if sections and 'DEFAULT' in sections -%}
|
||||||
|
{% for key, value in sections['DEFAULT'] -%}
|
||||||
|
{{ key }} = {{ value }}
|
||||||
|
{% endfor -%}
|
||||||
|
{% endif -%}
|
Reference in New Issue
Block a user