Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
provider/lxd: fix off-by-1 LXD subnet calculation #5099
Conversation
|
$$merge$$ |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
jujubot
merged commit e305232
into
juju:next
Apr 12, 2016
frobware
deleted the
frobware:next-lp1569361
branch
Apr 12, 2016
|
I'm confused by this PR. Do we not then pick an existing subnet to configure lxdbr0 with? Why doesn't it break initially now? |
|
Right, the whole point of detectSubnet is to choose a subnet that isn't in use. |
frobware commentedApr 12, 2016
The call to detectSubnet() was always adding 1 to the network address
that was discovered when parsing the output from `ip addr'. This has the
unfortunate effect of changing the subnet for the LXD bridge after it
has been recorded by Juju. This meant that further container <=>
apiserver communication would break as the original value was recorded
in the agent.conf file.
Fixes LP:#1569361
(Review request: http://reviews.vapour.ws/r/4538/)