[sos-devel] [PATCH] [plugins/openstack_neutron] Add netns dumps for DVR namespaces

Ma, Stephen B. stephen.ma at hp.com
Thu Nov 27 00:18:48 UTC 2014


Hi Bryn,

Yes when the fip and the snat namespace are present in a system, we are looking at a neutron configuration with neutron DVR enabled.  I hope I answered your question. 

-----Original Message-----
From: Bryn M. Reeves [mailto:bmr at redhat.com] 
Sent: Tuesday, November 25, 2014 3:57 AM
To: Stephen Ma
Cc: sos-devel at redhat.com; Ma, Stephen B.
Subject: Re: [sos-devel] [PATCH] [plugins/openstack_neutron] Add netns dumps for DVR namespaces

On Fri, Nov 21, 2014 at 11:06:18PM -0800, Stephen Ma wrote:
> The Neutron's Distributed Virtual Router (DVR) create new namespaces 
> (fip-<ext-net-id> and snat-<router-id> namespaces). This patch add 
> these namespaces to the namespace info dump.
> 
> Signed-off-by: Stephen Ma <stephen.ma at hp.com>
> ---
>  sos/plugins/openstack_neutron.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/sos/plugins/openstack_neutron.py 
> b/sos/plugins/openstack_neutron.py
> index dba192e..44768ce 100644
> --- a/sos/plugins/openstack_neutron.py
> +++ b/sos/plugins/openstack_neutron.py
> @@ -58,7 +58,7 @@ class Neutron(Plugin):
>          # plugin to run in different namespaces. There are a couple of options
>          # in the short term: create a local instance and "borrow" some of the
>          # functionality, or simply copy some of the functionality.
> -        prefixes = ["qdhcp", "qrouter"]
> +        prefixes = ["qdhcp", "qrouter", "fip", "snat"]

Are these prefixes totally private to Neutron/DVR? I.e. we're not going to trip over ourselves by assuming that if "fip" and "snat"
are there that we're looking at a DVR configuration?

It doesn't really affect the current patch but it would be useful information to help inform future changes (e.g. right now the Neutron plugin runs unconditionally - even on hosts with none of the OpenStack components installed).

Regards,
Bryn.





More information about the sos-devel mailing list