112 Commits

Author SHA1 Message Date
Monty Taylor
99586e05d7 Add post-tag versioning.
Change-Id: I98e5f7aa788b1ab1a866b21e0a17a63b8d5efae3
2012-06-25 11:31:49 -05:00
Jenkins
01dd4540c5 Merge "Update Contributing blurb in the docs." 2012-06-22 17:39:46 +00:00
Clark Boylan
3dceacf6cd Update Contributing blurb in the docs.
Contributing blurb previously mentioned social coding and Github.
The OpenStack contribution workflow is slightly different. Provide
details on Github, LP, and Gerrit.

Change-Id: Ie5ecd25e5828de611561f37b3acbccc5cf3f0d04
2012-06-22 10:24:44 -07:00
Dean Troyer
f9aa3f3c84 Create tests for shell interface
* use unittest2
* shell: command-line options

Change-Id: I558fb10b8607e4f6e5c44d5fcac902546a8748a4
2012-06-22 10:20:04 -05:00
Dean Troyer
697a5ac6cb Refactor cliff.Command.run()
* All commands now perform their action in take_action().  Those producing
  output are derived from DisplayCommandBase.

Change-Id: Ic93ba9a2ad449d84242b6aa8624b41379c4fb79a
2012-06-20 10:03:01 -05:00
Jenkins
9be5803993 Merge "Move docs to doc." 2012-06-14 13:55:59 +00:00
Clark Boylan
6a8302b532 Fix pep8 issues.
Fix several pep8 issues and pin the pep8 test to pep8 version 1.1.
This should prevent future changes from being unmergable by the pep8
gate after a pep8 upgrade.

Change-Id: I4678a9179579fb5c7afe795fb43a8a89a99ad717
2012-06-13 10:49:43 -07:00
Clark Boylan
77e5ce57fd Move docs to doc.
To better facilitate the building and publishing of sphinx
documentation by Jenkins we are moving all openstack projects with
sphinx documentation to a common doc tree structure. Documentation
goes in project/doc/source and build results go in project/doc/build.

Change-Id: I925e687254bac9e06c2c520f4fc35a083e21c4ca
2012-06-11 14:37:48 -07:00
Matt Joyce
64f685ad63 minor fixes
Change-Id: Ib5601e1a932e0bfaa0341909416415d1e81ee915
2012-05-29 14:31:00 -07:00
Matt Joyce
8d089518f0 removing print call in roles get_data
Change-Id: I2aebf6099821212d4bd4b4b6d78b9752085168b2
2012-05-23 12:18:53 -07:00
Jenkins
3acb1c6a85 Merge "Fix 'set user' command" 2012-05-22 13:59:31 +00:00
Jenkins
23b42e2e4e Merge "Add role CRUD commands" 2012-05-21 16:48:25 +00:00
Lorin Hochstein
14ffd1c1df Documented python setup.py develop
Change-Id: Ic17f17e6c80f54a633676b7e17a899748038f8d6
2012-05-21 12:39:35 -04:00
Dean Troyer
ec586a75f4 Fix 'set user' command
* missing --name arguemnt in parser for SetUser()
* correct Identity api call for SetUser()

Fix bug 1001384

Change-Id: I51169a0585c1bfe106ddd2e390269f69fc32852c
2012-05-18 17:19:16 -05:00
Dean Troyer
a4aaac78a9 Add role CRUD commands
* add {add|create|delete|list|remove|show|user-list} role commands

Change-Id: I27129168a9f58154fcdb062a533fa926737f822f
2012-05-18 13:57:16 -05:00
Dean Troyer
0c4e131c6e Add endpoint CRUD commands
* add {create|delete|list|show} endpoint commands

Change-Id: Ife9fa789d5818d63288b09687b43d802b1b97858
2012-05-18 10:35:20 -05:00
Jenkins
f3dd77f30a Merge "Added :: to readme.rst to format correctly." 2012-05-16 17:17:16 +00:00
Jenkins
a7fe774554 Merge "Moved test related packages to test-requires" 2012-05-16 17:16:23 +00:00
Lorin Hochstein
fad694e428 Added :: to readme.rst to format correctly.
Also zapped a trailing bit of whitespace

Change-Id: I49d0306c0e73f096d091c27ba54705d9dbe9c0ca
2012-05-16 13:05:48 -04:00
Jenkins
b8ce56584b Merge "Added conf.py so Sphinx docs will build" 2012-05-16 17:05:30 +00:00
Jenkins
df5927a093 Merge "Clean up tenant and server" 2012-05-16 17:04:44 +00:00
Dean Troyer
90f9f1dfa0 Clean up tenant and server
* remove '_' from class names
* add class name to log instances
* some cleanups to HACKING

Change-Id: I1f6334318ee0d7d83cd3cea0e71ba4f05dd2b5c5
2012-05-16 11:44:18 -05:00
Lorin Hochstein
4109bdb5a0 Added conf.py so Sphinx docs will build
Change-Id: I4f88dfe0056ce724a152713719abdf3910663ead
2012-05-16 12:08:09 -04:00
Lorin Hochstein
e1afa4c7cc Document how to install the client
This documents a workaround for bug 993390.

Change-Id: I6d930aa9ad142096cdc2790df4be31f0b1570199
2012-05-16 12:02:18 -04:00
Lorin Hochstein
c4d00b1798 Moved test related packages to test-requires
Change-Id: Ib4a4394b279188aa969c504b52b19c26746a97e1
2012-05-16 11:56:28 -04:00
Jenkins
d6a2762746 Merge "Add user CRUD commands" 2012-05-16 14:29:23 +00:00
Dean Troyer
d6a4fb836f Update service commands
* add {create|delete} service
* allow 'service' arg to also search type attribute in show command

Change-Id: I992359dc95fab1fbdab0666d5cbb75e44ba6e0f3
2012-05-15 15:48:11 -05:00
Dean Troyer
0740d85c20 Add user CRUD commands
* add {create|delete|list|set|show} user commands
* fix pep8 issues

Change-Id: I46fe2375b8b4f95b82d8ba31ee8fb660a067d50a
2012-05-15 15:43:05 -05:00
Jenkins
fd8197de6d Merge "fix authentication setup in interactive mode and improve error handling so tracebacks are not printed twice" 2012-05-15 19:12:33 +00:00
Matt Joyce
25051a733d Updating Readme Document
Change-Id: I0c0f5c86b0bfa96ab4d7236eb2e7e7efab6fbac0
2012-05-14 17:01:46 -07:00
Matt Joyce
732863b9b7 correcting ordering of imports
undoing ordering patch.  adding more explicit descreption of
ordering rules to HACKING document.

Change-Id: I7b7d755f44e382b54f237914e654a05766ec5c2c
2012-05-14 16:08:35 -07:00
Doug Hellmann
8939d26a5b fix authentication setup in interactive mode and improve error handling so tracebacks are not printed twice
Change-Id: I59fb07369edad3b2f2abddba3c0d0f6bbce1eab1
2012-05-14 10:50:57 -04:00
Dean Troyer
f485d71222 Revise command boolean flags
* use --enable|--disable form for boolean 'enabled' value
* clean up logging strings

Change-Id: Ib4016bbef1763c27ec5a9edf36b926dc0d0b265c
2012-05-11 17:27:03 -05:00
Dean Troyer
fa4a4a37d6 Move get_client_class() to common.utils
* add constants for API_NAME

Change-Id: I8ccf72f032227e0a452d96303181549b1b11a5d1
2012-05-11 13:49:45 -05:00
Dean Troyer
5378322906 Add tenant CRUD commands
* 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
2012-05-11 12:08:05 -05:00
Dean Troyer
712a8c7f9c Add API versioning support
* Specific versions supported are managed in XXXXXX.client.py with a
  mapping from version to client class.  This is based on the scheme
  that is included in novaclient; none of the other client libs have
  that capability.

