[Bug 1847032] Re: metadata agent unable to connect to Southbound DB using TLS

OpenStack Infra 1847032 at bugs.launchpad.net
Tue Dec 3 11:16:12 UTC 2019


Reviewed:  https://review.opendev.org/694006
Committed: https://git.openstack.org/cgit/openstack/networking-ovn/commit/?id=0ef9461c5b7b2a4220ea5c9deadf3d5b4515a8fd
Submitter: Zuul
Branch:    stable/train

commit 0ef9461c5b7b2a4220ea5c9deadf3d5b4515a8fd
Author: Frode Nordahl <frode.nordahl at canonical.com>
Date:   Mon Oct 7 10:10:34 2019 +0200

    Initialize TLS prior to retrieving OVSDB schema
    
    Change-Id: Ic7e97ae78dadc4a07cff695a108c82fd3cb8e559
    Closes-Bug: #1847032
    (cherry picked from commit e349bfb14aeaa884e3d26dce7e09ffb96cc0ae73)


** Tags added: in-stable-train

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to Ubuntu Cloud Archive.
https://bugs.launchpad.net/bugs/1847032

Title:
  metadata agent unable to connect to Southbound DB using TLS

Status in Ubuntu Cloud Archive:
  Fix Released
Status in Ubuntu Cloud Archive stein series:
  Fix Released
Status in Ubuntu Cloud Archive train series:
  Fix Released
Status in networking-ovn:
  Fix Released
Status in networking-ovn package in Ubuntu:
  Fix Released
Status in networking-ovn source package in Disco:
  Triaged
Status in networking-ovn source package in Eoan:
  Fix Released

Bug description:
  2019-10-07 07:49:22.234 752648 INFO networking_ovn.agent.metadata.agent [-] DEBUG: 0
  2019-10-07 07:49:22.234 752648 INFO networking_ovn.agent.metadata.ovsdb [-] DEBUG: connection_string="ssl:10.246.114.19:6642,ssl:10.246.114.26:6642,ssl:10.246.114.10:6642"
  2019-10-07 07:49:22.235 752648 CRITICAL neutron [-] Unhandled error: TypeError: Path must be represented as bytes or unicode string
  2019-10-07 07:49:22.235 752648 ERROR neutron Traceback (most recent call last):
  2019-10-07 07:49:22.235 752648 ERROR neutron   File "/usr/bin/networking-ovn-metadata-agent", line 10, in <module>
  2019-10-07 07:49:22.235 752648 ERROR neutron     sys.exit(main())
  2019-10-07 07:49:22.235 752648 ERROR neutron   File "/usr/lib/python3/dist-packages/networking_ovn/cmd/eventlet/agents/metadata.py", line 17, in main
  2019-10-07 07:49:22.235 752648 ERROR neutron     metadata_agent.main()
  2019-10-07 07:49:22.235 752648 ERROR neutron   File "/usr/lib/python3/dist-packages/networking_ovn/agent/metadata_agent.py", line 38, in main
  2019-10-07 07:49:22.235 752648 ERROR neutron     agt.start()
  2019-10-07 07:49:22.235 752648 ERROR neutron   File "/usr/lib/python3/dist-packages/networking_ovn/agent/metadata/agent.py", line 163, in start
  2019-10-07 07:49:22.235 752648 ERROR neutron     SbGlobalUpdateEvent(self)]).start()
  2019-10-07 07:49:22.235 752648 ERROR neutron   File "/usr/lib/python3/dist-packages/networking_ovn/agent/metadata/ovsdb.py", line 38, in __init__
  2019-10-07 07:49:22.235 752648 ERROR neutron     helper = self._get_ovsdb_helper(connection_string)
  2019-10-07 07:49:22.235 752648 ERROR neutron   File "/usr/lib/python3/dist-packages/networking_ovn/agent/metadata/ovsdb.py", line 52, in _get_ovsdb_helper
  2019-10-07 07:49:22.235 752648 ERROR neutron     return idlutils.get_schema_helper(connection_string, self.SCHEMA)
  2019-10-07 07:49:22.235 752648 ERROR neutron   File "/usr/lib/python3/dist-packages/ovsdbapp/backend/ovs_idl/idlutils.py", line 123, in get_schema_helper
  2019-10-07 07:49:22.235 752648 ERROR neutron     stream.Stream.open(c))
  2019-10-07 07:49:22.235 752648 ERROR neutron   File "/usr/lib/python3/dist-packages/ovs/stream.py", line 190, in open
  2019-10-07 07:49:22.235 752648 ERROR neutron     error, sock = cls._open(suffix, dscp)
  2019-10-07 07:49:22.235 752648 ERROR neutron   File "/usr/lib/python3/dist-packages/ovs/stream.py", line 786, in _open
  2019-10-07 07:49:22.235 752648 ERROR neutron     ctx.use_privatekey_file(Stream._SSL_private_key_file)
  2019-10-07 07:49:22.235 752648 ERROR neutron   File "/usr/lib/python3/dist-packages/OpenSSL/SSL.py", line 957, in use_privatekey_file
  2019-10-07 07:49:22.235 752648 ERROR neutron     keyfile = _path_string(keyfile)
  2019-10-07 07:49:22.235 752648 ERROR neutron   File "/usr/lib/python3/dist-packages/OpenSSL/_util.py", line 107, in path_string
  2019-10-07 07:49:22.235 752648 ERROR neutron     raise TypeError("Path must be represented as bytes or unicode string")
  2019-10-07 07:49:22.235 752648 ERROR neutron TypeError: Path must be represented as bytes or unicode string
  2019-10-07 07:49:22.235 752648 ERROR neutron

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1847032/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list