Commit Graph

32 Commits

Author SHA1 Message Date
Goutham Pacha Ravi 8cd2097190 Switch ubuntu image to Jammy Jellyfish
Move to the 22.04 LTS release. Also stop installing
python2, since its EOL.

Depends-On: Idd3e6a6fdb8cf13727cd674c76efd89b3aacfc52
Change-Id: I9b4c134ecc9279487e253fa3bc38ae32fe487ac6
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2022-06-09 12:33:49 +00:00
George Melikov 156d9e370b Fix typo for manilauser-ssh-authorized-keys
Change-Id: I481f822f3de873754737e5805bce2766cb37434c
2021-08-12 17:04:55 +03:00
Zuul 207e43a9aa Merge "Start ssh only after full boot" 2020-07-22 23:57:21 +00:00
George Melikov bc5e37ffd9 Start ssh only after full boot
Before this change instance may close ssh connection on boot with message:

"System is booting up. See pam_nologin(8)"
Connection closed by XXX port 22

, so manila think that password/private key is wrong and fails share creation.

Closes-bug: #1888569
Change-Id: I032e77e2f16e1d445c72eb3abd99a09c413dabe5
Signed-off-by: George Melikov <mail@gmelikov.ru>
2020-07-22 20:48:54 +00:00
George Melikov 8d0a0e8a52 Install qemu-quest-agent
It's needed for some cases (fox ex. online disk resize)

Change-Id: I136b46ea8f6f1630eb5691e9b6eeadcc92dd6197
Signed-off-by: George Melikov <mail@gmelikov.ru>
2020-07-22 01:15:31 +03:00
Zuul 2859569635 Merge "Change DHCP timeout" 2020-06-04 23:19:22 +00:00
Goutham Pacha Ravi f75519fba5 Refactor cephfs element
DIB ignores a plain "install.d" directive
silently currently, producing images without
the packages we asked for.

Use the "package-installs" approach to install
element dependencies. No configuration is added
at the moment, but may be required in the future.

Also install the "fuse" package to get the ability
to execute "fusermount" command.

Change-Id: Ifbd7344b20940575348a856521539425b34a4279
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2020-05-26 22:43:25 -07:00
George Melikov 1d9010cdb8 Change DHCP timeout
Manila service network may be large and dnsmasq
may be available slower than in 60 seconds.

Change-Id: I27e625ecccec0b7294bf0022f11bbd36d8ace5b4
Signed-off-by: George Melikov <mail@gmelikov.ru>
2020-05-26 17:17:35 +03:00
lkuchlan fa2177bdf6 Add support for CephFS Native
Elements have been added to support mounting
Ceph file systems.

Change-Id: I7516ca10ea9ba2606185395e8f8cedf8304d46fb
2020-05-12 08:12:05 +03:00
Tom Barron 53b7969bb5 Set .ssh permissions correctly
Owner was being set to manila but group was neglected.

Closes-Bug: #1480870
Closes-Bug: #1646135
Change-Id: I9bc4197221840b33ff5ea56a69d1dd282ee9003b
2018-12-31 02:14:52 +00:00
Tom Barron b81f12c8ac Fix "already-provided" CI error
by removing  the conflicting element dependency.

Closes-Bug: #1766098

Change-Id: I76f616343f73d00c32d6f8b988aa3fc79ad2e0a2
2018-04-22 11:49:43 -04:00
Ben Swartzlander ffabcc1a59 Add systemd support to manila-ssh
Because we're using ubuntu-minimal there is no cloud init support and
we have manila-ssh as a substitute. Manila-ssh was only designed to
work with upstart. This patch adds systemd support.

Change-Id: Id43dc8effb846dcaf68b50eace68df8a076899a1
2017-09-26 14:14:20 -04:00
Victoria Martinez de la Cruz 375ddd1e9e Add support for CentOS
This change aims to add the foundations for CentOS support
on manila-image-elements.

In this patch-set, the following has been modified

- Added elements for manila-centos-minimal
- Added elements for centos-nfs
- Added elements for centos-cifs
- Renamed all elements for the different protocols to distro-protocol
to facilitate automation
- Modified the main script to take the distro param

Follow-up patches will add centos-based elements
for all other protocols supported.

