summaryrefslogtreecommitdiff
path: root/tests/v1_1/test_shell.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove actions command from servers.Vishvananda Ishaya2013-04-021-6/+0
| | | | | | | | | | It appears that this command was inherited from the original cloudservers client code. It hasn't ever worked with nova. It is confusing now because we have the instance actions command. Fixes bug 1163033 Change-Id: Id0b36c01cdbd5034d0a7886b809269d838c36b45
* Merge "Add support for retrieving instance-actions info"2.12.0Jenkins2013-03-261-0/+9
|\
| * Add support for retrieving instance-actions infoAndrew Laski2013-03-251-0/+9
| | | | | | | | | | | | | | | | | | | | Adds an extension for querying instance-actions info on an instance. There are two new commands: 'instance-action-list <server>' which lists actions that have been recorded for that instance, and 'instance-action <server> <request_id>' which provides more details for the action with that request_id on that server. Change-Id: I22492d682d50b78f522f10269221fea9483df6dd
* | Remove extraneous output during testingAndrew Laski2013-03-251-6/+7
|/ | | | | | | | | | During shell tests commands were being passed to novaclient and output was being printed to stdout. This quickly scrolls useful test output offscreen, so lets suppress it. Also removed a print call from a test. Change-Id: I31c8bf2f92a64d781c9e3350213f2e1503b960ad
* Merge "Make os-services API extensions consistent with Nova"Jenkins2013-03-201-4/+4
|\
| * Make os-services API extensions consistent with NovaHans Lindgren2013-03-121-4/+4
| | | | | | | | | | | | | | | | | | Updates the os-services API extensions to match the Nova changes proposed in I932160d64fdd3aaeb2ed90a092ecc7a36dcc9665. Resolves bug 1147746. Change-Id: Ib0f24dea8e937a8e1a1604b1cbf19d96bcdbcd8f
* | Add support for the new fixed_ip quota.Michael Still2013-03-161-1/+10
| | | | | | | | | | | | Required for bug 1125468. Change-Id: If9f8f31a9fd35497a308ae13351685e470e20cd0
* | Fix Copyright Headers from LLC to FoundationDavanum Srinivas2013-03-131-1/+1
| | | | | | | | | | | | follow the lead from nova and oslo projects Change-Id: I270c5f1e4eefa4b72e292bfb4a4c60de0c3f6e4a
* | Removes tenant IDs checking for nova quota operations.Andy Hill2013-03-131-12/+0
| | | | | | | | | | | | | | | | Until there is a way to validate tenant IDs, remove the existing checks. Fixes bug #1154582 Change-Id: If10fac17b919190c1492cfbf1be9950284a82197
* | Merge "Revert API changes in "Unify Manager._update behaviour""Jenkins2013-03-121-3/+3
|\ \ | |/ |/|
| * Revert API changes in "Unify Manager._update behaviour"Hans Lindgren2013-03-121-3/+3
| | | | | | | | | | | | | | | | | | | | This revert some of commit 63073104665ee4597cf3b7aa8dc2295a8a7db794, specifically the changes made to the API since those changes were never merged in Nova. Resolves bug 1145768. Change-Id: I8f83c5a33cfed0c3a659f5221b8b2e730ca9463f
* | Merge "Check if tenant flag is uuid_like for all quota operations"Jenkins2013-03-111-4/+14
|\ \
| * | Check if tenant flag is uuid_like for all quota operationsJoe Gordon2013-03-071-4/+14
| |/ | | | | | | | | | | Fix bug 1145706 Change-Id: I9089ea4f968797b248f80bf84027a602e59ccd00
* | Merge "Extend test coverage for v1_1/shell.py"Jenkins2013-03-111-7/+155
|\ \
| * | Extend test coverage for v1_1/shell.pyVasyl Khomenko2013-03-061-7/+155
| |/ | | | | | | | | | | | | Added unit tests for shell code, that wasn't covered before. Implements: blueprint python-novaclient-unittests Change-Id: Id9973b1edb39ab76e7a232c262ae073cf44dfc0a
* | Fix nova boot --num-instances option checkingMasayuki Igawa2013-03-071-0/+2
|/ | | | | | | | | 'args.num_instances' should be checked by None because of '0 == False'. This patch fixes the checking. Fixes bug 1151787 Change-Id: Iede860caa5c2d03d49471f375d687c3e40102372
* Merge "Allows admins to reset-network of an instance"Jenkins2013-03-011-0/+5
|\
| * Allows admins to reset-network of an instanceSulochan Acharya2013-02-201-0/+5
| | | | | | | | | | | | | | Adding some functionality to allow admins to call on resetNetwork action. Fixes bug #1130766 Change-Id: I3d0945b115d565bd2c54a5526ba51036e941a28f
* | Make ip_protocol parameter in security groups rules case insensitiveVasyl Khomenko2013-02-261-0/+27
| | | | | | | | | | | | | | | | | | Added convert ip_protocol to uppercase. Added tests Fixes: bug #1052725 Change-Id: I966ddad0800556b1cc848003d07d4a897ce1b9c1
* | Add support for os-attach-interfacesDan Smith2013-02-191-0/+12
|/ | | | | | | | | | This is dependent on nova change: I4f8f677af58afcb928379e5cf859388d1da45d51 Related to blueprint network-adapter-hotplug Change-Id: Ieef603e85c6557cbfd2fe4ae7109e6ca235ba51d
* Extend test coverage (shell, fping)Vasyl Khomenko2013-02-181-59/+240
| | | | | | | Added unit tests for shell code, that wasn't covered before. Implements: bp/python-novaclient-unittests Change-Id: I76e3df05d53e6c08e224feb30eb90ae819d8cdce
* Merge "Support showing extra fields in server list"Jenkins2013-02-151-0/+11
|\
| * Support showing extra fields in server listKieran Spear2013-02-111-0/+11
| | | | | | | | | | | | | | | | | | Adds a --fields argument that sets the fields to display. ID is always displayed. Fixes bug #1076473 Change-Id: If3462e6a490ea16da4834a7f40f96b111c9e8227
* | Add format options to 'nova coverage-report'.2.11.0Mitsuhiko Yamazaki2013-02-121-0/+15
|/ | | | | | | | | | | | | This adds --html and --xml options to 'nova coverage-report' to enable selection of coverage report format. If specifying none of these, text-formatted report will be created. This also adds --combine option to 'nova coverage-start' to make sure that 'nova coverage-report --html' works fine. Fixes bug 1114766 Change-Id: I9fee26bd5c45cac35f425ac7abbced4e2f3ff4df
* Show the summary or details of all availability zones of a regionZhi Yan Liu2013-02-051-0/+5
| | | | | | | | | | | | | Adding "availability-zone-list" sub-command allow user list all availability zones and its status in a region. * summary list for normal user: list availability zones summary whitin a flat view. * details list for administrator user: list availability zones details within a tree view, include zones, hosts and components. Implement one workitem for bp:show-availability-zone Change-Id: Id87fe470c7e0f6fbfb9465551f63717724b5fc18
* Fixed 7 pep8 errors.Anita Kuno2013-02-011-4/+8
| | | | Change-Id: I2d509ed383fd8d6cef91dd0c58a51eafc6995bda
* Add usage command to show usage for single tenantVishvananda Ishaya2013-01-311-0/+14
| | | | | | | | | The usage-list command is admin-only so add a usage command so that users can see their usage like they do in horizon. Only admins can see usage for other tenants, so default the value of tenant to the tenant_id of the current credentials. Change-Id: Icd6fec36f1f4145b92b227031e5df23db11737f0
* Store tenant_id from keystone and use for quotasVishvananda Ishaya2013-01-311-3/+6
| | | | | | | | Some calls in nova require a tenant_id when it could be interpreted from the current authentication data, so save the tenant id and use it in the quotas command if tenant_id is not specified. Change-Id: I89647cfe9da73bc474ef80a61a5678db42a5571c
* Merge "Check tenant_id's format in "nova quota-update""Jenkins2013-01-291-4/+15
|\
| * Check tenant_id's format in "nova quota-update"Haiwei Xu2013-01-241-4/+15
| | | | | | | | | | | | | | | | | | | | | | Fix bug 1088835 "nova quota-update" command is executed without checking the format of the tenant_id argument. The tenant_id should be in the format of UUID. The tenant_id of quotas should be in accord with the form of keystone's tenant_id. So this patch checks the format of the tenant_id when "nova quota-update" command is executed. Change-Id: I47c4f2ff9adbab5da4697270dcf024ac88e24529
* | Merge "Allow for image selection using the metadata properties."Jenkins2013-01-291-0/+14
|\ \ | |/ |/|
| * Allow for image selection using the metadata properties.Joshua Harlow2013-01-181-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of forcing users to remember a image name and/or uuid instead allow them to specify a image metadata property to 'key' off of. For example: I want to boot a image of ubuntu. This could now be a property set in the image metadata and the following could be used to find said image. $ nova boot my-vm --image-with type=ubuntu Now that user does not need to care what ubuntu version is being selected or what the uuid is or what the image name is, they just know that some image with ubuntu will likely get selected. Change-Id: Ifaf71e282b8411d2e303cb52fd2623f6cf0bf32a
* | Implement get password for novaclientVishvananda Ishaya2013-01-151-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | This will download and decrypt a base64 encoded encrypted password from the os-server-password extension. It depends on the user having openssl installed, but if there is an error of any kind it will print out the encoded and encrypted password instead. It also implements clear_password which will delete the password so it can no longer be retrieved. Change-Id: I2c4e6c3f03b70dc98d6d339381648a6058f46e21
* | Merge "Fix a couple of broken shell tests"Jenkins2013-01-151-1/+1
|\ \
| * | Fix a couple of broken shell testsVishvananda Ishaya2013-01-111-7/+1
| | | | | | | | | | | | | | | | | | | | | Pyflakes picked up a couple of duplicated names. Rename the one that is correct and delete the incorrect one. Change-Id: Id4af1269a030be5a725bbbbcf3400341b09fddc3
* | | Merge "Update hosts API action calls (startup etc.)"Jenkins2013-01-151-3/+3
|\ \ \
| * | | Update hosts API action calls (startup etc.)Alessio Ababilov2013-01-111-3/+3
| | |/ | |/| | | | | | | | | | | | | | | | These calls are now implemented as normal POST os-hosts/{host_name}/action requests. Change-Id: I8cd401e3b4e552c6787d1f984041ad3c345e6eca
* | | Merge "Add support for instance evacuate."Jenkins2013-01-151-0/+21
|\ \ \
| * | | Add support for instance evacuate.Kravchenko Pavel2013-01-071-0/+21
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds support for server evacuation from failed host. Adds CLI command: nova evacuate <server> <host> [--password pwd] [--on-shared-storage] Depends on the approval of change: https://review.openstack.org/#change,17991 Change-Id: Icd91c0484b2db532861e23163d043737ad04117a
* | | Merge "Move from untitest2 to testtools."Jenkins2013-01-151-20/+28
|\ \ \
| * | | Move from untitest2 to testtools.Monty Taylor2013-01-031-20/+28
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | Use testtools as the base testclass. Use fixtures library for managing fixtures. Part of blueprint grizzly-testtools Change-Id: Iac5af286b988787acf7049344641aadf140b9398
* | | Adds tenant network support to the clientMatt Dietz2013-01-151-11/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modifies novaclient, changing the existing networks implementation to a more appropriate os-admin-networks namespace, and supplements with a tenant-base network extenion that lives under the os-networks namespace as a Nova API extension. Also removes from the duplicately named network test methods. Implements: blueprint tenant-networks Change-Id: I54c9f017b86fc413f1646c7bded8cebd94f6a287
* | | Merge "Update functionality of coverage extension."Jenkins2013-01-141-1/+1
|\ \ \ | |_|/ |/| |
| * | Update functionality of coverage extension.Matthew Treinish2013-01-141-1/+1
| |/ | | | | | | | | | | | | | | | | | | Change If1aa25fc7237e9bb5100d2a4a8e560f0a68eba61 adds additional functionality to the coverage extension. Mainly returning the data file path for the 'stop' action and adding support for generating html reports. This commit adds support for this new functionality. Change-Id: Icd147350d5c038f6b9c8063e77a75370eb8422e9
* | Unify Manager._update behaviourAlessio Ababilov2012-12-231-10/+10
|/ | | | | | | | | | Now _update call usually returns an instance of self.resource_class. This simplifies the code and makes novaclient closer to keystoneclient. Also, update hosts and services API according to changes on nova. (If50a6b6e20f9b3fe66d486bb9b15d3eb4b62daf9). Change-Id: I447e49e5fce0afba8a9c1a5df6dfa7200cc93e18
* add num_instances option for nova boot.Yaguang Tang2012-12-221-0/+18
| | | | | | fix bug #1092475. Change-Id: I584b27c1f24c6a5183a2289e77580f204db2e4db
* Merge "Specify some arguments by name."Jenkins2012-12-201-2/+2
|\
| * Specify some arguments by name.Ken'ichi Ohmichi2012-12-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'nova boot', 'nova flavor-key', 'nova flavor-show' and the other subcommands can be specified by a flavor name also. But 'nova flavor-delete' and 'nova list --flavor' cannot, also 'nova list --image' cannot be specified by a image name. I feel it is user-friendly that a user can specify arguments by name. By this patch, a user can do it like the following. Before appying this patch: $ nova flavor-delete m1.tiny ERROR: Flavor m1.tiny could not be found. (HTTP 404) (Request-ID: req-af2c049f-1b77-42cf-a9ed-a3914626bc83) $ $ nova list --flavor m1.tiny ERROR: Flavor could not be found (HTTP 422) (Request-ID: req-dbfd5df2-77d7-4a71-a3e6-b1f7fd25b96c) $ $ nova list --image cirros-0.3.0-x86_64-uec $ After appying this patch: $ nova flavor-delete m1.tiny $ $ nova list --flavor m1.tiny +--------------------------------------+--------+--------+------------------+ | ID | Name | Status | Networks | +--------------------------------------+--------+--------+------------------+ | 2f003e0e-bfdf-4f56-bdf9-276732e640a0 | test01 | ACTIVE | private=10.0.0.2 | +--------------------------------------+--------+--------+------------------+ $ $ nova list --image cirros-0.3.0-x86_64-uec +--------------------------------------+--------+--------+------------------+ | ID | Name | Status | Networks | +--------------------------------------+--------+--------+------------------+ | 2f003e0e-bfdf-4f56-bdf9-276732e640a0 | test01 | ACTIVE | private=10.0.0.2 | +--------------------------------------+--------+--------+------------------+ $ Fixes bug 1091814 Change-Id: Ic7f6ce76608a448dea3c151bc349391fbf3fa456
* | Merge "Fix find for alphanumeic flavor id/name"Jenkins2012-12-201-1/+5
|\ \
| * | Fix find for alphanumeic flavor id/nameRohan Rhishikesh Kanade2012-12-201-1/+5
| |/ | | | | | | | | | | Fixes LP bug #1089299 Change-Id: Ia9cc756b85096532acfc9ecacd1330de8a765fba