Ask Your Question

beni's profile - activity

2016-03-05 13:02:12 -0500 received badge  Necromancer (source)
2015-08-04 04:13:21 -0500 received badge  Taxonomist
2014-12-05 15:41:53 -0500 commented question Unable to create trove db instances from Dashboard

Hi ankush, sorry for the late reply, I missed your comment, I don't follow ask.openstack regularly any more. The configuration I used is available here: https://github.com/blipp/openlab-open... . This is a Bash script I used to set up and configure Trove.

2014-10-05 11:04:27 -0500 received badge  Famous Question (source)
2014-10-02 22:01:20 -0500 received badge  Famous Question (source)
2014-09-16 14:31:23 -0500 commented question Openstack with single NIC and one public ip address

Another possibility would be to just use DevStack on a local machine.

2014-09-16 14:30:42 -0500 commented question Openstack with single NIC and one public ip address

If you just want to test things, what I think you want to do if you write “develop”, then you can create a NAT within your OpenStack host to provide the instances with somewhat “floating IPs”, see the answer to https://ask.openstack.org/en/question... .

2014-09-16 09:16:41 -0500 commented question Unable to create trove db instances from Dashboard

For questions concerning Trove, at the moment the best way is to join the IRC channel #openstack-trove on Freenode and ask there. Please post (question and) solution on ask.openstack.org then, so the community can profit! See https://wiki.openstack.org/wiki/IRC for more IRC channels of OpenStack.

2014-09-16 09:12:53 -0500 commented question Unable to create trove db instances from Dashboard

Regarding instances stuck at BUILD: have a look at nova list and see what the status is there. And see the log file of Trove and the one of Nova, if the status of the instance is not ok in nova list.

2014-09-16 09:09:58 -0500 received badge  Notable Question (source)
2014-09-16 09:07:08 -0500 commented question Unable to create trove db instances from Dashboard

See this bug report against the docs regarding the default region https://bugs.launchpad.net/bugs/1369329

2014-09-16 09:06:02 -0500 commented question Unable to create trove db instances from Dashboard

When creating the endpoint with keystone endpoint-create, have you used the right region? Because if you used for example Packstack to install OpenStack, the default region is "RegionOne", but the official OpenStack docs use "regionOne", and this is the default of python-keystoneclient.

2014-09-14 10:54:30 -0500 received badge  Organizer (source)
2014-09-13 12:00:47 -0500 received badge  Popular Question (source)
2014-09-13 11:14:18 -0500 received badge  Notable Question (source)
2014-09-13 11:14:18 -0500 received badge  Popular Question (source)
2014-09-13 10:37:46 -0500 received badge  Famous Question (source)
2014-09-13 10:37:46 -0500 received badge  Notable Question (source)
2014-09-13 10:37:46 -0500 received badge  Popular Question (source)
2014-08-25 09:49:18 -0500 commented question Why should packstack be run as regular user and not as root?

Just to let you know, I gave up on running Packstack as regular user, was too much hassle with SSH keys.

2014-08-25 09:45:11 -0500 answered a question [Trove] `trove list` results in ERROR: Unauthorized (HTTP 401)

Got it working with the following setup. My service tenant is services.

Set up everything like in the official OpenStack documentation, but:

Add another config section [keystone_authtoken] to all Trove config files like shown in the following Bash code:

for config_file in api-paste.ini trove.conf trove-taskmanager.conf trove-conductor.conf trove-guestagent.conf; do
        openstack-config --set /etc/trove/$config_file keystone_authtoken auth_uri http://$HOST_IP:35357/
        openstack-config --set /etc/trove/$config_file keystone_authtoken identity_uri http://$HOST_IP:35357/
        openstack-config --set /etc/trove/$config_file keystone_authtoken admin_password $TROVE_PASS
        openstack-config --set /etc/trove/$config_file keystone_authtoken admin_user trove
        openstack-config --set /etc/trove/$config_file keystone_authtoken admin_tenant_name services
done

Your auth_uri and identity_uri can look different, for example using https, or hostname and not IP.

2014-08-25 07:42:21 -0500 asked a question [Trove] `trove list` results in ERROR: Unauthorized (HTTP 401)

If as OpenStack user admin, that means, with sourced keystonerc_admin, I run trove list or trove datastore-list I get

ERROR: Unauthorized (HTTP 401).

The same happens with user trove (see below).

The log files trove.log and keystone.log show (full excerpts below):

trove.log:

  • Unexpected response from keystone service: {u'error': {u'message': u"object of type 'NoneType' has no len()", u'code': 400, u'title': u'Bad Request'}}
  • ServiceError: invalid json response
  • Authorization failed for token

keystone.log:

  • TypeError: object of type 'NoneType' has no len()

I run the stable branch of OpenStack Icehouse on Scientific Linux 6 (based on RHEL), installed with Packstack, with Trove release 2014.2.b2 and python-troveclient 1.0.5 (newest release/tag for both of them).

