summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Add OpenStack doc support for heat cfntoolsricolin2017-07-2121-1399/+115
| | | | | | This allow build docs with new OpenStack doc format. Change-Id: I4ed880ee5c03de40793ebdb4662cbaf3eeca12fa
* Remove white space between print ()Anh Tran2017-01-171-1/+1
| | | | Change-Id: I8b95436dfcf3bfd65fa95557e34268c0e5072812
* Show team and repo badges on READMEFlavio Percoco2016-11-251-0/+9
| | | | | | | | | | | | | | | | This patch adds the team's and repository's badges to the README file. The motivation behind this is to communicate the project status and features at first glance. For more information about this effort, please read this email thread: http://lists.openstack.org/pipermail/openstack-dev/2016-October/105562.html To see an example of how this would look like check: https://gist.github.com/d71e2eaf72170035e6d10135f9c04a02 Change-Id: Icb4f114e9408cd84e885aa51c3f1a9bfb54d7c52
* Merge "Replace 'MagicMock' with 'Mock'"Jenkins2016-09-231-2/+2
|\
| * Replace 'MagicMock' with 'Mock'shizhihui2016-09-231-2/+2
| | | | | | | | | | Change-Id: I24e87a1c341f63929f93d7306782e3e9d6b398fb Partial-Bug: #1475722
* | Drop unused directory in toxshizhihui2016-08-171-1/+1
|/ | | | | | | | | The Oslo team has moved all previously incubated code from the 'openstack/oslo-incubator' repository into separate library repositories and released those libraries to the Python Package, so the directory should be removed. Change-Id: I0ee30c36e87970bc1b1175230a1bffa27e0b3e09
* Fix typoPablo Iranzo Gómez2016-06-291-12/+12
| | | | Change-Id: I15deb824a85aa561c2f2e7f4ea6b4b1ce96367f9
* Replace deprecated LOG.warn with LOG.warningSwapnil Kulkarni (coolsvap)2016-03-112-20/+24
| | | | | | | | LOG.warn is deprecated. It still used in a few places. Updated to non-deprecated LOG.warning. Change-Id: I6e8df0e072448fbd4077c4e5d98b2986e9855489 Closes-Bug:#1508442
* Changed logger init and added verbose arg handlingtwm20162016-03-011-2/+6
| | | | | | | | | | Initialized logger with default value of NOTSET. Added if statement to handle verbose argument and set the logger to DEBUG. Change-Id: I997b8b964dade013db265d088d00ccfdd6ab030e Closes-Bug: #1269465
* Merge "Trivial: Remove vim header from source files"1.4.2Jenkins2016-01-211-1/+0
|\
| * Trivial: Remove vim header from source filesYun Bo Xu2016-01-121-1/+0
| | | | | | | | Change-Id: If918eaeb47b0d35bda198119cbc0fc3f015d6a1e
* | Merge "remove python 2.6 trove classifier"Jenkins2016-01-211-1/+0
|\ \
| * | remove python 2.6 trove classifierDoug Hellmann2015-12-231-1/+0
| |/ | | | | | | | | | | | | OpenStack projects are no longer being tested under Python 2.6, so remove the trove classifier implying that this project supports 2.6. Change-Id: I1f8cc2d5d25a2e00b7ad4d12b013b69695536ab8
* | Merge "Deprecated tox -downloadcache option removed"Jenkins2016-01-211-3/+0
|\ \
| * | Deprecated tox -downloadcache option removedOndřej Nový2015-12-111-3/+0
| |/ | | | | | | | | | | | | | | | | | | Caching is enabled by default from pip version 6.0 More info: https://testrun.org/tox/latest/config.html#confval-downloadcache=path https://pip.pypa.io/en/stable/reference/pip_install/#caching Change-Id: I0a6561c0d667b1310cd544f1b1ec4c019ba16197
* | Remove argparse from requirementsAndreas Jaeger2016-01-201-1/+0
| | | | | | | | | | | | | | | | | | | | argparse was external in python 2.6 but not anymore, remove it from requirements. This should help with pip 8.0 that gets confused in this situation. Installation of the external argparse is not needed. Change-Id: Ib7e74912b36c1b5ccb514e31fac35efeff57378d
* | Merge "Replace assertEqual(None, *) with assertIsNone in tests"Jenkins2016-01-151-4/+3
|\ \
| * | Replace assertEqual(None, *) with assertIsNone in testsShuquan Huang2015-12-171-4/+3
| |/ | | | | | | | | | | | | | | Replace assertEqual(None, *) with assertIsNone in tests to have more clear messages in case of failure. Change-Id: Ic2dca04e7cdd4f837c42b39dd1ce37604c8f101b Closes-bug: #1280522
* | py26/py33 is no longer supported by Infra's CIreedip2016-01-061-1/+1
| | | | | | | | | | | | | | | | Python 2.6/3.3 support would be dropped by Infra team from mitaka, CI would no longer be testing it, so projects should drop it too. Change-Id: I13250170bd04d07b97990ed52a8c7a0c0f7e76c6 Closes-Bug: #1526170
* | Put py34 first in the env order of toxJanonymous2015-12-221-1/+1
|/ | | | | | | | | | To solve the problem of "db type could not be determined" on py34 we have to run first the py34 env to, then, run py27. This patch puts py34 first on the tox.ini list of envs to avoid this problem to happen. Change-Id: Id0d2de40081a59d5819d2e6c52c98135f26808b5 Closes-bug: #1489059
* Don't run commands given as list on shellAnant Patil2015-09-232-5/+26
| | | | | | | | | | | | Commands from AWS::CloudFormation::Init, when supplied as list, should be run with shell=False. Only when commands are given as string, they are meant to be run on shell. In principle, we are trying to give least access to the shell to avoid any inadvertent shell injections. Change-Id: I3dc6fe0c29a14f75be044846f737e1ade23a6d6b Closes-Bug: 1498300
* Merge "Activate pep8 check that _ is imported"1.4.1Jenkins2015-09-231-1/+0
|\
| * Activate pep8 check that _ is importedTHOMAS J. COCOZZELLO2015-09-031-1/+0
| | | | | | | | | | | | | | | | | | | | Remove the specification in tox.ini that _ is a builtin so that it will no longer assume that _ does not need to be imported. This helps ensure that the _ from i18n is used. Activating this check did not flag any violations. Change-Id: Ibb457fc16b64ead1acbf359531ecd79e624df8ab
* | Convert all internal commands to listAnant Patil2015-09-223-191/+222
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make all internal commands as list to avoid any possibility of command line injection. Commands supplied as string are susceptible to substitution. All the internal commands are supplied as list to CommandRunner. As a convention, all the commands must be given as list to subprocess except the commands read from file, like in case of cfn hooks and commands section in metadata. Few internal commands require shell redirects and they will be implemented in another patch. Change-Id: Ifabaf44e341144bc85508dc05c76b1d83e41ae44 Partial-Bug: #1312246
* | Use seteuid instead of su to control privilegesAnant Patil2015-09-222-40/+148
| | | | | | | | | | | | | | | | | | | | | | Control the privileges by setting the effective UID before running the command. Earlier we used to run command using su -c "USER". Original EUID is restored after running the command. This is required to run multiple commands in succession with different run-as users. Change-Id: I414fc6a802f11deb320b43c6d011f802a42c40c9 Partial-Bug: #1312246
* | Revert "Fix cfntools command injection"Zane Bitter2015-09-032-65/+10
|/ | | | | | | | | | This reverts commit e424af2236ed1d6e6d0e11768f873ffe4e696221. Splitting command strings that were previously assumed to be interpreted by the shell at whitespace and then passing them as separate args to execvp will not work. Change-Id: I7c37b5852ce9b20e63bdbbaddfb852463548aa90
* Fix cfntools command injection1.4.0Anant Patil2015-08-312-10/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | The CommandRunner used to run commands using su command and passing the actual command to be run as argument to it. su USER -c <cmd> This is susceptible to command line injection as noted in the bug. The fix required to do two things: 1. Pass the command to be run as list instead of a string. This is to ensure that the actual arguments are passed as arguments to the program ought to be executed. And by doing so, avoids running any commands passed in the argument. On the contrary, if the command were passed as a string to the shell, the arguments could be formed in a way to execute malicious commands. 2. The CommandRunner runs the command directly and uses setuid to lower the privileges if needed. If the 'runas' user is other than root, then its UID is obtained and setuid is invoked to set the real user-id and effective user-id to the given user. Change-Id: I654117e994fd38411508dbe9b85d06c28dc0e411 Closes-Bug: #1312246
* Fix unit testsAnant Patil2015-08-141-12/+24
| | | | | | | Fix failing tests. Co-Authored-By: Sirushti Murugesan <sirushti.murugesan@hp.com> Change-Id: If44ea49e5d6262f6e6b51dfdfb76754fb7c467d5
* Merge "Fix typos in cfn scripts"Jenkins2015-06-093-7/+7
|\
| * Fix typos in cfn scriptstyagi2015-06-043-7/+7
| | | | | | | | Change-Id: Ie411a1d5229a89b545d949b79552c3f6d240783d
* | Add --insecure/-k option to cfn-signaltyagi2015-06-041-2/+9
|/ | | | | | | | | cfn-signal will not work when heat-cfn-api server is configured for the https. This patch will provide a option to make a insecure request to the cfn server. Change-Id: I9dcd53b40a389811e292c331ff625a8b5af827b7 Closes-Bug: 1460007
* README changes to make release_notes.py happy1.3.0Steve Baker2015-05-121-0/+4
| | | | Change-Id: I53ac1abcbcc48c82627125e6740f1d0940490e1d
* Ported tests from mox3 to mock to support Python >= 3.3Miro Hrončok2015-02-223-535/+440
| | | | | Change-Id: I55579328adc7003f78e78161aa6e047524a5c805 Related-Bug: 1403214
* Python 3 compatibilityMiro Hrončok2015-02-214-32/+44
| | | | | | | | | | | | | | | | * ConfigParser import from six * Drop iteritems() * To support both Python 2 and 3 * Encode string before writing it to file * To support both Python 2 and 3 * Use six.string_types * To support both Python 2 and 3 * Use key on Python 3 * Because cmp is no longer working * Add py33 and py34 to tox.ini Change-Id: I23985be55302cd4ef577919efb51975ecbd9563d Related-Bug: 1347899
* Support dnf when specified or yum is missingRyan S. Brown2015-01-152-5/+164
| | | | | | | | | | | * handle install/upgrade, version checks, and downgrades * Allow users to specify packages to be installed with dnf * Use dnf if yum isn't available, letting older cloud-configs work on future Fedoras Change-Id: Ib3ff49cfdd3e545aa199c944c110852700625496
* Fix RST syntax errors/warnings in README.rstRyan S. Brown2014-12-151-3/+7
| | | | | | | | | | | The errors were causing the list in the README to show up unformatted on github. README.rst:8: (ERROR/3) Unexpected indentation. README.rst:9: (WARNING/2) Block quote ends without a blank line; README.rst:17: (WARNING/2) Definition list ends without a blank line; Change-Id: Ifdae966f44f582676b428d49497bb0212fad3e03
* Fixes cfn-hup hooks functionalityBruno Bompastor2014-12-111-1/+0
| | | | | Change-Id: I39ba2cca1f096e866f69fc016f78004ea991c0b6 Closes-Bug: 1387190
* Workflow documentation is now in infra-manualJeremy Stanley2014-12-051-4/+3
| | | | | | | Replace URLs for workflow documentation to appropriate parts of the OpenStack Project Infrastructure Manual. Change-Id: I58802c6d625aabcb62c5a51aef06f838d8a57bab
* Change wget to curl for using both of them is redundant1.2.8Yukinori Sagara2014-08-242-19/+19
| | | | | | | | heat-cfntools depends on wget and curl. It's redundant. Since the curl is widely used, replace wget command to curl. Change-Id: I691bdc046bd72a44c11f25e359c5036ae1a9e86b Closes-Bug: 1359430
* Fix cfn_helper test for random hash seedYukinori Sagara2014-08-231-42/+48
| | | | | | | | test_cfn_helper.py has a part of code which enforces the order of packages or services processes. But the order is non-deterministic. Change-Id: I37c4abe697fb3391793ce74fc730b127e920710a Closes-Bug: #1360212
* Update for psutil versionfrazy2014-06-281-1/+1
| | | | | | | Matches Global Requirements.In the heat-cfntools project psutil version does not match the global requirements. Change-Id: I77e2435361a29facb4519e92abae725326743ffb
* Merge "Add support for package install via zypper"Jenkins2014-06-182-3/+103
|\
| * Add support for package install via zypperDirk Mueller2014-05-082-3/+103
| | | | | | | | | | | | | | SUSE uses "zypper" for managing packages. Change-Id: Iac8399e7a4e85e33cad1085f11a08fdb538a96e6 blueprint: heat-cfntools-zypper
* | Merge "Add res_last_path to store last metadata of a resource"Jenkins2014-06-181-13/+23
|\ \
| * | Add res_last_path to store last metadata of a resourceEthan Lynn2014-05-311-13/+23
| |/ | | | | | | | | | | | | | | | | | | | | Add res_last_path='/var/cache/heat-cfntools/last_metadata_<resource>' in Metadata.retrieve() function to store metadata of a resource. Remove md5 check between current metadata and last metadata, json.load() will organize json structure. Change-Id: Ie0c31a748f0add3fcab6a579431a28b60051f601 Closes-Bug: #1205375 Partial-Bug: #1133049
* | Update sysvinit function to support ubuntuEthan Lynn2014-05-292-50/+221
|/ | | | | | | | | | | | In ubuntu system, we can't find 'chkconfig' command, it use "update-rc.d" or "sysv-rc-conf" for instead. _handle_sysv_command function will pick up the right command to enable service for ubuntu or fedora or redhat, and also map systemd to _handle_sysv_command and remove _handle_systemd_command. Change-Id: I5b7ceb7541e989f6b11fc1a5acf94275c1d2e75b Closes-Bug: #1318481
* Manually sync requirements1.2.7Steve Baker2014-04-153-5/+5
| | | | Change-Id: Ic5a93d7f8e9a930b52cb99cf1a20a14175fdb770
* Merge "Switch over to mox3"Jenkins2014-04-073-3/+3
|\
| * Switch over to mox3Dirk Mueller2014-03-233-3/+3
| | | | | | | | | | | | | | mox3 is the Python 3.x compatible replacement of mox. Change-Id: If107d0ebde50d3461505c5f722d53557993f1e7e
* | Merge "Support building wheels (PEP-427)"Jenkins2014-04-071-0/+3
|\ \ | |/ |/|