Skip to content

Instantly share code, notes, and snippets.

View denismakogon's full-sized avatar

Denys Makogon denismakogon

View GitHub Profile
$ trove user-list 64c8f37d-a126-4e8d-bfb8-23cb44432a99 ERROR: An error occurred communicating with the guest: Remote error: TroveError Not supported [u'Traceback (most recent call last):\n', u' File "/home/stack/trove/trove/openstack/common/rpc/amqp.py", line 440, in _process_data\n **args)\n', u' File "/home/stack/trove/trove/openstack/common/rpc/dispatcher.py", line 172, in dispatch\n result = getattr(proxyobj, method)(ctxt, **kwargs)\n', u' File "/home/stack/trove/trove/guestagent/datastore/mongodb/manager.py", line 130, in list_users\n raise exception.TroveError(ERROR_MSG)\n', u'TroveError: Not supported\n']..
@denismakogon
denismakogon / gist:8823279
Created February 5, 2014 13:09
pbkdf2 implementation
import hmac
import struct
import hashlib
import binascii
def force_bytes(s, encoding='utf-8', strings_only=False, errors='strict'):
"""
Similar to smart_bytes, except that lazy instances are resolved to
strings, rather than kept as lazy objects.
File "/opt/stack/trove/trove/taskmanager/models.py", line 481, in _build_volume_info
volume_info = self._create_volume(volume_size)
File "/opt/stack/trove/trove/taskmanager/models.py", line 510, in _create_volume
volume_size, name="mysql-%s" % self.id, description=volume_desc)
File "/opt/stack/python-cinderclient/cinderclient/v2/volumes.py", line 185, in create
return self._create('/volumes', body, 'volume')
File "/opt/stack/python-cinderclient/cinderclient/base.py", line 153, in _create
resp, body = self.api.client.post(url, body=body)
File "/opt/stack/python-cinderclient/cinderclient/client.py", line 209, in post
return self._cs_request(url, 'POST', **kwargs)
#!/bin/bash
passwd root <<_EOF_
root
root
_EOF_
rm -fr /etc/mysql
iptables -F
apt-get update
cd /tmp
wget http://mirror.netcologne.de/apache.org/couchdb/source/1.5.0/apache-couchdb-1.5.0.tar.gz
#!/bin/bash
passwd root <<_EOF_
root
root
_EOF_
rm -fr /etc/mysql
iptables -F
apt-get update
apt-get -y install build-essential m4 libncurses5-dev libssh-dev unixodbc-dev libgmp3-dev libwxgtk2.8-dev libglu1-mesa-dev fop xsltproc default-jdk
FS structure:
/template/
---------/datastore/
-------------------default.config.template
-------------------heat.template
-------------------override.config.template
-------------------/version_a/
---------------------------config.template
-------------------/version_b/
@denismakogon
denismakogon / gist:9209626
Last active August 29, 2015 13:56
Action items. TODO list
Action items:
- Tempest tests improvements;
- Separating agent code from codebase (https://blueprints.launchpad.net/trove/+spec/separate-guestagent-related-code);
- Replication/Clustering:
- Contract(nothing new);
- URL mapping (cluster, replication or /{tenant_id}/instances/).
- Point in time recovery;
- Guest transport.
- Guest versioning. Update or upgrade.
[DEFAULT]
...
[mysql]
...
[redis]
#!/bin/bash
passwd root <<_EOF_
root
root
_EOF_
iptables -F
apt-get update
apt-get install curl
[DEFAULT]
verbose = True
debug = True
bind_host = 0.0.0.0
bind_port = 8778
rabbit_host = 192.168.121.1
db_api_implementation = 'trove.db.sqlalchemy.api'
api_extensions_path = trove/extensions/routes
nova_proxy_admin_user = admin
nova_proxy_admin_pass = 14d2771debb24e62