[openstack-dev] [neutron] HostNotCompatibleWithFixedIps exception happens when setting router's gateway.

zhi changzhi1990 at gmail.com
Fri Oct 28 03:54:19 UTC 2016


Unfortunately, I create two subnets like this :

neutron subnet-create 9bca94f8-3986-4900-a64e-e7f0cfc4c934 10.10.10.0/24
--service-types list=true network:router_gateway --enable_dhcp=False
neutron subnet-create 9bca94f8-3986-4900-a64e-e7f0cfc4c934 20.20.20.0/24
--service-types list=true network:floatingip --enable_dhcp=False

As shows above, one for router's gateway and the other is for floatingip.

But exception occurs again in neutron server, like this:

" IpAddressGenerationFailureNoMatchingSubnet: No valid service subnet for
the given device owner. "

Details info at [1].


Could you give some advice?


Thanks
Zhi Chang

[1]. http://paste.openstack.org/show/587223/

2016-10-28 10:25 GMT+08:00 zhi <changzhi1990 at gmail.com>:

> Hi, Brian Haley, I reported a bug in launchpad at here [1]. I will disable
> DHCP in these subnets and try it again. :)
>
>
> Thanks
> Zhi Chang
>
>
> [1]. https://bugs.launchpad.net/neutron/+bug/1637366
>
> 2016-10-27 21:39 GMT+08:00 Brian Haley <brian.haley at hpe.com>:
>
>> Hi Zhi,
>>
>> Thanks for the report, comment below.
>>
>> On 10/27/2016 05:04 AM, zhi wrote:
>>
>>> Hi, all.
>>>
>>>     I installed a devstack in my local environment. All the code from
>>> master
>>> branch. After the installation, I have to show you some problems which I
>>> met.
>>>
>>>     First of all, I create an external network by this command " neutron
>>> net-create public --router:external=True --provider:network_type=flat
>>> --provider:physical_network=public ".
>>>
>>>     Secondly, I create a subnet with " subnet_type " by this command "
>>> neutron
>>> subnet-create [net-id] 20.20.20.0/24 <http://20.20.20.0/24>
>>> --service-types
>>> list=true network:router_gateway ".
>>>
>>>     At last, I create a router and setting this router's gateway by this
>>> command
>>> " neutron router-gateway-set [router-id] [net-id]".
>>>
>>>     Exception happens in Neutron Server, it says "
>>> HostNotCompatibleWithFixedIps: Host devstack is not connected to a
>>> segment where
>>> the existing fixed_ips on port 0f38ba01-8dd0-43de-92e3-b294bd4ebed8 will
>>> function given the routed network topology. ".
>>>
>>
>> Subnet service types is new in Newton, and it seems you've found a bug -
>> can you file a bug on launchpad for it?
>>
>> The one thing you might try to get past this is to disable DHCP on these
>> subnets, but the error you linked seems different from [1].
>>
>> -Brian
>>
>> [1] https://bugs.launchpad.net/neutron/+bug/1636963
>>
>>     After I did some research about the exception,  I found this patch[1]
>>> was
>>> adding this exception into neutron repo. I am confused about that. Why
>>> setting
>>> router's gateway will trigger this exception? I don't execute any
>>> commands about
>>> " routed_network ".
>>>
>>>     What's wrong ?
>>>
>>>     Could someone give some advice about that ? I upload all the network
>>> and
>>> subnets info at here [2]. Detail exception at here [3].
>>>
>>>     BTW, what's the meaning of " tags " in network?
>>>
>>>     Hope for your reply. :)
>>>
>>>
>>> Thanks
>>> Zhi Chang
>>>
>>>
>>> [1]. https://review.openstack.org/#/c/346217/3
>>> [2]. http://paste.openstack.org/show/587157/
>>> [3]. http://paste.openstack.org/show/587158/
>>>
>>>
>>> ____________________________________________________________
>>> ______________
>>> OpenStack Development Mailing List (not for usage questions)
>>> Unsubscribe: OpenStack-dev-request at lists.op
>>> enstack.org?subject:unsubscribe
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>
>>>
>>
>> ____________________________________________________________
>> ______________
>> OpenStack Development Mailing List (not for usage questions)
>> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscrib
>> e
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20161028/566060d3/attachment.html>


More information about the OpenStack-dev mailing list