13022 Commits

Author SHA1 Message Date
Vipin Balachandran
8dbf2b7e98 VMware: Add volume adapter type extra-spec option
Adding a new volume type extra-spec option 'vmware:adapter_type'
to override the default adapter type of volumes.

DocImpact
The VMDK driver now supports a new extra-spec option
'vmware:adapter_type' to override the default adapter
type specified by config option 'vmware_adapter_type'.

Change-Id: Ifc641d82e6eecbe12aa0e77242ce8555b7e57b76
Closes-bug: #1691285
2017-07-25 14:19:59 -07:00
Vipin Balachandran
fdd49d09a6 VMware: Config option for default adapter type
Currently vmdk volumes are created with lsiLogic adapter.
The volume may not be recognized if the guest OS does not
support lsiLogic. Adding config option 'vmware_adapter_type'
to specify the default adapter type for new volumes.

DocImpact
Added new driver config option 'vmware_adapter_type' to
specify the default adapter type for new volumes created
by the VMware VMDK driver.

Partial-bug: #1691285
Change-Id: I2b923af59d51a8b0c94ef4e111d20958d44182b0
2017-07-05 20:33:36 -07:00
Jenkins
30431abf2a Merge "Fix attachment_delete for reserved case" 2017-07-05 20:32:38 +00:00
Jenkins
cb42212eb1 Merge "Add 'reserved' status to api-ref" 2017-07-05 19:04:48 +00:00
John Griffith
80b943c7f2 Fix attachment_delete for reserved case
In attachment-delete we attempt a little short cut
in cases where the volume is reserved but not actually
attached to an instance. In this case we don't have a
connector and we never actually sent anything to the
driver, so we take a short cut in cinder.volume.api
and we just call an object.destroy().

The problem with this is that the object doesn't do
the proper/needed context settings and checks and just
fails due to policy. We should clean this up and add
the extra db update steps and also include the
notification messages.

Change-Id: Ib448f0548739cd42edf03eab07f305b3ac184d8f
Closes-Bug: #1702512
2017-07-05 16:25:46 +00:00
Jenkins
640b870f9c Merge "Revert "Don't use ignoreskipactivation for thin LVM"" 2017-07-05 14:43:59 +00:00
Jenkins
0d6d9d7114 Merge "Optimize: Replace 'fields.Enum' with 'object'" 2017-07-05 10:46:31 +00:00
Jenkins
18acb29594 Merge "Unity: temp snapshot for backup deleted twice" 2017-07-05 10:42:05 +00:00
Thomas Bechtold
e8f1b419a4 Revert "Don't use ignoreskipactivation for thin LVM"
Commit 8f5e10d7ed8eead221cccb6a0ccf1afea310b0a9 wrongly assumed that
the "ignoreskipactivation" flag is not needed when using thin LVM
provisioning. This is wrong.
Using thin LVM leads now to an error when the content will be copied:

ERROR cinder.volume.manager Command: sudo cinder-rootwrap /etc/cinder/
      rootwrap.conf dd if=/dev/mapper/cinder--volumes-_snapshot--UUID
      of=/dev/mapper/cinder--volumes-volume--UUID
      count=1073741824 bs=1M iflag=count_bytes conv=sparse

The reason is that the the snapshot is not activated and due to that,
no device node is available under /dev/mapper .

This reverts commit 8f5e10d7ed8eead221cccb6a0ccf1afea310b0a9 and makes
thin provisioning for LVM working again.

Change-Id: I788b297af92e11063b18c05a415b6f4d4d4bcd2c
Closes-Bug: #1702322
Related-Bug: #1701545
2017-07-05 06:53:38 +02:00
Jenkins
09cdfa0176 Merge "Move driver options to "backend_defaults" section" 2017-07-05 04:23:29 +00:00
Jenkins
c222314746 Merge "Fix migration completion for New Attach API's" 2017-07-04 19:58:19 +00:00
Jenkins
fe420521d6 Merge "Rename method 'delete' to 'delete_backup' in backup drivers" 2017-07-04 18:40:16 +00:00
Jenkins
071bf970be Merge "IBM Storage: fix create volume with --group-id" 2017-07-04 18:28:08 +00:00
Ildiko Vancsa
f0e5c7be17 Add 'reserved' status to api-ref
Change-Id: If06f1e6e685df294f5009608a57c28680f66baff
2017-07-04 14:28:17 +02:00
Jenkins
c7e9558586 Merge "Use SnapshotStatus enum field" 2017-07-04 11:37:23 +00:00
Ivan Kolodyazhny
81466bb1e7 Rename method 'delete' to 'delete_backup' in backup drivers
Once we'll get generic-backup-implementation blueprint done it will be
confusion to have 'delete' method in volume drivers. After this change
we'll have two methods: 'delete_volume' and 'delete_backup' which should
be clear for maintainers.

