1906 Commits

Author SHA1 Message Date
Akihiro Motoki
258c1102cc log take_action parameters in a single place
Previously each command logs take_action parameters explicitly
by using @utils.log_method decorator or log.debug().
Some commands have no logging.

This commit calls a logger in the base class and
drops all logging definition from individual commands.

Closes-Bug: #1532294
Change-Id: I43cd0290a4353c68c075bade9571c940733da1be
2016-02-02 09:58:32 +09:00
Jenkins
e9ff42eee7 Merge "Revert "Skip identity v2 functional tests"" 2016-02-02 00:03:35 +00:00
Richard Theis
bca1a930f4 Revert "Skip identity v2 functional tests"
This reverts commit 5032dbc8074d5133c6b71610cd57d3c8da07c9b9 based on [1].

[1] https://review.openstack.org/#/c/274703/

Change-Id: Ic10ef7c37d71e452fbc4bd36e28be79d669b4e3f
2016-02-01 20:56:43 +00:00
Jenkins
a4b05b426e Merge "Add availability zone support for network commands" 2016-01-31 07:33:08 +00:00
Jenkins
973458600b Merge "Update translation setup" 2016-01-31 05:45:19 +00:00
Richard Theis
5032dbc807 Skip identity v2 functional tests
DevStack now uses identity v3 by default thus causing OSC to
only load openstack.identity.v3 commands. This prevents running
functional tests on openstack.identity.v2 commands. As a result,
this patch set skips all identity v2 functional tests to unblock
the gate.

Change-Id: I066187318be71792a966fa21226fab0d406c3758
Partial-Bug: #1539780
2016-01-29 15:45:07 -06:00
Akihiro Motoki
a6cd2dc136 Update translation setup
Follow new infra setup for translations, see spec
http://specs.openstack.org/openstack-infra/infra-specs/specs/translation_setup.html
for full details.

This basically renames
python-openstackclient/locale/python-openstackclient.pot to
openstackclient/locale/openstackclient.pot. For this we need to update
setup.cfg.

Update also domain name in i18n.py.

Change-Id: I89fad12f20775c8b7cd228348ff82a77488e6ab2
2016-01-29 08:18:50 +09:00
Brad Behle
67ecf4ef43 Add availability zone support for network commands
Add --availability-zone-hint parm to network create. Also add
availability_zones and availability_zone_hints to the network list and network
show commands

Change-Id: Ib4dc2e3e7897939be7bef6b25a095c8222b885bc
Partially-implements: blueprint neutron-client
2016-01-28 15:54:27 -06:00
OpenStack Proposal Bot
c43bdc1441 Updated from global requirements
Change-Id: If070122805497e0943918900c6d1f6a54faef37a
2016-01-28 13:41:16 +00:00
Jenkins
636b4de6df Merge "Remove the Tuskar client" 2016-01-28 00:25:14 +00:00
Jenkins
fa2242b669 Merge "Use correct terminology for subnets" 2016-01-27 23:29:05 +00:00
Dougal Matthews
a7e5faf22c Remove the Tuskar client
The Tuskar project is now inactive and has been archived.

Change-Id: I4c7cb50560b40ba1bc130be5bdc9446a46b09c24
2016-01-27 16:34:28 +00:00
Dean Troyer
db458d7dec Use correct terminology for subnets
OpenStack uses 'CIDR' incorrectly in many places.  We are not going
to perpetuate that usage.  The correct name here is simply 'subnet'
as the data is the network address for the subnet, in CIDR notation.

Also, some additional cleanups as suggested in comments to
https://review.openstack.org/#/c/84782

