feat: Solution for multi-glance setup in block only deploy #172
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is focused around adding a means to allow multiple glance servers to operate in an environment that does not provide a backing NFS/CephFS/RBD backend.
To do multi "master" glance we must solution for the following:
The method for this edge case is rook-ceph running on PVC. As we already need a SC to provide backing storage for SQL/Rabbit and memcache we would already have a SC storage provider setup, a SC does not always need to provide NFS or sometimes we may not want the extra complexity of providing NFS for a single service.
Set up is much the same, in this PR I will demonstrate the setup and operation of rook-ceph with PVC backend.
Provide a backing SC with general SC name, in this example the SC is provided by ISCSI
(genestack) root@genestack-controller1:/opt/genestack/submodules/openstack-helm# kubectl get sc NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE general (default) org.democratic-csi.iscsi Delete Immediate true 3h15m
I have setup the policy placement for OSDs to run only on nodes tagged with 'openstack-control-plane'
Deploy the rook-ceph operator as normal
After operator gets deployed, deploy rook-cluster-external-pvc
You will see that OSDs are scheduled on nodes tagged as infrastructure nodes
Once fully setup, you can create a modified cephfs (myfs) filesystem for multi-attach glance
You will be left with two SCs, general and general-multi-attach
General Glance smoke test of storage system: