network-get filters on loopback addresses
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Joseph Phillips |
Bug Description
Hello,
Currently the jujud agent will discover /32 addresses from a manual machine but network-get will filter these addresses if they have a config type fo loopback.
Example:
juju spaces:
Name Space ID Subnets
alpha 0 <CIDRS...>
bgp x.x.x.x/32
unit/x in juju debug-env (magpie bound to bgp):
lo: x.x.x.x/32
network-get --ingress-address magpie
ERROR no network config found for binding "magpie"
This appears to be caused by this line in the juju network method ConvertToSpaceA
as removing this line like shown in the diff to remove the ConfigLoopback check fixes this issue:
+++ b/core/
@@ -918,7 +918,7 @@ func ConvertToSpaceA
// If this is not a loopback device, attempt to
// set the space ID based on the subnet.
- if addr.ConfigMethod() != ConfigLoopback && cidr != "" {
+ if cidr != "" {
if err != nil {
Im not sure if this is the correct change in the long run, but has the desired result,
Thank you,
Peter
Changed in juju: | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Joseph Phillips (manadart) |
milestone: | none → 2.9.43 |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
draft PR opened here: https:/ /github. com/juju/ juju/pull/ 15528