mgmt network only works with manual netplan config and amphora vm is not reachable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Octavia Charm |
New
|
Undecided
|
Unassigned |
Bug Description
We deployed an charmed openstack-base bundle (lxd) with octavia. All charms are fine (green) and also the hosts and containers up to date (focal/xena). In general the networking works fine. We use VLAN over physnet1 and geneve for our vm's without any problems.
We tested the default v6 mgmt network -> don't work. After that we tried the manual way (create an ipv4 geneve network and openstack sec-groups). The port binding was successful but the o-hm0 net stuck in UNKOWN state and doesnt receive the ip address that we can see in the port config. So we can't ping the other octavia-
We noticed this bug "IPv6 mgmt network not working, octavia can't talk to Amphora instance" (https:/
#######
App Version Status Scale Charm Store Channel Rev OS Message
octavia 9.0.0 active 3 octavia charmstore stable 38 ubuntu Unit is ready
octavia-hacluster active 3 hacluster charmstore stable 81 ubuntu Unit is ready and clustered
octavia-
octavia-ovn-chassis 21.09.0 active 3 ovn-chassis charmstore stable 21 ubuntu Unit is ready
Unit Workload Agent Machine Public address Ports Message
octavia/9* active idle 0/lxd/20 10.6.97.231 9876/tcp Unit is ready
octavia-
octavia-
octavia-
octavia/10 active idle 1/lxd/21 10.6.97.233 9876/tcp Unit is ready
octavia-
octavia-
octavia-
octavia/11 active idle 2/lxd/22 10.6.97.232 9876/tcp Unit is ready
octavia-
octavia-
octavia-
Machine State DNS Inst id Series AZ Message
0 started 10.6.1.112 loc6-rack16-srv12 focal de1 Deployed
0/lxd/20 started 10.6.97.231 juju-872048-
1 started 10.6.1.113 loc6-rack16-srv13 focal de1 Deployed
1/lxd/21 started 10.6.97.233 juju-872048-
2 started 10.6.1.114 loc6-rack16-srv14 focal de1 Deployed
2/lxd/22 started 10.6.97.232 juju-872048-
#######
Without manual netplan config we dont see ipv4 address on o-hm0 interface:
#######
juju-872048-
-------
ip a
1: lo: <LOOPBACK,
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ovs-system: <BROADCAST,
link/ether ca:70:c8:3d:c9:a1 brd ff:ff:ff:ff:ff:ff
3: br-int: <BROADCAST,
link/ether e6:e0:1e:80:45:92 brd ff:ff:ff:ff:ff:ff
4: genev_sys_6081: <BROADCAST,
link/ether 8e:34:d7:93:2a:61 brd ff:ff:ff:ff:ff:ff
inet6 fe80::8c34:
valid_lft forever preferred_lft forever
5: o-hm0: <BROADCAST,
link/ether fa:16:3e:c3:4c:39 brd ff:ff:ff:ff:ff:ff
inet6 fe80::f816:
valid_lft forever preferred_lft forever
126: eth0@if127: <BROADCAST,
link/ether 00:16:3e:dc:9f:70 brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet 10.6.97.232/18 brd 10.6.127.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::216:
valid_lft forever preferred_lft forever
#######
#######
openstack port show ebe2e485-
+------
| Field | Value |
+------
| admin_state_up | UP |
| allowed_
| binding_host_id | juju-872048-
| binding_profile | |
| binding_vif_details | port_filter='True' |
| binding_vif_type | ovs |
| binding_vnic_type | normal |
| created_at | 2022-01-
| data_plane_status | None |
| description | |
| device_id | |
| device_owner | neutron:
| device_profile | None |
| dns_assignment | fqdn='host-
| dns_domain | None |
| dns_name | |
| extra_dhcp_opts | |
| fixed_ips | ip_address=
| id | ebe2e485-
| ip_allocation | immediate |
| mac_address | fa:16:3e:c3:4c:39 |
| name | octavia-
| network_id | 65e62639-
| numa_affinity_
| port_security_
| project_id | 2a01fcbcbf5c4de
| propagate_
| qos_network_
| qos_policy_id | None |
| resource_request | None |
| revision_number | 25 |
| security_group_ids | cbc8d2b2-
| status | ACTIVE |
| tags | charm-octavia, charm-octavia-
| trunk_details | None |
| updated_at | 2022-01-
+------
#######
#######
openstack network agent list | grep lxd
| juju-872048-
| juju-872048-
| juju-872048-
#######
#######
juju-872048-
/var/log/
----
2022-01-
2022-01-
2022-01-
2022-01-
#######
#######
juju-872048-
/var/log/
----
2022-01-
2022-01-
2022-01-
2022-01-
#######
#######
juju-872048-
/var/log/
----
2022-01-
2022-01-
2022-01-
2022-01-
#######
#######
openstack server show 661f8a9c-
+------
| Field | Value |
+------
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-STS:vm_state | active |
| OS-SRV-
| OS-SRV-
| accessIPv4 | |
| accessIPv6 | |
| addresses | lb_mgmt=10.241.3.88 |
| config_drive | True |
| created | 2022-01-
| flavor | charm-octavia (577702e9-
| hostId | 59b8cf82e1696d7
| id | 661f8a9c-
| image | amphora-
| key_name | None |
| name | amphora-
| progress | 0 |
| project_id | 2a01fcbcbf5c4de
| properties | |
| security_groups | name='octavia' |
| status | ACTIVE |
| updated | 2022-01-
| user_id | 9cd628e308704cb
| volumes_attached | |
+------
#######
#######
openstack port list | grep octavia
| 4fd7e3fd-
| 79cc186d-
| ebe2e485-
| f9e9a7ac-
#######
########### Amphora VM ############
[ 11.690075] cloud-init[643]: Cloud-init v. 21.4-0ubuntu1~
[ 11.692265] cloud-init[643]: ci-info: +++++++
[ 11.696600] cloud-init[643]: ci-info: +------
[ 11.700250] cloud-init[643]: ci-info: | Device | Up | Address | Mask | Scope | Hw-Address |
[ 11.702964] cloud-init[643]: ci-info: +------
[ 11.706084] cloud-init[643]: ci-info: | ens3 | True | 10.241.0.178 | 255.255.192.0 | global | fa:16:3e:9f:61:48 |
[ 11.709796] cloud-init[643]: ci-info: | ens3 | True | fe80::f816:
[ 11.711865] cloud-init[643]: ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | host | . |
[ 11.715521] cloud-init[643]: ci-info: | lo | True | ::1/128 | . | host | . |
[ 11.720288] cloud-init[643]: ci-info: +------
[ 11.723157] cloud-init[643]: ci-info: +++++++
[ 11.726504] cloud-init[643]: ci-info: +------
[ 11.729788] cloud-init[643]: ci-info: | Route | Destination | Gateway | Genmask | Interface | Flags |
[ 11.732765] cloud-init[643]: ci-info: +------
[ 11.735250] cloud-init[643]: ci-info: | 0 | 0.0.0.0 | 10.241.0.1 | 0.0.0.0 | ens3 | UG |
[ 11.738601] cloud-init[643]: ci-info: | 1 | 10.241.0.0 | 0.0.0.0 | 255.255.192.0 | ens3 | U |
[ 11.741094] cloud-init[643]: ci-info: | 2 | 169.254.169.254 | 10.241.0.2 | 255.255.255.255 | ens3 | UGH |
[ 11.748343] cloud-init[643]: ci-info: +------
description: | updated |
summary: |
- mgmt network only works with manual netplan config and octavia vm is not + mgmt network only works with manual netplan config and amphora vm is not reachable |
description: | updated |
/var/log/ octavia/ octavia- driver- agent.log
022-01-28 20:06:43.579 224058 ERROR ovsdbapp. backend. ovs_idl. connection [-] [('system library', 'fopen', 'No such file or directory'), ('BIO routines', 'file_ctrl', 'system lib'), ('SSL routines', 'SSL_CTX_ use_PrivateKey_ file', 'system lib')]: OpenSSL.SSL.Error: [('system library', 'fopen', 'No such file or directory'), ('BIO routines', 'file_ctrl', 'system lib'), ('SSL routines', 'SSL_CTX_ use_PrivateKey_ file', 'system lib')] backend. ovs_idl. connection Traceback (most recent call last): backend. ovs_idl. connection File "/usr/lib/ python3/ dist-packages/ ovsdbapp/ backend/ ovs_idl/ connection. py", line 108, in run backend. ovs_idl. connection self.idl.run() backend. ovs_idl. connection File "/usr/lib/ python3/ dist-packages/ ovs/db/ idl.py" , line 247, in run backend. ovs_idl. connection self._session.run() backend. ovs_idl. connection File "/usr/lib/ python3/ dist-packages/ ovs/jsonrpc. py", line 532, in run backend. ovs_idl. connection self.__connect() backend. ovs_idl. connection File "/usr/lib/ python3/ dist-packages/ ovs/jsonrpc. py", line 467, in __connect backend. ovs_idl. connection error, self.stream = ovs.stream. Stream. open(name) backend. ovs_idl. connection File "/usr/lib/ python3/ dist-packages/ ovs/stream. py", line 192, in open backend. ovs_idl. connection error, sock = cls._open(suffix, dscp) backend. ovs_idl. connection File "/usr/lib/ python3/ dist-packages/ ovs/stream. py", line 795, in _open backend. ovs_idl. connection ctx.use_ privatekey_ file(Stream. _SSL_private_ key_file) backend. ovs_idl. connection File "/usr/lib/ python3/ dist-packages/ OpenSSL/ SSL.py" , line 912, in use_privatekey_file backend. ovs_idl. connection self._raise_ passphrase_ exception( ) backend. ovs_idl. connection File "/usr/lib/ python3/ dist-packages/ OpenSSL/ SSL.py" , line 888, in _raise_ passphrase_ exception backend. ovs_idl. connection _raise_ current_ error() backend. ovs_idl. connection File "/usr/lib/ python3/ dist-packages/ OpenSSL/ _util.py" , line 57, in exception_ from_error_ queue backend. ovs_idl. connection raise exception_ type(errors) backend. ovs_idl. connection OpenSSL.SSL.Error: [('system library', 'fopen', 'No such file or directory'), ('BIO routines', 'file_ctrl', 'system lib'), ('SSL routines', 'SSL_CTX_ use_PrivateKey_ ...
2022-01-28 20:06:43.579 224058 ERROR ovsdbapp.
2022-01-28 20:06:43.579 224058 ERROR ovsdbapp.
2022-01-28 20:06:43.579 224058 ERROR ovsdbapp.
2022-01-28 20:06:43.579 224058 ERROR ovsdbapp.
2022-01-28 20:06:43.579 224058 ERROR ovsdbapp.
2022-01-28 20:06:43.579 224058 ERROR ovsdbapp.
2022-01-28 20:06:43.579 224058 ERROR ovsdbapp.
2022-01-28 20:06:43.579 224058 ERROR ovsdbapp.
2022-01-28 20:06:43.579 224058 ERROR ovsdbapp.
2022-01-28 20:06:43.579 224058 ERROR ovsdbapp.
2022-01-28 20:06:43.579 224058 ERROR ovsdbapp.
2022-01-28 20:06:43.579 224058 ERROR ovsdbapp.
2022-01-28 20:06:43.579 224058 ERROR ovsdbapp.
2022-01-28 20:06:43.579 224058 ERROR ovsdbapp.
2022-01-28 20:06:43.579 224058 ERROR ovsdbapp.
2022-01-28 20:06:43.579 224058 ERROR ovsdbapp.
2022-01-28 20:06:43.579 224058 ERROR ovsdbapp.
2022-01-28 20:06:43.579 224058 ERROR ovsdbapp.
2022-01-28 20:06:43.579 224058 ERROR ovsdbapp.
2022-01-28 20:06:43.579 224058 ERROR ovsdbapp.