Commit Graph

18 Commits

Author SHA1 Message Date
Takashi Kajinami c49e4630c0 Drop unnecessary export
This is follow-up of 18b84b1d2c and
removes the unnecessary 'export' added by that change.

Change-Id: Ibdf0a89df4b0dc1ac771132fa12742adabce90b8
2024-01-30 10:02:35 +09:00
Takashi Kajinami 18b84b1d2c Fix installation of EPEL in recent versions
The current hard-coded rpm url does not work in CentOS/RHEL > 6.

Also we have to use dnf instead of yum in recent versions (like CentOS
>= 8).

Change-Id: I3b0be9bd864a611d330b06a95913af8a12468200
2024-01-26 06:57:55 +00:00
Goutham Pacha Ravi 7725e2cbbf Ignore *.service files when linting bash scripts
Prevents this bashate warning:

./elements/manila-ssh/install.d/fetch-public-ssh-keys.service:1:1: E005 File does not begin with #! or have .sh prefix

TrivialFix

Change-Id: I9e4e6b96730ddc62ac1094ec4af0c84863acc60f
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2020-07-29 13:24:37 -07:00
Goutham Pacha Ravi 873527d746 Native Zuulv3 scenario test job
Replace the "manila-tempest-dsvm-generic-scenario-custom-image"
job with a native Zuulv3 style job that does not use
the deprecated devstack-gate project. This new test
job runs integration NFS and CIFS tests against a newly
created test image that is used as the service
instance image, as well as the client image.

Change-Id: I3d2345e80f3bc18558d4cc6cc58108ff63119460
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2020-07-23 22:20:34 -07:00
Goutham Pacha Ravi a833b762d7 Modify job to build images
We currently only build the generic driver
image with the job "manila-image-elements-buildimage-generic".
Since we'd like to use a cephfs based client image,
we can reuse the job to produce two images instead
of one. The new job "manila-image-elements-buildimages"
produces two images: "manila-service-image-cephfs-{tag}.qcow2"
and "manila-service-image-{tag}.qcow2"; where the
tag corresponds to the version of this project.

The job also creates a soft link of the tagged images
with a "-master" suffix instead of the tag - this
is useful for CI jobs that don't need to worry
about changing/using the latest tag.

Change-Id: I60c6b38b5d5de7649c0d760519a79288fafca1e3
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2020-05-21 15:44:12 -07:00
jacky06 67b317ce82 Sync Sphinx requirement
1. Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.
2. Update the UPPER_CONSTRAINTS_FILE for tox[1]
3. Update some URLs to latest

[1]: http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: Ibe8c402c2817c31748e6a4b8344024a276609260
2019-06-25 14:36:09 +08:00
Tom Barron 3d78b1e2a7 Clean up image build script.
With the dependent changes, we no longer attempt to use a local
webserver to hand off newly created manila service images.

So simplify this script to remove the branch that sets up this
local webserver.

Depends-on: https://review.openstack.org/#/c/623551/
Depends-on: https://review.openstack.org/#/c/623330
Change-Id: I5795928d6de64ea6602141f494252d7b75fdfbe9
2018-12-18 20:46:26 -05:00
Tom Barron f0fbd9e365 Save service image URL properly
Put the image name in a file for retrieval by jobs that
need it so they don't have to play (buggy) tricks with
git to get it.  Also ensure that debootstrap is installed.

Depends-on: https://review.openstack.org/623551
Closes-bug: #1807969
Change-Id: I6dfeb5fb236579aa1755c6806f9ffc397690fba6
2018-12-18 20:44:19 -05:00
vponomaryov 0b656453f0 Allow built image be available via local webserver
It will be used for testing of newly proposed changes
to this project in tempest CI jobs.

Change-Id: I74d118b6661fe7683f505706c67a793700844af3
Depends-On: I005d1b204ea25ced8913351d19eac282ca465fb6
2017-04-03 14:57:36 +03:00
Tom Barron d0da393ac6 Suppress some bashate warnings
When running ``tox`` for manila image elements bashate warnings
are emitted for lines that are too long.  Suppress these since
we have no intention of enforcing that requirement.  Also add a
shebang to the top of a shell script, which does no harm (even
though it is not needed when sourcing the script to set env files)
in order to make another warning go away.

TrivialFix

Change-Id: I7f2f2723f99d64a0e28b4d0fe43b79e7201f6121
2017-01-16 14:05:50 -05:00
Victoria Martinez de la Cruz 288f6c2f97 Removes LXC/LXD support on manila-image-elements
The support for LXC/LXD was added as part of the initial effort
to develop a container driver for Manila which was later on
abandoned. Despite of that, the code in the manila-image-elements
remained.

This patch set removes LXC/LXD container support in
manila-image-elements. Code-path used for generation of Docker images is
preserved.

This will help for the parallel effort of making
manila-image-elements usable by end users.

Change-Id: I99c6a7fbf2b2fb0cebb7b16d94c66f807e7ac7ef
Closes-Bug: #1646615
2017-01-10 14:15:24 +00:00
Alexey Ovchinnikov b8ce11524a Add tox job for building Docker image
Add new job 'buildimage-docker' which produces a compressed
image from which a Docker container can be started. This
container is designed to run Samba.

Change-Id: I499fa1850d3ad197cab5f742bfca1a9f074e9a8b
2016-04-15 15:09:07 +03:00
Igor Malinovskiy 796f168c5c Add tox job for building LXD image
Add additional tox job 'buildimage-lxd' which produces
lxd metadata package and rootfs with installs
nfs-ganesha, unfs3 and cifs.

Co-Authored-By: Alexey Ovchinnikov <aovchinnikov@mirantis.com>

Change-Id: Ia5a4701a828aeef93840f9c0a0e1d0bc0f4a5a2e
2016-03-09 11:37:27 +04:00
Ben Swartzlander 9637c86877 Don't run bashate on conf files
Bashate seems to be running on many files it shouldn't. There
is an error related to a conf file, so I'm explicitly excluding
conf files. Also reformat the run_bashate script so it doesn't
warn about itself.

Change-Id: I3986ecefcfb91c6a090697c782371dd100dc0d67
2016-03-02 16:43:00 -05:00
vponomaryov f65fb8566c Make CI 'buildimage' tox job verbose
It is very useful to have detailed messages in CI logs for case we have
errors. So, enable it for CI.

Change-Id: Icf943dfababad8f6a99c2a754a753a40be9457b1
Closes-Bug: #1538662
2016-01-28 11:55:01 +00:00
vponomaryov 2d3e436ab5 Fix name of CI script
Gate job for building image fails because it cannot find
file "tools/gate/build_images" that should be named "tools/gate/build-images".

Change-Id: I57bebc790235ebc24748d7ec7367d0f2e1b5a14a
Partial-bug: #1504530
2016-01-20 13:55:54 +02:00
Igor Malinovskiy cc1a8ba6b9 Install dependencies automatically
Install system packages needed to build manila-image-elements.

Change-Id: Ia1fef024f9188869a1993604dcfbd09499700515
Closes-Bug: #1504530
2015-11-16 16:42:13 +02:00
Igor Malinovskiy 50336185d9 Align project with default openstack project structure 2015-06-03 16:18:32 +03:00