Commit Graph

67 Commits

Author SHA1 Message Date
Paul Belanger 0ed7f22fdd Create diskimage_builder_pip_virtualenv_symlink variable
Expose the ability for a user to create a symlink to a diskimage-builder
virtualenv, this is usually needed when you start trying to version
different virtualenv installs.

Change-Id: I4bc65ffd38c7e37dc0f8a4de0b688f0a94d43e37
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2020-01-16 11:06:26 -05:00
OpenDev Sysadmins 54e7d5437c OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:52:08 +00:00
Paul Belanger 3d59601d71 Clean up punctuation
Change-Id: I0c525d406509fb655958d5c2a9a5f27c2a1457bd
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-12-18 20:21:52 -05:00
Paul Belanger 094984e65e Fix deprecation warnings
Change-Id: I08b17054d76d8c158ac10b1b7248ed98c2a523de
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-12-18 20:20:41 -05:00
Paul Belanger 393d9005a5 Stop gating on ubuntu-xenial
There is no issues running ubuntu-bionic, so stop gating on
ubuntu-xenial to save us CI resources.

Change-Id: I4ccae7bc251a7a9c52ae99dd5cd6ba7299806c80
Depends-On: https://review.openstack.org/623074
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-12-05 23:14:02 -05:00
LeopardMa 50f5692f1e Change openstack-dev to openstack-discuss
Change-Id: Ib41321e1525b7f3beed03255c08ab394867f5dca
2018-12-03 21:59:24 -05:00
Paul Belanger 0a051f0b81
Also switch windmill to fedora-latest
Change-Id: I6acc158dc2cb12acfda583f8c59d7e87f59e134b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-07-31 14:59:47 -04:00
Paul Belanger 84f3615e3b
Migrate to fedora-latest for fedora job
This means we no longer need to rename jobs every 6 months.

Change-Id: Icf44cf0b2f50dc197f9d506cd243f75fac502c88
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-06-18 21:19:16 -04:00
Zuul 2f02698343 Merge "Gate on ubuntu-bionic" 2018-04-27 13:10:54 +00:00
Paul Belanger 642874f1c0
Limit linters to current working directory
Change-Id: I3087ab08b598050bf2b66a6de805929d698063b9
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-26 14:51:09 -04:00
Paul Belanger 23fad87eb4
Gate on ubuntu-bionic
Now that ubuntu-bionic is officially released, we can gate on it.

Change-Id: I351eebe56600ab2725399d9be5e6805068c1b5bf
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-26 12:37:08 -04:00
Paul Belanger 8ca09dab7e
Bump minimal version of ansible to 2.4.0
Currently 2.4.0 is the oldest release of ansible, everything later is
EOL. Update our meta data into include this and the platforms we
currently tests with.

Change-Id: Ia49d4ff5a121cc521a65f80a3993283b407167c3
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-19 14:15:16 -04:00
Paul Belanger c0d64192cb
Remove tox functional
This is no longer used.

Change-Id: I997051d175ef2998e6bd9d8c87fad5780ca5965d
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-19 14:12:55 -04:00
Paul Belanger 584a86ece6
Pass list of packages directly to package task
There is no need to loop over the list of packages, this is actually
slower.

Change-Id: I24666d652cbb3806b418b7f0fb0839d4bb2614ea
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-14 16:21:31 -04:00
Paul Belanger 46856cf039
Default install method to pip
We want to encourge users to use the released versions of
diskimage-builder, so flip the switch to pip. We still support git and
will continue to test against it.

Change-Id: I460861a31eb186829672895dab33a1e9fd07fd03
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-13 20:26:20 -04:00
Paul Belanger c4a7ba26bb
Don't install diskimage_builder_build_depends for pip
When installing diskimage-buider from pip (pypi.python.org) there is
no need to install the build dependencies as we download the wheel.

Change-Id: I8a40bee4701bd72482e10ec5faf054ead26cbddb
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-13 20:24:52 -04:00
Paul Belanger a869c8661e
Refactor jobs to support pip / git installation testing
Because we want users to support both pip / git install methods,
refactor testing to support the testing of that.

Change-Id: Ida9cec271c83b8d66ab185b693077574a89091a5
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-13 16:57:14 -04:00
Paul Belanger 223e974abd
Remove centos-7 testing
As we are planning on moving to python3 only, we can't actually test
that on centos-7. This is okay for now, since we provide testing on
fedora-27.

