Commit Graph

3646 Commits

Author SHA1 Message Date
Rui Chen
e8b6a9f7be Fix wrong behavior of parsing plugin service name
When the service name end with keyword "os", like: antiddos,
the parsing logic isn't suitable, that cause the service api
version specified by users don't work.

Change-Id: I5d6217c77d7cd2d2f360d78d8561261398b96685
Closes-Bug: #1658614
2017-02-08 00:47:22 +00:00
Jenkins
083b115d09 Merge "TODO cleanup: OSC_Config" 2017-02-05 05:42:30 +00:00
Ankur Gupta
65ac887564 NIT: replace os with openstack in command example
Change-Id: Iac1b0ec3b715ffa0eb41fc2fe9020781d834a7a3
2017-02-03 13:51:36 -06:00
Steve Martinelli
43e37f9024 mention the final ocata osc version in releasenotes
we neglected to add the final osc version in our release note
page, it should be 3.8.1

Change-Id: I4291a09924ce8beb29c8c3aff18962a43f0241b0
2017-02-02 21:30:52 -05:00
Jenkins
b9cb26cfa3 Merge "Update reno for stable/ocata" 2017-02-02 22:10:00 +00:00
Dean Troyer
eea09faae2 TODO cleanup: OSC_Config
os-client-config is now at 1.22.0 in global-requirements, we can remove
this pw_func setting block as the pw_func arg to __init__() was added
in 1.21.0.

Change-Id: I5bbc3e3aae4f3e4c4333c73bba19bda65e0d8488
2017-02-01 17:31:39 -06:00
Dean Troyer
419668d178 Add mitaka release notes to master
Change-Id: I00b3abe0ac8765989a83e491f1dc53db22283bdd
2017-02-01 14:25:07 -06:00
45c097c0b9 Update reno for stable/ocata
Change-Id: I91d3a23f5e449efbfe350ad633135b4d725fbbe6
2017-01-31 23:36:54 +00:00
Dean Troyer
1e3dc48c64 Add relnotes for the two recent bug fixes
Also add a functional test for network create --project

Change-Id: Idbfdf82f1ea6c84fb6a51df88e746e5ddb896b4f
2017-01-28 07:42:17 -06:00
Jenkins
a6817d0240 Merge "Fix network create --project" 2017-01-28 04:43:40 +00:00
Dean Troyer
fab4fcc397 Fix network create --project
SDK 0.9.13 needs to see project_id in the attributes, not tenant_id.

Closes-bug: 1659878
Change-Id: Iff7abe8bd00cbe087c07579596c40af8b0a73302
2017-01-27 20:05:04 -06:00
Dean Troyer
4a12280999 Fix address scope list --share
Remove the 'shared' key from the attrs passed in to the SDK with 0.9.13.