Change-Id: I930b197f1189e7f52c3b0096e73e0773cf925542
2012-05-10 15:52:15 -05:00
Jenkins
9d224b3bf8 Merge "Add tenant commands, work on service" 2012-05-10 20:18:51 +00:00
Doug Hellmann
bf582a2d56 look at the command the user is going to run before trying to authenticate them
Change-Id: I4edc6a0f1e16be4cd80fe01f62869094b50ef120
2012-05-10 16:05:23 -04:00
Dean Troyer
3b2129f0b8 Add copyright notices and update dates
Change-Id: I54a7d99328143205ab97ea930aeeeb69fe92c76c
2012-05-10 14:58:16 -05:00
Dean Troyer
cc0adad81e Add tenant commands, work on service
* adds {list|show} tenant
* fleshes out service commands (still WIP)

Change-Id: I9dabb6ed3f128a30f140146928320f033d097a06
2012-05-10 14:11:17 -05:00
Dean Troyer
6fb1a4e496 More identity client config
* move auth option checking back to OpenStackShell() to keep the shell-level
  interaction at that level; add checking for token flow options

* make identity.client.make_client() configure keystoneclient.v2_0.Client()
  properly for both password flow and token flow auth

* eliminated ClientManager.init_token(), set _service_catalog in __init__()

* compute client handles token flow

Change-Id: I42481b5424489387798c4ec6d3e2a723ab1e6067
2012-05-10 13:54:58 -05:00
Dean Troyer
a7da2b8008 Remove printt
Remove unused common.utils functions
prettyprint 0.6 removed printt at the last minute, our references
to it turned out to be in unused code; remove it.

Change-Id: I38a4d9a169beaecfd53eafc5b10f06201bac0c31
2012-05-07 14:05:22 -05:00
Dean Troyer
70b3246a19 Add Identity to ClientManager
* Make the Identity client in identity.client.make_client()
* Auth via ClientManager.identity
* Skip extra auth roundtrip in compute client

Change-Id: I0190639e38f83997c233195f6cc27ff3afdfba10
2012-05-04 16:37:18 -05:00
Doug Hellmann
5e4032150d Fix "help" command and implement "list server" and "show server"
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
2012-05-04 09:35:40 -04:00
Matt Joyce
b5a809d8e3 Adding HACKING doc to project
Change-Id: I57594c0845def5591a01384be9740089b4722075
2012-05-02 22:09:29 -07:00
Dean Troyer
ee5ebd6be5 Change binary name to 'openstack'
Change-Id: I4fae0b2101a73637b7f8a300ac1b5c3a9de0471b
2012-05-02 09:45:32 -05:00
Bhuvan Arumugam
3c7350b3c9 Auto generate AUTHORS for python-openstackclient.
Bug: 976267

Now that git commits are gated by CLA, we shouldn't enforce
committers to add an entry in AUTHORS file. The AUTHORS file
should be generated automatically, based on git commits.

This commit fixes the problem.

* AUTHORS
  Remove this file.

* tests/test_authors.py
  Remove this test case.

* .gitignore
  Add AUTHORS file.

* openstackclient/openstack/common/setup.py
  generate_authors(): New method to create AUTHORS file. If
  AUTHORS.in file exists, append it's content to AUTHORS file.

* setup.py
  Import the new method.
  Generate AUTHORS file before creating the package.

Change-Id: Ia5488a43f88e13a0fb1f7a5d8d10a576b9034dc8
2012-05-01 16:31:23 -07:00
Matt Joyce
67ea436a99 Adding name to Authors and updating a bad URL. More to get my gerrit workflow up.
Change-Id: I3270dd6bd8ff1ed0d7458966b364134542a2471f
2012-05-01 15:49:18 -07:00
Jenkins
3c48fe0dca Merge "Reset project version to 0.1" 2012-05-01 20:23:18 +00:00
Dean Troyer
de299f8b7e Shell init & logging
* Split global app init to initialize_app()
* Set up logging & eliminate debug prints

Change-Id: I7c1e1f6fa336a4ff828007e240c890282cbd3015
2012-05-01 15:04:26 -05:00