Hi, I started trying out Barbican with devstack. Installation worked well.
But now after I authenticated to the commandline with > source openrc admin demo and then executing some command return the following error > barbican secret list -v --debug Starting new HTTP connection (1): 9.152.151.127 Starting new HTTP connection (1): 9.152.151.127 Failed to contact the endpoint at http://9.152.151.127:9311 for discovery. Fallback to using that endpoint as the base url. Starting new HTTP connection (2): 9.152.151.127 Unable to establish connection to http://9.152.151.127:9311/secrets Any idea how to debug this? There's nothing in the logs, netstat -lnutp | grep 9311 (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) tcp 0 0 0.0.0.0:9311 0.0.0.0:* LISTEN 22754/uwsgi Shows that uwsgi is listening and there are no firewall rules active. Also added some of the logs. Anybody an idea what might be wrong? Thanks Andreas (IRC: scheuran)
barbican secret list -v --debug found extension EntryPoint.parse('table = cliff.formatters.table:TableFormatter') found extension EntryPoint.parse('json = cliff.formatters.json_format:JSONFormatter') found extension EntryPoint.parse('csv = cliff.formatters.commaseparated:CSVLister') found extension EntryPoint.parse('value = cliff.formatters.value:ValueFormatter') found extension EntryPoint.parse('yaml = cliff.formatters.yaml_format:YAMLFormatter') Creating Client object Listing secrets - offset 0 limit 10 Making authentication request to http://9.152.151.127:5000/v2.0/tokens Starting new HTTP connection (1): 9.152.151.127 "POST /v2.0/tokens HTTP/1.1" 200 1051 REQ: curl -g -i -X GET http://9.152.151.127:9311 -H "Accept: application/json" -H "User-Agent: python-keystoneclient" Starting new HTTP connection (1): 9.152.151.127 Failed to contact the endpoint at http://9.152.151.127:9311 for discovery. Fallback to using that endpoint as the base url. REQ: curl -g -i -X GET http://9.152.151.127:9311/secrets -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}1091f8c4b9135f04c82670d120e4137103d88723" Starting new HTTP connection (2): 9.152.151.127 Unable to establish connection to http://9.152.151.127:9311/secrets Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/cliff/app.py", line 374, in run_subcommand result = cmd.run(parsed_args) File "/usr/lib/python2.7/site-packages/cliff/display.py", line 92, in run column_names, data = self.take_action(parsed_args) File "/opt/stack/devstack_data/python-barbicanclient/barbicanclient/barbican_cli/secrets.py", line 122, in take_action algorithm=args.algorithm, mode=args.mode, bits=args.bit_length) File "/opt/stack/devstack_data/python-barbicanclient/barbicanclient/secrets.py", line 576, in list response = self._api.get(self._entity, params=params) File "/opt/stack/devstack_data/python-barbicanclient/barbicanclient/client.py", line 72, in get return super(_HTTPClient, self).get(*args, **kwargs).json() File "/usr/lib/python2.7/site-packages/keystoneclient/adapter.py", line 170, in get return self.request(url, 'GET', **kwargs) File "/opt/stack/devstack_data/python-barbicanclient/barbicanclient/client.py", line 64, in request resp = super(_HTTPClient, self).request(*args, **kwargs) File "/usr/lib/python2.7/site-packages/keystoneclient/adapter.py", line 95, in request return self.session.request(url, method, **kwargs) File "/usr/lib/python2.7/site-packages/keystoneclient/utils.py", line 337, in inner return func(*args, **kwargs) File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 390, in request resp = send(**kwargs) File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 434, in _send_request raise exceptions.ConnectionRefused(msg) ConnectFailure: Unable to establish connection to http://9.152.151.127:9311/secrets Traceback (most recent call last): File "/bin/barbican", line 10, in <module> sys.exit(main()) File "/opt/stack/devstack_data/python-barbicanclient/barbicanclient/barbican.py", line 339, in main return barbican_app.run(argv) File "/opt/stack/devstack_data/python-barbicanclient/barbicanclient/barbican.py", line 334, in run return super(Barbican, self).run(argv) File "/usr/lib/python2.7/site-packages/cliff/app.py", line 255, in run result = self.run_subcommand(remainder) File "/usr/lib/python2.7/site-packages/cliff/app.py", line 374, in run_subcommand result = cmd.run(parsed_args) File "/usr/lib/python2.7/site-packages/cliff/display.py", line 92, in run column_names, data = self.take_action(parsed_args) File "/opt/stack/devstack_data/python-barbicanclient/barbicanclient/barbican_cli/secrets.py", line 122, in take_action algorithm=args.algorithm, mode=args.mode, bits=args.bit_length) File "/opt/stack/devstack_data/python-barbicanclient/barbicanclient/secrets.py", line 576, in list response = self._api.get(self._entity, params=params) File "/opt/stack/devstack_data/python-barbicanclient/barbicanclient/client.py", line 72, in get return super(_HTTPClient, self).get(*args, **kwargs).json() File "/usr/lib/python2.7/site-packages/keystoneclient/adapter.py", line 170, in get return self.request(url, 'GET', **kwargs) File "/opt/stack/devstack_data/python-barbicanclient/barbicanclient/client.py", line 64, in request resp = super(_HTTPClient, self).request(*args, **kwargs) File "/usr/lib/python2.7/site-packages/keystoneclient/adapter.py", line 95, in request return self.session.request(url, method, **kwargs) File "/usr/lib/python2.7/site-packages/keystoneclient/utils.py", line 337, in inner return func(*args, **kwargs) File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 390, in request resp = send(**kwargs) File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 434, in _send_request raise exceptions.ConnectionRefused(msg) keystoneauth1.exceptions.connection.ConnectFailure: Unable to establish connection to http://9.152.151.127:9311/secrets
uwsgi --master --emperor /etc/barbican/vassals & echo $! >/opt/stack/status/stack/barbican-svc.pid; fg || echo "barbican-svc failed to start" | tee "/opt/stack/status/stack/barbican-svc.failure" [1] 23119 uwsgi --master --emperor /etc/barbican/vassals *** Starting uWSGI 2.0.12 (64bit) on [Fri Jan 15 16:35:35 2016] *** compiled with version: 4.8.2 20140120 (Base 4.8.2-16) on 15 January 2016 10:55:19 os: Linux-3.10.0-123.20.1.el7_0.kvmibm.12.s390x #1 SMP Fri Jul 31 17:41:57 EDT 2015 nodename: zfwcec127 machine: s390x clock source: unix pcre jit disabled detected number of CPU cores: 4 current working directory: /opt/stack/devstack *** running under screen session 15588.stack *** detected binary path: /usr/bin/uwsgi your processes number limit is 4096 your memory page size is 4096 bytes detected max file descriptor number: 1024 lock engine: pthread robust mutexes thunder lock: disabled (you can enable it with --thunder-lock) *** starting uWSGI Emperor *** Python version: 2.7.5 (default, Jun 30 2015, 13:19:04) [GCC 4.8.2 20140120 (Base 4.8.2-16)] *** has_emperor mode detected (fd: 6) *** [uWSGI] getting INI configuration from barbican-api.ini open("./python_plugin.so"): No such file or directory [core/utils.c line 3684] !!! UNABLE to load uWSGI plugin: ./python_plugin.so: cannot open shared object file: No such file or directory !!! *** Starting uWSGI 2.0.12 (64bit) on [Fri Jan 15 16:35:35 2016] *** compiled with version: 4.8.2 20140120 (Base 4.8.2-16) on 15 January 2016 10:55:19 os: Linux-3.10.0-123.20.1.el7_0.kvmibm.12.s390x #1 SMP Fri Jul 31 17:41:57 EDT 2015 nodename: zfwcec127 machine: s390x clock source: unix pcre jit disabled detected number of CPU cores: 4 current working directory: /etc/barbican/vassals *** running under screen session 15588.stack *** detected binary path: /usr/bin/uwsgi your processes number limit is 4096 your memory page size is 4096 bytes detected max file descriptor number: 1024 lock engine: pthread robust mutexes thunder lock: disabled (you can enable it with --thunder-lock) uwsgi socket 0 bound to TCP address :9311 fd 3 Python version: 2.7.5 (default, Jun 30 2015, 13:19:04) [GCC 4.8.2 20140120 (Base 4.8.2-16)] *** Python threads support is disabled. You can enable it with --enable-threads *** Python main interpreter initialized at 0xab95edc0 your mercy for graceful operations on workers is 60 seconds *** Operational MODE: no-workers *** spawned uWSGI master process (pid: 23119) *** Python threads support is disabled. You can enable it with --enable-threads *** Python main interpreter initialized at 0xb1c9e380 your server socket listen backlog is limited to 100 connections your mercy for graceful operations on workers is 60 seconds mapped 268414 bytes (262 KB) for 1 cores *** Operational MODE: single process *** *** uWSGI is running in multiple interpreter mode *** spawned uWSGI master process (pid: 23121) Fri Jan 15 16:35:35 2016 - [emperor] vassal barbican-api.ini has been spawned spawned uWSGI worker 1 (pid: 23122, cores: 1) Loading paste environment: config:/etc/barbican/barbican-api-paste.ini Option "verbose" from group "DEFAULT" is deprecated for removal. Its value may be silently ignored in the future. 2016-01-15 16:35:36.410 23122 INFO barbican.model.repositories [-] Setting up database engine and session factory 2016-01-15 16:35:36.477 23122 INFO barbican.model.repositories [-] Updating schema to latest version 2016-01-15 16:35:36.482 23122 INFO alembic.runtime.migration [-] Context impl MySQLImpl. 2016-01-15 16:35:36.482 23122 INFO alembic.runtime.migration [-] Will assume non-transactional DDL. 2016-01-15 16:35:36.557 23122 INFO barbican.api.app [-] Barbican app created and initialized 2016-01-15 16:35:36.558 23122 WARNING keystonemiddleware.auth_token [-] Use of the auth_admin_prefix, auth_host, auth_port, auth_protocol, identity_uri, admin_token, admin_user, admin_password, and admin_tenant_name configuration options is deprecated in favor of auth_plugin and related options and may be removed in a future release. 2016-01-15 16:35:36.559 23122 WARNING keystonemiddleware.auth_token [-] Configuring auth_uri to point to the public identity endpoint is required; clients may not be able to authenticate against an admin endpoint 2016-01-15 16:35:36.559 23122 WARNING keystonemiddleware.auth_token [-] signing_dir mode is 0755 instead of 0700 WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0xb1c9e380 pid: 23122 Fri Jan 15 16:35:36 2016 - [emperor] vassal barbican-api.ini is ready to accept requests
_______________________________________________ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : openstack@lists.openstack.org Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack