The dib-utils repository was retired as part of retirement of TripleO.
This imports the tiny dib-run-parts script because it's used by
os-refresh-config now.
This also removes direct execution of os_refresh_config.py, which is
required only for testing.
Change-Id: Ia516e604bafdc59dbcfa81796348191b03cbe0b7
This reverts commit d262d5e60e.
Reason for revert:
This breaks unit tests execution during packaging process in RDO.
Until we find out the root cause, let's revert the change.
Change-Id: I061b388c7df67422ded99dbf1bfe4c6fb2719f9c
Now we generate the console script using setuptools, and we don't
expect users may directly execute the *.py file.
Change-Id: I6fb802d0dee7e47f9fd619afba2f379f881914af
... because the minimum version is now 3.2.2.
Also the children method returns a list so we don't have to cast it
to a list explicitly.
Change-Id: I59c1a7847c5b4cc8471884671e57f3e49e4573d8
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.
Change-Id: I7a6bea2e6e6fffcc262dd4241a7d6b75913d87aa
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
psutil 2.x and above has a lot of API changes as described in:
https://github.com/giampaolo/psutil/blob/master/HISTORY.rst
So we should work correctly with both old and new psutil
versions by using a version check and use the correct
method/attributes. This allows to eventually unlift the version
cap that starts to hurt.
Change-Id: I6b6682e3af34f43da4e397d602e9ee4e1c83970f
Related-Bug: 1645918
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
/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
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
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
dib-run-parts is simpler and gives us profiling data. The --list option
was removed because it's not yet supported.
Change-Id: Icab4c5c04a26572e9b8564a25b1a328c889ead1c