[Bug 1799746] Re: [SRU] PY3: when uploading file as secret: TypeError: a bytes-like object is required, not 'str'
This bug was fixed in the package barbican - 1:7.0.0-0ubuntu3~cloud0 --- barbican (1:7.0.0-0ubuntu3~cloud0) bionic-rocky; urgency=medium . * New update for the Ubuntu Cloud Archive. . barbican (1:7.0.0-0ubuntu3) cosmic; urgency=medium . * d/p/encode-b64payload.patch: Cherry-pick from upstream review (https://review.openstack.org/#/c/613324/) to ensure base64 payloads are correctly encoded in Python 3 (LP: #1799746). ** Changed in: cloud-archive Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1799746 Title: [SRU] PY3: when uploading file as secret: TypeError: a bytes-like object is required, not 'str' To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1799746/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1799746] Re: [SRU] PY3: when uploading file as secret: TypeError: a bytes-like object is required, not 'str'
This bug was fixed in the package barbican - 1:7.0.0-0ubuntu3~cloud0 --- barbican (1:7.0.0-0ubuntu3~cloud0) bionic-rocky; urgency=medium . * New update for the Ubuntu Cloud Archive. . barbican (1:7.0.0-0ubuntu3) cosmic; urgency=medium . * d/p/encode-b64payload.patch: Cherry-pick from upstream review (https://review.openstack.org/#/c/613324/) to ensure base64 payloads are correctly encoded in Python 3 (LP: #1799746). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1799746 Title: [SRU] PY3: when uploading file as secret: TypeError: a bytes-like object is required, not 'str' To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1799746/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1799746] Re: [SRU] PY3: when uploading file as secret: TypeError: a bytes-like object is required, not 'str'
This bug was fixed in the package barbican - 1:7.0.0-0ubuntu3 --- barbican (1:7.0.0-0ubuntu3) cosmic; urgency=medium * d/p/encode-b64payload.patch: Cherry-pick from upstream review (https://review.openstack.org/#/c/613324/) to ensure base64 payloads are correctly encoded in Python 3 (LP: #1799746). -- Corey Bryant Thu, 25 Oct 2018 09:48:28 -0400 ** Changed in: barbican (Ubuntu Cosmic) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1799746 Title: [SRU] PY3: when uploading file as secret: TypeError: a bytes-like object is required, not 'str' To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1799746/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1799746] Re: [SRU] PY3: when uploading file as secret: TypeError: a bytes-like object is required, not 'str'
This bug was fixed in the package barbican - 1:7.0.0-0ubuntu4 --- barbican (1:7.0.0-0ubuntu4) disco; urgency=medium * d/tests/barbican-shebangs-py3: Update shebang for Python 3.7. -- Corey Bryant Wed, 07 Nov 2018 09:22:03 -0500 ** Changed in: barbican (Ubuntu) Status: Triaged => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1799746 Title: [SRU] PY3: when uploading file as secret: TypeError: a bytes-like object is required, not 'str' To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1799746/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1799746] Re: [SRU] PY3: when uploading file as secret: TypeError: a bytes-like object is required, not 'str'
Verified successfully on cosmic-proposed: https://paste.ubuntu.com/p/BMqSv8rBqJ/ ** Tags removed: verification-needed-cosmic ** Tags added: verification-done-cosmic ** Tags added: verification-rocky-done -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1799746 Title: [SRU] PY3: when uploading file as secret: TypeError: a bytes-like object is required, not 'str' To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1799746/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1799746] Re: [SRU] PY3: when uploading file as secret: TypeError: a bytes-like object is required, not 'str'
s/cosmic-proposed/rocky-proposed ^^ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1799746 Title: [SRU] PY3: when uploading file as secret: TypeError: a bytes-like object is required, not 'str' To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1799746/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1799746] Re: [SRU] PY3: when uploading file as secret: TypeError: a bytes-like object is required, not 'str'
Verified successfully on cosmic-proposed: https://paste.ubuntu.com/p/gSyMMDdCXd/ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1799746 Title: [SRU] PY3: when uploading file as secret: TypeError: a bytes-like object is required, not 'str' To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1799746/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1799746] Re: [SRU] PY3: when uploading file as secret: TypeError: a bytes-like object is required, not 'str'
** Also affects: cloud-archive Importance: Undecided Status: New ** Also affects: cloud-archive/rocky Importance: Undecided Status: New ** Changed in: cloud-archive/rocky Importance: Undecided => High ** Changed in: cloud-archive/rocky Status: New => Triaged ** Changed in: cloud-archive Status: Triaged => Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1799746 Title: [SRU] PY3: when uploading file as secret: TypeError: a bytes-like object is required, not 'str' To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1799746/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1799746] Re: [SRU] PY3: when uploading file as secret: TypeError: a bytes-like object is required, not 'str'
Hello Ryan, or anyone else affected, Accepted barbican into cosmic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/barbican/1:7.0.0-0ubuntu3 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users. If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-cosmic to verification-done-cosmic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-cosmic. In either case, without details of your testing we will not be able to proceed. Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping! N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days. ** Changed in: barbican (Ubuntu Cosmic) Status: New => Fix Committed ** Tags added: verification-needed verification-needed-cosmic -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1799746 Title: [SRU] PY3: when uploading file as secret: TypeError: a bytes-like object is required, not 'str' To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/barbican/+bug/1799746/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1799746] Re: [SRU] PY3: when uploading file as secret: TypeError: a bytes-like object is required, not 'str'
** Summary changed: - PY3: when uploading file as secret: TypeError: a bytes-like object is required, not 'str' + [SRU] PY3: when uploading file as secret: TypeError: a bytes-like object is required, not 'str' ** Description changed: + [Impact] (clients) ubuntu@beisner-bastion:~/demo$ openstack secret store --name mypubkey2 --file ~/.ssh/id_rsa.pub 5xx Server error: Internal Server Error: Secret creation failure seen - please contact site administrator. Internal Server Error: Secret creation failure seen - please contact site administrator. ... dpkubuntu@juju-b7ad6b-beisner-0:~$ dpkg -l | grep barbican ii barbican-api1:7.0.0-0ubuntu2~cloud0 all OpenStack Key Management Service - API Server ii barbican-common 1:7.0.0-0ubuntu2~cloud0 all OpenStack Key Management Service - common files ii barbican-worker 1:7.0.0-0ubuntu2~cloud0 all OpenStack Key Management Service - Worker Node ii python3-barbican1:7.0.0-0ubuntu2~cloud0 all OpenStack Key Management Service - Python 3 files ii python3-barbicanclient 4.6.0-0ubuntu1 all OpenStack Key Management API client - Python 3.x ubuntu@juju-b7ad6b-beisner-0:~$ apt-cache policy barbican-common barbican-common: - Installed: 1:7.0.0-0ubuntu2~cloud0 - Candidate: 1:7.0.0-0ubuntu2~cloud0 - Version table: - *** 1:7.0.0-0ubuntu2~cloud0 500 - 500 http://ubuntu-cloud.archive.canonical.com/ubuntu bionic-proposed/rocky/main amd64 Packages - 100 /var/lib/dpkg/status - 1:6.0.0-0ubuntu1 500 - 500 http://nova.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 Packages + Installed: 1:7.0.0-0ubuntu2~cloud0 + Candidate: 1:7.0.0-0ubuntu2~cloud0 + Version table: + *** 1:7.0.0-0ubuntu2~cloud0 500 + 500 http://ubuntu-cloud.archive.canonical.com/ubuntu bionic-proposed/rocky/main amd64 Packages + 100 /var/lib/dpkg/status + 1:6.0.0-0ubuntu1 500 + 500 http://nova.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 Packages ... - [Wed Oct 24 16:28:27.617818 2018] [wsgi:error] [pid 20342:tid 140250918270720] [remote 10.5.0.11:46186] 2018-10-24 16:28:27.616 20342 ERROR barbican.api.controllers Traceback (most recent call last): [Wed Oct 24 16:28:27.617822 2018] [wsgi:error] [pid 20342:tid 140250918270720] [remote 10.5.0.11:46186] 2018-10-24 16:28:27.616 20342 ERROR barbican.api.controllers File "/usr/lib/python3/dist-packages/barbican/plugin/castellan_secret_store.py", line 86, in store_secret [Wed Oct 24 16:28:27.617825 2018] [wsgi:error] [pid 20342:tid 140250918270720] [remote 10.5.0.11:46186] 2018-10-24 16:28:27.616 20342 ERROR barbican.api.controllers opaque_data.OpaqueData(secret_dto.secret) [Wed Oct 24 16:28:27.617837 2018] [wsgi:error] [pid 20342:tid 140250918270720] [remote 10.5.0.11:46186] 2018-10-24 16:28:27.616 20342 ERROR barbican.api.controllers File "/usr/lib/python3/dist-packages/castellan/key_manager/vault_key_manager.py", line 319, in store [Wed Oct 24 16:28:27.617841 2018] [wsgi:error] [pid 20342:tid 140250918270720] [remote 10.5.0.11:46186] 2018-10-24 16:28:27.616 20342 ERROR barbican.api.controllers return self._store_key_value(key_id, key_value) [Wed Oct 24 16:28:27.617844 2018] [wsgi:error] [pid 20342:tid 140250918270720] [remote 10.5.0.11:46186] 2018-10-24 16:28:27.616 20342 ERROR barbican.api.controllers File "/usr/lib/python3/dist-packages/castellan/key_manager/vault_key_manager.py", line 276, in _store_key_value [Wed Oct 24 16:28:27.617848 2018] [wsgi:error] [pid 20342:tid 140250918270720] [remote 10.5.0.11:46186] 2018-10-24 16:28:27.616 20342 ERROR barbican.api.controllers 'value': binascii.hexlify(value.get_encoded()).decode('utf-8'), [Wed Oct 24 16:28:27.617852 2018] [wsgi:error] [pid 20342:tid 140250918270720] [remote 10.5.0.11:46186] 2018-10-24 16:28:27.616 20342 ERROR barbican.api.controllers TypeError: a bytes-like object is required, not 'str' - [Wed Oct 24 16:28:27.617855 2018] [wsgi:error] [pid 20342:tid 140250918270720] [remote 10.5.0.11:46186] 2018-10-24 16:28:27.616 20342 ERROR barbican.api.controllers + [Wed Oct 24 16:28:27.617855 2018] [wsgi:error] [pid 20342:tid 140250918270720] [remote 10.5.0.11:46186] 2018-10-24 16:28:27.616 20342 ERROR barbican.api.controllers [Wed Oct 24 16:28:27.617858 2018] [wsgi:error] [pid 20342:tid 140250918270720] [remote 10.5.0.11:46186] 2018-10-24 16:28:27.616 20342 ERROR barbican.api.controllers During handling of the above exception, another exception occurred: - [Wed Oct 24 16:28:27.617862 2018] [wsgi:error] [pid 20342:tid 140250918270720] [remote 10.5.0.11:46186] 2018-10-24 16:28:27.616 20342 ERROR barbican.api.controllers + [Wed Oct 24 16:28:27.617862 2018] [wsgi:error] [pid 20342:tid 140250918270720]