Skip to content

Instantly share code, notes, and snippets.

View hub-cap's full-sized avatar

Michael Basnight hub-cap

View GitHub Profile
Building dependency tree
Reading state information... Done
Package 'xz-lzma' is not installed, so not removed
E: Unable to locate package libboost-iostreams1.46.1
E: Couldn't find any package by regex 'libboost-iostreams1.46.1'
E: Unable to locate package linux-image-3.2.0-37-generic
E: Couldn't find any package by regex 'linux-image-3.2.0-37-generic'
+ cleanup
+ unmount_image
class Package(object):
if os.path.isfile("/etc/debian_version"):
__metaclass__ = DebianPackagerMixin
elif os.path.isfile("/etc/redhat-release"):
__metaclass__ = RedhatPackagerMixin
else:
__metaclass__ = DefaultPackage
# common stuff here
flow
POST /instances { type: mysql, other: junk }
response { id: blah,
capabilities: { actions: /instances/blah/actions,
service: /instances/blah/mysql
}
}
now you can query those services to know what you can do
trove.instance.models: INFO: service status=<trove.instance.models.InstanceServiceStatus object at 0x1061e00d0>
trove.taskmanager.models: DEBUG: trove volume support = True
trove.taskmanager.models: INFO: Entering create_volume
trove.taskmanager.models: DEBUG: Starting to create the volume for the instance
trove.taskmanager.models: ERROR: Error provisioning volume for instance.
trove.taskmanager.models: ERROR: create() got an unexpected keyword argument 'display_name'
trove.taskmanager.models: ERROR: Traceback (most recent call last):
File "/Users/mbasnigh/Documents/workspace/python/db/trove/trove/trove/taskmanager/models.py", line 266, in _build_volume_info
volume_info = self._create_volume(volume_size)
File "/Users/mbasnigh/Documents/workspace/python/db/trove/trove/trove/taskmanager/models.py", line 298, in _create_volume
diff --git a/etc/trove/trove.conf.test b/etc/trove/trove.conf.test
index 3ecbe67..07f05be 100644
--- a/etc/trove/trove.conf.test
+++ b/etc/trove/trove.conf.test
@@ -3,12 +3,12 @@
# Fake out the remote implementations
remote_implementation = fake
remote_nova_client = trove.tests.fakes.nova.fake_create_nova_client
-remote_nova_volume_client = trove.tests.fakes.nova.fake_create_nova_volume_client
+remote_cinder_client = trove.tests.fakes.nova.fake_create_cinder_client
# Copyright 2012 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
3 sudo apt-get install git
4 git clone https://github.com/openstack-dev/devstack.git
5 cd devstack/
6 ./stack.sh
7 history
proboscis.case.MethodTest (test_volume_resize) ... ok
proboscis.case.MethodTest (test_volume_resize_success) ... ok
proboscis.case.MethodTest (test_resize_volume_usage_event_sent) ... ok
proboscis.case.MethodTest (test_volume_resize_success_databases) ... ok
diff --git a/trove/tests/api/instances_actions.py b/trove/tests/api/instances_actions.py
index 5139997..dc97019 100644
--- a/trove/tests/api/instances_actions.py
+++ b/trove/tests/api/instances_actions.py
@@ -584,7 +584,7 @@ def resize_should_not_delete_users():
@test(runs_after=[ResizeInstanceTest], depends_on=[create_user],
- groups=[GROUP, tests.INSTANCES],
+ groups=[GROUP, INSTANCE_GROUP, tests.INSTANCES],
@test(groups=[tests.INSTANCES, INSTANCE_GROUP, GROUP,
GROUP + ".resize.volume"],
depends_on_groups=[GROUP_START], depends_on=[create_user],
runs_after=[ResizeInstanceTest],
enabled=VOLUME_SUPPORT)