1916 Commits

Author SHA1 Message Date
Richard Theis
4d332defbc Support listing network availability zones
Update the "os availability zone list" command to support listing
network availability zones along with the currently listed compute
and volume availability zones. This adds the --network option to
the command in order to only list network availability zones. By
default, all availability zones are listed. The --long option
was also updated to include a "Zone Resource" column which is
applicable to network availability zones. Example zone resources
include "network" and "router".

If the Network API does not support listing availability zones
then a warning message will be issued when the --network option
is specified.

This support requires an updated release of the SDK in order
to pull in [1].

[1] https://bugs.launchpad.net/python-openstacksdk/+bug/1532274

Change-Id: I78811d659b793d9d2111ea54665d5fe7e4887264
Closes-Bug: #1534202
2016-02-02 08:08:25 -06:00
Tang Chen
f36177ebdd Trivial: Fix wrong comment in test_image.py
Code in test_image.py has nothing to do with server.

Change-Id: Ia73d7b99effb394c5db9635fee6da350b0b1086b
2016-02-02 15:22:40 +08:00
Jenkins
e628d5202c Merge "Consume openstackclient.common.command in subnet/port" 2016-02-02 06:31:02 +00:00
Jenkins
ceb17e11a9 Merge "Updated from global requirements" 2016-02-02 04:07:04 +00:00
Jenkins
72fe3e25e2 Merge "Fix showing network quotas for a project" 2016-02-02 04:06:57 +00:00
Jenkins
180ba2f733 Merge "Add missing release notes" 2016-02-02 04:03:57 +00:00
OpenStack Proposal Bot
2548419e92 Updated from global requirements
Change-Id: I2f00e8ff1609d76c2ab20226f2b4503231fdb003
2016-02-02 02:03:31 +00:00
Akihiro Motoki
77ce1c17a0 Consume openstackclient.common.command in subnet/port
Follow-up patch of https://review.openstack.org/#/c/269613/
network/v2/subnet and port still use cliff classes directly.
This patch fixes it.

Change-Id: If9d90e5151ece7f4cf1e0d6fd2f32919865f2f2e
2016-02-02 11:03:07 +09:00
Richard Theis
5d1a93362d Fix showing network quotas for a project
The OpenStack SDK is now used for the network client. However,
the 'openstack quota show' command wasn't updated for the
client change. As a result, the command will fail to show
network quotas when a project name is specified. For example:

  $ openstack quota show admin
  'Proxy' object has no attribute 'show_quota'

This patch set fixes the command by using the OpenStack SDK
to get network quotas for a project.

Change-Id: I59a7b6780a7b80cd09e79d40d214751b25d3016e
Related-To: blueprint neutron-client
Closes-Bug: #1528249
2016-02-02 02:02:53 +00:00
Dean Troyer
cd4998ef41 Add missing release notes
Add release notes for the user-visible features added since the
2.0.0 release

Change-Id: I753a894f1a3f6eef3eef50661ee66c729a2567f4
2016-02-02 02:02:42 +00:00
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