SlideShare a Scribd company logo
Neutron Network
Namespaces and
IPtables: Technical
deep dive
Damian Igbe
Technical Instructor & Consultant
© MIRANTIS 2013

PAGE 1
Presentation Outline

• Introduction to Neutron & Neutron Namespaces
• Deep Dive
• Conclusions

© MIRANTIS 2013

PAGE 2
What are Namespaces
• Namespaces enables multiple instances of a
routing table to co-exist within the same Linux
box
• Network namespaces make it possible to
separate network domains (network interfaces,
routing tables, iptables) into completely
separate and independent domains.

© MIRANTIS 2013

PAGE 3
Namespaces Diagram

© MIRANTIS 2013

PAGE 4
Namespaces Advantages
• Overlapping IPs: A big advantage of namespaces
implementation in neutron is that tenants can
create overlapping IP addresses, a situation that
gives freedom to cloud users because they are
free to create any subnet of choice without fear of
conflicting with that of another tenant. Linux
network namespace is required on nodes running
neutron-l3-agent or neutron-dhcp-agent if
overlapping IPs is in use. Hence the hosts running
these processes must support network
namespaces.
© MIRANTIS 2013

PAGE 5
Namespaces Advantages
L3 Agent: The neutron-l3-agent is designed to
use network namespaces to provide multiple
independent virtual routers per node, that do
not interfere with each other or with routing of
the compute node on which they are hosted

© MIRANTIS 2013

PAGE 6
What if Namespaces NOT supported?
If the kernel does not support namespaces, the following limitations should be
noted with Neutron:
• Neutron-l3-agent is limited to providing a single virtual router per compute
node. If namespaces is supported, a single deployed neutron-l3-agent should
be able to host multiple virtual routers.
• It is necessary to configure each neutron-l3-agent with the Universally Unique
ID (UUID) identifying the router instance that it hosts. This complicates
deployment, makes self-service provisioning of routers by tenants impractical.
If namespaces is supported, the configuration with the UUID(s) of the router(s)
it hosts is not required.
•If the host does not support namespaces then the neutron-l3-agent and
neutron-dhcp-agent should be run on different hosts. This is due to the fact that
there is no isolation between the IP addresses created by the L3 agent and by
the DHCP agent. A downside to this is that by manipulating the routing tables
the user can ensure that these networks have access to one another.

© MIRANTIS 2013

PAGE 7
Recognizing Namespaces
• Every l2-agent/private network has an
associated dhcp namespace and
• Every l3-agent/router has an associated
router namespace.

© MIRANTIS 2013

PAGE 8
Multinode Network Topology

© MIRANTIS 2013

PAGE 9
Ref. Architecture
• Multinode Grizzy on Ubuntu 12.04

• libvirt/QEMU,
• LibvirtHybridOVSBridgeDriver vif driver,
• Quantum security groups,
• Open vSwitch Neutron/Quantum plugin using
• GRE
• dnsmasq
• IP namespaces enabled
© MIRANTIS 2013

PAGE 10
Tenant 1 Network

© MIRANTIS 2013

PAGE 11
Tenant 2 Network

© MIRANTIS 2013

PAGE 12
Multinode Network Topology

© MIRANTIS 2013

PAGE 13
On The Compute Node

© MIRANTIS 2013

PAGE 14
On The Net Node

© MIRANTIS 2013

PAGE 15
Net Namespaces

© MIRANTIS 2013

PAGE 16
Illustration

© MIRANTIS 2013

PAGE 17
Showing Net & Compute Node

© MIRANTIS 2013

PAGE 18
Troubleshooting
Let us summarize the troubleshooting steps into
2:
STEP1: Identify the correct namespace
STEP2: Perform general troubleshooting around
the identified namespace

© MIRANTIS 2013

PAGE 19
Problem

Have spin off an instance and it has an IP
address from Horizon but cannot ssh
(probabely because the interface has no
assigned IP) to it so can only view from VNC

© MIRANTIS 2013

