[Bug 1800175] Re: cannot update value for an existing kv - Conflict: Secret already has data, cannot modify i

Ryan Beisner 1800175 at bugs.launchpad.net
Fri Oct 26 15:57:39 UTC 2018


http://paste.ubuntu.com/p/2x4gnkNCcv/

Fri Oct 26 15:50:27.038740 2018] [wsgi:error] [pid 26934:tid 140087620437760] [remote 10.5.0.11:52536] 2018-10-26 15:50:27.038 26934 ERROR barbican.api.controllers [req-792d9aec-3d0e-4318-a08c-ec62af740e1b 174f3123041f42818318b4ce4d46d755 a5e22ca876884268bf8c2dba92863ecd - 7e87323e783a41a6a9ba9d0763ae3f38 7e87323e783a41a6a9ba9d0763ae3f38] Webob error seen: webob.exc.HTTPConflict: Secret already has data, cannot modify it.
[Fri Oct 26 15:50:27.038921 2018] [wsgi:error] [pid 26934:tid 140087620437760] [remote 10.5.0.11:52536] 2018-10-26 15:50:27.038 26934 ERROR barbican.api.controllers Traceback (most recent call last):
[Fri Oct 26 15:50:27.039027 2018] [wsgi:error] [pid 26934:tid 140087620437760] [remote 10.5.0.11:52536] 2018-10-26 15:50:27.038 26934 ERROR barbican.api.controllers   File "/usr/lib/python3/dist-packages/barbican/api/controllers/__init__.py", line 108, in handler
[Fri Oct 26 15:50:27.039124 2018] [wsgi:error] [pid 26934:tid 140087620437760] [remote 10.5.0.11:52536] 2018-10-26 15:50:27.038 26934 ERROR barbican.api.controllers     return fn(inst, *args, **kwargs)
[Fri Oct 26 15:50:27.039227 2018] [wsgi:error] [pid 26934:tid 140087620437760] [remote 10.5.0.11:52536] 2018-10-26 15:50:27.038 26934 ERROR barbican.api.controllers   File "/usr/lib/python3/dist-packages/barbican/api/controllers/__init__.py", line 94, in enforcer
[Fri Oct 26 15:50:27.039337 2018] [wsgi:error] [pid 26934:tid 140087620437760] [remote 10.5.0.11:52536] 2018-10-26 15:50:27.038 26934 ERROR barbican.api.controllers     return fn(inst, *args, **kwargs)
[Fri Oct 26 15:50:27.039439 2018] [wsgi:error] [pid 26934:tid 140087620437760] [remote 10.5.0.11:52536] 2018-10-26 15:50:27.038 26934 ERROR barbican.api.controllers   File "/usr/lib/python3/dist-packages/barbican/api/controllers/__init__.py", line 156, in content_types_enforcer
[Fri Oct 26 15:50:27.039535 2018] [wsgi:error] [pid 26934:tid 140087620437760] [remote 10.5.0.11:52536] 2018-10-26 15:50:27.038 26934 ERROR barbican.api.controllers     return fn(inst, *args, **kwargs)
[Fri Oct 26 15:50:27.039628 2018] [wsgi:error] [pid 26934:tid 140087620437760] [remote 10.5.0.11:52536] 2018-10-26 15:50:27.038 26934 ERROR barbican.api.controllers   File "/usr/lib/python3/dist-packages/barbican/api/controllers/secrets.py", line 237, in on_put
[Fri Oct 26 15:50:27.039729 2018] [wsgi:error] [pid 26934:tid 140087620437760] [remote 10.5.0.11:52536] 2018-10-26 15:50:27.038 26934 ERROR barbican.api.controllers     _secret_already_has_data()
[Fri Oct 26 15:50:27.039834 2018] [wsgi:error] [pid 26934:tid 140087620437760] [remote 10.5.0.11:52536] 2018-10-26 15:50:27.038 26934 ERROR barbican.api.controllers   File "/usr/lib/python3/dist-packages/barbican/api/controllers/secrets.py", line 56, in _secret_already_has_data
[Fri Oct 26 15:50:27.039913 2018] [wsgi:error] [pid 26934:tid 140087620437760] [remote 10.5.0.11:52536] 2018-10-26 15:50:27.038 26934 ERROR barbican.api.controllers     pecan.abort(409, u._("Secret already has data, cannot modify it."))
[Fri Oct 26 15:50:27.039997 2018] [wsgi:error] [pid 26934:tid 140087620437760] [remote 10.5.0.11:52536] 2018-10-26 15:50:27.038 26934 ERROR barbican.api.controllers   File "/usr/lib/python3/dist-packages/pecan/core.py", line 135, in abort
[Fri Oct 26 15:50:27.040071 2018] [wsgi:error] [pid 26934:tid 140087620437760] [remote 10.5.0.11:52536] 2018-10-26 15:50:27.038 26934 ERROR barbican.api.controllers     raise webob_exception.with_traceback(traceback)
[Fri Oct 26 15:50:27.040144 2018] [wsgi:error] [pid 26934:tid 140087620437760] [remote 10.5.0.11:52536] 2018-10-26 15:50:27.038 26934 ERROR barbican.api.controllers webob.exc.HTTPConflict: Secret already has data, cannot modify it.
[Fri Oct 26 15:50:27.040220 2018] [wsgi:error] [pid 26934:tid 140087620437760] [remote 10.5.0.11:52536] 2018-10-26 15:50:27.038 26934 ERROR barbican.api.controllers \x1b[00m
[Fri Oct 26 15:50:27.040302 2018] [wsgi:error] [pid 26934:tid 140087620437760] [remote 10.5.0.11:52536] 
[Fri Oct 26 15:50:27.042854 2018] [wsgi:error] [pid 26934:tid 140087620437760] [remote 10.5.0.11:52536] 2018-10-26 15:50:27.042 26934 INFO barbican.api.middleware.context [req-792d9aec-3d0e-4318-a08c-ec62af740e1b 174f3123041f42818318b4ce4d46d755 a5e22ca876884268bf8c2dba92863ecd - 7e87323e783a41a6a9ba9d0763ae3f38 7e87323e783a41a6a9ba9d0763ae3f38] Processed request: 409 Conflict - PUT http://10.5.0.11:9312/v1/secrets/dfe00045-6adb-4839-9e39-5902a7c966aa\x1b[00m


** Summary changed:

- cannot update value for an existing kv - Conflict: Secret already has data, cannot modify i
+ when updating value for an existing kv - Conflict: Secret already has data, cannot modify it

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

Title:
  when updating value for an existing kv - Conflict: Secret already has
  data, cannot modify it

Status in OpenStack Barbican-Vault Charm:
  New
Status in barbican package in Ubuntu:
  New

Bug description:
  (clients) 1 ubuntu at beisner-bastion:~/demo$ openstack secret store --name kv_bucket_001
  +---------------+-----------------------------------------------------------------------+
  | Field         | Value                                                                 |
  +---------------+-----------------------------------------------------------------------+
  | Secret href   | http://10.5.0.11:9312/v1/secrets/dfe00045-6adb-4839-9e39-5902a7c966aa |
  | Name          | kv_bucket_001                                                         |
  | Created       | None                                                                  |
  | Status        | None                                                                  |
  | Content types | None                                                                  |
  | Algorithm     | aes                                                                   |
  | Bit length    | 256                                                                   |
  | Secret type   | opaque                                                                |
  | Mode          | cbc                                                                   |
  | Expiration    | None                                                                  |
  +---------------+-----------------------------------------------------------------------+
  (clients) ubuntu at beisner-bastion:~/demo$ openstack secret update http://10.5.0.11:9312/v1/secrets/dfe00045-6adb-4839-9e39-5902a7c966aa "Hello!"
  (clients) ubuntu at beisner-bastion:~/demo$ openstack secret get -d http://10.5.0.11:9312/v1/secrets/dfe00045-6adb-4839-9e39-5902a7c966aa --format value
  Hello!

  (clients) ubuntu at beisner-bastion:~/demo$ openstack secret update http://10.5.0.11:9312/v1/secrets/dfe00045-6adb-4839-9e39-5902a7c966aa "Goodbye!"
  4xx Client error: Conflict: Secret already has data, cannot modify it.
  Conflict: Secret already has data, cannot modify it.

To manage notifications about this bug go to:
https://bugs.launchpad.net/charm-barbican-vault/+bug/1800175/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list