2886 Commits

Author SHA1 Message Date
Jenkins
63a6789add Merge "Use FakeProject and FakeDomain classes in unit tests of networkv2" 2016-07-14 06:25:39 +00:00
Jenkins
56a232c79f Merge "Change the wrong import order" 2016-07-14 05:13:09 +00:00
Jenkins
1620964cfe Merge "Remove useless dest of option in volume v1&v2" 2016-07-14 04:06:56 +00:00
Dean Troyer
067647b6a4 Temp work around for missing select_auth_plugin()
These were removed prematurely from osc-lib (by me) but the real fix in
https://review.openstack.org/329189 is having racy functional test issues
that may be related to osc-lib, so let's clear this up while we fix that...

Change-Id: I8f67466967751fdf6fd24ae1b16ccee2aec52323
2016-07-13 10:33:19 -05:00
Huanxuan Ao
f79f671338 Change the wrong import order
Change-Id: Ia48f0aae0250a5d29c0f6fa46386465e118f760f
2016-07-12 16:51:21 +08:00
Jenkins
5a21eb2555 Merge "Add "--incremental" option to "backup create" command in volume v2" 2016-07-11 20:15:15 +00:00
Jenkins
357d7e75f3 Merge "Unskip tests caused by bug 1599333" 2016-07-11 19:40:14 +00:00
Paul Bourke
34812655a5 Add "--incremental" option to "backup create" command in volume v2
Cinder V2 API supports creating volume backup with "--incremental"
option. However, OSC doesn't support this argument. So this patch adds
the "--incremental" option to allow users to create incremental style
backups.

Change-Id: Iefac5f1a6c9ef006ad9c22d4250ae6df50504781
Closes-Bug: 1600196
2016-07-11 13:29:59 -04:00
Jenkins
5636d99a2b Merge "Make the doc build reproducible" 2016-07-11 16:12:54 +00:00
Jenkins
eae0dc10b9 Merge "Add missing "Volume version 2 only" message in backup.rst" 2016-07-11 16:01:41 +00:00
Thomas Goirand
393ecedc3b Make the doc build reproducible
This fixes Debian bug:
https://bugs.debian.org/826676

Change-Id: I638488448a4d6e644ab0e6deaebd65c92fa7904a
2016-07-11 14:55:12 +02:00
Huanxuan Ao
6825263609 Use FakeProject and FakeDomain classes in unit tests of networkv2
FakeProject and FakeDomain classes have been completed
in identityv2_0 and v3, Now we can use these classes
instead of old test data in networkv2.

Change-Id: I2f698e54ff35e24ffbdcaba29da6f96eb263cc0a
Partially-Implements: blueprint use-fake-project
2016-07-11 15:07:03 +08:00
Jenkins
00a15351eb Merge "Add notes, modify notes in fakes docstring" 2016-07-11 03:44:27 +00:00
Huanxuan Ao
59c9d508ef Add missing "Volume version 2 only" message in backup.rst
Former patchs add some volume v2 only options for backup but
miss "Volume version 2 only" message. This patch adds them.

Change-Id: Id50db25617776b6ee0d0ad6b4b82bd443b940343
2016-07-11 11:19:40 +08:00
Huanxuan Ao
cd189860e5 Remove useless dest of option in volume v1&v2
some "dest" argument is useless because they are
the same as the option name. So remove them.

Change-Id: Idd37e8816cf8b0833c94a5e741fdfe56602551f9
2016-07-11 10:10:59 +08:00
Jenkins
ffa2b56713 Merge "Updated from global requirements" 2016-07-10 05:00:45 +00:00
OpenStack Proposal Bot
226766ae74 Updated from global requirements
Change-Id: I4be6137a0d6717702e495d391cd9cb404fcf26ce
2016-07-09 19:27:08 +00:00
ji-xuepeng
17f177bb71 remove unused LOG
This is to remove unused LOG to keep code clean.

Change-Id: Ic544157b19cefb4120381f3314334c60a9020baf
2016-07-09 23:23:38 +08:00
OpenStack Proposal Bot
746e1937c9 Updated from global requirements
Change-Id: Ie3f88ed6c0db05795ad6f46eb7596bb4f9ffcc13
2016-07-09 03:17:22 +00:00
zheng yin
94f654b010 Remove FakeService.get_services
FakeService.get_services is useless in other test files, so remove it

Change-Id: If90b8742be97697f285750a05896b574c45f3504
2016-07-09 05:37:55 +08:00
zheng yin
527b2030fb Add notes, modify notes in fakes docstring
Some code has no notes, then add them
Some code notes are not perfect, then improve them
Some code notes are incorrect, then modify them