PAGE 20
Detailed Troubleshooting
steps for this Problem
•Ensure that dnsmasq process is running:
# pgrep -fl dnsmasq ( restart the quantum-dhcp-agent if not).
• verify the IP address in the namespace, if dnsmasq is running:
# ip netns [list].
•Identify the qdhcp-network <networkUUID> namespace:
# ip netns exec qdhcp-<networkUUID> ip
From the output, ensure that the IP on the interface is present and matches the one
present for dnsmasq. To verify what the expected IP address is, use quantum-port-list
and quantum port-show <portUUID>.
•Determine the leases
# /var/lib/quantum/dhcp/<networkUUID>/host
Note:
•If the dnsmasq configuration is correct, but dnsmasq is not responding with
leases and the bridge/interface is created and running, pkill dnsmasq and restart
quantum-dhcp-agent.
•If dnsmasq does not include the correct leases, verify that quantum-server is
running correctly and that it can communicate with dhcp-agent. If it is running
correctly, and the bridge/interface is created and running, restart quantum-dhcpagent.
© MIRANTIS 2013
PAGE 21
Network Node:
• root@vmnet-mn:~# ovs-vsctl show

• root@vmnet-mn:/# ovs-ofctl dump-flows br-tun
The DHCP agent
• The DHCP agent is configured to use OVS and
dnsmasq:
root@vmnet-mn:/# grep -v '^#|^s*$'
/etc/quantum/dhcp_agent.ini
© MIRANTIS 2013

PAGE 22
Network Node Cont.
• root@vmnet-mn:~#pgrep –fl dnsmasq

• root@vmnet-mn:/# ip netns | grep dhcp
root@vmnet-mn:/# ip netns exec qdhcp-eeeee
ifconfig
• root@vmnet-mn:/# ip netns exec qdhcp6b71dbb8-e91c-47f0-92c4-47882007115d ping
ip

© MIRANTIS 2013

PAGE 23
Network Node
• root@vmnet-mn:/# cat /var/lib/quantum/dhcp/e0fe9037-790a-4cb-9bf44b06f0cfcf5c/host
Note that:
• Dnsmasq logs to /var/log/syslog in this Ubuntu installation.

© MIRANTIS 2013

PAGE 24
Compute Node
• root@vmcom1-mn :/# ip link

• root@vmcom1-mn :/# brctl show
• root@vmcom1-mn :/# ovs-vsctl show
• root@vmcom1-mn :/# ovs-ofctl dump-flows brtun
• root@vmcom1-mn :/# iptables-save

© MIRANTIS 2013

PAGE 25
Compute Node
• root@vmcom1-mn :/# tcpdump -n -i eth2

© MIRANTIS 2013

PAGE 26
Controller Node
• damian@vmcon-mn:/$ quantum net-show net1

• damian@vmcon-mn:/$ quantum subnet-show
ad970f3f-4ceb-4565-b897-1cd0fe34cd5b
• damian@vmcon-mn:/$ nova boot --flavor micro
--image cirros-030-x86_64  --nic netid=6b71dbb8-e91c-47f0-92c4-47882007115d  -security-groups test-vms test-instance1

• damian@vmcon-mn:/$ nova list
© MIRANTIS 2013

PAGE 27
Controller Node
• damian@vmcon-mn:/$ quantum port-list -device_id=44e362ba-e8a4-4bae-b0ea5477666632c9
• damian@vmcon-mn:/$ quantum port-show
9a41d8fa-a745-4411-b9f8-daa182f38527

© MIRANTIS 2013

PAGE 28
CONCLUSIONS

QUESTIONS
AND

ANSWERS

© MIRANTIS 2013

PAGE 29
Note
• When a router or network is created, the
namespaces don’t get created immediately. For
network, the DHCP namespaces get created only
when a vm is attached and for router the
namespace is created when a gateway is set. It
means that an activity must take place before the
namespaces get created.
• When a router or network is deleted, the
associated namespaces are not deleted. They
need to be manually deleted.
© MIRANTIS 2013

PAGE 30

More Related Content

PDF
Максим Барышиков-«WoT: Geographically distributed cluster of clusters»
PDF
Anatomy of neutron from the eagle eyes of troubelshoorters
PPTX
Commication Framework in OpenStack
PPTX
DCUS17 : Docker networking deep dive
PPTX
How to Troubleshoot OpenStack Without Losing Sleep
PDF
Docker Meetup: Docker Networking 1.11, by Madhu Venugopal
ODP
Testing Wi-Fi with OSS Tools
PDF
Container Orchestration from Theory to Practice
Максим Барышиков-«WoT: Geographically distributed cluster of clusters»
Anatomy of neutron from the eagle eyes of troubelshoorters
Commication Framework in OpenStack
DCUS17 : Docker networking deep dive
How to Troubleshoot OpenStack Without Losing Sleep
Docker Meetup: Docker Networking 1.11, by Madhu Venugopal
Testing Wi-Fi with OSS Tools
Container Orchestration from Theory to Practice

