Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AC875E790 for ; Thu, 24 Jan 2013 12:53:15 +0000 (UTC) Received: (qmail 35437 invoked by uid 500); 24 Jan 2013 12:53:14 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 35348 invoked by uid 500); 24 Jan 2013 12:53:14 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 35280 invoked by uid 99); 24 Jan 2013 12:53:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jan 2013 12:53:12 +0000 Date: Thu, 24 Jan 2013 12:53:12 +0000 (UTC) From: "Noa Resare (JIRA)" To: cloudstack-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CLOUDSTACK-1052) security_group.py broken add_network_rules() exception handling hides all errors MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Noa Resare created CLOUDSTACK-1052: -------------------------------------- Summary: security_group.py broken add_network_rules() exception handling hides all errors Key: CLOUDSTACK-1052 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1052 Project: CloudStack Issue Type: Bug Security Level: Public (Anyone can view this level - this is the default.) Reporter: Noa Resare Priority: Minor Line 695 in version 6f29317 of security_group.py hides all possible errors in the add_network_rules() function due to a unfortunate attempt to concatenate a str with type. In principle one could have lots of objections to that code. Why only log on debug level debug, when there was an unexpected error? The english in the error message doesn't really parse. Personally I would prefer removing it altogether. If we want to log all exceptions via the logging framework instead of leaving that responsibility to the caller a generic catch all in the last block of the file that logs everything that no one else catches properly would be a better option. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira