2403 Commits

Author SHA1 Message Date
Huanxuan Ao
32da111c17 Implement "address scope show" command
This patch add a command that supports
showing address scope details

Change-Id: Ic0b41c1cab8c618904c7a6046d7493db5b74b430
Partial-Bug: #1566269
2016-05-11 10:08:47 +08:00
Huanxuan Ao
aa5ff67e3f Implement "address scope list" command
This patch add a command that supports
listing address scopes

Change-Id: Id14757011560cacf28011ba51841a8e23b824f33
Partial-Bug: #1566269
2016-05-11 10:08:47 +08:00
Huanxuan Ao
4cb5e0bc79 Implement "address scope delete" command
This patch add a command that supports
deleting a address scope

Change-Id: Ie028058c759b9511d105a530d7e89b841865e7d6
Partial-Bug: #1566269
2016-05-11 10:08:47 +08:00
Huanxuan Ao
98bee08e0f Implement "address scope create" command
This patch supports creating a new address scope,
with --ip-version,--project,--project-domain
and --share or --no-share options.

Change-Id: I37c73391a41ac239dd72d55dbc0adbebd7701f4a
Partial-Bug: #1566269
2016-05-11 10:08:35 +08:00
Jenkins
4639148b1d Merge "Rename --profile to --os-profile" 2.4.0 2016-04-19 23:37:52 +00:00
Jenkins
6cbbcfa3da Merge "Updated from global requirements" 2016-04-19 23:02:05 +00:00
Jenkins
79abf70593 Merge "Fix client certificate/key support for Network v2 commands" 2016-04-19 20:01:25 +00:00
Jenkins
c3cc7d109d Merge "Clean up for next release" 2016-04-19 20:00:39 +00:00
Jenkins
a1633efb0f Merge "Imported Translations from Zanata" 2016-04-19 16:44:02 +00:00
Jenkins
7f20efc57c Merge "Add provider network options to osc network set" 2016-04-19 16:19:30 +00:00
Dean Troyer
530fe42589 Rename --profile to --os-profile
* The --profile global option is deprecated but will be supported
  through at least April 2017.
* Update man page

Closes-bug: #1571812
Change-Id: I2e623411a56096b4cc352f4eedbf770632ae2cc3
2016-04-19 07:50:42 -05:00
OpenStack Proposal Bot
8ab267c2eb Updated from global requirements
Change-Id: Ia35e711f1916749b156a1344ffafb4391a7a5408
2016-04-19 12:28:55 +00:00
Cedric Brandily
02a46a067b Fix client certificate/key support for Network v2 commands
Currently network v2 commands don't support client certificate/key
because they were not passed to OpenStackSDK Connection which is used
by network v2 commands.

This changes corrects the integration with OpenStacKSDK to pass client
certificate/key.

Closes-Bug: #1569513
Related-Bug: #1569508
Depends-On: Ic093f8515e7b15931994e4516ebec8f4399d021e
Change-Id: Ie37e8e988ca695a09894c6c93560dacd83f17030
2016-04-19 13:00:54 +02:00
Jenkins
4d05851d4e Merge "Add options to security group rule list" 2016-04-19 09:03:19 +00:00
OpenStack Proposal Bot
2a66493ff0 Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I7e1c948a2bb7f4843cd8a58bb66fbedec79af39b
2016-04-19 06:14:07 +00:00
Jenkins
c9cfd569fe Merge "Initialize neutron client with region name" 2016-04-19 04:48:03 +00:00
Jenkins
a7be016b3e Merge "Updated from global requirements" 2016-04-19 04:06:00 +00:00
reedip
aa1495e241 Add provider network options to osc network set
The following patch adds the provider network options
to OSC "network set".

Change-Id: I23b617077eda25d16164172a8e280082750eaf18
Partial-Bug: #1545537
2016-04-19 11:18:13 +09:00
Dean Troyer
baf96411fe Clean up for next release
* Release notes
* Docs Table of Contents

