Commit Graph

62 Commits

Author SHA1 Message Date
Andreas Jaeger 2583755bd9 Retire repo
This repo was created by accident, use deb-python-os-refresh-config
instead.

Needed-By: I1ac1a06931c8b6dd7c2e73620a0302c29e605f03
Change-Id: I81894aea69b9d09b0977039623c26781093a397a
2017-04-17 19:28:34 +02:00
Steve Baker 1d828fa0dd Implement a --timeout for killing stalled scripts
This implements the feature required for bug #1595722 but the tripleo
bug is not closed until os-refresh-config is invoked with an
appropriate --timeout value.

Change-Id: Ibcbb2090aed126abec8dac49efa53ecbdb2b9b2c
DependsOn: If31f0d5d60e8585720c4c9c95cffa202f059f6f7
Partial-Bug: #1595722
2016-07-04 16:51:56 +12:00
Steve Baker d0cf563c2d Functional test which executes os-refresh-config
This provides functional test coverage for executing
os_refresh_config.py as a separate process.

dib-utils is added as a dependency since os-refresh-config depends on
dib-run-parts being available.

Change-Id: Ibc6232d8c1c64f660b9f86feb8b80e25ab5794d3
Related-Bug: #1595722
2016-07-01 12:55:49 +12:00
OpenStack Proposal Bot 8109d5db52 Updated from global requirements
Change-Id: If1d81ea53a4977f88ff03738bf21cd84bd8b7909
2016-06-02 21:10:12 +00:00
OpenStack Proposal Bot 08b517491f Updated from global requirements
Change-Id: I74a2a94ec7b3ddb04b23c9d6c66282d8d0e046b1
2016-05-30 20:44:40 +00:00
OpenStack Proposal Bot 7c4d9db09f Updated from global requirements
Change-Id: I80009c4c419e966f9921a66285f2c5fcedb7c83b
2016-05-30 00:37:58 +00:00
OpenStack Proposal Bot 18f6cff5bb Updated from global requirements
Change-Id: Ia5ce9f36b35e40967e0197f9e325da1ec896a202
2016-02-25 01:51:48 +00:00
Jenkins 651426d984 Merge "Deprecated tox -downloadcache option removed" 2016-02-24 22:56:12 +00:00
Andreas Jaeger 08c8edb39d Remove argparse from requirements
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
2016-01-20 19:18:39 +01:00
Ondřej Nový 71aeb526b2 Deprecated tox -downloadcache option removed
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: I9c81b9dbef482b5b79c7ff831ffacf670400ee66
2015-12-11 23:18:44 +01:00
Jenkins ac05221c4c Merge "Change ignore-errors to ignore_errors" 2015-09-25 20:50:49 +00:00
Monty Taylor 346c530f6c Change ignore-errors to ignore_errors
Needed for coverage 4.0

Change-Id: Ieff5fac479fbf4801c9eb5a953ecdccef6c847fd
2015-09-21 14:41:56 +00:00
OpenStack Proposal Bot 9c666d2cae Updated from global requirements
Change-Id: I3b5682413581773271912325fa97b93e39e79356
2015-09-17 12:15:46 +00:00
OpenStack Proposal Bot 23eda7bce6 Updated from global requirements
Change-Id: I220a8486b3b8df6677093b74ceeeb2a183de0765
2015-05-07 23:36:25 +00:00
OpenStack Proposal Bot 504c412499 Updated from global requirements
Change-Id: Ic3114b69bfa7301290ce8c8a8d480cb05af2f053
2014-11-20 14:11:13 +00:00
OpenStack Proposal Bot f35c9b7319 Updated from global requirements
Change-Id: Idf32e1233efa12843529428102ec630ad275c6cf
2014-11-18 11:36:02 +00:00
OpenStack Proposal Bot 6398bfe795 Updated from global requirements
Change-Id: I458a1e0540b520e855ccd689d77ab6c522b97e36
2014-11-16 15:06:00 +00:00
OpenStack Proposal Bot 2890fc13d8 Updated from global requirements
Change-Id: Ic4c2129cdefa66075b3e1f1013672be5ca9065a2
2014-11-05 08:34:44 +00:00
OpenStack Proposal Bot 43cd10c042 Updated from global requirements
Change-Id: Ie6216462170c715edebe7159f558bb310eff21f0
2014-10-11 15:55:52 +00:00
Jenkins 7ce2317dc3 Merge "Remove bogus path in tox.ini's flake8 exclude" 2014-10-09 22:19:03 +00:00
Steve Kowalik 1a8e910346 Remove bogus path in tox.ini's flake8 exclude
It referenced os_collect_config's oslo-incubator path, and
os-refresh-config has neither.

