summaryrefslogtreecommitdiff
path: root/cloudinit/sources
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2014-09-04 12:33:41 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2014-09-04 12:33:41 -0700
commit67efb99bc8e4628e86aef76fed3411c1cc763571 (patch)
treef75edcff02dbf16d81756ec2c5ba5fc268ee08e4 /cloudinit/sources
parent6f8bd54650e78bd383b29a59bee95a887ff13c81 (diff)
downloadvyos-cloud-init-67efb99bc8e4628e86aef76fed3411c1cc763571.tar.gz
vyos-cloud-init-67efb99bc8e4628e86aef76fed3411c1cc763571.zip
Fix a couple more cases of exceptional logs
Diffstat (limited to 'cloudinit/sources')
-rw-r--r--cloudinit/sources/DataSourceOpenStack.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/cloudinit/sources/DataSourceOpenStack.py b/cloudinit/sources/DataSourceOpenStack.py
index 0970d07b..221759e1 100644
--- a/cloudinit/sources/DataSourceOpenStack.py
+++ b/cloudinit/sources/DataSourceOpenStack.py
@@ -64,13 +64,13 @@ class DataSourceOpenStack(openstack.SourceMixin, sources.DataSource):
try:
max_wait = int(self.ds_cfg.get("max_wait", max_wait))
- except Exception:
- util.logexc(LOG, "Failed to get max wait. using %s", max_wait)
+ except Exception as e:
+ LOG.debug("Failed to get max wait. using %s: %s", max_wait, e)
try:
timeout = max(0, int(self.ds_cfg.get("timeout", timeout)))
- except Exception:
- util.logexc(LOG, "Failed to get timeout, using %s", timeout)
+ except Exception as e:
+ LOG.debug("Failed to get timeout, using %s: %s", timeout, e)
return (max_wait, timeout)
def wait_for_metadata_service(self):
@@ -82,7 +82,7 @@ class DataSourceOpenStack(openstack.SourceMixin, sources.DataSource):
if len(filtered):
urls = filtered
else:
- LOG.warn("Empty metadata url list! using default list")
+ LOG.debug("Empty metadata url list! using default list")
urls = [DEF_MD_URL]
md_urls = []
@@ -123,9 +123,9 @@ class DataSourceOpenStack(openstack.SourceMixin, sources.DataSource):
'version': openstack.OS_HAVANA})
except openstack.NonReadable:
return False
- except (openstack.BrokenMetadata, IOError):
- util.logexc(LOG, "Broken metadata address %s",
- self.metadata_address)
+ except (openstack.BrokenMetadata, IOError) as e:
+ LOG.debug("Broken metadata address %s: %s",
+ self.metadata_address, e)
return False
user_dsmode = results.get('dsmode', None)