aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-04-25 11:21:02 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-04-25 11:21:02 +0000
commit26ddcc786462f926ab576f53694cba5a903f9bef (patch)
treec74974e3470fe1f6a28878d443584641b74c2255
parentff49960601c8e493d27953b1d878cae5951fcdee (diff)
parent603dac9a9ea3830fdf851e410ba1eced6ed32a2a (diff)
Merge "fuel-menu: Align defaults w/ OPNFV bootstrap cfg" into stable/danube
-rwxr-xr-xbuild/f_isoroot/f_bootstrap/post-scripts/03_install_repo.sh5
-rw-r--r--build/f_isoroot/f_repobuild/Makefile3
-rw-r--r--build/f_isoroot/f_repobuild/config.mk2
-rw-r--r--build/f_isoroot/f_repobuild/fuel_bootstrap_cli.yaml74
-rwxr-xr-xbuild/f_isoroot/f_repobuild/opnfv_mirror_ubuntu.py7
-rw-r--r--build/f_repos/patch/fuel-menu/0001-settings-OPNFV-bootstrap-Default-to-local-mirror.patch66
6 files changed, 73 insertions, 84 deletions
diff --git a/build/f_isoroot/f_bootstrap/post-scripts/03_install_repo.sh b/build/f_isoroot/f_bootstrap/post-scripts/03_install_repo.sh
index be17e7e0a..431577cba 100755
--- a/build/f_isoroot/f_bootstrap/post-scripts/03_install_repo.sh
+++ b/build/f_isoroot/f_bootstrap/post-scripts/03_install_repo.sh
@@ -26,9 +26,4 @@ if [ $? -ne 0 ]; then
echo "Error removing /opt/opnfv/nailgun directory!"
exit 1
fi
-mv /opt/opnfv/fuel_bootstrap_cli.yaml /etc/fuel-bootstrap-cli/fuel_bootstrap_cli.yaml
-if [ $? -ne 0 ]; then
- echo "Error moving bootstrap image configuration!"
- exit 1
-fi
echo "Done installing pre-build repo"
diff --git a/build/f_isoroot/f_repobuild/Makefile b/build/f_isoroot/f_repobuild/Makefile
index 891712b9a..c61d1adf5 100644
--- a/build/f_isoroot/f_repobuild/Makefile
+++ b/build/f_isoroot/f_repobuild/Makefile
@@ -27,6 +27,8 @@ nailgun:
rm -Rf nailgun packetary opnfv_config && mkdir opnfv_config
# We will analyze fuel-web's fixture files for package lists
ln -sf ${F_SUBMOD_DIR}/fuel-web fuel-web
+ # Same for fuel-agent's bootstrap package list
+ ln -sf ${F_SUBMOD_DIR}/fuel-agent fuel-agent
git clone --quiet $(PACKETARY_REPO)
if [ -n $(PACKETARY_COMMIT) ]; then \
git -C packetary checkout $(PACKETARY_COMMIT); \
@@ -48,7 +50,6 @@ release:nailgun
@rm -Rf ../release/opnfv/nailgun
@mkdir -p ../release/opnfv
@cp -Rp nailgun ../release/opnfv/nailgun
- @cp fuel_bootstrap_cli.yaml ../release/opnfv/
############################################################################
# Cache operations - only used when building through ci/build.sh
diff --git a/build/f_isoroot/f_repobuild/config.mk b/build/f_isoroot/f_repobuild/config.mk
index 986ea9e8e..68101d6ec 100644
--- a/build/f_isoroot/f_repobuild/config.mk
+++ b/build/f_isoroot/f_repobuild/config.mk
@@ -19,5 +19,5 @@ export MIRROR_UBUNTU_ROOT_arm64=ubuntu-ports
# Merge all local mirror repo components/section into single "main"
# NOTE: When changing this, make sure to also update all consumer config, like:
-# - fuel_bootstrap_cli.yaml
+# - fuel-menu/fuelmenu/settings.yaml
export MIRROR_UBUNTU_MERGE=true
diff --git a/build/f_isoroot/f_repobuild/fuel_bootstrap_cli.yaml b/build/f_isoroot/f_repobuild/fuel_bootstrap_cli.yaml
deleted file mode 100644
index 81ca6ebb0..000000000
--- a/build/f_isoroot/f_repobuild/fuel_bootstrap_cli.yaml
+++ /dev/null
@@ -1,74 +0,0 @@
-##############################################################################
-# Copyright (c) 2015,2016 Ericsson AB and others.
-# mskalski@mirantis.com
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Apache License, Version 2.0
-# which accompanies this distribution, and is available at
-# http://www.apache.org/licenses/LICENSE-2.0
-##############################################################################
----
- root_ssh_authorized_file: /root/.ssh/id_rsa.pub
- extend_kopts: "biosdevname=0 net.ifnames=1"
- ubuntu_release: xenial
- extra_dirs:
- - /usr/share/fuel_bootstrap_cli/files/xenial
- output_dir: /tmp/
- kernel_flavor: linux-image-generic-lts-xenial
- packages:
- - daemonize
- - fuel-agent
- - hwloc
- - i40e-dkms
- - linux-firmware
- - linux-headers-generic
- - live-boot
- - live-boot-initramfs-tools
- - mc
- - mcollective
- - msmtp-mta
- - multipath-tools
- - multipath-tools-boot
- - nailgun-agent
- - nailgun-mcagents
- - network-checker
- - ntp
- - ntpdate
- - openssh-client
- - openssh-server
- - puppet
- - squashfs-tools
- - ubuntu-minimal
- - vim
- - wget
- - xz-utils
- # NOTE(el): Packages required for new generation
- # network checker to be run without an access
- # to repositories.
- - sysfsutils
- - bridge-utils
- - ifenslave
- - irqbalance
- - iputils-arping
- bootstrap_images_dir: /var/www/nailgun/bootstraps
- active_bootstrap_symlink: /var/www/nailgun/bootstraps/active_bootstrap
- flavor: ubuntu
- http_proxy: ""
- https_proxy: ""
- repos:
- - name: ubuntu
- section: "main"
- uri: "http://127.0.0.1:8080/mirrors/ubuntu"
- priority:
- suite: xenial
- type: deb
- - name: mos
- section: "main restricted"
- uri: "http://127.0.0.1:8080/ubuntu/x86_64"
- priority: 1050
- suite: mos10.0
- type: deb
- skip_default_img_build: false
- direct_repo_addresses:
- - "127.0.0.1"
- # User can provide default hashed root password for bootstrap image
- # hashed_root_password: "$6$IInX3Cqo$5xytL1VZbZTusOewFnG6couuF0Ia61yS3rbC6P5YbZP2TYclwHqMq9e3Tg8rvQxhxSlBXP1DZhdUamxdOBXK0."
diff --git a/build/f_isoroot/f_repobuild/opnfv_mirror_ubuntu.py b/build/f_isoroot/f_repobuild/opnfv_mirror_ubuntu.py
index 1a603ee79..7c383639e 100755
--- a/build/f_isoroot/f_repobuild/opnfv_mirror_ubuntu.py
+++ b/build/f_isoroot/f_repobuild/opnfv_mirror_ubuntu.py
@@ -25,7 +25,7 @@
# "main".
##############################################################################
# Mirror build steps (for EACH architecture in UBUNTU_ARCH):
-# 1. Collect bootstrap package deps from <fuel_bootstrap_cli.yaml>;
+# 1. Collect bootstrap package deps from fuel-agent's <settings.yaml.sample>;
# 2. Collect all fixture release packages from fuel-web's <openstack.yaml>;
# 3. Parse new "opnfv_config.yaml" list of packages (from old fuel-mirror);
# 4. Inherit enviroment variable(s) for mirror URLs, paths etc.
@@ -156,7 +156,8 @@ MIRROR_UBUNTU_PATH = get_env('MIRROR_UBUNTU_OPNFV_PATH')
MIRROR_UBUNTU_TMP_PATH = '{0}.tmp'.format(MIRROR_UBUNTU_PATH)
MIRROR_UBUNTU_MERGE = get_env('MIRROR_UBUNTU_MERGE')
CFG_MM_UBUNTU = '{0}/ubuntu_mirror_local.yaml'.format(CFG_D)
-FUEL_BOOTSTRAP_CLI_FILE = open('fuel_bootstrap_cli.yaml').read()
+FUEL_BOOTSTRAP_CLI_FILE = open('fuel-agent/contrib/fuel_bootstrap/'
+ 'fuel_bootstrap_cli/fuel_bootstrap/settings.yaml.sample').read()
FUEL_BOOTSTRAP_CLI = yaml.load(FUEL_BOOTSTRAP_CLI_FILE)
FIXTURE_FILE = open('fuel-web/nailgun/nailgun/fixtures/openstack.yaml').read()
FIXTURE = yaml.load(FIXTURE_FILE)
@@ -215,7 +216,7 @@ for arch in UBUNTU_ARCH.split(' '):
write_cfg_file(CFG_MM_UBUNTU, group_main_ubuntu[0])
# Collect package dependencies from:
- ## 1. fuel_bootstrap_cli.yaml (bootstrap image additional packages)
+ ## 1. fuel_bootstrap_cli (bootstrap image additional packages)
legacy_unresolved = legacy_diff(None, FUEL_BOOTSTRAP_CLI['packages'] + [
FUEL_BOOTSTRAP_CLI['kernel_flavor'],
FUEL_BOOTSTRAP_CLI['kernel_flavor'].replace('image', 'headers')],
diff --git a/build/f_repos/patch/fuel-menu/0001-settings-OPNFV-bootstrap-Default-to-local-mirror.patch b/build/f_repos/patch/fuel-menu/0001-settings-OPNFV-bootstrap-Default-to-local-mirror.patch
new file mode 100644
index 000000000..456eea7b9
--- /dev/null
+++ b/build/f_repos/patch/fuel-menu/0001-settings-OPNFV-bootstrap-Default-to-local-mirror.patch
@@ -0,0 +1,66 @@
+From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
+Date: Sun, 9 Apr 2017 13:49:28 +0200
+Subject: [PATCH] settings: OPNFV bootstrap: Default to local mirror
+
+JIRA: https://jira.opnfv.org/browse/FUEL-266
+
+Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
+---
+ fuelmenu/settings.yaml | 36 +++---------------------------------
+ 1 file changed, 3 insertions(+), 33 deletions(-)
+
+diff --git a/fuelmenu/settings.yaml b/fuelmenu/settings.yaml
+index e93309a..aaf07cd 100644
+--- a/fuelmenu/settings.yaml
++++ b/fuelmenu/settings.yaml
+@@ -13,47 +13,17 @@ BOOTSTRAP:
+ http_proxy: ""
+ https_proxy: ""
+ repos:
+- - name: "ubuntu"
+- section: "main universe multiverse"
+- uri: "http://archive.ubuntu.com/ubuntu"
++ - name: "ubuntu-local"
++ section: "main"
++ uri: "http://127.0.0.1:8080/mirrors/ubuntu"
+ priority: null
+ suite: "${codename}"
+ type: "deb"
+- - name: "ubuntu-updates"
+- section: "main universe multiverse"
+- uri: "http://archive.ubuntu.com/ubuntu"
+- priority: null
+- suite: "${codename}-updates"
+- type: "deb"
+- - name: "ubuntu-security"
+- section: "main universe multiverse"
+- uri: "http://archive.ubuntu.com/ubuntu"
+- priority: null
+- suite: "${codename}-security"
+- type: "deb"
+ - name: "mos"
+ section: "main restricted"
+ uri: "http://127.0.0.1:8080/ubuntu/x86_64"
+ priority: 1050
+ suite: "mos${mos_version}"
+ type: "deb"
+- - name: "mos-updates"
+- section: "main restricted"
+- uri: "http://mirror.fuel-infra.org/mos-repos/ubuntu/${mos_version}"
+- priority: 1050
+- suite: "mos${mos_version}-updates"
+- type: "deb"
+- - name: "mos-security"
+- section: "main restricted"
+- uri: "http://mirror.fuel-infra.org/mos-repos/ubuntu/${mos_version}"
+- priority: 1050
+- suite: "mos${mos_version}-security"
+- type: "deb"
+- - name: "mos-holdback"
+- section: "main restricted"
+- uri: "http://mirror.fuel-infra.org/mos-repos/ubuntu/${mos_version}"
+- priority: 1100
+- suite: "mos${mos_version}-holdback"
+- type: "deb"
+ PRODUCTION: docker
+ FEATURE_GROUPS: []