Comment 3 for bug 1628316

Revision history for this message
Brian Curtin (brian.curtin) wrote :

This is weird. That small piece makes sense, as the list method first tries to do a GET based on what you give it—-in this case a name which will 404 since the server is expecting an id--but it should then then be doing a second GET for all items and then look through the results to find a flavor that matches the name.

Doing the same thing yields this log for me: http://paste.openstack.org/show/583543/, and this chunk of code here is what's being hit: https://github.com/openstack/python-openstacksdk/blob/master/openstack/resource2.py#L788

One curious thing is in your initial message you have "NotFound: Not Found (HTTP 404)", which is not something that should be showing up. For one, find_flavor should just be returning None if it doesn't find something that matches, not raising an exception. The second is that exception looks like it's coming out of keystoneauth, whereas we've wrapped the KSA session for a few small things, including an exception mapper to openstacksdk exception types.

Are you able to share a bit more of your code here or elsewhere? This seems a bit odd. If I had to guess, are you creating a Session direct from keystoneauth and passing it in when you create your Connection instance? That might explain why the KSA exception is evading our attempt at handling it for a separate retry, and why it would have shown up.