network-get returning fan address
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned | ||
2.3 |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
I am seeing this using 2.4-beta1-
Deployed postgres, related another app (blues-browser) to postgres, the app gets the fan address from the db relation, and therefore it's not able to communicate with the database.
Note that the blues-browser unit does not have a fan address and therefore is not able to ping the postgres one, maybe because its machine is trusty.
% juju run --unit postgresql/0 -- network-get db
bind-addresses:
- macaddress: 0e:78:23:52:0b:a5
interfacename: fan-252
addresses:
- address: 252.0.64.1
cidr: 252.0.0.0/8
egress-subnets:
- 252.0.64.1/32
ingress-addresses:
- 252.0.64.1
% juju run --unit postgresql/0 -- ip -4 addr
1: lo: <LOOPBACK,
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: ens4: <BROADCAST,
inet 10.132.0.4/32 brd 10.132.0.4 scope global ens4
valid_lft forever preferred_lft forever
4: fan-252: <BROADCAST,
inet 252.0.64.1/8 scope global fan-252
valid_lft forever preferred_lft forever
% juju run --unit blues-browser/0 -- ip -4 addr
1: lo: <LOOPBACK,
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,
inet 10.132.0.3/32 brd 10.132.0.3 scope global eth0
valid_lft forever preferred_lft forever
% juju run --unit blues-browser/0 -- relation-get -r database:2 - postgresql/0
allowed-subnets: 10.132.0.3/32
allowed-units: blues-browser/0
database: blues-browser
egress-subnets: 252.0.64.1/32
host: 252.0.64.1
ingress-address: 252.0.64.1
master: dbname=
port=5432 user=juju_
password: p9hHXqFYfM2mdcK
port: "5432"
private-address: 252.0.64.1
schema_password: p9hHXqFYfM2mdcK
schema_user: juju_blues-browser
state: standalone
user: juju_blues-browser
version: "9.5"
% juju status
Model Controller Cloud/Region Version SLA
default google google/europe-west1 2.4-beta1.1 unsupported
App Version Status Scale Charm Store Rev OS Notes
blues-browser unknown 1 blues-browser local 1 ubuntu
postgresql 9.5.12 active 1 postgresql jujucharms 174 ubuntu
Unit Workload Agent Machine Public address Ports Message
blues-browser/0* unknown idle 0 192.158.28.30
postgresql/0* active idle 1 35.195.79.188 5432/tcp Live master (9.5.12)
Machine State DNS Inst id Series AZ Message
0 started 192.158.28.30 juju-0c45ed-0 trusty europe-west1-b RUNNING
1 started 35.195.79.188 juju-0c45ed-1 xenial europe-west1-c RUNNING
Relation provider Requirer Interface Type Message
postgresql:
postgresql:db blues-browser:
postgresql:
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → Critical |
importance: | Critical → High |
tags: | added: network-get |
Marking as Won't Fix for 2.3 series since we are not planning to make any further releases in this series at this stage.