Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Orchestration: The number of host routes exceeds the limit 20

Dear guys, I have build a HOT template to create the network topology by using orchestration.

But when I launch the stack with the yaml file, it was failed created. It said Resource CREATE failed: BadRequest: resources.Ne25: Unable to complete operation for new subnet. The number of host routes exceeds the limit 20.

I have checked my yaml code, the reason is that I create over 20 host routes in the subnet. And by reading the specification, it said that maximum amount of routes per subnet. The default is 20.

The part of yaml codes is following:

Ne0:
properties:
  cidr: 10.1.0.0/24
  host_routes:
  - {destination: 10.1.0.0/24, nexthop: 10.1.0.3}
  - {destination: 10.2.0.0/24, nexthop: 10.1.0.4}
  - {destination: 10.3.0.0/24, nexthop: 10.1.0.5}
  - {destination: 10.4.0.0/24, nexthop: 10.1.0.6}
  - {destination: 10.5.0.0/24, nexthop: 10.1.0.7}
  - {destination: 10.6.0.0/24, nexthop: 10.1.0.8}
  - {destination: 10.7.0.0/24, nexthop: 10.1.0.9}
  - {destination: 10.8.0.0/24, nexthop: 10.1.0.10}
  - {destination: 10.9.0.0/24, nexthop: 10.1.0.11}
  - {destination: 10.10.0.0/24, nexthop: 10.1.0.12}
  - {destination: 10.11.0.0/24, nexthop: 10.1.0.13}
  - {destination: 10.12.0.0/24, nexthop: 10.1.0.14}
  - {destination: 10.13.0.0/24, nexthop: 10.1.0.15}
  - {destination: 10.14.0.0/24, nexthop: 10.1.0.16}
  - {destination: 10.15.0.0/24, nexthop: 10.1.0.17}
  - {destination: 10.16.0.0/24, nexthop: 10.1.0.18}
  - {destination: 10.17.0.0/24, nexthop: 10.1.0.19}
  - {destination: 10.18.0.0/24, nexthop: 10.1.0.20}
  - {destination: 10.19.0.0/24, nexthop: 10.1.0.21}
  - {destination: 10.20.0.0/24, nexthop: 10.1.0.22}
  - {destination: 10.21.0.0/24, nexthop: 10.1.0.23}
  - {destination: 10.22.0.0/24, nexthop: 10.1.0.24}
  - {destination: 10.23.0.0/24, nexthop: 10.1.0.25}
  - {destination: 10.24.0.0/24, nexthop: 10.1.0.26}
  - {destination: 10.25.0.0/24, nexthop: 10.1.0.27}
  - {destination: 10.26.0.0/24, nexthop: 10.1.0.28}
  - {destination: 10.27.0.0/24, nexthop: 10.1.0.29}
  - {destination: 10.28.0.0/24, nexthop: 10.1.0.30}
  - {destination: 10.29.0.0/24, nexthop: 10.1.0.31}
  - {destination: 10.30.0.0/24, nexthop: 10.1.0.32}
  - {destination: 10.31.0.0/24, nexthop: 10.1.0.33}
  - {destination: 10.32.0.0/24, nexthop: 10.1.0.34}
  - {destination: 10.33.0.0/24, nexthop: 10.1.0.35}
  - {destination: 10.34.0.0/24, nexthop: 10.1.0.36}
  - {destination: 10.35.0.0/24, nexthop: 10.1.0.37}
  - {destination: 10.36.0.0/24, nexthop: 10.1.0.38}
  - {destination: 10.37.0.0/24, nexthop: 10.1.0.39}
  name: PCB-0
  network_id: {get_resource: Node0}
type: OS::Neutron::Subnet

So, I would like to ask, if there is some way to change the default setting over 20? Or, other way to save this problem.

Thanks for you help~