<html xmlns:v="urn:schemas-microsoft-com:vml" 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=iso-8859-2">
<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:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.Stylwiadomocie-mail17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="PL" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am writing to you, because we faced an issue with broken cooperation between cinder and glance. In our logs(glance-api) we observed such warning message:<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">2021-02-22 15:30:02.894 756 WARNING oslo_config.cfg [-] Deprecated: Option "stores" from group "glance_store" is deprecated for removal (<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">This option is deprecated against new config option<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">``enabled_backends`` which helps to configure multiple backend stores<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">of different schemes.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">This option is scheduled for removal in the Stein development<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">cycle.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">).  Its value may be silently ignored in the future.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">2021-02-22 15:30:02.896 756 WARNING oslo_config.cfg [-] Deprecated: Option "default_store" from group "glance_store" is deprecated for removal (<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">This option is deprecated against new config option<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">``default_backend`` which acts similar to ``default_store`` config<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">option.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">This option is scheduled for removal in the Stein development<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">cycle.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">).  Its value may be silently ignored in the future.<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">And we simply wanted to solve this problem, by changing option glance_store to enabled_backends and default_store to default_backend:<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courier New";color:#00BFBF">@@ -2079,7 +2079,7 @@</span><span style="font-size:9.0pt;font-family:"Courier New""> pool_timeout = 60<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courier New""># cycle.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courier New"">#stores = file,http<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courier New";color:#BF0000">-stores = glance.store.rbd.Store<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courier New";color:#00BF00">+enabled_backends = glance.store.rbd.Store<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courier New";color:#00BF00"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courier New""># DEPRECATED:<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courier New""># The default scheme to use for storing images.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courier New";color:#00BFBF">@@ -2134,7 +2134,7 @@</span><span style="font-size:9.0pt;font-family:"Courier New""> stores = glance.store.rbd.Store<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courier New""># cycle.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courier New"">#default_store = file<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courier New";color:#BF0000">-default_store = rbd<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courier New";color:#00BF00">+default_backend = rbd<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">But then we realized that we’re not able to create volumes from new images, because we hit an issue:<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">2021-02-22 22:45:08.805 5910 ERROR cinder.scheduler.filter_scheduler [req-fe8e8aa2-dd8a-470b-9d70-dbdc757b48d9 54df39e1b74149bcb8cf9ad3eb957d48 afdfb965515f4724a21b6823764ec36d - default
 default] Error scheduling 9de37fe8-4f9e-4c29-8cfa-c1a71e8c68b7 from last vol-service: cinder-05@huawei_backend#StoragePool001 : [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.7/dist-packages/taskflow/engines/action_engine/executor.py",
 line 53, in _execute_task\n    result = task.execute(**arguments)\n', u'  File "/usr/lib/python2.7/dist-packages/cinder/volume/flows/manager/create_volume.py", line 1059, in execute\n    **volume_spec)\n', u'  File "/usr/lib/python2.7/dist-packages/cinder/utils.py",
 line 818, in _wrapper\n    return r.call(f, *args, **kwargs)\n', u'  File "/usr/lib/python2.7/dist-packages/retrying.py", line 206, in call\n    return attempt.get(self._wrap_exception)\n', u'  File "/usr/lib/python2.7/dist-packages/retrying.py", line 247,
 in get\n    six.reraise(self.value[0], self.value[1], self.value[2])\n', u'  File "/usr/lib/python2.7/dist-packages/retrying.py", line 200, in call\n    attempt = Attempt(fn(*args, **kwargs), attempt_number, False)\n', u'  File "/usr/lib/python2.7/dist-packages/cinder/volume/flows/manager/create_volume.py",
 line 959, in _create_from_image\n    image_service)\n', u'  File "<decorator-gen-238>", line 2, in _prepare_image_cache_entry\n', u'  File "/usr/lib/python2.7/dist-packages/cinder/coordination.py", line 151, in _synchronized\n    return f(*a, **k)\n', u' 
 File "/usr/lib/python2.7/dist-packages/cinder/volume/flows/manager/create_volume.py", line 757, in _prepare_image_cache_entry\n    update_cache=True)\n', u'  File "/usr/lib/python2.7/dist-packages/cinder/volume/flows/manager/create_volume.py", line 831, in
 _create_from_image_cache_or_download\n    backend_name) as tmp_image:\n', u'  File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__\n    return self.gen.next()\n', u'  File "/usr/lib/python2.7/dist-packages/cinder/image/image_utils.py", line 832,
 in fetch\n    fetch_verify_image(context, image_service, image_id, tmp)\n', u'  File "/usr/lib/python2.7/dist-packages/cinder/image/image_utils.py", line 451, in fetch_verify_image\n    None, None)\n', u'  File "/usr/lib/python2.7/dist-packages/cinder/image/image_utils.py",
 line 377, in fetch\n    tpool.Proxy(image_file))\n', u'  File "/usr/lib/python2.7/dist-packages/cinder/image/glance.py", line 358, in download\n    _reraise_translated_image_exception(image_id)\n', u'  File "/usr/lib/python2.7/dist-packages/cinder/image/glance.py",
 line 602, in _reraise_translated_image_exception\n    six.reraise(type(new_exc), new_exc, exc_trace)\n', u'  File "/usr/lib/python2.7/dist-packages/cinder/image/glance.py", line 356, in download\n    image_chunks = self._client.call(context, \'data\', image_id)\n',
 u'  File "/usr/lib/python2.7/dist-packages/cinder/image/glance.py", line 225, in call\n    return getattr(controller, method)(*args, **kwargs)\n', u'  File "/usr/lib/python2.7/dist-packages/glanceclient/common/utils.py", line 545, in inner\n    return RequestIdProxy(wrapped(*args,
 **kwargs))\n', u'  File "/usr/lib/python2.7/dist-packages/glanceclient/v2/images.py", line 208, in data\n    resp, body = self.http_client.get(url)\n', u'  File "/usr/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 328, in get\n    return self.request(url,
 \'GET\', **kwargs)\n', u'  File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 349, in request\n    return self._handle_response(resp)\n', u'  File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 98, in _handle_response\n   
 raise exc.from_response(resp, resp.content)\n', u'HTTPInternalServerError: HTTPInternalServerError (HTTP 500)\n']<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Which is visible in cinder-scheduler log file. When we reverted a change, everything started to operate normally. I’m just wondering how we can skip this warning message and makes cinder and glance to cooperate correctly, especially that
 we’re planning to make an upgrade from Rocky to Stein soon and this option is planned to be removed in the Stein release. Thanks in advance for your help here.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:24.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm">
<span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:gray;mso-fareast-language:PL">Pozdrawiam,
<br>
Jan Wasilewski<br>
Administrator systemów i sieci CI ATM <br>
</span><span lang="EN-US" style="font-size:8.0pt;font-family:"Arial",sans-serif;color:gray;mso-fareast-language:PL">Tel: +48 691 493 327
<br>
<u><a href="mailto:jan.wasilewski@atman.pl"><span style="color:#0563C1">jan.wasilewski@atman.pl</span></a>,
</u></span><span style="color:gray;mso-fareast-language:PL"><a href="http://www.atman.eu/"><span lang="EN-US" style="font-size:8.0pt;font-family:"Arial",sans-serif;color:gray">www.atman.eu</span></a></span><span lang="EN-US" style="font-size:8.0pt;font-family:"Arial",sans-serif;color:gray;mso-fareast-language:PL"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#767171;mso-fareast-language:PL"><br>
Informacja o zasadach przetwarzania danych osobowych przez ATM S.A. znajduje się pod
<a href="http://www.atman.pl/Informacja-o-przetwarzaniu-danych-osobowych-cabout-pol-113.html">
<span style="color:#767171">tym linkiem</span></a>.</span><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:gray;mso-fareast-language:PL"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>