]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
10 years ago * Updated debconf translations with warm thanks to:
Thomas Goirand [Sun, 8 Dec 2013 03:23:55 +0000 (11:23 +0800)]
  * Updated debconf translations with warm thanks to:
    - French, Julien Patriarca <leatherface@debian.org> (Closes: #728769).
    - Russian, Yuri Kozlov <yuray@komyakino.ru> (Closes: #729775).

11 years agoUploading to unstable.
Thomas Goirand [Thu, 17 Oct 2013 15:41:49 +0000 (23:41 +0800)]
Uploading to unstable.

11 years agoFixed the value of the state_path directive to /var/lib/cinder instead of somewhere...
Thomas Goirand [Thu, 17 Oct 2013 08:44:52 +0000 (16:44 +0800)]
Fixed the value of the state_path directive to /var/lib/cinder instead of somewhere in /usr/lib/python2.x.

11 years agoFixed the path to the log files in the init scripts.
Thomas Goirand [Wed, 16 Oct 2013 17:03:21 +0000 (01:03 +0800)]
Fixed the path to the log files in the init scripts.

11 years agoMerge tag '2013.2_rc3' into debian/havana
Thomas Goirand [Wed, 16 Oct 2013 10:21:54 +0000 (18:21 +0800)]
Merge tag '2013.2_rc3' into debian/havana

Cinder havana-rc3 milestone (2013.2.rc3)

11 years agoNow packaging 2013.2~rc3-1
Thomas Goirand [Wed, 16 Oct 2013 10:19:46 +0000 (18:19 +0800)]
Now packaging 2013.2~rc3-1

11 years agoFix lvm.extend_volume to pass Gig suffix
John Griffith [Wed, 16 Oct 2013 01:13:45 +0000 (19:13 -0600)]
Fix lvm.extend_volume to pass Gig suffix

The extend function in the lvm driver was not converting
the cinder size value to Gigabytes before passing the call
to the vg module.  The result was that we would attempt to
extend a volume to "new size in Megabytes" which of course
is less than the current size since we do a Gigabyte string
conversion on create and everywhere else.

This change makes sure we pass the integer change through
the sizestr method to get the G suffix needed to work properly.

Change-Id: I070962a3aa7038f612e19a93ccaa60cbc13008f6
Closes-Bug: #1240287
(cherry picked from commit ec442e41d2d243003a42ed60ae862e96142a5cde)

11 years agoFK lookup failures during migration
John Griffith [Tue, 15 Oct 2013 19:57:48 +0000 (13:57 -0600)]
FK lookup failures during migration

There are a couple of cases where migrations have failed
upgrading from Grizzly to Havana, this seems to be isolated
to a couple of migrations so far and the error message is a
failure to lookup/associate the volume-id FK dependency.

It appears that this is caused by not setting the charset
in the migration, so the result is that the initial db setup
uses utf8 and the migrations are using the default latin1.

This patch goes through all of the migrations in Havana that
specify InnoDB and explicitly sets the charset to utf8 to match
the volumes table (and the other original tables).

Change-Id: I43b219ff5e4eea10a7391ad65ef68a80b7460370
Closes-Bug: #1233861
(cherry picked from commit 645a84f990c90e28548cf35b4b5f242eb0e0c286)

11 years agosed -i "s/#auth_strategy=noauth/auth_strategy=keystone/" in the default packaged...
Thomas Goirand [Tue, 15 Oct 2013 15:38:11 +0000 (23:38 +0800)]
sed -i "s/#auth_strategy=noauth/auth_strategy=keystone/" in the default packaged cinder.conf (otherwise it doesn't work by default).

11 years agoRemoves the CEPH_ARGS hack in /etc/default/cinder and cinder-volume.init script since...
Thomas Goirand [Fri, 11 Oct 2013 15:01:50 +0000 (23:01 +0800)]
Removes the CEPH_ARGS hack in /etc/default/cinder and cinder-volume.init script since it's now configurable in upstream config file.

11 years agoMerge "VMware: Disallow snapshot of attached volume" into milestone-proposed
Jenkins [Thu, 10 Oct 2013 22:57:52 +0000 (22:57 +0000)]
Merge "VMware: Disallow snapshot of attached volume" into milestone-proposed

11 years agoMerge "improves lvm version parsing for customised builds" into milestone-proposed
Jenkins [Thu, 10 Oct 2013 22:05:05 +0000 (22:05 +0000)]
Merge "improves lvm version parsing for customised builds" into milestone-proposed

11 years agoMerge "Support Huawei driver upgrade from grizzly to havana" into milestone-proposed
Jenkins [Thu, 10 Oct 2013 22:02:53 +0000 (22:02 +0000)]
Merge "Support Huawei driver upgrade from grizzly to havana" into milestone-proposed

11 years agoMerge "VMware: Re-create session for RetrievePropertiesEx" into milestone-proposed
Jenkins [Thu, 10 Oct 2013 21:21:51 +0000 (21:21 +0000)]
Merge "VMware: Re-create session for RetrievePropertiesEx" into milestone-proposed

11 years agoimproves lvm version parsing for customised builds
Giulio Fidente [Thu, 10 Oct 2013 12:59:44 +0000 (14:59 +0200)]
improves lvm version parsing for customised builds

supports_thin_provisioning now uses a regexp to ensure parsing of
lvm version succeeds when the build is customised; also adds a test
for a customised string parsing

Closes-Bug: #1237994
Change-Id: I49049a58bbdb5315b9d2d7c259a9324ca15d78cb
(cherry picked from commit 51fd5edb106e26d65696ce37a70eef6a4f75b1e2)

11 years agolong flashcopy operation may block volume service
Alan Jiang [Thu, 3 Oct 2013 22:03:09 +0000 (17:03 -0500)]
long flashcopy operation may block volume service

Storwize family uses flashcopy for snapshot or volume clone. The
volume delete has to wait until flashcopy finishes or errors out.
The _delete_vdisk() will poll volume FlashCopy status in a loop.
This may block volume serivce heartheat since it is in the same
. The solution is to use openstack FixedIntervalLoopingCall
to run the FlashCopy status poll in a timer thread.

The cinder volume mananger will resume delete operation for those
volumes that are in the deleting state during volume service startup.
Since Storwize volume delete may wait for a long time, this can cause
volume service to have long delay before it becomes available.
A greenpool is used to offload those volume delete operations.

Change-Id: Ie01a441a327e1e318fa8da0040ae130731b7a686
Closes-Bug: #1203152
(cherry picked from commit 7aa4f65a8c17aa037deff0f5b534ed694c17e62a)

11 years agoSupport Huawei driver upgrade from grizzly to havana
zhangchao010 [Wed, 9 Oct 2013 07:37:49 +0000 (15:37 +0800)]
Support Huawei driver upgrade from grizzly to havana

To make the driver upgrade from grizzly to higher versions, the patch
checks the old host name firstly when creating and deleting host in
Huawei storage system.
If the old host name exists:
*get and use it directly when adding host.
*delete it directly when deleting host.

Closes-bug 1237189

Change-Id: I82a9dbc1ef0bb0b91771afea4aadec5afe65eecf
(cherry picked from commit 0c9dc5d0e01576969f09edc0c9c72a2aa91b248a)

11 years agoVMware: Disallow snapshot of attached volume
Kartik Bommepally [Tue, 8 Oct 2013 13:33:33 +0000 (06:33 -0700)]
VMware: Disallow snapshot of attached volume

The current implementation perform snapshot of attached volume.
This is invalid because when we take snapshot of the backing, the instance
continues pointing to the readonly delta and tries writing to it.
This patch will disallow snapshot creation of attached volume.

We have similar issue with delete of snapshot, when deleted the instance will
point to an invalid disk file, since that will get merged with its parent.
Hence any writes by the instance will fail with disk not found error.
This patch will ignore delete snapshot of attached volume.

Since we disallow snapshot of attached volume, we disallow linked clone of
attached source volume and also upload of attached volume.

Fixes bug: 1236891

Change-Id: I6a91eac8529836d1fe1de73bf6b28ec098aa7c54
(cherry picked from commit 2451a027bee50c834890f9e049fbaf4bfa911546)

11 years agoVMware: Re-create session for RetrievePropertiesEx
Kartik Bommepally [Fri, 4 Oct 2013 11:05:09 +0000 (04:05 -0700)]
VMware: Re-create session for RetrievePropertiesEx

When RetrievePropertiesEx API is called after session timeout, the driver
does not re-create session automatically.

This is a regression caused when moving from RetrieveProperties to
RetrievePropertiesEx API.

Fixes bug: 1235187

Change-Id: I8a1e2452dfb3029365d59eae7850d1a9363b25f0
(cherry picked from commit 2d4ea101252141486fa6fd61b100772fafd40102)

11 years agoEdits debian/changelog before releasing.
Thomas Goirand [Wed, 9 Oct 2013 15:51:39 +0000 (15:51 +0000)]
Edits debian/changelog before releasing.

11 years agoMerge branch 'debian/havana' of ssh://git.debian.org/git/openstack/cinder into debian...
Thomas Goirand [Wed, 9 Oct 2013 15:34:53 +0000 (23:34 +0800)]
Merge branch 'debian/havana' of ssh://git.debian.org/git/openstack/cinder into debian/havana

11 years agodebian/changelog for: Updates the templates and translations to really (Closes: ...
Thomas Goirand [Wed, 9 Oct 2013 15:34:43 +0000 (23:34 +0800)]
debian/changelog for: Updates the templates and translations to really (Closes: #708658).

11 years agoRe-added the l10n-english as it was mistakenly forgotten (Closes: #708658).
Thomas Goirand [Wed, 9 Oct 2013 15:12:49 +0000 (23:12 +0800)]
Re-added the l10n-english as it was mistakenly forgotten (Closes: #708658).
(cherry picked from commit a0fae8bdf94d3a9db30e99fbc691a9d4bc1a4ed9)

Conflicts:
debian/po/cs.po
debian/po/da.po
debian/po/fr.po
debian/po/it.po
debian/po/ja.po
debian/po/pt.po
debian/po/ru.po
debian/po/templates.pot

11 years agoReview (build-)dependencies.
Thomas Goirand [Tue, 8 Oct 2013 05:28:39 +0000 (05:28 +0000)]
Review (build-)dependencies.

11 years agoAdded changelog from the debian/unstable branch.
Thomas Goirand [Tue, 8 Oct 2013 05:20:43 +0000 (05:20 +0000)]
Added changelog from the debian/unstable branch.

11 years agopython-novaclient needs to be >= 2.15.0
Thomas Goirand [Sat, 5 Oct 2013 10:44:44 +0000 (18:44 +0800)]
python-novaclient needs to be >= 2.15.0

11 years agobuild-depends on python-babel >= 1.3
Thomas Goirand [Sat, 5 Oct 2013 10:43:47 +0000 (18:43 +0800)]
build-depends on python-babel >= 1.3

11 years agoMerge tag '2013.2_rc1' into debian/havana
Thomas Goirand [Sat, 5 Oct 2013 10:26:22 +0000 (18:26 +0800)]
Merge tag '2013.2_rc1' into debian/havana

Cinder havana-rc1 milestone (2013.2.rc1)

11 years agoNow packaging 2013.2~rc1
Thomas Goirand [Sat, 5 Oct 2013 10:22:38 +0000 (18:22 +0800)]
Now packaging 2013.2~rc1

11 years agoFix broken solidfire create-snapshot
John Griffith [Thu, 3 Oct 2013 21:54:20 +0000 (15:54 -0600)]
Fix broken solidfire create-snapshot

A previous change to enable secifying size for cloned volumes
created introduced a bug that breaks the ability to create-snapshots
when using the SolidFire driver
(CID: I5628c7fa922780d6b0601e2daa79310a61085edc).

The problem is that we use a shared method in the SF driver for both
create-clone and create-snapshot, the added change only considers the
clone case and does a get ref['size'] but in the case of snapshots
this needs to be ref['volume_size'].

Change-Id: I50603b3ac43f2c3c7e7811ec34de078a268519f7
Closes-Bug: 1234970
(cherry picked from commit 3cd27defb1c820ceadd8bbc6bfd5a405a7376cdb)

11 years agoClean CONF out of brick iser
Walter A. Boring IV [Wed, 25 Sep 2013 21:32:32 +0000 (14:32 -0700)]
Clean CONF out of brick iser

This is part 2 of the work needed to
remove CONF from the brick subproject.

This patch removes CONF from the iser
portion of brick

Fixes Bug #1230066

Change-Id: Id165deffdf04fb064c425861dab284de377d2440

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Thu, 3 Oct 2013 15:45:30 +0000 (15:45 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Fixes ceph backup import errors"
Jenkins [Thu, 3 Oct 2013 15:37:25 +0000 (15:37 +0000)]
Merge "Fixes ceph backup import errors"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Thu, 3 Oct 2013 06:07:57 +0000 (06:07 +0000)]
Imported Translations from Transifex

Change-Id: Ie27ede4711508f7d67c46909d3535e0ca0170337

11 years agoMerge "Add support for querying the quotas usage"
Jenkins [Thu, 3 Oct 2013 04:38:30 +0000 (04:38 +0000)]
Merge "Add support for querying the quotas usage"

11 years agoMerge "VMware ESX: Fixes vol clone & clone from snapshot"
Jenkins [Thu, 3 Oct 2013 04:34:12 +0000 (04:34 +0000)]
Merge "VMware ESX: Fixes vol clone & clone from snapshot"

11 years agoMerge "Remove incorrect class in cinder.conf.sample"
Jenkins [Thu, 3 Oct 2013 04:34:04 +0000 (04:34 +0000)]
Merge "Remove incorrect class in cinder.conf.sample"

11 years agoMerge "Add key manager implementation with static key"
Jenkins [Thu, 3 Oct 2013 04:22:42 +0000 (04:22 +0000)]
Merge "Add key manager implementation with static key"

11 years agoMerge "Remove need for CONF acces in brick iscsi"
Jenkins [Thu, 3 Oct 2013 04:13:39 +0000 (04:13 +0000)]
Merge "Remove need for CONF acces in brick iscsi"

11 years agoMerge "Quotas roll back failure of create volume task"
Jenkins [Thu, 3 Oct 2013 03:56:02 +0000 (03:56 +0000)]
Merge "Quotas roll back failure of create volume task"

11 years agoAdd key manager implementation with static key
Joel Coffman [Tue, 24 Sep 2013 23:10:09 +0000 (19:10 -0400)]
Add key manager implementation with static key

Per feedback received on other patch sets, an example key manager
driver is required to support ephemeral storage encryption and
Cinder volume encryption -- see
* https://blueprints.launchpad.net/nova/+spec/encrypt-cinder-volumes
* https://blueprints.launchpad.net/nova/+spec/encrypt-ephemeral-storage
The ConfKeyManager class reads its key from the project's
configuration file and provides this key for *all* requests. As
such, this key manager is insecure but allows the aforementioned
encryption features to be used without further integration effort.

To clarify the above statements, the configuration-based key
manager uses a single, fixed key. When used to encrypt data (e.g.,
by the Cinder volume encryption feature), the encryption provides
limited protection for the confidentiality of data. For example,
data cannot be read from a lost or stolen disk, and a volume's
contents cannot be reconstructed if an attacker intercepts the iSCSI
traffic between the compute and storage host. If the key is ever
compromised, then any data encrypted with the key can be decrypted.

This commit copies the ConfKeyManager class from Nova as well as
synchronizing changes with the key manager interface in Nova.

Implements blueprint encrypt-cinder-volumes
DocImpact
SecurityImpact

Change-Id: I5cb06386410f46cabc490fa6af23272d1d2cb979

11 years agoRemove need for CONF acces in brick iscsi
John Griffith [Thu, 26 Sep 2013 21:23:01 +0000 (15:23 -0600)]
Remove need for CONF acces in brick iscsi

At some point we'd like brick to be a standalone lib,
and as such we don't want to have a requirement for
CONF files and having duplicate conf entries across
projects.

The better approach would be to let the projects decide
what they want to use, and how they want defaults to be set
and then pass those settings in via __init__ or when calling
the methods that need them.

Partial-Bug: #1230066

Change-Id: Ib108f1abb2948cb896bdad58070daa7a725a205d

11 years agoMerge "Fixes incorrect class path in logging_sample.conf"
Jenkins [Thu, 3 Oct 2013 01:18:11 +0000 (01:18 +0000)]
Merge "Fixes incorrect class path in logging_sample.conf"

11 years agoMerge "Storwize SVC driver hostname can't start with number"
Jenkins [Thu, 3 Oct 2013 01:18:09 +0000 (01:18 +0000)]
Merge "Storwize SVC driver hostname can't start with number"

11 years agoMerge "Improve gpfs config flag help text readability"
Jenkins [Thu, 3 Oct 2013 01:18:06 +0000 (01:18 +0000)]
Merge "Improve gpfs config flag help text readability"

11 years agoMerge "v2 api - return bootable attr value on volume list"
Jenkins [Thu, 3 Oct 2013 00:43:37 +0000 (00:43 +0000)]
Merge "v2 api - return bootable attr value on volume list"

11 years agoMerge "Check for backing lun on iscsi target create"
Jenkins [Thu, 3 Oct 2013 00:33:53 +0000 (00:33 +0000)]
Merge "Check for backing lun on iscsi target create"

11 years agoQuotas roll back failure of create volume task
Abhijeet Malawade [Fri, 27 Sep 2013 12:13:52 +0000 (05:13 -0700)]
Quotas roll back failure of create volume task

Fixes quotas rollback issue if volume creation fails

* Added revert method in QuotaCommitTask to rollback
* volume reservations.

Fixes bug #1230176

Change-Id: I0983ea876983b4294ed0aebb49a065715a185b4e

11 years agoMerge "Changed header from LLC to Foundation based on trademark policies"
Jenkins [Wed, 2 Oct 2013 22:33:50 +0000 (22:33 +0000)]
Merge "Changed header from LLC to Foundation based on trademark policies"

11 years agoMerge "Validate force_host_copy API param for migration"
Jenkins [Wed, 2 Oct 2013 21:47:24 +0000 (21:47 +0000)]
Merge "Validate force_host_copy API param for migration"

11 years agoMerge "Update Babel from Openstack Requirements"
Jenkins [Wed, 2 Oct 2013 21:47:15 +0000 (21:47 +0000)]
Merge "Update Babel from Openstack Requirements"

11 years agoMerge "NetApp fix clone image compatibility issue with ssc"
Jenkins [Wed, 2 Oct 2013 21:46:21 +0000 (21:46 +0000)]
Merge "NetApp fix clone image compatibility issue with ssc"

11 years agoMerge "After commiting quota we should avoid certain reverts"
Jenkins [Wed, 2 Oct 2013 21:45:12 +0000 (21:45 +0000)]
Merge "After commiting quota we should avoid certain reverts"

11 years agoMerge "Remove CONF from brick remotefs"
Jenkins [Wed, 2 Oct 2013 13:57:08 +0000 (13:57 +0000)]
Merge "Remove CONF from brick remotefs"

11 years agoMerge "Pass through args and kwargs in brick connectors"
Jenkins [Wed, 2 Oct 2013 13:55:31 +0000 (13:55 +0000)]
Merge "Pass through args and kwargs in brick connectors"

11 years agoMerge "VMware: Usng RetrvProprtisEx & does multi ESX scan"
Jenkins [Wed, 2 Oct 2013 13:55:00 +0000 (13:55 +0000)]
Merge "VMware: Usng RetrvProprtisEx & does multi ESX scan"

11 years agoMerge "Create volume revert fails for non admin user"
Jenkins [Wed, 2 Oct 2013 13:54:49 +0000 (13:54 +0000)]
Merge "Create volume revert fails for non admin user"

11 years agoMerge "Clean CONF out of brick initiator"
Jenkins [Wed, 2 Oct 2013 13:52:50 +0000 (13:52 +0000)]
Merge "Clean CONF out of brick initiator"

11 years agoMerge "Disable lazy translation"
Jenkins [Wed, 2 Oct 2013 10:59:36 +0000 (10:59 +0000)]
Merge "Disable lazy translation"

11 years agoMerge "usedevelop in tox"
Jenkins [Wed, 2 Oct 2013 10:39:20 +0000 (10:39 +0000)]
Merge "usedevelop in tox"

11 years agoRemove incorrect class in cinder.conf.sample
KIYOHIRO ADACHI [Wed, 2 Oct 2013 08:19:13 +0000 (17:19 +0900)]
Remove incorrect class in cinder.conf.sample

cinder.openstack.common.exception has already been deleted.
It seems to be a leak in 'Change-Id:
I6f46f90bd74cc26fc01667e467e3dab38037eec3'.

Change-Id: Ic2000280f31e354da39a9bbb0d60142b431f58a6
Closes-Bug: #1234002

11 years agoFixes incorrect class path in logging_sample.conf
KIYOHIRO ADACHI [Wed, 2 Oct 2013 05:36:01 +0000 (14:36 +0900)]
Fixes incorrect class path in logging_sample.conf

It seems to be a leak in 'Change-Id:
I95d23aafe19b12d4a427149aa5f7a66394d178c6'.

Change-Id: I4c2777049ec9e301a1f05b3a7b4aa5dd71c033e3
Closes-Bug: #1233985

11 years agoStorwize SVC driver hostname can't start with number
Alan Jiang [Tue, 1 Oct 2013 05:38:03 +0000 (00:38 -0500)]
Storwize SVC driver hostname can't start with number

Storwize family storage does not allow host identifier start with
a numeric number. Otherwise cinder initialize_connection() API will
throw exception due to such invalid host name in the connector. The fix
is to add a '_' symbol as prefix if the host identifier in connector
starts with non-alphabet letters.

Closes-Bug: #1233952
Change-Id: Ia88afc373e2635c10c3f6256331a4fd90f51f4b8

11 years agoAfter commiting quota we should avoid certain reverts
Joshua Harlow [Tue, 1 Oct 2013 22:53:30 +0000 (15:53 -0700)]
After commiting quota we should avoid certain reverts

After we commit the quota successfully we do not want to
set the database volume to destroyed or attempt further
rollback of the quota itself to reflect what the code
previously did.

Closes-Bug: #1230189

Change-Id: I115dc6736b8f2d0d7b2b6f29e9fd1904fd1c6eee

11 years agoRemove CONF from brick remotefs
Chet Burgess [Thu, 26 Sep 2013 04:57:25 +0000 (21:57 -0700)]
Remove CONF from brick remotefs

Move the remotefs CONF options back into their
corresponding volume drivers.

Partial-Bug: #1230066
Change-Id: Ie37a803dc0f895ffd9dc2c7daf8255e6096ccee2

11 years agoPass through args and kwargs in brick connectors
Walter A. Boring IV [Mon, 30 Sep 2013 22:45:28 +0000 (15:45 -0700)]
Pass through args and kwargs in brick connectors

This is a change needed to help remove CONF usage
in the brick/remotefs/RemoteFsClient.
RemoteFsClient can then pull the values from the caller.

Change-Id: Ie1ff2a39b92c4150fec4a3191367797a260b30ec
Partial-Bug: #1230066

11 years agoClean CONF out of brick initiator
Walter A. Boring IV [Mon, 30 Sep 2013 18:07:46 +0000 (11:07 -0700)]
Clean CONF out of brick initiator

This is part 1 of the work needed to
remove CONF from the brick subproject.
This patch removes the CONF usage
completely from the initiator portion of brick.

Change-Id: I62cf72214db9d4296ae4c5b09bd21fb53664c117
Partial-Bug: #1230066

11 years agoUpdate Babel from Openstack Requirements
John Griffith [Tue, 1 Oct 2013 14:23:01 +0000 (08:23 -0600)]
Update Babel from Openstack Requirements

This is the update pushed to the global reqs.

Change-Id: I0d8ea330db3f9d68fee172302543b861cae4e013
Closes-Bug: 1233694

11 years agoDisable lazy translation
Doug Hellmann [Tue, 1 Oct 2013 22:01:59 +0000 (18:01 -0400)]
Disable lazy translation

Late in the Havana cycle bug 1225099 was found in the lazy
translation code, and to be safe it was decided to disable lazy
translation for Havana.  This change does that.

Change-Id: Ia934a7df9386baf6ae8eb9ff48c24386c47ecd23
Partial-bug: 1225099

11 years agoMerge "Fixes backup with multiple volume backend"
Jenkins [Tue, 1 Oct 2013 21:00:49 +0000 (21:00 +0000)]
Merge "Fixes backup with multiple volume backend"

11 years agoMerge "Fix finish_volume_migration() on SQLAlchemy 0.8.x"
Jenkins [Tue, 1 Oct 2013 21:00:14 +0000 (21:00 +0000)]
Merge "Fix finish_volume_migration() on SQLAlchemy 0.8.x"

11 years agoImprove gpfs config flag help text readability
Bill Owen [Mon, 30 Sep 2013 18:59:45 +0000 (11:59 -0700)]
Improve gpfs config flag help text readability

Modify the help text for gpfs configuration flags so that it
reads more clearly.

Closes-Bug: #1233288

Change-Id: Iea41bceb496dfaa1f8625a6e3abb31794838213d

11 years agoCheck for backing lun on iscsi target create
John Griffith [Tue, 1 Oct 2013 18:05:14 +0000 (12:05 -0600)]
Check for backing lun on iscsi target create

Check to verify the backing lun was actually created and not just
the controller lun.  If it was NOT created, attempt to issue
tgtadm --op new to see if we can recover.

If this fails, then we want to actually fail in Cinder rather than
pretending that everything went well, so we'll log the error and raise.

Change-Id: I3cabab0d214c051267638a627664df2b673236e3
Closes-Bug: #1226337

11 years agoMerge "Fix translation of CinderExceptions in REST API"
Jenkins [Tue, 1 Oct 2013 13:52:58 +0000 (13:52 +0000)]
Merge "Fix translation of CinderExceptions in REST API"

11 years agoMerge "Fix mandatory and optional args for create_volume"
Jenkins [Tue, 1 Oct 2013 13:24:38 +0000 (13:24 +0000)]
Merge "Fix mandatory and optional args for create_volume"

11 years agoMerge "Fix Huawei HVS driver attaching volume error"
Jenkins [Tue, 1 Oct 2013 13:20:16 +0000 (13:20 +0000)]
Merge "Fix Huawei HVS driver attaching volume error"

11 years agoMerge "Add XML response tests for qos specs manage ext"
Jenkins [Tue, 1 Oct 2013 10:40:45 +0000 (10:40 +0000)]
Merge "Add XML response tests for qos specs manage ext"

11 years agoMerge "Set vol driver initialized before deleting volumes"
Jenkins [Tue, 1 Oct 2013 08:50:08 +0000 (08:50 +0000)]
Merge "Set vol driver initialized before deleting volumes"

11 years agousedevelop in tox
Monty Taylor [Mon, 30 Sep 2013 22:57:43 +0000 (18:57 -0400)]
usedevelop in tox

We want to run code inside of the venv, not outside.

Change-Id: I92c5e35674933ac4d9d15eda32f3b9339dbedbd3

11 years agoFixes ceph backup import errors
Edward Hope-Morley [Thu, 26 Sep 2013 13:05:24 +0000 (14:05 +0100)]
Fixes ceph backup import errors

For some reason, using non-rbd volume driver whilst using
Ceph backup causes what looks to be a cyclic import error.
Ensuring that the backup.drivers.ceph module is imported
into volume.drivers.rbd ONLY if it is needed i.e. if both
drivers are in use, seems to remedy this.

Change-Id: Ieae0c3451cfb1750eca8cfcde5e0be9e7eb028d0
Fixes: bug 1231412
11 years agoAdd XML response tests for qos specs manage ext
Mike Perez [Mon, 30 Sep 2013 03:18:55 +0000 (20:18 -0700)]
Add XML response tests for qos specs manage ext

Make sure XML serializing is working for qos spec index and show, as
well as association show.

Change-Id: If678cf9201c3ba218a485999e11fc034a06495d4

11 years agov2 api - return bootable attr value on volume list
Bill Owen [Fri, 27 Sep 2013 23:22:41 +0000 (16:22 -0700)]
v2 api - return bootable attr value on volume list

Add bootable to the list of values returned by display_list.  This
was returned in v1 api, and is still in v2 header, but was missed
in the new implementation.

Closes-Bug: #1232287

Change-Id: If7460b1c8ab4af417117c4bf6cfdccc5fcf21f46

11 years agoFixes backup with multiple volume backend
Edward Hope-Morley [Wed, 25 Sep 2013 23:13:42 +0000 (00:13 +0100)]
Fixes backup with multiple volume backend

The backup service now keeps a dictionary of managers
for each type of volume backend. If multi backend is
not in use (and volume_type is None) the current
volume_driver is used.

Change-Id: I66e91f3ce2cffaf2e2d07edfddc08b1480e2a37c
Fixes: bug 1228223
11 years agoDont retry if target creation succeeds
John Griffith [Mon, 30 Sep 2013 14:45:52 +0000 (08:45 -0600)]
Dont retry if target creation succeeds

The target creation retry loop was not breaking when
the target was succesfully created.  This is "sometimes" ok,
however in other cases this will actually cause a failure in
the second create and the backing Lun will be deleted and not
created again succesfully due most likely to a busy status on the
target.

Add a break in the try block.

Change-Id: I875f6302868651b5b42d4796cd2714fba35e525e
Closes-Bug: #1226337

11 years agoMerge "Fix chown fail for nfs file without necessary permission"
Jenkins [Mon, 30 Sep 2013 14:41:12 +0000 (14:41 +0000)]
Merge "Fix chown fail for nfs file without necessary permission"

11 years agoVMware ESX: Fixes vol clone & clone from snapshot
Kartik Bommepally [Mon, 30 Sep 2013 09:45:37 +0000 (02:45 -0700)]
VMware ESX: Fixes vol clone & clone from snapshot

The driver was earlier performing create from a source volume and create from
a snapshot point by copying the source volume container folder.

This is not valid in case of vSAN datastore where the volume data is not a
'file' in the container folder unlike VMFS/NFS datastores. So copying folder
will only copy descriptor file and hence the source and cloned volume will
end up writing to the same data location, eventually corrupting it.

The fix is to copy only the VMDK file (descriptor + data) and not the entire
container folder. The implementation does the following:
1. Create a volume backing
2. Delete the current VMDK
3. Make a copy of source volume's VMDK file to the destination using virtual
   disk manager. In case of create from snapshot, we copy the VMDK file
   corresponding to the snapshot point.

Fixes bug: 1233034

Change-Id: I51c9870c11a6d66f9f47c1ad9aaa2abc3dd0533a

11 years agoMerge "Fix XML serializer for QoS Specs extension"
Jenkins [Mon, 30 Sep 2013 09:08:21 +0000 (09:08 +0000)]
Merge "Fix XML serializer for QoS Specs extension"

11 years agoCreate volume revert fails for non admin user
Abhijeet Malawade [Fri, 27 Sep 2013 12:38:59 +0000 (05:38 -0700)]
Create volume revert fails for non admin user

Done fixes in revert method of EntryCreateTask task
to use elevated context while destroying volume.

Fixes bug #1230159

Change-Id: I41b7f2ae4e0235df40bcdaa511256775228751aa

11 years agoMerge "Add debug logging for targets"
Jenkins [Mon, 30 Sep 2013 05:31:16 +0000 (05:31 +0000)]
Merge "Add debug logging for targets"

11 years agoMerge "Use module units for some drivers"
Jenkins [Mon, 30 Sep 2013 05:31:14 +0000 (05:31 +0000)]
Merge "Use module units for some drivers"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Mon, 30 Sep 2013 05:31:11 +0000 (05:31 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Add error logs for Huawei driver"
Jenkins [Mon, 30 Sep 2013 05:31:09 +0000 (05:31 +0000)]
Merge "Add error logs for Huawei driver"

11 years agoVMware: Usng RetrvProprtisEx & does multi ESX scan
Kartik Bommepally [Mon, 16 Sep 2013 10:23:23 +0000 (03:23 -0700)]
VMware: Usng RetrvProprtisEx & does multi ESX scan

The existing code uses deprecated API RetrieveProperties for querying through
property collector. The public doc asks to use RetrievePropertiesEx instead.

RetrievePropertiesEx works by retrieving results in serveral batches rather than
retrieval in a single API call. This works well in environments containing
large number of VMs or ESX hosts.

There are three steps involved 1. Get first batch 2. Continue retrieving using
a token 3. Cancel retrieval when not needed

Batch size is user configurable, default is 100 results per batch.

The review also fixes a careless programming error leading to scanning only
1 ESX host under the vCenter server for datastores.

Fixes bug: 1227078
Fixes bug: 1229654
DocImpact

Change-Id: I85a6f6a7e2d764b9843efbd0dd347fba3ef19310

11 years agoMerge "Allow upgrade from Grizzly with ThinLVMVolumeDriver"
Jenkins [Mon, 30 Sep 2013 05:00:59 +0000 (05:00 +0000)]
Merge "Allow upgrade from Grizzly with ThinLVMVolumeDriver"

11 years agoFix XML serializer for QoS Specs extension
Zhiteng Huang [Wed, 25 Sep 2013 08:40:41 +0000 (16:40 +0800)]
Fix XML serializer for QoS Specs extension

This patch fixes XML serializer for QoS Specs exension calls like
list(), show(), associations().  Note that using XML as input for
create(), update() doesn't support yet.

Closes-Bug: # 1229619

Change-Id: I2eab9d69e05bb03269b51731458994d6268ac852

11 years agoMerge "Fix type change in bootable setting of volume view"
Jenkins [Mon, 30 Sep 2013 03:46:52 +0000 (03:46 +0000)]
Merge "Fix type change in bootable setting of volume view"

11 years agoMerge "Update OpenStack Style Commandments link"
Jenkins [Sun, 29 Sep 2013 18:47:13 +0000 (18:47 +0000)]
Merge "Update OpenStack Style Commandments link"

11 years agoFix Huawei HVS driver attaching volume error
zhangchao010 [Wed, 25 Sep 2013 15:31:04 +0000 (23:31 +0800)]
Fix Huawei HVS driver attaching volume error

If iSCSI initiator is not added to host, we will get https errors
for we find the initiator info by sending url with this initiator name.

This patch fixes the way of getting the initiator info.
First, get the all initiator info.
Then, find the one we need by name.

Closes-bug: #1230296
Change-Id: I92620374923fa136ee71fe6eb3af6e4c78a3d66b

11 years agoAdd debug logging for targets
John Griffith [Sun, 29 Sep 2013 16:01:58 +0000 (10:01 -0600)]
Add debug logging for targets

Seems we may be failing target create silently,
the situation appears to be that the actual device
lun is not created.  This has been appearing in the
gates on create from snapshot.

This change adds some logging that will help us determine
if it's the actual create, or if it's the attempted update
while the dd process is possibly holding the volume in a busy
state causing the target update to add lun 1 to fail.

Change-Id: If5d4219dedae4649982fa9c13f131bf5f38fb7c4

11 years agoAdd support for querying the quotas usage
Seif Lotfy [Thu, 26 Sep 2013 21:21:14 +0000 (21:21 +0000)]
Add support for querying the quotas usage

QuotaSetsController's _get_quotas already supports querying for
the usage. This patch allows sending a parameter "usage" to the
REST API when asking for quotas

Change-Id: I2103f41ae7aac1ed9f071949db4fb205552694f5