Change-Id: I5d79c3595b1abc564c0e8f39d09bdff5361b45e5
2014-09-30 13:20:28 +10:00
Jenkins d14d1591d7 Merge "Coverage report was't created" 2014-09-29 10:40:43 +00:00
Motohiro OTSUKA 6df4f30e33 Coverage report was't created
Usually, coverage report is created by "tox -ecover" command.
But it wasn't created. This fixes it.

Change-Id: If1096d70831e055d9d1f77a2fd08d28025c18597
Closes-Bug: #1374259
2014-09-26 16:09:51 +09:00
OpenStack Proposal Bot 71b04c8586 Updated from global requirements
Change-Id: I1e37b16a1a89e26b5fe3a66c245c7b7d50f72cb6
2014-09-11 00:30:21 +00:00
Christian Berendt fa006eb35d Bump hacking to 0.9.x series
Change-Id: Ie97c181bb4dda4cb851e33bf85f25c35b45e72df
2014-07-21 09:24:34 +02:00
OpenStack Proposal Bot 1ec75301eb Updated from global requirements
Change-Id: I563b1d73ce368f8b0c5c3fad93faa25582dbbb8a
2014-06-18 00:46:49 +00:00
Jenkins c7544b56df Merge "Use FHS-compliant default base directory" 2014-05-09 11:24:56 +00:00
Ben Nemec 2d1397b468 Use FHS-compliant default base directory
/opt/stack as the default base directory is not very friendly to
non-OpenStack users, so this changes the default base directory
to reside in /usr/libexec.  The /opt/stack path will continue to
work for now so any existing users will not be broken by the change.

Also changes the directory name from os-config-refresh to
os-refresh-config to better align with the os-apply-config naming.

Change-Id: I98e93d91685ae25ae74a5470483a1cc8b97da4e5
2014-05-06 15:24:48 +00:00
OpenStack Proposal Bot e4c7827bdc Updated from global requirements
Change-Id: I9b24a52c0456d7b84933e15ed61445be746dedad
2014-04-30 02:45:32 +00:00
Jenkins cb092f8f27 Merge "Add error handler to os-refresh-config" 2014-04-29 20:24:01 +00:00
Jenkins b75293b691 Merge "Add basic unit tests" 2014-04-23 13:10:39 +00:00
Clint Byrum 64d3619302 Add error handler to os-refresh-config
Previously on error the program simply exitted. This will allow script
writers to write error handlers to be called whenever any phase fails.

Change-Id: I3f8025663700192e9d8132a0e9122b4e0085ebbd
2014-04-11 15:31:36 -07:00
Clint Byrum fd60517cb8 Add basic unit tests
There were none before this. Adding this test exposed a coding error in
the main method (returned None instead of 0)

Change-Id: Ibf6bf8276a96fceebd9f71773209452f786d0ef7
2014-04-11 15:31:09 -07:00
OpenStack Jenkins b42bc134bf Updated from global requirements
Change-Id: I3c784f3be3f46e34691d8d931abbb40839cb7447
2014-04-07 21:15:01 +00:00
OpenStack Jenkins 51248398a3 Updated from global requirements
Change-Id: Ic2918967c72adfeff8159ba7b1702c728a84ea34
2014-03-03 03:33:54 +00:00
James Slagle 9963e411cc Add argparse to requirements.txt
argparse is a requirement of os-refresh-config, so it should be listed here.
Likely this error is never encountered b/c argparse is part of python 2.7. But,
for older distros like RHEL that are still on python 2.6, it needs to know to
install it explicitly.

