1655 Commits

Author SHA1 Message Date
Mark Vanderwiel
71e1adeaf0 Allow error status to be specified
For some apis, heat, the error status is "failed". This patch
changes the wait_for_status method to allow for the error
status to be passed in the same way as the success status.

Change-Id: I20db4051d3f5611a4b13fe23ea8798b82a40da81
2015-11-18 17:48:43 -06:00
Dean Troyer
1a8020cc1b Remove deprecated 'project usage list' command
Remove the 'project usage list' command that was deprecated in version
1.0.2 in review Ie08d4f88d71a660fca1862405351109cd0aa86b6.

Note that the removed command class is a good example of how to wrap a
command and show a deprecation message.

Change-Id: I6c750730963615895f5d9953487d2d5a905885a8
2015-11-18 15:37:55 -06:00
Jenkins
5f6f456bfd Merge "Add release notes for 1.9.0" 2015-11-17 21:56:01 +00:00
Jenkins
74d53cdd50 Merge "Enable "openstack server unlock" command to take multiple servers." 2015-11-17 02:26:15 +00:00
Steve Martinelli
471881f85e Add release notes for 1.9.0
Sum up the latest bug fixes for the latest release.

Change-Id: I4f6e9e9d5062e5ccb94f088abdc270fc40373d16
2015-11-16 19:15:21 -05:00
Jenkins
5dffc9d860 Merge "Enable "openstack server lock" command to take multiple servers." 2015-11-16 03:28:01 +00:00
Jenkins
f177160991 Merge "Enable "openstack server unpause" command to take multiple servers." 2015-11-16 02:28:41 +00:00
Jenkins
6952916c48 Merge "better format remote IDs for identity providers" 2015-11-15 01:24:47 +00:00
Jenkins
c6949c782c Merge "Improve "server list" command to have the same output as "nova list"." 2015-11-13 22:54:27 +00:00
Tang Chen
fc32b0d76b Improve "server list" command to have the same output as "nova list".
"nova list" will also output "Task State" and "Power State" by default.
This patch improves "server list" command to have the same columns, but
not by default. These two columns will be output if --long is added.

The power state is an int, so also adds a formatter helper function
to translate it to human readable string, just as "Networks" does.

Change-Id: I0530a910bec03835839a5ba7687c66d5643338f3
2015-11-14 09:38:01 +08:00
Jenkins
5243b093ca Merge "Split the vol_id from a dev mapping" 2015-11-13 16:44:44 +00:00
Tang Chen
91fbb0e136 Enable "openstack server unlock" command to take multiple servers.
Current "openstack server unlock" command could only unlock one server.
Improve it to be able to handle more than one servers. Also improve the
doc to reflect the new feature.

Change-Id: Ibf57b2021a504da950a491d63139a438087aed0b
Implements: blueprint cmd-with-multi-servers
2015-11-13 11:02:01 +08:00
Tang Chen
c1f0ad6d71 Enable "openstack server lock" command to take multiple servers.
Current "openstack server lock" command could only lock one server.
Improve it to be able to handle more than one servers. Also improve
the doc to reflect the new feature.

Change-Id: Ifcf103b1c32e6c547ac09f688b887b1c03f92b09
Implements: blueprint cmd-with-multi-servers
2015-11-13 10:36:22 +08:00
Tang Chen
90d86ef01c Enable "openstack server unpause" command to take multiple servers.
Current "openstack server unpause" command could only unpause one server.
Improve it to be able to handle more than one servers. Also improve the
doc to reflect the new feature.

Change-Id: I069ebdd6dcd121f6e55c2bf40d42197f93830e0c
Implements: blueprint cmd-with-multi-servers
2015-11-13 10:36:16 +08:00
lin-hua-cheng
51f2fda041 Add capability to update description of an IdP
Change-Id: I854067642bbfde6fdf84b22b9cc1de8afc7767c0
Closes-Bug: #1515815
2015-11-12 16:49:45 -08:00
Jenkins
6e1ad73723 Merge "validate non-ascii values for swift properties" 2015-11-12 22:38:58 +00:00
Steve Martinelli
cfd2bf5882 validate non-ascii values for swift properties
skip properties that are non-ascii values, but proceed
with properties that work. log these failed values back
to the user.

