|
|
591b7e |
From 4e539790e57452b24aa6851452201c0f2a87c464 Mon Sep 17 00:00:00 2001
|
|
|
591b7e |
From: Eduardo Otubo <otubo@redhat.com>
|
|
|
591b7e |
Date: Tue, 5 May 2020 08:08:21 +0200
|
|
|
591b7e |
Subject: [PATCH 4/5] exoscale: Increase url_max_wait to 120s.
|
|
|
591b7e |
|
|
|
591b7e |
RH-Author: Eduardo Otubo <otubo@redhat.com>
|
|
|
591b7e |
Message-id: <20200504085238.25884-5-otubo@redhat.com>
|
|
|
591b7e |
Patchwork-id: 96247
|
|
|
591b7e |
O-Subject: [RHEL-7.8.z cloud-init PATCH 4/5] exoscale: Increase url_max_wait to 120s.
|
|
|
591b7e |
Bugzilla: 1827207
|
|
|
591b7e |
RH-Acked-by: Cathy Avery <cavery@redhat.com>
|
|
|
591b7e |
RH-Acked-by: Mohammed Gamal <mgamal@redhat.com>
|
|
|
591b7e |
RH-Acked-by: Vitaly Kuznetsov <vkuznets@redhat.com>
|
|
|
591b7e |
|
|
|
591b7e |
commit 3e2482e8aa6630ca9bc115dc1f82d44d3fde1681
|
|
|
591b7e |
Author: Chris Glass <chris@exoscale.ch>
|
|
|
591b7e |
Date: Thu Oct 24 17:32:58 2019 +0000
|
|
|
591b7e |
|
|
|
591b7e |
exoscale: Increase url_max_wait to 120s.
|
|
|
591b7e |
|
|
|
591b7e |
The exoscale datasource defines a shorter timeout than the default (10)
|
|
|
591b7e |
but did not override url_max_wait, resulting in a single attempt being
|
|
|
591b7e |
made to wait for the metadata service.
|
|
|
591b7e |
|
|
|
591b7e |
In some rare cases, a race condition means the route to the metadata
|
|
|
591b7e |
service is not set within 10 seconds, and more attempts should be made.
|
|
|
591b7e |
|
|
|
591b7e |
This sets the url_max_wait for the datasource to 120.
|
|
|
591b7e |
|
|
|
591b7e |
Signed-off-by: Eduardo Otubo <otubo@redhat.com>
|
|
|
591b7e |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
591b7e |
---
|
|
|
591b7e |
cloudinit/sources/DataSourceExoscale.py | 2 ++
|
|
|
591b7e |
1 file changed, 2 insertions(+)
|
|
|
591b7e |
|
|
|
591b7e |
diff --git a/cloudinit/sources/DataSourceExoscale.py b/cloudinit/sources/DataSourceExoscale.py
|
|
|
591b7e |
index fdfb4ed..4616daa 100644
|
|
|
591b7e |
--- a/cloudinit/sources/DataSourceExoscale.py
|
|
|
591b7e |
+++ b/cloudinit/sources/DataSourceExoscale.py
|
|
|
591b7e |
@@ -26,6 +26,8 @@ class DataSourceExoscale(sources.DataSource):
|
|
|
591b7e |
|
|
|
591b7e |
dsname = 'Exoscale'
|
|
|
591b7e |
|
|
|
591b7e |
+ url_max_wait = 120
|
|
|
591b7e |
+
|
|
|
591b7e |
def __init__(self, sys_cfg, distro, paths):
|
|
|
591b7e |
super(DataSourceExoscale, self).__init__(sys_cfg, distro, paths)
|
|
|
591b7e |
LOG.debug("Initializing the Exoscale datasource")
|
|
|
591b7e |
--
|
|
|
591b7e |
1.8.3.1
|
|
|
591b7e |
|