Change-Id: I63bd54bf42d99d2ef7f6534848afc396471cd802
2014-02-27 07:19:01 -05:00
Jenkins b22b134066 Merge "Move migration to run after post-configure" 2014-02-14 00:31:46 +00:00
Jeremy Stanley 10902dd35c Remove tox locale overrides
* 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: I26a57ba47586177c513f7cfb5f9d003992b0922d
Closes-Bug: #1277495
2014-02-10 03:09:03 +00:00
Clint Byrum 8e73c9226c Move migration to run after post-configure
This change has been discussed and planned for a while. We have not used
migrations much in TripleO, so it was not clear that it was necessary.
But as we move to HA deployments we need a way to run scripts after the
system state has been asserted, which is what migration is for.

Change-Id: I16d90abb3fccc791001beb5d8ed267fcd00f820c
2014-02-07 12:15:49 -08:00
James E. Blair d137cbceb5 Have tox install via setup.py develop
tox 1.6 was released, which means that we can now take advantage of
the feature we added to it - which is using setup.py develop to
install the code into the virtualenv. The logic was taken from
run_tests.sh - so the performance issues around using tox vs. using
install_venv should now be gone.

Additionally, override the tox pip install command to avoid using the
"--pre" option which is the default in tox.  "--pre" means "Include
pre-release and development versions."  By default, pip will only
install stable versions of software, and that is the behavior we want.

Change-Id: Ida5e440d1bdb9f8e9031277ea53a02d2ef171438
Co-Authored-By: Monty Taylor <mordred@inaugust.com>
2013-12-11 09:00:34 -08:00
OpenStack Jenkins ccb28c5a35 Updated from global requirements
Change-Id: I039254e3d935f8d8f2ab0a48fd142332d1f08327
2013-12-10 23:44:45 +00:00
JUN JIE NAN fb63aa10bd `os-refresh-config` README enhancement
Added explanation on phases.

Change-Id: I7017134a4a80040c0ac66eba56b082c647fd5c17
2013-12-03 14:07:22 +08:00
Sascha Peilicke 36c4d8f252 Support building wheels (PEP-427)
With that, building and uploading wheels to PyPI is only one "python
setup.py bdist_wheel" away.

Change-Id: I5be3ea39fd43db85a3b99b50a69b7ca6aaa2690e
2013-11-19 10:33:09 +01:00
OpenStack Jenkins 33a306ded7 Updated from global requirements
Change-Id: I1464a2034497d2520f102294687da3eedd4bcae7
2013-11-05 09:54:05 +00:00
OpenStack Jenkins 6d53185daf Updated from global requirements
Change-Id: I4f26d3a8790c799e5c1f7f81031406e0c57545f9

Change-Id: Ica7315effe308bd739e90f885849fac27a3c542b
2013-10-10 20:26:21 +00:00
Jenkins 838631464f Merge "Update stackforge references to openstack" 2013-08-18 21:29:40 +00:00
Monty Taylor a9de82b965 Update stackforge references to openstack
Change-Id: Ibddc917184b683f57d52ca444cdfcb1c92a04ee0
2013-08-17 23:00:11 -04:00
Clint Byrum 18af37dae1 Conform .gitignore with other OpenStack projects.
Change-Id: I4c73f1adac367b1746bcd26752e6e722c198b610
2013-08-16 08:25:33 -07:00
Monty Taylor 4438058c81 Updated to OpenStack standards
Change-Id: Idf87a63c72bfb85de713ebb69564509f8c00393b
2013-08-13 13:45:14 -03:00
Clint Byrum d7ea66ee8d Add a lockfile.
The scripts run by os-refresh-config generally expect to be running
only once. This will ensure that. Because we use /var/run, this also
now assumes that os-refresh-config is run by root. Otherwise one must
pass in a different --lockfile path.

Change-Id: I33cbb065d6bc32c87f5e72132fceef9df82a190d
2013-07-17 09:00:18 -07:00