diff options
| author | Stanislaw Pitucha <stanislaw.pitucha@hp.com> | 2013-04-09 14:41:09 +0100 |
|---|---|---|
| committer | Stanislaw Pitucha <stanislaw.pitucha@hp.com> | 2013-04-09 14:41:09 +0100 |
| commit | 7d14d024f0d92cd6f9596596cdcaf3d870ba1839 (patch) | |
| tree | 7fa5ecb627a3f8a6384035c29d258010ab61a0f3 | |
| parent | 05f5106c198a596f22adadab1ddf6929ab9c247a (diff) | |
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
| -rw-r--r-- | nova/network/security_group/quantum_driver.py | 6 |
1 files changed, 2 insertions, 4 deletions
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) |
