[openstack-dev] [puppet][Fuel] OpenstackLib Client Provider Better Exception Handling

Vladimir Kuklin vkuklin at mirantis.com
Thu Oct 15 14:07:26 UTC 2015


Matt

> You are right, it probably won't. At that point you are using puppet to
work around some fundamental issues in your OpenStack deployment.

Actually, as you know, with Fuel we are shipping our code to people who
have their own infrastructure. We do not have any control over that
infrastructure and any information about it. So we should expect the worst
- that sometimes such issues will happen and we need to take care of them
in the best possible way, e.g. someone tripped the wire and then put it
back into the switch. And it seems that we can do it right in puppet code
instead of making user wait for puppet rerun.

> Another one that is a deployment architecture problem. We solved this by
configuring the load balancer to direct keystone traffic to a single db
node, now we solve it with Fernet tokens. If you have this
> specific issue above it's going to manifest in all kinds of strange ways
and can even happen to control services like neutron/nova etc as well.
Which means even if we get puppet to pass with a bunch of
> retries, OpenStack is not healthy and the users will not be happy about
it.

Again, what you described is for the case when the system was in some
undesirable  state like reading from incorrect database and then got into
persistent working state. And you solve it by making load balancer aware of
which backend to send request to. But I am talking about sporadic failures
which from the statistical point of view look negligible and should not be
handled by load balancer. Imagine the situation when load balancer is ok
with that backend and this backend faces intermittent operational issue
like getting garbled response or having some bug in the code. This is a
sporadic failure which will not be caught by load balancer because if you
make it so sensitive to such issues it will behave poorly. So, I think, the
best option here is to handle such issues on application level.


On Thu, Oct 15, 2015 at 4:37 PM, Matt Fischer <matt at mattfischer.com> wrote:

>
>
> On Thu, Oct 15, 2015 at 4:10 AM, Vladimir Kuklin <vkuklin at mirantis.com>
> wrote:
>
>> Gilles,
>>
>> 5xx errors like 503 and 502/504 could always be intermittent operational
>> issues. E.g. when you access your keystone backends through some proxy and
>> there is a connectivity issue between the proxy and backends which
>> disappears in 10 seconds, you do not need to rerun the puppet completely -
>> just retry the request.
>>
>> Regarding "REST interfaces for all Openstack API" - this is very close
>> to another topic that I raised ([0]) - using native Ruby application and
>> handle the exceptions. Otherwise whenever we have an OpenStack client
>> (generic or neutron/glance/etc. one) sending us a message like '[111]
>> Connection refused' this message is very much determined by the framework
>> that OpenStack is using within this release for clients. It could be
>> `requests` or any other type of framework which sends different text
>> message depending on its version. So it is very bothersome to write a bunch
>> of 'if' clauses or gigantic regexps instead of handling simple Ruby
>> exception. So I agree with you here - we need to work with the API
>> directly. And, by the way, if you also support switching to native Ruby
>> OpenStack API client, please feel free to support movement towards it in
>> the thread [0]
>>
>> Matt and Gilles,
>>
>> Regarding puppet-healthcheck - I do not think that puppet-healtcheck
>> handles exactly what I am mentioning here - it is not running exactly at
>> the same time as we run the request.
>>
>> E.g. 10 seconds ago everything was OK, then we had a temporary
>> connectivity issue, then everything is ok again in 10 seconds. Could you
>> please describe how puppet-healthcheck can help us solve this problem?
>>
>
>
> You are right, it probably won't. At that point you are using puppet to
> work around some fundamental issues in your OpenStack deployment.
>
>
>>
>> Or another example - there was an issue with keystone accessing token
>> database when you have several keystone instances running, or there was
>> some desync between these instances, e.g. you fetched the token at keystone
>> #1 and then you verify it again keystone #2. Keystone #2 had some issues
>> verifying it not due to the fact that token was bad, but due to the fact
>> that that keystone #2 had some issues. We would get 401 error and instead
>> of trying to rerun the puppet we would need just to handle this issue
>> locally by retrying the request.
>>
>> [0] http://permalink.gmane.org/gmane.comp.cloud.openstack.devel/66423
>>
>
> Another one that is a deployment architecture problem. We solved this by
> configuring the load balancer to direct keystone traffic to a single db
> node, now we solve it with Fernet tokens. If you have this specific issue
> above it's going to manifest in all kinds of strange ways and can even
> happen to control services like neutron/nova etc as well. Which means even
> if we get puppet to pass with a bunch of retries, OpenStack is not healthy
> and the users will not be happy about it.
>
> I don't want to give them impression that I am completely opposed to
> retries, but on the other hand, when my deployment is broken, I want to
> know quickly, not after 10 minutes of retries, so we need to balance that.
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>


-- 
Yours Faithfully,
Vladimir Kuklin,
Fuel Library Tech Lead,
Mirantis, Inc.
+7 (495) 640-49-04
+7 (926) 702-39-68
Skype kuklinvv
35bk3, Vorontsovskaya Str.
Moscow, Russia,
www.mirantis.com <http://www.mirantis.ru/>
www.mirantis.ru
vkuklin at mirantis.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20151015/27b1d04d/attachment.html>


More information about the OpenStack-dev mailing list