This patch doesn't change any public API so it should be clear for
operators and users.

Change-Id: I7f975066c1c848fec7e930a9d71b7225f3250acc
Related-blueprint: generic-backup-implementation
2017-07-04 13:35:03 +03:00
TommyLike
30ac541f8e Optimize: Replace 'fields.Enum' with 'object'
We don't use any advanced features of 'versionobjects.fields.Enum'
in message fields. We can directly use 'object' there.

Change-Id: I3e2a7f52c8348ff6b1fb82d849a26c650236e78c
2017-07-04 16:34:42 +08:00
Jenkins
22be8149d5 Merge "Fix bugs while integrated with Huawei Dorado array" 2017-07-04 02:55:41 +00:00
Jenkins
59c5b80b99 Merge "Remove dothill driver" 2017-07-03 18:45:15 +00:00
Jenkins
c9e1ac8303 Merge "Add 'LUNType' configuration verification for Dorado array" 2017-07-03 18:43:34 +00:00
Jenkins
1ba1996a46 Merge "Improve Capacity filter logging" 2017-07-03 18:05:11 +00:00
Jenkins
0377dbedb8 Merge "Unity: Use thin clone when cloning volume" 2017-07-03 16:44:40 +00:00
Jenkins
2909c66efe Merge "Tempest for revert-to-snapshot" 2017-07-03 16:44:31 +00:00
Jenkins
4022402784 Merge "Add gmcv support in SVC driver" 2017-07-03 16:42:56 +00:00
Michał Dulko
1f62a411f4 Move driver options to "backend_defaults" section
Our cinder.conf.sample lists all of the options that are defined by
drivers in the [DEFAULT] section. Since removal of single-backend config
(without enabled_backends) this is misleading as those options are
functional only when defined in [<backend_name>] section. This commit
aims to move all of the driver options to [backend_defaults] section.
Assumption is that this will affect only sample config generation and
should not break anything else.

Change-Id: Ia4766eb313e15adc92a92875519b22db64e95d65
2017-07-03 16:42:03 +02:00
Jenkins
98ee2aa063 Merge "Use GroupStatus enum field" 2017-07-03 14:29:23 +00:00
Jenkins
29c4dfcbc9 Merge "Update log translation hacking rule" 2017-07-03 14:10:53 +00:00
Jenkins
c0da88197b Merge "Fix rally "volume_type" parameter" 2017-07-03 14:09:01 +00:00
junboli
aea33343c6 Use SnapshotStatus enum field
The SnapshotStatus and SnapshotStatusField have been defined already, This
change just replace the omissive snapshot status string with snapshot enum
field.
Follow up https://review.openstack.org/#/c/284825/

Change-Id: I175398bcad863eaead8b35095d7ff84f9f63aadb
Partial-Implements: bp cinder-object-fields
2017-07-03 13:44:23 +00:00
Gorka Eguileor
019522b9de Improve Capacity filter logging
Logging in scheduler's filters have improved greatly over the years, but
there are still two code paths that exclude backends but don't log the
reason.

This patch adds debug log levels to those 2 paths so all exclusion code
paths will be covered.

TrivialFix

Change-Id: I57c773849200439713b18b61874dc33d8ee34390
2017-07-03 12:00:02 +02:00
Isaac Beckman
15e65b97dc IBM Storage: fix create volume with --group-id
when creating a volume with group_id, the driver need to look in the
group specs to see if the group is a cg or a regular generic group

Change-Id: I4e606d4b25251f7fdb56a1e2f76093a93f81a3b3
Closes-Bug: 1701231
2017-07-03 10:56:27 +03:00
zengyingzhe
05427efcce Add 'LUNType' configuration verification for Dorado array
Huawei Dorado array only supports 'Thin' lun type, this patch adds
the verification for user's configuration, and if user doesn't
specify this parameter, default use 'Thin' type.

Change-Id: Ie94e5e1106b1e5ea9063effcecddc2e30e8b4f92
2017-07-03 06:06:04 +00:00
Ryan Liang
3f53833c9e Unity: temp snapshot for backup deleted twice
Remove the codes in `create/remove_export_snapshot`. The code there
is designed for mounting snapshots for remotefs filesystems. It is
unnecessary in Unity.