I think it is a problem with the users and tenants I configured for Trove. Someone having the same problem with Glance could fix it by putting the right login information into glance.conf, see a bug report on Launchpad.

For configuration of Trove I followed the OpenStack documentation [1], Trove's documentation for manual install [2] and the DevStack code [3]. These three use different combinations of users and tenants.

Does someone of you know which users and tenants have to be used?

At the moment, I have the following configuration:

Users and tenants:

  • tenant trove
  • user trove is member and admin in tenant trove and services, which is the service tenant in my installation of OpenStack
  • user admin is member and admin in tenant trove, and for testing even member and admin in services, but this didn't help

Trove's api-paste.ini:

[filter:authtoken]
admin_user=trove
admin_password=***
admin_tenant_name=services

trove-taskmanager.conf, trove-conductor.conf and trove-guestagent.conf:

[DEFAULT]
nova_proxy_admin_user=admin
nova_proxy_admin_pass=***
nova_proxy_admin_tenant_name=trove

[1] uses tenant services here.

trove.log

INFO eventlet.wsgi [-] (6221) accepted ('***.***.***.***', 45415)
DEBUG keystoneclient.middleware.auth_token [-] Authenticating user token __call__ /usr/lib/python2.6/site-packages/keystoneclient/middleware/auth_token.py:666
DEBUG keystoneclient.middleware.auth_token [-] Removing headers from request environment: X-Identity-Status,X-Domain-Id,X-Domain-Name,X-Project-Id,X-Project-Name,X-Project-Domain-Id,X-Project-Domain-Name,X-User-Id,X-User-Name,X-User-Domain-Id,X-User-Domain-Name,X-Roles,X-Service-Catalog,X-User,X-Tenant-Id,X-Tenant-Name,X-Tenant,X-Role _remove_auth_headers /usr/lib/python2.6/site-packages/keystoneclient/middleware/auth_token.py:725
WARNING keystoneclient.middleware.auth_token [-] Unexpected response from keystone service: {u'error': {u'message': u"object of type 'NoneType' has no len()", u'code': 400, u'title': u'Bad Request'}}
DEBUG keystoneclient.middleware.auth_token [-] Token validation failure. _validate_user_token /usr/lib/python2.6/site-packages/keystoneclient/middleware/auth_token.py:943
TRACE keystoneclient.middleware.auth_token Traceback (most recent call last):
TRACE keystoneclient.middleware.auth_token   File "/usr/lib/python2.6/site-packages/keystoneclient/middleware/auth_token.py", line 930, in _validate_user_token
TRACE keystoneclient.middleware.auth_token     verified = self.verify_signed_token(user_token, token_ids)
TRACE keystoneclient.middleware.auth_token   File "/usr/lib/python2.6/site-packages/keystoneclient/middleware/auth_token.py", line 1347, in verify_signed_token
TRACE keystoneclient.middleware.auth_token     if self.is_signed_token_revoked(token_ids):
TRACE keystoneclient.middleware.auth_token   File "/usr/lib/python2.6/site-packages/keystoneclient/middleware/auth_token.py", line 1299, in is_signed_token_revoked
TRACE keystoneclient.middleware.auth_token     if self._is_token_id_in_revoked_list(token_id):
TRACE keystoneclient.middleware.auth_token   File "/usr/lib ...
(more)
2014-08-20 06:26:51 -0500 commented question Unable to set password on istance

Ok, I will follow this guidelines the next time, thanks for converting to a comment this time.

2014-08-20 04:45:26 -0500 commented answer Unable to set password on istance

Unfortunately not as I just stumbled upon this documentation some days ago without trying it out myself. So, do you think a comment would be better than an answer?

2014-08-20 04:20:55 -0500 answered a question Unable to set password on istance
2014-08-18 10:28:27 -0500 commented answer has anyone achieved in getting a working Icehouse with packstack --allinone

You're welcome. I'm experiencing the same (looking for docs, …) while trying to setup OpenStack Trove. Good luck!

2014-08-18 04:47:55 -0500 commented question No network connectivity

Please provide more information. What is “the base”, how did you install OpenStack?

2014-08-18 04:46:15 -0500 answered a question Is it possible to inject 2 keypairs into an instance?

If you can use Cloudinit to set up your instance, that is, when the image you are using is Cloudinit enabled, you can write a Cloudinit file that adds more SSH public keys to authorized_keys . See http://cloudinit.readthedocs.org/en/l... for the syntax of cloudinit files and http://docs.openstack.org/user-guide/... for the usage of Cloudinit within OpenStack.

Another possibility is to wait until the machine has finished booting, then SSH to it with the one key you could inject and edit authorized_keys to include more keys.

2014-08-18 04:32:23 -0500 commented answer has anyone achieved in getting a working Icehouse with packstack --allinone