Change-Id: Ie1469a8b3973b9a15c3fa27688df3b7e7e8da688
Partial-Bug: #1675538
2017-03-28 16:21:10 +00:00
Victoria Martinez de la Cruz 5145607196 Adds support for NFS Ganesha
Elements were already available for use with containers.
A few updates on the elements were made in order to get
the latest changes for NFS Ganesha.

Closes-Bug: #1649404
Change-Id: I605e8a3793ec1dde1efcfcef2a84c42abe5219de
2017-03-23 21:02:28 +00: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
vponomaryov 5ddd59814a Use ubuntu-minimal instead of ubuntu-core
Support of ubuntu-core was dropped and now it is impossible to
continue using it. Therefore, start using ubuntu-minimal OS element
for building image.

Also, add 'other-requirements.txt' file with list of required system
packages to be installed prior to buidling image.

Change-Id: Ief7059b9e6cc2aad03c81225663f5313a8d2f5f2
Closes-Bug: #1586351
2016-05-31 19:43:31 +03:00
daiki kato 6d5bcf288a Fix typos
This patch fixes typos.

TrivialFix

Change-Id: Iddbe2317e7d160ca865e33e9c8cd19c3a51167de
2016-03-18 10:32:51 +09: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
Jenkins 32920834c0 Merge "Update system hosts file to understand local domainnames" 2016-02-04 06:41:28 +00:00
Jenkins 8687a1cd01 Merge "Install vim text editor" 2016-01-28 18:00:46 +00:00
vponomaryov 6fcc0179c5 Install vim text editor
Manila service image has old "vi" that provides very narrow set of
functionality. So, install better text editor - "vim".

Change-Id: I06443c7c9a3585c65b58b20919eb63727ffbeb62
Closes-Bug: #1535807
2016-01-28 12:55:44 +00:00
vponomaryov 004a4a1c4c Set bash as default shell
Default shell in manila service image does not allow to use history of
executed commands and lots of special actions, such as "home", "end", etc...
So, set 'bash' as default shell for manila service image to make life
of its users much better.

Change-Id: I35ae2e93cb7f81e6cb1a87a4d26a315785e6b078
Closes-Bug: #1535800
2016-01-28 13:50:02 +02:00
vponomaryov 327a968658 Update system hosts file to understand local domainnames
Currently Manila service image has no info about its local domainnames,
and recent Neutron feature [1] became incompatible with Manila because of it.
That led to b_u_g 1535692. Neutron started adding default DNS resolvers to
Nova VMs, and Manila was failing because of timeouts, since default resolvers
do not know this local machine domainnames. So, add static domainname info
to make new Neutron feature be able to work with Manila.

[1] I17a884f467d307432a06f67a9dd93ed2fa6081a3

Closes-Bug: #1535804
Change-Id: Icf7f189d621e9686c4bb449b5770b83e4bd072ee
2016-01-28 13:49:00 +02:00
vponomaryov 572cef52e2 Add ZFS element
ZFS filesystem is going to be used for replication feature by
Manila Generic share driver.
So, add appropriate Manila image element as optional and enabled by default.

Set env var 'MANILA_ENABLE_ZFS_SUPPORT' to any value other than 'yes' to
disable its installation.

Change-Id: If58186dc03d43430c1225e77aa80a1f85a62dd1b
Closes-Bug: #1538658
2016-01-27 19:06:57 +02:00
Igor Malinovskiy 70a9529609 Install cifs-utils with manila-cifs element
Install cifs-utils to be able to use manila-service-image
in tempest scenario tests.
2015-06-05 13:58:23 +03:00
Igor Malinovskiy 36ff48082d Update fetch-public-ssh-keys.sh
Increase timeout and exit on error.
2015-06-05 13:56:29 +03:00
Igor Malinovskiy 0648cb9801 Increase retry timeout in fetch-ssh-key script 2015-06-03 16:39:13 +03:00
Igor Malinovskiy d06057ef6b Fix bashate issues 2015-06-03 16:31:19 +03:00
Igor Malinovskiy e47c9839d8 Remove devuser element from dependencies 2015-06-03 12:04:18 +03:00
Igor Malinovskiy 58ebef302c Fix manila-ssh element 2015-06-03 10:46:28 +03:00
Igor Malinovskiy c9ce644f16 Init manila-service-image repo 2015-06-02 17:58:51 +03:00