Commit Graph

55 Commits

Author SHA1 Message Date
Ghanshyam Mann afc328f084 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: Id4d49b7bd8745828366a4ba21ff9c9ffbebbe130
2024-02-24 11:41:13 -08:00
OpenDev Sysadmins 67c604f83a 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:45:24 +00:00
Doug Hellmann 8df33370cc fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I1efdf4f86f5a9bd02fa99b0c1fb430cf621bb7e3
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 19:03:50 -04:00
qingszhao 5def22d10c import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Id99b631d05c93d300a4fe2a4af9eea84fa7a903b
Story: #2002586
Task: #24341
2018-08-24 04:57:01 +00:00
Sagi Shnaidman 964784880d Remove RH1 check OVB jobs from configuration
Remove OVB check RH1 jobs from configuration for this repo
Related-Bug: #1744763

Change-Id: I992b7fd4494b89f08f52d7b85632a77680f9b035
2018-01-22 19:30:21 +02:00
Emilien Macchi 4139f47766 zuul: add tripleo ovb ha job
We're migrating to zuul v3 layout, so let's run the new job.

Depends-On: Iaa85a8326e746604966a9c1bb4cc85f44e92299b
Change-Id: I65a52db87df1928c683052fabe65a0fee52905c4
2017-11-20 07:01:30 +00:00
Andreas Jaeger 6771c138d1 Use functional tox environment
Create new functional tox environment so that we can use it instead of
func environment to allow creation of cross-project
openstack-tox-functional job.

Depends-On: Ibebf9d0eeccabaefa2777a43592a72d19d064b6b
Needed-By: Ifa4c20cff72820a0016bef8dcdd36647ae7359d3
Change-Id: Ied08d83177b9d52b6eb8e4987f444230ac4ebfdb
2017-11-04 16:58:17 +01:00
Flavio Percoco 694d2988cb Show team and repo badges on README
This patch adds the team's and repository's badges to the README file.
The motivation behind this is to communicate the project status and
features at first glance.

For more information about this effort, please read this email thread:

http://lists.openstack.org/pipermail/openstack-dev/2016-October/105562.html

To see an example of how this would look like check:

https://gist.github.com/1639ffc79be0cebf7ba162468f6c9ee5

Change-Id: I38d14e650166fbb4e5d8d4bcf8c9f331e7255937
2016-11-25 18:43:25 +01:00
Ian Wienand 51661c33a5 Show tracing around sourcing environment.d files
Sourcing of environment files is a bit different than running scripts,
because they are imported into the current environment.  That means
that if they are fiddling with "set -x" you can get odd things in the
output -- for example, if one environment file enables tracing then
all proceeding sourcing will have it on, but all the files sourced
before will not have output.  This is super confusing.

It's also very helpful to see how things are being expanded as they
set environment variables.

Thus I think the best idea is for environment files to leave tracing
alone and dib-run-parts can a) give a useful output about what file it
is sourcing and b) enable tracing around the import, then restore it
to the previous state afterwards.

Change-Id: I29f7df1514aeb988222d1094e8269eddb485c2a0
2016-10-20 13:30:41 +11:00
Jenkins 67fc832177 Merge "Source environment files in a subshell" 2016-06-03 01:39:50 +00:00
Andreas Florath 8849712178 Use 'output' function instead of 'echo' for statistics log
In bash the only sensible way of returning a string from functions
or scripts is via stdout.
dib-run-parts not only 'returned' the output of the called scripts but
also some statistics / performance output.
Other parts of the script already used an 'output' function so
the statistics output was adapted to also use this kind of function.

In addition three simple test cases are implemented to check
the basic functions of the script.

As a result the log-output of the dib-run-parts is somewhat cleaner.
It also makes debugging of the called scripts easier.
This change is the precondition for simplification of functions like
diskimage-builder's eval_run_d.

Change-Id: Ie2f0332359a72ca7ab03f94b7573e073df714a97
Signed-off-by: Andreas Florath <andreas@florath.net>
2016-06-02 12:09:43 +10:00
Ian Wienand 88097e830f Source environment files in a subshell
By sourcing the environment files directly into the running process,
dib-run-parts can pollute its own environment.  For example, if an
environment script enables tracing (set -x) then that enables tracing
for dib-run-parts; particularly annoying as it then spews a bunch of
stuff relating to the profiling.

Move to sourcing the environment files in a subshell with the scripts
to be executed to keep things separate.

