Fix modify external ceph.conf not restart related containers
modify /etc/kolla/config/cinder/ceph.conf, run kolla-ansible reconfigure but in the container /etc/ceph.conf has not changed Change-Id: I3bd55f76295b9ad1b799db9e910dbd0cd03d417c
This commit is contained in:
parent
6a4e45344e
commit
0ec2bf39ef
@ -50,6 +50,7 @@
|
||||
vars:
|
||||
service_name: "cinder-volume"
|
||||
service: "{{ cinder_services[service_name] }}"
|
||||
ceph_config: "{{ cinder_ceph_configs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||
config_json: "{{ cinder_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||
cinder_conf: "{{ cinder_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||
policy_json: "{{ cinder_policy_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||
@ -70,11 +71,13 @@
|
||||
or cinder_conf.changed | bool
|
||||
or policy_json.changed | bool
|
||||
or cinder_volume_container.changed | bool
|
||||
or ceph_config.changed | bool
|
||||
|
||||
- name: Restart cinder-backup container
|
||||
vars:
|
||||
service_name: "cinder-backup"
|
||||
service: "{{ cinder_services[service_name] }}"
|
||||
ceph_config: "{{ cinder_ceph_configs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||
config_json: "{{ cinder_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||
cinder_conf: "{{ cinder_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||
policy_json: "{{ cinder_policy_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||
@ -94,3 +97,4 @@
|
||||
or cinder_conf.changed | bool
|
||||
or policy_json.changed | bool
|
||||
or cinder_backup_container.changed | bool
|
||||
or ceph_config.changed | bool
|
||||
|
@ -29,6 +29,10 @@
|
||||
- inventory_hostname in groups[item.value.group]
|
||||
- item.key in services_need_config
|
||||
with_dict: "{{ cinder_services }}"
|
||||
register: cinder_ceph_configs
|
||||
notify:
|
||||
- Restart cinder-volume container
|
||||
- Restart cinder-backup container
|
||||
|
||||
- include: ../../ceph_pools.yml
|
||||
vars:
|
||||
|
@ -28,6 +28,10 @@
|
||||
- inventory_hostname in groups[item.value.group]
|
||||
- item.key in services_need_config
|
||||
with_dict: "{{ cinder_services }}"
|
||||
register: cinder_ceph_configs
|
||||
notify:
|
||||
- Restart cinder-volume container
|
||||
- Restart cinder-backup container
|
||||
|
||||
- name: Copy over Ceph keyring files for cinder-volume
|
||||
copy:
|
||||
|
Loading…
Reference in New Issue
Block a user