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

Bryn M. Reeves bmr at redhat.com
Tue Nov 25 11:57:13 UTC 2014


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