summaryrefslogtreecommitdiff
path: root/saharaclient
Commit message (Collapse)AuthorAgeFilesLines
* Use unittest.mock instead of third party mockSean McGinnis2020-04-1823-23/+25
| | | | | | | | Now that we no longer support py27, we can use the standard library unittest.mock module instead of the third party mock lib. Change-Id: I96263b774551821745a2345ffb2df3bf2a2dcf05 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* Update hacking for Python3Andreas Jaeger2020-04-078-476/+20
| | | | | | | | | | | | | | | | | | | | | | | | The repo is Python 3 now, so update hacking to version 3.0 which supports Python 3. Fix problems found. Update local hacking checks for new flake8. Note: The repo has been using an uncapped requirements, so was testing with hacking 2.0 which disabled the old way of local testing integration. Remove S367 and S368 since they are not working under python3 "NOTE(Kezar): This checks a good enough if we have only py2.7 supported. As soon as we'll get py3.x we need to drop it or rewrite. You can read more about it in dev-list archive, topic: "[hacking]proposed rules drop for 1.0" Also, hacking now has H304 and H306 which test exactly the same. Remove hacking and friends from lower-constraints, it's not needed there. Change-Id: If60682fb328359ef73dee8f2d89d51410a376677
* Fix the "image register" command (OSC 5.2.0 regression)Luigi Toscano2020-04-073-6/+6
| | | | | | | | | | | | | | | | | | python-openstackclient removed the usage of glanceclient between 5.1.0 and 5.2.0 (see: https://review.opendev.org/#/c/650374/). As a consequence, the openstack dataprocessing image register ... command is now broken. This fix means a few requirement bumps to align to OSC 5.2.0, even though saharaclient 3.0.0 is already released. Story: 2007501 Task: 39317 Change-Id: I377e0646303aef4984cdd6e4b6587fca9241206b
* Py3: fix the OSC download job binary commandLuigi Toscano2019-05-311-1/+1
| | | | | | | Story: 2005807 Task: 33546 Change-Id: I01660375c17938f1eb2920cf0d599083d3d300e1
* Add missing APIv2 features to client, OSC2.2.0Jeremy Freudberg2019-03-037-19/+195
| | | | | | | | | | | | | | | | | Now in the basic client: - Boot from volume enhancements - Update keypair Now in OSC: - Force delete cluster - Update keypair - Boot from volume enhancements - Decommision specific node (only via --json) Change-Id: I031fdb6f7754f6cf242bfae6f10ed05249c07dac Story: 2003092 Task: 23183 Task: 29740
* Preparing OSC for APIv2Telles Nobrega2019-01-1033-139/+4248
| | | | | | | On the way to have APIv2 as stable we need to have it available on the OSC for sahara. Change-Id: I84f4bc56c641caad7c04190c7a344a6773440eef
* Merge "Support of S3 data sources in OSC"rocky-em2.0.0Zuul2018-07-262-12/+150
|\
| * Support of S3 data sources in OSCJeremy Freudberg2018-07-252-12/+150
| | | | | | | | Change-Id: I3f96e9dd8af1ddee5d1d7ea36f5cdae2d91bf6b2
* | Clean S3 data source create/updateJeremy Freudberg2018-07-252-1/+28
| | | | | | | | | | | | Docstring, unit test. Change-Id: I80328f9e6f24aaf4a9e59c739e68ddb19f4d700d
* | Merge "Adding boot from volume to osc"Zuul2018-07-2522-321/+1114
|\ \
| * | Adding boot from volume to oscTelles Nobrega2018-07-1922-321/+1114
| | | | | | | | | | | | | | | | | | | | | | | | Adding boot from volume to python-sahahraclient CLI. Change-Id: I302aaeb7a0f831730301162f8c51e0eebcbd66f8 Story: #2001820 Task: #12559
* | | Merge "Adding boot from volume"Zuul2018-07-251-6/+10
|\ \ \ | |/ /
| * | Adding boot from volumeTelles Nobrega2018-07-191-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | Adding boot from volume to python client. Change-Id: I869e61242de47e802f9d7f1be92427e762bfcf59 Story: #2001820 Task: #22978
* | | Merge "Allow S3 credentials in data source create"Zuul2018-07-191-5/+6
|\ \ \ | |/ / |/| / | |/
| * Allow S3 credentials in data source createJeremy Freudberg2018-07-101-5/+6
| | | | | | | | | | | | Do so, in a backwards-compatible way, and not in a way with good UX. Change-Id: I31b53c2e63ec9c28aba45aabab70a6abed1969f3
* | Merge "Rework saharaclient authentication"Zuul2018-07-184-84/+12
|\ \
| * | Rework saharaclient authenticationJeremy Freudberg2018-07-104-84/+12
| |/ | | | | | | | | | | | | | | | | | | Just accept session objects. This will require a new major release of python-saharaclient (2.0). Change-Id: I9021a7ebeeecf94d48170e332b26ac6e80187501 Story: 1747838 Task: 6896
* | Correct a missed job_execution->jobJeremy Freudberg2018-07-131-1/+1
| | | | | | | | | | | | Followup to f52070c4a671ad6ec3585a1f224d82f971407881 Change-Id: I2861b3d8689da42be85f570ee00da7941848cfb9
* | Reflect response fixes for jobs/jobs templatesJeremy Freudberg2018-07-092-4/+4
|/ | | | | | | | In the experimental APIv2, some inconsistencies were recently fixed. Reflect that. Depends-On: https://review.openstack.org/581072 Change-Id: I408a0ab5ee1647307bb63635b2d7839c24be73d0
* Merge "Support of the improved force-delete in client"Zuul2018-06-132-2/+5
|\
| * Support of the improved force-delete in clientJeremy Freudberg2018-06-122-2/+5
| | | | | | | | Change-Id: I24552338a3b8234abb718579c7eb73409be34f02
* | Reflect change to multiple clusters creationJeremy Freudberg2018-06-121-4/+7
|/ | | | | | | APIv2 has been experimental; we've made a change to endpoint for the creation of multiple clusters. Change-Id: Idc37b263ceabc9edaf6cab5e24fa83c836edc16d
* Merge "APIv2 support in client"Zuul2018-01-2514-59/+495
|\
| * APIv2 support in clientJeremy Freudberg2018-01-2514-59/+495
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Support of all APIv2 features carried from APIv1 ("feature parity") * Minimum amount of docs to pass the gate * Endpoint manipulation and version discovery handled by keystoneauth * APIv2 feature: decommision of specific instances (doc change only) * APIv2 feature: force delete (new method) Unit tests will arrive in a future patch. bp v2-api-experimental-impl Co-Authored-By: Monty Taylor <mordred@inaugust.com> Change-Id: I32178439fe85cc6d5faf4ac2e33ae80c08619de5
* | Merge "Support of S3 binaries in OSC"Zuul2018-01-162-9/+109
|\ \ | |/ |/|
| * Support of S3 binaries in OSCJeremy Freudberg2018-01-022-9/+109
| | | | | | | | | | | | bp sahara-support-s3 Change-Id: I14fb4286bffb1361706b6e8ae62ac7dbc20ee311
* | Fix misleading docstringJeremy Freudberg2018-01-021-3/+3
|/ | | | | | | In I3683fce981a7d1812d08f3545e9a8b1d8ebb6ec1 we incorrectly indentified the necessary key `user` as `username`. Change-Id: Ib6e90a9187024d7ffd02a8f011d7ad0f759ef733
* Properly document job binary "extra"Jeremy Freudberg2017-12-221-2/+11
| | | | | | | | | | After bp sahara-support-s3 the use of the "extra" parameter is not only for binaries stored in Swift. So, modify some docstrings (which are in turn included in the actual docs) to reflect this. Change-Id: I3683fce981a7d1812d08f3545e9a8b1d8ebb6ec1
* Merge "Add export of node group templates to CLI"Zuul2017-11-061-0/+35
|\
| * Add export of node group templates to CLIIwona Kotlarska2017-11-021-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | Partially-Implements: bp portable-node-group-and-cluster-templates Depends-On: I33c3b6daa5b9e2be218a84efdb6113a4ce9a86df This change adds command 'dataprocessing node group template export' to OpenStack CLI. Change-Id: If795b21bacf497d7198c9d33f6da70873d5c8ede
* | Merge "Add export of cluster templates"Zuul2017-11-062-1/+40
|\ \
| * | Add export of cluster templatesIwona Kotlarska2017-11-022-1/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Partially-Implements: bp portable-node-group-and-cluster-templates Depends-On: Ib5a2df4013840050b8034bcefd68040f508d0b31 This change adds command 'dataprocessing cluster template export' to OpenStack CLI. Change-Id: I027169ace70929318990a4225d456bf1cf8a83b2
* | | Fix KeyError in "cluster scale" commandShu Yingya2017-09-211-2/+2
| |/ |/| | | | | | | | | | | | | | | When executing "openstack dataprocessing cluster scale" command, the method "_format_cluster_output" gets the argument which is wrapped. So the command will get the KeyError. Change-Id: I6883878ade46e2a8cec881a6a5df931922507ac6 Closes-Bug: #1718564
* | Merge "Add import of node group templates"Jenkins2017-09-011-0/+75
|\ \
| * | Add import of node group templatesIwona Kotlarska2017-08-311-0/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Partially-Implements: bp portable-node-group-and-cluster-templates This change adds command 'dataprocessing node group template import' to OpenStack CLI. Change-Id: Ic1e3a681a32171503ea7c2fc40283965a1a62a49
* | | Merge "Add export of node group templates"Jenkins2017-09-013-0/+18
|\ \ \ | |_|/ |/| |
| * | Add export of node group templatesIwona Kotlarska2017-08-143-0/+18
| |/ | | | | | | | | | | | | | | | | | | | | Partially-Implements: bp portable-node-group-and-cluster-templates Depends-On: I7a2ef7e5cff70e6034c1222252fbf7c5c35a7e1c This change adds functions to saharaclient to enable export of ngt to JSON. Change-Id: I33c3b6daa5b9e2be218a84efdb6113a4ce9a86df
* | Merge "Add import of Cluster Templates"Jenkins2017-08-311-0/+82
|\ \
| * | Add import of Cluster TemplatesIwona Kotlarska2017-08-301-0/+82
| |/ | | | | | | | | | | | | | | | | | | Partially-Implements: bp portable-node-group-and-cluster-templates This change adds command 'dataprocessing node group template import' to OpenStack CLI. Change-Id: I09866296c5b85910bf720d23d3213067f9f0a78a
* | Adding volume_mount_prefix parameterTelles Nobrega2017-08-142-5/+10
| | | | | | | | | | | | | | Adding this parameter to create and update on the CLI Change-Id: I792b4e7f0182e042086555f612d188d6dea03cf1 Closes-bug: #1630563
* | Merge "Update and optimize documentation links"Jenkins2017-08-031-1/+1
|\ \
| * | Update and optimize documentation linksHangdong Zhang2017-07-181-1/+1
| |/ | | | | | | | | | | | | | | 1. Update URLs according to document migration 2. Update the dead links 3. Optimize (e.g. http -> https) Change-Id: Ib66107d24a5171676a73cde7ead487bef259a5d5
* | Clone sahara hacking checks to saharaclientNgo Quoc Cuong2017-07-1830-29/+838
|/ | | | | | | | | | | These such rules are: - [S366, S367] Organize your imports according to the ``Import order`` - [S368] Must use a dict comprehension instead of a dict constructor with a sequence of key-value pairs. - [S373] Don't translate logs - [S375] Use jsonutils from oslo_serialization instead of json Change-Id: I909da6772f733e8282a8f304b829aab9b25d6203
* doc: enable warning-is-error and fix warningsLuigi Toscano2017-07-131-2/+4
| | | | | | | A small workaround is required for a specific parameter (see the inline comment). Change-Id: I1eac60cc8ca89a12dd568f5a12f70fdab9b76b62
* Remove log translationskavithahr2017-07-101-17/+2
| | | | | | | | Log messages are no longer being translated. This removes all use of the _LE, _LI, and _LW translation markers to simplify logging and to avoid confusion with new contributions Change-Id: I9fe2cdd1901980b06e68c34f98de56875f4cddcd
* Use 'project' instead of 'tenant'kavithahr2017-07-037-13/+14
| | | | | | | While switching to openstackclient we use project instead of tenant. Change-Id: I1d6b80a88d3067809e2a9723ece4fbdf16042d73
* Replace six.iteritems() with .items()daohanli2017-03-304-13/+9
| | | | | | | | | | | | | 1.As mentioned in [1], we should avoid using six.iteritems to achieve iterators. We can use dict.items instead, as it will return iterators in PY3 as well. And dict.items/keys will more readable. 2.In py2, the performance about list should be negligible, see the link [2]. [1] https://wiki.openstack.org/wiki/Python3 [2] http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html Change-Id: I8b181c1b049105fdd698385c4aba3546126a53dc
* Merge "Fix a bug in jobs.py"Jenkins2017-03-292-5/+53
|\
| * Fix a bug in jobs.pyjiasen.lin2017-03-222-5/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | When I used command "dataprocessing job execute", the option --input and --output must be defined otherwise I can't excute job. Because it alwalys return error_code 404. Acutually, we can use option --args to appoint input_url and output_url.So I think --input and --output should be optional. add: test_job_execute_with_input_output_option() Closes-Bug: #1670227 Change-Id: Ia2d3a19658ad78f7c07f444131dddf836bb8018e
* | Merge "Fixed log messages"Jenkins2017-03-1010-53/+53
|\ \