Browse Source

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
changes/93/436393/1
Peter Razumovsky 2 years ago
parent
commit
6d351b3fc2
2 changed files with 22 additions and 0 deletions
  1. 11
    0
      service/designate-pool-manager.yaml
  2. 11
    0
      service/files/pools.yaml.j2

+ 11
- 0
service/designate-pool-manager.yaml View File

@@ -14,6 +14,14 @@ service:
14 14
             mysql -u root -p{{ db.root_password }} -h {{ address(service.database) }} -e "create database {{ designate.db.name.pool_manager }};
15 15
             grant all privileges on {{ designate.db.name.pool_manager }}.* to '{{ designate.db.username }}'@'%' identified by '{{ designate.db.password }}'
16 16
             {% if db.tls.enabled %} require ssl {% endif %};"
17
+        - name: designate-pool-update
18
+          dependencies:
19
+            - designate-pool-manager-db-create
20
+          files:
21
+            - pools
22
+            - designate-conf
23
+          type: single
24
+          command: designate-manage pool update --file /etc/designate/pools.yaml
17 25
         - name: designate-pool-sync
18 26
           dependencies:
19 27
             - designate-pool-manager-db-create
@@ -32,3 +40,6 @@ files:
32 40
   designate-conf:
33 41
     path: /etc/designate/designate.conf
34 42
     content: designate.conf.j2
43
+  pools:
44
+    path: /etc/designate/pools.yaml
45
+    content: pools.yaml.j2

+ 11
- 0
service/files/pools.yaml.j2 View File

@@ -0,0 +1,11 @@
1
+- name: default
2
+  description: CCP Fake Pool
3
+  attributes: {}
4
+
5
+  ns_records:
6
+    - hostname: {{ network_topology['private']['address'] }}
7
+      priority: 1
8
+
9
+  targets:
10
+    - type: fake
11
+      description: Fake Backend

Loading…
Cancel
Save