This repo was created by accident, use deb-python-os-refresh-config
instead.
Needed-By: I1ac1a06931c8b6dd7c2e73620a0302c29e605f03
Change-Id: I81894aea69b9d09b0977039623c26781093a397a
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
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
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
Usually, coverage report is created by "tox -ecover" command.
But it wasn't created. This fixes it.
Change-Id: If1096d70831e055d9d1f77a2fd08d28025c18597
Closes-Bug: #1374259
/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
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
There were none before this. Adding this test exposed a coding error in
the main method (returned None instead of 0)
Change-Id: Ibf6bf8276a96fceebd9f71773209452f786d0ef7
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
* 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
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
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>
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