Commit Graph

37 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
Joseph Tole bfbccfb823
Updated package maps for Debian Bullseye
Change-Id: Ic4f330f1a192b5cf920a9b0c28c07fd425a01580
2022-03-15 11:29:22 -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
Mariusz 29cee7f9d8 Install rsync before os-apply-config
For images without rsync installed (like the Xenial cloud image)
os-apply-config fails with:
```
rsync: command not found
```
This change adds rsync as a package requirement for os-apply-config.

Change-Id: Iae7c6f24176bcd4f6e3040da3d14bbcca0e61163
2018-12-03 14:07:33 +00:00
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
Martin André 81894bafcc Add pkg-map for os-*-config
These packages are called python-os-*-config on Debian and derivates.

Change-Id: I69f462e92a2cff6d82c7b363340336bfaa95e821
2015-02-09 17:16:50 +09:00
Gregory Haynes 2d99b4a608 Support common venv for os-*-config
All the openstack services support being installed into their own venv,
or into a common one. why not these two? This should cut some time off
builds.

Change-Id: Iab90372ba84993da6a2cb600ce1fef6fc073d3f6
2015-01-20 16:06:45 -08: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
Jenkins ac45e5abd8 Merge "Revert "Fix argparse issue for RHEL 6.5."" 2014-08-12 17:26:01 +00:00
Julia Kreger 3625ab254c Network init order fixes for VIP
These changes revise the boot order for network intialization such
that the configuration, VIP, HAProxy, and MySQL are available
and running prior to openstack-init starting.

These changes are necessary in order to prevent services in the boot
sequence from failing once the MySQL database URLs and bind-address
are changed to utilize the VIP address.

Service startup changes:

haproxy-nonlocal-bind in configure.d was moved from step 75 to step
20 to execute before haproxy was started so it could could perform
the non-local bind.

haproxy was moved from post-configure.d/ to configure.d/21-haproxy
to allow for HAProxy to bind to the VIP address that keepalived will
need to initalize and support passing connections to MySQL.

neutron-openvswitch-agent in configure.d was moved from starting at
step 80 to starting at step 21 as it creates the bridge interface
that keepalived utilizes, and thus is required for the vip to come
online.

os-apply-config in configure.d was moved from 50 to 20 as the
configuration files must be written out for haproxy and keepalived
to function properly.

This change is depends on I29613bf314fd054d0c82492692d95de2303c64ae

Change-Id: Ia6f26305f8e744e4ff938dff85de1193183ecd8f
2014-08-11 11:37:01 +10: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
Ghe Rivero 884ab16968 Remove references to os-config-applier
Change last references to os-config-applier (scripts, file names and
documentation) in os-apply-config element.

Change-Id: Ifa46522a48668adcef0d1fd5d28d2fc85141dce5
2014-07-11 09:21:11 +00:00
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
Jenkins 3d3d727666 Merge "add some missing “set -ue” declarations" 2014-06-16 16:49:16 +00: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
Gonéri Le Bouder 25a962a6eb add some missing “set -ue” declarations
Since 79ab95b16e78d563c473b5acada62cb3e22d4eb1 dib-lint ensure
every element shell scripts have “set -e” activated.

Even if dib-lint doesn't test it yet, the set -u is already widely
used.

