<div dir="ltr">Hi Mathieu,<div><div>thanks for the related bugs.</div><div>But I'm observing this on 2015.1.1.</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 22, 2015 at 12:58 AM, Mathieu Gagné <span dir="ltr"><<a href="mailto:mgagne@internap.com" target="_blank">mgagne@internap.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 2015-11-21 4:47 PM, Belmiro Moreira wrote:<br>
> Hi,<br>
> We are about to upgrade nova to kilo using cells and we noticed<br>
> the resize/migrate functionality is not working properly.<br>
><br>
> The instance is correctly resized/migrated but fails to<br>
> “confirm resize” with the following trace:<br>
><br>
> 2015-11-21 22:40:49.804 26786 ERROR nova.api.openstack.wsgi<br>
> [req-67f6a225-602c-426c-a33a-02c3f5e3093d belmiro<br>
> 40c7729b-c8e5-432f-81d5-a41543c8bf13] Exception handling resource:<br>
> 'NoneType' object has no attribute '__getitem__'<br>
> 2015-11-21 22:40:49.804 26786 TRACE nova.api.openstack.wsgi Traceback<br>
> (most recent call last):<br>
> 2015-11-21 22:40:49.804 26786 TRACE nova.api.openstack.wsgi   File<br>
> "/usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py", line 821,<br>
> in _process_stack<br>
> 2015-11-21 22:40:49.804 26786 TRACE nova.api.openstack.wsgi<br>
> action_result = self.dispatch(meth, request, action_args)<br>
> 2015-11-21 22:40:49.804 26786 TRACE nova.api.openstack.wsgi   File<br>
> "/usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py", line 911,<br>
> in dispatch<br>
> 2015-11-21 22:40:49.804 26786 TRACE nova.api.openstack.wsgi     return<br>
> method(req=request, **action_args)<br>
> 2015-11-21 22:40:49.804 26786 TRACE nova.api.openstack.wsgi   File<br>
> "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/servers.py", line<br>
> 823, in _action_confirm_resize<br>
> 2015-11-21 22:40:49.804 26786 TRACE nova.api.openstack.wsgi<br>
> self.compute_api.confirm_resize(context, instance)<br>
> 2015-11-21 22:40:49.804 26786 TRACE nova.api.openstack.wsgi   File<br>
> "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 233, in wrapped<br>
> 2015-11-21 22:40:49.804 26786 TRACE nova.api.openstack.wsgi     return<br>
> func(self, context, target, *args, **kwargs)<br>
> 2015-11-21 22:40:49.804 26786 TRACE nova.api.openstack.wsgi   File<br>
> "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 222, in inner<br>
> 2015-11-21 22:40:49.804 26786 TRACE nova.api.openstack.wsgi     return<br>
> function(self, context, instance, *args, **kwargs)<br>
> 2015-11-21 22:40:49.804 26786 TRACE nova.api.openstack.wsgi   File<br>
> "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 250, in<br>
> _wrapped<br>
> 2015-11-21 22:40:49.804 26786 TRACE nova.api.openstack.wsgi     return<br>
> fn(self, context, instance, *args, **kwargs)<br>
> 2015-11-21 22:40:49.804 26786 TRACE nova.api.openstack.wsgi   File<br>
> "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 203, in inner<br>
> 2015-11-21 22:40:49.804 26786 TRACE nova.api.openstack.wsgi     return<br>
> f(self, context, instance, *args, **kw)<br>
> 2015-11-21 22:40:49.804 26786 TRACE nova.api.openstack.wsgi   File<br>
> "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 2452, in<br>
> confirm_resize<br>
> 2015-11-21 22:40:49.804 26786 TRACE nova.api.openstack.wsgi     deltas =<br>
> self._downsize_quota_delta(context, instance)<br>
> 2015-11-21 22:40:49.804 26786 TRACE nova.api.openstack.wsgi   File<br>
> "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 2537, in<br>
> _downsize_quota_delta<br>
> 2015-11-21 22:40:49.804 26786 TRACE nova.api.openstack.wsgi     return<br>
> API._resize_quota_delta(context, new_flavor, old_flavor, 1, -1)<br>
> 2015-11-21 22:40:49.804 26786 TRACE nova.api.openstack.wsgi   File<br>
> "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 2504, in<br>
> _resize_quota_delta<br>
> 2015-11-21 22:40:49.804 26786 TRACE nova.api.openstack.wsgi     if<br>
> compare * _quota_delta('vcpus') > 0:<br>
> 2015-11-21 22:40:49.804 26786 TRACE nova.api.openstack.wsgi   File<br>
> "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 2501, in<br>
> _quota_delta<br>
> 2015-11-21 22:40:49.804 26786 TRACE nova.api.openstack.wsgi     return<br>
> sense * (new_flavor[resource] - old_flavor[resource])<br>
> 2015-11-21 22:40:49.804 26786 TRACE nova.api.openstack.wsgi TypeError:<br>
> 'NoneType' object has no attribute '__getitem__'<br>
> 2015-11-21 22:40:49.804 26786 TRACE nova.api.openstack.wsgi<br>
><br>
><br>
><br>
> I can't reproduce in master so this must have been fixed meanwhile,<br>
> however I can't identify the patch.<br>
><br>
> Is someone experiencing the same problem? and know the commit that<br>
> fixed it?<br>
><br>
<br>
</div></div>I think those bugs are related and can be found in 2015.1.1:<br>
<a href="https://bugs.launchpad.net/nova/+bug/1459758" rel="noreferrer" target="_blank">https://bugs.launchpad.net/nova/+bug/1459758</a><br>
<a href="https://bugs.launchpad.net/nova/+bug/1446082" rel="noreferrer" target="_blank">https://bugs.launchpad.net/nova/+bug/1446082</a><br>
<br>
I know we had serious issues with flavor migrations not being properly<br>
done without those patches.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Mathieu<br>
</font></span></blockquote></div><br></div>