[openstack-dev] Barbican : Unable to execute the curl command for uploading/retrieving the secrets with the latest Barbican code.

Asha Seshagiri asha.seshagiri at gmail.com
Tue May 12 23:31:35 UTC 2015


Hi All ,

Installed the barbican today taking the source from github and executed the
basic curl commands for retrieving and uploading the secrets.
Was unable to  execute the curl commands for retrieving and uploading the
secrets.
Please find the request and response for the command :

[root at Clientfor-HAProxy ~]# curl -X POST -H 'content-type:application/json'
-H 'X-Project-Id:12345' -d '{"payload": "my-secret-here",
"payload_content_type": "text/plain"}' http://localhost:9311/v1/secrets

*{"code": 403, "description": "Secret creation attempt not allowed - please
review your user/project privileges", "title": "Forbidden"} *
[root at Clientfor-HAProxy ~]# curl -H 'X-Project-Id: 12345'
http://localhost:9311/v1/secrets
*{"code": 403, "description": "Secret(s) retrieval attempt not allowed -
please review your user/project privileges", "title": "Forbidden"}*

Would like to know the changes that needs to be done in order to execute
the basic curl commands for Barbican.
Also noticed that admin config files are not loaded and only the APi file
is loaded .Please find the logs below :


*** Operational MODE: single process ***
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 9299)
Tue May 12 16:23:09 2015 - [emperor] vassal barbican-api.ini has been
spawned
spawned uWSGI worker 1 (pid: 9300, cores: 1)

*Loading paste environment:
config:/etc/barbican/barbican-api-paste.ini*2015-05-12
16:23:11.036 9300 INFO barbican.model.repositories [-] Setting up database
engine and session factory
2015-05-12 16:23:11.044 9300 DEBUG sqlalchemy.pool.NullPool [-] Created new
connection <sqlite3.Connection object at 0x53d8dc8> __connect
/usr/lib64/python2.7/site-packages/sqlalchemy/pool.py:540
2015-05-12 16:23:11.045 9300 DEBUG sqlalchemy.pool.NullPool [-] Connection
<sqlite3.Connection object at 0x53d8dc8> checked out from pool checkout
/usr/lib64/python2.7/site-packages/sqlalchemy/pool.py:458
2015-05-12 16:23:11.046 9300 DEBUG sqlalchemy.pool.NullPool [-] Connection
<sqlite3.Connection object at 0x53d8dc8> being returned to pool
_finalize_fairy /usr/lib64/python2.7/site-packages/sqlalchemy/pool.py:562
2015-05-12 16:23:11.046 9300 DEBUG sqlalchemy.pool.NullPool [-] Connection
<sqlite3.Connection object at 0x53d8dc8> rollback-on-return _reset
/usr/lib64/python2.7/site-packages/sqlalchemy/pool.py:698
2015-05-12 16:23:11.046 9300 DEBUG sqlalchemy.pool.NullPool [-] Closing
connection <sqlite3.Connection object at 0x53d8dc8> _close_connection
/usr/lib64/python2.7/site-packages/sqlalchemy/pool.py:248


*Any help would be highly appreciated since this would impact my work on
setting up HA proxy for Barbican*
Thanks in advance !

-- 
*Thanks and Regards,*
*Asha Seshagiri*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150512/c7a1fbbc/attachment.html>


More information about the OpenStack-dev mailing list