Commit Graph

15859 Commits

Author SHA1 Message Date
pyw 74ed3bcf5f Clear up the .gitignore file
1.Remove duplicate items
2.Sort to alphabetical order
3.Remove "*.sw[po]" instead "*.swp" and "*.swo" for pass
bundling test.

Fixes: bug #1039898
Change-Id: Id8e03ecce6d2ab6d823a992a3a225b5ceb44aa80
2012-08-31 10:09:18 +08:00
Jenkins 0749ffc3be Merge "Spelling: Persistant=>Persistent" 2012-08-30 21:00:28 +00:00
Jenkins 9e172ce806 Merge "External locking for image caching." 2012-08-30 19:34:18 +00:00
Jenkins 89a1131925 Merge "delete unused valiables" 2012-08-30 19:33:19 +00:00
Joe Gordon ec5b30a4ff Spelling: Persistant=>Persistent
Change-Id: I0d22e3f03e8f1a74a8bce7c76c93c9c7170defd5
2012-08-30 12:32:12 -07:00
Jenkins b6f5d60f52 Merge "Assume virt disk size is consumed by instances." 2012-08-30 16:47:40 +00:00
jiangwt100 3d588fec42 delete unused valiables
Change-Id: I65f5ca04882a0738eaad1f61e255d371fa6204ae
2012-08-30 20:16:02 +08:00
Jenkins 4adbb96b55 Merge "Add a new exception for live migration." 2012-08-30 12:12:17 +00:00
Jenkins bc79c3ecc5 Merge "Spelling fix Retrive=> Retrieve" 2012-08-30 04:28:42 +00:00
Jenkins d0693f6c5c Merge "Implements PowerVM get_available_resource method." 2012-08-30 02:20:41 +00:00
Jenkins 3c665eaada Merge "hacking: Add driver prefix recommendation." 2012-08-30 02:19:00 +00:00
Jenkins 5d8290e36b Merge "Sort API extensions by alias." 2012-08-30 02:14:48 +00:00
Joe Gordon e77308cc87 Spelling fix Retrive=> Retrieve
Change-Id: I7eeb8b8477884b1b4e847fe3d76b9b7d578bda8a
2012-08-29 15:50:07 -07:00
Vishvananda Ishaya d20b95ab06 Update requires to glanceclient >=0.5.0
Change-Id: If788b94a142f469b5ce47c49a4dcdb05f1455cce
2012-08-29 13:50:31 -07:00
Dan Prince 22addea2d2 Sort API extensions by alias.
Updates the ExtensionManager so that extensions are sorted by alias when
accessed via the get_resources or get_controller_extensions functions.

This fixes the
integrated.test_api_samples.ServersSampleAllExtensionXmlTest.test_servers_get
test which fails on Fedora 17 (but passes on Fedora 16 and apparently
some other distros as well).

Includes updated api_samples for XML that was regenerated by the
test_servers_get test.

Fixes LP Bug #1042709.

Change-Id: I82c679f457a3cd11c8a8cd76f402693b61bb14cc
2012-08-29 16:01:58 -04:00
Rick Harris 701549ce0d hacking: Add driver prefix recommendation.
Prefixing the commit message's first line with the driver makes it
easier for reviewers, at a glance, to find reviews that relate to their
area of expertise as well as improving the overall readability of the
git history.

Change-Id: I376d2cdb5dc344717fb7749a80e33ee88603e68c
2012-08-29 18:48:43 +00:00
Tiago Mello e5bec8b913 Implements PowerVM get_available_resource method.
Implements get_available_resource method in the PowerVM driver to
fix the failure when launching nova-compute. Also, it removes the
update_available_resource method from PowerVMDriver which is no longer
required.

Fixes bug 1040789

Change-Id: Ibc7e9b80e6d9b8ef3c1a844783a890c592517f89
2012-08-29 11:14:54 -04:00
Jian Wen f94391fb41 Add a new exception for live migration.
Raises new exception InvalidLocalStorage instead of
InvalidSharedStorage when block migration is used with shared storage.
Corrects the message of InvalidSharedStorage.

Fixes bug 1043165

