diff options
| author | Dan Prince <dprince@redhat.com> | 2012-04-02 13:01:42 -0400 |
|---|---|---|
| committer | Dan Prince <dprince@redhat.com> | 2012-04-19 08:05:13 -0700 |
| commit | b22f17cd09c8fa0447503b7a5a84477d0a943d18 (patch) | |
| tree | ae5dfdaf10217d8f3d28e923f56cce37de909d8e | |
| parent | ab7e5907ff0fdad759d5e00a351c757c1e5de452 (diff) | |
| download | nova-b22f17cd09c8fa0447503b7a5a84477d0a943d18.tar.gz nova-b22f17cd09c8fa0447503b7a5a84477d0a943d18.tar.xz nova-b22f17cd09c8fa0447503b7a5a84477d0a943d18.zip | |
Logging updates in IptablesFirewallDriver.
Update IptablesFirewallDriver so that it uses the debug log channel
when logging specifics about each firewall rule.
Fixes LP Bug #969545.
Change-Id: Ie50a3607fff17f032d577af8a87d5f4582bcc919
| -rw-r--r-- | nova/virt/firewall.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nova/virt/firewall.py b/nova/virt/firewall.py index 3f5333427..af13a5817 100644 --- a/nova/virt/firewall.py +++ b/nova/virt/firewall.py @@ -313,7 +313,7 @@ class IptablesFirewallDriver(FirewallDriver): elif protocol == 'icmp': args += self._build_icmp_rule(rule, version) if rule.cidr: - LOG.info('Using cidr %r', rule.cidr) + LOG.debug('Using cidr %r', rule.cidr) args += ['-s', rule.cidr] fw_rules += [' '.join(args)] else: @@ -326,7 +326,7 @@ class IptablesFirewallDriver(FirewallDriver): import nova.network nw_api = nova.network.API() for instance in rule['grantee_group']['instances']: - LOG.info('instance: %r', instance) + LOG.debug('instance: %r', instance) nw_info = nw_api.get_instance_nw_info(ctxt, instance) @@ -334,12 +334,12 @@ class IptablesFirewallDriver(FirewallDriver): for ip in nw_info.fixed_ips() if ip['version'] == version] - LOG.info('ips: %r', ips) + LOG.debug('ips: %r', ips) for ip in ips: subrule = args + ['-s %s' % ip] fw_rules += [' '.join(subrule)] - LOG.info('Using fw_rules: %r', fw_rules) + LOG.debug('Using fw_rules: %r', fw_rules) ipv4_rules += ['-j $sg-fallback'] ipv6_rules += ['-j $sg-fallback'] |
