- 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
In opensuse the service files are located in /usr/lib rather than /lib. This change adds this path
as an option.
Change-Id: I99c2db557a2290c3860bb41233d7efc35d03be0b
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
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
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
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
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
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
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
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
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
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
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
The packaged os-collect-config does not automatically enable the
os-collect-config service, this adds a step to do so.
Change-Id: Ifa536e5e0570ea7c7513f6e722d85ca6776b99a8
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
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
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
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
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
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
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
These aren't needed during an image build and keep getting
copied each time a new service unit is added.
Change-Id: I498a229b69e78a3eca06bf8691c13157ecd6739d
diskimage-builder provides a helper script + env variable
to determine, which init system is used. We should use them
in elements instead of manual checks after update of raring
cloud images broke "if [ -d /etc/systemd/system ]" test.
Related-Bug: #1251610
Change-Id: I6d27491302ff0c4c6de82d6d60fc80e83fec519e
Some other -dev libs end up pulling it in, so this was not detectable
when things depended on os-collect-config. However, in order to compile
lxml we need libz-dev.
Change-Id: I8dd3a93b71b87e40977f85755ac2a56d6740399a
Os-collect-config minimally needs to be told what command to run. The
first time it runs it will detect the Heat and/or ec2 metadata change,
and run os-refresh-config, which will write out its configuration again.
After the command returns os-collect-config is expected to re-execute
itself to grab this configuration.
Change-Id: I3294e251a7a3373adb1e994eef7ada99aab8282a