Change-Id: I4bef26ed348923671a2b50f90606661d519b40e3
2016-04-18 14:19:27 -05:00
Richard Theis
94c9cd5c66 Add options to security group rule list
Add the following options to the 'os security group rule list'
command:
  --long: Display direction and ethertype for Network v2
  --all-projects: Display information from all projects for Compute v2

Change-Id: If8a1cbd7669cdfa6577d6d2f6fffd9e999a39a82
Partial-Bug: #1519512
Implements: blueprint neutron-client
2016-04-18 14:03:22 -05:00
Jenkins
3f2ed7d19f Merge "Remove methods argument from vloume/v2/fakes.py" 2016-04-18 17:55:08 +00:00
Jenkins
e3a6fc27b0 Merge "Propagate AttributeErrors when lazily loading plugins" 2016-04-18 17:01:42 +00:00
Andrey Larionov
8c6b5a087a Initialize neutron client with region name
All clients except neutron are initialized with region name.
This makes unable to use network related commands of
openstackclient in multi-region configurations

Change-Id: I200dc9a2f938c3e69357f91c79810df167e4fccb
Closes-bug: 1570491
2016-04-18 19:54:58 +03:00
OpenStack Proposal Bot
f9e3d45173 Updated from global requirements
Change-Id: I12de03c42bc661a6a4e55fb70a06883e987fbc5f
2016-04-18 16:34:57 +00:00
Tang Chen
cc3a062529 Remove methods argument from vloume/v2/fakes.py
methods argument in FakeAvailabilityZone class
is not necessary. Remove it.

Change-Id: Idf136bf90bd94e7045b0d471b8e03cd843693251
2016-04-18 15:20:17 +08:00
Tang Chen
89445855ac State i18() changes and help messages improved
Add _() to wrap help message in network commands.
And also some improvement for help message.

Change-Id: Ib3e498f5976ba98c44fd4eec2d1623263b3db53e
Partial-bug: 1570924
2016-04-18 10:31:01 +08:00
Jenkins
8eade18624 Merge "Remove methods argument from FakeHypervisorStats" 2016-04-16 23:58:36 +00:00
Sheel Rana
92950b6f5f Add support for removing volume-type-access
OSC does not support to remove volume type access to project.
This feature will provide support to remove volume type access
from project.

Closes-Bug:#1554890

Implements: bp cinder-command-support

Change-Id: I029a4292da05f028e8937962cb845ec6e00b0279
2016-04-16 23:01:19 +05:30
Jenkins
e80048de09 Merge "Fix wrong attribute name and add functional test for --snapshot" 2016-04-15 21:01:10 +00:00
Jenkins
f66f989d83 Merge "Append existing information during port set" 2016-04-15 16:30:48 +00:00
Jenkins
881c836030 Merge "Add external network options to osc network set" 2016-04-15 16:26:44 +00:00
Jirayut Nimsaeng
e128370676 Fix wrong attribute name and add functional test for --snapshot
Change-Id: I91f2091ef06a55bcf5373d1beeea2dd81e9f1334
Closes-Bug: #1567895
2016-04-15 16:13:02 +00:00
Tang Chen
df3ee61be3 Remove methods argument from FakeHypervisorStats
methods argument is not necessary in FakeHypervisorStats class.
Remove it.

Change-Id: I288f71b412beb3e583e957a9fd99210bc6f3f543
2016-04-15 16:10:09 +08:00
Tim Burke
926330d372 Propagate AttributeErrors when lazily loading plugins
Previously, if an AttributeError was raised in a plugin's make_client
method, the plugin simply wouldn't be an attribute of the ClientManager,
producing tracebacks like

