Commit Graph

46 Commits

Author SHA1 Message Date
Takashi Kajinami e181dd6926 Adapt to new versions
This updates a few files to adapt new version of software, especially
tox and setuptools.

Change-Id: Ifd90a45b8bda78008f40cb3b713d9dee6e76bd56
2024-01-26 16:20:03 +09:00
Goutham Pacha Ravi 1c16a41181 Drop legacy-base from manila-test-image-build
We don't need the legacy and deprecated zuul-cloner
approach if we rewrite the job in native zuulv3 style.

Change-Id: Ifc6d592b8b7cf0e802ee11be837ebd4a3b55ea9b
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2020-08-17 09:56:22 -07:00
Goutham Pacha Ravi 037158d760 Remove tox env for python2.7
Python 2.7 will reach the end of its
life on January 1st, 2020. Since it
won't be maintained after that date,
there is no need for this tox
environment.

Change-Id: I24bd15537db2ac48d6e27ade19c5edf83034f5e6
2019-10-24 22:30:14 -07:00
OpenDev Sysadmins e75f49ce09 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:40:21 +00:00
Ian Wienand d81ded6e3e Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: I689e0ead3d74dbfc2fa9d32ca3a95d8246512512
2019-03-24 20:34:10 +00:00
Andreas Jaeger 855f132414 Import legacy job
Import legacy job legacy-manila-test-image-build and rename it according
to Zuul v3 naming conventions.

Change-Id: I9bb1dd0acb8a55d658330ea4be95bcc65691f76d
2018-09-09 17:52:04 +02:00
Goutham Pacha Ravi c74ae40470 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: I0a2a74ca8f326e334e0701167f23019e77c4c7e5
Story: #2002586
Task: #24309
2018-08-20 18:50:01 +00:00
Ben Swartzlander 95f2065167 Add -xe flags to shell scripts
For better debugging, add -xe flags to all the shell
scripts.

Change-Id: Ifb8ceb889c4d20d51a522e6c15d7c715f6d51e46
2017-10-27 13:39:23 -04:00
Ben Swartzlander 7c22a02127 Add rnd-tools for faster random pool initialization
Use rngd to quickly fill up the entropy pool at boot time.

Change-Id: I68acd3c3c2fff158a0d794cc32a63ff9de03ac52
2017-10-26 18:14:55 +00:00
Ben Swartzlander ec4efbe1bb Add shell scripts for use by nextgen generic driver
Change-Id: I96c10740f299ddc4bccdd7f538cf1417c8a09ea2
2017-10-26 18:14:44 +00:00
Ben Swartzlander 0aa0235af2 Switch from builtin shares to dynamic
Instead of a single hardcoded "share" allow shares to be
created after boot.

Change-Id: I638308fa56ca497da25fb1ce87ee09f8d94f7c6f
2017-10-26 18:13:25 +00:00
Ben Swartzlander d0a55ebf86 Use DHCP for eth1 and enforce MTU
If there are 2 network interfaces, acquire DHCP leases from
both. Also fix the DHCP client script to accept the MTU from
Neutron.

Change-Id: I664be34659bc41f38c69d4b3e08120488cb07f83
2017-10-26 18:13:15 +00:00
Ben Swartzlander 63fb858e1e Use external mount programs instead of busybox
Avoid the busybox mount applets for NFS and CIFS because
the external mount apps are better.

Change-Id: I53192102ed1d4efe8a1f306d8d065883293a5dd8
2017-10-26 18:13:04 +00:00
Ben Swartzlander c6d3c8478d Modify PS1 to include working directory
To improve debugability, include the cwd in the PS1 prompt
for interactive shells.

Change-Id: I462cd63e68fd455e8e71c6849bd35501c46d7b92
2017-10-26 12:11:20 -04:00
Ben Swartzlander cf79d49875 Modify the default path for dropbear
Change-Id: I0b3d0d06f28a97d87a923715161dcf73caa5dd44
2017-10-02 18:16:19 +00:00
Ben Swartzlander 4910ba91a1 Add PCI/ACPI hotplug support
In order to use manila-test-image for a service image, hotplug support
is needed to recognize new disks as they're plugged in by nova.

Change-Id: I2f0cfd4b8affdda8ffd19d58e26a96b3c37763a7
2017-09-28 12:44:08 -04:00
Ben Swartzlander dca0bd32e5 Add fake sudo script
Manila tests use sudo all over the place and while the only
configured user in the test image is root, it's easier to
fake the sudo binary than to modify test code to know when
to sudo and when to not.

Also remove 2 mkdir calls that are obviated by the new file
getting copied in those directories.

Change-Id: Ib0cbe05130bc617154bf471e2ecc0a78b2bb8377
2017-02-16 16:47:09 +00:00
Jenkins 99ba2ffda6 Merge "Create a config drive to test the metadata code" 2017-02-08 03:09:18 +00:00
Jenkins 5a3708509c Merge "Fix copying on JSON.sh" 2017-02-08 01:58:31 +00:00
Ben Swartzlander cadc0ee391 Create a config drive to test the metadata code
Because it's not possible to test the metadata service
code in an easy way, create a config drive ISO image for
test purposes.

Also speed up the metadata code to not block while waiting
for the metadata service and to exit quickly when there is
no config drive CD present.

Change-Id: If6a5565825b67de58715e3d2de1cbf69b7f9e551
2017-01-30 19:09:43 +00:00
Ben Swartzlander d341b73a9a Support testing on Fedora
Try both flavors of the kvm binary, and test with minimal RAM.

