Commit Graph

58 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
Zhuo Zhen 021525736b Install python3-dev package
Should install python3-dev when dib_python_version is 3.

Change-Id: I1f365347917e4c95ea92b1a3b8d8741cde39fd2a
2020-03-25 09:10:47 -05:00
Andreas Florath d248a017cb Add mapping for python-dev for Ubuntu Focal
In Ubuntu Focal there is no package named 'python-dev'.
This patch maps this to 'python3-dev'.

Change-Id: I2ea41c36d13748dd5a375853b26aacfc63c1bd48
Signed-off-by: Andreas Florath <andreas.florath@telekom.de>
Closes-Bug: 1865328
2020-03-01 08:53:24 +01:00
sayalilunkad 2c60bbf6d5 Add another path for service files
In opensuse the service files are located in /usr/lib rather than /lib. This change adds this path
as an option.

Change-Id: I99c2db557a2290c3860bb41233d7efc35d03be0b
2018-01-31 18:50:08 +01:00
sayalilunkad f500b7c107 Adding mapping for SUSE package
Change-Id: I89e3f7832fbc49949446711e76d15afcd334d4f9
2017-12-21 16:04:18 +01:00
Mathieu Velten e0233d3d6b Change After rule from cloud-final to cloud-config
In recent Ubuntu 16.04 the unit doesn't get triggered otherwise.

Change-Id: I70ddb25ec177d7fc64850c0cc60df72cff22594d
2017-09-20 11:23:58 +02:00
Dan Prince 2c9e5054b0 Add zaqar.use_websockets option to o-c-c
Depends-On: Id5c7ed590df776844b6c7961eb40f89206cd24e0

Change-Id: I9d4eed180304ee4b7c5ceab017b85f42d1b3910d
2016-07-19 12:50:03 -04:00
Jenkins 0a9eafad0d Merge "Add os-collect-config template for zaqar support" 2015-09-10 13:48:43 +00:00
Steve Baker 030491bb52 Make /etc/os-collect-config.conf only root readable
This change makes /etc/os-collect-config.conf only readable by root
when os-apply-config overwrites it with credential-containing content.

The credentials are only good for fetching metadata for the server, but
that metadata itself may contain secrets which should be hidden from
non-root users.

Change-Id: I0819ea94afe769d572f03d415dcce164b5f2ccef
Closes-Bug: #1463409
2015-07-03 10:20:18 +12: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
Thomas Herve 9bc298475e Add os-collect-config template for zaqar support
This modify the template of os-collect-config.conf to be able to
specify zaqar configuration.

blueprint software-config-zaqar

Change-Id: Ie1245b912d5e2a1d4c772dc446016f6f00830bcb
2015-05-27 10:36:53 +02: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
Jenkins a332baabff Merge "os-collect-config.conf template request collector" 2015-03-04 02:16:50 +00: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
Steve Baker eb60ce123c os-collect-config.conf template request collector
This change adds the required o-a-c template section
to configure os-collect-config for the request collector.

This allows heat deployment data to be polled from a swift
TempURL.

Change-Id: I3fb821dbdbe42b5195fa90c2b85f14eaa41d9ead
2015-01-27 15:47:56 +13: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
Endre Karlson 71d9a26741 Allow setting ca_certificate option for metadata api
This allows os-collect-config to pass a ca_certificate when making
requests to an SSL metadata server.

Change-Id: I06056c0d3a4f26f7483980305898e4e2b1e08c6e
2014-12-05 12:09:51 +01:00
Dan Prince 3683d8fd65 Enable os-collect-config on boot for packages
When using packages with the tripleo-image-elements
os-collect-config is no longer started on boot causing
things not to be configured at all.

This was a regression in dad3c0ccf1
where we made global use of package installs within the TripleO
image elements.

Change-Id: I001c3d24882b3a4817cac767a8b7535d6b9cf247
Closes-bug: #1392751
2014-11-14 10:03:44 -05: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
Gregory Haynes 4cd668b09f Remove pinning of requests for os-collect-config
We pinned requests to not use version 2.4.0 due to a bug in requests.
2.4.1 has been released now which fixes this issue.

Change-Id: I53f6ff92400b30e9faee186ae8fee9e4e6d0b127
2014-09-09 17:02:28 -07:00
Jenkins 396bdbd9c5 Merge "Correct configuration of o-c-c collectors" 2014-09-08 14:20:44 +00:00
Steve Kowalik f1d096d95a Drop all direct usage of systemctl enable
Since we already have a wrapper script for enabling services called
os-svc-enable, drop all direct usage of systemctl enable, replacing
it with os-svc-enable.

Also drive-by replacements of == with =. == is a pattern match.