Depends-on: I3c0748074a6511ff92500516b3129886d2476eed
Change-Id: Ib44c49dc1739ce7d881432e482dd16f8928eef49
2016-01-27 09:13:46 -06:00
Jenkins
a82aa6651b Merge "Updated from global requirements" 2016-01-27 06:50:04 +00:00
Jenkins
68e3327a5a Merge "Add releasenote for 'subnet list' command support" 2016-01-27 00:36:31 +00:00
Jenkins
39330ddad7 Merge "Subnet List" 2016-01-27 00:36:11 +00:00
OpenStack Proposal Bot
291e3a7397 Updated from global requirements
Change-Id: I0bd39534777eb919810b6a1b9c8117cdcd61ff2c
2016-01-26 23:29:00 +00:00
Lingxian Kong
299c5710c5 Add releasenote for 'subnet list' command support
Change-Id: I415dfe4b752dbf9dd4d5b052e29001a7a1d0ef99
Depends-On: I3c0748074a6511ff92500516b3129886d2476eed
2016-01-25 21:30:09 +00:00
Jenkins
f76425028b Merge "Add router functional tests" 2016-01-25 21:18:41 +00:00
Richard Theis
1db40e8563 Add router functional tests
Add functional tests for the "os router" commands.

Change-Id: I99045e6e2f548ac4206afcdb61940180e609a6bc
Partial-bug: #1519503
Partially-implements: blueprint neutron-client
2016-01-25 10:28:59 -06:00
Terry Howe
ffcfff6f3e Subnet List
Subnet list command

Partially implements: blueprint neutron-client
Partial-Bug: #1523258
Change-Id: I3c0748074a6511ff92500516b3129886d2476eed
2016-01-25 21:57:54 +13:00
OpenStack Proposal Bot
c20f9a86ee Updated from global requirements
Change-Id: Iafdb2a4841ff9a9f643182f13ff1bcec47e3adb2
2016-01-23 10:35:55 +00:00
Jenkins
7b2ff8eef2 Merge "Refactor abstract columns and datalist out in image and object test cases" 2016-01-23 08:24:41 +00:00
SaiKiran
69b8cde5f1 Refactor abstract columns and datalist out in image and object
test cases

columns and datalist has been set in each test case in image
and object which is not necessary. This patch abstract it out
and remove all redundant code.

Change-Id: Ie6aa3fa27ab2a468c67da31209107517259631c2
Related-Bug: 1532384
2016-01-23 11:44:15 +05:30
Jenkins
ee78fb2f78 Merge "Support listing volume availability zones" 2016-01-22 19:23:20 +00:00
Jenkins
09be6a439a Merge "Refactor "os availability zone list"" 2016-01-22 19:22:42 +00:00
Jenkins
75caafa096 Merge "Refactor: Abstract columns and datalist out in volume test cases" 2016-01-22 08:55:38 +00:00
OpenStack Proposal Bot
59b1bb10d6 Updated from global requirements
Change-Id: I89081053923a81260111dbfefd307b80e3858caf
2016-01-22 04:09:05 +00:00
Jenkins
fe10d0faf4 Merge "Initialize activation status" 2016-01-21 22:36:15 +00:00
Jenkins
1f378a0674 Merge "Change --owner to --project in image commands" 2016-01-21 21:04:04 +00:00
Jenkins
f51f26868c Merge "log_method: get logger from decorated method if unspecified" 2016-01-21 09:26:54 +00:00
SaiKiran
2b670afa33 Refactor abstract columns and datalist out in compute test cases
columns and datalist has been set in each test case in compute,
which is not necessary. This patch abstract it out and remove
all redundant code.

Change-Id: I5e8423722416ea31fdced4c932ed141de90028ab
Closes-Bug: #1531816
2016-01-21 04:50:29 +00:00
Jenkins
c08545cbee Merge "Set up logger of each command by metaclass" 2016-01-21 02:44:33 +00:00
Jenkins
eb36df1f82 Merge "Add support to delete the ports" 2016-01-20 16:21:53 +00:00
Akihiro Motoki
50d54bb007 log_method: get logger from decorated method if unspecified
This commit makes 'log' optional.
'log' attribute of each command class does not exist
when the class is defined because 'log' is now setup
dynamically when a class is instantiated. Instead log_method
looks for a logger from a decorating method.

compute.v2.server is changed in this commit as an example.

Change-Id: Ic4d128f8e027d3b8e6f884f31369e9085c0f0871
Partial-Bug: #1532294
2016-01-20 22:02:19 +09:00
Akihiro Motoki
0e6b86ad94 Set up logger of each command by metaclass
compute.v2.flavor is changed in this commit as an initial example.

