Comment 17 for bug 1799746

Revision history for this message
Ryan Beisner (1chb1n) wrote : Re: PY3: when uploading file as secret: TypeError: a bytes-like object is required, not 'str'

Upgraded barbican pkgs on the unit, restarted the unit. Client details and output below. I didn't see any CCB entries in the log, but it's attached. I've also clarified with the date > file.txt as a clean example.

ubuntu@juju-b7ad6b-beisner-0:/var/log/barbican$ apt-cache policy barbican-common
barbican-common:
  Installed: 1:7.0.0-0ubuntu3~ubuntu18.04.1~ppa201810241636
  Candidate: 1:7.0.0-0ubuntu3~ubuntu18.04.1~ppa201810241636
  Version table:
 *** 1:7.0.0-0ubuntu3~ubuntu18.04.1~ppa201810241636 500
        500 http://ppa.launchpad.net/corey.bryant/bionic-rocky/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status
     1:7.0.0-0ubuntu2~cloud0 500
        500 http://ubuntu-cloud.archive.canonical.com/ubuntu bionic-proposed/rocky/main amd64 Packages
     1:6.0.0-0ubuntu1 500
        500 http://nova.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 Packages

---

(clients) ubuntu@beisner-bastion:~/demo$ pip freeze | egrep "barbican|openstack"
openstacksdk==0.18.1
python-barbicanclient==4.7.0
python-openstackclient==3.16.1

---

(clients) ubuntu@beisner-bastion:~/demo$ date > file.txt
(clients) ubuntu@beisner-bastion:~/demo$ openstack secret store --name store_bucket --file file.txt
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.

---

Logs:

http://paste.ubuntu.com/p/hNJKwH6VHt/