2665 Commits

Author SHA1 Message Date
Tang Chen
0695d1495e Trivial: Fix coding style in examples in doc
Now, we use i18n strings for help and log messages,
and standardize the usage of logger. So fix those
in the example in doc.

Change-Id: Ibbc051b12133699811dd35a7e77a10de50ed8e44
2016-06-13 09:40:19 +08:00
OpenStack Proposal Bot
df71ae814e Updated from global requirements
Change-Id: I729673d3c5e7f32ddf6f912d8ac5b7ca3b1cb394
2016-06-09 16:23:05 +00:00
Jenkins
ada6abb30e Merge "Make set/unset commands in network return normally when nothing specified" 2016-06-09 14:58:17 +00:00
Jenkins
087d4a3d8a Merge "Fix network" 2016-06-09 12:14:58 +00:00
OpenStack Proposal Bot
db0849e711 Updated from global requirements
Change-Id: I944891584a7479c8d8bdf545af8a6af0460f42d5
2016-06-08 22:04:01 +00:00
Jenkins
85263eaa11 Merge "Remove duplicate file logger formatter setting" 2016-06-08 15:13:57 +00:00
sunyajing
aefd2195b1 Fix network
modify ``columns, data`` to ``(columns, data)`` in network,
to keep code consistence.

Change-Id: I0522c499d1651b4ea948bebccbdfd520934e8e6a
2016-06-08 17:08:36 +08:00
Rui Chen
a4670054c6 Remove duplicate file logger formatter setting
Change-Id: Ia7851a4266fa61658c48cc894163c6afb7252750
2016-06-08 16:28:59 +08:00
Tang Chen
e3270cdfd8 Make set/unset commands in network return normally when nothing specified
set/unset commands should ends up normally instead of raising
an exception when nothing is specified to modify. The main
reason is: When nothing is specified, the command sets/unsets
nothing, which is a normal behavior, and ends up normally.
No API call fails. No error happens.

This patch also adds a releasenote for both network, and volume
commands that fix patch has been merged.

Change-Id: I78c348066078decd350417a431f3b8bea8fcf9ef
Partial-bug: #1588588
2016-06-08 14:31:17 +08:00
Huanxuan Ao
72d3ebd94c Clean up fakes.py in volumev2
All of volumev2 fake classes are completed.
Now the unit tests of volumev2 are using fake
classes so that the old codes are useless and
can be removed.

Change-Id: I502a8a0b0404975744d3b208af3e95c8692e6c47
2016-06-08 13:36:16 +08:00
Jenkins
84506a6b71 Merge "Fix compute service set command" 2016-06-08 05:03:47 +00:00
Jenkins
c272476b7b Merge "Error handling for KeyValueAction class." 2016-06-08 04:30:58 +00:00
Jenkins
4c331bd5f9 Merge "Update unit test test_extension with fake class" 2016-06-08 04:12:48 +00:00
sunyajing
565499577f Fix compute service set command
add ``Binary name`` to help msg of compute service set command.

Change-Id: I5ed3824ec5bede250ce41f187835e8901b5e11fd
2016-06-08 03:07:16 +00:00
Huanxuan Ao
cf12239773 Error handling for KeyValueAction class.
The set --property command requires that the input match
the "key=value" type, but if the type don't match, the return
value will be None, and the command still can be implemented
successfully, this may confuse the users. I think we should
raise exception if the argument type don't match "key=value".
So I make some changes in KeyValueAction class in this patch.

Change-Id: I14e64922faa7e083bc8b5e7e1cac41ef8117c224
Closes-Bug: #1589935
2016-06-08 10:15:19 +08:00
Jenkins
817f5f3196 Merge "Fix i18n supports in commom" 2016-06-07 18:52:37 +00:00
Jenkins
7dc2e1dc08 Merge "Release note cleanups for 2.6.0" 2.6.0 2016-06-07 16:57:41 +00:00
Dean Troyer
d24c255e43 Release note cleanups for 2.6.0
Change-Id: I7c19cac77f1236c8241d18f2bdde83917e50fae9
2016-06-07 07:58:50 -05:00
Huanxuan Ao
b36d521ff6 Fix i18n supports in commom
I checked all the files in openstackclient/common
and fixed the missing i18n supprots.

Change-Id: Id7f76a24aae663f5832ef9bcf1bd5a6b7081af24
Partial-bug: #1574965
2016-06-07 19:56:00 +08:00
Jenkins
26d7657f1f Merge "Support error handling for "port delete" command" 2016-06-07 10:33:40 +00:00
Huanxuan Ao
0fd3a8c787 Update unit test test_extension with fake class
Add FakeExtension class in networkv2, computev2, volumev2,
identityv2_0 and update unit test test/common/test_extension.py

Change-Id: I94815de7801860edb7fa91a7d146455cab946652
2016-06-07 16:17:42 +08:00
Huanxuan Ao
eb421f6dab Support error handling for "port delete" command
"Port delete" command supported deleting multi ports
before but didn't support error handing, This patch
add the error handling following the rules in
doc/source/command-errors.rst.

