Correct Magnum issues found in AIO testing
Move cinder_service_region to group_vars/all.yml since os_magnum relies on it. Remove CRLFs from magnum_all.yml. Set _rabbit_mq_host_group, it's required on the rabbitmq task. Use magnum_galera_database_name for the db_name instead of magnum_galera_database. Change the magnum haproxy config to use GET for httpchk since mangum API doesn't appear to support the HEAD request. Using HEAD results in haproxy NOSRV errors with the backend. Change-Id: I1562f8418e5075720ba8622262f4f13cf2d35fb6
This commit is contained in:
parent
1d8b4c5183
commit
527e22fc0e
@ -129,6 +129,7 @@ ceilometer_rabbitmq_host_group: "{{ rabbitmq_host_group }}"
|
||||
|
||||
|
||||
## Cinder
|
||||
cinder_service_region: "{{ service_region }}"
|
||||
# If there are Swift hosts in the environment, then enable cinder backups to it
|
||||
cinder_service_backup_program_enabled: "{{ groups['swift_all'] is defined and groups['swift_all'] | length > 0 }}"
|
||||
# cinder_backend_rbd_inuse: True if current host has an rbd backend
|
||||
|
@ -20,7 +20,6 @@ glance_default_store: "{{ ((groups['swift_all'] is defined) and (groups['swift_a
|
||||
|
||||
# cinder_backend_lvm_inuse: True if current host has an lvm backend
|
||||
cinder_backend_lvm_inuse: '{{ (cinder_backends|default("")|to_json).find("cinder.volume.drivers.lvm.LVMVolumeDriver") != -1 }}'
|
||||
cinder_service_region: "{{ service_region }}"
|
||||
cinder_service_in_ldap: "{{ service_ldap_backend_enabled }}"
|
||||
cinder_glance_api_servers: "{{ glance_api_servers }}"
|
||||
cinder_glance_api_version: "{{ (cinder_backends_rbd_inuse|bool and glance_default_store == 'rbd') | ternary('2','1') }}"
|
||||
|
1
playbooks/inventory/group_vars/magnum_all.yml
Executable file → Normal file
1
playbooks/inventory/group_vars/magnum_all.yml
Executable file → Normal file
@ -21,6 +21,7 @@ magnum_rabbitmq_userid: magnum
|
||||
magnum_rabbitmq_vhost: /magnum
|
||||
magnum_rabbitmq_port: "{{ rabbitmq_port }}"
|
||||
magnum_rabbitmq_servers: "{{ rabbitmq_servers }}"
|
||||
magnum_rabbitmq_host_group: "{{ rabbitmq_host_group }}"
|
||||
magnum_rabbitmq_use_ssl: "{{ rabbitmq_use_ssl }}"
|
||||
|
||||
# Ensure that the package state matches the global setting
|
||||
|
@ -35,15 +35,16 @@
|
||||
user: "{{ magnum_rabbitmq_userid }}"
|
||||
password: "{{ magnum_rabbitmq_password }}"
|
||||
vhost: "{{ magnum_rabbitmq_vhost }}"
|
||||
_rabbitmq_host_group: "{{ magnum_rabbitmq_host_group }}"
|
||||
when:
|
||||
- inventory_hostname == groups['magnum_all'][0]
|
||||
- groups['rabbitmq_all'] | length > 0
|
||||
- groups[magnum_rabbitmq_host_group] | length > 0
|
||||
- include: common-tasks/mysql-db-user.yml
|
||||
vars:
|
||||
user_name: "{{ magnum_galera_user }}"
|
||||
password: "{{ magnum_galera_password }}"
|
||||
login_host: "{{ magnum_galera_address }}"
|
||||
db_name: "{{ magnum_galera_database }}"
|
||||
db_name: "{{ magnum_galera_database_name }}"
|
||||
when: inventory_hostname == groups['magnum_all'][0]
|
||||
roles:
|
||||
- role: "os_magnum"
|
||||
|
@ -251,4 +251,4 @@ haproxy_default_services:
|
||||
haproxy_port: 9511
|
||||
haproxy_balance_type: http
|
||||
haproxy_backend_options:
|
||||
- "httpchk HEAD /"
|
||||
- "httpchk GET /"
|
||||
|
Loading…
Reference in New Issue
Block a user