[openstack-ansible][glance][nfs] Requesting Example of Working Config
Hello,
Release - yoga. Host OS - Debian 11
I'm looking for an example of how to get NFS working as storage for glance and cinder - both the openstack_user_config.yml stanzas and the NFS server setup (/etc/exports, etc.).
So far I've adapted the stanzas from the openstack_user_config.yml examples. The shares are mounted and writable (by root) from the glance/cinder containers, but glance keeps on throwing 410 errors.
Thanks.
-Dave
-- Dave Hall Binghamton University kdhall@binghamton.edu
Solved, sort of. I finally figured out the right Google search to lead me to https://docs.openstack.org/glance/yoga/configuration/configuring.html, According to this document,
Configuring Glance Storage Backends¶
There are a number of configuration options in Glance that control how Glance stores disk images. These configuration options are specified in the glance-api.conf configuration file in the section [glance_store]. default_store=STORE
Optional. Default: file
Can only be specified in configuration files.
Sets the storage backend to use by default when storing images in Glance. Available options for this option are (file, swift, rbd, cinder or vsphere). In order to select a default store it must also be listed in the stores list described below. stores=STORES
Optional. Default: file, http
A comma separated list of enabled glance stores. Some available options for this option are (filesystem, http, rbd, swift, cinder, vmware)
I looked at the glance-api.conf in my containers and found neither of these lines present. When I added them
[glance_store]
default_backend = file
*default_store = filestores = file*
the image creation worked.
Now my question will be how to get openstack-ansible to generate these lines.
-Dave
-- Dave Hall Binghamton University kdhall@binghamton.edu 607-760-2328 (Cell) 607-777-4641 (Office)
On Mon, Aug 1, 2022 at 6:12 AM Dave Hall kdhall@binghamton.edu wrote:
Hello,
Release - yoga. Host OS - Debian 11
I'm looking for an example of how to get NFS working as storage for glance and cinder - both the openstack_user_config.yml stanzas and the NFS server setup (/etc/exports, etc.).
So far I've adapted the stanzas from the openstack_user_config.yml examples. The shares are mounted and writable (by root) from the glance/cinder containers, but glance keeps on throwing 410 errors.
Thanks.
-Dave
-- Dave Hall Binghamton University kdhall@binghamton.edu
Hi Dave,
When I used NFS, here’s the config I set in user_variables.yml:
-- glance_default_store: file glance_nfs_local_directory: "images" glance_nfs_client: - server: "10.22.0.4" remote_path: "/volume2/glance_images/images" local_path: "/var/lib/glance/images" type: "nfs" options: "_netdev,auto" config_overrides: "{}"
glance_system_user_uid: 1029 glance_system_group_gid: 65537
Changing your server address and remote_path to match. I needed to set my local uid/gid to match my NFS server; not sure if you’d need to do the same.
James Denton Rackspace Private Cloud
From: Dave Hall kdhall@binghamton.edu Date: Monday, August 1, 2022 at 1:51 PM To: openstack-discuss openstack-discuss@lists.openstack.org, Hao Jue PX Wang wghaojue@cn.ibm.com Cc: Dmitriy Rabotyagov noonedeadpunk@gmail.com Subject: Re: [openstack-ansible][glance][nfs] Requesting Example of Working Config CAUTION: This message originated externally, please use caution when clicking on links or opening attachments!
Solved, sort of. I finally figured out the right Google search to lead me to https://docs.openstack.org/glance/yoga/configuration/configuring.htmlhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.openstack.org%2Fglance%2Fyoga%2Fconfiguration%2Fconfiguring.html&data=05%7C01%7Cjames.denton%40rackspace.com%7C47698b18f6ab4e83add608da73eee2ac%7C570057f473ef41c8bcbb08db2fc15c2b%7C0%7C0%7C637949767098946588%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=vTbcBpgaEVpfwFseoehWBY1%2FP9RQBvG2UyT%2Fb5lCSO0%3D&reserved=0, According to this document,
There are a number of configuration options in Glance that control how Glance stores disk images. These configuration options are specified in the glance-api.conf configuration file in the section [glance_store]. default_store=STORE
Optional. Default: file
Can only be specified in configuration files.
Sets the storage backend to use by default when storing images in Glance. Available options for this option are (file, swift, rbd, cinder or vsphere). In order to select a default store it must also be listed in the stores list described below. stores=STORES
Optional. Default: file, http
A comma separated list of enabled glance stores. Some available options for this option are (filesystem, http, rbd, swift, cinder, vmware)
I looked at the glance-api.conf in my containers and found neither of these lines present. When I added them
[glance_store] default_backend = file default_store = file stores = file
the image creation worked.
Now my question will be how to get openstack-ansible to generate these lines.
-Dave
-- Dave Hall Binghamton University kdhall@binghamton.edumailto:kdhall@binghamton.edu 607-760-2328 (Cell) 607-777-4641 (Office)
On Mon, Aug 1, 2022 at 6:12 AM Dave Hall <kdhall@binghamton.edumailto:kdhall@binghamton.edu> wrote: Hello,
Release - yoga. Host OS - Debian 11
I'm looking for an example of how to get NFS working as storage for glance and cinder - both the openstack_user_config.yml stanzas and the NFS server setup (/etc/exports, etc.).
So far I've adapted the stanzas from the openstack_user_config.yml examples. The shares are mounted and writable (by root) from the glance/cinder containers, but glance keeps on throwing 410 errors.
Thanks.
-Dave
-- Dave Hall Binghamton University kdhall@binghamton.edumailto:kdhall@binghamton.edu
participants (2)
-
Dave Hall
-
James Denton