Change-Id: I58e0024be184d55d32f21d4b16733df909fd7844
2017-01-30 10:09:31 -05:00
Ben Swartzlander 530dc3bdba Fix copying on JSON.sh
Correct a copy/paste error

Change-Id: I00baec064be96f6a4954a0704d693b230124259a
2017-01-30 09:22:35 -05:00
Ben Swartzlander 0c98cfee3e Wrap long lines
Fix bashate warning E006 by wrapping long lines.

Also make sure bashate runs on init scripts that don't end
in .sh.

Change-Id: I077a064505e6f11f61c65279a54c9b2430044bf0
2017-01-29 23:56:20 +00:00
Ben Swartzlander 0358d1f175 Conform to bashate standards for control structures
Enable bashate errors E010 and E011 which require "then" and "do"
tokens on the same lines as "if" and "while" respectively.

Change-Id: I4a167530a21ab95d5dbe9f903facc9566a0461e2
2017-01-29 23:56:06 +00:00
Ben Swartzlander 6f370f0608 Convert tabs to spaces
Replace all tabs with 4 spaces, and re-enable bashate
warnings E002 and E003.

Change-Id: I11f3a9ca9b910555e1b1477c52288493f9bb0244
2017-01-29 18:55:19 -05:00
Ben Swartzlander bba826c7c8 Don't run bashate on output directories
Ignore output directories when running bashate to make it
easier to run the tests on an active repo.

Change-Id: I07ce0d9e3d7946048fa3743c68d2222884923866
2017-01-29 18:54:25 -05:00
Ben Swartzlander c533026ed7 Support SSH keys from config drive
Add kernel support for IDE CDROM drives, add a package for JSON
parsing, and updating the metadata script to look for SSH keys
on the config drive in addition to the metadata server.

Change-Id: Ic8f065bfd77dd4c533590a023bab8b1d32da1f53
2017-01-28 15:38:30 +00:00
Jenkins 33a1e25839 Merge "Add script for testing images really quickly" 2017-01-28 15:38:09 +00:00
Jenkins 02b1c8ec5e Merge "Support DHCPv6" 2017-01-28 15:38:04 +00:00
Ben Swartzlander 5b27037d6a Add script for testing images really quickly
Change-Id: I5190e9421bdb194c264190c1383b9ed2f9c6cc0c
2017-01-28 15:25:15 +00:00
Ben Swartzlander b355c01d5c Support DHCPv6
Add dhcp6c client to aquire IPv6 addresses and routes automatically
and modify ifupdown config to use it for eth0.

Change-Id: I6cdaf4cfaeef6b101659a9abf98b1dd2e0fc2b77
2017-01-28 15:24:03 +00:00
Ben Swartzlander 9698c519c7 Replace chown with chmod
Chmod was accidentally used instead of chown in the metadata script.

Change-Id: I34d550bd57d7858250f8039c48bc52645923bb5b
2017-01-28 15:23:27 +00:00
Jenkins aea5928b1c Merge "Don't strip comments out of config files" 2017-01-28 04:40:38 +00:00
Jenkins 7e5f27512a Merge "Install packages automatically on Ubuntu" 2017-01-28 01:40:22 +00:00
Jenkins 46e0975567 Merge "Add .gitreview file" 2017-01-28 01:40:15 +00:00
Ben Swartzlander 1f5ace8559 Fix typos in README, and add curl
The README file contained typos in the dependencies. Also
add curl as a build dependency.

Change-Id: I514ada6532bf8fd9dca3cd00714f45ac833e0fbc
2017-01-27 20:10:08 -05:00
Ben Swartzlander 3c8053515a Install packages automatically on Ubuntu
For gate jobs, we need to automate the installing of
dependencies, so check if we're on Ubuntu and handle that
case automatically. Other distros can still use the script
but need to manually take care of dependencies.

Change-Id: Id2c6a815c018cdfe3b288c38c7033275f25d8f13
2017-01-27 19:59:07 -05:00
Ben Swartzlander ecf2f4cee3 Don't strip comments out of config files
It turns out that Kconfig actually needs the comments in the
config files to work properly, so add them back in.

Also add iproute2 support to busybox because it's very helpful
for debugging.

Change-Id: Ie6f7b61218bff135f0ac3ccba387e148019eed4f
2017-01-27 21:22:18 +00:00
Ben Swartzlander aab91a6caa Fix bashate job
Bashate relies on tox, so add the required files for tox.

Change-Id: I86bcf54095d54666f45a3eb26f25a136ddd3319f
2017-01-27 15:02:06 -05:00
Ben Swartzlander 6eff46aa11 Add .gitreview file
Change-Id: Ifc5ddc3fa6ad1cee0eba90935f45f5a6b8934c73
2017-01-27 13:57:19 -05:00
Ben Swartzlander 0603e69fe2 Add parted as a dependency
Parted is required for building the qcow2.
2016-10-21 08:55:53 -04:00
Ben Swartzlander 121073beff Move some dependencies from build to dev/test
Some of the dependencies were listed in the wrong section.
2016-10-20 23:43:21 -04:00
Ben Swartzlander f19786fa85 Separate dependencies for dev/test from build
Not all the packages listed as dependencies were needed
to build, so move them to another section.
2016-10-20 08:46:50 -04:00
Ben Swartzlander 9d1694b9fd Split out one-time steps into their own script
Clarify the documentation on building
2016-10-19 14:59:38 -04:00
Ben Swartzlander f3ba577269 Fix qcow building steps 2016-10-19 11:50:09 -04:00
Ben Swartzlander 9d92a48629 Initial commit 2016-10-19 11:36:17 -04:00