Change-Id: I1e39822f218dc0322e2490a770f3dc867a55802c
2016-06-01 09:42:25 +10:00
Ondřej Nový ec92ab4981 Deprecated tox -downloadcache option removed
Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: Ib33336d8aac1c8d27958afe1a60b973b06360513
2015-12-11 22:58:23 +01:00
Martin André ddd80eac8d Depend on awk rather than python
This allows to run dib-run-parts on systems where python is not
installed, such as Debian docker image. Generally, awk is more likely to
be available than python.

Change-Id: I26d7ad55a56ca4785a779f576e2da50a69400563
2015-02-18 15:51:52 +09:00
Jenkins a541863d89 Merge "Add missing LICENSE" 2014-10-07 14:26:40 +00:00
Jenkins bfe7957863 Merge "Sort the list of scripts in the profile view" 2014-09-29 10:23:38 +00:00
James Slagle 8ee133c3e7 Add missing LICENSE
Pretty sure this should be required.

Change-Id: Ibd35556d8a5d5e55360908059a93e48de7982215
2014-09-18 20:26:52 -04:00
James Slagle 480e1e7ec8 Update dib-run-parts
dib-run-parts in dib-utils had several fixes missing that had been
committed to diskimage-builder. When diskimage-builder switched to using
dib-run-parts from dib-utils, we lost these fixes. The switch over
happened in Ia0a0df7784a14c49b5c47ac0b03e6c2602c84b3b

These are the fixes from diskimage-builder that this commit adds back:
I44cf98dfc80cfcaec54b88cc83be80a3dbf2cec3
I24fd76c2b4f66b8036010b5079db39ead729abee
Iad2d490c86dceab148ea9ab08f457c49a5d5352e
Ieb48faacb4c96b7b358771d70c17f2f22d0354f4
Ia68853505485fefbf0890313456e7edb6097666b
Ibfb562c5970b40598fc95da1e8d4beb9d51d7612

Change-Id: Ice4b6a4b3d36a02099a682ae8cda4721211d51d9
2014-09-18 09:47:45 -04:00
Jenkins 99949120d0 Merge "Use --tmpdir with mktemp" 2014-08-28 14:56:50 +00:00
Robert Collins c077df086b Remove hardcoded version.
We use semantic versioning, not pbr's pre-version facility. This
line causes local package builds to have the wrong version, and
pbr will in future detect this and error.

Change-Id: I3f4504ac2e9c49fd1bba964999e789d7a6e918bf
2014-08-20 13:39:02 +12:00
Jenkins e9ca8f88db Merge "Set LC_ALL=C into dib-run-parts env" 2014-07-28 09:02:51 +00:00
Pino Toscano 494c067930 Sort the list of scripts in the profile view
When showing the timings of the executed scripts, sort the scripts in
the same way they were executed. This eases the comparison between runs
of dib-run-parts.

Change-Id: I171499c30e1a992d7225be8a9dc00e0f03ec46b0
2014-07-25 11:33:00 +02:00
Pino Toscano 5327bf9a08 Use --tmpdir with mktemp
Pass --tmpdir to mktemp so the new temporary directory is placed
within $TMPDIR, or falling back to /tmp. This way dib-run-parts can
use whatever the temporary directory is, instead of using an hardcoded
/tmp.

Change-Id: I6b55e3c6c1fe22108ea555d3766e0323695bd96d
2014-07-25 11:01:32 +02:00
Alexis Lee dade7ef1aa Set LC_ALL=C into dib-run-parts env
Force LC_ALL to C to allow printf to work independently
from the locale. Gives invalid number error if run in non-english
locale.

Port to dib-utils of: Ia68853505485fefbf0890313456e7edb6097666b
Change-Id: Ibbfa7a4a91dca72b16bb8fcb9602b71eccf54008
2014-07-14 14:58:59 +01:00
Alexis Lee 7c03ab48a1 Don't match editor backup files in environment
The current glob match for environment files can source editor backup
files (foo.bash~) which will override the real changes you have made.

Other parts use the regex to avoid matching such files, so do
the same for environment file matching.  Note this has to match "."
unlike the other regex, as most env files are "foo.bash"

Port to dib-utils of: I934486b3ff5884063d29c6d9b66fd9b11140464c
Change-Id: I11c030e8556d89c240e36233b249f0c1d9f80908
2014-07-14 08:50:51 +01:00
Jenkins 6ab247204e Merge "Add tox.ini" 2014-06-25 07:24:03 +00:00
Ben Nemec 4005611e2d Add tox.ini
This is required to be able to build and release the project using
the standard infra tools.  Since there currently aren't any unit
test or doc jobs defined for this project, only a very basic
tox.ini is being added.  It can be filled out later as more jobs
are needed.

