[openstack-ansible][glance][nfs] Requesting Example of Working Config

James Denton james.denton at rackspace.com
Mon Aug 1 19:01:29 UTC 2022


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 at binghamton.edu>
Date: Monday, August 1, 2022 at 1:51 PM
To: openstack-discuss <openstack-discuss at lists.openstack.org>, Hao Jue PX Wang <wghaojue at cn.ibm.com>
Cc: Dmitriy Rabotyagov <noonedeadpunk at 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.html<https://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,

Configuring Glance Storage Backends¶<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.openstack.org%2Fglance%2Fyoga%2Fconfiguration%2Fconfiguring.html%23configuring-glance-storage-backends&data=05%7C01%7Cjames.denton%40rackspace.com%7C47698b18f6ab4e83add608da73eee2ac%7C570057f473ef41c8bcbb08db2fc15c2b%7C0%7C0%7C637949767098946588%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=syX4kqpSS95fzMhTi70vJoqhTWXeNCcYhEHpZdfIRV8%3D&reserved=0>

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 at binghamton.edu<mailto:kdhall at binghamton.edu>
607-760-2328 (Cell)
607-777-4641 (Office)


On Mon, Aug 1, 2022 at 6:12 AM Dave Hall <kdhall at binghamton.edu<mailto:kdhall at 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 at binghamton.edu<mailto:kdhall at binghamton.edu>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.openstack.org/pipermail/openstack-discuss/attachments/20220801/af67a509/attachment.htm>


More information about the openstack-discuss mailing list