Add fake pool for pool manager
Add fake pool using for pool manager, because current pool manager cannot found "default" pool and notify about error in logs. After adding fake pool as default, pool manager will start to work correctly, but all designate resources will stuck in PENDING status (due to this pool is fake). Change-Id: I48e3bb83ab06a9a6df93507188883b739b65fa47
This commit is contained in:
parent
d1bf983141
commit
6d351b3fc2
|
@ -14,6 +14,14 @@ service:
|
|||
mysql -u root -p{{ db.root_password }} -h {{ address(service.database) }} -e "create database {{ designate.db.name.pool_manager }};
|
||||
grant all privileges on {{ designate.db.name.pool_manager }}.* to '{{ designate.db.username }}'@'%' identified by '{{ designate.db.password }}'
|
||||
{% if db.tls.enabled %} require ssl {% endif %};"
|
||||
- name: designate-pool-update
|
||||
dependencies:
|
||||
- designate-pool-manager-db-create
|
||||
files:
|
||||
- pools
|
||||
- designate-conf
|
||||
type: single
|
||||
command: designate-manage pool update --file /etc/designate/pools.yaml
|
||||
- name: designate-pool-sync
|
||||
dependencies:
|
||||
- designate-pool-manager-db-create
|
||||
|
@ -32,3 +40,6 @@ files:
|
|||
designate-conf:
|
||||
path: /etc/designate/designate.conf
|
||||
content: designate.conf.j2
|
||||
pools:
|
||||
path: /etc/designate/pools.yaml
|
||||
content: pools.yaml.j2
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
- name: default
|
||||
description: CCP Fake Pool
|
||||
attributes: {}
|
||||
|
||||
ns_records:
|
||||
- hostname: {{ network_topology['private']['address'] }}
|
||||
priority: 1
|
||||
|
||||
targets:
|
||||
- type: fake
|
||||
description: Fake Backend
|
Loading…
Reference in New Issue