Commit Graph

29 Commits

Author SHA1 Message Date
Michael Johnson
9be2e4d4d2 Add the Amphora image building guide to the docs
This patch adds the Amphora image building guide from the
diskimage-create README.rst to the Administration documentation.
It also re-organizes the Adminstration guides to be broken down
by category as the old page was becoming a long list of guides.
(I like that kind of problem)
The diskimage-create README has a few formating corrections to make
it render better for the documentation.

Change-Id: Ice4071e1f872c8c0d0595427cff6f02ffbcf7968
2019-10-09 15:33:41 -07:00
Michael Johnson
f8d4f8aee8 Add the DIB_REPO* variables to the README.rst
This patch adds the DIB_REPOLOCATION_amphora_agent and
DIB_REPOREF_amphora_agent optional environment variables to the
Octavia diskimage-create README.rst to clarify how to override the
amphora agent version in image builds.

Change-Id: Ic9beec74f84176d27fbefcc2fba281444ab02fa2
2019-08-05 14:30:26 -07:00
Carlos Goncalves
262ffaa9d7 Build amphora image using centos-minimal element
This patch changes CentOS amphora images to be built using the
centos-minimal DIB element. The generated image size is reduce from
approximately 702 MB to 520 MB. Compatibility with 'centos' AMP_BASEOS
is kept.

Change-Id: Iffc4a9725bff41618edbf246dd5a167b4e0ef6d3
2019-07-27 11:26:52 +02:00
Michael Johnson
24fc7d615e Make Ubuntu bionic the default for amphora images
This patch updates the diskimage-create script to select Ubuntu
bionic as the default version of Ubuntu for the amphora image.

Change-Id: Ie8bbcbe073644137b8eb04c42d9457f507513007
2019-07-23 14:52:50 -07:00
Michael Johnson
e3aacb67ad Switch the default Ubuntu kernel to -virtual
A previous patch changed the default Ubuntu kernel for the amphora
images to the -kvm kernel[1]. This kernel is missing a module required
for cryptsetup.
This patch switches the default to the -virtual kernel, which is
slightly larger than the -kvm kernel, but includes the required
kernel module for cryptsetup.

[1] https://review.opendev.org/665861

Change-Id: Ia05d7e9f8ac2692e5769648255ef0e4e10a18c03
2019-07-08 10:30:43 -07:00
Michael Johnson
cd50ae5c0c Specify the linux-image-kvm kernel for ubuntu
This patch switches to using the linux-image-kvm kernel by default.
It produces images that are about 200MB smaller than ubuntu-minimal with
linux-image-generic by using the linux-image-kvm instead of the
linux-image-generic kernel.

Depends-On: https://review.opendev.org/666063
Change-Id: I4103bcbaab65ed5d7683d35aaf04955e59ed2471
2019-06-26 23:32:12 +00:00
Michael Johnson
f1542afba0 Add a note about nova hardware architectures
This patch adds a note to the diskimage-create README that
reminds users to set the hardware architecture property on the
amphora image if the cloud has multiple architectures available
in nova.
It also sets this property in our devstack plugin to provide an
example/reminder.

Change-Id: I15c2cabb1bced0a5646a3e1aed50bece78afcdce
2019-06-17 10:37:57 -07:00
Carlos Goncalves
8821737359 Add RHEL 8 amphora support
Network scripts are deprecated in RHEL 8. This patch makes sure the
package is installed and the service enabled. Sometime in the future
(Train release or newer), support for Network Manager will be added as
it became the default network configuration tool in RHEL/CentOS 8 and
Fedora 28+.

This patch also reflects a change to diskimage-builder that will now
have a version-less 'rhel' element as opposed to a separate 'rhel7'
and 'rhel8' elements.

Change-Id: Id11459ea70479aa0145059f88af847dddcd93553
2019-06-07 18:34:29 +02:00
Trevor Vardeman
4c9097c681 Adding changes to support ppc64le amphora builds with CentOS
Updated diskimage create script to include an argument for disabling the temporary filesystem.
Updated diskimage create to support ppc64le as an argument.
Updated backports to support a properly configured PaaS repository for CentOS on power.

Change-Id: I8897278b1ac8b76d564f45bd0c7cbc26b29a8e5d
2019-04-18 11:11:09 -05:00
Frode Nordahl
d1518c5c79
Fix diskimage-create tox, add `build and test` targets
Improve end user experience with building a Octavia Amphora
diskimage through tox/virtualenv.

Change-Id: I8672d039a5b7ded57323aeb99f484fe7f2838fef
Task: 29059
Story: 2004847
2019-03-07 08:26:55 +01:00
Arnaud Morin
ca632987ea Update requirements for ubuntu
My test to build octavia amphora on Ubuntu Xenial was missing kpartx
package.
So I propose to update README.rst to help users build the image
correctly.

Also refactor a little bit how it is presented.

Change-Id: I65cf2ce25e96b4f44e2ca76884ec79831eb1c7f4
Signed-off-by: Arnaud Morin <arnaud.morin@corp.ovh.com>
2019-02-20 22:32:00 +00:00
Zuul
22c5028533 Merge "Redirect disk-image-builder logs, make verbose" 2018-10-31 14:28:39 +00:00
Ian Wienand
5bec6f70c2 Redirect disk-image-builder logs, make verbose
Update the diskimage-create.sh to have a "-l" option to pass into
dib's "--logfile" option.  In the devstack job, use this to redirect
the dib output to a separate logfile.  Turn on verbose logging by
default for this log.