What's hot (19)

PDF
Small, Simple, and Secure: Alpine Linux under the Microscope
PDF
[En] IPVS for Docker Containers
PDF
Breaking the RpiDocker challenge
PPTX
Docker summit : Docker Networking Control-plane & Data-Plane
PPT
Docker Multi Host Networking, Rachit Arora, IBM
PPTX
Multi tier-app-network-topology-neutron-final
PDF
Leveraging the Power of containerd Events - Evan Hazlett
PPTX
Docker Networking & Swarm Mode Introduction
PDF
Kubernetes Networking - Giragadurai Vallirajan
PDF
Docker 1.12 networking deep dive
PPTX
DockerCon US 2016 - Docker Networking deep dive
PDF
Microservices with Micronaut
PDF
LXC on Ganeti
PDF
Kubernetes Networking
PDF
Container Performance Analysis
PDF
Debugging Network Issues
PPTX
Docker Networking in OpenStack: What you need to know now
PPTX
[오픈소스컨설팅] Linux Network Troubleshooting
PDF
Kubernetes Networking
Small, Simple, and Secure: Alpine Linux under the Microscope
[En] IPVS for Docker Containers
Breaking the RpiDocker challenge
Docker summit : Docker Networking Control-plane & Data-Plane
Docker Multi Host Networking, Rachit Arora, IBM
Multi tier-app-network-topology-neutron-final
Leveraging the Power of containerd Events - Evan Hazlett
Docker Networking & Swarm Mode Introduction
Kubernetes Networking - Giragadurai Vallirajan
Docker 1.12 networking deep dive
DockerCon US 2016 - Docker Networking deep dive
Microservices with Micronaut
LXC on Ganeti
Kubernetes Networking
Container Performance Analysis
Debugging Network Issues
Docker Networking in OpenStack: What you need to know now
[오픈소스컨설팅] Linux Network Troubleshooting
Kubernetes Networking
Ad

Viewers also liked (20)

PDF
OpenStack Neutron Tutorial
PDF
Inside Architecture of Neutron
ODP
Networking in OpenStack for non-networking people: Neutron, Open vSwitch and ...
PPTX
Modular Layer 2 In OpenStack Neutron
PDF
Inside neutron 2
PDF
OpenStack Architecture
PPTX
OpenStack Quantum Intro (OS Meetup 3-26-12)
PDF
2 Day Bootcamp for OpenStack--Cloud Training by Mirantis (Preview)
PDF
Automating OpenStack Deployment with Fuel
PPTX
How to write a Neutron Plugin - if you really need to
PPTX
Openstack Basic with Neutron
PDF
OpenStack Super Bootcamp.pdf
PDF
Openstack Summit Container Day Keynote
PPTX
Turning Containers into Cattle
PPTX
Managing Container Clusters in OpenStack Native Way
PDF
Webinar container management in OpenStack
PPTX
Cloud init and cloud provisioning [openstack summit vancouver]
PPTX
How to Monitor Application Performance in a Container-Based World
PDF
Open Container Technologies and OpenStack - Sorting Through Kubernetes, the O...
PPTX
Architecting Ceph Solutions
OpenStack Neutron Tutorial
Inside Architecture of Neutron
Networking in OpenStack for non-networking people: Neutron, Open vSwitch and ...
Modular Layer 2 In OpenStack Neutron
Inside neutron 2
OpenStack Architecture
OpenStack Quantum Intro (OS Meetup 3-26-12)
2 Day Bootcamp for OpenStack--Cloud Training by Mirantis (Preview)
Automating OpenStack Deployment with Fuel
How to write a Neutron Plugin - if you really need to
Openstack Basic with Neutron
OpenStack Super Bootcamp.pdf
Openstack Summit Container Day Keynote
Turning Containers into Cattle
Managing Container Clusters in OpenStack Native Way
Webinar container management in OpenStack
Cloud init and cloud provisioning [openstack summit vancouver]
How to Monitor Application Performance in a Container-Based World
Open Container Technologies and OpenStack - Sorting Through Kubernetes, the O...
Architecting Ceph Solutions
Ad

Similar to Neutron Network Namespaces and IPtables--A Technical Deep Dive (20)

