[Openstack] Routed provider networks

Kevin Benton kevin at benton.pub
Sun Jun 18 17:37:07 UTC 2017


Cool. I also filed a bug against the openstack client to provide a better
error message:
https://bugs.launchpad.net/python-openstackclient/+bug/1698668

On Sun, Jun 18, 2017 at 9:20 AM, Alex Evonosky <alex.evonosky at gmail.com>
wrote:

> Kevin-
>
> you nailed it:
>
>
> openstack network create --share --provider-physical-network provider1
> --provider-network-type vlan --provider-segment 2016 multisegment1
> +---------------------------+--------------------------------------+
> | Field                     | Value                                |
> +---------------------------+--------------------------------------+
> | admin_state_up            | UP                                   |
> | availability_zone_hints   |                                      |
> | availability_zones        |                                      |
> | created_at                | 2017-06-18T16:19:33Z                 |
> | description               |                                      |
> | dns_domain                | None                                 |
> | id                        | d607c5db-cd30-4e60-8ba9-d84f82a1e6bd |
> | ipv4_address_scope        | None                                 |
> | ipv6_address_scope        | None                                 |
> | is_default                | None                                 |
> | mtu                       | 1500                                 |
> | name                      | multisegment1                        |
> | port_security_enabled     | True                                 |
> | project_id                | 664dc5e6023140eca0faeb2d0ecc31c2     |
> | provider:network_type     | vlan                                 |
> | provider:physical_network | provider1                            |
> | provider:segmentation_id  | 2016                                 |
> | qos_policy_id             | None                                 |
> | revision_number           | 3                                    |
> | router:external           | Internal                             |
> | segments                  | None                                 |
> | shared                    | True                                 |
> | status                    | ACTIVE                               |
> | subnets                   |                                      |
> | updated_at                | 2017-06-18T16:19:33Z                 |
> +---------------------------+--------------------------------------+
>
>
> Thank you for helping on a Sunday!
>
>
>
> On Sun, Jun 18, 2017 at 12:16 PM, Remo Mattei <Remo at italy1.com> wrote:
>
>> Its not going to be there.. you need to look into the plugins directory.
>>
>>
>>  grep provider *
>> ml2_conf.ini:# Default network type for external networks when no
>> provider attributes are
>> ml2_conf.ini:# specified. By default it is None, which means that if
>> provider attributes are
>> ml2_conf.ini:# specifying physical_network names usable for VLAN provider
>> and tenant
>>
>>
>>
>>
>> On Jun 18, 2017, at 9:13 AM, Alex Evonosky <alex.evonosky at gmail.com>
>> wrote:
>>
>> Thank you Kevin,
>>
>> In the /etc/neutron/neutron.conf file, there is no [ml2_type_vlan]
>> section under ocata.  Do I need to add this section in?
>>
>> Thank you.
>>
>> On Sun, Jun 18, 2017 at 12:08 PM, Kevin Benton <kevin at benton.pub> wrote:
>>
>>> Ok. So the actual error message is "Invalid input for operation:
>>> physical_network 'provider1' unknown  for VLAN provider network.".
>>>
>>> That means that in your Neutron server configuration file under the
>>> [ml2_type_vlan] section you need to add 'provider1' to the
>>> 'network_vlan_ranges' option.
>>>
>>>
>>>
>>> On Sun, Jun 18, 2017 at 9:04 AM, Alex Evonosky <alex.evonosky at gmail.com>
>>>  wrote:
>>>
>>>> Kevin-
>>>>
>>>> Thank you for the tip.  The Debug is attached as well.
>>>>
>>>> Thank you.
>>>>
>>>> On Sun, Jun 18, 2017 at 11:54 AM, Kevin Benton <kevin at benton.pub> wrot
>>>> e:
>>>>
>>>>> The openstack command should have an option to enable debugging so you
>>>>> can get the error message. Try openstack --debug
>>>>>
>>>>>
>>>>>
>>>>> On Sun, Jun 18, 2017 at 7:27 AM, Alex Evonosky <alex.evonosky at gmail.
>>>>> com> wrote:
>>>>>
>>>>>> Gary-
>>>>>>
>>>>>> Thank you for the feedback.  I issued the command while tailing the
>>>>>> log:
>>>>>>
>>>>>> *2017-06-18 10:24:51.841 12018 INFO neutron.api.v2.resource
>>>>>> [req-da8fa8be-1cae-4b5e-a1cf-2206a284476a 7e7176b79f94483c8b802a7004466e66
>>>>>> 664dc5e6023140eca0faeb2d0ecc31c2 - - -] create failed (client error): The
>>>>>> server could not comply with the request since it is either malformed or
>>>>>> otherwise incorrect.*
>>>>>> *2017-06-18 10:24:51.843 12018 INFO neutron.wsgi
>>>>>> [req-da8fa8be-1cae-4b5e-a1cf-2206a284476a 7e7176b79f94483c8b802a7004466e66
>>>>>> 664dc5e6023140eca0faeb2d0ecc31c2 - *
>>>>>>
>>>>>>
>>>>>> As for the ocata config, this was built by using the ocata:
>>>>>>
>>>>>> https://docs.openstack.org/ocata/install-guide-ubuntu/
>>>>>>
>>>>>>
>>>>>> Thank you.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Sun, Jun 18, 2017 at 10:17 AM, Gary Kotton <gkotton at vmware.com> wr
>>>>>> ote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> Please look in /var/log/neutron/neutron-server.log
>>>>>>>
>>>>>>> That should provide and exception trace
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>> Gary
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> *From: *Alex Evonosky <alex.evonosky at gmail.com>
>>>>>>> *Date: *Sunday, June 18, 2017 at 5:04 PM
>>>>>>> *To: *"openstack at lists.openstack.org" <openstack at lists.openstack.org
>>>>>>> >
>>>>>>> *Subject: *[Openstack] Routed provider networks
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Hello-
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> I wanted to test the routed provider networks of Ocata, and
>>>>>>> following the example config:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> https://docs.openstack.org/ocata/networking-guide/config-rou
>>>>>>> ted-networks.html
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> I typed in the following on my controller node:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> @openstack-controller1:~# openstack network create --share
>>>>>>> --provider-physical-network provider1 --provider-network-type vlan
>>>>>>> --provider-segment 2016 multisegment1
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> and I receive this:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> *Error while executing command: Bad Request*
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Is there a log that may show what this error is referring to?
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Thank you.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/op
>>>>>> enstack
>>>>>> Post to     : openstack at lists.openstack.org
>>>>>> Unsubscribe : http://lists.openstack.org/c
>>>>>> gi-bin/mailman/listinfo/openstack
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>> !DSPAM:1,5946a6cb169661288915335! ______________________________
>> _________________
>> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/op
>> enstack
>> Post to     : openstack at lists.openstack.org
>> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openst
>> ack
>>
>> !DSPAM:1,5946a6cb169661288915335!
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20170618/6f52e490/attachment.html>


More information about the Openstack mailing list