[Bug 1907228] Re: dnspython is outdated, causes other packages fail in tests

Chris MacNaughton 1907228 at bugs.launchpad.net
Thu Nov 4 06:59:29 UTC 2021


It looks like OpenStack's upper-constraints has now updated to > 2 [1]

1:
https://github.com/openstack/requirements/blob/2c681dd1c8a9a7e89d4b80b946a9e2e8c1280b03/upper-
constraints.txt#L561

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dnspython in Ubuntu.
https://bugs.launchpad.net/bugs/1907228

Title:
  dnspython is outdated, causes other packages fail in tests

Status in dnspython package in Ubuntu:
  Confirmed
Status in python-certbot-dns-rfc2136 package in Ubuntu:
  Confirmed
Status in rally-openstack package in Ubuntu:
  Confirmed
Status in dnspython source package in Hirsute:
  Confirmed
Status in python-certbot-dns-rfc2136 source package in Hirsute:
  Confirmed
Status in rally-openstack source package in Hirsute:
  Confirmed

Bug description:
  these are fixed in dnspython 2.0 ... however OpenStack wants to keep
  1.6.

  
  ________________ RFC2136ClientTest.test_query_soa_wraps_errors _________________

  self = <dns_rfc2136_test.RFC2136ClientTest
  testMethod=test_query_soa_wraps_errors>

      def setUp(self):
          from certbot_dns_rfc2136._internal.dns_rfc2136 import _RFC2136Client
      
  >       self.rfc2136_client = _RFC2136Client(SERVER, PORT, NAME, SECRET, dns.tsig.HMAC_MD5,
          TIMEOUT)

  tests/dns_rfc2136_test.py:81: 
  _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
  certbot_dns_rfc2136/_internal/dns_rfc2136.py:109: in __init__
      self.keyring = dns.tsigkeyring.from_text({
  _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

  textring = {'a-tsig-key.':
  'SSB3b25kZXIgd2hvIHdpbGwgYm90aGVyIHRvIGRlY29kZSB0aGlzIHRleHQK'}

      def from_text(textring):
          """Convert a dictionary containing (textual DNS name, base64 secret) pairs
          into a binary keyring which has (dns.name.Name, binary secret) pairs.
          @rtype: dict"""
      
          keyring = {}
          for keytext in textring:
              keyname = dns.name.from_text(keytext)
  >           secret = base64.decodestring(maybe_encode(textring[keytext]))
  E           AttributeError: module 'base64' has no attribute 'decodestring'

  /usr/lib/python3/dist-packages/dns/tsigkeyring.py:35: AttributeError
  ===================== 12 failed, 7 passed in 0.50 seconds ======================
  E: pybuild pybuild:353: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_certbot-dns-rfc2136/build; python3.9 -m pytest tests
  dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.9 returned exit code 13

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dnspython/+bug/1907228/+subscriptions




More information about the foundations-bugs mailing list