Change-Id: I43f9a8663ae138bdd494bc234c1fac00c2dd6c95
2016-07-08 18:36:11 +08:00
Steve Martinelli
9f09d8c5d4 Unskip tests caused by bug 1599333
There is now a second .get() call in osc_lib.utils.find_resources.
These tests were failing because they only mocked a single access
call to .get(). Ensure there are two calls to .get(), with the
first one raising an exception.

Change-Id: Idd2ad4a27a6db5bee633cc37a1042dbb0a57aa71
Closes-Bug: #1599333
2016-07-07 22:54:23 -04:00
Jenkins
ffb232a90e Merge "Correct reraising of exception" 2016-07-07 20:56:18 +00:00
Jenkins
2adeac2bc2 Merge "osc-lib: api.auth" 2016-07-07 19:49:06 +00:00
Jenkins
bca1851911 Merge "modify notes in the FakeHypervisorStats docstring" 2016-07-07 17:35:55 +00:00
qinchunhua
6f36385cb8 Correct reraising of exception
When an exception was caught and rethrown,
it should call 'raise' without any arguments
because it shows the place where an exception
occured initially instead of place where the exception re-raised.

Change-Id: I5fb6dea5da7fb6e1e2b339a713c7d37f8c99e407
2016-07-07 15:05:58 +00:00
zheng yin
cc9efea9e0 modify notes in the FakeHypervisorStats docstring
The arugments should be: count and current_workload

Change-Id: I445d1d72d1f1b86a626bb4c9512cdb8311b2ebc9
2016-07-07 14:10:32 +00:00
zhengsenyan
1e895f3286 fix one spelling mistake and two help messages
I checked all the 70 rst files in doc/source/command-objects and
found that:
 -one spelling mistake as:rescure should be rescue(server.rst)
 -two help messages:xpvnc should be xvpvnc(console-url.rst and
  console.py)

Change-Id: I6f46c79983eaf5650bd3aa0ab448c19f5c6527a9
2016-07-07 14:19:04 +08:00
Jenkins
272d193401 Merge "Deduplicate get_opts methods" 2016-07-06 15:31:42 +00:00
Jenkins
e0b63e64c1 Merge "Add "--property" option to "snapshot create" command in volumev2" 2016-07-06 15:31:39 +00:00
Jenkins
f1a27a73d6 Merge "Add '--force' option to 'backup delete' command in volumev2" 2016-07-06 14:59:53 +00:00
Jenkins
7f8999bf54 Merge "Transfer "ip fixed add/remove" to "server add/remove fixed ip"" 2016-07-06 13:59:32 +00:00
Jenkins
2b8213df88 Merge "Transfer "ip floating add/remove" to "server add/remove floating ip"" 2016-07-06 13:59:06 +00:00
Jenkins
8d5a0fd86e Merge "Transfer "ip floating pool list" to "floating ip pool list"" 2016-07-06 13:50:32 +00:00
Jenkins
472d4532e6 Merge "Add command to unset information from ports" 2016-07-06 13:08:04 +00:00
Huanxuan Ao
f5aef9ac36 Add '--force' option to 'backup delete' command in volumev2
Add '--force' option to 'backup delete' command in
volumev2 (v2 only) to allow delete in state other
than error or available.

Change-Id: I661ea0d465db227e374cbacdde0206fa1a6dd3d5
Closes-Bug: #1597188
2016-07-06 20:51:01 +08:00
Huanxuan Ao
3222ffc157 Add "--property" option to "snapshot create" command in volumev2
Add "--property" option to "snapshot create" command
in volumev2 (v2 only) to support adding properties to
a new snapshot.

Change-Id: Ie0e90c9ccc2ac89b3b7b0ac89751fd864aada9a4
Closes-Bug: #1597192
2016-07-06 20:46:31 +08:00
jqjiang.1@gmail.com
1b05a6dff9 fix some spelling mistakes in doc/
I check all the files under doc/ directory and find three
spelling mistakes
 - exeuction should be execution
 - Fefora should be Fedora
 - opentackclient should be openstackclient

Change-Id: If9e5d07b6558871bb3f8d55b52bf8f1d9db0897e
2016-07-06 16:09:21 +08:00
Jenkins
4ce7dd53e8 Merge "Refactor unit tests for project and domain with fake classes in identityv3" 2016-07-06 04:08:03 +00:00
Steve Martinelli
72a82b2794 skip failing tests due to bug 1599333 is fixed
latest osc-lib breaks some of the tests, skip them for now
so we can continue to merge patches that are already approved.

