<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:10.0pt;
font-family:"Calibri",sans-serif;}
h2
{mso-style-priority:9;
mso-style-link:"Heading 2 Char";
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:18.0pt;
font-family:"Calibri",sans-serif;
font-weight:bold;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
code
{mso-style-priority:99;
font-family:"Courier New";}
span.Heading2Char
{mso-style-name:"Heading 2 Char";
mso-style-priority:9;
mso-style-link:"Heading 2";
font-family:"Calibri Light",sans-serif;
color:#2F5496;}
span.gmail-pre
{mso-style-name:gmail-pre;}
span.EmailStyle22
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Hi Dave,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">When I used NFS, here’s the config I set in user_variables.yml:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">--<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">glance_default_store: file<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">glance_nfs_local_directory: "images"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">glance_nfs_client:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> - server: "10.22.0.4"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> remote_path: "/volume2/glance_images/images"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> local_path: "/var/lib/glance/images"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> type: "nfs"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> options: "_netdev,auto"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> config_overrides: "{}"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">glance_system_user_uid: 1029<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">glance_system_group_gid: 65537<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">James Denton<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Rackspace Private Cloud<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">Dave Hall <kdhall@binghamton.edu><br>
<b>Date: </b>Monday, August 1, 2022 at 1:51 PM<br>
<b>To: </b>openstack-discuss <openstack-discuss@lists.openstack.org>, Hao Jue PX Wang <wghaojue@cn.ibm.com><br>
<b>Cc: </b>Dmitriy Rabotyagov <noonedeadpunk@gmail.com><br>
<b>Subject: </b>Re: [openstack-ansible][glance][nfs] Requesting Example of Working Config<o:p></o:p></span></p>
</div>
<div style="border:solid #9C6500 1.0pt;padding:2.0pt 2.0pt 2.0pt 2.0pt">
<p class="MsoNormal" style="line-height:12.0pt;background:#FFEB9C"><b><span style="color:#9C6500">CAUTION:</span></b><span style="color:black"> This message originated externally, please use caution when clicking on links or opening attachments!<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Solved, sort of. I finally figured out the right Google search to lead me to
<a href="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">
https://docs.openstack.org/glance/yoga/configuration/configuring.html</a>, According to this document,
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<h2>Configuring Glance Storage Backends<a href="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" title="Permalink to this headline">¶</a><o:p></o:p></h2>
<p>There are a number of configuration options in Glance that control how Glance stores disk images. These configuration options are specified in the
<span class="gmail-pre"><span style="font-size:10.0pt;font-family:"Courier New"">glance-api.conf</span></span> configuration file in the section
<span class="gmail-pre"><span style="font-size:10.0pt;font-family:"Courier New"">[glance_store]</span></span>.<o:p></o:p></p>
<p class="MsoNormal"><span class="gmail-pre"><span style="font-family:"Courier New"">default_store=STORE</span></span><span style="font-size:11.0pt"><o:p></o:p></span></p>
<p style="margin-left:.5in">Optional. Default: <span class="gmail-pre"><span style="font-size:10.0pt;font-family:"Courier New"">file</span></span><o:p></o:p></p>
<p style="margin-left:.5in">Can only be specified in configuration files.<o:p></o:p></p>
<p style="margin-left:.5in">Sets the storage backend to use by default when storing images in Glance. Available options for this option are (<span class="gmail-pre"><span style="font-size:10.0pt;font-family:"Courier New"">file</span></span>,
<span class="gmail-pre"><span style="font-size:10.0pt;font-family:"Courier New"">swift</span></span>,
<span class="gmail-pre"><span style="font-size:10.0pt;font-family:"Courier New"">rbd</span></span>,
<span class="gmail-pre"><span style="font-size:10.0pt;font-family:"Courier New"">cinder</span></span> or
<span class="gmail-pre"><span style="font-size:10.0pt;font-family:"Courier New"">vsphere</span></span>). In order to select a default store it must also be listed in the
<span class="gmail-pre"><span style="font-size:10.0pt;font-family:"Courier New"">stores</span></span> list described below.<o:p></o:p></p>
<p class="MsoNormal"><span class="gmail-pre"><span style="font-family:"Courier New"">stores=STORES</span></span><span style="font-size:11.0pt"><o:p></o:p></span></p>
<p style="margin-left:.5in">Optional. Default: <span class="gmail-pre"><span style="font-size:10.0pt;font-family:"Courier New"">file,</span></span><code><span style="font-size:10.0pt">
</span></code><span class="gmail-pre"><span style="font-size:10.0pt;font-family:"Courier New"">http</span></span><o:p></o:p></p>
<p style="margin-left:.5in">A comma separated list of enabled glance stores. Some available options for this option are (<span class="gmail-pre"><span style="font-size:10.0pt;font-family:"Courier New"">filesystem</span></span>,
<span class="gmail-pre"><span style="font-size:10.0pt;font-family:"Courier New"">http</span></span>,
<span class="gmail-pre"><span style="font-size:10.0pt;font-family:"Courier New"">rbd</span></span>,
<span class="gmail-pre"><span style="font-size:10.0pt;font-family:"Courier New"">swift</span></span>,
<span class="gmail-pre"><span style="font-size:10.0pt;font-family:"Courier New"">cinder</span></span>,
<span class="gmail-pre"><span style="font-size:10.0pt;font-family:"Courier New"">vmware</span></span>)<o:p></o:p></p>
</div>
</blockquote>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">I looked at the glance-api.conf in my containers and found neither of these lines present. When I added them<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">[glance_store]<br>
default_backend = file<br>
<b>default_store = file<br>
stores = file</b><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
</blockquote>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">the image creation worked.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Now my question will be how to get openstack-ansible to generate these lines.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">-Dave<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">--<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Dave Hall<br>
Binghamton University<br>
<a href="mailto:kdhall@binghamton.edu" target="_blank">kdhall@binghamton.edu</a><br>
607-760-2328 (Cell)<br>
607-777-4641 (Office)<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">On Mon, Aug 1, 2022 at 6:12 AM Dave Hall <<a href="mailto:kdhall@binghamton.edu">kdhall@binghamton.edu</a>> wrote:<o:p></o:p></span></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Hello, <o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Release - yoga. Host OS - Debian 11<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">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.).<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">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. <o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">-Dave<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt"><br clear="all">
<o:p></o:p></span></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">--<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:11.0pt">Dave Hall<br>
Binghamton University<br>
<a href="mailto:kdhall@binghamton.edu" target="_blank">kdhall@binghamton.edu</a><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</body>
</html>