Unfortunately, I don't really know the different Neutron parts. Maybe it's better to create a new question for this.

2014-08-18 04:31:04 -0500 commented answer has anyone achieved in getting a working Icehouse with packstack --allinone

The NoneType issue reminds me of what I posted last week https://ask.openstack.org/en/question... So maybe you have to check the according Neutron config.

2014-08-18 04:19:03 -0500 received badge  Commentator
2014-08-18 04:19:03 -0500 commented question Problem launching an openstack instance containing a network

Same question was asked there, in case someone replies there: https://stackoverflow.com/questions/2...

2014-08-17 15:13:16 -0500 commented answer has anyone achieved in getting a working Icehouse with packstack --allinone

What do you mean with “sits there”? Did you source the RC file for the admin user (keystonerc_admin after a installation with Packstack)? Check openstack-status | less to see if Neutron and the other OpenStack services are running.

2014-08-15 14:59:45 -0500 commented answer How to fix Error appeared during Puppet run: 10.0.2.15_mysql.pp Error: mysqladmin -u root password " " returned 1 instead of one of [0]

Aren't there two dashes missing so it will be --answer-file?

2014-08-15 11:32:55 -0500 received badge  Self-Learner (source)
2014-08-15 09:55:03 -0500 answered a question Trove: Error: Unauthorized SSL23_GET_SERVER_HELLO:unknown protocol

HTTPS is default for the keystone client, so add the following to trove.conf, trove-conductor.conf, trove-taskmanager.conf, trove-guestagent.conf (see https://bugs.launchpad.net/devstack/+... ):

[keystone_authtoken]
auth_protocol = http

Of course it would be better to switch to HTTPS completely, at the latest when going to production.

2014-08-15 09:53:14 -0500 asked a question Trove: Error: Unauthorized SSL23_GET_SERVER_HELLO:unknown protocol

I installed OpenStack Icehouse on Scientific Linux 6 using Packstack. Then I followed the OpenStack documentation to setup Trove.

Now, if as OpenStack user admin I run trove list or trove datastore-list or click on Databases > Database Instances within Horizon I get ERROR: Unauthorized in case of the CLI and […] An unexpected error has occurred l…] in case of Horizon. Trove log shows

WARNING keystoneclient.middleware.auth_token [-] Retrying on HTTP connection exception: [Errno 1] _ssl.c:492: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
 WARNING keystoneclient.middleware.auth_token [-] Authorization failed for token
2014-08-15 09:40:36 -0500 received badge  Supporter (source)
2014-08-15 09:28:08 -0500 commented answer has anyone achieved in getting a working Icehouse with packstack --allinone

Actually I gave up running Packstack as normal user as the SSH issues I mentioned in my question annoyed me too much; and I think running Packstack as root will not lead to problems like the ones you describe in your question.

2014-08-15 09:20:55 -0500 received badge  Scholar (source)
2014-08-15 09:20:39 -0500 answered a question Trove taskmanager: CRITICAL root [-] 'NoneType' object has no attribute 'rpartition'

When I added taskmanager_manager = trove.taskmanager.manager.Manager to trove-taskmanager.conf, Trove taskmanager starts without failing. I found this in Devstack's code for the setup of Trove.

2014-08-15 09:15:22 -0500 asked a question Trove taskmanager: CRITICAL root [-] 'NoneType' object has no attribute 'rpartition'

I installed OpenStack Icehouse on Scientific Linux 6 using Packstack. Then I followed the OpenStack documentation to setup Trove.

When trying to start Trove taskmanager, it crashes with the error message (I have verbose and debug set to True in trove-taskmanager.conf)

CRITICAL root [-] 'NoneType' object has no attribute 'rpartition'
TRACE root Traceback (most recent call last):
TRACE root   File "/usr/bin/trove-taskmanager", line 10, in <module>
TRACE root     sys.exit(main())
TRACE root   File "/usr/lib/python2.6/site-packages/trove/cmd/taskmanager.py", line 58, in main
TRACE root     startup(None)
TRACE root   File "/usr/lib/python2.6/site-packages/trove/cmd/taskmanager.py", line 52, in startup
TRACE root     topic=topic)
TRACE root   File "/usr/lib/python2.6/site-packages/trove/common/rpc/service.py", line 36, in __init__
TRACE root     self.manager_impl = importutils.import_object(manager)
TRACE root   File "/usr/lib/python2.6/site-packages/trove/openstack/common/importutils.py", line 40, in import_object
TRACE root     return import_class(import_str)(*args, **kwargs)
TRACE root   File "/usr/lib/python2.6/site-packages/trove/openstack/common/importutils.py", line 28, in import_class
TRACE root     mod_str, _sep, class_str = import_str.rpartition('.') 
TRACE root AttributeError: 'NoneType' object has no attribute 'rpartition'
TRACE root