Copy this in the v1 jobs.  v2 jobs are covered by a similar change in
octavia-tempest-plugin: I5bc0d9a3b071733cbe31d618f7236a3c2285b3e5

Depends-On: https://review.openstack.org/612865
Change-Id: Ie639af4266152d4626f8312b1849deeba5048348
2018-10-30 11:39:12 +01:00
Michael Johnson
4b1c374bdc Fix diskimage-create README.rst
We missed updating the diskimage-create README.rst when we added
some new command line options. This patch corrects those omisions.

Change-Id: I28dbc5b83321a69e060ea7fef5a1889ec623a3be
2018-10-29 11:53:23 -07:00
Bernard Cafarelli
d43d3fce86 Rework amphora agent installation element
Merge source and RHEL elements, allowing both source and package based
installations.

Allow amphora agent install from distribution packages (not limited to
RHEL)

Add a new option to diskimage-create.sh script to do so (default is kept
to source installation from Octavia git tree)

For now, amphorae built with distribution packages will have SELinux
(when available) running in permissive mode.

Made the rebind-sshd element generic to streamline the script
Use POSIX syntax for logrotate kill command

Change-Id: I391b2a95d54c7b9fd8f31d3e2c136ff9cc3451f1
2018-01-22 18:04:41 -08:00
Adam Harwell
7bf8804177 Add flag to disable SSHD on the amphora image
Also deprecate the amp_ssh_access_allowed option.

Change-Id: Icb61a65fac57e74235fac904639c411b0fa2b495
2017-08-16 11:18:10 -07:00
Bernard Cafarelli
d17dcea645
DIB: drop custom mirror elements
diskimage-builder supports a generic DIB_DISTRIBUTION_MIRROR that can
replace all existing mirror elements

Change-Id: Ia91dabf10e591f953440459edad35ebfc20c5890
Closes-Bug: #1703624
2017-07-12 10:57:24 +02:00
Dong Jun
21e80ce23d Remove invalid url link
Change-Id: I1e626794c19f9a0db5d0f9bee31d2d76b8996f86
2017-05-11 13:19:05 +08:00
Bernard Cafarelli
d5f1ffd703
DIB: drop some dependencies
kpartx is not called anymore in amphora creation
'jq' package is not required anymore, so drop epel element dependency
For rpm-based distributions, qemu-img package is enough
Drop Centos 6 specific check, it is not supported with current releases
Merge some Fedora/CentOS checks

Change-Id: I469486b48231489e0c4ea8b9986cb0c2347eb14f
2017-03-24 11:33:52 +01:00
Adam Harwell
cf9a8c8f77 Look for diskimage-builder not dib-utils when building amps
Also ignore E402 and W503 pep8 issues

Change-Id: I7937d0a21c7a748cd682511bd429de8cf0ffe498
2017-03-09 02:30:39 +00:00
Ha Van Tu
6e2dcabce2 Fix typo
This patch fixes typo "privledges" by changing it to "privileges".

Change-Id: Id72016eb782b614ee6dcacf8ceb6a0b75b27c6b7
2016-12-20 14:47:50 +07:00
Gregory Haynes
3c5c13c69c Stop depending on tripleo-image-elements
There were only two elements we were using from this repo -
os-svc-install which we werent actually calling anywhere, we only
depended on it needelessly and sysctl. The sysctl element has been moved
in to dib as dib-sysctl so we can now stop depending on
tripleo-image-elements entirely.

Depends-On: If312d199388036d6f4103e94dca99249cb3bcbaf
Depends-On: Ia730850a48e2478fd5461710a9d2619408725cd8
Change-Id: Ie78c4f3ebe506214f0ce7c456fcbbee09d35ba2a
2016-12-15 13:17:18 -06:00
gecong1973
fc51b73e98 Fix a typo in README.rst
TrivialFix

Change-Id: Ibddd206f7ea905bcc777942cc9fda052ac5837e7
2016-09-27 17:07:02 +08:00
Jenkins
7f03bbeafe Merge "DIB image tests speedups" 2016-07-22 03:22:08 +00:00
Bernard Cafarelli
3a44e594ef DIB image tests speedups
Change default image size to 2GB (align with devstack value)
Store the virt-inspector output to reuse in virt-inspector calls
Relax the size check to allow for system size change after updates and
differences in base distribution

Change-Id: I9aaaabcbe8a1332e57fd8f9f0649dc8cfc5b9977
2016-07-21 17:33:25 +02:00
Bernard Cafarelli
6e97a37744 Support RHEL base image in DIB
This adds a rhel type and gives some pointers on needed environment
variables for base image, registration, needed subscriptions.

no-resolvconf is also updated to work on rhel-type systems

Depends-On: Icb0e20b01479fea345e01309fc4bf3f7f639900c
Change-Id: Ic452feaf32fe7699ebd072f21dd630a2ac93bb5f
2016-07-12 10:24:37 +02:00
venkatamahesh
206f5738fe Fix misspellings
Change-Id: I675452fcc43e778f74bdf4bf5615c100d72ce8bf
2016-02-04 14:33:44 +00:00
Michael Johnson
e6cb590fdd Updates for repo rename stackforge->openstack
Updated files to use openstack instead of stackforge
Updated devstack samples to not point to old references

Change-Id: I501d76173475bb1619006819d971493854fdd15c
2015-06-13 00:20:11 +00:00
Michael Johnson
9df9ff9137 Add Amphora base image creation scripts for Octavia
Implements: blueprint base-image

Change-Id: I3e72db6d2f19fe45138758eb0821e27aa1c2542a
2014-12-11 01:31:19 +00:00