fuel.git
7 years agoPreparing the experimental branch for improved Danube CI/CD experiments 03/22603/2 experimental
Jonas Bjurel [Fri, 30 Sep 2016 18:28:22 +0000 (20:28 +0200)]
Preparing the experimental branch for improved Danube CI/CD experiments

Fast forwarded to commit:cf93e6ee11c96de090b04196cc96b4a6b0948928

Change-Id: I13d10d870e8ffc7317ab03f8810592d5b2205875
Signed-off-by: Jonas Bjurel <jonas.bjurel@ericsson.com>
8 years agoCleaning up the experimental branch 41/3441/1
Stefan K. Berg [Thu, 19 Nov 2015 12:39:59 +0000 (13:39 +0100)]
Cleaning up the experimental branch

Should not be used any more!

Change-Id: I38fd1ea34aaa12c5d7d060bca47d1866bc97d185
Signed-off-by: Stefan K. Berg <stefan.k.berg@ericsson.com>
8 years agoAutodeployment adaptation to Fuel 7 43/3243/5
Szilard Cserey [Thu, 12 Nov 2015 19:44:58 +0000 (20:44 +0100)]
Autodeployment adaptation to Fuel 7

Change-Id: I5071b8d65828ab13a6b1a08b907289068104b27e
Signed-off-by: Szilard Cserey <szilard.cserey@ericsson.com>
8 years agoRemoved bind mount of .ssh in runcontext 75/3075/1
Stefan K. Berg [Thu, 5 Nov 2015 13:17:54 +0000 (14:17 +0100)]
Removed bind mount of .ssh in runcontext

Previously the .ssh directory of the invoking user was bind mounted
into the build container. This behavior is now removed. The ssh keys
in the user's .ssh is however *copied* into the container if, and only
if, the RSYNC_CONNECT_PROG environment variable has been set as this
indicates the need to tunnel rsync traffic over (presumably) ssh. In
this case the keys may actually be needed.

In both cases the .ssh/config file will be updated with the
   StrictHostKeyChecking=no
option to prevent failure due to the ssh confirmation dialogue.

Change-Id: Ic2ecc9d7a9abfa796bdfa6aaa8cde0dcb632d76e
Signed-off-by: Stefan K. Berg <stefan.k.berg@ericsson.com>
(cherry picked from commit bae859e2a47befeb3c6a97988dc778daf66e37bd)

8 years agoSupport for building Fuel behind a http proxy 17/2817/2
Stefan K. Berg [Mon, 19 Oct 2015 14:52:34 +0000 (16:52 +0200)]
Support for building Fuel behind a http proxy

The build system is now able to work also behind a traditional web
proxy setup if the http_proxy, https_proxy and (if needed) no_proxy
environment variables has been set prior to invoking make.

This is a joint work by Gillian Dunne <gillian.dunne@intel.com> and
Stefan Berg <stefan.k.berg@ericsson.com>.

Verification so far has been with a mock setup, placing the build
machine behind a Squid proxy and blocking outgoing traffic not going
through the proxy by firewall rules. The following environment
variables was set in the host for these tests:

RSYNC_PROXY=10.0.0.1:8888
http_proxy=http://10.0.0.1:8888
https_proxy=http://10.0.0.1:8888
no_proxy=localhost,127.0.0.1,.consultron.com,.sock

*** IMPORTANT NOTE ABOUT THE HOST PROXY SETTINGS ***

The build system will make use the following proxy environment
variables:

http_proxy:
https_proxy
no_proxy
RSYNC_PROXY
RSYNC_CONNECT_PROG

During the build phase, a local Ubuntu package repository is fetched
from upstream in order to be added to the OPNFV Fuel ISO and for parts
of this process rsync is used.

This will require that either RSYNC_PROXY is set according to the
format "<proxy host>:<proxy port>" and that the proxy indicated indeed
allows rsync traffic *or* that RSYNC_CONNECT_PROG is set to use an
alternative transport. For a detailed explanation of these settings,
see the rsync manual page.

*** IMPORTANT NOTE ABOUT THE HOST DOCKER DAEMON SETTINGS ***

The Docker daemon on the host must be configured to use the http proxy
for it to be able to pull the base Ubuntu 14.04 image from the Docker
registry before invoking make! In Ubuntu this is done by adding a line
like:

export http_proxy="http://10.0.0.1:8888/"

to /etc/default/docker and restarting the Docker daemon.

Change-Id: Ieed2269af295d90a4b33d834f723889bdf9c7dc6
Signed-off-by: Stefan K. Berg <stefan.k.berg@ericsson.com>
(cherry picked from commit 0635291a88dd006e15224169524a7fc761ad47ab)

8 years agoMerge "Disabling the ODL plugin waiting for Fuel 7 uplift" into experimental
Stefan K. Berg [Tue, 27 Oct 2015 14:17:32 +0000 (14:17 +0000)]
Merge "Disabling the ODL plugin waiting for Fuel 7 uplift" into experimental

