Repository navigation
Commit 82e4f8f
committed
Use non static name for the Cinder CR
When the openstack operator creates the cinder CR it always uses the
"cinder" name and there is no way to change it.
This means that the names of the pods, and therefore the reported
hostname inside them, will always be the same for the backup service
(cinder-backup-0). The same will happen for the cinder volume in 2
different deployment if they have the same key in the volumes map.
This may be fine for some deployments, but it creates problems in
others, because many cinder drivers expect the hostnames of the hosts
attaching volumes to be unique.
Because they expect them to be unique they use the hostname as a key to
store information on the storage array such as the iSCSI initiator name
or the HBAs addresses.
If they are not unique there unexpected behavior can happen, like hosts
being unable to attach.
This is very common in CI systems, but is not limited to them as it can
also happen in production deployments that are using the same storage
arrays as their pre-production counterparts (even if it's different
pools).
In this patch the human operator has now a way to ask for unique pod
names in cinder services using the `uniquePodNames` boolean field in
the `cinder` section.
When `uniquePodNames` is set to `true` the openstack-operator will name
the `Cinder` CR using the first 6 characters of the
`OpenStackControlPlane` UID, that way the pods for the cinder services
will have a unique name.
Pod name collision is still possible, but unlikely.
Jira: OSPRH-73961 parent 2d315a0 commit 82e4f8f
4 files changed
Lines changed: 34 additions & 3 deletions
File tree
- apis
- bases
- core/v1beta1
- config/crd/bases
- pkg/openstack
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1661 | 1661 | | |
1662 | 1662 | | |
1663 | 1663 | | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
1664 | 1667 | | |
1665 | 1668 | | |
1666 | 1669 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
436 | 443 | | |
437 | 444 | | |
438 | 445 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1661 | 1661 | | |
1662 | 1662 | | |
1663 | 1663 | | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
1664 | 1667 | | |
1665 | 1668 | | |
1666 | 1669 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
24 | 32 | | |
25 | 33 | | |
26 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
27 | 45 | | |
28 | 46 | | |
29 | 47 | | |
| |||
58 | 76 | | |
59 | 77 | | |
60 | 78 | | |
61 | | - | |
| 79 | + | |
62 | 80 | | |
63 | 81 | | |
64 | 82 | | |
| |||
106 | 124 | | |
107 | 125 | | |
108 | 126 | | |
109 | | - | |
| 127 | + | |
110 | 128 | | |
111 | 129 | | |
112 | 130 | | |
| |||
0 commit comments