<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
<!--
@font-face
        {font-family:SimSun}
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
p
        {margin-right:0in;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif}
p.emailquote, li.emailquote, div.emailquote
        {margin-right:0in;
        margin-left:1.0pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif}
span.EmailStyle20
        {font-family:"Calibri",sans-serif;
        color:#1F497D}
span.EmailStyle21
        {font-family:"Calibri",sans-serif;
        color:#1F497D}
span.EmailStyle22
        {font-family:"Calibri",sans-serif;
        color:#1F497D}
.MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
ol
        {margin-bottom:0in}
ul
        {margin-bottom:0in}
-->
</style><style type="text/css" id="owaParaStyle">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body fpstyle="1" ocsi="0" vlink="purple" link="blue" lang="EN-US">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div>Hi Li,</div>
<div><br>
</div>
<div>Quick question: Is cache going to be freed when an image is deleted from glance? It would be a waste to cache images that are no longer needed.<br>
</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Ovidiu<br>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF502789" style="direction: ltr;"><font size="2" face="Tahoma" color="#000000"><b>From:</b> Li, Xiaoyan [xiaoyan.li@intel.com]<br>
<b>Sent:</b> Tuesday, November 13, 2018 9:19 AM<br>
<b>To:</b> Rowsell, Brent; 'starlingx-discuss@lists.starlingx.io'<br>
<b>Subject:</b> Re: [Starlingx-discuss] [StarlingX] Use Cinder generic image cache to replace raw caching<br>
</font><br>
</div>
<div></div>
<div>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">Hi,</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">About the raw cache function in StarlingX Cinder and Glance, I would like to remove it as Cinder has similar function. Please see following detail.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">And if I  would like to remove the function in StarlingX, there are two methods:</span></p>
<p class="MsoListParagraph" style="text-indent:-.25in"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"><span style="">1.<span style="font:7.0pt "Times New Roman"">      
</span></span></span><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">Submit a patch to revert the changes in Glance and Cinder.</span></p>
<p class="MsoListParagraph" style="text-indent:-.25in"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"><span style="">2.<span style="font:7.0pt "Times New Roman"">      
</span></span></span><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">Ignore these patches during upgrading StarlingX/Cinder to new Cinder release.
</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">Which way do we prefer to?</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">Best wishes</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">Lisa</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span></p>
<div style="border:none; border-left:solid blue 1.5pt; padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt; font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt; font-family:"Calibri",sans-serif"> Li, Xiaoyan
<br>
<b>Sent:</b> Thursday, September 20, 2018 10:17 AM<br>
<b>To:</b> Rowsell, Brent <Brent.Rowsell@windriver.com>; starlingx-discuss@lists.starlingx.io<br>
<b>Subject:</b> RE: [Starlingx-discuss] [StarlingX] Use Cinder generic image cache to replace raw caching</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:black">Hi, Brent</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:black"> </span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:black">The following are mechanism of Cinder volume cache.</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:black"> </span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:black">Creation of cached volume:
</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:black">It creates a cached volume in the backend storage when creating from an image.</span></p>
<p style="margin-right:0in; margin-bottom:0in; margin-left:.5in; margin-bottom:.0001pt; text-indent:-.25in">
<span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:black"><span style="">1.<span style="font:7.0pt "Times New Roman"">      
</span></span></span><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:black">Create_from_image:
</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:black"><a href="https://github.com/openstack/cinder/blob/stable/pike/cinder/volume/flows/manager/create_volume.py#L890" target="_blank" rel="noopener noreferrer">https://github.com/openstack/cinder/blob/stable/pike/cinder/volume/flows/manager/create_volume.py#L890</a></span></p>
<p style="margin-right:0in; margin-bottom:0in; margin-left:.5in; margin-bottom:.0001pt; text-indent:-.25in">
<span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:black"><span style="">2.<span style="font:7.0pt "Times New Roman"">      
</span></span></span><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:black">Return image cache entry: If not existed, it creates a new entry.</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:black"><a href="https://github.com/openstack/cinder/blob/stable/pike/cinder/volume/flows/manager/create_volume.py#L746" target="_blank" rel="noopener noreferrer">https://github.com/openstack/cinder/blob/stable/pike/cinder/volume/flows/manager/create_volume.py#L746</a></span></p>
<p style="margin-right:0in; margin-bottom:0in; margin-left:.5in; margin-bottom:.0001pt; text-indent:-.25in">
<span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:black"><span style="">3.<span style="font:7.0pt "Times New Roman"">      
</span></span></span><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:black">Create a new image-volume and cache entry for it:</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:black"><a href="https://github.com/openstack/cinder/blob/stable/pike/cinder/volume/flows/manager/create_volume.py#L872" target="_blank" rel="noopener noreferrer">https://github.com/openstack/cinder/blob/stable/pike/cinder/volume/flows/manager/create_volume.py#L872</a></span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:black"> </span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:black">Use a cached volume when creating a volume:</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:black"><a href="https://github.com/openstack/cinder/blob/stable/pike/cinder/volume/flows/manager/create_volume.py#L723-L735" target="_blank" rel="noopener noreferrer">https://github.com/openstack/cinder/blob/stable/pike/cinder/volume/flows/manager/create_volume.py#L723-L735</a>
</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:black"> </span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:black"> Delete the cache volume: When capacity and number of cache entries exceed specified limit, it deletes cache entries (cached volumes).
</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:black"><a href="https://github.com/openstack/cinder/blob/stable/pike/cinder/image/cache.py#L164" target="_blank" rel="noopener noreferrer">https://github.com/openstack/cinder/blob/stable/pike/cinder/image/cache.py#L164</a>
</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">Best wishes</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">Lisa</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span></p>
<div style="border:none; border-left:solid blue 1.5pt; padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt; font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt; font-family:"Calibri",sans-serif"> Rowsell, Brent [<a href="mailto:Brent.Rowsell@windriver.com" target="_blank" rel="noopener noreferrer">mailto:Brent.Rowsell@windriver.com</a>]
<br>
<b>Sent:</b> Thursday, September 6, 2018 10:02 AM<br>
<b>To:</b> Li, Xiaoyan <<a href="mailto:xiaoyan.li@intel.com" target="_blank" rel="noopener noreferrer">xiaoyan.li@intel.com</a>>;
<a href="mailto:starlingx-discuss@lists.starlingx.io" target="_blank" rel="noopener noreferrer">
starlingx-discuss@lists.starlingx.io</a><br>
<b>Subject:</b> RE: [Starlingx-discuss] [StarlingX] Use Cinder generic image cache to replace raw caching</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">We would need to review this feature to ensure it provides equivalent functionality first.
</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">If it does, great, we can look at reverting and enabling this cinder functionality.
</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">Brent
</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span></p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt; font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt; font-family:"Calibri",sans-serif"> Li, Xiaoyan [<a href="mailto:xiaoyan.li@intel.com" target="_blank" rel="noopener noreferrer">mailto:xiaoyan.li@intel.com</a>]
<br>
<b>Sent:</b> Wednesday, September 5, 2018 9:59 PM<br>
<b>To:</b> <a href="mailto:starlingx-discuss@lists.starlingx.io" target="_blank" rel="noopener noreferrer">
starlingx-discuss@lists.starlingx.io</a><br>
<b>Subject:</b> [Starlingx-discuss] [StarlingX] Use Cinder generic image cache to replace raw caching</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif">Hi all,</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif"> </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif">This email is about Raw caching function in StarlingX. This feature is to cache an image in backend storage like Ceph when we first create a volume in this backend storage.</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><span style="font-size:11.0pt; font-family:"Calibri",sans-serif"></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif">In fact, Cinder upstream has already had a similar function in Pike release.
<a href="https://specs.openstack.org/openstack/cinder-specs/specs/liberty/image-volume-cache.html" target="_blank" rel="noopener noreferrer">
<span style="color:#0563C1">https://specs.openstack.org/openstack/cinder-specs/specs/liberty/image-volume-cache.html</span></a>
</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif">So I want to revert Raw caching function in StarlingX, and use Cinder generic image cache instead.
</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif">The problem is that we need to update Cinder config in StarlingX. Any comments?
</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><span style="font-size:11.0pt; font-family:"Calibri",sans-serif"></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif">Best wishes</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif">Lisa</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif"> </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><span style="font-size:11.0pt; font-family:"Calibri",sans-serif"></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><span style="font-size:11.0pt; font-family:"Calibri",sans-serif"></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>