Traceback (most recent call last):
  File ".../openstackclient/shell.py", line 118, in run
    ret_val = super(OpenStackShell, self).run(argv)

  ...

  File ".../openstackclient/object/v1/container.py", line 150, in take_action
    data = self.app.client_manager.object_store.container_list(
  File ".../openstackclient/common/clientmanager.py", line 66, in __getattr__
    raise AttributeError(name)
AttributeError: object_store

This made writing minimal third-party auth plugins difficult, as it
obliterated the original AttributeError.

Now, AttributeErrors that are raised during plugin initialization will
be re-raised as PluginAttributeErrors, and the original traceback will
be preserved. This gives much more useful information to plugin
developers, as in

Traceback (most recent call last):
  File ".../openstackclient/shell.py", line 118, in run
    ret_val = super(OpenStackShell, self).run(argv)

  ...

  File ".../openstackclient/object/v1/container.py", line 150, in take_action
    data = self.app.client_manager.object_store.container_list(
  File ".../openstackclient/common/clientmanager.py", line 57, in __get__
    err_val, err_tb)
  File ".../openstackclient/common/clientmanager.py", line 51, in __get__
    self._handle = self.factory(instance)
  File ".../openstackclient/object/client.py", line 35, in make_client
    interface=instance._interface,
  File ".../openstackclient/common/clientmanager.py", line 258,
  in get_endpoint_for_service_type
    endpoint = self.auth_ref.service_catalog.url_for(
PluginAttributeError: 'NoneType' object has no attribute 'url_for'

Change-Id: I0eee7eba6eccc6d471a699a381185c4e76da10bd
2016-04-14 21:12:35 -07:00
reedip
67f8b898eb Add external network options to osc network set
The following patch adds the options "--external" & "--internal"
and the suboptions to "external": "--default" & "--no-default",
to "osc network set" CLI to provide the user an option to set
a network as an external network or remove the setting.

Change-Id: I3a7f2cb249bc8101cbb01322d7732e913237d6cd
Partial-Bug: #1545537
2016-04-15 00:28:09 +00:00
Jenkins
52a12e743e Merge "Add project options to security group rule create" 2016-04-14 21:45:03 +00:00
Jenkins
ef68f23de3 Merge "Add network options to security group rule create" 2016-04-14 19:55:54 +00:00
Jenkins
e1305185d3 Merge "Prefer assertEqual/assertIn over assertOutput/assertInOutput" 2016-04-14 19:55:26 +00:00
Jenkins
83fbce496a Merge "Remove fake methods code from compute network" 2016-04-14 16:47:00 +00:00
Jenkins
5b18e110a9 Merge "use correct manager for volume snapshots" 2016-04-14 13:54:20 +00:00
Tang Chen
46decfbd7a Trivial: Fix incorrect comment text
Change-Id: Ia6ec15f11a535a8de5769569d75e81094caed171
2016-04-14 17:21:53 +08:00
reedip
c92ac9d911 Append existing information during port set
Existing --fixed-ip and --binding-profile information is
currently overwritten when a user executes 'port set', but
actually that data should be appended.
This patch fixes the issue.

Closes-Bug: #1564453
Change-Id: I62500c10ccbbc68167f24e9d4fa49e85345d82c4
2016-04-14 00:48:09 +00:00
Jenkins
be6027e09b Merge "Doc: Unify repeatable option comments" 2016-04-13 21:22:50 +00:00
Jenkins
52b70a99ed Merge "Use CommandFailed exception from tempest_lib" 2016-04-13 18:43:08 +00:00
Kyrylo Romanenko
573bb6b941 Use CommandFailed exception from tempest_lib
Remove exceptions.py from functional/common.
Import exception with the same code from the tempest_lib to tests.

Change-Id: Ifaa658209c18dd608836079f57ed18fcf10fb84e
2016-04-13 19:09:07 +03:00
Jenkins
883f8208d3 Merge "Append existing information during subnet set" 2016-04-13 15:51:44 +00:00
OpenStack Proposal Bot
379fd726b6 Updated from global requirements
Change-Id: I17ae521c6d9cf2c2cf73527929984aed5fe225ca
2016-04-13 12:48:31 +00:00
Jenkins
7b7620ab84 Merge "Fix SSL/TLS verification for network commands" 2016-04-13 08:31:37 +00:00
Jenkins
1819edf733 Merge "Add --address-scope option "subnet pool create/set"" 2016-04-13 02:06:59 +00:00
Jenkins
85c47b76fb Merge "Add support for setting volume-type-access" 2016-04-12 22:27:07 +00:00