Skip to content

Instantly share code, notes, and snippets.

@cp16net
cp16net / trove-guestagent.log
Created July 24, 2015 04:13
trove-guestagent still fails to keep the grant statement when the configs are moved into place
2015-07-23 20:40:32.018 DEBUG trove.openstack.common.service [-] ******************************************************************************** from (pid=921) log_opt_values /usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py:2229
2015-07-23 20:40:32.044 DEBUG trove.common.rpc.service [-] Creating RPC server for service guestagent from (pid=921) start /home/ubuntu/trove/trove/common/rpc/service.py:54
2015-07-23 20:40:32.889 DEBUG oslo_messaging._drivers.amqp [-] Pool creating new connection from (pid=921) create /usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqp.py:103
2015-07-23 20:40:33.138 INFO oslo_messaging._drivers.impl_rabbit [-] Connecting to AMQP server on 10.0.0.1:5672
2015-07-23 20:40:34.591 INFO oslo_messaging._drivers.impl_rabbit [-] Connected to AMQP server on 10.0.0.1:5672
2015-07-23 20:40:35.127 DEBUG trove.guestagent.datastore.service [req-c1f9ea81-5438-413d-b73d-f57b5c5e2758 b3e64229a159444cb567fc97b0e514bc f52eda5160fa4751ae8eb85928d13445] Casting set_status message
@cp16net
cp16net / Vagrantfile
Created February 2, 2016 22:36
Vagrant file to create MariaDB 10.1 install of 2 instances.
# -*- mode: ruby -*-
# vi: set ft=ruby :
ENV['VAGRANT_DEFAULT_PROVIDER'] = 'libvirt'
Vagrant.configure(2) do |config|
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.scope = :machine
end
vagrant@packer-ubuntu-1404-server-vagrant:~$ redstack int-tests --group=couchdb_supported
/opt/stack/trove-integration/scripts ~
*******************************************************************************
Running Trove Integration Tests...
*******************************************************************************
python -B /opt/stack/trove-integration/scripts/../tests//integration/int_tests.py --verbose --logging-clear-handlers --group=couchdb_supported
RUNNING TEST ARGS : ['/opt/stack/trove-integration/scripts/../tests//integration/int_tests.py', '--verbose', '--logging-clear-handlers', '--group=couchdb_supported']
nose.config: INFO: Ignoring files matching ['^\\.', '^_', '^setup\\.py$']
nose.plugins.manager: DEBUG: Configuring plugins
nose.plugins.manager: DEBUG: Plugins enabled: [<nose.plugins.capture.Capture object at 0x7f7a1d49e410>, <nose.plugins.logcapture.LogCapture object at 0x7f7a1d49e450>, <nose.plugins.deprecated.Deprecated object at 0x7f7a1d49e850>, <nose.plugins.skip.Skip object at 0
vagrant@packer-ubuntu-1404-server-vagrant:~$ redstack int-tests --group=couchdb_supported --stop
/opt/stack/trove-integration/scripts ~
*******************************************************************************
Running Trove Integration Tests...
*******************************************************************************
python -B /opt/stack/trove-integration/scripts/../tests//integration/int_tests.py --verbose --logging-clear-handlers --group=couchdb_supported --stop
RUNNING TEST ARGS : ['/opt/stack/trove-integration/scripts/../tests//integration/int_tests.py', '--verbose', '--logging-clear-handlers', '--group=couchdb_supported', '--stop']
nose.config: INFO: Ignoring files matching ['^\\.', '^_', '^setup\\.py$']
nose.plugins.manager: DEBUG: Configuring plugins
nose.plugins.manager: DEBUG: Plugins enabled: [<nose.plugins.capture.Capture object at 0x7f7e90525c50>, <nose.plugins.logcapture.LogCapture object at 0x7f7e90525c90>, <nose.plugins.deprecated.Deprecated object at 0x7f7e904c00d0>, <nose.plugin
vagrant@packer-ubuntu-1404-server-vagrant:~$ redstack int-tests --group=couchdb_supported
/opt/stack/trove-integration/scripts ~
*******************************************************************************
Running Trove Integration Tests...
*******************************************************************************
python -B /opt/stack/trove-integration/scripts/../tests//integration/int_tests.py --verbose --logging-clear-handlers --group=couchdb_supported
RUNNING TEST ARGS : ['/opt/stack/trove-integration/scripts/../tests//integration/int_tests.py', '--verbose', '--logging-clear-handlers', '--group=couchdb_supported']
nose.config: INFO: Ignoring files matching ['^\\.', '^_', '^setup\\.py$']
nose.plugins.manager: DEBUG: Configuring plugins
nose.plugins.manager: DEBUG: Plugins enabled: [<nose.plugins.capture.Capture object at 0x7f63be67a3d0>, <nose.plugins.logcapture.LogCapture object at 0x7f63be67a410>, <nose.plugins.deprecated.Deprecated object at 0x7f63be67a810>, <nose.plugins.skip.Skip object at 0x
diff --git a/trove/tests/scenario/helpers/couchdb_helper.py b/trove/tests/scenario/helpers/couchdb_helper.py
index 503bd16..ceaa8b4 100644
--- a/trove/tests/scenario/helpers/couchdb_helper.py
+++ b/trove/tests/scenario/helpers/couchdb_helper.py
@@ -28,7 +28,13 @@ class CouchdbHelper(TestHelper):
self.database = 'foodb'
def create_client(self, host, *args, **kwargs):
- url = 'http://' + host + ':5984/'
+ username = kwargs.get("username")
vagrant@packer-ubuntu-1404-server-vagrant:~$ redstack int-tests --group=couchdb_supported
/opt/stack/trove-integration/scripts ~
*******************************************************************************
Running Trove Integration Tests...
*******************************************************************************
python -B /opt/stack/trove-integration/scripts/../tests//integration/int_tests.py --verbose --logging-clear-handlers --group=couchdb_supported
RUNNING TEST ARGS : ['/opt/stack/trove-integration/scripts/../tests//integration/int_tests.py', '--verbose', '--logging-clear-handlers', '--group=couchdb_supported']
nose.config: INFO: Ignoring files matching ['^\\.', '^_', '^setup\\.py$']
nose.plugins.manager: DEBUG: Configuring plugins
nose.plugins.manager: DEBUG: Plugins enabled: [<nose.plugins.capture.Capture object at 0x7ff74c5ef3d0>, <nose.plugins.logcapture.LogCapture object at 0x7ff74c5ef410>, <nose.plugins.deprecated.Deprecated object at 0x7ff74c5ef810>, <nose.plugins.skip.Skip object at 0x
DatabaseActionsGroup
Create an instance with initial databases. OK 13.60
Create databases on an existing instance. OK 0.70
List the created databases. FAIL
Ensure creating a database with blank specification fails. OK 0.12
Ensure creating a database with blank name fails. OK 0.16
Ensure creating an existing database fails. OK 0.11
Delete the created databases. OK 2.69
Delete non-existing databases. OK 0.80
Ensure creating a system database fails. FAIL
from trove.tests.scenario.helpers.test_helper import TestHelper
class CouchdbHelper(TestHelper):
def __init__(self, expected_override_name):
super(CouchdbHelper, self).__init__(expected_override_name)
def get_helper_credentials(self):
return {'name': 'lite', 'password': 'litepass', 'database': 'firstdb'}
diff --git a/trove/common/context.py b/trove/common/context.py
index 014aa50..c9dd1a6 100644
--- a/trove/common/context.py
+++ b/trove/common/context.py
@@ -34,6 +34,7 @@ class TroveContext(context.RequestContext):
def __init__(self, **kwargs):
self.limit = kwargs.pop('limit', None)
self.marker = kwargs.pop('marker', None)
+ self.datastore = kwargs.pop('datastore', None)
super(TroveContext, self).__init__(**kwargs)