2724 Commits

Author SHA1 Message Date
Jenkins
c33a213cf1 Merge "Support bulk deletion for delete commands in networkv2" 2016-06-16 16:30:23 +00:00
Jenkins
5d23a1208a Merge "Add "--password-prompt" to user.rst" 2016-06-16 14:18:55 +00:00
Jenkins
fbef7ce825 Merge "Set up 3.x release notes" 2016-06-16 14:13:51 +00:00
Jenkins
b9a318156c Merge "Move server image create command to its own resource file." 2016-06-16 13:05:18 +00:00
Jenkins
ed38aa6cbc Merge "Modify doc issues about property option of aggregate" 2016-06-16 12:57:38 +00:00
Jenkins
3236d6f66b Merge "Add functional test for "aggregate unset" command" 2016-06-16 12:57:29 +00:00
Huanxuan Ao
041ea4978b Support bulk deletion for delete commands in networkv2
This patch support bulk deletion for delete commands below:
1.subnet delete
2.subnet pool delete

Up to now, all the delete commands in networkv2 support bulk deletion.

Change-Id: I63f6d1d02bad1fcc26e72b7028b53958a68ce2dc
Partially-Implements: blueprint multi-argument-network
Partial-Bug: #1592906
2016-06-16 12:46:32 +00:00
Jenkins
b5e524ac84 Merge "Fix help msg of identity endpoint" 2016-06-16 12:43:32 +00:00
sunyajing
ce98ed1e64 Add "--password-prompt" to user.rst
Change-Id: I2e86114698887a6343c248783c343f269bf4988d
2016-06-16 18:04:59 +08:00
Huanxuan Ao
15821fadf3 Modify doc issues about property option of aggregate
The formal of multi properties in most docs likes this:
[--property <key=value> [...] ]
[--property <key> [...] ]
This patch modify the formal of multi properties in
aggregate.rst.

Change-Id: I557cd51696d2721c8955c4a79f1ab85de3a0b9ce
2016-06-16 17:07:01 +08:00
Huanxuan Ao
2d4a585841 Add functional test for "aggregate unset" command
There was not functional test for "aggregate unset"
command, this patch add the test.

Change-Id: Icc8f51e863231e915b2a8cca59baaedd54a96de5
2016-06-16 16:41:25 +08:00
sunyajing
9eb77ae1de Fix help msg of identity endpoint
<service> argument of `endpoint create` command doesn't mean
`new endpoint service`, but an existent service that the new endpoint attached to.

Change-Id: I846fdb501bdea14499f42288186f375a3b2b5951
2016-06-16 09:55:10 +08:00
Dean Troyer
e7ed403712 Finish osc-lib transition for command.py
https://review.openstack.org/#/c/328318/ was the transition of
openstackclient/common/command.py to osc-lib but it was incomplete;
https://review.openstack.org/#/c/329885/ started to fix it but
was also incomplete.  Third time is charm?

Change-Id: Ib6c0266155c2155ae59067ce7b15bebca1e375e8
2016-06-15 22:50:43 +00:00
Jenkins
114eeeb023 Merge "Fix volume functional tests" 2016-06-15 19:11:07 +00:00
Jenkins
e272473afc Merge "Setup deprecate msg for command.py" 2016-06-15 17:53:37 +00:00
Jenkins
d3cd322650 Merge "Support bulk deletion for commands that exist in both network and compute." 2016-06-15 16:54:10 +00:00
Jenkins
4cc539fcc5 Merge "Support compute service force down/up" 2016-06-15 16:36:30 +00:00
Richard Theis
09b783ad3e Fix volume functional tests
The volume v2 functional tests occasionally fail with
"unrecognized arguments: --private". This appears to occur when
volume v1 and volume v2 functional tests are run at the same time
when one or more of the tests do not set OS_VOLUME_API_VERSION
appropriately.

This patch also fixes a timing issue seen when running the
tests locally due to a missing wait and moves the snapshot
test to volume v2 since it was written for v2.

Change-Id: I9c9863fe1aef81b0564920f36452c6f27211d5ba
Closes-Bug: #1589793
2016-06-15 11:36:27 -05:00
Tang Chen
ec630e033a Setup deprecate msg for command.py
This could be a miss when we use osc_lib first in OSC.
command.py has been moved to osc_lib, and should reuse
it and print a deprecate msg if the old file is used.

