[kayobe][kolla-ansible][victoria]
How do I configure the glance container to use a host-mounted NFS share? It is not covered in the kolla-ansible documentation [1]. What it does say is to set the file path using "glance_file_datadir_volume". I believe that this is relative to the container (not the host).
Do I need to mount the local host (nfs) directory as a docker volume for glance as additional step? If so, how do I achieve this with kayobe / kolla-ansible?
Some background: After a successful deployment of 3 controller nodes I have one glance service which is dependent on one of these controller nodes being available always. My intent is to provide a NFS share for glance that removes the dependency.
[1] OpenStack Docs: Glance - Image service https://docs.openstack.org/kolla-ansible/victoria/reference/shared-services/glance-guide.html
Kind regards,
Tony Pearce
On Thu, 1 Jul 2021 at 09:00, Tony Pearce tonyppe@gmail.com wrote:
How do I configure the glance container to use a host-mounted NFS share? It is not covered in the kolla-ansible documentation [1]. What it does say is to set the file path using "glance_file_datadir_volume". I believe that this is relative to the container (not the host).
It's relative to the host, used in the host part of a bind mount for the glance-api container.
Do I need to mount the local host (nfs) directory as a docker volume for glance as additional step? If so, how do I achieve this with kayobe / kolla-ansible?
Yes. You could use a kayobe custom playbook https://docs.openstack.org/kayobe/latest/custom-ansible-playbooks.html
Some background: After a successful deployment of 3 controller nodes I have one glance service which is dependent on one of these controller nodes being available always. My intent is to provide a NFS share for glance that removes the dependency.
The most common approach is to use Ceph for glance & cinder, but this adds significant complexity. NFS is probably a reasonable second best.
[1] OpenStack Docs: Glance - Image service
Kind regards,
Tony Pearce
Hi Mark, first thank you for replying so quickly to help me.
It's relative to the host, used in the host part of a bind mount for the
glance-api container.
This is great and that was the missing key info I needed.
Have a great day!
Kind regards,
Tony Pearce
On Thu, 1 Jul 2021 at 16:26, Mark Goddard mark@stackhpc.com wrote:
On Thu, 1 Jul 2021 at 09:00, Tony Pearce tonyppe@gmail.com wrote:
How do I configure the glance container to use a host-mounted NFS share?
It is not covered in the kolla-ansible documentation [1]. What it does say is to set the file path using "glance_file_datadir_volume". I believe that this is relative to the container (not the host).
It's relative to the host, used in the host part of a bind mount for the glance-api container.
Do I need to mount the local host (nfs) directory as a docker volume for
glance as additional step? If so, how do I achieve this with kayobe / kolla-ansible?
Yes. You could use a kayobe custom playbook https://docs.openstack.org/kayobe/latest/custom-ansible-playbooks.html
Some background: After a successful deployment of 3 controller nodes I have one glance
service which is dependent on one of these controller nodes being available always. My intent is to provide a NFS share for glance that removes the dependency.
The most common approach is to use Ceph for glance & cinder, but this adds significant complexity. NFS is probably a reasonable second best.
[1] OpenStack Docs: Glance - Image service
Kind regards,
Tony Pearce
participants (2)
-
Mark Goddard
-
Tony Pearce