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/compute/api.py b/nova/compute/api.py | |
| index b021152..bc914ac 100644 | |
| --- a/nova/compute/api.py | |
| +++ b/nova/compute/api.py | |
| @@ -1270,6 +1270,8 @@ class API(base.Base): | |
| snapshot_id = bdm.snapshot_id | |
| volume_id = bdm.volume_id | |
| image_id = bdm.image_id | |
| + import pprint | |
| + LOG.warning("BDM %s" % pprint.pformat(vars(bdm))) |
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/volume/drivers/san/hp/hp_3par_common.py b/cinder/volume/drivers/san/hp/hp_3par_common.py | |
| index 3081c33..db4a063 100644 | |
| --- a/cinder/volume/drivers/san/hp/hp_3par_common.py | |
| +++ b/cinder/volume/drivers/san/hp/hp_3par_common.py | |
| @@ -1066,11 +1066,18 @@ class HP3PARCommon(object): | |
| active_volume_vluns.append(vlun) | |
| else: | |
| inactive_volume_vluns.append(vlun) | |
| + | |
| if active_volume_vluns: |
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/python | |
| # -*- coding: utf-8 -*- | |
| active = [{ | |
| u'failedPathPol': 1, | |
| u'volumeName': u'osv-bAnG.s8FQ7OStMdtxS0Zow', | |
| u'hostname': u'dev-os-compute0067', | |
| u'portPos': {u'node': 2, u'slot': 2, u'cardPort': 1}, | |
| u'multipathing': 1, | |
| u'failedPathInterval': 0, | |
| u'active': True, |
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/volume/drivers/san/hp/hp_3par_common.py b/cinder/volume/drivers/san/hp/hp_3par_common.py | |
| index 3081c33..e5f5c30 100644 | |
| --- a/cinder/volume/drivers/san/hp/hp_3par_common.py | |
| +++ b/cinder/volume/drivers/san/hp/hp_3par_common.py | |
| @@ -1066,11 +1066,18 @@ class HP3PARCommon(object): | |
| active_volume_vluns.append(vlun) | |
| else: | |
| inactive_volume_vluns.append(vlun) | |
| + | |
| + LOG.warning("Active volume(%s) VLUNS : %s" % |
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/virt/block_device.py b/nova/virt/block_device.py | |
| index e86abb7..75d8808 100644 | |
| --- a/nova/virt/block_device.py | |
| +++ b/nova/virt/block_device.py | |
| @@ -338,6 +338,8 @@ class DriverVolumeBlockDevice(DriverBlockDevice): | |
| if 'serial' not in connection_info: | |
| connection_info['serial'] = self.volume_id | |
| self._preserve_multipath_id(connection_info) | |
| + original_info = self['connection_info'] | |
| + connection_info['_original_info'] = original_info |
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/hpe3parclient/client.py b/hpe3parclient/client.py | |
| index 7272f70..9ad988f 100644 | |
| --- a/hpe3parclient/client.py | |
| +++ b/hpe3parclient/client.py | |
| @@ -711,7 +711,7 @@ class HPE3ParClient(object): | |
| response, body = self.http.put('/volumes/%s' % name, body=info) | |
| return body | |
| - def copyVolume(self, src_name, dest_name, dest_cpg, optional=None): | |
| + def copyVolume(self, src_name, dest_name, dest_cpg=None, optional=None): |
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 process_lun_id(lun_id): | |
| if isinstance(lun_id, list): | |
| processed = [] | |
| for x in lun_id: | |
| if x > 255: | |
| val = hex(x) | |
| length = 18-len(val) | |
| for i in range(length): | |
| val+='0' | |
| processed.append(val) |
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 process_lun_id(lun_id): | |
| if isinstance(lun_id, list): | |
| processed = [] | |
| for x in lun_id: | |
| if x > 255: | |
| val = hex(x) | |
| length = 18-len(val) | |
| for i in range(length): | |
| val+='0' | |
| processed.append(val) |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <stdarg.h> | |
| #include <unistd.h> | |
| #include <string.h> | |
| #include <ctype.h> | |
| #include <fcntl.h> | |
| #include <errno.h> | |
| #include <dirent.h> |
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
| 2016-02-08 06:18:43.566 16670 INFO oslo.privsep.daemon [-] Running privsep helper: ['sudo', 'privsep-helper', '--config-dir', None, '--privsep_context', 'os_brick.privileged.run_as_root', '--privsep_sock_path', '/tmp/tmpK1G9XL/privsep.sock'] | |
| 2016-02-08 06:18:43.582 16670 CRITICAL brick [-] TypeError: execv() arg 2 must contain only strings | |
| 2016-02-08 06:18:43.582 16670 ERROR brick Traceback (most recent call last): | |
| 2016-02-08 06:18:43.582 16670 ERROR brick File "brick_initiator.py", line 47, in <module> | |
| 2016-02-08 06:18:43.582 16670 ERROR brick main() | |
| 2016-02-08 06:18:43.582 16670 ERROR brick File "brick_initiator.py", line 41, in main | |
| 2016-02-08 06:18:43.582 16670 ERROR brick initiator = utils.get_initiator() | |
| 2016-02-08 06:18:43.582 16670 ERROR brick File "/usr/local/lib/python2.7/dist-packages/diediedie/utils.py", line 35, in get_initiator | |
| 2016-02-08 06:18:43.582 16670 ERROR brick initiator = connector.get_connector_properties('sudo', my_ip, True, False) | |
| 2016-02-08 06:18:43.582 16670 ERROR |