PPTX
Neutron behind the scenes
PPTX
Couch to OpenStack: Neutron (Quantum) - August 13, 2013 Featuring Sean Winn
PDF
Openstack Networking Internals - first part
PPTX
Manchester OpenStack Meetup: I have an OpenStack Cloud, now what? OpenStack 101
PDF
Weird things we've seen with OpenStack Neutron
PPTX
OpenStack: Virtual Routers On Compute Nodes
PPTX
OpenStack Quantum
PDF
Agile OpenStack Networking with Cisco Solutions
PDF
Routed networks sydney
PPTX
Troubleshooting Tracebacks
PDF
Open stack networking_101_part-2_tech_deep_dive
PPTX
Addressing DHCP and DNS scalability issues in OpenStack Neutron
PPTX
DevOops - Lessons Learned from an OpenStack Network Architect
PDF
Integration of neutron, nova and designate how to use it and how to configur...
PDF
Openstack Networking and ML2
PDF
Network as a Service, Assaf Muller
PDF
Introduction to Software Defined Networking and OpenStack Neutron
PDF
Open stack networking_101_part-1
PPTX
Neutron DVR
PPTX
BRKDCT-2445 Agile OpenStack Networking with Cisco Solutions - Cisco Live! US ...
Neutron behind the scenes
Couch to OpenStack: Neutron (Quantum) - August 13, 2013 Featuring Sean Winn
Openstack Networking Internals - first part
Manchester OpenStack Meetup: I have an OpenStack Cloud, now what? OpenStack 101
Weird things we've seen with OpenStack Neutron
OpenStack: Virtual Routers On Compute Nodes
OpenStack Quantum
Agile OpenStack Networking with Cisco Solutions
Routed networks sydney
Troubleshooting Tracebacks
Open stack networking_101_part-2_tech_deep_dive
Addressing DHCP and DNS scalability issues in OpenStack Neutron
DevOops - Lessons Learned from an OpenStack Network Architect
Integration of neutron, nova and designate how to use it and how to configur...
Openstack Networking and ML2
Network as a Service, Assaf Muller
Introduction to Software Defined Networking and OpenStack Neutron
Open stack networking_101_part-1
Neutron DVR
BRKDCT-2445 Agile OpenStack Networking with Cisco Solutions - Cisco Live! US ...

More from Mirantis (20)

PDF
How to Accelerate Your Application Delivery Process on Top of Kubernetes Usin...
PDF
Kubernetes Security Workshop
PDF
Using Kubernetes to make cellular data plans cheaper for 50M users
PDF
How to Build a Basic Edge Cloud
PDF
Securing Your Containers is Not Enough: How to Encrypt Container Data
PDF
What's New in Kubernetes 1.18 Webinar Slides
PDF
Comparison of Current Service Mesh Architectures
PDF
Your Application Deserves Better than Kubernetes Ingress: Istio vs. Kubernetes
PDF
Demystifying Cloud Security Compliance
PDF
Mirantis life
PDF
OpenStack and the IoT: Where we are, where we're going, what we need to get t...
PDF
Boris Renski: OpenStack Summit Keynote Austin 2016
PPTX
Digital Disciplines: Attaining Market Leadership through the Cloud
PPTX
Decomposing Lithium's Monolith with Kubernetes and OpenStack
PPTX
OpenStack: Changing the Face of Service Delivery
PPTX
Accelerating the Next 10,000 Clouds
PPTX
Containers for the Enterprise: It's Not That Simple
PPTX
Protecting Yourself from the Container Shakeout
PPTX
It's Not the Technology, It's You
PDF
OpenStack as the Platform for Innovation
How to Accelerate Your Application Delivery Process on Top of Kubernetes Usin...
Kubernetes Security Workshop
Using Kubernetes to make cellular data plans cheaper for 50M users
How to Build a Basic Edge Cloud
Securing Your Containers is Not Enough: How to Encrypt Container Data
What's New in Kubernetes 1.18 Webinar Slides
Comparison of Current Service Mesh Architectures
Your Application Deserves Better than Kubernetes Ingress: Istio vs. Kubernetes
Demystifying Cloud Security Compliance
Mirantis life
OpenStack and the IoT: Where we are, where we're going, what we need to get t...
Boris Renski: OpenStack Summit Keynote Austin 2016
Digital Disciplines: Attaining Market Leadership through the Cloud
Decomposing Lithium's Monolith with Kubernetes and OpenStack
OpenStack: Changing the Face of Service Delivery
Accelerating the Next 10,000 Clouds
Containers for the Enterprise: It's Not That Simple
Protecting Yourself from the Container Shakeout
It's Not the Technology, It's You
OpenStack as the Platform for Innovation

