On Thu, 2 Jul 2015 at 18:06 'Petr Pudlak' via ganeti-devel <
[email protected]> wrote:

> .. since the communication takes place on non-master nodes.
>
> This ensures the client properly retries if there is a communication
> failure.
>
> Signed-off-by: Petr Pudlak <[email protected]>
> ---
>  lib/backend.py | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/lib/backend.py b/lib/backend.py
> index 402aae1..3564b8f 100644
> --- a/lib/backend.py
> +++ b/lib/backend.py
> @@ -2237,7 +2237,8 @@ def ModifyInstanceMetadata(metadata):
>        raise errors.HypervisorError("Failed to start metadata daemon")
>
>    def _Connect():
> -    return transport.Transport(pathutils.SOCKET_DIR + "/ganeti-metad")
> +    return transport.Transport(pathutils.SOCKET_DIR + "/ganeti-metad",
> +                               allow_non_master=True)
>
>    retries = 5
>
> --
> 2.4.3.573.g4eafbef
>
>
LGTM, thanks

Reply via email to