From 7d14d024f0d92cd6f9596596cdcaf3d870ba1839 Mon Sep 17 00:00:00 2001 From: Stanislaw Pitucha Date: Tue, 9 Apr 2013 14:41:09 +0100 Subject: Security groups may be unavailable Currently all missing security group situations are reported as errors and exceptions. This is not the case - any user requesting a wrong id or name can cause it and it's not an issue in Nova. A busy system can generate a large number of those messages causing unnecessarily high error count. This change stops reporting this situation as exception in the logs. Change-Id: Ide856cbbde2db025b0e2def79652cc6c9b00566b --- nova/network/security_group/quantum_driver.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'nova') diff --git a/nova/network/security_group/quantum_driver.py b/nova/network/security_group/quantum_driver.py index aecafe8d1..1c49da5e3 100644 --- a/nova/network/security_group/quantum_driver.py +++ b/nova/network/security_group/quantum_driver.py @@ -101,8 +101,7 @@ class SecurityGroupAPI(security_group_base.SecurityGroupBase): group = quantum.show_security_group(id).get('security_group') except q_exc.QuantumClientException as e: if e.status_code == 404: - LOG.exception(_("Quantum Error getting security group %s"), - name) + LOG.debug(_("Quantum security group %s not found"), name) self.raise_not_found(e.message) else: LOG.error(_("Quantum Error: %s"), e) @@ -237,8 +236,7 @@ class SecurityGroupAPI(security_group_base.SecurityGroupBase): id).get('security_group_rule') except q_exc.QuantumClientException as e: if e.status_code == 404: - LOG.exception(_("Quantum Error getting security group rule " - "%s.") % id) + LOG.debug(_("Quantum security group rule %s not found"), id) self.raise_not_found(e.message) else: LOG.error(_("Quantum Error: %s"), e) -- cgit