Recently uploaded (20)

PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
cuic standard and advanced reporting.pdf
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Machine learning based COVID-19 study performance prediction
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Electronic commerce courselecture one. Pdf
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Cloud computing and distributed systems.
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Encapsulation theory and applications.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Digital-Transformation-Roadmap-for-Companies.pptx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Reach Out and Touch Someone: Haptics and Empathic Computing
The Rise and Fall of 3GPP – Time for a Sabbatical?
Chapter 3 Spatial Domain Image Processing.pdf
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
cuic standard and advanced reporting.pdf
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Machine learning based COVID-19 study performance prediction
NewMind AI Weekly Chronicles - August'25 Week I
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Electronic commerce courselecture one. Pdf
NewMind AI Monthly Chronicles - July 2025
Review of recent advances in non-invasive hemoglobin estimation
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Cloud computing and distributed systems.
Encapsulation_ Review paper, used for researhc scholars
Spectral efficient network and resource selection model in 5G networks
Encapsulation theory and applications.pdf

Neutron Network Namespaces and IPtables--A Technical Deep Dive

  • 1. Neutron Network Namespaces and IPtables: Technical deep dive Damian Igbe Technical Instructor & Consultant © MIRANTIS 2013 PAGE 1
  • 2. Presentation Outline • Introduction to Neutron & Neutron Namespaces • Deep Dive • Conclusions © MIRANTIS 2013 PAGE 2
  • 3. What are Namespaces • Namespaces enables multiple instances of a routing table to co-exist within the same Linux box • Network namespaces make it possible to separate network domains (network interfaces, routing tables, iptables) into completely separate and independent domains. © MIRANTIS 2013 PAGE 3
  • 5. Namespaces Advantages • Overlapping IPs: A big advantage of namespaces implementation in neutron is that tenants can create overlapping IP addresses, a situation that gives freedom to cloud users because they are free to create any subnet of choice without fear of conflicting with that of another tenant. Linux network namespace is required on nodes running neutron-l3-agent or neutron-dhcp-agent if overlapping IPs is in use. Hence the hosts running these processes must support network namespaces. © MIRANTIS 2013 PAGE 5
  • 6. Namespaces Advantages L3 Agent: The neutron-l3-agent is designed to use network namespaces to provide multiple independent virtual routers per node, that do not interfere with each other or with routing of the compute node on which they are hosted © MIRANTIS 2013 PAGE 6
  • 7. What if Namespaces NOT supported? If the kernel does not support namespaces, the following limitations should be noted with Neutron: • Neutron-l3-agent is limited to providing a single virtual router per compute node. If namespaces is supported, a single deployed neutron-l3-agent should be able to host multiple virtual routers. • It is necessary to configure each neutron-l3-agent with the Universally Unique ID (UUID) identifying the router instance that it hosts. This complicates deployment, makes self-service provisioning of routers by tenants impractical. If namespaces is supported, the configuration with the UUID(s) of the router(s) it hosts is not required. •If the host does not support namespaces then the neutron-l3-agent and neutron-dhcp-agent should be run on different hosts. This is due to the fact that there is no isolation between the IP addresses created by the L3 agent and by the DHCP agent. A downside to this is that by manipulating the routing tables the user can ensure that these networks have access to one another. © MIRANTIS 2013 PAGE 7
  • 8. Recognizing Namespaces • Every l2-agent/private network has an associated dhcp namespace and • Every l3-agent/router has an associated router namespace. © MIRANTIS 2013 PAGE 8
  • 9. Multinode Network Topology © MIRANTIS 2013 PAGE 9
  • 10. Ref. Architecture • Multinode Grizzy on Ubuntu 12.04 • libvirt/QEMU, • LibvirtHybridOVSBridgeDriver vif driver, • Quantum security groups, • Open vSwitch Neutron/Quantum plugin using • GRE • dnsmasq • IP namespaces enabled © MIRANTIS 2013 PAGE 10
  • 11. Tenant 1 Network © MIRANTIS 2013 PAGE 11
  • 12. Tenant 2 Network © MIRANTIS 2013 PAGE 12
  • 13. Multinode Network Topology © MIRANTIS 2013 PAGE 13
  • 14. On The Compute Node © MIRANTIS 2013 PAGE 14
  • 15. On The Net Node © MIRANTIS 2013 PAGE 15
  • 18. Showing Net & Compute Node © MIRANTIS 2013 PAGE 18
  • 19. Troubleshooting Let us summarize the troubleshooting steps into 2: STEP1: Identify the correct namespace STEP2: Perform general troubleshooting around the identified namespace © MIRANTIS 2013 PAGE 19
  • 20. Problem Have spin off an instance and it has an IP address from Horizon but cannot ssh (probabely because the interface has no assigned IP) to it so can only view from VNC © MIRANTIS 2013 PAGE 20
  • 21. Detailed Troubleshooting steps for this Problem •Ensure that dnsmasq process is running: # pgrep -fl dnsmasq ( restart the quantum-dhcp-agent if not). • verify the IP address in the namespace, if dnsmasq is running: # ip netns [list]. •Identify the qdhcp-network <networkUUID> namespace: # ip netns exec qdhcp-<networkUUID> ip From the output, ensure that the IP on the interface is present and matches the one present for dnsmasq. To verify what the expected IP address is, use quantum-port-list and quantum port-show <portUUID>. •Determine the leases # /var/lib/quantum/dhcp/<networkUUID>/host Note: •If the dnsmasq configuration is correct, but dnsmasq is not responding with leases and the bridge/interface is created and running, pkill dnsmasq and restart quantum-dhcp-agent. •If dnsmasq does not include the correct leases, verify that quantum-server is running correctly and that it can communicate with dhcp-agent. If it is running correctly, and the bridge/interface is created and running, restart quantum-dhcpagent. © MIRANTIS 2013 PAGE 21
  • 22. Network Node: • root@vmnet-mn:~# ovs-vsctl show • root@vmnet-mn:/# ovs-ofctl dump-flows br-tun The DHCP agent • The DHCP agent is configured to use OVS and dnsmasq: root@vmnet-mn:/# grep -v '^#|^s*$' /etc/quantum/dhcp_agent.ini © MIRANTIS 2013 PAGE 22
  • 23. Network Node Cont. • root@vmnet-mn:~#pgrep –fl dnsmasq • root@vmnet-mn:/# ip netns | grep dhcp root@vmnet-mn:/# ip netns exec qdhcp-eeeee ifconfig • root@vmnet-mn:/# ip netns exec qdhcp6b71dbb8-e91c-47f0-92c4-47882007115d ping ip © MIRANTIS 2013 PAGE 23
  • 24. Network Node • root@vmnet-mn:/# cat /var/lib/quantum/dhcp/e0fe9037-790a-4cb-9bf44b06f0cfcf5c/host Note that: • Dnsmasq logs to /var/log/syslog in this Ubuntu installation. © MIRANTIS 2013 PAGE 24
  • 25. Compute Node • root@vmcom1-mn :/# ip link • root@vmcom1-mn :/# brctl show • root@vmcom1-mn :/# ovs-vsctl show • root@vmcom1-mn :/# ovs-ofctl dump-flows brtun • root@vmcom1-mn :/# iptables-save © MIRANTIS 2013 PAGE 25
  • 26. Compute Node • root@vmcom1-mn :/# tcpdump -n -i eth2 © MIRANTIS 2013 PAGE 26
  • 27. Controller Node • damian@vmcon-mn:/$ quantum net-show net1 • damian@vmcon-mn:/$ quantum subnet-show ad970f3f-4ceb-4565-b897-1cd0fe34cd5b • damian@vmcon-mn:/$ nova boot --flavor micro --image cirros-030-x86_64 --nic netid=6b71dbb8-e91c-47f0-92c4-47882007115d -security-groups test-vms test-instance1 • damian@vmcon-mn:/$ nova list © MIRANTIS 2013 PAGE 27
  • 28. Controller Node • damian@vmcon-mn:/$ quantum port-list -device_id=44e362ba-e8a4-4bae-b0ea5477666632c9 • damian@vmcon-mn:/$ quantum port-show 9a41d8fa-a745-4411-b9f8-daa182f38527 © MIRANTIS 2013 PAGE 28
  • 30. Note • When a router or network is created, the namespaces don’t get created immediately. For network, the DHCP namespaces get created only when a vm is attached and for router the namespace is created when a gateway is set. It means that an activity must take place before the namespaces get created. • When a router or network is deleted, the associated namespaces are not deleted. They need to be manually deleted. © MIRANTIS 2013 PAGE 30