Jackie Huang [Wed, 17 Jun 2020 01:15:31 +0000 (09:15 +0800)]
local-stx.conf: avoid parallel make for ceph
Avoid parallel make for ceph to limit mem usage.
Issue-ID: INF-164
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I46d64e14d701b249ce91888b70bf40d8aea4af42
Jackie Huang [Tue, 16 Jun 2020 02:58:34 +0000 (10:58 +0800)]
stx-utilities: cleanup for license files
Add the commented license files into LIC_FILES_CHKSUM.
Issue-ID: INF-53
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Ie1e1b081d632cdca660c2f175cd3aba74fdf5171
Jackie Huang [Thu, 11 Jun 2020 14:48:53 +0000 (22:48 +0800)]
stx-utilities: fix a perl experimental feature failure
In the cpumap_functions.sh, a oneline perl script uses a perl
experimental feature which is added in perl 5.14 but removed
in perl 5.23 and later release, so fix to avoid using the
feature to fix failure with new perl releases.
Issue-ID: INF-162
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I618b255ecdc006d37bdefcf78860f0178cbfdeb6
Jackie Huang [Thu, 11 Jun 2020 02:35:56 +0000 (10:35 +0800)]
rabbitmq-server: remove the source with copyleft license
- remove the source script rabbitmq-script-wrapper with
copyleft license.
- use the one in rabbitmq source code and add a patch
change to what is quired by stx.
Issue-ID: INF-161
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Ie236743bc6feecc26f216063f51a993228f6b1fe
Jackie Huang [Wed, 10 Jun 2020 08:49:17 +0000 (16:49 +0800)]
build_oran.sh: fix the output image info for ARM
Use ${BSP} instead of hard coded 'intel-x86-64' and ${IMAGE_TYPE}
instead of 'iso' to fix the output image info.
Issue-ID: INF-160
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Icf8770345f551b113919c8c124cb32629d3becab
Jackie Huang [Wed, 10 Jun 2020 02:25:32 +0000 (10:25 +0800)]
docs: update the developer-guide.rst for ARM build
- Add section for how to build ARM image
- A minor rephrase in overview.rst
Issue-ID: INF-16
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Idc8a8220f346c9598fd9911eaaaab836e5d9d4d0
Jackie Huang [Wed, 10 Jun 2020 08:10:41 +0000 (16:10 +0800)]
packagegroup-oran: fix build for ARM
- 'turbostat' and 'msr-tools' is only compatible with x86/x86-64,
so do not add them for other arch.
- Add 'cpupower' into the whitelist.
Issue-ID: INF-159
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I5f7230aa9e478b6770c4e2d220649b6816e9ebc9
Jackie Huang [Tue, 9 Jun 2020 13:06:58 +0000 (21:06 +0800)]
stx-metal: add patches to fix build failures on CentOS
- Add a patch to avoid using 'which' to check CC since
the 'which' on CentOS doesn't allow options.
- Add a patch to fix libamon link failure.
- Rename all the patches with number prefix to make clear
the patch order.
Issue-ID: INF-156
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I07264e6c2f51cad0c075cd290440bfaf06c4c750
Jackie Huang [Tue, 9 Jun 2020 08:47:22 +0000 (16:47 +0800)]
ruby-native: add dependency on zlib-native
Some packages use the ruby "gem build" command to create gems,
which requires zlib, so add dependency on zlib-native or
it relies the host's zlib and fails on some host like CentOS:
| ERROR: Loading command: build (LoadError)
| cannot load such file -- zlib
| ERROR: While executing gem ... (NoMethodError)
Issue-ID: INF-155
Issue-ID: INF-157
Issue-ID: INF-158
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Ib680adda00df8bad2191d367d5ff27ff393fbf96
Jackie Huang [Mon, 8 Jun 2020 11:05:55 +0000 (19:05 +0800)]
build_inf.sh: lockdown layers on specific commits
Lockdown all the Yocto layers/repos on specific commits to avoid
potential issues in the future when changes happen in upstream
Yocto layers/repos, the change includes:
- Remove the -s option so it will never try to update the repo
- Add specific commit for each yocto layer/repo
- Improve the clone_update_repo function so it will checkout
to specific commit after clone.
Issue-ID: INF-154
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I7e66680d71bea3ebace07a36b77fb009788c3494
Xiaohua Zhang [Tue, 2 Jun 2020 12:20:25 +0000 (08:20 -0400)]
Update docs/installation-guide.rst for typo and update the overview.rst.
Issue-ID: INF-16
Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
Change-Id: Ie0d2bb1f266e2eeeb18fec8e4ed979e15cba475d
Jackie Huang [Mon, 8 Jun 2020 05:01:03 +0000 (13:01 +0800)]
meta-patches: remove patch that has been upstream
The patch 0001-Workaround-and-fix-compile-and-dependency-problems.patch
has been split to 34 patches and merged in upstream meta-cloud-services,
so remove it to avoid patch apply failure.
Issue-ID: INF-153
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Icc5911375a8c8ca26ec2dd541050bdc334ca8626
Jackie Huang [Mon, 8 Jun 2020 07:19:52 +0000 (15:19 +0800)]
docs: update the developer-guide.rst for Bronze release
Issue-ID: INF-16
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Ie026cbb7317b4562b6c5c3219bab214013420485
Xiaohua Zhang [Tue, 2 Jun 2020 03:24:41 +0000 (23:24 -0400)]
Update the installatin-guide to add SR-IOV use case
Issue-ID: INF-16
Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
Change-Id: I258c12cfd6baa2a6711ad01c7eccfa10b93c8ae8
Xiaohua Zhang [Thu, 4 Jun 2020 15:54:10 +0000 (15:54 +0000)]
Merge "Update docs/installation-guide.rst for Bronze Issue-ID: INF-16"
Jackie Huang [Wed, 3 Jun 2020 06:47:31 +0000 (14:47 +0800)]
scripts: rename the build script and image name
rename the build script and image name:
- build_stx.sh -> build_inf.sh
- stx-image-aio-installer-intel-corei7-64.iso
-> inf-image-aio-installer-intel-corei7-64.iso
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: If442d933e6f5c430944da1b70f13f2a1cf130e57
Xiaohua Zhang [Tue, 2 Jun 2020 00:34:21 +0000 (20:34 -0400)]
Update docs/installation-guide.rst for Bronze
Issue-ID: INF-16
Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
Change-Id: I32b848c74dc42d509b91b831d950b1a1a57a68a8
Jackie Huang [Mon, 1 Jun 2020 08:24:06 +0000 (16:24 +0800)]
stx-config-files: change the login banner to show oran release
Change the login banner to show oran release instead of
starlingx's platfrom release:
19.12 -> Bronze (2.0)
Issue-ID: INF-145
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I190d2cbf21a3448d8b7915a01deb0555b9a8681b
Jackie Huang [Sat, 30 May 2020 07:23:16 +0000 (15:23 +0800)]
classes: add stx-image-list.bbclass to generate pkglist
Add stx-image-list.bbclass to generate pkglist automatically
so we don't need to maintain the pkglist manually and the
pkg lists in conf/distro/files/pkglist/ are removed.
After this change, the following pkglist file will be generated:
- For target build:
tmp/deploy/images/intel-corei7-64/stx-image-aio-intel-corei7-64.pkglist
- For anaconda installer build:
tmp-glibc/deploy/images/intel-corei7-64/stx-image-aio-installer-intel-corei7-64.stx-image-aio.pkglist
Issue-ID: INF-141
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I0b183b9e4a2e665c4af6c4f33c3caf8a4f80a93e
Jackie Huang [Fri, 29 May 2020 09:42:13 +0000 (17:42 +0800)]
pxe-network-installer: fix kernel options in pxelinux.cfg.files
The anaconda in yocto handles the kernel options differently, so
do the following changes to ensure the installer starts correctly:
- inst.ks -> ks
- append LABEL=initrd-install
Issue-ID: INF-139
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I2a127405b144437fd9d5ff612b09b700b2028035
Jackie Huang [Fri, 29 May 2020 09:16:00 +0000 (17:16 +0800)]
pxe-network-installer: remove gpxelinux.0
gpxe has been removed from syslinux 4 years ago:
==================================================
commit
f2f897a1762fab84d2905f32b1c15dd7b42abb56
Author: H. Peter Anvin <hpa@zytor.com>
Date: Tue Feb 9 18:08:47 2016 -0800
gpxe: delete long since obsolete snapshot of gPXE
gPXE has been deprecated in favor of iPXE for many, many years now.
It is much better than users get it directly from the iPXE project,
since we should no longer need any special modifications for Syslinux
use.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
==================================================
Remove it for now since it doesn't seem to be mandatory and
we can use pxelinux.0 for now.
Issue-ID: INF-140
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I7dcf6d1de1496a470130a4b43aef50159947c6f3
Xiaohua Zhang [Mon, 1 Jun 2020 02:53:54 +0000 (22:53 -0400)]
Update overview.rst
Issue-ID: INF-16
Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
Change-Id: I587f3c04c83aea39637cf56b2e0272bdc6db4741
Jackie Huang [Fri, 29 May 2020 02:55:23 +0000 (10:55 +0800)]
poky_stx_aio_ks.cfg: add installer images for pxe
In stx 3.0, these images are downloaded from centos and
packaged in pxe-network-installer, but the images from
centos can not be used directly here, the corresponding
images are built in a separate project for anaconda, and
are not available yet when pxe-network-installer is built,
so we have to move these installation to the post-run
script in the anaconda's kickstart file.
Issue-ID: INF-130
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I282866c2720f3cae9df16f0c49569bc6409c2fbf
Jackie Huang [Thu, 28 May 2020 14:37:19 +0000 (22:37 +0800)]
pxe-installer-initramfs: add new recipe and add into image
The initramfs used by installer ISO image doesn't work for the pxe
installer, so we need to add an extra initramfs for pxe installer:
core-image-anaconda-initramfs
Issue-ID: INF-138
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Ie1edd90a55dcfb9cf461a26a9a2e24cde707f7b4
Jackie Huang [Wed, 27 May 2020 07:05:14 +0000 (15:05 +0800)]
pxe-network-installer: align with stx 3.0
- Correct some directories
- Change stx_thud to poky-stx
- Add dependency on several syslinux sub packages
- Fix the postinst script
- Move the installation of installer images to kickstart file
since they are not available before building anaconda
Issue-ID: INF-130
Issue-ID: INF-131
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Ie8c936f8937b8a07145d2d99c8c145292abef3cd
Jackie Huang [Thu, 28 May 2020 08:23:38 +0000 (16:23 +0800)]
build_stx.sh: remove duplicated url for meta-security
Issue-ID: INF-53
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Iebf6edd591ad286d388f3ec243ede11a7712e5ac
Jackie Huang [Thu, 28 May 2020 12:04:35 +0000 (20:04 +0800)]
python: use wildcard character in bbappend version
Use the "%" wildcard character to allow for matching
differnet versions avoid missing match when the recipe
is updated in oe-core.
Note:
Although the warrior(yocto 2.7) has been released, but
some packges may still be updated in the future.
e.g. python is updated from 2.7.17 to 2.7.18 recently.
Issue-ID: INF-137
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Id13db69320bf6c4755cdf0cb67adda7ed3de882f
Litao Gao [Thu, 28 May 2020 01:39:23 +0000 (01:39 +0000)]
openstack-barbican-api: cleanup unused files
Issue-ID: INF-135
Signed-off-by: Litao Gao <litao.gao@windriver.com>
Change-Id: I8f0d6c2e2ae7d5da5bdd8f776b8f2b435ea3852b
Litao Gao [Wed, 27 May 2020 09:47:40 +0000 (09:47 +0000)]
lldpd: downversion to align with stx
previous version in yocto is 0.9.8 which
changes the format of the json output, which
will break the output handling in sysinv.
Issue-ID: INF-126
Signed-off-by: Litao Gao <litao.gao@windriver.com>
Change-Id: I7dac21676235c813251e6c1ec83051cffcddcc8c
Xiaohua Zhang [Wed, 27 May 2020 21:17:34 +0000 (17:17 -0400)]
Update the doc overview and release note.
Issue-ID: INF-16
Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
Change-Id: I398b636d1e0dc55ce2de58942e5e80a2b41822f2
Jackie Huang [Mon, 25 May 2020 08:42:16 +0000 (16:42 +0800)]
meta-oran: add missing license header for recipes
Issue-ID: INF-129
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I94af66878588a66a9fde3bc3e70f5e72eb6637a7
Jackie Huang [Mon, 25 May 2020 05:20:28 +0000 (13:20 +0800)]
ldapscripts: use the source from stx upstream
The patche and source files are from stx upstream, to avoid
license and maintenance issue, remove the local copies and
set the correct SRC_URI to fetch from stx upstream.
Issue-ID: INF-129
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Ifca250dbf333c7ecf5a997b2ec82e4b10fa64b7e
Jackie Huang [Mon, 25 May 2020 05:01:34 +0000 (13:01 +0800)]
poky-stx.conf: remove zeroconf from DISTRO_FEATURES
The zeroconf distro feature will install packagegroup-base-zeroconf
that depends on libnss-mdns, which will breaks dns resolution for
StarlingX, so remove it from DISTRO_FEATURES
Issue-ID: INF-128
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I23f947e2163596f27081344bdfd23b88d7038ce4
Jackie Huang [Mon, 25 May 2020 04:53:06 +0000 (12:53 +0800)]
rpm2: cleanup the useless commented lines
Issue-ID: INF-53
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Ie5a9a2915dc7b29afdb7abd6e8ada67fbed9e386
Jackie Huang [Sun, 24 May 2020 13:51:55 +0000 (21:51 +0800)]
ibsh: use the source from stx upstream
The patche and source files are from stx upstream, to avoid
license and maintenance issue, remove the local copies and
set the correct SRC_URI to fetch from stx upstream.
Issue-ID: INF-129
Issue-ID: INF-51
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I0049bbbdedf9197516e17f3897110e4e43de06be
Jackie Huang [Fri, 22 May 2020 03:11:15 +0000 (11:11 +0800)]
meta-stx: set preempt-rt as the default kernel
- Set preempt-rt as the default kernel
- Add rt-tests into the image
- Remove extra boot menus since only the AIO controller with
preempt-rt kernel will be built and supported.
Issue-ID: INF-121
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I3afaeb510607e5bbb5cf3adb97480f04abcd03d0
Jackie Huang [Fri, 22 May 2020 02:20:18 +0000 (10:20 +0800)]
mtce.inc: cleanup the commented lines and align with stx3.0
- Remove the useless TODO
- Align with stx 3.0 to create symlinks for libamon.so
Issue-ID: INF-53
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I3ca998d1f843375b8a7e433aa62b2bd75777f804
Jackie Huang [Thu, 21 May 2020 14:09:16 +0000 (22:09 +0800)]
stx-monitoring: cleanup the TODO for license files
Add the commented TODO license files into LIC_FILES_CHKSUM.
Issue-ID: INF-53
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I6e4b4ccd7b00df09e83327fa1e21e425fff20869
Jackie Huang [Thu, 21 May 2020 13:56:28 +0000 (21:56 +0800)]
config-files: cleanup useless commented lines
Issue-ID: INF-53
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I8a05f34ce7c1b9f2e3c4ff1adb6d3afdaa8f5867
Jackie Huang [Tue, 5 May 2020 08:02:55 +0000 (16:02 +0800)]
systemd: remove the log message about /var/run
There are many services still using /var/run for pid file, so there are
lots of log message about changing /var/run to /run, which is harmless
but annoying, so move such messages.
Issue-ID: INF-127
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I8ec7325f64b57b7cc9e0250235680d39e602fb3f
Xiaohua Zhang [Thu, 21 May 2020 09:33:29 +0000 (09:33 +0000)]
Merge "dnsmasq: disable dnsmasq service as default"
Litao Gao [Wed, 20 May 2020 15:17:13 +0000 (11:17 -0400)]
dnsmasq: disable dnsmasq service as default
STX service manager assumes dnsmasq service
is disabled as defaut.
Issue-ID: INF-124
Signed-off-by: Litao Gao <litao.gao@windriver.com>
Change-Id: I1a46d2cee87f6eb5e1dbb961463fbc8441a1d414
Litao Gao [Wed, 20 May 2020 14:59:06 +0000 (14:59 +0000)]
python-eventlet: downversion to 0.18.4 to align with stx
Issue-ID: INF-123
Signed-off-by: Litao Gao <litao.gao@windriver.com>
Change-Id: Iba758cb205e52e8242bb36f63f475b25ad5b6175
Xiaohua Zhang [Tue, 19 May 2020 13:33:16 +0000 (13:33 +0000)]
Merge "fm-mgr: fix to avoid useradd error"
Litao Gao [Tue, 19 May 2020 09:19:38 +0000 (09:19 +0000)]
stx-config: add extra command to bring sriov pf device up
Extra command is needed to bring up the interface whose
inet configuration type is 'manual'.
Issue-ID: INF-119
Signed-off-by: Litao Gao <litao.gao@windriver.com>
Change-Id: I65d0f2faae14426f5ecafa21a21c7dfbc2f6f905
Jackie Huang [Tue, 19 May 2020 03:27:34 +0000 (11:27 +0800)]
fm-mgr: fix to avoid useradd error
There is an issue in Yocto that the useradd dependency is not
corretly handled:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=13904
This fix is a work around to move the useradd option "-G snmpd"
to image level and use usermod command instead.
Issue-ID: INF-120
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I4d9671ab11fa2d33e69359ada5395be04ec3e7c5
Jackie Huang [Mon, 18 May 2020 08:36:07 +0000 (16:36 +0800)]
python-glanceclient: add missing bash_completion file
Issue-ID: INF-117
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Ic3e4609acd80d3c360d4ef89b81a60a8044b102e
Jackie Huang [Mon, 18 May 2020 08:26:05 +0000 (16:26 +0800)]
python-cinderclient: add missing bash_completion file
Issue-ID: INF-117
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I75493a6210cc3c90bc052dc31ef4925befc9075f
Jackie Huang [Mon, 18 May 2020 05:15:45 +0000 (13:15 +0800)]
stx-kconfig.cfg: fix do_kernel_configcheck warnings
Fix the following warnings:
WARNING: linux-yocto-5.0.19+gitAUTOINC+7f6e97c357_55dd15336b-r0
do_kernel_configcheck: [kernel config]: specified values did not make it
into the kernel's final configuration:---------- CONFIG_CRC_CCITT
Requested value: CONFIG_CRC_CCITT=m
Actual value: CONFIG_CRC_CCITT=y
do_kernel_configcheck: [kernel config]: This BSP sets config options
that are not offered anywhere within this kernel:
CONFIG_IOSCHED_CFQ
CONFIG_CFQ_GROUP_IOSCHED
Issue-ID: INF-36
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I9237b55ece178f795152d0d71076c7ec2a703f56
Litao Gao [Mon, 18 May 2020 07:46:07 +0000 (03:46 -0400)]
pmon: send pulse to hostwd under polling mode
Issue-ID: INF-46
Signed-off-by: Litao Gao <litao.gao@windriver.com>
Change-Id: I7765510f7c3869edc432030cf819f678582bd15d
Jackie Huang [Fri, 15 May 2020 12:38:55 +0000 (20:38 +0800)]
stx-anaconda-image.bbclass: add error handling when copy pkgs
Add error handling when copy pkgs avoid do_rootfs failure
if there is any changes in the pkglist.
Issue-ID: INF-118
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I5242b02ffae096726732e9a3ed9d0cbefbcba945
Jackie Huang [Fri, 15 May 2020 09:28:26 +0000 (17:28 +0800)]
cgts-client: add missing bash_completion file
Issue-ID: INF-117
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I7160bd4b8c2864e638f32953c32dddd61ad6256f
Jackie Huang [Fri, 15 May 2020 08:10:41 +0000 (16:10 +0800)]
kernel-devsrc: extend to provide all kernel source
* Add bbappend to re-write do_install to provide all kernel
source, so it will:
- Fix issues that dpdk fails to build in container.
- Extend the ability of the recipe so it can rebuild kernel
* And add kernel-devsrc to image.
Issue-ID: INF-116
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I20ab8c622bcbbfe2a8e5068dae5cb5fef5321dd8
Jackie Huang [Thu, 14 May 2020 12:24:10 +0000 (20:24 +0800)]
stx-kconfig.cfg: enable soft watchdog for hostw
kernel soft watchdog is required by hostw, or it fails with:
kernel_watchdog_init :Error : Could not open kernel watchdog
Issue-ID: INF-115
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Ibabfae505f0cedb7a4087976886201b493ae7f25
Litao Gao [Wed, 13 May 2020 10:21:15 +0000 (10:21 +0000)]
puppet-kmod: add persistent kernel module autoload for poky
Issue-ID: INF-113
Signed-off-by: Litao Gao <litao.gao@windriver.com>
Change-Id: Ic748479a90d16b43c67249089e11a68ca15b53f4
Jackie Huang [Wed, 13 May 2020 14:52:55 +0000 (22:52 +0800)]
dnf: add os-release and lsb-release into the search list
There is no 'redhat-release' or 'suse-release' provided by yocto, so add
'os-release' and 'lsb-release' into the search list so it will detect
the correct 'releasever'.
Issue-ID: INF-103
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I755afbdda056d8c36cdb6b261ef0730c0023ff8f
Jackie Huang [Wed, 13 May 2020 14:15:16 +0000 (22:15 +0800)]
stx-update: fix exceptions when stx rpm group do not exist
There is not any stx rpm group in the repo for stx patches for now,
e.g. updates-controller-worker
So add a patch to avoid expections when the pkggrp is None, and change
the error to warning.
Issue-ID: INF-103
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I6c590e84f34c35ac0ed441baeb77821e5e447f68
Jackie Huang [Wed, 13 May 2020 04:02:20 +0000 (12:02 +0800)]
rt-tests: add numa support for the affinity option
- Add a PACKAGECONFIG for numa support and enable it by default
- A python tool 'hwlatdetect' will be added if numa is enabled,
so add dependency on python.
Issue-ID: INF-112
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Icdb7bf42da8b3a31ec391dbc0bfd420808c5b034
Jackie Huang [Mon, 11 May 2020 02:56:36 +0000 (10:56 +0800)]
pkglist: add pkg list for rt image
Issue-ID: INF-104
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I748395d816d77c198280c2b2f3cc0d954f30419e
Jackie Huang [Wed, 13 May 2020 01:09:32 +0000 (09:09 +0800)]
stx-kconfig.cfg: add support for openvswitch
add support for openvswitch for RT kernel
Issue-ID: INF-111
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Ie751ae5bd3cfbe80d9b276e84781b5363c49428c
Jackie Huang [Tue, 12 May 2020 14:28:32 +0000 (22:28 +0800)]
stx-kconfig.cfg: add overlay support for kubernetes
add overlay support for kubernetes for RT kernel
Issue-ID: INF-109
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Ia0efe50f94948a893012379eb0aebfd8f7523806
Xiaohua Zhang [Wed, 13 May 2020 09:13:46 +0000 (09:13 +0000)]
Merge "stx-metal: change to use /bin/systemctl in pmon service"
Litao Gao [Tue, 12 May 2020 11:47:55 +0000 (07:47 -0400)]
stx-metal: change to use /bin/systemctl in pmon service
pmon refers to /usr/bin/systemctl for process respawning,
modify code to use /bin/systemctl instead.
Issue-ID: INF-95
Signed-off-by: Litao Gao <litao.gao@windriver.com>
Change-Id: If5e15314676268839fe57fec53a90b5027a8c4bf
Litao Gao [Tue, 12 May 2020 12:01:03 +0000 (08:01 -0400)]
stx-gui: put starlingx specific files to right pythonpath
horizon is expecting pythonpath to be
/usr/share/openstack-dashboard/openstack_dashboard/
so part of starlingx-dashboard files should be placed this
path instead of ${PYTHON_SITEPACKAGES_DIR}
Issue-ID: INF-106
Issue-ID: INF-102
Signed-off-by: Litao Gao <litao.gao@windriver.com>
Change-Id: I112b0c00d574a6046950a9d1d45bf99e7fe16c62
Jackie Huang [Mon, 11 May 2020 07:50:00 +0000 (15:50 +0800)]
stx-kconfig.cfg: add missing kernel features for docker
Add the following missing kernel features for docker:
- CONFIG_CFQ_GROUP_IOSCHED=y
- CONFIG_IOSCHED_CFQ=y
- CONFIG_VETH=y
- CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=m
Issue-ID: INF-108
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Id8c0f6192747e398b6b63dbe35073d5cd13a3f3c
Jackie Huang [Tue, 12 May 2020 06:38:06 +0000 (14:38 +0800)]
poky-stx-aio-pkg-list: add xfsprogs for anaconda
- xfsprogs and sub packages are required by anaconda installer.
- rename the file surfix: txt -> cfg
Issue-ID: INF-110
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I8c00f50a1a112a849b5c80aaa6e640759c84bf69
Jackie Huang [Sat, 9 May 2020 08:59:48 +0000 (16:59 +0800)]
stx-image-aio-installer: add dependency on gptfdisk
The tools provided by gptfdisk are required by stx kickstarts
Issue-ID: INF-105
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I6ad6905157016feda079455c0734e9b0d72b79e7
Jackie Huang [Sat, 9 May 2020 03:54:06 +0000 (11:54 +0800)]
poky_stx_aio_ks.cfg: fix for creating rpm repo
- Update kickstart to generate DNF repo config files
backport and ajust from:
https://opendev.org/starlingx/metal/commit/
09b95bf651c065e9fffae3255ecf0d0e52a61249
- Add a pre script to adjust the directoris since the
anaconda image in poky has a different directory structure.
Issue-ID: INF-95
Issue-ID: INF-101
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I5bd1664078882c6a2ac9c7310bd6bc44ed141b8e
Jackie Huang [Sat, 9 May 2020 07:34:42 +0000 (15:34 +0800)]
stx-anaconda-image.bbclass: add exact pkg list to limit the repo size
This change ensures only packages in the list will be added in the
rpm repo in the ISO image, so it will reduce the size:
* rpm repo: 3.4G -> 1.3G
* ISO image: 4.3G -> 2.1G
Remove the list for REPO_EXCLUDE_PKG which is not needed any more.
Issue-ID: INF-104
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I0f63a5ee57f7b08fce9f16a3f051eb3dfb0f8f2f
Jackie Huang [Fri, 8 May 2020 09:24:05 +0000 (17:24 +0800)]
collectd: add missing config files for plugins
Add missing config files for plugins from collectd-5.8.1-4.el7.src.rpm
Issue-ID: INF-95
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Ic97bca595d99e82763bdd6e4332ce35db8b9e5b7
Jackie Huang [Fri, 8 May 2020 08:50:09 +0000 (16:50 +0800)]
collectd-extensions: add dependency on ntpq
ntpq is required by ntpq.py in collectd-extensions.
Issue-ID: INF-100
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Ibcc3402e274b47fbf4165fe58ebb491f19a1efff
Jackie Huang [Thu, 7 May 2020 13:28:07 +0000 (21:28 +0800)]
dnf: add support for python2
Some stx components like sw-patch requres python-dnf but it's
using python2, and other stx components depend on sw-patch
are using python2 as well, so add support of python2 for
dnf for now, stx components will be move to python3 in
the future.
Issue-ID: INF-89
Issue-ID: INF-98
Issue-ID: INF-99
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I99b0e00f8357e701a2fecfd155e381a7e94a5e9b
Jackie Huang [Fri, 8 May 2020 07:08:11 +0000 (15:08 +0800)]
python-pyliblzma: add new recipe
This is required by dnf after adding python2 support.
Issue-ID: INF-99
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I2e607e22a050830fc9e6768917d63a740ca565a4
Jackie Huang [Fri, 8 May 2020 05:49:04 +0000 (13:49 +0800)]
libcomps: add support for python2
libcomps is required by dnf, and the python2 support is needed
after adding python2 support for dnf.
Issue-ID: INF-97
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I157ffb471b727736d9a00d4ca2498e9c1f0de8e4
Jackie Huang [Fri, 8 May 2020 05:34:08 +0000 (13:34 +0800)]
libdnf: add support for python2
libdnf is required by dnf, and the python2 support is needed
after adding python2 support for dnf.
Issue-ID: INF-96
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I28ca127bd0f914702869a5826211b10de404f647
Litao Gao [Fri, 8 May 2020 06:44:54 +0000 (02:44 -0400)]
stx-puppet: fix the unnecessary network configuration apply
In AIO case, both controller and worker will run network puppet
to apply network configuration, need to check and avoid unnecessary
apply to avoid the potential conflicts.
Issue-ID: INF-94
Signed-off-by: Litao Gao <litao.gao@windriver.com>
Change-Id: I0372dd669b00a0969b5cddc0df3d9576092d564a
Jackie Huang [Thu, 7 May 2020 09:54:12 +0000 (17:54 +0800)]
mtce.inc: fix typos for services.d directory
Fix typos:
* serverices.d -> services.d
* 755 -> 750
Issue-ID: INF-93
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Ib97fc0f56ad093fe1495b929f9cb83d01f9e46ef
Jackie Huang [Wed, 6 May 2020 12:31:01 +0000 (20:31 +0800)]
stx-update: migrate patch-agent to use dnf instead of smart
smart is not availble in yocto any more and is replaced by dnf, which is
the same situation in the later stx release on centos 8, so backport
seceral patches from later stx release to migrate patch-agent to use dnf
instead of smart.
Issue-ID: INF-84
Issue-ID: INF-91
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I1a53ffae6c53a638cf14cd4354e2c5d8bf7f6440
Jackie Huang [Thu, 7 May 2020 08:22:57 +0000 (16:22 +0800)]
ceph: remove ceph user and disable systemd services
In stx 3.0, ceph runs with root user and is not meant to
be managed by systemd, so remove ceph user group, and
disable systemd services by default.
Issue-ID: INF-92
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I6613f6f9c4678da897ffee3faae0ce1929bb87e5
Jackie Huang [Wed, 6 May 2020 13:44:23 +0000 (21:44 +0800)]
stx-config-files: avoid mkdir error if existing
use -p option for mkdir to avoid error if existing
Issue-ID: INF-84
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I446ce119b2e7470f81c2c4511372b909f7411b5d
Jackie Huang [Wed, 6 May 2020 10:46:52 +0000 (18:46 +0800)]
cgcs-patch.inc: fix the binary name of createrepo_c
fix the binary name of createrepo_c in init script sw-patch-controller
Issue-ID: INF-84
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I23a1d3fe9a5124313de8023afa394722a4467de3
Jackie Huang [Wed, 6 May 2020 07:45:06 +0000 (15:45 +0800)]
dnsmasq: add version 2.76 and align with stx 3.0
- Add recipe for version 2.76 and set as the preferred
version (or it will select 2.80)
- Add patches from dnsmasq-2.76-7.el7.tis.7.src.rpm
- Align the spec file from dnsmasq-2.76-7.el7.tis.7.src.rpm
- Add dependency on dnsmasq so it will be installed in image
Issue-ID: INF-85
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I0f0ab584686c2aa94b8ec2156f98f1298ea19293
Jackie Huang [Wed, 6 May 2020 04:09:56 +0000 (12:09 +0800)]
poky_stx_aio_ks.cfg: do not mask dev-hugepages.mount
Do not mask dev-hugepages.mount since hugepages need to
be mounted for stx.
Issue-ID: INF-78
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Ifdb1e829a4e232648a1f5ddd3581dbbe5cad22cf
Xiaohua Zhang [Wed, 6 May 2020 14:05:24 +0000 (14:05 +0000)]
Merge "barbican: fix path issue in service unitfile and missing dir"
Jackie Huang [Wed, 6 May 2020 04:13:39 +0000 (12:13 +0800)]
grub: avoid mounting the read-only root filesystem
Issue-ID: INF-69
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Iafb29eecccaf2eab5c3cee3dba97bdbd0fe89293
Litao Gao [Thu, 30 Apr 2020 05:38:48 +0000 (01:38 -0400)]
barbican: fix path issue in service unitfile and missing dir
- use systemd-tmpfiles to create missing /var/log/barbican
Issue-ID: INF-38
Signed-off-by: Litao Gao <litao.gao@windriver.com>
Change-Id: Id774e8859259289ecaba578726b9998edb5e47cb
Jackie Huang [Tue, 5 May 2020 15:33:11 +0000 (23:33 +0800)]
config-files: remove the patch of changing the log source
The log source "systemd_journal" will not be used at all in stx
after unlock and there will not be any log redirected to syslog files,
so we should not change the log source to "systemd_journal", remove
the patch to revert back to use /dev/log
Issue-ID: INF-65
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I0b755247bbc232c3690ac8826f292f4ae5e8c40f
Jackie Huang [Mon, 4 May 2020 13:40:35 +0000 (21:40 +0800)]
config-files: add starlingx login banners
Add starlingx login banners into /etc/issue and /etc/issue.net
Issue-ID: INF-80
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I17963c57656fd95ec779b6bdc55900af7348b5df
Jackie Huang [Tue, 5 May 2020 09:35:33 +0000 (17:35 +0800)]
cgcs-patch.inc: inherit systemd to enable services
inherit systemd to enable the following services by default:
- sw-patch-controller.service
- sw-patch-controller-daemon.service
- sw-patch-agent.service
- sw-patch.service
Issue-ID: INF-82
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Ifc3ecbf5372e2e9ac0b5cc9d18e101cef0e2b052
Jackie Huang [Tue, 5 May 2020 01:37:41 +0000 (09:37 +0800)]
worker-utils.inc: fix the path for drbdadm
fix the path for drbdadm in script affine-tasks.sh
Issue-ID: INF-81
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I45da6f59a038610d41992750468160bbe3e0d678
Jackie Huang [Mon, 4 May 2020 09:20:01 +0000 (17:20 +0800)]
stx-update: backport a patch to remove dependency on yum
rpmUtils.miscutils.stringToVersion is provided by yum, which is
not availble in yocto and is replaced by dnf, and it's the same
situation in the later stx release on centos 8, so backport
a patch from later stx release to remove the dependency on yum.
Issue-ID: INF-72
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I1f26a717d7fd75e7077eabe060284bfa3c1a826b
Jackie Huang [Fri, 1 May 2020 14:20:59 +0000 (22:20 +0800)]
openssh: align the service behavior with stx 3.0
- Remove the sshd.socket and sshd@service used by yocto by default
- Add the service and config files from stx 3.0 and align
the service behavior
- Fix the postinst for sshd-config and enable the service
Issue-ID: INF-68
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I0741b5e413e9a2c831b3f248a9fa6ef9444bd6a0
Jackie Huang [Fri, 1 May 2020 13:18:34 +0000 (21:18 +0800)]
playbookconfig: set longer timeout and add retries for ansible
- Set longer timeout and add retries for ansible ssh connection
to avoid timeout failure:
"timeout waiting for privilege escalation password prompt:\n"
- Change the postinst_ontarget to postinst to avoid hidden issue
Issue-ID: INF-73
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Ia7d1c6ce7cfdb0b13516ab92625eb8d8107ffe00
Jackie Huang [Fri, 1 May 2020 13:40:16 +0000 (21:40 +0800)]
net-snmp: disable snmptrapd.service and snmpd.service by default
snmptrapd.service and snmpd.service should be disabled by default
and will be mananged by SM
Issue-ID: INF-75
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Ib267cf15ac6ebb20ef951c71ce80de44b4cd67d0
Jackie Huang [Fri, 1 May 2020 13:08:03 +0000 (21:08 +0800)]
poky-stx.conf: re-define the SERIAL_CONSOLES
Re-define the SERIAL_CONSOLES to avoid annoying messages:
agetty[133305]: /dev/ttyS2: not a tty
agetty[133305]: /dev/ttyS1: not a tty
Issue-ID: INF-74
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I9b8918b771a0e14b2e64c6b4988e97c85b7f0330
Jackie Huang [Fri, 1 May 2020 09:19:45 +0000 (17:19 +0800)]
influxdb: add new recipe and related dependency
influxdb is required by stx, so add the new recipe
and related dependency.
Issue-ID: INF-71
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I04bf23605a40ed4ae9dfdef4091aa4fe4f5de666
Jackie Huang [Fri, 1 May 2020 02:29:17 +0000 (10:29 +0800)]
config-files: fix installation for io-scheduler-config
- Move the installation from postinst script to do_install
and fix the incorrect path.
- Remove some useless commented lines.
Issue-ID: INF-66
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I56145ee907280aeaa10b11e68a3726d4a918a4ef
Jackie Huang [Thu, 30 Apr 2020 09:20:45 +0000 (17:20 +0800)]
stx-ha: fix the sqlite related dependencies
sqlite3 is required by stx 3.0 instead of sqlite, so
fix the related dependencies to avoid installing
sqlite and python-pysqlite.
Issue-ID: INF-63
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I191d505dd7797d835d78197006308346375d1039
Jackie Huang [Thu, 30 Apr 2020 09:18:56 +0000 (17:18 +0800)]
packagegroup-stak-base: remove the useless packagegroup
packagegroup-stak-base is not used any more, so remove it.
Issue-ID: INF-51
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Id2d876c00327991a040473477402fb14846b2be4
Jackie Huang [Thu, 30 Apr 2020 09:14:49 +0000 (17:14 +0800)]
stx-preferred-vers: remove invalid preferred version
Remove the preferred version "1.0.2" for python-sqlalchemy
which is invalid or there is warning:
WARNING: versions of python-sqlalchemy available: 1.0.16 1.1.17 1.1.5
Issue-ID: INF-64
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Id749f5b1ea4bad78438f7b38658d46dd8fecb529