Partial-Bug: #1532294
Change-Id: I262af6ade0ae03fbe1cd2ad198faf4ebb4ecf7ce
2016-01-20 22:02:19 +09:00
SaiKiran
604d8589ee Refactor: Abstract columns and datalist out in volume test cases
columns and datalist has been set in each test case in volume,
which is not necessary. This patch abstract it out and remove
all redundant code.

Change-Id: I3a09d5d2db86da986bdcfbf2310978ced181017d
2016-01-20 10:49:43 +05:30
SaiKiran
3168e2297d Add support to delete the ports
This patch adds "port delete" command to osc.

Change-Id: I5c92b2f573249df4e6551506584ccafb4ff290b2
Implements: blueprint neutron-client
Partial-Bug: #1519909
2016-01-20 10:29:16 +05:30
Terry Howe
4d4368bb26 Initialize activation status
activation_status throws an exception if the image set fails
because it is not initialized.

Change-Id: Iff6d5a8844eed954fb1c0bcea96118b99ac6bcf4
2016-01-19 16:15:59 -07:00
OpenStack Proposal Bot
5dbca5f56a Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I1270bace355443e5980d897f82745dd5a28628a2
2016-01-19 06:03:29 +00:00
OpenStack Proposal Bot
86fcd67468 Updated from global requirements
Change-Id: I68ad139345040dee6e5b0e8a7477acb84aa1a06b
2016-01-18 22:45:59 +00:00
Jenkins
5c31e06fde Merge "Doc: Network is supported for extension object" 2016-01-15 23:53:26 +00:00
Jenkins
aa041c5269 Merge "Make --image parameter optional in "server rebuild"" 2016-01-15 17:44:01 +00:00
Richard Theis
a3c6171726 Doc: Network is supported for extension object
Update extension object documentation to note that network
is also supported.

Change-Id: Ifcebdb4dc6bf56482700887c09d89ac64eab321c
2016-01-15 10:25:41 -06:00
Dean Troyer
cf2de9af79 Change --owner to --project in image commands
* image create and image set now use --project to specify an alternate
  project to own the image
* --owner is still silently accepted but deprecated, add warning messages
* --project and --owner are mutually exclusive to prevent precedence issues

Closes Bug: 1527833
Change-Id: Iccb1a1d9175ef9b5edcd79d294607db12641c1f0
2016-01-15 09:24:48 -06:00
Richard Theis
a8ec2ac494 Support listing volume availability zones
Update the "os availability zone list" command to support listing
volume availability zones along with the currently listed compute
availability zones. This adds a --compute and --volume option to
the command in order to select the availability zones to list. By
default, all availability zones are listed.

If the Block Storage API does not support listing availability
zones then an warning message will be issued.

Change-Id: I8159509a41bd1fb1b4e77fdbb512cf64a5ac11a9
Closes-Bug: #1532945
2016-01-14 15:47:19 -06:00
Richard Theis
84174440fc Refactor "os availability zone list"
Refactor the "os availability zone list" command to make it a common
command instead of a compute-only command. Since availability zones
are common to compute, volume and network (new), this refactoring
allows availability zone support to be added for volume and network.

In addition to the refactor, unit and functional tests were added.

Change-Id: I63e9d41d229b21cd38e5a083493042c096d65e05
Partial-Bug: #1532945
2016-01-14 11:43:31 -06:00
Jenkins
8654e3e366 Merge "Changed the abstract columns and datalists from test cases of common and Identity" 2016-01-14 16:33:16 +00:00
Jenkins
fa3077d51a Merge "Refactor network endpoint enablement checking" 2016-01-14 00:45:04 +00:00
SaiKiran
030aee6fbc Changed the abstract columns and datalists from test cases of common and Identity
columns and datalist has been set in each test case in compute,
which is not necessary. This patch abstract it out and remove
all redundant code.

Change-Id: I45a3582088161f12e60e7c933da8e7dcc0ae8e7b
Closes-Bug: #1532384
2016-01-12 17:25:33 +05:30