8 years agoMerge "Updating address of Fuel repositories" into experimental
Stefan K. Berg [Tue, 27 Oct 2015 14:17:21 +0000 (14:17 +0000)]
Merge "Updating address of Fuel repositories" into experimental

8 years agoMerge "Fuel 7.0 rebase" into experimental
Stefan K. Berg [Tue, 27 Oct 2015 14:04:55 +0000 (14:04 +0000)]
Merge "Fuel 7.0 rebase" into experimental

8 years agoDisabling the ODL plugin waiting for Fuel 7 uplift 01/2801/1
Stefan K. Berg [Mon, 26 Oct 2015 09:52:42 +0000 (10:52 +0100)]
Disabling the ODL plugin waiting for Fuel 7 uplift

Change-Id: Ica4dfa6f1ab221bce62fdff0c9c065b4a93d76b5
Signed-off-by: Stefan K. Berg <stefan.k.berg@ericsson.com>
8 years agoUpdating address of Fuel repositories 99/2799/1
Stefan K. Berg [Mon, 26 Oct 2015 09:51:30 +0000 (10:51 +0100)]
Updating address of Fuel repositories

Change-Id: I2b1e328923390075854a08ee5d3942e4286a9073
Signed-off-by: Stefan K. Berg <stefan.k.berg@ericsson.com>
8 years agoFuel 7.0 rebase 95/2795/3
Stefan K. Berg [Wed, 7 Oct 2015 09:17:10 +0000 (11:17 +0200)]
Fuel 7.0 rebase

Initial change for the Fuel 7.0 rebase.

Change-Id: Ifbe1db9c892a94e64abbcfaaf1c98abce0c03dd4
Signed-off-by: Stefan K. Berg <stefan.k.berg@ericsson.com>
8 years agoEXPERIMENTAL; DO NOT MERGE! Fuel 7.0 rebase 03/2303/3
Stefan K. Berg [Wed, 7 Oct 2015 09:17:10 +0000 (11:17 +0200)]
EXPERIMENTAL; DO NOT MERGE! Fuel 7.0 rebase

This is work in progress, do not merge but feel free to experiment
with this commit changeset as a base.

Change-Id: Ifbe1db9c892a94e64abbcfaaf1c98abce0c03dd4
Signed-off-by: Stefan K. Berg <stefan.k.berg@ericsson.com>
8 years agoCopy gitinfo.txt to the root of the Fuel master 93/2593/1
Stefan K. Berg [Fri, 16 Oct 2015 12:18:32 +0000 (14:18 +0200)]
Copy gitinfo.txt to the root of the Fuel master

The gitinfo.txt file contains the SHA1 of all upstream repos
used during the build of the install ISO (including the OPNFV
Fuel repo as well). Move these to the root directory of the
nstalled Fuel master as well for easy reference.

Change-Id: I23caadc23c69744a980027ef24d974f11efc37bd
Signed-off-by: Stefan K. Berg <stefan.k.berg@ericsson.com>
8 years agoImproved caching functionality and tracability 57/2557/5
Stefan K. Berg [Thu, 15 Oct 2015 10:51:26 +0000 (12:51 +0200)]
Improved caching functionality and tracability

In order to enable the caching of more build artifacts than the Fuel
iso during CI builds, the caching functionality and the CI build
frontend "build.sh" has been rewritten.

The build.sh script will now rely on the "make cache" functionality of
the top Makefile to make sure that the build is using cache handling.

The underlying cache logic is implemented in "cache.mk" for the top
makefile and those recursive levels that do not produce cachable
artifacts themselves in that they are only calling the SUBDIRS of
their lower level (like f_isoroot).

All "leaf" Makefiles will however need to implement three cache
targets in their top Makefile (for visibility):

clean-cache:
        Clean all files relating to the handling of caches.
get-cache:
        Attempt to fetch a cached artifact using a SHA1 key.
put-cache:
        Store a built artifact into the cache.

They can just implement a simple "no-op" functionality for thes
targets if they do not have any use of the caching functionality.

If they are to use the caching functionality, they must make sure to
implement a logic that produces a SHA1 hash based on the source of the
data they are to cache - for upstream repos one suggestion is to use
the commit ID of the used upstream HEAD. For examples, see the top
Makefile that implements this logic for the Fuel ISO build, taking
into consideration the commit IDs of all the upstream repositories
used.

To improve tracability, the root directory of the ISO will contain the
file gitinfo.txt, which is meant to detail the upstream repo and
commit ID used for all upstream dependencies of a build. If you are
adding additional upstream dependencies, make sure to use the
repo_info.sh tool to add this data.

The cache tool cache.sh has no notion of the cache data it is storing
- from the tools perspective, cache data is just a binary blob piped
in or out of the tool.

This blob is stored by the cache tool at the cache location as
<SHA1>.blob, together with an associated meta file <SHA1>.meta.

The cache meta file currently holds just one line:

    Expires: <epoch time>

