Guest agent incompatabilities with Mitaka

Bug #1583953 reported by Henrik Kramshoej
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Invalid
Undecided
Unassigned

Bug Description

Building Trove images seems to be hard, and largely undocumented.

So maybe I am doing something wrong, and would like a pointer to the official Trove image creation docs.

While trying to create image I did:
Launch instance, tried various, below are from Vivid
Installed trove-guest
Installed Mysql 5.6, made sure it was working listening on *:3306 and root pw set
Installed missing python rabbit module? Why not in trove dependencies?
Shut down instance
Created snapshot
Add snapshot image to Trove

Try to launch trove instance, trove create
- and start debugging

Image source:
glance --os-image-api-version 1 image-create --copy-from http://uec-images.ubuntu.com/vivid/current/vivid-server-cloudimg-amd64-disk1.img --disk-format qcow2 --container-format bare --name 'Ubuntu Vivid 15'

Commands used:
apt-get update && apt-get dist-upgrade
Install trove-guestagent
# apt-get install python-trove python-troveclient trove-common trove-guestagent

Install Mysql
apt-get install mysql-server-5.6
- fixup config, to uncomment bind_address=127.0.0.1, set root PW: SET authentication_string = PASSWORD('')

Missing module rabbit
# apt-get install python-pip
# pip install rabbit

# Uncomment rpc_backend=rabbit - which then ends up using default which is rabbit, go figure, but does not work when in place

The end point using the software versions:

root@mysql-template-vivid-56-01:~# dpkg -l | grep trove
ii python-trove 2015.1.0-0ubuntu1.2 all Database as a Service for OpenStack - Python lib
ii python-troveclient 1:1.0.9-0ubuntu1 all Client library for Openstack Trove API.
ii trove-common 2015.1.0-0ubuntu1.2 all Database as a Service for OpenStack - common files
ii trove-guestagent 2015.1.0-0ubuntu1.2 all Database as a Service for OpenStack - guest agent

and the server:
[root@cheese ~]# rpm -qa | grep trove
openstack-trove-conductor-5.0.0-1.el7.noarch
python-troveclient-2.1.1-1.el7.noarch
python-trove-5.0.0-1.el7.noarch
openstack-trove-taskmanager-5.0.0-1.el7.noarch
openstack-trove-common-5.0.0-1.el7.noarch
openstack-trove-5.0.0-1.el7.noarch
openstack-trove-api-5.0.0-1.el7.noarch

Note: servers installed with RDO Mitaka on CentOS 7 and everythin else is working.

The best result I can get is guest_agent starting and getting
prepare() got an unexpected keyword argument 'cluster_config'

Note: guest_info and trove guest agent config, IS injected into instance!

log from starting
root@trove-vivid-03:~# /usr/bin/trove-guestagent --config-dir=/etc/trove/conf.d
2016-05-19 12:57:37.288 1512 INFO trove.openstack.common.rpc.common [-] Connected to AMQP server on 10.50.41.5:5672
/usr/lib/python2.7/dist-packages/amqp/channel.py:608: DeprecationWarning: auto_delete exchanges has been deprecated
  'auto_delete exchanges has been deprecated'))
2016-05-19 12:57:37.306 1512 ERROR trove.openstack.common.rpc.amqp [req-c9b3066a-4c6f-45c2-95b5-d33719112655 7532f85b659b4d3799af73b9682f375d 7c4abb9123124544bd4e8db63ce64c6d - - -] Exception during message handling
2016-05-19 12:57:37.306 1512 TRACE trove.openstack.common.rpc.amqp Traceback (most recent call last):
2016-05-19 12:57:37.306 1512 TRACE trove.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/trove/openstack/common/rpc/amqp.py", line 440, in _process_data
2016-05-19 12:57:37.306 1512 TRACE trove.openstack.common.rpc.amqp **args)
2016-05-19 12:57:37.306 1512 TRACE trove.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/trove/openstack/common/rpc/dispatcher.py", line 172, in dispatch
2016-05-19 12:57:37.306 1512 TRACE trove.openstack.common.rpc.amqp result = getattr(proxyobj, method)(ctxt, **kwargs)
2016-05-19 12:57:37.306 1512 TRACE trove.openstack.common.rpc.amqp TypeError: prepare() got an unexpected keyword argument 'cluster_config'
2016-05-19 12:57:37.306 1512 TRACE trove.openstack.common.rpc.amqp
2016-05-19 12:58:17.337 1512 INFO trove.guestagent.datastore.service [req-c9b3066a-4c6f-45c2-95b5-d33719112655 7532f85b659b4d3799af73b9682f375d 7c4abb9123124544bd4e8db63ce64c6d - - -] Determining status of DB server...
2016-05-19 12:58:17.356 1512 INFO trove.guestagent.datastore.mysql.service [req-c9b3066a-4c6f-45c2-95b5-d33719112655 7532f85b659b4d3799af73b9682f375d 7c4abb9123124544bd4e8db63ce64c6d - - -] Service Status is RUNNING.

Revision history for this message
Amrith Kumar (amrith) wrote :
Changed in trove:
status: New → Invalid
Revision history for this message
Amrith Kumar (amrith) wrote :

There are now two books on Trove (full disclosure, I'm the author of one of them) and both attempt to describe how to build guest images. You can find them at Amazon or your favorite bookseller.

Revision history for this message
Amrith Kumar (amrith) wrote :

Finally, if the problem(s) you are having are based on using packaging of Trove, and in your case a combination of Red Hat and Canonical packaging, the bug(s) if any should be filed with the providers of the packaging not with the upstream project.

I'll send you additional contact information (in IRC) on the people you may be able to contact with questions about the respective packagings.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.