Change-Id: I68bfac3f89276edc38c00ca963911fe07456dc0d
2012-08-29 22:37:25 +08:00
Jenkins 20c6bb6c90 Merge "Do not run pylint by default" 2012-08-29 14:33:01 +00:00
Yaguang Tang b4ac6c0958 Assume virt disk size is consumed by instances.
Use disk_available_least other than free_disk_gb to consume.
assume virt disk size is consumed by instances when calculate
the available disk size.
fix bug lp:1042071

Change-Id: I82dc3bcfd97219085c624c81dfa47cbf0bcd4504
2012-08-29 21:23:00 +08:00
Jenkins aedaf103fa Merge "Fix PEP8 issues." 2012-08-29 12:20:26 +00:00
Michael Still 1523fab5ee External locking for image caching.
If the instance storage is shared between compute nodes, then you
need external locking which is also shared to avoid clobbering each
other's attempts to cache base images. Resolves bug 1014227.

Change-Id: Ic2ac87840904fa199c17774dae9556ad6c7a3eaf
2012-08-29 21:48:26 +10:00
Jenkins 64cec81943 Merge "Accept role list from either X-Roles or X-Role" 2012-08-29 00:12:40 +00:00
Jenkins 151f1467ac Merge "Include launch-index in openstack style metadata." 2012-08-28 23:37:52 +00:00
Joe Gordon 0876cf5bc5 Do not run pylint by default
pylint creates some files, and leaves git in a detached HEAD.

pylint can still be run via 'tox -epylint'

Change-Id: Ic0193f2488f1c6eb4a9f0fabbe24ac9869239890
2012-08-28 15:14:11 -07:00
Jenkins 31f6244428 Merge "Fix KeyError when test_servers_get fails." 2012-08-28 16:52:04 +00:00
Jenkins 7ed7a46dc3 Merge "Port existing code to utils.ensure_tree" 2012-08-28 16:22:22 +00:00
Brian Elliott bc0ba55ae6 Accept role list from either X-Roles or X-Role
Accept the list of roles from either the newer X-Roles header or the
deprecated X-Role header.

This is useful for interoperability with a software proxy in front
of Nova API that performs token authentication and might use the
older header.

Change-Id: I47e33233edf596dd14d07b6be16b030fd6bc352d
2012-08-28 16:16:56 +00:00
lrqrun 9ddd714f08 Fix PEP8 issues.
Fix some pep8 issues in doc/ext/nova_todo.py make the code looks pretty.

Change-Id: I026c873b487b507a758a2cdb70b444b64702b7fa
2012-08-28 23:13:11 +08:00
Dan Prince f3c594a9b8 Fix KeyError when test_servers_get fails.
Updates the integrated.test_api_samples.ServersSampleAllExtensionXmlTest
test_servers_get function so that it doesn't try to list the line number
when the test fails.

Fixes a KeyError: '\'i\' exceptions.

Partial fix for LP Bug #1042709.

Change-Id: I666d18c1d4585cebce4534b1f16cd327850e8cdc
2012-08-28 10:09:05 -04:00
Mark McLoughlin 458ee2eac0 Update nova.conf.sample
Regenerate to account for unused options which were removed by
commit ea06eff7e7

DocImpact: update nova.conf docs
Change-Id: I1082d2869d0b9d33747fb877efb6d99344074b2c
2012-08-28 07:06:50 +01:00
Jenkins 2907ddfffc Merge "Fixes backwards compatible rpc schedule_run" 2012-08-28 02:26:07 +00:00
Jenkins 42b95f2e94 Merge "Allow connecting to a ssl-based glance" 2012-08-28 01:53:23 +00:00
Jenkins 0ec806cab8 Merge "Add ops to aggregate_instance_extra_specs filter." 2012-08-28 00:27:19 +00:00
Jenkins b208190504 Merge "Add the self parameter to NoopFirewallDriver methods" 2012-08-27 23:49:23 +00:00
Jenkins c336e7bc8e Merge "Correct live_migration rpc call in test" 2012-08-27 23:07:40 +00:00
Vishvananda Ishaya 269bad54b6 Fixes backwards compatible rpc schedule_run
Commit 8718f8e47d changed the
schedule_run_instance call to create all of the db records on the
compute host, but the old code path was left in for backwards
compatibility. Unfortunately an extra reservations parameter was
left in causing the backwards compatibility to be broken.