As pointed out by Jiri Stransky, elements/tripleo-cd/configs/* files
are sourced by deploy-testenv. There is no reason to enable “set -ue”
manually. The patch just disable the dib-lint “sete” check on these files.

Change-Id: I118c8c80ec50b265c22577b075d15f56389b7a47
2014-05-20 09:39:55 +02:00
lifeless 011d73132d Revert "Provide an override level for os-apply-config"
This reverts commit bf95d722f0.

I hate to be a wet blanket but this is a workaround for lower layers
of the design not being powerful enough - we'll have to repeat this
for other similar elements, such as nagios, and thats poor - plus
we'll have to support this once its in a release, and thats
undesirable.

Change-Id: I0c1aca7f64e4aa0f60c5c24000282cdaa2678c2b
2014-04-30 11:59:45 +12:00
Alexis Lee bf95d722f0 Provide an override level for os-apply-config
This allows elements to override the templates provided by other
elements using templates in post-os-apply-config. For example, the
logstash element provides a very basic logstash.conf. This change allows
another element to easily substitute a more useful version.

README.md has been rewritten as it was fairly sparse to begin with.

Change-Id: I14a103bf16554dc42b9c8ba1d4fefcacf6f07786
2014-04-25 13:09:18 +01:00
Jenkins dce11152e3 Merge "Activate venvs in os-*-config elements source install" 2014-04-10 15:51:55 +00:00
Jenkins 6709302714 Merge "Remove mostly empty directories" 2014-04-09 17:41:04 +00: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
James Slagle 0668a6f398 Remove mostly empty directories
The os-apply-config and os-config-applier directories are empty other
than 1 hidden file in each. This appears to be the case just so that
they will exist when the rsync commands run to install the templates
into the image. It's possible the directories won't exist otherwise if
no elements provided any templates.

Instead of using empty directories and hidden files to force them to
exist in git, just check for the existence of each directory before
running the rsync commands.

Change-Id: I0f286a28601c292b5f70258747def36a08d93a87
2014-04-03 10:45:58 -04: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 Slagle 0c88279fd4 Always create o-a-c's $TEMPLATE_ROOT
Creating $TEMPLATE_ROOT is common to both os-apply-config package and
source installs, so move it into it's own install hook script under
install.d.

Change-Id: Iba79129cd111c144f67efabb93d4eb81641d1c2c
2014-03-19 16:09:49 -04: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
Derek Higgins 1322177884 Don't install python-pip
We're using pip from the virtual environment.

Change-Id: Ica5d918501018c4acd7e46b6b1265f8ec4ffe8a1
2014-01-13 15:12:36 +00:00
Robert Collins 3a869ae083 Ignore junk os-config-applier templates.
Moustache can't render binary files, and open editor sessions can
create such things which were being copied into the built tree.

Change-Id: Ie1c5861e89af5f6aa2202800accd7e2099c953ec
Closes-Bug: #1224728
2013-09-18 03:20:47 +12:00
sbauza 2577682e33 Upgrade setuptools to 1.10 or more in a newly created virtualenv
By default, virtualenv embeds setuptools, and doesn't download its
latest version. At the moment, latest virtualenv is 1.10.1, which does
install setuptools-0.9.8

Unfortunately, setuptools-0.9.8 doesn't manage correctly HTTPS
certificates if the user is specifying a proxy with https_proxy and
http_proxy environments variables. This can raise an error if the
server to download is having TLS2_3 HTTPS certificate, by example when
pip installing python-novaclient, whick asks for
https://pypi.python.org/simple/pbr

Fixes: bug #1201253
Change-Id: I7cca000857f7691d4cb723d0a0c22a202da703f8
2013-08-26 11:27:52 +02:00
James Slagle c2c56f86cb Install os-apply-config in a virtualenv.
Due to the older python distribute still shipping on Fedora, Ubuntu,
and other distros, os-apply-config can not be installed with pip
install -U.  This change installs os-apply-config in a virtualenv
instead, so that it's in an isolated environment.  os-apply-config and
os-config-applier are symlinked under /usr/local/bin so that all calls
continue to work.

Change-Id: I50d7147cf74a36bbe7751d545c353ac354bdd189
2013-08-05 09:51:36 -04:00
Robert Collins ca62ece4a1 Rename os-config-applier to os-apply-config.
This is being done to reduce confusion between os-refresh-config and
os-config-applier. In order to make the transition smooth, all this
patch does is rename the element, install the now pypi available
os-apply-config, and support both the old and new directory names
for templates, allowing incremental migration of users.

Change-Id: I8c4c7679799f4e8b436ce766791f45f4c81d75f2
2013-06-14 20:39:18 +12:00