Skip to content

Instantly share code, notes, and snippets.

View leseb's full-sized avatar
👺

Sébastien Han leseb

👺
View GitHub Profile
$ git clone https://github.com/openstack-dev/devstack.git
# Misc
DATABASE_PASSWORD=password
ADMIN_PASSWORD=password
SERVICE_PASSWORD=password
SERVICE_TOKEN=password
RABBIT_PASSWORD=password
# Enable Logging
LOGFILE=/opt/stack/logs/stack.sh.log
VERBOSE=True
You can use OpenStack Glance to store images in a Ceph Block Device, and you
+- **Guest Disks**: Guest disks are guest operating system disks.
+ By default, when you boot a virtual machine,
+ its disk appears as a file on the filesystem of the hypervisor
+ (usually under ``/var/lib/nova/instances/<uuid>/``). Since Havana, it’s
+ possible to directly boot every virtual machine inside Ceph.
+ This is really handy because it allows us to easily perform
+ maintenance operation with the live-migration process.
+ On the other hand, if your hypervisor dies it’s also really convenient
+ to trigger ``nova evacuate`` and almost seamlessly run the virtual machine
628c628,629
< specs = {}
---
> qos = {}
> specs = None
630,631c631,632
< res = volume_types.get_volume_type_qos_specs(typeid)
< specs = res['qos_specs']
---
> res = volume_types.get_volume_type_qos_specs(typeid)
#!/bin/bash
echo "lol"
#!/bin/bash
echo "toto"
diff --git a/cinder/volume/drivers/rbd.py b/cinder/volume/drivers/rbd.py
index c9016bf..9365b86 100644
--- a/cinder/volume/drivers/rbd.py
+++ b/cinder/volume/drivers/rbd.py
@@ -54,8 +54,9 @@ class RBDDriver(driver.VolumeDriver):
def __init__(self, *args, **kwargs):
super(RBDDriver, self).__init__(*args, **kwargs)
self.configuration.append_config_values(rbd_opts)
+ volume_backend_name = self.configuration.safe_get('volume_backend_name') or 'RBD'
self._stats = dict(
@leseb
leseb / gist:3273241
Created August 6, 2012 10:21
ext3 to ext4
@@ -66 +66 @@ cfg.MultiStrOpt() {
cfg.MultiStrOpt('virt_mkfs',
default=[
- 'default=mkfs.ext3 -L %(fs_label)s -F %(target)s',
+ 'default=mkfs.ext4 -L %(fs_label)s -F %(target)s',
'linux=mkfs.ext3 -L %(fs_label)s -F %(target)s',
'windows=mkfs.ntfs'
' --force --fast --label %(fs_label)s %(target)s',
# NOTE(yamahata): vfat case
#'windows=mkfs.vfat -n %(fs_label)s %(target)s',
#!/bin/sh
# Shell script to install your public key on a remote machine
# Takes the remote machine name as an argument.
# Obviously, the remote machine must accept password authentication,
# or one of the other keys in your ssh-agent, for this to work.
#
# http://www.devthought.com/2009/09/19/get-ssh-copy-id-in-mac-os-x/
#
@@ -144,7 +144,7 @@ find_rbd_dev() {
rbd_validate_all() {
# Test for configuration errors first
if [ -z "$OCF_RESKEY_name" ]; then
- ocf_log err 'Required parameter "name" is unset!'
+ ocf_log err "Required parameter "name" is unset!"
exit $OCF_ERR_CONFIGURED