sapcc / asr1k-neutron-l3

Cisco ASR 1000 Neutron L3 driver
Apache License 2.0
4 stars 1 forks source link

AZ aware router scheduling #67

Closed sebageek closed 2 years ago

sebageek commented 3 years ago

When a router is scheduled with an AZ hint it will only be scheduled onto an asr1k agent with that given AZ, otherwise it will be scheduled onto an agent without an AZ set. None and 'nova' (the default AZ) are both regarded as "no AZ set". Only a single AZ hint is allowed per router.

A router now also checks if a network has an AZ set on router attach. If the network has a hint but the router does not then association is denied.

Agents now properly advertise their given AZ. The ML2 agent does not use this information at the moment, as for ml2/portbinding AZ restrictions will be enforced by a driver above the asr1k driver.

WIP, as I still need to do a proper codereview and also the flags to declaw this are missing (i.e. we have the code ready, but not the hardware and suddenly everything with AZ hint starts failing to get deployed).