This patch takes out the reservations parameter and commits the
reservation in the backwards compatible call.

Fixes bug 1042302

Change-Id: I1e710d1e9a992f59a18eeedcd7d71726ff96c485
2012-08-27 15:46:16 -07:00
Michael Still 094604707f Include launch-index in openstack style metadata.
Resolves bug 1042020.

Change-Id: I545b771e24a15e109b06b76e9c34a78bc1425b6c
2012-08-28 08:19:50 +10:00
Michael Still a73334b47a Port existing code to utils.ensure_tree
Now that we have ensure_tree in utils, port most users of
os.makedirs() to use it.

Change-Id: I3256cbb76bd889f99f1e6f3367bd620645f828a1
2012-08-28 07:58:18 +10:00
Arata Notsu c2f56b12f4 Correct utils.execute() to check 0 in check_exit_code
If a process exits with returncode 0, the function always returns without
raising a exception, regardless of whether its check_exit_code includes 0 or
not. This patch fixes it; if check_exit_code does not includes 0 and a
process exits with 0, ProcessExecutionError is raised.

(No change required to caller-side since no one misses 0 in check_exit_code)

Change-Id: I824a9bc5e42038e27df6757cd47c06073681c342
2012-08-28 06:24:28 +09:00
Yun Mao 27f6e0db0d Add the self parameter to NoopFirewallDriver methods
Following the Python coding convention even though the current
code works with the *args magic.

Part of bug 1037183

Change-Id: I2be815a098913b5879d0d9b3563a55431408431c
2012-08-27 16:47:59 -04:00
Jenkins 0d1e9ef251 Merge "request_spec['instance_uuids'] as list in resize" 2012-08-27 20:04:44 +00:00
Jenkins 2f2516f4c2 Merge "Add lintstack error checker based on pylint" 2012-08-27 18:38:59 +00:00
Clay Gerrard 8ac2e27143 request_spec['instance_uuids'] as list in resize
Wrap instance['uuid'] in a list when building request_spec in
compute.api before sending it across to the scheduler on resize

regression introduced in I63bbc98c285faebec53f8e62857c01548807db68

fixes bug 1041351

Change-Id: I7cad8316171798e240bf78999cb94730c587a904
2012-08-27 13:38:30 -05:00
Jenkins 0afb127c59 Merge "Remove unused flags" 2012-08-27 16:53:00 +00:00
Jenkins de8335ff8f Merge "Fix column variable typo" 2012-08-27 16:43:59 +00:00
Jenkins f10e4480d4 Merge "Move ensure_tree to utils" 2012-08-27 16:43:03 +00:00
Yun Mao d14fbc5b73 Fix column variable typo
attach_datetime is not available during downgrade. It's a copy/paste
bug from the upgrade function.

Partially fix bug 1037183

Change-Id: I97e2cf98a180a6c80e59545a9cda9852fa6ac563
2012-08-27 12:03:24 -04:00
Jinwoo 'Joseph' Suh 6bc54f4af0 Add ops to aggregate_instance_extra_specs filter.
The following operators on instance_type_extra_specs were added in
aggregate_instance_extra_specs filter. Fixes bug 1037090.

= (equal to or greater than as a number; same as vcpus case)
== (equal to as a number)
!= (not equal to as a number)
>= (greater than or equal to as a number)
<= (less than or equal to as a number)
s== (equal to as a string)
s!= (not equal to as a string)
s>= (greater than or equal to as a string)
s> (greater than as a string)
s<= (less than or equal to as a string)
s< (less than as a string)
<in> (substring)
<or> (find one of these)

If the first word in the instance_type_extra_spec is not one of the
keywords above, a default operator "s==" is used.

E.g.: ">= 5", "s== 2.1.0", "<in> gcc", and "<or> fpu <or> gpu"

Change-Id: Iee9bf68011738aab146e6311a17cb3c673d7a392
2012-08-27 11:57:06 -04:00
unicell 34c012c709 Implement project specific flavors API
blueprint project-specific-flavors

This change implements API extension to manage project specific flavor
types, so that non-public flavor type can only see by projects with
access rights.

Change-Id: Ie2d2c605065b0c76897f843a4548a0c984a05f1a
2012-08-27 23:45:05 +08:00