canonical/lxd

Add `wait_ready` nic config keys for IPv4/IPv6 routes

开放

#11,535 创建于 2023年4月2日

 (2 条评论) (0 个反应) (0 位负责人)Go (1,035 个派生)auto 404
Good first issueJira

仓库指标

星标
 (4,805 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Now that we have the ready status for instances, it would be very convenient if we could make the ipv4.routes.external and ipv6.routes.external to be conditional on the instance being in a ready state.

Easiest would be to introduce ipv4.routes.external.wait_ready and ipv6.routes.external.wait_ready or similar and add logic so when the instance goes to the ready state, those routes get added (either to the host or BGP) and if the instance is to revert to running state, those routes should be pulled.

This would then allow services to put a post-start/pre-stop action which will set or unset the ready state, making it so no traffic is dispatched to an instance which isn't ready for it.

贡献者指南