Change-Id: Ibc35659f6f78b8f5e3c6026db2644a876ef7c549
2016-06-15 15:24:35 +00:00
Huanxuan Ao
ca5e8e6c85 Add default IP version and fix help messages for "ip availability list"
There was not a default IP version in "ip availability list"
command, if we used this command without "--ip-version" option,
the output was different from the outputs with the option
"--ip-version 4" and "--ip-version 6" and it is not right.
This patch add default IP version (default is 4) in ``ip
availability list`` command and make this command work properly
without ``--ip-version`` option. And also fix the help message.

Change-Id: Idc08ab6eaf05946eb2ab59bfb3d4497a383d987d
Closes-Bug: #1592761
2016-06-15 20:33:09 +08:00
Huanxuan Ao
8e2f49fbf2 Support bulk deletion for commands that exist in both network and compute.
Some delete commands in networkv2 are exist in both network
and compute, They can use NetworkAndComputeDeleteclass to
supprot bulk deletion and error handling and the codes are
similar, so I change them all in this patch. The changed
commands including:
1.floating ip delete
2.security group delete
3.security group rule delete
Also, I update unit tests and docs for these commands in this patch.

Change-Id: I6c94c3d10ba579ddd9b14d17673c821e3481fd8a
Partially-Implements: blueprint multi-argument-network
2016-06-15 17:23:39 +08:00
Jenkins
0ec711c640 Merge "Add geneve provider network type" 2016-06-15 00:41:50 +00:00
Jenkins
968d8bb662 Merge "Standardize logger usage in volume" 2016-06-15 00:09:15 +00:00
Jenkins
950abf264f Merge "Fix foundation copyrights" 2016-06-14 21:50:26 +00:00
Jenkins
e6f5479dcc Merge "Remove blank line in release notes" 2016-06-14 21:50:19 +00:00
Tang Chen
0e9862be7a Standardize logger usage in volume
self.app.log is the logger in class OpenStackShell,
which should be used to record logs that have nothing
to do with any specific command.

So, use the file logger instead.

This patch also fixes some usage that doesn't follow
rules in:
http://docs.openstack.org/developer/oslo.i18n/guidelines.html
1. add variables to logger as an argument
2. do not wrap variables with str()

Change-Id: I248861a38a4de0412a080046aa7a6f6473c3e082
Implements: blueprint log-usage
2016-06-14 16:37:57 -05:00
Jenkins
de01b30245 Merge "Add release note for network endpoint type bugfix." 2016-06-14 20:55:47 +00:00
Jenkins
df235a00d1 Merge "Fix errors in `set/unset flavor` unit tests" 2016-06-14 19:18:21 +00:00
SamYaple
4a2924ded7 Remove blank line in release notes
The blank line was causing yamllint to fail in other projects. [1]

Related-Id: I400131bf84a4cf48a83952efa7dfac8e4954b587

[1] http://logs.openstack.org/64/329564/1/check/gate-heat-templates-pep8/e538974/console.html#_2016-06-14_17_39_02_316

Change-Id: Icfd902b6c9408ccb9a710d10d52d65efe753b77f
2016-06-14 18:48:07 +00:00
Stuart McLaren
b875f63a6f Add release note for network endpoint type bugfix.
Related-bug: 1592368
Change-Id: I9bd8c3490e72b32ba48dc9d884c101d5e50867f9
2016-06-14 17:42:42 +00:00
Huanxuan Ao
f25a3519c5 Fix missing i18n supports in api/ and shell.py
Change-Id: I28d79d7f44b27d2b600dedad2a3601180650ad83
Partial-bug: #1574965
2016-06-14 11:03:56 -05:00
Dean Troyer
6357202971 Fix foundation copyrights
The OpenStack LLC copyrights date from before OpenStack was transferred
to the foundation.  These appear to be getting copy-pasted to new files
so at least should reflect the correct entity.

Change-Id: I02953d752cb24ead6aa4ad8bfe257a48317c9f13
2016-06-14 09:49:28 -05:00
Jenkins
769baf329e Merge "Ensure endpoint type is used for network commands" 2016-06-14 14:20:47 +00:00
Jenkins
b1bd427fcc Merge "osc-lib: timing" 2016-06-14 12:37:01 +00:00
Stuart McLaren
7c603e4a67 Ensure endpoint type is used for network commands
Currently OS_ENDPOINT_TYPE and --os-interface are being ignored for
network commands. This means the public URL is always used.

