Skip to content

Instantly share code, notes, and snippets.

@danehans
Created October 20, 2014 09:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danehans/261bb0bfa6fdf8950c67 to your computer and use it in GitHub Desktop.
Save danehans/261bb0bfa6fdf8950c67 to your computer and use it in GitHub Desktop.
neutron+ml2+linuxbridge+vxlan
# nova console-log --length 25 c1
[ 0.548648] registered taskstats version 1
[ 0.552676] Magic number: 2:648:222
[ 0.553956] rtc_cmos 00:01: setting system clock to 2014-10-20 09:14:33 UTC (1413796473)
[ 0.556218] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[ 0.557804] EDD information not available.
[ 0.654036] Freeing unused kernel memory: 924k freed
[ 0.655666] Write protecting the kernel read-only data: 12288k
[ 0.662412] Freeing unused kernel memory: 1632k freed
[ 0.667950] Freeing unused kernel memory: 1200k freed
info: initramfs: up at 0.67
GROWROOT: CHANGED: partition=1 start=16065 old: size=64260 end=80325 new: size=2072385,end=2088450
info: initramfs loading root from /dev/vda1
info: /etc/init.d/rc.sysinit: up at 1.08
Starting logging: OK
Initializing random number generator... done.
Starting acpid: OK
cirros-ds 'local' up at 1.27
no results found for mode=local. up 1.34. searched: nocloud configdrive ec2
Starting network...
udhcpc (v1.20.1) started
Sending discover...
Sending discover...
Sending discover...
### When I console into the instance and assign a static IP, I am unable to ping the gateway IP or dhcp agent IP. ###
# nova list
+--------------------------------------+------+--------+------------+-------------+--------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+------+--------+------------+-------------+--------------------+
| a239ed6f-06f9-4834-8913-844021f2f62a | c1 | ACTIVE | - | Running | admin-net=10.0.0.5 |
+--------------------------------------+------+--------+------------+-------------+--------------------+
# neutron port-list
+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------------+
| id | name | mac_address | fixed_ips |
+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------------+
| ad94b296-a961-4dac-84dc-49166b31a3d3 | | fa:16:3e:42:e6:84 | {"subnet_id": "65831719-003d-4b64-9076-d3996c275476", "ip_address": "10.0.0.1"} |
| b2debe3d-217f-4b59-87ff-0d5a7185ca20 | | fa:16:3e:8c:8b:1c | {"subnet_id": "f70840df-5410-4db6-970e-1d44f6079bae", "ip_address": "192.168.223.10"} |
| de7cdb53-7dc4-4ba0-b21e-395da203eb27 | | fa:16:3e:f8:47:61 | {"subnet_id": "65831719-003d-4b64-9076-d3996c275476", "ip_address": "10.0.0.5"} |
| f32cac1b-ebfd-4732-89b0-91ad3646e833 | | fa:16:3e:3d:db:7f | {"subnet_id": "65831719-003d-4b64-9076-d3996c275476", "ip_address": "10.0.0.3"} |
+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------------+
# brctl show
bridge name bridge id STP enabled interfaces
brq1df5d89e-ef 8000.1228ffdd33c8 no tapad94b296-a9
tapde7cdb53-7d
tapf32cac1b-eb
vxlan-10
brqc8175b73-30 8000.5ebab19c5b59 no eth1.223
tapb2debe3d-21
# neutron router-port-list admin-router
+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------------+
| id | name | mac_address | fixed_ips |
+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------------+
| ad94b296-a961-4dac-84dc-49166b31a3d3 | | fa:16:3e:42:e6:84 | {"subnet_id": "65831719-003d-4b64-9076-d3996c275476", "ip_address": "10.0.0.1"} |
| b2debe3d-217f-4b59-87ff-0d5a7185ca20 | | fa:16:3e:8c:8b:1c | {"subnet_id": "f70840df-5410-4db6-970e-1d44f6079bae", "ip_address": "192.168.223.10"} |
+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------------+
# ps -ef | grep dhcp
neutron 1179 1 0 09:06 ? 00:00:01 /usr/bin/python /usr/bin/neutron-dhcp-agent --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/dhcp_agent.ini --log-file /var/log/neutron/dhcp-agent.log
nobody 4313 1 0 09:08 ? 00:00:00 /sbin/dnsmasq --no-hosts --no-resolv --strict-order --bind-interfaces --interface=ns-f32cac1b-eb --except-interface=lo --pid-file=/var/lib/neutron/dhcp/1df5d89e-eff6-4348-ae10-24b6aae7f005/pid --dhcp-hostsfile=/var/lib/neutron/dhcp/1df5d89e-eff6-4348-ae10-24b6aae7f005/host --addn-hosts=/var/lib/neutron/dhcp/1df5d89e-eff6-4348-ae10-24b6aae7f005/addn_hosts --dhcp-optsfile=/var/lib/neutron/dhcp/1df5d89e-eff6-4348-ae10-24b6aae7f005/opts --leasefile-ro --dhcp-range=set:tag0,10.0.0.0,static,86400s --dhcp-lease-max=256 --conf-file=/etc/neutron/dnsmasq-neutron.conf --server=8.8.8.8 --domain=example.com
root 5313 4433 0 09:17 pts/0 00:00:00 grep --color=auto dhcp
# neutron net-list
+--------------------------------------+-----------+-------------------------------------------------------+
| id | name | subnets |
+--------------------------------------+-----------+-------------------------------------------------------+
| 1df5d89e-eff6-4348-ae10-24b6aae7f005 | admin-net | 65831719-003d-4b64-9076-d3996c275476 10.0.0.0/24 |
| c8175b73-30df-4d0f-9c01-f959335c1702 | ext223 | f70840df-5410-4db6-970e-1d44f6079bae 192.168.223.0/24 |
+--------------------------------------+-----------+-------------------------------------------------------+
[root@compute-server02 ~(keystone_admin)]# neutron net-show ext223
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | True |
| id | c8175b73-30df-4d0f-9c01-f959335c1702 |
| name | ext223 |
| provider:network_type | flat |
| provider:physical_network | physnet223 |
| provider:segmentation_id | |
| router:external | True |
| shared | False |
| status | ACTIVE |
| subnets | f70840df-5410-4db6-970e-1d44f6079bae |
| tenant_id | 8ecc2b06fe8348fe9d69c2da42c78a5f |
+---------------------------+--------------------------------------+
[root@compute-server02 ~(keystone_admin)]# neutron net-show admin-net
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | True |
| id | 1df5d89e-eff6-4348-ae10-24b6aae7f005 |
| name | admin-net |
| provider:network_type | vxlan |
| provider:physical_network | |
| provider:segmentation_id | 10 |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | 65831719-003d-4b64-9076-d3996c275476 |
| tenant_id | 8ecc2b06fe8348fe9d69c2da42c78a5f |
+---------------------------+--------------------------------------+
# lsmod | grep vxlan
vxlan 37333 1 openvswitch
# uname -r
3.16.3-200.fc20.x86_64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment