ML2 plugin with gre tunnel_type is unable to use provider extension options
Bug #1202244 reported by
Mathieu Rohon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
High
|
Mathieu Rohon |
Bug Description
my localrc has the options :
ENABLE_
TENANT_
Q_PLUGIN=ml2
Q_AGENT_
but when we want to set a provider network out of the range, it doesn't work :
neutron net-create net-gre1 --tenant-id 50ef18c194a9460
Unable to create the network. No tenant network is available for allocation.
it tries to allocate a tenant network, when a provider network is asked.
tags: | added: ml2 |
Changed in neutron: | |
assignee: | nobody → Henry Gessau (gessau) |
milestone: | none → havana-3 |
assignee: | Henry Gessau (gessau) → Mathieu Rohon (mathieu-rohon) |
Changed in neutron: | |
assignee: | Mathieu Rohon (mathieu-rohon) → Mark McClain (markmcclain) |
Changed in neutron: | |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | havana-3 → 2013.2 |
no longer affects: | neutron/havana |
To post a comment you must log in.
It looks like the segmentation_id is being completely ignored when network_type is set to gre:
$ OS_USERNAME=admin neutron net-create --tenant-id demo net-gre --provider: network_ type gre --provider: segmentation_ id 7 ------- ------- ------- +------ ------- ------- ------- ------- ----+ ------- ------- ------- +------ ------- ------- ------- ------- ----+ 38db-4e29- 931b-728dbb9b43 55 | network_ type | gre | physical_ network | | segmentation_ id | 5 | ------- ------- ------- +------ ------- ------- ------- ------- ----+
Created a new network:
+------
| Field | Value |
+------
| admin_state_up | True |
| id | 6e6bdd98-
| name | net-gre |
| provider:
| provider:
| provider:
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | demo |
+------
Even stranger, it looks like the tenant_network_type is used when vlan is specified:
$ OS_USERNAME=admin neutron net-create --tenant-id demo net-vxlan --provider: network_ type vxlan --provider: segmentation_ id 123456 ------- ------- ------- +------ ------- ------- ------- ------- ----+ ------- ------- ------- +------ ------- ------- ------- ------- ----+ dbdd-4f50- 9c75-685beaf218 c4 | network_ type | gre | physical_ network | | segmentation_ id | 6 | ------- ------- ------- +------ ------- ------- ------- ------- ----+
Created a new network:
+------
| Field | Value |
+------
| admin_state_up | True |
| id | 71f630f3-
| name | net-vxlan |
| provider:
| provider:
| provider:
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | demo |
+------
But specifying a vlan works as expected:
$ OS_USERNAME=admin neutron net-create --tenant-id demo net-vlan --provider: network_ type vlan --provider: physical_ network physnet1 --provider: segmentation_ id 1234 ------- ------- ------- +------ ------- ------- ------- ------- ----+ ------- ------- ------- +------ ------- ------- ------- ------- ----+ 47d2-4850- bbf2-e6b3119e35 67 |
Created a new network:
+------
| Field | Value |
+------
| admin_state_up | True |
| id | d5debfa4-
| name | net-vlan |
| pro...