Change-Id: Iaca8909f4465a01c8aebfd290b1a322823702359
Closes-Bug: 1503898
2015-11-12 11:07:57 -06:00
Jenkins
c39708beff Merge "Trivial: Fix wrong param name in comment." 2015-11-12 07:01:34 +00:00
Tang Chen
ed82312bcb Trivial: Fix wrong param name in comment.
"volume" should be "attachments".

Change-Id: Id1e9a733e18db595d8981b5b3a7735313a346787
2015-11-13 11:44:14 +08:00
Jenkins
6a8c0f3ff6 Merge "Add project-name/-id validation for the OSC "openstack quota set"" 2015-11-12 05:01:41 +00:00
xiexs
8b23c2690c Split the vol_id from a dev mapping
Add a split into the dev mapping to get the right vol_id.

Change-Id: I1a7bf6351491b1321c5ca0fa4a27f29825400eaf
Closes-Bug: #1514394
2015-11-11 23:47:02 -05:00
Jenkins
ed0981f4d8 Merge "Fix the bug of "openstack console log show"" 2015-11-12 03:31:56 +00:00
Steve Martinelli
c079e13774 better format remote IDs for identity providers
remote-ids are a list, and we should format these values as such,
rather than python representations of lists/arrays.

Closes-Bug: 1478995

Change-Id: Ia6ced0fab2435b8cb486822c676c0dee32613abe
2015-11-12 02:56:49 +00:00
Jenkins
6611f3781b Merge "Set default network api to 2.0 instead of 2" 2015-11-12 00:08:58 +00:00
Jenkins
62b5865dce Merge "Add --owner to image create" 2015-11-12 00:03:14 +00:00
Jenkins
53fc20fa6f Merge "Fix the bug of "openstack usage show"" 2015-11-11 21:46:38 +00:00
Jenkins
46f1676dce Merge "Fix issue when displaying image_member" 2015-11-11 21:46:07 +00:00
Jenkins
daf1e09009 Merge "Add Command Options guideline doc" 2015-11-11 21:45:04 +00:00
Jenkins
0cc0b8d112 Merge "Add compute service delete" 2015-11-11 19:31:01 +00:00
Tang Chen
c396b69d37 Trivial: Fix wrong param name in comment.
"volume" should be "attachments".

Change-Id: I41c797f0c7cccb2727e9e6cd6424ea2f740624b7
2015-11-12 17:02:24 +08:00
Jenkins
4a76b4dd51 Merge "Trivial cleanup: Use plural format for "server delete" doc." 2015-11-10 03:40:18 +00:00
Tang Chen
c9756667ce Trivial cleanup: Use plural format for "server delete" doc.
Change-Id: I4dca25f1933d5925db443eca75f602a39a833413
2015-11-10 16:28:25 +08:00
Monty Taylor
441543d67f Set default network api to 2.0 instead of 2
neutronclient expects 2.0 as the version if you go through the discovery
constructor. For that reason, 2.0 is the 'correct' version to set in
config files or environment variables for if you're using things that
are not OSC. However, if you do that, OSC prints a warning that 2.0 is
not in the supported network version list.

Let's support both so that users don't get a confuse.

Change-Id: I7412519693f75fcd29f5621ce9e5a2df2da92684
2015-11-09 09:31:37 -05:00
xiexs
ea63553925 Fix the bug of "openstack console log show"
The behaviors are inconsistent while different
negative line numbers specified.

Change-Id: I2573f3e789f5603c896758971830ffc0b94c5e2b
Closes-Bug: #1512263
2015-11-09 04:22:09 -05:00
Tang Chen
a337f664d2 Enable "openstack server pause" command to take multiple servers.
Current "openstack server pause" command could only pause one server.
Improve it to be able to handle more than one servers. Also improve
the doc to reflect the new feature.

