summaryrefslogtreecommitdiff
path: root/openstackclient
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | network.common.NetworkAndComputeShowOne: catch HttpExceptionJordan Pittier2016-11-102-6/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: if a user issue the cmd 'openstack floating ip create public' and has already maxed his quota for FIP, OSC exits with a not so useful message: >jordan@jordan-XPS13-9333:~ $ openstack floating ip create public >HttpException: Conflict This patches catch the HttpException earlier and prints a more verbose message: > jordan@jordan-XPS13-9333:~ $ openstack floating ip create public > Error while executing command: Quota exceeded for resources: ['floatingip'] Change-Id: I7c87524d871d230d92f007c32e06439b34c7194a
* | | | | | | Merge "Not appropriate name sg rule attribute"Jenkins2016-11-102-17/+178
|\ \ \ \ \ \ \
| * | | | | | | Not appropriate name sg rule attributejudy-yu2016-11-042-17/+178
| | |_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For ingress rules set ip-prefix means src-ip- prefix, but for egress rules set ip-prefix means dst-ip-prefix. It is not appropriate to name src-ip directly. So as to src-group. Change-Id: I03fd0e14e470e7272930ac2651e73263b83bd4e1 Closes-bug: #1637365
* | | | | | | Merge "Add description field port create & port set"Jenkins2016-11-103-40/+56
|\ \ \ \ \ \ \
| * | | | | | | Add description field port create & port setAradhana Singh2016-10-173-40/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patchset 1. adds description field to openstack port create and openstack port set. 2. updates method _add_updatable_args with 4 spaces instead of existing 8 spaces Partially Implements: blueprint neutron-client-descriptions Partially Implements: blueprint network-commands-options Change-Id: I4598e555722b1de7bc47f3a9be0fd81eacfcb572
* | | | | | | | Merge "Support --provider-* options in the network list command"Jenkins2016-11-103-5/+97
|\ \ \ \ \ \ \ \
| * | | | | | | | Support --provider-* options in the network list commandYan Xing'an2016-10-273-5/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add --provider-network-type, --provider-physical-network, --provider-segment options into network list command. Change-Id: I02546170211fb3e7e55d5dc7e7cdc6d387fd26e5 Closes-Bug: #1635580 Partially-Implements: blueprint network-commands-options
* | | | | | | | | Merge "Add option to allow filtering by mac-address on port list"Jenkins2016-11-102-2/+31
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | Add option to allow filtering by mac-address on port listYan Xing'an2016-10-192-2/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added support to allow filtering ports via --mac-address option to the port list command. Change-Id: I903e443f2f9057571d46520c4cafb88d1972c0cb Partial-bug: #1634333 Partially-Implements: blueprint network-commands-options
* | | | | | | | | | Merge "Use FakeImage class to replace duplicated image info in volume test"Jenkins2016-11-102-31/+11
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | Use FakeImage class to replace duplicated image info in volume testHuanxuan Ao2016-10-212-31/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FakeImage class has been added in image v1 so that we can reuse it in volume v1 unit test to replace the duplicated image info in volume v1 fake. Change-Id: I0f96e568bd65e59241b57704fc2a379319a386d8
* | | | | | | | | | | Merge "Allow input the QoS policy name in network rbac create command"Jenkins2016-11-102-5/+44
|\ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | Allow input the QoS policy name in network rbac create commandHuanxuan Ao2016-10-202-5/+44
| |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We could input a QoS policy ID for the "rbac_object" parameter in "network rbac create" command but not name before. After this change, "rbac_object" parameter can be both QoS policy name or ID. Change-Id: I0fd6b5b5ae410074d85475ef49e5a0a9a52bf86f
* | | | | | | | | | | Merge "Add direction and protocol options to os security group rule list cmd"Jenkins2016-11-102-0/+84
|\ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | Add direction and protocol options to os security group rule list cmdNam Nguyen Hoai2016-10-142-0/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch added direction options (--ingress, --egress) and protocol option (--protocol) to filter rules by os security group rule list command. Change-Id: I56ace3f97eb927fd2a868f728c7347a29d028b67 Closes-Bug: #1613533 Partially-Implements: blueprint network-commands-options
* | | | | | | | | | | | Merge "Add "--read-only" and "--read-write" options in "volume set""Jenkins2016-11-104-28/+162
|\ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|/ / / / / |/| | | | | | | | | | |
| * | | | | | | | | | | Add "--read-only" and "--read-write" options in "volume set"Huanxuan Ao2016-10-184-28/+162
| | |_|/ / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add "--read-only" and "--read-write" options in "volume set" command to set volume access mode. Implements: bp cinder-command-support Change-Id: I76ba85c7d3ff0eb026a9cbd794368d8b2b0d17fe
* | | | | | | | | | | Merge "Add "volume migrate" command"Jenkins2016-11-104-0/+230
|\ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|/ / / / |/| | | | | | | | | |
| * | | | | | | | | | Add "volume migrate" commandHuanxuan Ao2016-10-184-0/+230
| |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add "volume migrate" command in volume v1 and v2 to support migrating volume to a new host Change-Id: Ie4e6037171a31a872006a13f9fd1e15eaa627c26 Implements: bp cinder-command-support
* | | | | | | | | | Merge "Add 'description' option"Jenkins2016-11-093-0/+41
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | Add 'description' optionSindhu Devale2016-11-083-0/+41
| | |_|_|_|_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds '--description' option to os security group rule create cmd. Change-Id: I604bcdeb4658d2dcc4d860a87e704e186cca5225 Partially-Implements: blueprint network-commands-options Partially-Implements: blueprint neutron-client-descriptions
* | | | | | | | | | Merge "SDK refactor: Prepare floating ip commands"Jenkins2016-11-082-5/+13
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | SDK refactor: Prepare floating ip commandsSindhu Devale2016-11-032-5/+13
| | |_|_|_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prepare the OSC "floating ip" commands for the SDK refactor. Change-Id: I02052185b3ce0b053acdcf76a0f68d49e6f7e608 Partially-Implements: blueprint network-command-sdk-support
* | | | | | | | | | Merge "SDK Refactor: Prepare subnet pool commands"Jenkins2016-11-083-15/+33
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | SDK Refactor: Prepare subnet pool commandsRichard Theis2016-10-053-15/+33
| |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prepare the OSC "subnet pool" commands for the SDK refactor. See [1] for details. [1] https://etherpad.openstack.org/p/osc-network-command-sdk-support Change-Id: I6d8cb7a079cf115ee25d48d9175e31f0f995c502 Partially-Implements: blueprint network-command-sdk-support
* | | | | | | | | | Merge "SDK Refactor: Prepare network segment commands"Jenkins2016-11-081-4/+9
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | SDK Refactor: Prepare network segment commandsRichard Theis2016-10-051-4/+9
| |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prepare the OSC "network segment" commands for the SDK refactor. See [1] for details. [1] https://etherpad.openstack.org/p/osc-network-command-sdk-support Change-Id: I426ecdad0f9d95b89e80fb1c5ba81ffe5fe274c9 Partially-Implements: blueprint network-command-sdk-support
* | | | | | | | | | Merge "SDK Refactor: Prepare address scope commands"Jenkins2016-11-084-12/+116
|\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / /
| * | | | | | | | | SDK Refactor: Prepare address scope commandsRichard Theis2016-10-054-12/+116
| | |_|_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prepare the OSC "address scope" commands for the SDK refactor. See [1] for details. [1] https://etherpad.openstack.org/p/osc-network-command-sdk-support Change-Id: I4e253e01f9b0b10452354f4e4152468090c76958 Partially-Implements: blueprint network-command-sdk-support
* | | | | | | | | Add 'all-projects' option to 'volume backup list'Jordan Pittier2016-11-084-3/+27
| |_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Similar to what 'volume list --all-projects' does, 'volume backup list --all-projects' list volume backups accross all projects. Change-Id: Id5dda9b5adc822c4ddfb2dda339946d3322858e2
* | | | | | | | Add options to "volume backup list" commandHuanxuan Ao2016-11-084-10/+174
| |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add "--name", "--status", "--volume", "--marker" (v2 only) and "--limit" (v2 only) options to "volume backup list" command Change-Id: If20cb7650f2359d393ee314d9e055a8659c73009 Closes-Bug: #1612484 Closes-Bug: #1639712
* | | | | | | Add filtering options --name,--enable,--disable to router listYi Zhao2016-10-312-1/+80
| |_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I171b6be4501b02c3df66589c45177200919117db Closes-Bug: #1637945 Partially-Implements: blueprint network-commands-options
* | | | | | Add --long option and more columns to the hypervisor list commandYan Xing'an2016-10-272-2/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support --long option and more columns in output of hypervisor list command, including 'Hypervisor Type', 'Host IP', 'State', and 'vCPU Used', 'vCPUs', 'Memory MB Used', 'Memory MB' with --long option. Change-Id: I0c790c7835309dded03e230cf497168e19404537 Closes-Bug: #1637074
* | | | | | Merge "Rename variable to avoid shadowing of built-in name"Jenkins2016-10-251-2/+2
|\ \ \ \ \ \
| * | | | | | Rename variable to avoid shadowing of built-in nameKyrylo Romanenko2016-10-181-2/+2
| | |/ / / / | |/| | | | | | | | | | | | | | | | Change-Id: I06e2617db1d5508723bc343072a15586af89b390
* | | | | | Merge "Avoid duplicated project_id when show network"Jenkins2016-10-251-0/+1
|\ \ \ \ \ \
| * | | | | | Avoid duplicated project_id when show networkjudy-yu2016-10-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Project_id appear twice when show network. This patch check and not append if it already has one. Change-Id: I4400239f454522101b639a0412050dd60eb6a612 Closes-Bug: #1636123 Partially-Implements: blueprint duplicated-project-id
* | | | | | | Merge "Adds information about private key generation for instance access"Jenkins2016-10-252-13/+13
|\ \ \ \ \ \ \
| * | | | | | | Adds information about private key generation for instance accessAnne Gentle2016-10-252-13/+13
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Also updated the help text in the command itself. Change-Id: Ib3d4f94ef415a3f12024d0d7c000d2de20de001b Partial-Bug: 1549410
* | | | | | | Merge "Warning for empty password set for user create/set"Jenkins2016-10-252-0/+20
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | |
| * | | | | | Warning for empty password set for user create/setqtang2016-10-192-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Raise warning when empty password set for user Change-Id: If03516f3f1290e4c329fe3d1277dee0512de0410 Closes-Bug: #1607959
* | | | | | | Improve a network testcaseYan Xing'an2016-10-201-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a typo networ to network, and add assertEqual lines. Change-Id: I13c0c775c1d5f7a8f579d387cd9bea1bdd74aebc
* | | | | | | Correct help string of the subnet pool list optionsYan Xing'an2016-10-201-8/+10
| |_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Correct help string of subnet pool list options, from "subnets" to "subnet pools". Change-Id: Ic6dd6649f411748cd0c6e6b08f0451c8a0fa220f Partially-Implements: blueprint network-commands-options
* | | | | | Reset allocation pools to [] instead of ''Carl Baldwin2016-10-191-1/+1
| |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the sdk expects subnet allocation pools to be reset to an empty array, not an empty string. Currently this results in an error message: "Invalid input for allocation_pools. Reason: Invalid data format for IP pool" Change-Id: I7cc84b9c8e4abdbd2c91e5d591ad31f0849c1a83 Closes-Bug: #1634672
* | | | | Merge "Fix --shared/block-migration options in server migrate command"Jenkins2016-10-171-8/+8
|\ \ \ \ \
| * | | | | Fix --shared/block-migration options in server migrate commandCedric Brandily2016-10-111-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, --shared-migration and --block-migration options effects are reversed: --block-migration requests a migration with share, --shared-migration a block-migration. This change corrects OSC implementation and clarifies arguments passed to novaclient (the root cause of the bug). Change-Id: Ib682cff0c44d3b1304670f8606907b1762d8b1e7 Closes-Bug: #1518059
* | | | | | Merge "properly format error messages for volume resizing"Jenkins2016-10-171-2/+3
|\ \ \ \ \ \
| * | | | | | properly format error messages for volume resizingSteve Martinelli2016-10-151-2/+3
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The error messages are tuples and not substituting variables. Before: $ openstack volume set vol1 --size 1 Failed to set volume size: (u'New size must be greater than %s GB', 2) $ openstack volume set vol1 --size 1 Failed to set volume size: (u'Volume is in %s state, it must be available before size can be extended', u'error') After: $ openstack volume set vol2 --size 3 Failed to set volume size: New size must be greater than 4 GB $ openstack volume set vol2 --size 3 Failed to set volume size: Volume is in error state, it must be available before size can be extended Change-Id: Ide6e644b1c6d1c11a9dc2f3f53c1a1837380b8d5
* | | | | | Merge "Add necessary info to Floating IP list"Jenkins2016-10-172-0/+8
|\ \ \ \ \ \
| * | | | | | Add necessary info to Floating IP listReedip2016-10-162-0/+8
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds the Network ID and Project ID for the listed floating IPs when Neutron is enabled for OpenstackClient. Change-Id: I823090f2e6d30acd72247d30956f48f4d7672a50 Closes-Bug:#1566090