Also convert the functional tests to the JSON-style (that's how I found this).

Closes-bug: 1659993
Change-Id: I614fbce967cdd07fe7360242547dbf52e7677939
2017-01-27 19:56:44 -06:00
Jenkins
ca763793cc Merge "Updated from global requirements" 2017-01-27 01:23:19 +00:00
Jenkins
0004b828f7 Merge "Fix sphinx errors" 2017-01-26 20:57:02 +00:00
Andreas Jaeger
f58ae51ee2 Fix sphinx errors
It's :option: instead of :options:, fix typo.

Change-Id: I273d592f38db07fef7633fe833b1c0ab9e52e6a8
2017-01-26 19:52:31 +01:00
OpenStack Proposal Bot
dd7837a5e2 Updated from global requirements
Change-Id: I7d572ca8c0f2608180343e2ec9d41378cf15474f
2017-01-26 18:52:09 +00:00
Dean Troyer
16aeee4303 Cleanup for 3.8.0 release
Release notes and proofreading cleanups.

Change-Id: Iddc6a64e6ea3082aa220a2465793e6f7f2aecaa9
2017-01-26 10:41:30 -06:00
Jenkins
da2a820d2f Merge "Support "--no-property" option in volume snapshot set" 2017-01-26 06:38:31 +00:00
Jenkins
d189e807fd Merge "Add options to "server list" command" 2017-01-26 06:38:27 +00:00
Jenkins
d4c13676d1 Merge "Switch server create to block_device_mapping_v2" 2017-01-26 06:38:21 +00:00
Jenkins
029b389cf8 Merge "Adds domain specification for SetUser" 2017-01-26 03:01:10 +00:00
Nikita Gerasimov
95c8661f86 Switch server create to block_device_mapping_v2
Current compute_client.servers.create() relies on block_device_mapping
arg which is legacy[1]. "block_device_mapping" format require
device_name which is leads to hard-coded hack in --volume key handler
to KVM specific. "block_device_mapping_v2" format is more friendly
to hypervisiors.
Support of block_device_mapping_v2 appear in python-novaclient 2.16.0,
openstackclient require at least 2.29.0

Makes options --volume and --block-device-mapping work simultaneously.
Appends --block-device-mapping data even if --volume used.
After bug 1383338 only --volume was taken when both are used.

[1]http://docs.openstack.org/developer/nova/block_device_mapping.html

NOTE(dtroyer): I moved the new test_boot_from_volume() functional
test to Ie51b1c375c5940856ec76a5770df3c6bd18a3eba to test our
previous behaviour.  The only changes required to support the new
behaviour should be that the empty_volume is now attached in that test.

Change-Id: I7bac3d870dd9ca404093142f8bce22a62e49180d
Closes-Bug: 1647406
Closes-Bug: 1497845
2017-01-26 02:02:30 +00:00
Jenkins
a05e2762dc Merge "To support '--project' and '--project-domain' options" 2017-01-26 01:51:19 +00:00
Jenkins
51c418f8c3 Merge "Add server_boot_from_volume() test" 2017-01-26 01:40:14 +00:00
Jenkins
0cfb65bee7 Merge "Add server test for image and flavor lookups" 2017-01-26 01:36:11 +00:00
Jenkins
cb74397215 Merge "Fix Identity functional tests to not require OS_AUTH_URL" 2017-01-26 01:19:17 +00:00
Jenkins
55ea0e5b39 Merge "Add meter rule to OSC" 2017-01-26 01:19:10 +00:00
Jenkins
ade841fad0 Merge "Add 'allowed address pairs' option to 'port create/set/unset'" 2017-01-26 00:34:41 +00:00
zhiyong.dai
26d50be79a Support "--no-property" option in volume snapshot set
Supporting "--no-property" option will apply user a convenient
way to clean all properties of volume snapshot in a short command,
and this kind of behavior is the recommended way to devref.
The patch adds "--no-property" option in "volume snapshot set" command,
and update related test cases and devref document.

Change-Id: I5f10cc2b5814553699920c4343995b2e11416e4e
Implements: blueprint allow-overwrite-set-options
2017-01-25 17:32:58 -06:00
Jenkins
43f9370915 Merge "change assert_show_fields to not fail on new fields" 2017-01-25 23:13:35 +00:00
Jenkins
f14027867f Merge "Add --project and --project-domain option to "volume snapshot list"" 2017-01-25 22:27:39 +00:00
Jenkins
dec06aa89a Merge "Fix 'mapping set' return value" 2017-01-25 22:27:31 +00:00
Jenkins
e3f9ef956f Merge "Remove the fixed set of choices for network_type" 2017-01-25 22:26:37 +00:00
Samuel Pilla
4cb56269ad Adds domain specification for SetUser
This patch adds the ability to specify the domain context for making
changes to a user with `--domain` flag.

Example:
$ openstack user set test_user --domain test_domain --enable

Change-Id: I2b3241785c22e72e19181394acff650422299b0e
Closes-Bug: #1658147
2017-01-25 22:16:22 +00:00
jiahui.qiang
c46f9dc501 Add options to "server list" command
Add "--deleted" and "--changes-since" options to "server list" command.

Change-Id: Id94f6e5831a60b172b6cfcfca29b1d89de8db621
Closes-Bug:#1647242
2017-01-25 21:31:45 +00:00
Dean Troyer
d780e9e91f Fix Identity functional tests to not require OS_AUTH_URL
The Identity functional tests had an assumption that OS_AUTH_URL would
always be present, but when running the functional tests and only setting
OS_CLOUD (using clouds.yaml for creds) this fell down.

Change-Id: Ie589d301f866b06d9f8be8deeb953e03bc01cf09
2017-01-25 15:25:32 -06:00
Steve Martinelli
42ac82b1a4 change assert_show_fields to not fail on new fields
whenever a resource adds a field (which is allowed in our API
guidelines), OSC functional tests fail, because we validate
the resource keys to a hardcoded list.

instead, this change proposes that the logic of
assert_show_fields is flipped around, so our hardcoded list acts
as a minimum set of values that must appear in the resource.

as part of this change, some fields were remove from the constants
since they were not actually in the returned data.

also, delete unused code `assert_show_structure`.

Change-Id: I8c0f0e80ea472f9c7f93c5f1f0ae52048e6cd7da
2017-01-25 13:09:16 -08:00
Dean Troyer
5ecb353f89 Add server_boot_from_volume() test
Plucked this test out of I5529f412578c50090e70d17aa0129217bf803fed in
order to validate the current behaviour before applying that change.
It was converted to the new JSON-style.

Change-Id: Ie51b1c375c5940856ec76a5770df3c6bd18a3eba
2017-01-25 19:56:34 +00:00
Colleen Murphy
365d839a5b Fix 'mapping set' return value
Without this patch, the command 'openstack mapping set <args>' will,
upon success, print the rules for the updated mapping and exit with
return code 1 (failure). This is a problem for scripts and config
management tools that depend on the return code to validate whether the
operation was successful, since even upon success the command returns a
failing error code. Moreover, the behavior of printing the new value is
completely unlike the behavior of any of the 'set' subcommands for
other entities. This patch normalizes the 'mapping set' command by
omitting any return value in the SetMapping take_action() method. This
way the client will only exit with an error code if an exception is
raised, and not upon normal operation.

Change-Id: I610ec3b2fa7561072346d46e49cfc1ae82130e0d
2017-01-25 18:07:17 +01:00
Dean Troyer
9ada3b529d Add server test for image and flavor lookups
Review Ia66e44e530799ce6531922dcf6a84e38528c8725 changes OSC's server
commands to use the image client rather than compute clirnt (yay!)
but we never really tested any of this in functional tests.  This review
adds a simple functional test (in the new style) to watch the client
change; it passes locally for me without the client change, due to timing
we went ahead and merged that first.

Change-Id: I5529f412578c50090e70d17aa0129217bf803fed
2017-01-25 02:34:27 +00:00
OpenStack Proposal Bot
b69b539a42 Updated from global requirements
Change-Id: I7b0e46de18f10cde110e1957c12210bc3271e7f9
2017-01-25 00:55:54 +00:00
Jenkins
414c99b3aa Merge "Use image client for images instead of compute" 2017-01-25 00:12:36 +00:00
Artom Lifshitz
98f803e0f0 Use image client for images instead of compute
With the deprecation of the Nova proxy APIs in microversion 2.36 [1],
any operation that uses a microversion higher than 2.36 and works with
images will fail because the /images endpoint will return 404. This
patch updates openstackclient to query images using the image client
in places where previously the compute client was used.

[1] http://docs.openstack.org/developer/nova/api_microversion_history.html#id33

Change-Id: Ia66e44e530799ce6531922dcf6a84e38528c8725
Closes-bug: 1630161
2017-01-24 16:56:35 +00:00
Jenkins
0ef6fc0ae8 Merge "Functional tests debug support" 2017-01-24 16:44:03 +00:00
Jenkins
bfad2abf23 Merge "Fix OSC networking commands help errors" 2017-01-24 15:35:33 +00:00
Jenkins
1ef0dae8b1 Merge "Update container format choices" 2017-01-24 15:30:08 +00:00
Jenkins
11ef43da49 Merge "Functional tests - port" 2017-01-24 06:06:31 +00:00
Jenkins
c9de2d67e9 Merge "Handle 403 error on creating trust" 2017-01-24 04:16:28 +00:00
Brian Rosmaita
80c62021c8 Update container format choices
The choices for valid container formats is out of date in the
image v1 and v2 help text.  This patch adds 'ova' and 'docker'
and does some minor refactoring to align the container_format
option with the disk_format option.

Change-Id: Icdea5fab801abd651baf45cf96c920c7df79f11b
Closes-bug: #1658138
2017-01-23 23:04:49 -05:00
Hongbin Lu
5cf77bb672 Handle 403 error on creating trust
Currently, creating trust requires permission to list roles, but
non-admin users don't have permission to do that by default. This
commit adds exception handling on listing roles, and continue to
create trust if server returns 403.

Closes-Bug: #1658582
Change-Id: I4f016b76cb46ae07ef65ed54780881bbcd6210d3
2017-01-24 01:50:36 +00:00