summaryrefslogtreecommitdiff
path: root/glanceclient/shell.py
Commit message (Collapse)AuthorAgeFilesLines
* added --version as new parameterChristian Berendt2012-11-131-0/+4
| | | | | fixes bug 1056504 Change-Id: Ib28e3941006b46553001d7895d5ddf4b0f9c540d
* Implement blueprint ssl-connect-reworkStuart McLaren2012-10-081-0/+6
| | | | | | | | | | | | | | | | | Use pyOpenSSL for HTTPS connections. This allows: * Neater loading of system CA files * Optional disabling of SSL compression The performance gain from disabling SSL compression is significant in cases where the image being uploaded/downloaded is in an already compressed format (eg qcow2). Related to bp ssl-connect-rework. Change-Id: I0568b6c95c5fc7b8eafdbd0284e24c453660a55a
* Use system CA certificate fileStuart McLaren2012-08-131-2/+3
| | | | | | | | When SSL is being used and the --ca-file option is not specified use an available system CA file to verify the server's certificate. Change-Id: Id5c9fda6fd9bd05cde3c2a9160a6e72cef086a44
* Client-side SSL ConnectionBrian Waldon2012-08-041-0/+10
| | | | | | | | | | | | | This allows a user to pass a cert and a key to use in HTTPS connections. The flags --cert-file and --key-file are added to the CLI. Addiionally, update the debug curl logging to print --cacert and -k when ca_file and insecure are set. Related to bp glance-client-parity. Change-Id: Ibaea51419a903afb7939a6b5b848f7a6667893bf
* SSL Certificate ValidationBrian Waldon2012-08-041-5/+12
| | | | | | | | | | | This adds support for validation of ssl certs returned by remote servers over SSL. The --ca-file param represents the CA cert used to sign the remote server's cert. Use --insecure if the remote server is using a self-signed cert or you don't have the CA cert. Related to bp glance-client-parity Change-Id: I45253a6e2d88da599addfcc464571e62ae920166
* Merge "Allow CLI opts to override auth token and endpoint"0.3.0Jenkins2012-08-031-15/+19
|\
| * Allow CLI opts to override auth token and endpointBrian Waldon2012-08-011-15/+19
| | | | | | | | | | | | | | | | | | | | | | | | Previously, both --os-auth-token and --os-image-url had to be provided in order for either of them to be used in any API requests. This breaks the tie between them and allows a user to override either the auth token or the endpoint returned by Keystone independently of one another. Fixes bug 1029586 Change-Id: I8b81be723286c546d9cbd97c8b7d7aa89c03b2d4
* | Add legacy compat layer to v1 shellBrian Waldon2012-08-011-4/+97
|/ | | | | | | | | | | | | | | All legacy CLI commands should work as expected with a few minor exceptions: - no upload animation - no interactive pagination - help/usage output has changed Deprecated options are indicated as such in their usage info. Deprecated commands have descriptions that label them as such. Related to bp glance-client-parity Change-Id: I584b2447361967228bea332e14880e18db12fca8
* Merge "Honor '--insecure' commandline flag also for keystone authentication"Jenkins2012-07-311-2/+4
|\
| * Honor '--insecure' commandline flag also for keystone authenticationSascha Peilicke2012-07-261-2/+4
| | | | | | | | | | | | Currently, keystone auth fails with self-signed certificates. Change-Id: Ice89bcd0662038260bc4bd12058972bb35e61e3b
* | Fix --debug CLI optionBrian Waldon2012-07-291-2/+7
|/ | | | | | | | | | The --debug argument has been ignored since httplib2 was replaced with httplib. This re-enables the --debug flag as an equivalent to the env var GLANCECLIENT_DEBUG. Fixes bug 1030700 Change-Id: Ib653049eea2f18c4cc2f8f8aac7884245afd0f04
* Replace httplib2 with httplib as http driverBrian Waldon2012-07-231-9/+1
| | | | | | | | * This allows us to send truly chunked responses to users * Handle bad connection url schemes with a new InvalidEndpoint exception * Fixes bug 1023240 Change-Id: I34500987f51d4e0c6e1f89ecf93853de3fcbb1c3
* Clarify usage of --insecure flagSascha Peilicke2012-07-201-1/+4
| | | | Change-Id: If19a7aab92350fb68e447a0ffe8a97e079d762e4
* Establish the supported importable interfaceBrian Waldon2012-07-131-7/+7
| | | | | | | | | | | | | * Consumers of this client should not depend on being able to import any module other than glanceclient and glanceclient * The only attributs of the glanceclient module are Client and __version__ * The attributes of the glanceclient.exc modules have yet to be locked down * glanceclient.common.exceptions was replaced with a placeholder module until consumers of it are updated Change-Id: Iea9648cd06906d65764987c1f2ee5a88ebeee748
* Remove AuthorizationFailure exceptionBrian Waldon2012-07-101-2/+0
| | | | | | | | | The AuthorizationFailure exception isn't used anywhere, so remove it. Fix bug 1015940. Change-Id: Ie6da74b63e3d1658c8ae26c272222f00f1209e38
* Add --timeout option to cliBrian Waldon2012-07-041-3/+10
| | | | | | | | | | Create a --timeout option to allow users to provide a custom timeout for requests from the command line. The timeout functonality already exists in both v1 and v2 client classes. Related to bp glance-client-parity Change-Id: Ic91de5eae2824b37f6aad3adc5fda28b9674250e
* Switch CLI to support underscores and dashes.Dan Prince2012-06-291-0/+33
| | | | | | | | | | | | | | Update the glanceclient CLI to support both underscores and dashes. Dashes are prefered and show up in help. This will hopefully keep the CLI more consistent with the other OpenStack client projects like Nova, Swift, Keystone in addition to the old Glance client which all seem to prefer underscores to dashes. Fixes LP Bug #1018467. Change-Id: I80d7a19f94033554f7f639166911726de4a5159f
* Support --os-endpoint-type in glanceclient.Bhuvan Arumugam2012-06-231-2/+8
| | | | | | | | | | | | | | Bug: 993993 * glanceclient/shellp.py OpenStackImagesShell.get_base_parser(): Parse --os-endpoint-type argument. Default to one defined in os.environ. OpenStackImagesShell._authenticate(): Define endpoint type based on command line argument. Use 'publicURL', if it's not specified in command line and also not defined in os.environ. OpenStackImagesShell.main(): Pass this value to authenticate. Change-Id: I0c0cde5212198eec2a7d75fb2a7cad1cde048c7c
* Add minimal support for the v2 APIBrian Waldon2012-06-041-7/+11
| | | | | | | | | This only allows you to run image-list, but sets up a framework that we can use to fill in the rest of the v2 functionality. * Related to bp glance-client-v2 Change-Id: I8827e36fdcf79fe402990a6d05898ec00cbd54c6
* Adds support for --insecure.Michael Basnight2012-05-241-1/+7
| | | | | | fixes lp#1004281. Change-Id: I464e39515a7172bfb72921a92f46d31baac466d8
* Adding service type as configurable shell optionMichael Basnight2012-05-101-3/+10
| | | | | | fixes lp#997698 Change-Id: I5179a2ed5f32a8e7253806f6f9b02de3c06913ed
* Strip version from service catalog endpointDean Troyer2012-04-231-0/+17
| | | | | | | | | | | | This client includes the API version in the URL directly where the former practice was to include it in the service catalog endpoint. This change removes the version from the last component of the SC endpoint (if present) for transition purposes. Note that this does not generalize to the other APIs where the version is not the last component of the SC endpoint. Change-Id: Ie04c38d80b17a171482e195aa1c633b6b6974042
* Allow tenant name to be used in authenticationBrian Waldon2012-04-101-11/+27
| | | | Change-Id: If0bdf67143d64172db0b665fc07c165fabc9486a
* Further cleanupBrian Waldon2012-03-261-2/+2
| | | | | * README is now relevant * Auth now properly skipped with os-image-url and os-auth-token provided
* Basic get/list operations workBrian Waldon2012-03-261-88/+67
| | | | | * 'glance image-list' and 'glance image-show' work * Set up tests, pep8, venv
* Initial checkin for new CLI and client packageJay Pipes2012-02-291-0/+246
Copied mostly from python-keystoneclient with some Glance-specific stuff. README.rst shows what WILL be the way to do things, not what is currently coded :)