← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1637366] Re: HostNotCompatibleWithFixedIps exception happens when setting router's gateway.

 

Reviewed:  https://review.openstack.org/543612
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=0d4889df41485cece4bef5915753ae7efd808138
Submitter: Zuul
Branch:    master

commit 0d4889df41485cece4bef5915753ae7efd808138
Author: Brian Haley <bhaley@xxxxxxxxxx>
Date:   Mon Feb 12 15:38:24 2018 -0500

    Always pass device_owner to _ipam_get_subnets()
    
    There was one code path where the existing device_owner
    value, which is used for subnet selection when service_type's
    are in use was not passed to _imap_get_subnets().  This could
    trigger one of two exceptions - HostNotCompatibleWithFixedIps()
    or IpAddressGenerationFailureNoMatchingSubnet() depending
    on the environment.  Pass it along if known.
    
    Also update the IpAddressGenerationFailureNoMatchingSubnet
    exception to print the network_id and service_type values since
    it could aid in debugging the problem quicker.
    
    Change-Id: Ic13901b92cac05e8ddf1092b66aa5bcc5623fa8a
    Closes-bug: #1637366


** Changed in: neutron
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1637366

Title:
  HostNotCompatibleWithFixedIps exception happens when setting router's
  gateway.

Status in neutron:
  Fix Released

Bug description:
  ======= Problem Description ======

      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.

      Neutron server log at http://paste.openstack.org/show/587158/.

  ======= How to reproduce =======

      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 --service-types list=true
  network:router_gateway ".

      Third, create a subnet without service_types:
  neutron subnet-create [net-id] 10.10.10.0/24

      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. ".

     I upload all the network and subnets info at here [1]. Detail
  exception at here [2].

  [1]. http://paste.openstack.org/show/587157/
  [2]. http://paste.openstack.org/show/587158/

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1637366/+subscriptions


References