Make sure that these are picked up correctly so we hit the correct
endpoint (internal/admin/etc.) for commands such as:

 $ openstack --os-interface internal network list

Change-Id: Iac05204e3056e386d84d3644b5da1a2bb322bb0a
Closes-bug: 1592368
2016-06-14 11:20:16 +00:00
Rui Chen
eccd943acc Support compute service force down/up
Aims to evacuate servers from compute host as soon as possible,
operators might set the compute service force down manually.
Novaclient support the behavior, this patch support it in OSC.

Change-Id: I22ff1c5d670c449771fdcb3f4f39cd82f428531a
Closes-Bug: #1589348
2016-06-14 17:40:09 +08:00
Tang Chen
c4b590748a Fix errors in `set/unset flavor` unit tests
1. We should assert flavor.set_keys() is called correctly
   or not called in ``set flavor`` unit tests.

2. Commit c7e6973ff50ff84af9ad55f7bdaeeea83ae40f0b from me
   removed test_flavor_unset_no_project which used to test
   if --project was specified as '', and assert CommandError
   was raised, which is incorrect. So I removed it. But after
   looking into the code, I think we should not remove it,
   but specify nothing after --project, and assert
   ParserException was raised. So in this patch, we fix it
   as so.

   ('--project', '') --> ('--project')
   assert CommandError --> assert ParserException

Change-Id: Ifd33c72d5b7581aaabffb09e9b5e38ecc67e18c0
2016-06-14 15:32:33 +08:00
Jenkins
5b36898b2b Merge "Fix image delete multiple arguments error" 2016-06-14 07:26:58 +00:00
Jenkins
2c92b60f45 Merge "osc-lib: command" 2016-06-14 06:45:17 +00:00
Jenkins
287fe3610a Merge "osc-lib: parseractions" 2016-06-14 04:22:03 +00:00
Jenkins
5c402c1da2 Merge "osc-lib: logs" 2016-06-14 04:21:56 +00:00
Jenkins
908a36f716 Merge "Fix i18n problems for common files in identity" 2016-06-14 04:21:25 +00:00
Jenkins
e5dd054be8 Merge "Fix errors in flavor unit tests" 2016-06-14 04:21:18 +00:00
Tang Chen
304f565439 Fix i18n problems for common files in identity
Some missing parts in identity.

Change-Id: I8777b845613d7d7df36ac3c198da552e11aaad1b
Partial-bug: #1574965
2016-06-14 09:50:23 +08:00
Dean Troyer
a55eb915a0 osc-lib: timing
Change-Id: I3fe27d98efa5090e084c676f7f8e6dad0157ed21
2016-06-13 11:08:21 -05:00
Dean Troyer
9e2b8e6730 osc-lib: command
Leave command.py and test_command.py as a sanity check during the
deprecation period.

Change-Id: I24e1b755cbfbcbcaeb5273ec0c9706b82384fc85
2016-06-13 11:00:22 -05:00
Dean Troyer
be192676bd osc-lib: parseractions
Leave parseractions.py and test_parseractions.py as a sanity check during the
deprecation period.

Change-Id: I1a7469b6d872284e0276502a1a287bc0b87f8f83
2016-06-13 10:55:44 -05:00
Dean Troyer
59dffb9c62 osc-lib: logs
Change-Id: I2a4d40cd72cc22e97a600751ae29c2309ebed28b
2016-06-13 10:55:44 -05:00
Dean Troyer
e5e29a8fef osc-lib: utils
Use osc-lib directly for utils.

Leave openstackclient.common.utils for deprecation period.

Change-Id: I5bd9579abc4e07f45219ccd0565626e6667472f7
2016-06-13 10:50:44 -05:00
Dean Troyer
d20c863ebc osc-lib: exceptions
Use osc-lib directly for exceptions.

Leave openstackclient.common.exceptions for deprecation period.

Change-Id: Iea3e862302372e1b31ccd27f69db59b4953ca828
2016-06-13 10:50:01 -05:00