| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
server
server image
Some cosmetic changes in the command source, sorting classes, help strings, etc.
Change-Id: I3f68dae77b9fe02bc6866684e05aeff943dd9cc3
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* server create required --image even when booting the server from a
volume. Change options to require either --image or --volume to
specify the server boot disk. Using --volume currently uses device
'vda' for the block mapping and ignores any other block mappings
given in --block-device-mapping.
* server create and server show are both affected by bug 1378842 where
an excepion was thrown when no image ID was present in the returned
server object, which is the case for a server booted from a volume.
* Fix the remaining assertEqual() order problems in test_server.py
Closes-Bug: 1378842
Closes-Bug: 1383338
Change-Id: I5daebf4e50a765d4920088dfead95b6295af6a4d
|
| |
|
|
|
|
|
|
|
|
| |
The files opened for the --files and --user-data options were never
closed, potentially leaking memory in a long-running client. Close
them if they are file objects.
Add a couple of basic tests for server create.
Change-Id: I1658b0caa2d6af17308149cb52196ee28266ddf2
|
| |
|
|
|
|
|
|
| |
Mark some of the messages from the server for translation
implements bp use_i18n
Change-Id: I503efcfb4ca3dec1c427b58ee4a85de9a241dacd
|
| |\ |
|
| | |
| |
| |
| |
| |
| | |
The group resource was being passed when only the name is needed.
Change-Id: Ia303804be4e336f9880205d931467cb831e812de
|
| |\ \
| |/
|/| |
|
| | |
| |
| |
| |
| |
| |
| | |
Instead of inline messages, let's create variables instead, as
it's easier to find strings, and mark them for translation.
Change-Id: Ibbcfdbc59d12a0cb4af50f73043d3ff7f3c76f99
|
| |/
|
|
|
|
|
|
| |
So apparently we've never resized a server???
Fixed command args and add some tests.
Change-Id: I6c3f6fec22390e9d269b7117a42a190d2b4b80ba
|
| |
|
|
| |
Change-Id: Ieb9a9af1da27d3935d1a4d3cfb61b0ccb03d099a
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| | |
There are files containing string format arguments inside
logging messages. Using logging function parameters should
be preferred.
Change-Id: Ic749ac9eb55564ed631d57055a5a4dfc3aebd169
|
| |/
|
|
|
|
|
|
| |
The final find_resource() call errored because servers.create_image()
returns an image ID rather than an Image resource. Reset expectations
and arguments.
Change-Id: I1b9132f66091f9df76198724156acb7a6fb2f6fe
|
| |
|
|
|
|
|
|
|
|
| |
This fixes some errors and inconsistencies I found reviewing the
help strings:
* Capitalize help strings
* Add missing space between words (in multi-line strings)
* Improve wording
Change-Id: I2fb31ab4191c330146e31c1a9651115a6657769a
|
| |
|
|
|
|
| |
Translation of 'nova image-create', with tests!
Change-Id: I8a833aeff6f291e4774063ed235876eb2ba9c13c
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| | |
Mostly options and help strings:
* image, server, project usage, volume
Change-Id: I788b0660f8c2daacde53c20a72dd1afc60cf5159
|
| |\ \
| |/
|/| |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Add security group: create, delete, list, set, show
* Add server: add secgroup, remove secgroup
* Add security group rule: create, delete, list
* Add Oslo's strutils and gettextutils
* Adds parseractions.RangeAction() to handle option arguments of either a single number
or a range of numbers: '--port 25' or '--port 1024:65535'
Blueprint: nova-client
Change-Id: Iad2de1b273ba29197709fc4c6a1036b4ae99725f
|
| |\ \ |
|
| | |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* use six.iteritems()
* replace basestring with six.string_types
* convert print statements to functions (they're all debugging and should
be removed eventually anyway)
* clean up OpenStack copyright: LLC -> Foundation
Change-Id: Icb14212bcb408e63816bfec3922a697bc1a6c946
|
| |/
|
|
| |
Change-Id: I9317ad6a47818d5479a046b4be8c5adbbce613ef
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* add server resize
* update --wait handling for server create, reboot, rebuild
* move _wait_for_status to utils
Blueprint: nova-client
Rebased after https://review.openstack.org/38162 was committed
Change-Id: I7a43b996feecadc7628fcfe20cd5b17333762739
|
| |
|
|
|
|
|
|
|
| |
Blueprint: nova-client
Note: I've tested that the API calls are made correctly but do not have an
environment with migration proerly enabled to watch it complete...
Change-Id: Ideaf0985d43aa2be22390cf0d2850124c549632d
|
| |
|
|
|
|
|
|
|
| |
* server lock/unlock, rescue/unrescue, set/unset
* add/remove volume
Blueprint: nova-client
Change-Id: I3709ecdb297ab15ad44df09d89af840164271a66
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Use correct attribute to get password in server rebuild command.
Fixes bug 1190722
Change-Id: Ibe2ccb8840a385319781885b8aadca6e1ba4cc43
|
| | |
| |
| |
| |
| |
| | |
Add server diagnose for compute api as per blueprint: nova-client
Change-Id: I0a2c13e36e1e13f61ef4ba00ec146634f9644648
|
| |/
|
|
|
|
|
|
|
|
| |
* Reformat default dict output to key='value' using utils.format_dict()
* Changes utils.get_item_properties() to pass the specific field to
the formatter function rather than the entire resource object, this
allows the formatter to handle multiple attributes.
* Updates server, volume, volume type commands
Change-Id: I90eebf6b84ae200532f09cd925f371598ea54a64
|
| |
|
|
|
|
|
|
|
|
|
| |
As discussed in https://review.openstack.org/#/c/36352/ for each
command, we were setting api = identity or volume... etc,
this was for an old way of calling commands that are is no longer
used.
Also removed openstackclient/common/command.py
Change-Id: I2705f35d343f2ae729dc22d6aed0b852b2f8ca19
|
| |
|
|
| |
Change-Id: I5f0687a83362ceebf03bae4a0a5b109aad7e5200
|
| |
|
|
| |
Change-Id: Ifdc4322b699f2bd91a6900e55695acd3d736568e
|
| |
|
|
| |
Change-Id: I454cbe685dc5afa0a09ecc976a90d6eb6bc57d14
|
| |
|
|
| |
Change-Id: I2baff95c9b6dcc95edf5d5da74814ff37883cd2b
|
| |
|
|
|
|
|
| |
Help string corrections and align args with wiki at
https://wiki.openstack.org/wiki/UnifiedCLI/Mapping#server
Change-Id: Ifd6f587d383534142003277e64532f77ecb37106
|
| |
|
|
|
|
|
|
| |
Made all the necessary changes to pass new PEP8 standards.
Also cleaned up docstrings to conform to the HACKING stanards.
Change-Id: Ib8df3030da7a7885655689ab5da0717748c9edbe
|
| |
|
|
| |
Change-Id: I64812bca01ca655c9cf9239a0daea84907082a29
|
| |
|
|
|
|
| |
First round of adding more complete unit test coverage.
Change-Id: Ic1979c499ca6fcb784892a95954a3527539c4e53
|
| |
|
|
|
|
|
| |
* add server create, delete, pause, reboot, rebuild
resume, suspend, unpause commands
Change-Id: I728ec199e4562bd621c3a73106c90d8b790b459a
|
| |
|
|
|
|
|
| |
* All commands now perform their action in take_action(). Those producing
output are derived from DisplayCommandBase.
Change-Id: Ic93ba9a2ad449d84242b6aa8624b41379c4fb79a
|
| |
|
|
|
|
|
|
| |
* remove '_' from class names
* add class name to log instances
* some cleanups to HACKING
Change-Id: I1f6334318ee0d7d83cd3cea0e71ba4f05dd2b5c5
|
| |
|
|
|
|
|
| |
* use --enable|--disable form for boolean 'enabled' value
* clean up logging strings
Change-Id: Ib4016bbef1763c27ec5a9edf36b926dc0d0b265c
|
| |
|
|
|
|
|
|
|
| |
* add {create|delete|set} tenant commands
* move get_XXXX_properties() to common.utils.get_item_properties()
add mixed_case_fields as an optional arg
Change-Id: I7b3bd9cefb08e39730886b31213cbe422b5a8453
|
| |
|
|
|
|
|
|
|
|
|
| |
blueprint client-manager
blueprint nova-client
bug 992841
Move the authentication logic into a new ClientManager class so that only commands that need to authenticate will trigger that code.
Implement "list server" and "show server" commands as examples of using the ClientManager, Lister, and ShowOne classes.
Change-Id: I9845b70b33bae4b193dbe41871bf0ca8e286a727
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix pep8 errors (project is pep8 clean now).
Update setup.py to use openstack-common style dependencies.
Remove the unused novaclient dependency.
Change the keystoneclient dependency to a git URL.
Add test-requires, and move some pip-requires dependencies
into it.
Remove the test_utils unit test which wasn't testing anything
that is actually present in the project.
Add the test_authors unit test.
Use tox for running tests locally.
See: http://wiki.openstack.org/ProjectTestingInterface
Tox can manage virtualenvs, and is currently doing so for running
tests in Jenkins. It's just as, or more, useful for running tests
locally, so this starts the migration from the run_tests system to
tox. The goal is to reduce duplicate testing infrastructure, and
get what's running locally on developer workstations as close to
what is run by Jenkins as possible.
Run_tests.sh will now call tox to facilitate the transition for
developers used to typing "run_tests.sh".
Developers will need tox installed on their workstations. It can
be installed from PyPI with "pip install tox". run_tests.sh outputs
those instructions if tox is not present.
New facilities are available using tox directly, including:
tox -e py26 # run tests under python 2.6
tox -e py27 # run tests under python 2.7
tox -e pep8 # run pep8 tests
tox # run all of the above
tox -e venv foo # run the command "foo" inside a virtualenv
The OpenStack nose plugin is used when running tox from the
command line, so the enhanced, colorized output is visible to
developers running the test suite locally. However, when Jenkins
runs tox, xunit output will be used instead, which is natively
understood by jenkins and much more readable in that context.
Change-Id: Ib627be3b37b5a09d3795006d412ddcc35f8c6c1e
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|