Change-Id: I707bf6f02207308e8f61caff17a27b0697096359
2014-09-05 15:11:08 +10:00
Gregory Haynes d8ead0fe58 Pin requests to version < 2.4.0 due to bug
os-c-c ec2 collector fails with requests 2.4.0 due to a regression.

Change-Id: I2a74773b7ecdfcd7c53946124a7d43ee738eff2f
Closes-Bug: #1363889
2014-09-01 14:02:54 +01:00
Kiall Mac Innes 2246f184aa Correct configuration of o-c-c collectors
o-c-c registers it's "collectors" config param as a MultiStrOpt, rather
than a ListOpt. The required configuration file format for this type of
option is:

     [DEFAULT]
     collectors = heat_local
     collectors = ec2
     collectors = ...

Change-Id: I35063c75781f855883b02e1e0438b8cc08475ced
2014-08-28 14:41:57 +01:00
Jenkins 42f751106c Merge "Log tripleo services to syslog" 2014-08-22 15:48:00 +00:00
Derek Higgins 1ad23b193f Log tripleo services to syslog
Logging to an upstart logfile results in log entries that are not
associated with a timestamp(e.g. os-collect-config). This isn't
consistent with the log files produced in other openstack CI tests
and means we can't index them in logstash (at least consistently
with how the other projects are indexed).

As a result of this we will need to remove the double time stamps that
get produced (by taking them out in each of the services configuration)
and extract the log at the end of CI into per-service files so that we
can selectively index the files we want.

In particular the service that doesn't contain timestamps in all of the
log entries is os-collect-config which is arguably one of the most
important service logs we want indexed. We could simply just divert this
service alone to syslog but doing them all is more consistent with other
distros and how this will presumably work when ubuntu moves to systemd.

Change-Id: Ib8c1fc39d56b2b9c6d8e9b64a868def619aa2f1f
2014-07-03 22:49:17 +01:00
tengqm 6e6e4b8a85 Add heat support to os-collect-config.conf
This patch add a section to the os-collect-config.conf template so that
the 'heat' collector can get proper configuration arguments.

Change-Id: I070929fd3cee6683b9ec1f9b6772f9fb076f835b
Closes-Bug: #1334581
2014-06-26 17:54:07 +08: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
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 9481784a11 sort the element-deps to please dib-lint
Since I43fd90647acba400cea11c665fb587856514b0ee dib-lint
ensure the elment-deps file is properly sorted.

Change-Id: Ie0347951d99a227fe60530645eeda0f4aa55c325
2014-04-24 15:38:03 +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
Jenkins 78517e5a09 Merge "Create pip manifest files of installed packages" 2014-03-26 03:12:48 +00:00
James Slagle a2c1d15150 Enable os-collect-config for the package install
The packaged os-collect-config does not automatically enable the
os-collect-config service, this adds a step to do so.

Change-Id: Ifa536e5e0570ea7c7513f6e722d85ca6776b99a8
2014-03-25 16:40:29 -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
Jenkins 3815353d6d Merge "Explicitly install pbr via pip" 2014-03-24 23:24:33 +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 3769f6c6c3 Add missing +x
Adding another missed +x on a hook script. Luckily diblint is on the
way.

Change-Id: Ic6ef80137821ee14cdf57e87c17a8a2f3950c447
2014-03-23 16:53:01 -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
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 46223e263f Install os-collect-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: I262f1159ca58d6e225567d718460f78474f2db48
2014-01-13 15:12:32 +00:00
Derek Higgins 113924d45b Restrict mode of os-collect-config.conf
This file contains various access codes and shouldn't be world readable.

Change-Id: I1dbd5c3780e42531580833f2f4e0332f18702282
2014-01-09 07:59:34 +00:00
Ralf Haferkamp 2471efefba Set the correct path to os-collect-config
os-collect-config is installed in /usr/bin. This adjusts the systemd
service file accordingly to make it work for openSUSE. On Fedora the
wrong path didn't cause any problems because /bin is just a symlink to
/usr/bin there.

Change-Id: I2f02b12f9667920196084ee0abef1c9f676d413a
2013-12-18 15:01:48 +01:00
Mark McLoughlin c93a77f676 Add some more details about os-collect-config
Flesh out some details about the hoops you need to jump through to
integrate the cfn collector into a heat template. This info could
probably live somewhere else, but I figure adding here is a reasonable
starting point.

Change-Id: I163a4a7cc665292a814a693f83f947bb2b280970
2013-11-27 12:02:09 +00:00
Derek Higgins 16165ff827 Remove the systemctl daemon-reload commands
These aren't needed during an image build and keep getting
copied each time a new service unit is added.

Change-Id: I498a229b69e78a3eca06bf8691c13157ecd6739d
2013-11-20 09:10:34 +00:00