summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * Support building wheels (PEP-427)Sascha Peilicke2014-02-071-0/+3
| | | | | | | | | | | | | | | | Universal is used to identify pure-Python module(by bdist_wheel). For these, it is sufficient to build a wheel with _any_ Python ABI version and publish that to PyPI (by whatever means). Change-Id: I3aed7c0b74dd64264a92f577985f8d51ebe5f96d
* | Merge "Remove tox locale overrides"Jenkins2014-03-181-3/+0
|\ \
| * | Remove tox locale overridesJeremy Stanley2014-02-101-3/+0
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tox.ini: The LANG, LANGUAGE and LC_ALL environment overrides were introduced originally during the testr migration in an attempt to be conservative about the possibility that locale settings in the calling environment could cause consistency problems for test runs. In actuality, this should be unnecessary and any place where it does cause issues ought to be considered an actual bug. Also, having these in the configuration actively causes older pip to have problems with non-ASCII content in some package metadata files under Python 3, so drop it now. Change-Id: I67479804e02fea28a28a446660c32a412b3ba7c4 Closes-Bug: #1277495
* | Merge "Support of ignoreErrors for commands"Jenkins2014-03-052-19/+62
|\ \
| * | Support of ignoreErrors for commandsSimon Pasquier2014-02-242-19/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cfn-init will now fail immediately if a command with the key ignoreErrors='false' or without that key fails (eg it returns an exit code other than 0). This is similar to what the AWS cfn-init script is doing. Change-Id: I41bfa36154fa8b16541a6abb489495739b772376 Closes-Bug: #1269476
* | | cfn-signal provides a unique default idSimon Pasquier2014-02-183-2/+42
|/ / | | | | | | | | | | | | | | | | | | Unless the parameter is provided, cfn-signal will use the instance UUID from the Nova metadata as the id sent back to the WaitCondition. In case the Nova metadata isn't available, it will use the hostname as a fallback. Change-Id: I1e5847c7babd7c6295d8c3e21f6cfa110a9b3026 Closes-bug: 1223429
* | Merge "Log stdout and stderr on non-zero exit status"Jenkins2014-02-181-2/+4
|\ \
| * | Log stdout and stderr on non-zero exit statusSimon Pasquier2014-02-131-2/+4
| |/ | | | | | | | | | | | | This helps troubleshooting failures when running cfn-init. Change-Id: I601506ab05d372307bb160b198a675f048e2e9ff Closes-Bug: #1269470
* | Log curl stderr on non-zero exit statusSteve Baker2014-01-271-0/+2
|/ | | | | | | This helps with debugging signal connectivity issues Change-Id: I686f832cea0a4b397499824936df18444c7c472c Closes-Bug: #1273010
* Merge "Fix logging in cfn-init and cfn-signal"Jenkins2014-01-183-19/+12
|\
| * Fix logging in cfn-init and cfn-signalSimon Pasquier2014-01-153-19/+12
| | | | | | | | | | | | | | | | logging.getLogger() was called with a wrong name in the cfn scripts. As a result, the cfn_helper module logged everything to stderr. Change-Id: I3447291b202887aa09b0f0cb01764708683e7821 Closes-Bug: #1269355
* | Sync with global requirementsSascha Peilicke2014-01-173-11/+8
|/ | | | | | | | And fix pep8 issues discovered by hacking update. Remove dependencies on pep8, pyflakes and flake8. They should be determined by the hacking dependency implicitely. Change-Id: I3fefdabcfdc09c28756f5ab0f5a99d12de2d8a3a
* Config files should be non-executableSascha Peilicke2013-11-271-0/+0
| | | | | | setup.cfg is no executable code, it'S pure config. Change-Id: Ia87fcd3e85e0d3bec53399b02496a52fb763f428
* Only run yum install once per package blockAngus Salkeld2013-11-012-8/+9
| | | | | | | | | | | | | before we would get this: yum install a yum install a b yum install a b c Now we just get yum install a b c Change-Id: I2067922ab03de9488a0cd4e08c8d44c00296cd6a Closes-bug: #1235796
* Add basic yum and apt package install testsAngus Salkeld2013-11-011-0/+51
| | | | | Change-Id: I96e3bdc2566222fb4926e8a8f88a7f6b822e16f7 Partial-bug: #1235796
* Use on-demand yum metadata caching in cfn-init1.2.6Steven Dake2013-10-051-8/+1
| | | | | | | | | | | | | | Use on-demand yum metadata caching to avoid downloading 50MB (Fedora 19) of extra metadata that is not necessary for correct cfn-init operation. Reduces time to orchestration by about 23% and cpu utilization by about 50%. Full detailed analsys in the launchpad bug. Change-Id: Id51d6d506d6051b5e83f550ef318f86d84f3c7a7 Closes-Bug: 1235824
* cfn-hup manpage fix s/deamon/daemon typoSteven Hardy2013-10-021-2/+2
| | | | Change-Id: I3b7082fd2c1c7c13c9d6db824f8e7011544bd7e3
* Implement -k option for cfn-get-metadataSimon Pasquier2013-09-103-8/+134
| | | | | | | | | | | | The -k argument can be a top-level key or a nested key in which case the keys are separated by dots (eg "foo.bar"). In case a key contains a dot character, it needs to be surrounded by single quotes (eg "foo.'bar.1'.fred). If the -k option is not provided, the command prints out the full metadata structure as before. Change-Id: Ib05d39672086001b83e8d7f56bc42cc4ba75751c Fixes: bug #1183299
* Merge "Change cfn-signal option --exit to --exit-code"Jenkins2013-09-081-4/+11
|\
| * Change cfn-signal option --exit to --exit-codeJUN JIE NAN2013-09-061-4/+11
| | | | | | | | | | | | | | | | | | According cfn user guide, the long option of cfn-signal -e should be --exit-code. Fixes bug #1220080 Change-Id: Id4e9feefd387a744f5e933aa4e9ea8a6f6f02a7c
* | Add argparse into requirementsJUN JIE NAN2013-09-041-1/+1
|/ | | | | | | | | Add argparse into requirements.txt and heat_cfntools.egg-info requires.txt Fixes bug #1220071 Change-Id: I6147a8f14ac110d8dcdc1643ced5d32594322041
* Support array values in commandJUN JIE NAN2013-08-191-3/+5
| | | | | | | | | | | | | | | Description of command in CFN User Guide: Either an array or a string specifying the command to run. If you use an array, you do not need to escape space characters or enclose command parameters in quotes. So we escape double quote first, and enclose each array value in double quote. Fixes bug #1211605 Change-Id: I28ecdb0d4b8a12690dddeac4e2398264c6d6f212
* Pass cwd and env to test commandJUN JIE NAN2013-08-131-8/+9
| | | | | | | | | Promote get cwd before test command running and pass cwd to test command. Fixes bug #1211606 Change-Id: I2e4d3258f6d591d3d0aadffcefa36487c9122023
* Sync with global requirements1.2.5Steve Baker2013-08-073-8/+8
| | | | | | | | After requirements/update.py was run, the boto entry was manually restored to: boto==2.5.2 Change-Id: Icd43ee5e1fee473ab21d59b1a17235317f5d751c
* Use python 3 style print functionsSteve Baker2013-08-073-6/+6
| | | | | | Required to pass pep8 H233. Change-Id: I136dd2aa9fa567208a2fe1660b7a9085fde2927e
* Use the server tags for dimensions and make watch_name optional.Angus Salkeld2013-07-311-4/+7
| | | | | | | | | | | | | | This allows us to stop creating templates with circular dependancies. So we can change: cfn-push-stats --watch {Ref: TheAlarm} to: cfn-push-stats This makes it closer to AWS and actually better as users can add their own dimensions via the tags. Change-Id: I365ae57c2275a2d064075eb1b3e14aa1e418d1ee
* Add a get_tags() method to the Metadata classAngus Salkeld2013-07-312-0/+177
| | | | | | | | | | Tags are not properly implemented in nova so we pass the tags to nova as metadata. So we now [w]get the nova metadata. Since this is called repeatedly we cache the metadata. We also add the nova instance id (uuid) as a guest tag. Change-Id: I599f22fd5166e88cb3d21a71ead5f48c5c5a9269
* Configure Apt to never prompt for user-input.Jason Dunsmore2013-07-261-1/+2
| | | | | | Fixes bug #1205378 Change-Id: Ie55725e04aa6045b52c33a5cdd4d2be4ac1a6cc3
* Add GitHub tarball and zipball supportJUN JIE NAN2013-07-012-15/+32
| | | | | | | | Github tarball and zipball support was removed in the change set to pipe handing in sources. The changeset add it in and restructured. Change-Id: I107f42e9961cd8776161d1f6a2efe9d103aea125 Fixes: bug #1195622
* Fix test cases not running under python 2.6JUN JIE NAN2013-06-272-0/+3
| | | | | | | | | Test cases running depends on `discover' package, but in python 2.6, `discover' package is not there. So need to add `discover' in test-requirements.txt. Change-Id: I1129bc50c97861c9fca3894261ea1b831cd3f6cc Fixes: bug #1193349
* Using pipe to handle tgz sources1.2.4JUN JIE NAN2013-06-262-39/+94
| | | | | | | | | For tgz(or tar.bz2) sources, use pipe like `wget -O - http://www.example.com/a.tar.gz | tar -xvf -` to save disk space usage. Change-Id: I59663aed098e8c96d8a41b2d84200f2a1e43a927 Fixes: bug #1192135
* Add Flake8 checks for bin/cfn-* to GatingDirk Mueller2013-06-207-138/+137
| | | | | | Fix the Pep8/hacking/pyflakes warnings in bin/cfn-*. Change-Id: Ie21b3909c80d33adc712c2f3c9494d0fdbd90608
* Delete the temporary directory created by sources handlerJUN JIE NAN2013-06-201-1/+3
| | | | | | | | Register a hook to delete the temporary directory created by sources handler at program cfn-init exit. Change-Id: I821195cf510d35f94b1e7656dacc0dfe308ceeb1 Fixes: bug #1191674
* Add missing -d option in cfn-signalJUN JIE NAN2013-06-191-1/+1
| | | | | Change-Id: I1d4f7f9a935d037e3b9f75f3b9627b2eaa560179 Fixes: bug #1192486
* Use Python 3.x compatible octal literalsDirk Mueller2013-06-132-4/+4
| | | | | | | | Python 3.x deprecated octal literals in the form 0755. Use 0o755 instead which works at least with Python 2.6 and newer Change-Id: I70dc33cb674499548732408924aa2ae728e17ea3
* cfn-get-metadata: log metadata to standard outputSimon Pasquier2013-06-033-17/+49
| | | | | | | | | Add display() method to the Metadata class that prints the metadata to standard output if the metdata has been successfully retrieved (either from local cache or from the remote server). Change-Id: Idf6c1aecf2a5204d7cf7fbf3c8d826f750a72785 Fixes: bug #1183298
* Include ChangeLog and AUTHORSDirk Mueller2013-05-301-2/+3
| | | | | | | Similar to how other OpenStack components are built, include a ChangeLog and AUTHORS file. Change-Id: I28037aa3daf32e7e02dc2545ed3adf4227860d96
* Migrate to pbr.Monty Taylor2013-05-256-49/+70
| | | | | | Fixes bug 1179007 Change-Id: Iaa8a2722938d0b25df1041695f3c1c8dbf563b47
* Add options to send user-defined metricSteven Hardy2013-05-241-0/+14
| | | | | | | | This allows the user to specify an arbitrary metric in their template, and send the number based on some data they can generate, e.g for openshift node occupancy data Change-Id: Iaa38614b8db3665f9fb340fd92b67b6f7a47b206
* Rename requires files to standard namesSteven Dake2013-05-163-3/+3
| | | | | | | | | | From bug report: Rename tools/pip-requires to requirements.txt and tools/test-requires to test-requirements.txt. These are standard files and tools in the general world are growing intelligence about them. Change-Id: I5d3bad7654e4ce101d19b40215d8c1cc93dd9832 Fixes: Bug #1179008
* Merge "Fix leaky tempfiles during test suite."Jenkins2013-05-161-29/+18
|\
| * Fix leaky tempfiles during test suite.Clint Byrum2013-05-081-29/+18
| | | | | | | | | | | | Each test run was producing 5 abandoned temp files. Change-Id: I1c682b8e5a8782b1123b4a1bdb06dddca534e84b
* | Merge "Migrate to flake8."Jenkins2013-05-166-697/+13
|\ \
| * | Migrate to flake8.Monty Taylor2013-05-116-697/+13
| | | | | | | | | | | | | | | | | | Fixes bug 1172444 Change-Id: I68d5e58f6992f7357e3bb4f72ae40d0ebe076d4b
* | | Merge "Fix pyflakes/hacking errors."Jenkins2013-05-162-91/+45
|\ \ \ | |/ /
| * | Fix pyflakes/hacking errors.Monty Taylor2013-05-112-91/+45
| |/ | | | | | | Change-Id: I6c364240d9e336fc4f38c2f4bc1fea2ae5e91511
* | cfn-hup : Moving erroneous print to use LOG.debug.Clint Byrum2013-05-081-1/+1
|/ | | | Change-Id: I6e567442cbc346b711b445c986095f1330131359
* Run hooks even without cfn-init Metadata.Clint Byrum2013-05-072-24/+20
| | | | | | | | | | When we don't have AWS::CloudFormation::Init in Metadata, this just means that cfn-init cannot do anything. However, cfn-hup still has hooks which are just scheduled to be run on any change in the Metadata. Fixes bug #1155999 Change-Id: I21c4f2137f8045128a86278b4d90768ea97455d1
* Add tests for cfn_hup.Clint Byrum2013-05-071-0/+114
| | | | Change-Id: Ibf69f99171c2c8316a0ea0a377e2fb186d5837b7
* Rework testsuite to be section order agnosticDirk Mueller2013-05-031-17/+19
| | | | | | | | | | | | In Python 2.6, SafeConfigParser defaults to "dict", which does not preserve section order. The testsuite was expecting insertion order to be preserved, which is the case with Python 2.7. According to Clint Byrum the actual code does not worry about section ordering, so I reworked the tests to sort sections into a welldefined order and run tests then, which makes it pass for all Python versions. Change-Id: Ia4e14018ae70c465b0b56d406d29fbb3c2ea280c