Change-Id: I433190e9f763bea1df3135612b281d925745f884
Related-Bug: 1599333
2016-07-05 20:24:31 -04:00
Kyrylo Romanenko
259b4a1462 Deduplicate get_opts methods
One get_opts method can work instead of
get_list_opts and get_show_opts both.
Remove mutable default value.

Change-Id: I9c5683d416f0f3ed4989abab6f152b0341e30a4f
2016-07-05 15:39:03 +00:00
Jenkins
44d4188149 Merge "fix a few spelling mistakes" 2016-07-04 17:19:59 +00:00
Jenkins
73a0ad7cf3 Merge "Remove useless dest of option in "snapshot create" command" 2016-07-04 16:13:45 +00:00
gecong1973
6115dfe9f8 fix a few spelling mistakes
- overwriten should be overwritten
 - retrun should be return

Change-Id: I1567402f4d5c7253e6a54d8753e3f201af7e6a54
2016-07-04 15:15:23 +00:00
Huanxuan Ao
8aa00894ef Remove useless dest of option in "snapshot create" command
The option is '--force' and the default argument is
'force', so the 'dest=force' is useless and unnecessary.
This patch remove it.

Change-Id: If8fd5270e4e36b5361127f4a91bdf347f29341c2
2016-07-04 16:46:28 +08:00
Huanxuan Ao
43a07e133d Add missing '(name only)' message for keypair in computev2
In 'keypair show' command. One help message had '(name only)'
but the doc had not. And another had not '(name only)' but the
doc had. This patch Fixs them and keeps the consistent between
doc and help message.

Change-Id: Ic88219ae25a6f545a1db39e6b585e1857ae9e2e0
2016-07-04 14:45:40 +08:00
Huanxuan Ao
441e4e963a Refactor unit tests for project and domain with fake classes in identityv3
Add FakeProject and FakeDomain classes and update unit tests for
project and domain.

Change-Id: Ifeed5dcba03155daa3b7b46b34d49c333ab19135
Partially-Implements: blueprint refactor-identity-unit-test
2016-07-04 14:27:37 +08:00
Tang Chen
179ebe6d64 Transfer "ip fixed add/remove" to "server add/remove fixed ip"
This patch does the following things to transfer
"ip fixed add/remove" to "server add/remove fixed ip":
* Add new command "server add/remove fixed ip", and unit
  tests and doc.
* Deprecate "ip fixed add/remove" command.

compute/v2/fixedip.py is not removed because the arguments'
positions are different between the new and old commands.
* ip fixed add <network> <server>
  server add fixed ip <server> <network>
* ip fixed remove <ip-address> <server>
  server remove fixed ip <server> <ip-address>

Change-Id: Ica07ccf92a76c21fd5608ecaff86ff7c4d96f5a0
Implements: blueprint rework-ip-commands
Partial-bug: 1555990
Co-Authored-By: Dean Troyer <dtroyer@gmail.com>
2016-07-04 10:41:30 +08:00
Tang Chen
d1f9ea3f75 Transfer "ip floating add/remove" to "server add/remove
floating ip"

This patch does the following things to transfer
"ip floating add/remove" to "server add/remove floating ip":
* Add new command "server add/remove floating ip", and unit
  tests and doc.
* Deprecate "ip floating add/remove" command.

compute/v2/floatingip.py is not removed because the arguments'
positions are different between the new and old commands.
* ip floating add <ip-address> <server>
  server add floating ip <server> <ip-address>
* ip floating remove <ip-address> <server>
  server remove floating ip <server> <ip-address>

Change-Id: Ic0dd22ca6fb7b7bc3e820fd5a14d7c551e7ab963
Implements: blueprint rework-ip-commands
Partial-bug: 1555990
Co-Authored-By: Dean Troyer <dtroyer@gmail.com>
2016-07-04 10:40:59 +08:00
Tang Chen
50bd56db25 Transfer "ip floating pool list" to "floating ip pool list"
This patch does the following things to transfer
"ip floating pool list" to "floating ip pool list":

* Add a new command "floating ip pool list" to deprecate
  "ip floating pool list". The source code is in network/v2
  dir.
* Add doc for "floating ip pool list".
* Add floating ip pool unit tests.

Change-Id: Id410f4e4a96cf589a6e8def209574da71395b55f
Implements: blueprint rework-ip-commands
Partial-bug: 1555990
Co-Authored-By: Dean Troyer <dtroyer@gmail.com>
2016-07-04 10:40:00 +08:00