This file is expected to be used to iterate through the cache objects
and retire those who's expiry date has passed. Currently objects will
always have an expiry date of two weeks into the future, but down the
road the "cache put" functionality may be amended with an optional
"age" argument that can set a different expiration time.

New tools in this commit:

  cache.sh - the cache logic
  repo_info.sh - the (optionally recursive) repo information logger

Change-Id: I8a40546c21febeecc9de6d82c0ceb6bc60b04205
Signed-off-by: Stefan K. Berg <stefan.k.berg@ericsson.com>
8 years agoUpdated logic for selecting Ubuntu repo for mirroring 65/2365/5
Stefan K. Berg [Thu, 8 Oct 2015 16:06:00 +0000 (18:06 +0200)]
Updated logic for selecting Ubuntu repo for mirroring

A slight improvement to Michal Skalski's original concept just
to filter out repos where updates are in progress (which would
leave us hanging).

Change-Id: Id641b3aa82b991c23b5742d1f64ff79cfbbd708c
Signed-off-by: Stefan K. Berg <stefan.k.berg@ericsson.com>
8 years agoTemporary fix for forcing cache rebuild 17/2317/2
Stefan K. Berg [Wed, 7 Oct 2015 18:54:05 +0000 (20:54 +0200)]
Temporary fix for forcing cache rebuild

The caching functionality will be greatly improved for the next
release - this is a quick fix for having the possiblility to
invalidate the cache forcefully when needed.

Change-Id: I4d83907255105fb454af6fb426193acc744fdba9
Signed-off-by: Stefan K. Berg <stefan.k.berg@ericsson.com>
8 years agoMerge "Rebased patch due to upstream changes"
Stefan K. Berg [Fri, 9 Oct 2015 05:09:08 +0000 (05:09 +0000)]
Merge "Rebased patch due to upstream changes"

8 years agoRebased patch due to upstream changes 69/2369/1
Stefan K. Berg [Thu, 8 Oct 2015 18:55:06 +0000 (20:55 +0200)]
Rebased patch due to upstream changes

Change-Id: I63e39ff3d08bcfb80b83bb0c42082deb680ad727
Signed-off-by: Stefan K. Berg <stefan.k.berg@ericsson.com>
8 years agoCAN MERGE 95/2295/4
Jonas Bjurel [Wed, 7 Oct 2015 14:10:16 +0000 (16:10 +0200)]
CAN MERGE
VERIFIED
Description: Improved handling of docker clean-up
JIRA: FUEL-71

Change-Id: I565f77e227da2dcbaecd86582ab6890508726607
Signed-off-by: Jonas Bjurel <jonas.bjurel@ericsson.com>
8 years agoModifications due to upstream changes 93/2293/1
Stefan K. Berg [Wed, 7 Oct 2015 14:11:07 +0000 (16:11 +0200)]
Modifications due to upstream changes

Removed a patch which is now incorporated upstream.
Added debmirror as a requirement for the build Docker
container.

Change-Id: I92fa8571019ece9bac41bec2baa3629d286a3a51
Signed-off-by: Stefan K. Berg <stefan.k.berg@ericsson.com>
8 years agoAdd AMT adapter 51/2251/1
Liyi Meng [Mon, 5 Oct 2015 07:55:20 +0000 (09:55 +0200)]
Add AMT adapter

This adapter allow fuel deploy over Intel AMT/vPro system.
Please note that the adapter use amttool to interact with
target system, which imply that it only support up to
vPro v7.

Change-Id: I75f0882ea914b57d7d62338ed803a45104bc2d4e
Signed-off-by: Liyi Meng <liyi.meng@ericsson.com>
8 years agoMove of genesis/fuel master branch: commit 563547b4a9f44090f32c0e17d040114854563760 11/2211/1
Jonas Bjurel [Fri, 2 Oct 2015 11:29:56 +0000 (13:29 +0200)]
Move of genesis/fuel master branch: commit 563547b4a9f44090f32c0e17d040114854563760
Note: other installers and /common are removed

Change-Id: Ie5a2b0b7f3e7fa2eda191710c98456eeec17ed61
Signed-off-by: Jonas Bjurel <jonas.bjurel@ericsson.com>
8 years agoModified INFO 64/1164/1
Jonas Bjurel [Wed, 12 Aug 2015 14:30:48 +0000 (16:30 +0200)]
Modified INFO
Added Licence.rst

Change-Id: I610e75eccd44adff177122dd8e3a93a44e83d28e
Signed-off-by: Jonas Bjurel <jonas.bjurel@ericsson.com>
8 years agoAdding .gitreview INFO and License 94/994/1
Aric Gardner [Fri, 10 Jul 2015 17:21:00 +0000 (13:21 -0400)]
Adding .gitreview INFO and License

Change-Id: I31333946c4095c3e96f541f3fcc62cdeabd17a77
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
8 years agoInitial empty repository
Aric Gardner [Fri, 10 Jul 2015 15:07:46 +0000 (15:07 +0000)]
Initial empty repository