Change-Id: I8f2e9fafb6e5cf90efa25ba59d57e8aab00aee02
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-13 16:26:07 -04:00
Paul Belanger c88354aeff
Add windmill-jobs-bionic jobs
Change-Id: I84d794513016368bf7ad2f73e17dd33784f9931c
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-03-06 21:15:28 -05:00
Paul Belanger 57ce749903
Add testing for ubuntu-bionic
With ubuntu-bionic nodes being online, we can start testing against
them.

Change-Id: Id71f0563844641929c360fbcf4186ccea92d33a4
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-03-06 14:18:20 -05:00
Paul Belanger c9584a7e66
Update diskimage_builder_git_dest location
Stop using /opt folder to store the location of git checkout. We don't
actually need to be root user to do that.

Change-Id: I0e60ffe109e467d55d76fba4d0eb32e3de05c39f
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-03-04 20:20:02 -05:00
James E. Blair c04806f349 Zuul: Remove project name
Zuul no longer requires the project-name for in-repo configuration.
Omitting it makes forking or renaming projects easier.

Change-Id: I96e83eec1dec5e4a91107c48b84d73d7fc6ece8e
2018-02-16 23:23:50 +00:00
Paul Belanger 4eb112140f
Migrate testing to fedora-27
Fedora-27 is the latest stable version, we should be testing with it
now.

Change-Id: I2c5439de9c2754979a0b03eff3528a786085ba79
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-02-12 10:16:47 -05:00
Paul Belanger 42f6196e75
Manually install EPEL dependencies
Sadly, we need EPEL for some centos dependencies. Manually install
them to avoid the need of enabling EPEL all the time.

Change-Id: Ib64502338633402de7b267b166cf1da975ff4b17
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-02-12 10:15:17 -05:00
Paul Belanger 1842d7bed4
Add zuulv3 jobs support
Now that zuulv3 is live, we can switch to native ansible jobs.

Change-Id: Idb7b57149def695c73f3d22e6500507e66e9189d
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-11-13 20:55:48 -05:00
Paul Belanger 63c794fddb
Create diskimage_builder_pip_virtualenv_python
Allow the user to pick the version of python needed for the
virtualenv.

Change-Id: I2e544f8bdd48cdbdb973dec844a2a9b56c473aae
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-05-30 15:01:14 -04:00
Paul Belanger fcda618a71 Remove redundant pip install task
Clean up our install tasks by using an include.

Change-Id: I66617254524f21c02b97e5eade6ad14688c6249e
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-01-22 16:28:27 -05:00
Paul Belanger 7651bd86a3 Add support to clone a refspec
Expose the ability for a user to pass a refspec to our git command.

Change-Id: Ic1ead9197367c2aac36c56079215a1999ea9e8e6
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-01-08 16:55:31 -05:00
Paul Belanger 8f2f8b67d3 Add missing runtime dependencies
Change-Id: I46c2262092b06dd9559dd347c6efef38def20e51
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-12-30 20:47:36 -05:00
Paul Belanger a2cfad3dc4 Add gnupg as dependency for debootstrap
This is needed to support Fedora.

Change-Id: Ifad8c195058f051427b82e9dc6d3f2df6af68f9d
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-12-27 16:20:41 -05:00
Paul Belanger d79e438172 Add yum-utils dependency for yumdownloader
Change-Id: I606b79117cec894e0d3275bc6890c7e45e98d8bd
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-12-12 18:51:57 -05:00
Paul Belanger 6fc95333b5
Run functional tests against 127.0.0.2
Both connection local and 127.0.0.1 have special meaning for ansible,
where will use the local filesystem vs SSH to the loopback adapter.

So, we use 127.0.0.2 to force ansible to make an SSH connection.

Change-Id: I7c7942e24549453b32a6d904a598b7d6ef74bd81
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-09-05 11:15:31 -04:00
Paul Belanger 82f5f124b2
Fix typo with diskimage_builder_git_dest
Change-Id: I87c7a2ceca5a674cb9b6c0df37fbcd887e92a3b9
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-09-04 09:39:42 -04:00
Paul Belanger 227e3537c9
Add nodepool_task_manager to expose control of tasks
There might be a time were we only want run the pre task, so rather
then copying the code into another modules, just allow the user to
override the task list that runs.

