summaryrefslogtreecommitdiff
path: root/ironic_python_agent/api
Commit message (Collapse)AuthorAgeFilesLines
* Make WSGI server respect listen_* directivesbugfix/6.2-eolbugfix/6.2Jay Faulkner2020-09-021-7/+6
| | | | | | | | | | | | The listen_port and listen_host directives are intended to allow deployers of IPA to change the port and host IPA listens on. These configs have not been obeyed since the migration to the oslo.service wsgi server. Story: 2008016 Task: 40668 Change-Id: I76235a6e6ffdf80a0f5476f577b055223cdf1585 (cherry picked from commit 7d0ad36ebd350a7162bc3c33bbefd26b9e962a78)
* Agent token supportJulia Kreger2020-03-121-2/+4
| | | | | | | | | | | | Adds support to the agent to receive, store, and return that token to ironic's API, when supported. This feature allows ironic and ultimately the agent to authenticate interactions, when supported, to prevent malicious abuse of the API endpoint. Sem-Ver: feature Change-Id: I6db9117a38be946b785e6f5e75ada1bfdff560ba
* Stop the API so rescue can exit and succeedJulia Kreger2019-12-071-1/+2
| | | | | | | | | | | | | | | | | | | | The change in frameworks with the API changed the overall execution behavior from single threaded serialized execution threaded to multithreaded through eventlet. But we signaled ourselves to wait for the API to stop, but never actually stopped the API. As setting the flag to stop the API is a hard notification that the API must now exit, there is no reason to wait and block exit, hence the simple nature of this change. Now the threads should exit, IPA should exit, and rescue should ideally work. Change-Id: I3faf2d169d4edac6a2321f8649bb9ce478885ea1 Story: 2006998 Task: 37768
* Replace WSME and Pecan with WerkzeugDmitry Tantsur2019-12-049-593/+190
| | | | | | | | | WSME is no longer maintained and Pecan is an overkill for our (purely internal) API. This change rewrites the API in Werkzeug (the library underneath Flask). I don't use Flask here since it's also an overkill for API with 4 meaningful endpoints. Change-Id: Ifed45f70869adf00e795202a53a2a53c9c57ef30
* Stop using six libraryRiccardo Pittau2019-11-291-2/+1
| | | | | | | | | | Since we've dropped support for Python 2.7, it's time to look at the bright future that Python 3.x will bring and stop forcing compatibility with older versions. This patch removes the six library from requirements, not looking back. Change-Id: I4795417aa649be75ba7162a8cf30eacbb88c7b5e
* Replacing the HTTP protocal with HTTPSzhangshj2018-12-251-1/+1
| | | | Change-Id: I9791b6781158c0ddebda636daeea39665b483dd6
* Fix gate and bump CoreOS version to latest stable.Julia Kreger2018-05-102-1/+3
| | | | | | | | | | | | | | | | | | | | | | Increases the amount of ram for CoreOS IPA to 2GB as the base CoreOS image is now 310MB. Bumped CPU count for CoreOS runs to 2 CPUs as the concurrency helps boot times for the CoreOS ramdisk. Adds netbase, udev, and open-iscsi to debian jessie container as they are no longer present in the default container. Explicitly set path variable for execution in the debian container as udevadm is in /sbin, and we may not have /sbin on the path that is passed through to the chroot. Also fixed new pep8 test failures. Story: #1600228 Task: #16287 Change-Id: I488445dfd261b7bca322a0be7b4d8ca6105750a3
* Remove /ironic-python-agent/api/app.wsgiVu Cong Tuan2017-12-141-0/+0
| | | | | | | /ironic-python-agent/api/app.wsgi is an empty file. As suggestion from John L. Villalovos, we probably should delete it. Change-Id: I695aca42b76dfad1b74418c05a48c5cba3b7d71e
* Update version of flake8-import-order packageJohn L. Villalovos2017-12-081-1/+0
| | | | | | | | | Use latest version of flake8-import-order package, like we do in openstack/ironic Fix two issues detected by new version. Change-Id: Idb8f0fd79c3d6b34611288f77948d042cd837806
* Agent: Listen for connections on both IPv4 and IPv6 portsDerek Higgins2017-01-191-1/+3
| | | | | | | Allow connections if deploying over a IPv6 network. Change-Id: Ied2f6be4aa4d1a70524df1df3506e596f6926e5b Closes-Bug: #1650539
* Add metrics support to IPAJosh Gachnang2016-08-033-24/+31
| | | | | | | | | | | | | This utilizes the new metrics support in ironic-lib to allow the agent to report timing metrics for agent API methods as configured in ironic-lib. Additionally, this adds developer docs on how to use metrics in IPA, including some caveats specific to ironic-lib.metrics use in IPA. Co-Authored-By: Jay Faulkner <jay@jvf.cc> Co-Authored-By: Alex Weeks <alex.weeks@gmail.com> Change-Id: Ic08d4ff78b6fb614b474b956a32eac352a14262a Partial-bug: #1526219
* TinyIPA: Precompile python code for faster loadSam Betts2016-05-111-0/+1
| | | | | | | | This patch adds code into the tinyipa build process and IPA itself to allow the required python code to be PYTHONOPTIMIZE precompiled into pyo files, this speeds up IPA startup time in a nested virt by 50%. Change-Id: Ib60c420719ea52a602c1752b572d3b217c2cefc7
* Fixes incorrect description URLMario Villaplana2015-09-151-3/+3
| | | | | | | | A GET to /v1 in the API returns a link to a URL for a repository that is no longer maintained. This commit changes the link to point to the correct documentation. Change-Id: I8779cd1840627ff8759527b7514306293682aaae
* Improve IPA logging and exception handlingJosh Gachnang2015-07-281-4/+4
| | | | | | | | | Debugging the agent is a huge pain point. Tracebacks are rarely logged, error messages are often only returned via the API, and lack of info logging makes it hard to determine where some failures occur. Some errors only return a 500 with no error message or logs. Change-Id: I0a127de6e4abf62e20d5c5ad583ba46738604d2d
* Fix Sphinx Autodoc WARNING/ERROR in docs buildJay Faulkner2015-03-311-10/+10
| | | | | | | | | | The docstrings here were all giving WARNINGs or ERRORs during the docs build, and were generally making unappealing looking developer documentation. I corrected the syntax and did what was neccessary to make the build come out clean. Change-Id: I74b00a7f125770b0468cff3bdf26d0d52cd054d7 (cherry picked from commit c0921cdff372ce1fd6df1c4ab4eb5463e2cba0e4)
* Add docstrings for api/ treeJim Rollenhagen2014-09-223-3/+59
| | | | | | | | Does what it says. Partial-Bug 1367915 Change-Id: Id1a718d652f6d98e6acb1d667f42d9c3cc82aef5
* Fix wait argument on POSTChris Behrens2014-04-211-3/+3
| | | | | | Its type was not declared. Adds tests for this. Change-Id: Iba05ce38f7548cc8400ac78493ef16b5e69905bb
* Use # instead of """ for copyright blocksJim Rollenhagen2014-04-104-60/+26
| | | | | | | Reformats copyright messages to be comments rather than docstring-style blocks. Change-Id: I4d863f53b67bb49d03bda0952b9e6179b6d23c59
* Get rid of modes. Introduce pluggable extensionsAlexander Gordeev2014-03-271-2/+1
| | | | | | | Allow multiple extensions to be loaded by switching to ExtensionManager from stevedore. Remove any reference to modes. Change-Id: Ic160478625226b4dd17bd68b3d37f3b05823e519
* Replacing teeth/overlord with ipa/ironicJosh Gachnang2014-03-197-13/+13
|
* Renaming to IPAJosh Gachnang2014-03-1911-0/+595