<div dir="ltr"><div><div><div><div><div><div>Thanks Michael Johnson for your fix !<br><br></div>  We plan to release oslo.config 4.0 when each project has a fix at least in review , Latest updates: <br><br></div>  Nova:  <a href="https://review.openstack.org/457188">https://review.openstack.org/457188</a>  need review<br></div>  Keystone:  <a target="_blank" href="https://review.openstack.org/455391">https://review.openstack.org/<wbr>455391</a> wait for oslo.config 4.0  <br></div>  Glance:  <a href="https://review.openstack.org/#/c/455522/" target="_blank">https://review.openstack.org/#<wbr>/c/455522/</a> need review <br></div>  Octavia:  <span style="font-size:11pt;font-family:"calibri",sans-serif"> <a target="_blank" href="https://review.openstack.org/457356">https://review.openstack.org/<wbr>457356</a> need review<br></span></div><span style="font-size:11pt;font-family:"calibri",sans-serif">   Ironic:   talked with ironic liason curshil in oslo weekly meeting, will dig into it.<br></span><br><div><div><div><div><div><div><div><div><div><div><div><div class="gmail_extra"><div class="gmail_quote">2017-04-18 4:51 GMT+08:00 Michael Johnson <span dir="ltr"><<a href="mailto:johnsomor@gmail.com" target="_blank">johnsomor@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-US"><div class="gmail-m_-989704095689026297WordSection1"><p class="MsoNormal"><span style="font-size:11pt;font-family:"calibri",sans-serif">Thank you ChangBo, I have resolved the issues in octavia in this patch: <a href="https://review.openstack.org/457356" target="_blank">https://review.openstack.org/<wbr>457356</a> up for review.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:"calibri",sans-serif"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:"calibri",sans-serif">Michael<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:"calibri",sans-serif"><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-size:11pt;font-family:"calibri",sans-serif">From:</span></b><span style="font-size:11pt;font-family:"calibri",sans-serif"> ChangBo Guo [mailto:<a href="mailto:glongwave@gmail.com" target="_blank">glongwave@gmail.com</a>] <br><b>Sent:</b> Sunday, April 16, 2017 12:32 AM<br><b>To:</b> OpenStack Development Mailing List (not for usage questions) <<a href="mailto:openstack-dev@lists.openstack.org" target="_blank">openstack-dev@lists.<wbr>openstack.org</a>><br><b>Subject:</b> Re: [openstack-dev] [glance][ironic][octavia] oslo.config 4.0 will break projects' unit test<u></u><u></u></span></p><div><div class="gmail-h5"><p class="MsoNormal"><u></u> <u></u></p><div><div><div><div><p class="MsoNormal">As I expect, there are some failures in periodic tasks recently [1] if we set enforce_type with True by default,  we'd better fix them before we release oslo.config 4.0.  Some guys had been working on this :<br>Nova: <a href="https://review.openstack.org/455534" target="_blank">https://review.openstack.org/<wbr>455534</a> should fix failures<u></u><u></u></p></div><div><p class="MsoNormal">tempest:  <a href="https://review.openstack.org/456445" target="_blank">https://review.openstack.org/<wbr>456445</a> fixed<u></u><u></u></p></div><div><p class="MsoNormal">Keystone:  <a href="https://review.openstack.org/455391" target="_blank">https://review.openstack.org/<wbr>455391</a> wait for oslo.config 4.0<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">We still need help from Glance/Ironic/Octavia<u></u><u></u></p></div><p class="MsoNormal">Glance:  <a href="https://review.openstack.org/#/c/455522/" target="_blank">https://review.openstack.org/#<wbr>/c/455522/</a> need review<u></u><u></u></p></div><p class="MsoNormal">Ironic:  Need fix failure in <a href="http://logs.openstack.org/periodic/periodic-ironic-py27-with-oslo-master/680abfe/testr_results.html.gz" target="_blank">http://logs.openstack.org/<wbr>periodic/periodic-ironic-py27-<wbr>with-oslo-master/680abfe/<wbr>testr_results.html.gz</a><br>Octavia: Need fix failure in <a href="http://logs.openstack.org/periodic/periodic-octavia-py35-with-oslo-master/80fee03/testr_results.html.gz" target="_blank">http://logs.openstack.org/<wbr>periodic/periodic-octavia-<wbr>py35-with-oslo-master/80fee03/<wbr>testr_results.html.gz</a><u></u><u></u></p></div><div><div><div><div><p class="MsoNormal"><br>[1] <a href="http://status.openstack.org/openstack-health/#/?groupKey=build_name&resolutionKey=hour&searchProject=-with-oslo" target="_blank">http://status.openstack.org/<wbr>openstack-health/#/?groupKey=<wbr>build_name&resolutionKey=hour&<wbr>searchProject=-with-oslo</a><u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">2017-04-04 0:01 GMT+08:00 ChangBo Guo <<a href="mailto:glongwave@gmail.com" target="_blank">glongwave@gmail.com</a>>:<u></u><u></u></p><blockquote style="border-width:medium medium medium 1pt;border-style:none none none solid;border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in"><div><p class="MsoNormal">Hi ALL,<u></u><u></u></p><div><p class="MsoNormal"><br>oslo_config provides method CONF.set_override[1] , developers usually use it to change <span class="gmail-m_-989704095689026297gmail-m-7637432970889093051gmail-il">config</span> option's value in tests. That's convenient . By default  parameter enforce_type=False,  it doesn't check any type or value of override. If set enforce_type=True , will check parameter override's type and value.  In production code(running time code),  oslo_config  always checks  <span class="gmail-m_-989704095689026297gmail-m-7637432970889093051gmail-il">config</span> option's value. In short, we test and run code in different ways. so there's  gap:  <span class="gmail-m_-989704095689026297gmail-m-7637432970889093051gmail-il">config</span> option with wrong type or invalid value can pass tests when<u></u><u></u></p><div><div><div id="gmail-m_-989704095689026297gmail-m_-7637432970889093051gmail-m_8148224464712465731magicdomid6"><p class="MsoNormal">parameter enforce_type = False in consuming projects.  that means some invalid or wrong tests are in our code base. <br><br><br>We began to warn user about the change since Sep, 2016 in [2]. This change will notify consuming project to write correct test cases with config options. <u></u><u></u></p></div><div id="gmail-m_-989704095689026297gmail-m_-7637432970889093051gmail-m_8148224464712465731magicdomid6"><p class="MsoNormal">We would make enforce_type = true by default in [3], that may break some projects' tests, that's also raise wrong unit tests. The failure is easy to fix, which<u></u><u></u></p></div><div id="gmail-m_-989704095689026297gmail-m_-7637432970889093051gmail-m_8148224464712465731magicdomid6"><p class="MsoNormal">is recommended. <u></u><u></u></p></div></div></div><p class="MsoNormal"><br><br>[1] <a href="https://github.com/openstack/oslo.config/blob/efb287a94645b15b634e8c344352696ff85c219f/oslo_config/cfg.py#L2613" target="_blank">https://github.com/openstack/<wbr>oslo.config/blob/<wbr>efb287a94645b15b634e8c34435269<wbr>6ff85c219f/oslo_config/cfg.py#<wbr>L2613</a><br>[2] <a href="https://review.openstack.org/#/c/365476/" target="_blank">https://review.openstack.org/#<wbr>/c/365476/</a><br>[3] <a href="https://review.openstack.org/328692" target="_blank">https://review.openstack.org/<wbr>328692</a><span style="color:rgb(136,136,136)"><br clear="all"><span class="gmail-m_-989704095689026297gmail-hoenzb"><u></u><u></u></span></span></p><div><p class="MsoNormal"><span style="color:rgb(136,136,136)"><br>-- </span><u></u><u></u></p><div><div><div><p class="MsoNormal"><span style="color:rgb(136,136,136)">ChangBo Guo(gcb)<u></u><u></u></span></p></div></div></div></div></div></div></blockquote></div><p class="MsoNormal"><br><br clear="all"><br>-- <u></u><u></u></p><div><div><div><p class="MsoNormal">ChangBo Guo(gcb)<u></u><u></u></p></div></div></div></div></div></div></div></div></div></div></div></div></div><br>______________________________<wbr>______________________________<wbr>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.<wbr>openstack.org?subject:<wbr>unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-dev</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div>ChangBo Guo(gcb)</div></div></div>
</div></div></div></div></div></div></div></div></div></div></div></div></div>