Commit Graph

42 Commits

Author SHA1 Message Date
Ghanshyam Mann a43311b7ef Retire Tripleo: remove repo content
TripleO project is retiring
- https://review.opendev.org/c/openstack/governance/+/905145

this commit remove the content of this project repo

Change-Id: Ic209179b0be9c3746a702ccea2dd35e883e78bee
2024-02-24 11:43:49 -08:00
Joseph Tole b5b3160ef1
Updates for virtualenv on debian bullseye
Change-Id: I67af2b17f59cc4d05c4fa217861992123da97758
2022-03-15 16:20:14 -04:00
Sorin Sbarnea c69ead8b45 Drop pbr version ceiling and add py39 testing
- Ceiling of pbr version can create installation conflicts with pip.
- Fixes tox default env list to be python version agnostic
- Updated template to use newer jobs (include testing with newer python)

Bug: #1921679
Change-Id: Ifd0d2f810799992faa1db41b80bf93bc97d5d19d
2021-03-30 10:57:41 +00:00
rabi 0601000e65 Create symlink for dib-run-parts
Looks like 'dib-run-parts' is not available in $PATH for 'os-refresh-config'
to use. This seems to be installed in the venv for os-refresh-config. Create
a symlink in /usr/local/bin like 'os-refresh-config'.

Change-Id: Ib6ad331292720ec418a176dd3f2e0df520e6b2bf
2017-08-03 19:59:30 +05:30
Jenkins 5e4ec88423 Merge "Update pbr version to match global requirements" 2015-07-02 20:02:16 +00:00
Derek Higgins 85c68ffc75 Update pbr version to match global requirements
The version of pbr we were using was having trouble parsing a new version
identifier for python-qpid, We have the pbr version hardcoded in many
places so update it to match whats currently in global-requirements.

Fixes bug #1470871
Change-Id: Ia5aec472555ad1368684b224a55c29242ae40b58
2015-07-02 16:53:06 +01:00
James Slagle 25509120b4 Migrate os-*-config to package-installs v2
Migrate all the os-*-config elements to package-installs v2.

Change-Id: I9e48a021faa3dde7789a788618e96612e85eb0c4
2015-04-30 16:12:40 -04:00
Steven Hardy 93e05f569e Signal all o-a-c deployments in 99-refresh-completed
Currently we have a TripleO specific template pattern, where all
deployment resources are configured NO_SIGNAL, regardless of what
DefaultSignalTransport is set to, and only one signal for all
deployments is sent via the *AllNodesDeployment resources, by adding
the heat-generated deploy_signal_id to the structured config data
consumed by os-apply-config (as "completion-signal").