Change-Id: Ib2dcba29ca4d97f77501fd0068499aad09984ad6
Closes-bug: 1701311
2017-07-03 10:12:59 +08:00
Jenkins
a688b872be Merge "Datera 2.4.0 driver update" 2017-07-02 16:46:48 +00:00
Jenkins
b3c7fab54a Merge "Don't use ignoreskipactivation for thin LVM" 2017-07-02 16:43:59 +00:00
Jenkins
da937395ac Merge "Fix image cache db query when limits are enabled" 2017-07-02 16:29:24 +00:00
Jenkins
58d5729294 Merge "Fix wording in warning message" 2017-07-02 16:01:59 +00:00
Jenkins
a9ae8cd428 Merge "Remove extra space in release note." 2017-07-02 15:16:03 +00:00
Jenkins
182663b52c Merge "Updated from global requirements" 2017-07-02 15:15:54 +00:00
junboli
91da6a3df0 Use GroupStatus enum field
The GroupStatus and GroupStatusField have been defined already, This
change just replace the omissive group status string with group enum
field.

Change-Id: Ic9c43a3fa95901de7d68b0e23358e2a742a9901a
Partial-Implements: bp cinder-object-fields
2017-07-02 16:46:10 +08:00
Shay Halsband
e23d093ac9 XtremIO: Detach all IGs for null connector
Force detach sends None as connector which meens detach the volume from
all IG's. using volumes property "lun-mapping list" to get all IG
indexes.

Change-Id: I40cb1acaa4426d5f5bdf322cf665b4273e2fea7c
Closes-bug: #1700467
2017-07-02 06:41:20 +00:00
Jenkins
2c315309df Merge "Add custom keyring when initializing RBD connection" 2017-07-01 22:51:12 +00:00
Chris M
76522b90a3 Remove dothill driver
The Dot Hill driver is no longer supported by an independent CI, so
the driver was marked unsupported in the Ocata release, and is being
disabled in Pike.  The driver code remains in place since it's
subclassed by other drivers (lenovo, hpmsa), but attempting to load
the dothill driver will throw an exception.

DocImpact: Remove description of Dot Hill AssuredSAN driver

UpgradeImpact: Dot Hill storage requires configuration of a new driver.

Change-Id: Ic2cec24ac33813cbce4c3166cc04f32ad3df6396
2017-06-30 19:34:21 -04:00
Matt Smith
1e23faf82a Datera 2.4.0 driver update
Updating the Datera Cinder driver to version 2.4.0 and implemented
    the following features:

    - Scalability bugfixes
    - Volume Placement, ACL multi-attach bugfix
    - Fast retype support

Change-Id: I7a742a8d7590f6a29e4cb24c57615ea94c79ee83
2017-06-30 14:33:49 -05:00
Patrick East
70719d028a Fix image cache db query when limits are enabled
We were missing the context parameter... and apparently
never tested with cache limits enabled. This fixes
it and updates the unit tests to check for it too.

I'll follow up with a devstack patch to set some
limits by default too so we cover more of this
code and have it behave like a production deployment
in gate jobs.

Change-Id: Ia6d43b35843682bd201e57bb2941ca0243606412
Closes-Bug: #1701696
2017-06-30 11:22:19 -07:00
Eric Harney
8f5e10d7ed Don't use ignoreskipactivation for thin LVM
This causes failures for volume clone and
is not needed for thin.

Closes-Bug: #1701545

Change-Id: I6b41e736f4c000205784fa97a1eadfccfe34722f
2017-06-30 13:35:36 -04:00
OpenStack Proposal Bot
4ef1d8d474 Updated from global requirements
Change-Id: I535731b70a995411b3a3b319cfd3b74df7acbdff
2017-06-30 13:52:52 +00:00
Jenkins
7617a60cc9 Merge "import installation guide pages from openstack-manuals" 2017-06-30 13:08:33 +00:00
zhaochy
b03992b616 Add gmcv support in SVC driver
SVC Global Mirror with Change Volumes(gmcv) provides asynchronous
replication based on point-in-time copies of data. Two
properties: replication_type="<in> gmcv" and
drivers:cycle_period_seconds=500 in volume type to support replication
volume with gmcv. Here is an example to define a gmcv replication
type: openstack volume type set
--property replication_type="<in> gmcv"
--property replication_enabled='<is> True'
--property drivers:cycle_period_seconds=500
--property volume_backend_name=svc75 SVCGMCVReplicationType

DocImpact
Change-Id: I525f82dccf88bc085825523d7e899143e2190a96
Implements: blueprint gmcv-support-in-svc-driver
2017-06-30 16:21:23 +08:00
Jenkins
af77fe9dbc Merge "Mock time.sleep for VMAXRestTest.test_remove_vol_from_sg_failed" 2017-06-30 05:21:53 +00:00