Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am ebalduf on github.
  • I am ebalduf (https://keybase.io/ebalduf) on keybase.
  • I have a public key whose fingerprint is 93F5 9974 C50F 3E3A 50D1 6A4E 9803 B82E 0F37 A7CA

To claim this, I am signing this object:

@ebalduf
ebalduf / gist:4470779365f4aee06a874fcde84185a8
Created April 12, 2016 17:13
Logic to deal with Glanceclient changes
# Is the image owned by this tenant or public?
if ((not image_meta.get('is_public', False)) and
(image_meta.get('visibility', 'private') != 'public') and
(image_meta['owner'] != volume['project_id'])):
LOG.warning(_("Requested image is not "
"accesible by current Tenant."))
return None, False
@ebalduf
ebalduf / multi.diff
Created December 25, 2015 21:48
This diff is a patch for stable/kilo to allow backends who's drivers do not support discovery, to work when [libvirt] iscsi_use_multipath = True in /etc/nova/nova.conf
diff --git a/nova/virt/libvirt/volume.py b/nova/virt/libvirt/volume.py
index 59e3835..a224d34 100644
--- a/nova/virt/libvirt/volume.py
+++ b/nova/virt/libvirt/volume.py
@@ -393,6 +393,11 @@ class LibvirtISCSIVolumeDriver(LibvirtBaseVolumeDriver):
@utils.synchronized('connect_volume')
def connect_volume(self, connection_info, disk_info):
"""Attach the volume to instance_name."""
+ def _normal_discover(iscsi_properties):
+ self._connect_to_iscsi_portal(iscsi_properties)
@ebalduf
ebalduf / devstack.yaml
Created August 12, 2015 20:46
Heat template to setup devstack
heat_template_version: 2014-10-16
description: >
HOT template to instansiate an instance (ubuntu) and get it to run devstack
parameters:
flavor:
type: string
description: Flavor to use for servers
default: m1.large
constraints:
@ebalduf
ebalduf / local.conf
Created August 12, 2015 20:39
Laptop VM local.conf for single interface
[[local|localrc]]
GIT_BASE=${GIT_BASE:-https://github.com}
DEST=/opt/stack/new
SERVICE_DIR=/tmp/OpenStack/services
ACTIVE_TIMEOUT=90
BOOT_TIMEOUT=90
ASSOCIATE_TIMEOUT=60
TERMINATE_TIMEOUT=60
MYSQL_PASSWORD=secret
DATABASE_PASSWORD=secret
[DEFAULT]
vif_plugging_timeout = 300
vif_plugging_is_fatal = True
linuxnet_interface_driver =
security_group_api = neutron
network_api_class = nova.network.neutronv2.api.API
firewall_driver = nova.virt.firewall.NoopFirewallDriver
compute_driver = libvirt.LibvirtDriver
default_ephemeral_format = ext4
metadata_workers = 2