This is inconsistent with all signalling done via heat-config (e.g
everything other than o-a-c, which is triggered via a hook via
55-heat-config, this transparently consumes the heat-generated
deploy_signal_id and signals heat after each deployment hook is
run.

To allow per-deployment signalling for os-apply-config configs,
this adds logic which looks in the deployment data processed by
os-apply-config and signals all deployments deploying a config with
group "os-apply-config" (everything else should be handled by 55-heat-config)

Note that if the deployment is configured NO_SIGNAL, no deploy_signal_id
will be set, thus this will do nothing, and currently this won't work with
HEAT_SIGNAL, only CFN_SIGNAL (which is the default for deployments with no
signal_transport specified).  In future it would be good to add support for
HEAT_SIGNAL to break the dependency on heat-api-cfn.

This is backwards compatible, but after it's merged we can remove all the
NO_SIGNAL's in the templates, and the completion-signal key from the
allNodesConfig, which should in future allow more flexible control of
the ordering of metadata update for configs applied via o-a-c (as well
as better visibility of progres during deployment).

Co-Authored-By: Dan Prince <dprince@redhat.com>

Change-Id: I72ea524effd07deeb432fb38ee7da5f3dc7990a7
Closes-Bug: #1389178
2015-01-23 13:00:28 +00:00
Derek Higgins db59165428 Switch to the default os-refresh-config base dir
The default os-refresh-config base dir changed over 6 months
ago in I98e93d91685ae25ae74a5470483a1cc8b97da4e5.
Using the deprecated default may cause problems in the future,
instead query os-refresh-config for the default directory.

Change-Id: Ia5b8fceb83ebd32d9a537d793a80cd2b8341c8ec
2014-11-10 14:23:26 +00:00
Gregory Haynes dad3c0ccf1 Migrate to package-installs scripts
Migrating install-packages commands to package-installs-* scripts where
possible.

This patch is broken up into multiple parts to minimize impact and
review overhead.

Change-Id: Idd1be32149e7238d53d04a34170c5029dda83f1f
2014-11-05 01:38:05 -08:00
Gregory Haynes a5941bf329 Remove pip install --pre
We were installing some packages with support for prerelease versions in
expectation of needing it in our CI. This turns out to not be needed so
we should remove it.

Change-Id: I7ae440d3534e33144942c2230a88cf54f8a153d3
2014-10-23 08:01:17 -07:00
Brian Hou 5ecd3c7101 Revert "Fix argparse issue for RHEL 6.5."
This reverts commit d088fde2ea.

Since the underlying problem with argparse has been resolved 
in python 2.7 and filtering out argparse for python 2.6 has been removed,
there is no longer a need to explicitly install argparse for python 2.6.

Closes-bug: #1346364
Change-Id: If9534bf5a4400f5f72475c67a8e6e14da08f9562
2014-08-09 06:47:37 +00:00
Om Kumar d088fde2ea Fix argparse issue for RHEL 6.5.
Since RHEL 6.5 uses Python 2.6, which lacks argparse,
they need to be installed to ensure that os-apply-config
and os-refresh-config work properly.

Change-Id: I80dcce56d00fc6f1240a5fcccd425cc2b4db29d5
2014-07-15 19:38:01 +05:30
Steve Baker dfbb0549fe Prepare os-*-config for CI
Specify pip install --pre so that local git built packages will be
installed if available. It should be possible to always specify
--pre since public repos do not have snapshot release packages for
these tools

Change-Id: Id2e539ba72ac2ef8d39a3ab694991e9b8bf724d7
2014-06-25 16:02:28 +12:00
Gonéri Le Bouder 0a71316726 indent using 4 spaces (3/3)
As advised in I072cf8bf6748d0c910fecffdf2282bcc4656d038, code should
use 4 spaces for indentation.
This commit enforces the use of 4 spaces indentation.
In order to simplify the review process, this patch only cover the
following elements:
 - os-apply-config
 - os-collect-config
 - os-refresh-config
 - os-svc-install
 - pacemaker
 - pypi-mirror
 - qpidd
 - rabbitmq-server
 - snmpd
 - stackuser
 - tripleo-cd

Change-Id: I3f365f6a1cd6fd9e56402ad3bd6572192b85d798
2014-05-23 00:32:41 +02:00
Coleman Corrigan 2e1730b16f Activate venvs in os-*-config elements source install
This updates the source install scripts for os-apply collect and
  refresh config elements to activate their virtualenvs before
  performing pip installs,  as without this specifing a manifest for
  e.g. os-apply-config breaks devtest build

Closes-bug: #1305151
Change-Id: I3c42de180f76fb122637c801541f14e50169de89
2014-04-09 17:37:37 +01:00
Jon-Paul Sullivan 1c998eb93f Create pip manifest files of installed packages
Create the pip-manifest element to encapsulate the saving and use
of pip manifest files.

Ensure that it installs prior to any elements that should be able
to use it.

Write pip manifest files for installs in:
    * os-svc-install
    * os-apply-config
    * os-collect-config
    * os-refresh-config
    * openstack-clients

Enable using a manifest file to reinstall exact versions of
packages in a subsequent run through the DIB_PIP_MANIFEST_*
environment variables.

Change-Id: I4d4ab5921c534727b48cb9969ec8ecfd2c26e6ed
2014-03-25 12:22:59 +00:00
Gregory Haynes aa62d27972 Explicitly install pbr via pip
When a pypi mirror is used with certain conditions installing pbr as a
dependency fails.  This is a temporary fix until the underlying cause
is resolved.

This is also required for a wheels based pip mirror to work.

Change-Id: Ia08eb16b96d9897fa2f86239ea264b145ef0b9b5
Closes-Bug: #1293812
2014-03-24 12:43:01 -07:00
James Polley 15bdcfe5c0 Make os-refresh-config install.d hook run later
os-refresh-config relies on being able to run virtualenv, which is only
guaranteed to be possible after running 01-install-pip from the
pip-and-virtualenv element.

To guarantee this ordering, move
install.d/os-refresh-config-source-install/01-os-refresh-config to
install.d/os-refresh-config-source-install/10-os-refresh-config

And for consistency in script execution timing, move
install.d/os-refresh-config-package-install/01-os-refresh-config to
install.d/os-refresh-config-package-install/10-os-refresh-config

Change-Id: I3b0a127c0c6eca16854f84a3c733cbd54c8a4880
Closes-Bug: #1292514
2014-03-20 21:19:30 +00:00
James Slagle 9f8e1c5f98 os-*-config package install support
Package install support for:
* os-collect-config
* os-refresh-config
* os-apply-config

This change requires a corresponding change to dib to move the install
type enablement out of source-repositories since the os-*-config
packages do not use source-repositories:
cccdcb904d485fce92443edbb088740e074c3046

Change-Id: I22672a4312152ab594de2a149e16866c7564e3d4
2014-03-18 12:09:26 -04:00
Michael Kerrin 09e1abdfdc Install latest version of pip and virtualenv
We install pip with get-pip.py and use this to install virtualenv. This
is done as part of the new pip-and-virtualenv element. All elements that
need pip or virtualenv should use this element to install them.

Our motivation is that we need to talk to a pypi mirror generated with
a recent http://github.com/openstack-infra/pypi-mirror This mirror
caches some 'wheels' that the previous version of pip & virtualenv
can't install.

virtualenv contains its own version of pip that is used for all
virtualenv environments.

Change-Id: I282fd8fffc8d5707a078f78f2b4571138d7266f3
2014-03-10 10:06:59 +00:00
James Slagle 4c60c96172 Add set -eux
This script should be set -e. Also added -ux for good measure. On RHEL,
os-refresh-config was failing to run due to a missing requirements.txt line on
argparse (separate patch), however the failure was not failing the image build
b/c this script was not -e.

Change-Id: Id36d61442d8104cada8346f47e63858cf7f08096
2014-02-27 07:27:21 -05:00
Tom Hancock 43cfbfd677 Fixes for use behind proxy
Need to use setuptools>=1.0 in order to get fixes which
allow fetches of dependencies from pypi to work correctly
when operating behind a proxy.
Ref: https://bitbucket.org/pypa/setuptools/issue/52/ssl-errors-with-https-proxy
and also some prior fixes to bug #1201253 in change id
I7cca000857f7691d4cb723d0a0c22a202da703f8

Change-Id: I3f11b4b9b8d2bd59f32c5d4de5ee58f1423287f5
Fixes: bug #1201253
2014-01-17 12:00:03 +00:00
Derek Higgins 31359af924 Don't install git-core
This was used required back when the pip install referenced a
git+https://... url and is no longer required.

Change-Id: Id4243712ece3c847ad26d585448bff20b2aae8fe
2014-01-13 16:05:06 +00:00
Derek Higgins 8a2a8c7174 Install os-refresh-config from release into a venv
We had been installing this from a git repository into the global site-packages.
Which is inconsistent with how we install os-apply-config.

Change-Id: I1a2167d3e71cc97bd387191b44eb4d59b62ce00c
2014-01-13 15:12:35 +00:00
Clint Byrum 37f5a9b454 Replace cfn-hup cron job with os-collect-config
Os-collect-config is meant as a replacement for cfn-hup. The @reboot job
can go because os-collect-config will be run when the system is booted.
The periodic job is handled by os-collect-config's default behaviour of
running its command (by default, os-refresh-config) whenever any of its
metadata sources change.

Change-Id: Id768927ddfc4e7b4873fac347905e44458fd341a
2013-08-05 00:57:51 -07:00
Jenkins a7ede4152d Merge "Do not automatically start os-refresh-config." 2013-07-22 08:14:15 +00:00
Derek Higgins 84cd541e04 Use source-repository interface in orc element
Change-Id: I5d50cec88acc1f2e407a7d9f8fee0dbbdd34abdb
2013-07-17 11:23:35 +01:00
Clint Byrum 0d78da501f Do not automatically start os-refresh-config.
cfn-hup needs to be the only thing running os-refresh-config. Otherwise
the other orc scripts will race with cfn-hup writing out new metadata.
The exception introduced here is to also let crond (which runs cfn-hup)
run os-refresh-config @reboot to seed the configuration.

Without a need to start up automatically, there doesn't seem to be any
good reason to use an upstart job / systemd service unit. Instead we
can just pipe os-refresh-config output to logger.

Also because we have several places to run os-refresh-config, we
need to move the locking into os-refresh-config itself. Please see
https://review.openstack.org/37319 for that change.

Change-Id: Ic35eca943ba76d421b61710b9fff018e17fb40bf
2013-07-16 21:02:16 -07:00
Derek Higgins c0dcb8430f Put some order on os-refresh-config systemd
cloud-init is populating the file /var/lib/cloud/data/cfn-init-data
with metadata and needs to happen before os-refresh-config is run
which in turn needs to happen before the cfn-hup cronjob.

Change-Id: I07fc60c4a165a42eeae1a8e5a20609a6e17fd790
2013-07-07 00:22:47 +01:00
Derek Higgins b599c280e7 Pass exception into string formatting
Fixing a small typo in a error message

Change-Id: Ia3fcab0f470166108cc24589f0040e14727710df
2013-07-03 15:14:50 +01:00
Lucas Alvares Gomes 01061a1d7d Fix systemd services.
Systemd services should be created at /lib/systemd/system instead of
/etc/systemd/system, once the service is enabled systemd will create a
link from /lib/systemd... to /etc/systemd...

Also systemd services should contain the absolute path to the executables.

Change-Id: I741fe249de8ecc7b2af100ca6cf55c51f86f84b0
2013-06-17 17:49:34 +01:00
Clint Byrum 1db785927d Run cfn-hup via a cron job.
cfn-hup is supposed to be a daemon, but it doesn't work that way. So run
it via a wrapper in a cron job. Also run this way, we won't have
logging, so make sure os-refresh-config is run via upstart so we get the
output logged.

The wrapper must use a lock to avoid problems that might be caused when
multiple updates overlap.

Change-Id: I8613c45b33091ad6448ecddebe6a1f4337f09d7d
2013-05-08 15:42:29 -07:00
Robert Collins b7948a9aa9 os-refresh-config is on stackforge now.
Change-Id: Ib3719430c2fbc23c369118ea8da8066c25734ffb
2013-04-29 13:38:42 +12:00
Clint Byrum a99584d0f9 Fix script that installs os-refresh-config scripts
Was missing executable bits

Change-Id: Idcb984e44f4b45d78c59a45eb0d8d43457c788c9
2013-03-08 23:06:02 -08:00
Jenkins 28aa222b20 Merge "Fix issues causing Fedora images to fail" 2013-03-08 03:06:27 +00:00
Clint Byrum 597575c681 Fix issues causing Fedora images to fail
For os-refresh-config and os-config-applier, support systemd or upstart.

Change-Id: I4ff12e891a85b3171a6ef0c6898b2d45a1699de1
2013-03-07 14:17:41 -08:00
Clint Byrum 91351658b3 Install os-refresh-config scripts automatically
Updating the cinder element to reflect the new desired way to ship
os-refresh-config scripts.

Change-Id: Ibde1275725241204f6097ad7cc0ba0de5e6cd431
2013-03-06 11:23:59 -08:00
Clint Byrum 2b29ca6183 Integrate os-refresh-config with heat-cfntools
* Provide entry point for Heat Metadata to drive os-refresh-config
* Use os-config-applier for configuring heat cfn tools

Change-Id: Ie38b932173948f1e7c414c48caa1b037916bef84
2013-03-05 14:45:41 -08:00
Tim Miller aa8a2174a6 Add a cinder element.
Change-Id: I4729cf003896c3b4f8267d16e1b4822099231051
2013-02-28 17:09:30 -08:00
Clint Byrum 0841576862 Add cfn-hup configuration for os-refresh-config
Configures cfn-hup to run os-refresh-config on Metadata changes.

Change-Id: I65fcd8e09fe3cb070e3036156eaca4b5b0993d67
2013-02-12 12:21:42 -08:00
Clint Byrum 9ed4aaf2b0 Add element to call os-refresh-config
os-refresh-config simply runs things in a predictable order in directories
that other elements can populate. This element installs it and sets it
up to run at boot.

We also modify os-config-applier element to be called by this rather
than to have its own upstart job. This provides an example of how other
elements can insert themselves into the refresh process.

Change-Id: I52d72b7fd302ec317840af87fa77299387af99ad
2013-02-12 07:25:43 -08:00