Can't establish BGP session with password authentication
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Neutron Dynamic Routing charm |
New
|
Undecided
|
Unassigned | ||
neutron |
Invalid
|
Undecided
|
Unassigned | ||
python-os-ken (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Creating a neutron BGP peer with password authentication leads to an error reported on neutron-
2020-10-06 18:58:51.861 125213 DEBUG bgpspeaker.peer [-] Started peer Peer(ip: 100.94.2.2, asn: 65200) _run /usr/lib/
2020-10-06 18:58:51.861 125213 DEBUG bgpspeaker.peer [-] start connect loop. (mode: active) _on_update_
2020-10-06 18:58:52.862 125213 DEBUG bgpspeaker.peer [-] Peer 100.94.2.2 BGP FSM went from Idle to Connect bgp_state /usr/lib/
2020-10-06 18:58:52.863 125213 DEBUG bgpspeaker.peer [-] Peer(ip: 100.94.2.2, asn: 65200) trying to connect to ('100.94.2.2', 179) _connect_loop /usr/lib/
2020-10-06 18:58:52.863 125213 DEBUG bgpspeaker.base [-] Connect TCP called for 100.94.2.2:179 _connect_tcp /usr/lib/
2020-10-06 18:58:52.864 125213 ERROR os_ken.lib.hub [-] hub: uncaught exception: Traceback (most recent call last):
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
self.
sockopt.
impl(s, addr, key) File "/usr/lib/
sa = sockaddr.
return _pad_to(hdr + data, _SIN_SIZE) File "/usr/lib/
return data + pad_len * '\0'
TypeError: can't concat str to bytes
The log is reported after peer is created and associated to speaker.
Ex.:
#openstack bgp speaker create --ip-version 4 --local-as 65211 --no-advertise-
#openstack bgp speaker add network bgpspeaker provider-network
#openstack bgp peer create --peer-ip 100.94.2.2 --remote-as 65200 --auth-type md5 --password cisco bgppeer
#openstack bgp speaker add peer bgpspeaker bgppeer
#openstack bgp dragent add speaker 27f6b5bc-
If you create a BGP peer without password, everything works just fine.
Opesntack version: Ussuri
Deployed using Juju
Distro: Ubuntu Focal Fossa
The environment is a full deployment with all core services running in multi-node.
This looks a lot with the already reported and fixed bug #1592982.
This is an issue with the os-ken library, see https:/ /storyboard. openstack. org/#!/ story/2007910 . The issue is fixed with the latest release of the library, make sure to upgrade.