Change-Id: I809f77f0720457c9cdc1028a70b391c75885984c
Implements: blueprint cmd-with-multi-servers
2015-11-09 04:27:45 +00:00
Jenkins
6dfa304617 Merge "Allow int version numbers in the clouds.yaml" 2015-11-08 22:16:00 +00:00
Jenkins
1cf09be913 Merge "Use fake server name instead of id when testing "server_name" param." 2015-11-08 13:59:04 +00:00
Jenkins
0ab2dac8e2 Merge "Change method to get the user_id" 2015-11-08 06:31:16 +00:00
xiexs
176735f4aa Change method to get the user_id
Instead of "find_project", using "find_user" to get the user_id
while the option --user is specified for "openstack volume list"

Change-Id: Iea8472b7b8e709a8792a56575e00003a9cbdaa39
Closes-Bug: #1514145
2015-11-08 03:57:23 +00:00
Tang Chen
f8f2f4dcd3 Use fake server name instead of id when testing "server_name" param.
"server create" command takes a server name parameter. The server id is
generated by openstack.

When we intended to pass a server name to the unit tests of "server create"
command, we passed server id. It won't be any problem because the fake
server id is also a string, but we should pass a fake server name because
we have a string to fake one.

Change-Id: I9944f0ea2a6c457e4fad8215a54778bca08965ab
2015-11-07 14:39:53 +08:00
xiexs
db46666589 Fix a bug about "openstack server list --user"
Fix the bug to get the right user id.

Change-Id: Ie60a719a40654802772884ff94271b37aa061ac3
Closes-Bug: #1513701
2015-11-06 09:16:51 -05:00
NiallBunting
5ad59968ac Add --owner to image create
This adds --owner to `image create`. This is backwards compatable with v1.

Change-Id: I9e79cf880c91a1386419db729818d23dfe632179
Depends-On: I8d572a070bbb04dccdd051b8e0ad199c5754746e
2015-11-06 10:43:08 +00:00
Jenkins
8a1fb85dba Merge "Trivial: Fix wrong comment of _format_servers_list_networks()." 2015-11-05 13:37:45 +00:00
Tang Chen
45a07afd54 Trivial: Fix wrong comment of _format_servers_list_networks().
The parameter name should be 'networks'.

Change-Id: I140c3d61dccbbec40c14bd7a8f2aeac0eb24384d
2015-11-06 19:02:36 +08:00
Jenkins
f40a04c30a Merge "Add "server stop" command to osc." 2015-11-05 12:31:22 +00:00
Jenkins
334ef75d4f Merge "Add "server start" command to osc." 2015-11-05 12:23:33 +00:00
Tang Chen
7107b5536e Add "server stop" command to osc.
There is no stop command in osc. Add it.

Change-Id: Ia11a8f3b1245c884f7da442292009342d2ffde1e
Implements: blueprint cmd-with-multi-servers
2015-11-05 15:43:39 +08:00
Tang Chen
1809faaf1f Add "server start" command to osc.
There is no start command in osc. Add it.

Change-Id: Ic50f83413ab17c53396065aabb3f5a1506b52959
Implements: blueprint cmd-with-multi-servers
2015-11-05 15:43:15 +08:00
TerryHowe
2f00fcda77 Allow int version numbers in the clouds.yaml
OSC blows up if you try to use for example identity_api_version: 2
in the clouds.yaml.  It will only work with a string '2'.  This
fixes that.

Change-Id: I785d37a288126a1582464e907c7f9c9947bac27c
2015-11-04 11:20:43 -07:00
Sean Perry
c49c9df105 Import the module not the class
As requested during review 226922.

Change-Id: Ic5222141e247ce33cf5dbee66667cee3040e1cc3
2015-11-04 09:51:58 -08:00