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
@@ -386,10 +386,15 @@ class LVMISCSIDriver(LVMVolumeDriver, driver.ISCSIDriver): | |
# NOTE(jdg): For TgtAdm case iscsi_name is the ONLY param we need | |
# should clean this all up at some point in the future | |
- self.tgtadm.create_iscsi_target(iscsi_name, iscsi_target, | |
- 0, volume_path, chap_auth, | |
- check_exit_code=False, | |
- old_name=old_name) | |
+ if old_name is None: | |
+ self.tgtadm.create_iscsi_target(iscsi_name, iscsi_target, |
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
#!/usr/bin/env bash | |
# This little script is to make backporting patches easier. | |
# Instructions | |
# ------------ | |
# Make sure that <btranch> exists: | |
# git branch -D <branch> | |
# git checkout -b <branch> origin/<branch> | |
# Grab the file and stick it in your <project> directory: | |
# curl -OL https://raw.github.com/gist/2206428/bp.sh | |
# Make sure the script is runnable: |
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 VolumeQOSSpecs(BASE, CinderBase): | |
"""Represents qos specs as key/value pairs for a volume_type.""" | |
__tablename__ = 'volume_type_qos_specs' | |
id = Column(Integer, primary_key=True) | |
key = Column(String(255)) | |
value = Column(String(255)) | |
volume_type_id = Column(String(36), | |
ForeignKey('volume_types.id'), | |
nullable=False) | |
volume_type = relationship( |
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
vagrant@precise64 /opt/stack/cinder/cinder/volume/drivers $ git diff | |
diff --git a/cinder/brick/local_dev/lvm.py b/cinder/brick/local_dev/lvm.py | |
index 0037632..645698d 100644 | |
--- a/cinder/brick/local_dev/lvm.py | |
+++ b/cinder/brick/local_dev/lvm.py | |
@@ -626,3 +626,22 @@ class LVM(executor.Executor): | |
LOG.error(_('StdOut :%s') % err.stdout) | |
LOG.error(_('StdErr :%s') % err.stderr) | |
raise | |
+ |
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
diff --git a/nova/volume/san.py b/nova/volume/san.py | |
index 95627ff..4fba255 100644 | |
--- a/nova/volume/san.py | |
+++ b/nova/volume/san.py | |
@@ -32,6 +32,7 @@ import string | |
import uuid | |
from xml.etree import ElementTree | |
+from nova import context | |
from nova import exception |
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
➜ mercado diff san.py ~/Downloads/san.py | |
32d31 | |
< import time | |
962c961 | |
< | |
--- | |
> volume_list = self._get_volumes_by_sfaccount(sf_account['accountID']) | |
964,974c963,966 | |
< while iqn is None: | |
< volume_list = self._get_volumes_by_sfaccount(sf_account['accountID']) |
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
diff --git a/cinder/api/contrib/admin_actions.py b/cinder/api/contrib/admin_actions.py | |
index 4dbf736..65a55a6 100644 | |
--- a/cinder/api/contrib/admin_actions.py | |
+++ b/cinder/api/contrib/admin_actions.py | |
@@ -43,6 +43,22 @@ class AdminController(wsgi.Controller): | |
'error_deleting', | |
]) | |
+ #TODO(jdg): Valid status items | |
+ valid_attach_status = set([ |
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
#!/bin/bash | |
ip_suffix=$1 | |
X=( $(grep -r HWADDR /etc/sysconfig/network-scripts/ifcfg-*) ) | |
for line in "${X[@]}" | |
do | |
if [[ $line == *em1* ]]; then | |
em1_hwaddr=$(echo $line | cut -f2 -d=) |
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
https://gist.github.com/e1a175ecd6729b51ab71 |
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
diff --git a/cinder/api/contrib/admin_actions.py b/cinder/api/contrib/admin_actions.py | |
index 2766d35..5aa9bcb 100644 | |
--- a/cinder/api/contrib/admin_actions.py | |
+++ b/cinder/api/contrib/admin_actions.py | |
@@ -33,13 +33,10 @@ class AdminController(wsgi.Controller): | |
collection = None # api collection to extend | |
- # FIXME(clayg): this will be hard to keep up-to-date | |
- # Concrete classes can expand or over-ride |
OlderNewer