Comment 7 for bug 1858416

Revision history for this message
Florian Guitton (f-guitton) wrote : Re: ovn-chassis node not registering itself

Hello Frode !

It would appear there might be a mismatch indeed.
For our setup we use MAAS to PXE boot and commission our environment. This happens on a 10.80.0.0/16 interface. We expect OpenStack to be deployed on interface bond0.30 with a range 172.30.0.0/16.
In Juju all spaces are bind to the 172.30.0.0/16 subnet.

Thank you for you support on this.
Feel free to ask for any other details.

You can find the information as follows:

root@od-13:~# hostname -f
od-13.metal.dsi.ic.ac.uk

root@od-13:~# ovs-vsctl list open_vswitch
_uuid : 72d5ae76-1cb1-4731-8179-32c6999ee2f9
bridges : [6db7c672-9e40-4a7f-9de3-e31438dc95ed]
cur_cfg : 7
datapath_types : [netdev, system]
datapaths : {}
db_version : "8.2.0"
dpdk_initialized : false
dpdk_version : none
external_ids : {hostname=od-13.metal.dsi.ic.ac.uk, ovn-encap-ip="172.30.200.51", ovn-encap-type=geneve, ovn-remote="ssl:172.30.200.46:6642,ssl:172.30.200.45:6642,ssl:172.30.200.39:6642", rundir="/var/run/openvswitch", system-id=od-13.metal.dsi.ic.ac.uk}
iface_types : [erspan, geneve, gre, internal, ip6erspan, ip6gre, lisp, patch, stt, system, tap, vxlan]
manager_options : [2c189015-c836-4a38-a217-deb6f8de2d12]
next_cfg : 7
other_config : {}
ovs_version : "2.13.0"
ssl : c8c2e84e-6084-4b51-906b-893913d2b08c
statistics : {}
system_type : ubuntu
system_version : "20.04"

root@od-13:~# openssl x509 -text -in /etc/ovn/cert_host | grep CN
        Issuer: CN = Vault Intermediate Certificate Authority (charm-pki-local)
        Subject: CN = bond0.30.od-13.metal.dsi.ic.ac.uk

root@juju-playground:~# juju run --application ovn-chassis 'relation-ids certificates'
- Stdout: |
    certificates:68
  UnitId: ovn-chassis/0
- Stdout: |
    certificates:68
  UnitId: ovn-chassis/1

root@juju-playground:~# juju run --application vault 'relation-get -r certificates:68 - ovn-chassis/0'
cert_requests: '{"bond0.30.od-13.metal.dsi.ic.ac.uk": {"sans": ["172.30.200.51"]}}'
certificate_name: a46a8550-ccbe-4b0f-b2ea-25fbe1909ac7
common_name: od-13.metal.dsi.ic.ac.uk
egress-subnets: 10.80.0.11/32
ingress-address: 10.80.0.11
private-address: 10.80.0.11
sans: '["10.80.0.11"]'
unit_name: ovn-chassis_0