This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 52c4e4ca5d23d38ec4eee6174d96aef879b01b95 | |
Author: John Griffith <[email protected]> | |
Date: Tue Jul 29 21:25:49 2014 -0600 | |
Switch to the new target object for LVM driver | |
This modifies the LVM driver (and the variants LIO, ISER) | |
to use the new seperate target object. Compatability is | |
maintained by using the old LVMxxx classes as wrappers or | |
stubbed out interfaces. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def retry(exc, tries=5, delay=1, backoff=2): | |
def retry_dec(f): | |
@wraps(f) | |
def func_retry(*args, **kwargs): | |
_tries, _delay = tries, delay | |
while _tries > 1: | |
try: | |
return f(*args, **kwargs) | |
except Exception as ex: | |
time.sleep(_delay) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<devices> | |
<emulator>/usr/bin/kvm-spice</emulator> | |
<disk type='file' device='disk'> | |
<driver name='qemu' type='qcow2' cache='none' discard='unmap'/> | |
<source file='/opt/stack/data/nova/instances/a32cee1a-0625-444f-b3c9-2c2fb630bb9d/disk'/> | |
<target dev='vda' bus='virtio'/> | |
<alias name='virtio-disk0'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> | |
</disk> | |
<disk type='block' device='disk'> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class KeywordArgumentAdapter(BaseLoggerAdapter): | |
"""Logger adapter to add keyword arguments to log record's extra data | |
""" | |
def process(self, msg, kwargs): | |
# Make a new extra dictionary combining the values we were | |
# given when we were constructed and anything from kwargs. | |
extra = {} | |
extra.update(self.extra) | |
if 'extra' in kwargs: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pushing the clients to PyPi | |
To confirm, if I want to push a version "2.0" out from our master branch, I just do: | |
git checkout master | |
git review -s | |
git tag -s "2.0" | |
git push --tags gerrit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
base_keys: { | |
'capacity_in_gb': 1000, | |
'allocated_capacity_in_gb': 5, | |
... | |
capabilities: { | |
'compression': {'capability_type': 'well_defined', | |
'default': 'true', | |
options: {'compression_type': ['lossy', 'lossless', 'special'], | |
'compression': ['true', 'false']}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* First we just added a few extra IP's with "nova add-fixed-ip <server> <network> | |
Don't configure them on the guest/instance, just allocated them and let xtest set them up | |
** You may have to do a "nova reset-network <instance-uuid>" | |
I didn't mess with 10G vs 1G, just put everything on 1G for now. | |
xtest --cluster-create=z --bindir=/sf/bin/ --nodes=1 --block-size=5368709120 --mipi eth0 --mip '192.168.140.6' --sipi eth0 --sip '192.168.140.6' --mvip 192.168.140.4 --svip 192.168.140.9 --xterm=0 -- --webpath=/sf/etc/webmgmt/ --pcachenumfiles=16 --pcachefilesizemb=5 --minflushthresholdmb=50 | |
TRY: | |
export ip-1=.1 | |
export ip-2=.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Use "nova network-add" after your'e up and running | |
nova network-create data-net --bridge br200 --multi-host T --fixed-range-v4 10.10.0.0/18 --share-address T --bridge-interface p2p1 | |
The above command SHOULD move the IP from p2p1 to br200, but this never seems to work for me. So I manually moved it: | |
ip addr del 10.10.60.23/255.255.192.0 | |
ip addr del 10.10.60.23/255.255.192.0 dev p2p1 | |
ip addr del 10.10.60.1/255.255.255.0 dev br200 | |
ip addr add 10.10.60.23/255.255.192.0 dev br200 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Params struct { | |
AccountID int `json:"accountID"` | |
Name string `json:"name"` | |
TotalSize int `json:"totalSize"` | |
} | |
type OtherParams struct { | |
GroupID int `json:"groupID"` | |
GroupName string `json:"groupName" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[local|localrc]] | |
HOST_IP=172.16.140.245 | |
SERVICE_HOST=172.16.140.245 | |
NETWORK_GATEWAY=10.1.0.1 | |
ACTIVE_TIMEOUT=90 | |
BOOT_TIMEOUT=90 | |
ASSOCIATE_TIMEOUT=60 | |
TERMINATE_TIMEOUT=60 | |
MYSQL_PASSWORD=solidfire | |
DATABASE_PASSWORD=solidfire |