Change-Id: I121405d4ec82a4d8252098319fce0a9f5b5bfb4f
2014-06-24 17:04:07 +00:00
Giulio Fidente 45b7cf44bc Ensure dib-run-parts profiling works with py3 and py2
This change adjusts the "inline" python function used to profile
run-parts duration to make it run successfully on both py2 and py3

Change-Id: If1e6ac6fe528ca0225dcdbe5774545512be9d13a
2014-06-06 18:35:18 +02:00
Ben Nemec 379d7ad51c Add build files so this can actually be packaged 2014-04-25 18:18:23 +00:00
Ben Nemec 3c377b5b24 Move dib-run-parts into bin/ 2014-04-24 22:01:36 +00:00
Ben Nemec 703c942b47 Fix up diskimage-builder references
There are a few things leftover after running filter-branch on the
repo.  This removes them.
2014-04-24 21:48:31 +00:00
Ben Nemec 4c977948fe Fix set -eu and pipefail failures
Fixes problems found by set -eu and pipefail, including:
-Many unset variables
-Commands that can fail under normal circumstances, which breaks
with set -e.  This change swallows those expected errors to allow
our existing error code to handle them.
-The dkms element was not finding Fedora kernel versions correctly.
This may be an issue for other distros too, but since Fedora was
working fine without this functionality I only changed it to print
a warning message rather than failing the build when it happens.
-The ramdisk init script will not be set -eu because if it fails
the result is a kernel panic, which can be tricky to debug.
However, in testing with set -e a few failing commands were found
and have been fixed in this patch.

Change-Id: I44cf98dfc80cfcaec54b88cc83be80a3dbf2cec3
2014-04-03 17:49:18 -05:00
James Slagle 97b8ffcc46 Don't hardcode environment.d
Don't assume environment.d is always under /tmp/in_target.d. This makes
dib-run-parts more flexible, and less specific to diskimage-builder. For
instance, dib-run-parts is already used by os-refresh-config, but
/tmp/in_target.d/environment.d is never going to exist when it's called
by os-refresh-config.

This is useful b/c elements can now install os-refresh-config scripts
under /opt/stack/os-config-refresh/environment.d to influence how
further scripts are run. Specifically, the OpenSuse packages prepend the
OpenStack user accounts with "openstack-". Instead of checking for which
users exists with an if/else in all the os-refresh-config scripts that
need to do user related things, we can just update the scripts to use
$NOVA_USER, etc. The OpenSuse element can then install a file under
/opt/stack/os-config-refresh/environment.d to set NOVA_USER to
openstack-nova. We could have files that declare defaults as well within
each specific element, or just set a default variable at the top of each
os-refresh-config script.

Change-Id: Iadbfad995da657e2965fd55fc4ba3a88138b4cfc
2014-02-11 08:33:45 -05:00
Steve Kowalik e06cb80cb6 Create a new baremetal element
Rather than using a script to mount the image using nbd to extract the
kernel and ramdisk, make a new element called baremetal, which contains
a cleanup.d script that will copy them out to <image name>.{vmlinuz,initrd}.

Closes-Bug: 1224669
Change-Id: I8f3569aa12148d18b1c8242b6fbbd8857894b26f
2014-01-20 23:00:21 +11:00
James Slagle cd1ac39792 dib-run-parts should dereference symlinks
dib-run-parts should dereference symlinks, and if they point to an
executable file, execute that file as a script. This can be accomplished
by using the xtype predicate in the find command instead of the type
predicate.

This change is needed so that we can dynamically symlink hook scripts
into hook directories such as install.d at runtime to support different
install types.

Change-Id: I933e7f4b4dcf16956841d8c14aa63b0f9a18fc5d
2014-01-15 14:54:46 -05:00
Sushil Kumar 27ce3a4059 Updates .gitignore
To ignore swap files from getting into repository
currently the implemented ignore is *.swp
however vim adds more swap files if these files exists,
so improving this with *.sw?

Change-Id: Ic4a1a85dfdf21b7bd0abdf16a205446febab2fcd
Closes-Bug: #1255887
2013-11-28 09:20:58 +00:00
JUN JIE NAN 5b7f046ee5 Enhance dib-run-parts usage message
and fix $1: unbound variable issue when run dib-run-parts --list.

Change-Id: Id18e21683f785f318bce11d401cb4f826bed1b01
2013-11-27 17:38:19 +08:00
James Slagle 2a0b8cc8db Add *.egg to .gitignore
Change-Id: I398d07cf2c1e07554566711b4904ccbb46df2bcb
2013-11-12 09:36:31 -05:00
Tomas Sedovic 70092d0876 Set locale for the profiling printf command
When LC_NUMERIC is set to a format that doesn't use a decimal point,
`printf` will fail.