Change-Id: I4ea69f2279763626d6a27cad1ca0ee99822d016d
Partially-Implements: blueprint multi-argument-network
2016-06-07 16:00:54 +08:00
Tang Chen
5293bb103e Fix i18n support problems in identity
Change-Id: I3b48d17850343051239b5b69e8b890dba32d3ac8
Partial-bug: #1574965
2016-06-07 09:37:02 +08:00
Jenkins
dd0fe3d94e Merge "Fix errors for "volume type unset" command" 2016-06-07 01:31:50 +00:00
Jenkins
3f7f1c6582 Merge "Add functional tests for IP availability" 2016-06-07 00:43:12 +00:00
Jenkins
1244d4d5fe Merge "Fix release note links to (now) external docs" 2016-06-06 22:49:03 +00:00
Jenkins
19c54b61c1 Merge "Refactor SetService --enable/disable option" 2016-06-06 21:56:55 +00:00
Jenkins
376e3379ee Merge "Make set/unset commands in volume return normally when nothing specified" 2016-06-06 21:48:12 +00:00
Manjeet Singh Bhatia
5d404ecd05 Add functional tests for IP availability
This patch adds functional tests for IP availability

Partially-Implements: blueprint neutron-ip-capacity
Change-Id: I1c1dc01801707fe8f0dc3c976e5d345d2b0db0ec
2016-06-06 17:43:57 +00:00
Dean Troyer
658dc23f26 Fix release note links to (now) external docs
Moving the old release notes into the Reno releasenots tree broke
the embedded :doc: roles.  Restore these using sphinx.ext.extlinks to
manage the URL to the OSC docs.

Add the following aliases:
* lpbug - generic Launchpad bug        :lpbug:`123456`
* oscbp - OSC blueprints               :oscbp:`Blue Print <bp-name>`
* oscdoc - OSC Docs                    :oscdoc:`Comamnd List <command-list>`

Change-Id: Iecfdd666d961c35f0ccb3b9f10df1d2620cb099f
2016-06-06 10:21:47 -05:00
Jenkins
8183e6daf7 Merge "Updated from global requirements" 2016-06-06 15:03:02 +00:00
Jenkins
50b27cc80d Merge "Add server set/unset unit test cases" 2016-06-06 13:36:51 +00:00
Jenkins
9504b7973e Merge "Add newline to strings in stdout/stderr.write()" 2016-06-06 13:06:47 +00:00
Huanxuan Ao
4bea5d37d9 Fix errors for "volume type unset" command
Normally, we can unset multi properties but the "volume type unset"
command could not, because the action "append" was missed. So I add
it and also fix the unit test and doc in this patch.

Change-Id: I20470f2b7bb2a8d7f292cea498826669c3418c77
2016-06-06 19:04:36 +08:00
Jenkins
275753bacc Merge "fix keypair help msg" 2016-06-06 08:45:13 +00:00
Jenkins
9661354979 Merge "Add network availability for osc" 2016-06-06 08:20:15 +00:00
sunyajing
5b317936cb fix keypair help msg
keypair delete and keypair show commands cannot work on keypair ID

Change-Id: I958fcd2ed184706b28d63cc9c73a8b566e86a16c
Closes-Bug:#1588701
2016-06-06 06:50:13 +00:00
Jenkins
36bbf9b365 Merge "modify server group" 2016-06-06 06:43:51 +00:00
Lu lei
54e81a9984 Add newline to strings in stdout/stderr.write()
Function stdout/stderr.write() can't break line automatically.

Change-Id: I903c2d1cc1a669adb6be5aa4eb783d3b9943e685
2016-06-06 13:54:55 +08:00
Jenkins
045622efd5 Merge "fix image unset" 2016-06-06 05:53:25 +00:00
sunyajing
6de7bf0abc modify server group
make column_headers equal to columns, to keep code consistence

Change-Id: Ia96b398ad822fc5fac3753e28709c370165bda8a
2016-06-06 11:47:59 +08:00
zheng yin
2c965b88f6 fix image unset
modify "target" to "tagret"

Change-Id: I80674b23804b26430aed13b5e6c6dc2b240771cd
2016-06-06 11:09:25 +08:00
Rui Chen
08e7801ff4 Add server set/unset unit test cases
Unit test cases don't cover compute "server set/unset" commands,
the patch add some test cases for them.

Change-Id: I440c32968bd41b948352a9764a37c9af3e68803d
2016-06-06 09:57:55 +08:00
OpenStack Proposal Bot
d4c86de0f1 Updated from global requirements
Change-Id: Ic65f591351d97d3965d86d846b5b82d95b0a3bd2
2016-06-05 16:27:02 +00:00
Jenkins
93db7f58ed Merge "Support multiple argument for compute agent delete command" 2016-06-05 04:36:26 +00:00
Jenkins
1c097b777c Merge "Add support for volume transfer request list" 2016-06-04 20:36:24 +00:00
Sheel Rana
2178cedef1 Add support for volume transfer request list
OSC does not support to list volume transfer from one user
to other user.
This patch will provide support for listning volume transfer
requests.

Closes-Bug:#1554886

Implements: bp cinder-command-support

Change-Id: Ie659bc39cb1d1e931cca7a40b2f126a067ee484c
2016-06-04 18:26:59 +00:00
Tang Chen
ac1d86c343 Refactor SetService --enable/disable option
This patch changes the following:

1. --enable/disable option should follow the rules
   in the doc below:
   http://docs.openstack.org/developer/python-openstackclient/command-options.html#boolean-options

2. "--disable-resion" is specified but not "--disable",
   an exception is raised instead of igoring
   "--disable-reason" option.

Change-Id: I92e9234111e661bfe7119a8e19389a87c874ab0c
2016-06-04 22:42:46 +08:00
Jenkins
81718beb8f Merge "Fix wrong test in flavor unit tests" 2016-06-04 14:31:49 +00:00
Jenkins
7fb10e74ba Merge "Check port name in set port tests" 2016-06-04 14:31:43 +00:00