Activity log for bug #1781856

Date Who What changed Old value New value Message
2018-07-16 05:02:51 Trent Lloyd bug added bug
2018-07-16 05:04:32 Trent Lloyd tags sts
2018-07-16 05:04:57 Trent Lloyd description Sometimes you may wish to use a different interface as your default gateway, this is not currently possible for LXD containers. Secondly to that, the default gateway for the "default space" is not used - it appears to use the first space in the database or some other arbitrary ordering. Currently, with the MAAS provider, while not in the Web UI you can specify a different interface as the default gateway interface using the following command: $ maas skc interface set-default-gateway wftkqx 914 You specify the machine ID (wftkqx) and the ID of the link that you want to be the default gateway (914). For testing purposes, the following command makes it easy to identify the link IDs for a given machine's interfaces: maas skc nodes read | jq '.[] | . as $parent | .interface_set[] | "system_id=\($parent.system_id) hostname=\($parent.hostname) if_id=\(.id), if_name=\(.name), if_fabric=\(.vlan.fabric), if_space=\(.vlan.space)"' Unfortunately this logic does not extend to LXD containers deployed by juju. juju appears to always use the "first" space as the default gateway, and by first I am not sure but I am guessing it is based on the order it appears in the database or similar. In my setup I have spaces "vsw0" and "vsw1" (in that order in the MAAS interface and "juju spaces" output). When deploying a container with both spaces on a host for which MAAS has the default gateway set to vsw1, it appears vsw0 is always chosen as the container gateway. This includes when you set a different "default space" juju deploy percona-cluster --bind "vsw1 shared-db=vsw0" The main reason this cause real problems, is that currently containers don't attempt to do any kind of source routing. So when a container is contacted on one interface, the default gateway for another interface is used. This leads to broken networking in some setups. This could potentially also be solved by Bug #1737428 which allows for different default routes basic on the traffic "Source IP" - however it makes sense without that support to simply be able to specify the default route for the container - at the very least, perhaps by using the default space or otherwise if that is a problem for some reason perhaps through some other option. Sometimes you may wish to use a different interface as your default gateway, this is not currently possible for LXD containers. Secondly to that, the default gateway for the "default space" is not used - it appears to use the first space in the database or some other arbitrary ordering. Currently, with the MAAS provider, while not in the Web UI you can specify a different interface as the default gateway interface using the following command: $ maas skc interface set-default-gateway wftkqx 914 You specify the machine ID (wftkqx) and the ID of the link that you want to be the default gateway (914). For testing purposes, the following command makes it easy to identify the link IDs for a given machine's interfaces: maas skc nodes read | jq '.[] | . as $parent | .interface_set[] | "system_id=\($parent.system_id) hostname=\($parent.hostname) if_id=\(.id), if_name=\(.name), if_fabric=\(.vlan.fabric), if_space=\(.vlan.space)"' Unfortunately this logic does not extend to LXD containers deployed by juju. juju appears to always use the "first" space as the default gateway, and by first I am not sure but I am guessing it is based on the order it appears in the database or similar. In my setup I have spaces "vsw0" and "vsw1" (in that order in the MAAS interface and "juju spaces" output). When deploying a container with both spaces on a host for which MAAS has the default gateway set to vsw1, it appears vsw0 is always chosen as the container gateway. This includes when you set a different "default space" juju deploy percona-cluster --bind "vsw1 shared-db=vsw0" -n2 --to lxd,lxd The main reason this cause real problems, is that currently containers don't attempt to do any kind of source routing. So when a container is contacted on one interface, the default gateway for another interface is used. This leads to broken networking in some setups. This could potentially also be solved by Bug #1737428 which allows for different default routes basic on the traffic "Source IP" - however it makes sense without that support to simply be able to specify the default route for the container - at the very least, perhaps by using the default space or otherwise if that is a problem for some reason perhaps through some other option.
2018-07-16 05:21:07 Dmitrii Shcherbakov bug added subscriber Dmitrii Shcherbakov
2018-07-16 19:33:29 Joseph Wilkie bug added subscriber Joseph Wilkie
2018-10-09 10:57:23 Anastasia juju: status New Invalid
2018-10-11 08:57:02 Trent Lloyd juju: status Invalid New
2018-10-23 15:50:28 Richard Harding juju: status New Triaged
2018-10-23 15:50:31 Richard Harding juju: importance Undecided High
2018-10-23 15:50:35 Richard Harding juju: milestone 2.5.1
2019-01-28 22:03:49 Ian Booth juju: milestone 2.5.1 2.5.2
2019-03-11 23:01:21 Canonical Juju QA Bot juju: milestone 2.5.2 2.5.3
2019-03-26 02:08:44 Canonical Juju QA Bot juju: milestone 2.5.3 2.5.4
2019-04-02 01:46:08 Canonical Juju QA Bot juju: milestone 2.5.4 2.5.5
2019-05-14 06:15:30 Anastasia juju: milestone 2.5.6 2.5.8
2019-06-28 02:03:14 Canonical Juju QA Bot juju: milestone 2.5.8 2.5.9
2019-10-31 03:33:36 Anastasia juju: milestone 2.5.9
2019-12-12 10:49:36 Aaron Whitehouse bug added subscriber Aaron Whitehouse
2019-12-13 10:21:34 Amad Ali bug added subscriber Amad Ali
2019-12-13 10:22:23 Arif Ali bug added subscriber Arif Ali
2022-05-20 03:26:36 Gustavo Sanchez bug added subscriber Gustavo Sanchez