Change-Id: Ie6c4d075928f47b17cc413d537fc31c9d0734bdb
Signed-off-by: Tomas Sedovic <tsedovic@redhat.com>
2013-09-30 12:10:07 +02:00
Chris Jones 43f720c2e3 Add --list support to dib-run-parts.
Our custom dib-run-parts now supports --list for better compatibility
with some OS-provided run-parts tools.

Change-Id: I2feb615b2094d9d6522bfe9b422362223bb8e652
Closes-Bug: #1190521
2013-09-04 09:43:11 +01:00
Monty Taylor 564a7c7712 Update stackforge references to openstack
Change-Id: I17e896eddf6fe84f4784cac8231552ee3d21aa39
2013-08-17 22:58:20 -04:00
Steve Baker ca63e36204 Package with pbr.
Uses pbr-0.5.20 glob support to install elements, lib and scripts.

Change-Id: Ie466e753f6e75a943ced1a2939c9bb27aec4a6b0
2013-07-08 11:54:40 +12:00
Tim Serong 96a11fa46a Enable running disk-image-create on SUSE Linux
- Ensures /sbin and friends are in $PATH when invoked (without this,
  various sudo invocations fail in exciting ways).
- Use dib-run-parts in lib/common-functions instead of run-parts
  (neither SLES nor openSUSE ship run-parts).
- Ensure dib-run-parts doesn't descend into subdirectories (same
  behaviour as run-parts).
- Move dib-run-parts from root.d to bin (cleaner, consistent with
  other elements with separate bin scripts).
- Tested by building Ubuntu image on openSUSE 12.3.
- Note: this doesn't add support for creating SUSE images, it just
  lets you run disk-image-create on SUSE-based distros.

Change-Id: I906c6bc3cf51cdf2c4415adeae1ca250faac25e1
2013-07-22 20:06:54 +10:00
Chris Jones 86a5288ff5 Build ramdisks in an image chroot.
Ramdisks are now built inside a chroot which is built by the normal
image build process. Doing so improves our independence of the
precise state of the build host.

This fixes bug 1194055.

Change-Id: Ibc254fbb9e7b404b5f38c1b35bcde8a4136e8e28
2013-07-01 17:20:15 +01:00
Robert Collins 01723ce2d8 Build images using loopdev instead of qemu-nbd.
Qemu-nbd does not perform well with older versions of qemu due to
the lack of writeback caching mode. It also only builds qcow2 images
and there is a desire for raw image support. Finally, qemu-nbd makes
it very difficult to build images concurrently due to the somewhat
opaque nature of how it selects a /dev/nbd# device. losetup, on
the other hand, makes this process very straight forward.

Change-Id: I309fad8af4fd1e8d1720c17b65e1897a76d5e897
Co-Author: Clint Byrum <clint@fewbar.com>
2013-04-01 17:25:25 -07:00
Robert Collins 894b6d4b86 Delete elements moved to tripleo-image-elements.
Change-Id: I062d3dfb538682d72011307e8b96672e8f0844a5
2013-04-05 15:27:18 +13:00
Clint Byrum b74a24cad9 Fix os-refresh-config failing without scripts.
It is valid to request os-refresh-config without putting any scripts in
the element root. This fixes failing builds of heat-cfntools.

Change-Id: I4f70b33e453399ff5baa48919557995a6eb27520
2013-03-18 15:38:06 -07:00
Robert Collins 1a64272454 Move initial root contents into a hook.
This is a necessary but not complete step towards supporting Fedora and Suse
distributions. Further work is needed (e.g. to quiesce daemons on
installation).

Change-Id: If3ea6093d41a21de755db52328226b84b5a3ede6
2013-02-11 17:01:36 +13:00
Clint Byrum 9f95046f4e Make it possible for openstack-CI to run tests
Per http://wiki.openstack.org/ProjectTestingInterface we enable all
of the commands except build_sphinx because we do not have any sphinx
documentation as of yet. Includes babel support though there are no
properly internationalized strings just yet.

Change-Id: Iae6e6b3f9e605106f4575196fa5527d2187255df
2013-01-24 09:42:57 -08:00
Clint Byrum 6e194048ff Add a simple implementation of element dependency
This adds a new optional file to the root of elements. The
file lists dependencies which will be added to the list
requested by the user during disk image creation.

Change-Id: Id71c3b333563604bbbaf90f9cf40e24fa9738fc8
2013-01-21 17:35:31 -08:00