Change-Id: I84a4fc0a63e115809e0ca29a919b4fbde0960742
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-09-04 09:18:54 -04:00
Paul Belanger 335f22c6ac
Remove epel-release / python-pip from role
These are dependencies our role requires. As such, they should be
installed by the user.

Change-Id: I6039ac5e8483084c08fb98adc0ae855af35da0e4
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-09-03 22:28:22 -04:00
Paul Belanger 3d595ea489
Add diskimage_builder_pip_virtualenv
Change-Id: I235ecefc85662129e950dd1977d4646b6f985eea
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-08-31 14:11:35 -04:00
Jenkins ccbc699bdb Merge "Move other-requirements.txt to bindep.txt" 2016-08-22 19:28:09 +00:00
Paul Belanger 7f49dd8fac
Fix path issue with roles_path
Change-Id: If6557b1a868e014cc54f0f9a42220d3517aab04b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-08-12 20:45:02 -04:00
Andreas Jaeger 128d28a17e Move other-requirements.txt to bindep.txt
The default filename for documenting binary dependencies has been
changed from "other-requirements.txt" to "bindep.txt" with the release
of bindep 2.1.0. While the previous name is still supported, it will
be deprecated.

Move the file around to follow this change.

Note that this change is self-testing, the OpenStack CI infrastructure
will use a "bindep.txt" file to setup nodes for testing.

For more information about bindep, see also:
http://docs.openstack.org/infra/manual/drivers.html#package-requirements
http://docs.openstack.org/infra/bindep/

As well as this announcement:
http://lists.openstack.org/pipermail/openstack-dev/2016-August/101590.html

Change-Id: I7bc7f10a1d7f147b9997674c595011ae329839a3
2016-08-12 20:50:17 +02:00
Paul Belanger 6c7be31112 Build centos-minimal on debian hosts
We were missing the yum-utils package for yumdownloader.

Change-Id: If803f126a00bdca81d8e6061a929a8b9d65e751f
Depends-On: I9127bca54331d37b95a1ac9e560dea0dfe4a44f5
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-04-01 16:19:45 -04:00
Paul Belanger e8dfd57611 Remove curl dependency
This has been fixed in upstream CI.

Change-Id: I900b8328d4252826ae6524e3df2a7772948c8dd0
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-03-28 10:28:39 -04:00
Paul Belanger b94355ee8b More consistent package name
Change-Id: Ia33176acbaf6dca998e385ff75f263d27c0070c1
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-03-08 10:30:22 -05:00
Paul Belanger f9ffe93753 Initial commit for bindep requirements
Change-Id: I277094358017c7f66d6634da0ae2304c0b1bb7a0
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-03-02 12:34:14 -05:00
Paul Belanger c49ef94fc3 Fix deprecated warnings
Change-Id: I4df09103ba1d796f64ec10b55f224f29a7264f1f
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-03-01 16:06:40 -05:00
Paul Belanger f65ee7e06b Reduce usage of becomes for testing
Change-Id: I8b87fb5eda80a8e5198f0ad6d27c53a7437efe02
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-03-01 15:57:48 -05:00
Paul Belanger c2421359cb Specific hostname for testing
Current tests are using localhost, which is fine but may not be real
world.

Change-Id: If6a8fcbe0736b6958005fba84a5c78058d9dd233
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-03-01 15:56:31 -05:00
Paul Belanger ab5ae70356 Simplify pip install options
Using the omit template, we can now better control with pip options we
set.

Change-Id: Id675758efbffb7b9a596bab9c0cccb0e1291c82e
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-02-19 17:13:15 -05:00
Paul Belanger e6e2da2c33 Default diskimage_builder_install_method to git
Currently all other ansible roles default to git, so we should do that
here too.

Change-Id: Ibee125fddd9c4d9bdfea5fac6cb78059001c64e2
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-02-15 14:03:10 -05:00
Paul Belanger 92f5cac1e7 Fix ansible syntax for package module
Change-Id: Ic969211c331c5f8d03d7bf485d02cd9bcef4d389
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-02-15 14:01:02 -05:00
Paul Belanger df3ca943d3 Create package install method
We now dynamically include package based on install_method.

Change-Id: Ie8a7102cc1d38651fa565896e4c51d7065462c35
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-02-15 13:57:27 -05:00