summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Fix lower-constraints errorsEmilien Macchi2020-09-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | This patch changes the lower-constraint requirements to make them py3.8 compatible. See https://bugs.launchpad.net/nova/+bug/1886298 Markupsafe==1.1.1 PyMySQL==0.8.0 PyYAML==3.13 cffi==1.14.0 greenlet==0.4.15 kombu==5.0.1 lxml==4.5.0 oslo.db==6.0.0 paramiko==2.7.1 psycopg2==2.8 sqlalchemy-migrate==0.13.0 tenacity==6.1.0 Also update the test-setup.sh to work with recent version of mysql. Change-Id: Ibe60d1e536f0e887eceea32b7cb4eec6318e96af Partial-Bug: #1886298
* Remove six and python 2.7 full supportHervé Beraud2020-04-231-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Six is in use to help us to keep support for python 2.7. Since the ussuri cycle we decide to remove the python 2.7 support so we can go ahead and also remove six usage from the python code. Review process and help ----------------------- Removing six introduce a lot of changes and an huge amount of modified files To simplify reviews we decided to split changes into several patches to avoid painful reviews and avoid mistakes. To review this patch you can use the six documentation [1] to obtain help and understand choices. Additional informations ----------------------- Changes related to 'six.b(data)' [2] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ six.b [2] encode the given datas in latin-1 in python3 so I did the same things in this patch. Latin-1 is equal to iso-8859-1 [3]. This encoding is the default encoding [4] of certain descriptive HTTP headers. I suggest to keep latin-1 for the moment and to move to another encoding in a follow-up patch if needed to move to most powerful encoding (utf8). HTML4 support utf8 charset and utf8 is the default charset for HTML5 [5]. Note that this commit message is autogenerated and not necesserly contains changes related to 'six.b' [1] https://six.readthedocs.io/ [2] https://six.readthedocs.io/#six.b [3] https://docs.python.org/3/library/codecs.html#standard-encodings [4] https://www.w3schools.com/charsets/ref_html_8859.asp [5] https://www.w3schools.com/html/html_charset.asp Patch 28 of a serie of 28 patches six fully removed now! Thank you six for the rendered services! Change-Id: If44ee4b565cc9390fa0422fba4dda080b4f90b98
* Dashboard: Add stable branch reviewsZane Bitter2019-12-231-0/+3
| | | | Change-Id: Ia1ade03614025c33abb1934ae78a44c4b3131800
* pep8: Permit ".)" at the end of resource docsZane Bitter2019-10-141-2/+3
| | | | | | | | | | When a sentence is wholly contained within parentheses, the period at the end should appear inside the closing parenthesis. The current pep8 check requires that e.g. resource property descriptions must end with a period, which makes things awkward when the last sentence is parenthesised. Allow them to optionally end with ".)" instead. Change-Id: I489c424136047e57e4649739fd0b0727bc3cc915
* Merge "Switch to review.opendev.org"Zuul2019-09-261-1/+1
|\
| * Switch to review.opendev.orgricolin2019-04-221-1/+1
| | | | | | | | | | | | Our gerrit system is now migrated to review.opendev.org Change-Id: Idb9a6441289343bd487c367601f566b654c79722
* | Update tools/README.rst with bindep infoElod Illes2019-06-271-8/+4
| | | | | | | | | | | | | | | | | | During local bindep.txt add [1] the old test-requires-* files were removed, but the README was not updated. [1] If9befe4115c64c2fda52321002ba5fe1124eaf7c Change-Id: I43c93df9c0f7bc4f1c7a52907d58a82bf1393512
* | Add local bindep.txtElod Illes2019-06-262-18/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | As it was announced [1] global bindep-fallback.txt was removed and now projects need to have a local bindep.txt to be able to install binary dependencies for testing. In test jobs the script tools/test-setup.sh is called which requires mysql and postgres servers and clients to be installed. [1] http://lists.openstack.org/pipermail/openstack-discuss/2019-June/007272.html Change-Id: If9befe4115c64c2fda52321002ba5fe1124eaf7c
* | Switch to use opendev.orgricolin2019-04-221-1/+1
|/ | | | | | | | | Our cgit instance will be going away and opendev.org is the new preferred URL for browsing our git repos. Redirects will exist for the foreseeable future, but it's more efficient to just go directly to the new locations. Change-Id: Ic5fa1a8436f57836ad37b752a0cca1cd4f3a21a7
* Add StoryBoard migration docs and releasenotericolin2018-07-261-5/+2
| | | | | | | | | | | | | | | Heat curent bug/bluepint reports are migrated from Launchpad to StoryBoard [1]. If you like to create a new story(a bug or a bluepint), please file it under [2]. For more detail, please reference [3]. This change applied to all heat projects. This patch Add documents and guideline link to StoryBoard. Also add releasenote to showing migration message. [1] https://storyboard.openstack.org/#!/project_group/82 [2] https://storyboard.openstack.org/#!/project/989 [3] https://etherpad.openstack.org/p/Heat-StoryBoard-Migration-Info Change-Id: I7c7dab88d269f92c66b3f68352a6913aa244fdfc
* Fix gerrit tool query statementricolin2018-05-101-1/+1
| | | | Change-Id: I7707318e445e55751c1af45d5d08d09ddcb50b66
* Docs: modernise linksZane Bitter2018-04-111-1/+1
| | | | | | | | | | Switch to https, replace outdated URLs with canonical ones. Change-Id: I7c474dbf0b21f922b6625e31d6ae7df1e198b8de Co-Authored-By: chenghuiyu <yuchenghui@unionpay.com> Co-Authored-By: Max Pavlukhin <pavlukhinm@gmail.com> Co-Authored-By: yfzhao <dsware@126.com> Co-Authored-By: ricolin <rico.lin@easystack.cn>
* Dashboard creator: fix bugs queryZane Bitter2018-03-261-1/+1
| | | | | | | Gerrit used to allow regexps in topic: queries, but now topic: is only for exact matches. intopic: can be used to search within topics. Change-Id: Icc5c80ead124b4383198915984543a7987b1bf2e
* Merge "Add Heat review dashboard config files"Zuul2018-02-112-0/+48
|\
| * Add Heat review dashboard config filesricolin2018-02-072-0/+48
| | | | | | | | | | | | Add main review dashboard config file, and doc for how to generate it. Change-Id: I47860f9840dfa84041709e38ac361f8756171eb7
* | Use correct raw string formatZane Bitter2017-11-161-9/+9
|/ | | | | | | | You're not supposed to just randomly put backslashes in front of other characters that don't need escaping unless it's a raw string. This is deprecated in Python 3.6. Change-Id: I7a69ba6dd10412bb065f2b6ba405840d0a98663a
* Remove subunit-trace forkIhar Hrachyshka2017-04-062-313/+0
| | | | | | | | | This makes tox use the latest version of the tool from os-testr repo, which contains some valuable changes, like the one making the gate fail if for some reason no tests are executed because all of them are skipped. Change-Id: If88be4b310d746ccc885e3d0c1db8a4dfabb2a28
* Merge "Check all resources with custom guidelines"Jenkins2017-04-031-15/+34
|\
| * Check all resources with custom guidelinesPeter Razumovsky2017-03-221-15/+34
| | | | | | | | | | | | | | | | | | | | | | If resource has available_resource_mapping method and it's not available, custom guidelines check will skip it, which is incorrect. This patch improves list of resources: now only hidden, contrib and manually excluded resources don't checked. Change-Id: Ic2cb37fb3fe4aefb8b3efb911aecf46155541469 Closes-bug: #1674949
* | Remove log translationsliyi2017-03-251-3/+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. See: http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html Change-Id: Ieec8028305099422e1b0f8fc84bc90c9ca6c694f
* Prepare for using standard python testsAndreas Jaeger2017-02-041-0/+57
| | | | | | | | | | | | | | | | | | Add simple script to setup mysql and postgresql databases, this script can be run by users during testing and will be run by CI systems for specific setup before running unit tests. This is exactly what is currently done by OpenStack CI in project-config. This allows to change in project-config the python-db jobs to python-jobs since python-jobs will call this script initially. See also http://lists.openstack.org/pipermail/openstack-dev/2016-November/107784.html Update HACKING for this. Needed-By: I98c1b799e520cad102b9e47cf51477f54b07e732 Change-Id: Id5e3b67190866acdebee2b89f4393d5c407a5b96
* Fix typoHa Van Tu2016-11-281-1/+1
| | | | | | This patch fixes typo "proccesed" in the code. Change-Id: I79169c7742d50bb9504aba39879eae17879a4663
* Don't raise error in custom guidelines on IOErrorPeter Razumovsky2016-08-241-2/+10
| | | | | | | | | | | In some merge issues files or modules can be removed, but still registered in global env. In that cases custom guidelines raises an error with the message "No such file or directory". Add exception handling to avoid error raising. Instead of error, call warning and skip such class. Change-Id: I71af2fffc2bdec414cb68c40eaf3268fe81134de Closes-bug: #1613669
* Refactor confusing code in custom_guidelines.pyZane Bitter2016-05-091-5/+5
| | | | Change-Id: Iae7efbb8fe4157301deebd0776139489832f470f
* Exclude plugins from custom_guidelines.pySteve Baker2016-05-091-0/+3
| | | | | | | This is broken by our plugin package magic, so lets exclude the plugin package from this tool. Change-Id: I2da474b706cdb33e98675edabb0f607106c816d0
* Ignore template res types during guideline checksSergey Kraynev2016-03-021-0/+3
| | | | | | | | | | | | | | | | | | | | | Global environment during registering resources also load resources from /etc/environment.d . As result it loads two resources mapped on templates: - 'AWS::CloudWatch::Alarm' - 'AWS::RDS::DBInstance' However execute guideline checks for these resources is not possible due to these resources use template_resource object and can not be processed as usual *.py file. This patch add ignoring for these two resource types. Note: this error is not displayed on pep8 gate job due to we don't install devstack during execution this job, but this error affects all environments with installed devstack. Closes-Bug: #1552194 Change-Id: I29abdfa1a4f4a17dfbcdaaf6f0c6665359bab17a
* Fix all trailing spaces for custom guidelinesPeter Razumovsky2016-02-261-1/+1
| | | | | | | | | | There are several trailing spaces error raised by custom guidelines check. Need to fix them for successful pep8 running. implements bp custom-guidelines Change-Id: Ibf50208155315e75795d7b9c8a8dbe487f9046ac
* Fix all method errors for custom guidelinesPeter Razumovsky2016-02-261-1/+1
| | | | | | | | | | There are several method error raised during custom guidelines check. Need to fix it for successful running pep8. implements bp custom-guidelines Change-Id: I55883bb8d314f982161aaa21c010e9d1467bf903
* Fix resources descriptions for custom guidelinesPeter Razumovsky2016-02-261-1/+1
| | | | | | | | | There're several errors, raised by custom guidelines check, need to fix it for successful pep8 running. implements bp custom-guidelines Change-Id: Ibef41cad9b20715a740cedac7b98e9647bd3d6b7
* Fix all attributes error for custom guidelinesPeter Razumovsky2016-02-261-2/+2
| | | | | | | | | | There are several errors during attributes descriptions checking by custom guidelines. Need to fix them for successful pep8 running. implements bp custom-guidelines Change-Id: I3df75c6343217723fd4490f9e70eb2d8499eb5ae
* Fix all properties errors for custom guidelinesPeter Razumovsky2016-02-261-6/+3
| | | | | | | | | | There are several errors, raised during properties schemas checking by custom guidelines. Need to fix them for successful pep8 running. implements bp custom-guidelines Change-Id: Icd24498b8d36106412a61d4b82b00eb92095ffe9
* Implement custom guidelinesPeter Razumovsky2016-02-191-0/+274
| | | | | | | | | | | | | | | | | Implement custom guidelines for next cases: * resources descriptions * properties schemas descriptions * attributes schemas descriptions * methods descriptions * trailing spaces in attributes and properties descriptions Also, enable custom guidelines check in pep8 checking. implements bp custom-guidelines Change-Id: Ic7b1061abfb42880c476602edb45bc40da291eb0
* py34: cleanupSirushti Murugesan2015-10-081-4/+0
| | | | | | | | | | * Tests were skipped due to a mox3 bug. The bug has now been fixed and there's a new release of mox3. Unskip it. * Remove the tool run-py3-tests.sh which isn't needed anymore. blueprint heat-python34-support Change-Id: I304d87e4313148c10a2465bf92ae932f525bb4ce
* Add a way to run py34 tests from fileSirushti Murugesan2015-07-091-0/+4
| | | | | | | | | | Also, fix minor flake8 issue related to Long literal. This should now have the python34 gate job passing. partial blueprint heat-python34-support Change-Id: I7f85e7251fc96587df0b43daac202c38542a6f6c
* changed heat dev docs to comply with conventionsShilla Saebi2015-04-241-2/+2
| | | | | | | | | | | With the incorporation of many projects within OpenStack, it's very important to use standards in the documentation This is important for formalization as well as consistency the proper usage is: heat or Orchestration or Orchestration module heat should not be capitalized https://wiki.openstack.org/wiki/Documentation/Conventions Change-Id: Ia8d7f1429f877e4c88fc9b210948b63443376ba0
* Add lists of Linux dependenciesPavlo Shchelokovskyy2015-01-234-23/+45
| | | | | | | | | | As a help for new developers add lists of RPM/DEB packages to install on a clean new system in order to successfully run Heat's unit test suit locally. Also, update tools/README Change-Id: Ibed2b7b9d9eef34d88ce667c82020a1980d98646
* Use oslo.config generatorThomas Herve2015-01-022-141/+0
| | | | | | | | | | | | | Replace usage of old incubator configuration generator by the oslo.config tool. tools/config/generate_sample.sh has been replaced by tox -egenconfig. heat_integrationtests/generate_sample.sh has been replaced by oslo-config-generator --config-file=heat_integrationtests/config-generator.conf Change-Id: I6d95df203b556c8ec2088d40a446427f7087b9a7
* Bring over pretty_tox.sh from novaTetiana Lashchova2014-12-252-0/+313
| | | | | | | - added full log for integration tests by default - added env 'py27log' which allows to get log for unit-tests Change-Id: I43ca330c82ffe100247102021fce1f00acb4d11a
* Remove run_tests.shPavlo Shchelokovskyy2014-12-103-249/+0
| | | | | | | | | | This tool is deprecated in favor of tox for a long time already. Moreover, currently it is broken as it tries to run our in-tree integration tests as well. So instead of fixing it, just finally remove it. Change-Id: Icb3c4d423031456b8b24a84e97e310df077d9990
* Remove config check_uptodate testSteven Hardy2014-12-031-29/+0
| | | | | | | | Our gate is currently broken due to an oslo library release, so remove this check while we move to removing the sample config (which requires changes to devstack to use tox -egenconfig) Change-Id: Id4a37e9a5be156fea05c96e385c23da016ea9e69
* Remove oslo sslutilsSteven Hardy2014-10-271-1/+1
| | | | | | | | This module isn't referenced in openstack-common.conf and is unused so remove it Change-Id: I602f40c511095818a8aee5f342029993bd470de4 Partial-Bug: #1380629
* Update references to auth_token middlewareBrant Knudson2014-10-091-1/+1
| | | | | | | | | | | | | There's references to the auth_token middleware in keystoncelient. The auth_token middleware has been moved to keystonemiddleware and the version in keystoneclient shouldn't be used anymore. If these references aren't updated, then when options are changed in keystonemiddleware.auth_token the heat-api will fail to start because there's duplicate options in keystoneclient.middleware.auth_token. Change-Id: I04573aa5ff967afe3e00329f797fcc71b779e7b3 Closes-Bug: #1379082
* warn against sorting requirementsAndreas Jaeger2014-09-031-32/+0
| | | | | | | And do not check for sorted files. Change-Id: I64ae9191863564e278a35d42ec9cd743a233028e Closes-Bug: 1365061
* Merge "Remove rst2script.sed and integration.sh"Jenkins2014-07-283-143/+0
|\
| * Remove rst2script.sed and integration.shRyan Brown2014-07-253-143/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rst2script.sed was referenced in the Fedora getting started documentation, but the recommended way to use Heat/Openstack on Fedora is now to use RDO/packstack. Also removes the reference to rst2script.sed in the getting_started/on_fedora documentation. Also removes obsolete integration.sh script. Partial-Bug: 1338066 Change-Id: I7f2b0d84ccef324ccb8e32ca4c6d90f9a3f2dda3
* | Remove deprecated tools/README instructionsRyan Brown2014-07-241-22/+1
|/ | | | | | | | | | | | | | Remove instructions for: experimental_ssh_eventlet.py: deleted May 25, 2014 commit 318669f openstack: deleted Sep 30, 2013 commit f4a9c0f heat-keystone-setup: was never in the tools directory, but has documentation in the man pages Change-Id: I8ae3050e16163699849342e81d302942e763ac0c Partial-Bug: 1338066
* Merge "Remove tools/glance-jeos-add-from-github.sh"Jenkins2014-07-242-24/+0
|\
| * Remove tools/glance-jeos-add-from-github.shRyan Brown2014-07-182-24/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | glance-jeos-add-from-github.sh has not been edited since 2012-08-20, and its image links have been broken (according to Google cache) for a minimum of 9 months. The functionality of the script seems to be superceded by the handy-dandy diskimage-builder tool. See http://docs.openstack.org/developer/heat/getting_started/jeos_building.html for more info about diskimage-builder workflow. Change-Id: I99880f1cca4af84fa7193d749a7c8f6957bb0b78 Partial-Bug: 1338066
* | Merge "Migrate to oslo.db"Jenkins2014-07-241-1/+1
|\ \
| * | Migrate to oslo.dbThomas Herve2014-07-151-1/+1
| |/ | | | | | | | | | | Move from oslo-incubator db module to oslo.db Change-Id: I485375e3defc807e1fc272803a064b2c52e8ac13