Ask Your Question
0

Orchestration: The number of host routes exceeds the limit 20

asked 2017-11-24 03:28:14 -0500

garyphone gravatar image

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 https://wiki.openstack.org/wiki/Neutron/APIv2-specification (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 ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2017-11-24 05:57:21 -0500

timi gravatar image

change max_subnet_host_routes in neutron.conf

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-11-24 03:28:14 -0500

Seen: 170 times

Last updated: Nov 24 '17