pti/rtp.git
4 years agostx-puppet: fix the unnecessary network configuration apply 34/3634/1
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

4 years agomtce.inc: fix typos for services.d directory 22/3622/1
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

4 years agostx-update: migrate patch-agent to use dnf instead of smart 21/3621/1
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

4 years agoceph: remove ceph user and disable systemd services 20/3620/1
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

4 years agostx-config-files: avoid mkdir error if existing 19/3619/1
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

4 years agocgcs-patch.inc: fix the binary name of createrepo_c 18/3618/1
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

4 years agodnsmasq: add version 2.76 and align with stx 3.0 96/3596/1
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

4 years agopoky_stx_aio_ks.cfg: do not mask dev-hugepages.mount 95/3595/1
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

4 years agoMerge "barbican: fix path issue in service unitfile and missing dir"
Xiaohua Zhang [Wed, 6 May 2020 14:05:24 +0000 (14:05 +0000)]
Merge "barbican: fix path issue in service unitfile and missing dir"

4 years agogrub: avoid mounting the read-only root filesystem 91/3591/2
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

4 years agobarbican: fix path issue in service unitfile and missing dir 92/3592/1
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

4 years agoconfig-files: remove the patch of changing the log source 90/3590/2
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

4 years agoconfig-files: add starlingx login banners 85/3585/1
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

4 years agocgcs-patch.inc: inherit systemd to enable services 84/3584/1
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

4 years agoworker-utils.inc: fix the path for drbdadm 83/3583/1
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

4 years agostx-update: backport a patch to remove dependency on yum 82/3582/1
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

4 years agoopenssh: align the service behavior with stx 3.0 63/3563/1
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

4 years agoplaybookconfig: set longer timeout and add retries for ansible 62/3562/1
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

4 years agonet-snmp: disable snmptrapd.service and snmpd.service by default 61/3561/1
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

4 years agopoky-stx.conf: re-define the SERIAL_CONSOLES 60/3560/1
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

4 years agoinfluxdb: add new recipe and related dependency 59/3559/1
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

4 years agoconfig-files: fix installation for io-scheduler-config 58/3558/1
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

4 years agostx-ha: fix the sqlite related dependencies 49/3549/1
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

4 years agopackagegroup-stak-base: remove the useless packagegroup 48/3548/1
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

4 years agostx-preferred-vers: remove invalid preferred version 47/3547/1
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

4 years agoMerge "lighttpd: prepare chroot enviroment for lighttpd"
Xiaohua Zhang [Thu, 30 Apr 2020 07:10:05 +0000 (07:10 +0000)]
Merge "lighttpd: prepare chroot enviroment for lighttpd"

4 years agolighttpd: prepare chroot enviroment for lighttpd 41/3541/1
Litao Gao [Wed, 29 Apr 2020 07:14:36 +0000 (03:14 -0400)]
lighttpd: prepare chroot enviroment for lighttpd

cp /dev/null to /www/dev and set right permission

Issue-ID: INF-57
Change-Id: Ida56cd2cadf9457e8989f09d639a13c5c7dae13c
Signed-off-by: Litao Gao <litao.gao@windriver.com>
4 years agonfv-vim: fix incorrect paths 40/3540/1
Jackie Huang [Wed, 29 Apr 2020 09:26:17 +0000 (17:26 +0800)]
nfv-vim: fix incorrect paths

Issue-ID: INF-59
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Ifa10ce0712d76b85f4cd7074eaaac3660275f403

4 years agostx-image-aio: inherit extrausers-config in image recipe 39/3539/1
Jackie Huang [Wed, 29 Apr 2020 08:50:08 +0000 (16:50 +0800)]
stx-image-aio: inherit extrausers-config in image recipe

inherit extrausers-config in stx-image-aio image only instead of distro
config to avoid unexpected issue for other images.

Issue-ID: INF-62
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: If1b67e44b39a02c960ae3b6cbfb390e647a17fea

4 years agosysinv: inherit useradd to add user and group 38/3538/1
Jackie Huang [Wed, 29 Apr 2020 07:55:49 +0000 (15:55 +0800)]
sysinv: inherit useradd to add user and group

- stx 3.0 needs the 'sysinv' user/group created with id 168,
  which maybe occupied by other user/group, so change to
  inherit useradd in sysinv recipe to avoid such issue.
- reset the id for rpc and snmpd to align stx3.0
  and avoid conflicts.

Issue-ID: INF-61
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Ie0639fb8d2451fc49bc79de99ee3ebfea3c508e8

4 years agoresource-agents: do not reset the rsctmpdir 28/3528/1
Jackie Huang [Wed, 29 Apr 2020 04:30:09 +0000 (12:30 +0800)]
resource-agents: do not reset the rsctmpdir

stx3.0 uses the default rsctmpdir:
/var/run/resource-agents

so do not reset the rsctmpdir in configure.

Issue-ID: INF-58
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I1f04b3e9aababccd900ebf9052d06710a997a3b7

4 years agofm-mgr.inc: inherit useradd to add user and group 26/3526/1
Jackie Huang [Tue, 28 Apr 2020 15:57:47 +0000 (23:57 +0800)]
fm-mgr.inc: inherit useradd to add user and group

- inherit useradd bbclass to add user and group 'fm' which is
  required by stx 3.0
- add dependency on net-snmp-server-snmpd since 'fm' need to
  be in group 'snmpd'

Issue-ID: INF-55
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Ie42cccf84726a938a703d35aa57df3855ce6da25

4 years agonet-snmp: inherit useradd to add user and group 25/3525/1
Jackie Huang [Wed, 29 Apr 2020 01:49:45 +0000 (09:49 +0800)]
net-snmp: inherit useradd to add user and group

inherit useradd bbclass to add user and group 'snmpd' which is
required by stx 3.0

Issue-ID: INF-56
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I0c390a178951544c781fde0e89d11f26434550ec

4 years agonet-snmp-config: add dependency on server-snmpd and server-snmptrapd 24/3524/1
Jackie Huang [Tue, 28 Apr 2020 16:13:10 +0000 (00:13 +0800)]
net-snmp-config: add dependency on server-snmpd and server-snmptrapd

Issue-ID: INF-54
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I70dc59241a26a16faa2bf8606cb50b3361bc0366

4 years agostx-ha: cleanup todo and commented lines 16/3516/1
Jackie Huang [Tue, 28 Apr 2020 14:46:55 +0000 (22:46 +0800)]
stx-ha: cleanup todo and commented lines

- cleanup the todo for licenses
- remove the useless commented lines

Issue-ID: INF-53
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I10a5bfa9614a58f9386a2498296b75c1f76d73cf

4 years agosm: fix rebuild errors 15/3515/1
Jackie Huang [Tue, 28 Apr 2020 14:42:54 +0000 (22:42 +0800)]
sm: fix rebuild errors

Do the oe_runmake clean before do_compile to ensure
rebuild without errors.

Issue-ID: INF-44
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Ib23c832383b1c37e81519e52edf2043cc10bbee0

4 years agoopenstack-ras: change the source repo from starlingx 14/3514/1
Jackie Huang [Tue, 28 Apr 2020 11:38:01 +0000 (19:38 +0800)]
openstack-ras: change the source repo from starlingx

change the source repo from starlingx to align with stx 3.0

Issue-ID: INF-52
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I981a2752a522101bd14964aa0ff3f8a8cfb18b17

4 years agostx-config: cleanup useless patches 13/3513/1
Jackie Huang [Tue, 28 Apr 2020 09:47:46 +0000 (17:47 +0800)]
stx-config: cleanup useless patches

These patches are useless after rebased to stx 3.0

Issue-ID: INF-51
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I243c6739d7dac250c04ce413ec7b2c6b026a59c6

4 years agostx-config: handle exceptions for pci device checking 12/3512/1
Jackie Huang [Tue, 28 Apr 2020 09:36:57 +0000 (17:36 +0800)]
stx-config: handle exceptions for pci device checking

Handle exceptions other than CalledProcessError for pci
device checking so that it will not fail and exit if
there are supported or unknown devices.

Issue-ID: INF-50
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Iff2ca63bea57e4dd9c27f5af8f27bd6bcd53013a

4 years agobarbican: fixes to enable barbican-api execution 85/3485/1
Litao Gao [Mon, 27 Apr 2020 14:27:23 +0000 (10:27 -0400)]
barbican: fixes to enable barbican-api execution

- create /bin/python symbolic lin
- create /var/log/barbican/
- use /bin/kill in service unit file

Issue-ID: INF-38
Signed-off-by: Litao Gao <litao.gao@windriver.com>
Change-Id: I2c910e98da6b7d1c4deddc5a4bd55cd3a1af4265

4 years agoMerge "keystone: switch keystone frontend to gunicorn to align with stx"
Xiaohua Zhang [Mon, 27 Apr 2020 13:55:03 +0000 (13:55 +0000)]
Merge "keystone: switch keystone frontend to gunicorn to align with stx"

4 years agoMerge "config-files: install the init script for lighttpd"
Xiaohua Zhang [Mon, 27 Apr 2020 12:48:59 +0000 (12:48 +0000)]
Merge "config-files: install the init script for lighttpd"

4 years agokeystone: switch keystone frontend to gunicorn to align with stx 81/3481/1
Litao Gao [Mon, 27 Apr 2020 09:35:22 +0000 (05:35 -0400)]
keystone: switch keystone frontend to gunicorn to align with stx

- unlink keystone service from apache2
- put app file used by gunicorn to expected directory
- disable apache2 service as default

Issue-ID: INF-37
Signed-off-by: Litao Gao <litao.gao@windriver.com>
Change-Id: Id8fcf640307582532b6aff6901d423e87e5c30a3

4 years agoMerge "resource-agents: upgrade to 4.1.1 and align with stx 3.0"
Xiaohua Zhang [Mon, 27 Apr 2020 11:27:04 +0000 (11:27 +0000)]
Merge "resource-agents: upgrade to 4.1.1 and align with stx 3.0"

4 years agoconfig-files: install the init script for lighttpd 75/3475/1
Jackie Huang [Mon, 27 Apr 2020 09:13:55 +0000 (17:13 +0800)]
config-files: install the init script for lighttpd

install the init script into /etc/init.d for lighttpd
to align with stx 3.0.

Issue-ID: INF-31
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Ia353e9463374c5202a8f23562df51c55376cff2c

4 years agoresource-agents: upgrade to 4.1.1 and align with stx 3.0 73/3473/1
Jackie Huang [Mon, 27 Apr 2020 04:53:47 +0000 (12:53 +0800)]
resource-agents: upgrade to 4.1.1 and align with stx 3.0

- upgrade to 4.1.1
- align with the spec from stx 3.0
- add patches from stx 3.0

Issue-ID: INF-41
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I4b25dc43c69025dbafbbb14930ee2cfce1a4cbd1

4 years agopostgresql: fix behaviour inconsistency in stx 72/3472/1
Litao Gao [Mon, 27 Apr 2020 07:37:16 +0000 (03:37 -0400)]
postgresql: fix behaviour inconsistency in stx

- change data_directory to /var/lib/postgresql/19.12
- remove the initdb before service start, which is not needed
- disable postgresql service as default

Issue-ID: INF-39
Signed-off-by: Litao Gao <litao.gao@windriver.com>
Change-Id: I14dd9723212d9b5f0c7669ccba57c881aba481e5

4 years agopython-gunicorn: downgrade to 19.7.1 to align stx 3.0 71/3471/1
Jackie Huang [Sun, 26 Apr 2020 14:41:58 +0000 (22:41 +0800)]
python-gunicorn: downgrade to 19.7.1 to align stx 3.0

Issue-ID: INF-48
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I255c7a12e0d71b4dd5b455ced635f5b97e1b424d

4 years agoMerge "linux-yocto-stx: add hp server support for anaconda"
Xiaohua Zhang [Mon, 27 Apr 2020 00:03:08 +0000 (00:03 +0000)]
Merge "linux-yocto-stx: add hp server support for anaconda"

4 years agoMerge "config-files: install the init script for snmpd"
Xiaohua Zhang [Sun, 26 Apr 2020 14:33:04 +0000 (14:33 +0000)]
Merge "config-files: install the init script for snmpd"

4 years agoMerge "python-django-horizon: install the init script"
Xiaohua Zhang [Sun, 26 Apr 2020 14:32:44 +0000 (14:32 +0000)]
Merge "python-django-horizon: install the init script"

4 years agoMerge "armada-app: fix build failure on centos"
Xiaohua Zhang [Sun, 26 Apr 2020 12:22:41 +0000 (12:22 +0000)]
Merge "armada-app: fix build failure on centos"

4 years agolinux-yocto-stx: add hp server support for anaconda 65/3465/1
Jackie Huang [Sun, 26 Apr 2020 05:26:17 +0000 (13:26 +0800)]
linux-yocto-stx: add hp server support for anaconda

- Add hp server support in kernel for anaconda installer image.

- In the build script, remove recipes-kernel from BBMASK
  so the added support will take effect.

Issue-ID: INF-35
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I04f424b874009b85022e3a5df6b95bd01d85a8e8

4 years agoconfig-files: install the init script for snmpd 64/3464/1
Jackie Huang [Sun, 26 Apr 2020 09:28:09 +0000 (17:28 +0800)]
config-files: install the init script for snmpd

install the init script into /etc/init.d for snmpd
to align with stx 3.0.

Issue-ID: INF-32
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I2fa4c3c3dec61d9a3025d5bcb0c3eee67bdf7f2f

4 years agopython-django-horizon: install the init script 63/3463/1
Jackie Huang [Sun, 26 Apr 2020 09:23:33 +0000 (17:23 +0800)]
python-django-horizon: install the init script

install the init script into /etc/init.d to align with stx 3.0

Issue-ID: INF-34
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I420be259e4641369fe87e1eb390fe32f9fce5da2

4 years agoarmada-app: fix build failure on centos 62/3462/1
Jackie Huang [Sun, 26 Apr 2020 03:58:07 +0000 (20:58 -0700)]
armada-app: fix build failure on centos

- use $! instead of pidof to get the last backgrounded helm service
- add a sleep after helm serve to ensure the servie is running

Issue-ID: INF-42
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I431b49da630c43948b956b702bf57480d44096b8

4 years agostx-utilities: fix service name and binary paths 60/3460/1
Jackie Huang [Sun, 26 Apr 2020 08:25:22 +0000 (16:25 +0800)]
stx-utilities: fix service name and binary paths

* fix the service name: network -> networking
* fix the binary paths:
  - /usr/local/bin -> /usr/bin
  - /usr/local/sbin -> /usr/sbin

Issue-ID: INF-43
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I503103fb42bd116da4c71fd411127b6e2fe828ad

4 years agomtce-control.inc: fix the hardcoded path for hbsAgent 59/3459/1
Jackie Huang [Sun, 26 Apr 2020 05:38:47 +0000 (13:38 +0800)]
mtce-control.inc: fix the hardcoded path for hbsAgent

- fix the hardcoded path for hbsAgent
- remove the useless postinst function

Issue-ID: INF-40
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I371e14487e3c7cb5a51e51bf350930d718aaf2e9

4 years agostx-ha: fix the hardcoded binary path for sm 51/3451/1
Jackie Huang [Fri, 24 Apr 2020 07:57:12 +0000 (15:57 +0800)]
stx-ha: fix the hardcoded binary path for sm

- Fix the hardcoded binary path for sm macros
- Remove a useless commented line

Issus-ID: INF-30
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I12048550e120e59d99b2bbeeb5c60988533cbfd9

4 years agohaproxy: fix for the sbindir 50/3450/1
Jackie Huang [Fri, 24 Apr 2020 08:26:31 +0000 (16:26 +0800)]
haproxy: fix for the sbindir

The SBINDIR should not point to bindir

Issue-ID: INF-33
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I9f60cdec7f5b09396e20f1156da62af4a0856c37

4 years agostx-utilities: inherit systemd to enable services 49/3449/1
Jackie Huang [Fri, 24 Apr 2020 07:31:53 +0000 (15:31 +0800)]
stx-utilities: inherit systemd to enable services

- inherit systemd bbclass and set correct variables to
  enable services.

- remove sysvinit from DISTRO_FEATURES_BACKFILL_CONSIDERED
  to avoid init scripts being removed.

- remove the useless pkg_postinst functions

- remove duplicated collect-engtools.inc

Issue-ID: INF-29
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I64245da497621c59a47b3e80e92357d858e9903c

4 years agostx-config: enable the services by default 48/3448/1
Jackie Huang [Fri, 24 Apr 2020 07:29:23 +0000 (15:29 +0800)]
stx-config: enable the services by default

Set correct systemd variables to enable the services

Issue-ID: INF-29
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Iea55ec66b7ec305405d8ca58be7a7be73e642c44

4 years agostx-metal: inherit systemd to enable services 47/3447/1
Jackie Huang [Fri, 24 Apr 2020 07:27:30 +0000 (15:27 +0800)]
stx-metal: inherit systemd to enable services

- inherit systemd bbclass and set correct variables to
  enable services.

- remove sysvinit from DISTRO_FEATURES_BACKFILL_CONSIDERED
  to avoid init scripts being removed.

- remove the useless pkg_postinst functions

- move lmon.service to mtce-lmon

Issue-ID: INF-28
Issue-ID: INF-29
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Id17ce7b5536686ab180c0714c9355143adcc3d8d

4 years agopatch-alarm.inc: fix incorrect script path 46/3446/1
Jackie Huang [Fri, 24 Apr 2020 01:50:17 +0000 (09:50 +0800)]
patch-alarm.inc: fix incorrect script path

Issue-ID: INF-27
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Ibaafdf34b07c155977687bdd6814accfe69e770f

4 years agoceph-manager.inc: fix the incorrect script path 31/3431/1
Jackie Huang [Thu, 23 Apr 2020 13:46:49 +0000 (21:46 +0800)]
ceph-manager.inc: fix the incorrect script path

Issue-ID: INF-27
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I645b13263c21b458a99792db6ce896a3022eda91

4 years agoscripts: add build_stx.sh to support StarlingX build 21/3421/1
Jackie Huang [Fri, 6 Mar 2020 11:17:05 +0000 (19:17 +0800)]
scripts: add build_stx.sh to support StarlingX build

* Add build_stx.sh to support StarlingX build.
  - This is based on the setup.sh from staging-stx
  - Add many improvements for CI and dev requirement

* Add meta-patches from staging-stx.

* Only BSP intel-corei7-64 is supported for now.

* There will be two builds:
  - stx build: for building all packages required by starlingX
  - anaconda build: for building an ISO image with anaconda
    installer and use kickstart method to install starlingX

Issue-ID: INF-19
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I3df6a06980c931a50a0eddc794e25b7fbd4a4f84

4 years agoAdd initial meta-stx to support StarlingX build 20/3420/1
Jackie Huang [Thu, 23 Apr 2020 03:29:15 +0000 (11:29 +0800)]
Add initial meta-stx to support StarlingX build

meta-stx is a yocto compatible layer that includes
required recipes to build image for StarlingX on top
of yocto 2.7.3 (warrior).

And the following components are included:
- Fault management
- Configuration management
- Software management
- Host management
- Service management
- Ansible and puppet for provisioning

Issue-ID: INF-8
Issue-ID: INF-9
Issue-ID: INF-10
Issue-ID: INF-11
Issue-ID: INF-12
Issue-ID: INF-13
Issue-ID: INF-19
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I4e85c8232df3bf390aa247c75061a54b914bd28a

4 years agoAdd utilities 99/3299/1
Bin Yang [Thu, 16 Apr 2020 12:58:55 +0000 (12:58 +0000)]
Add utilities

add turbostat, cpupower, htop, msr-tool, cpufrequtils

Issue-ID: INF-24
Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: I648618b8a4575f7c71f89350100b7a65ab214e75

4 years agoUpgrade dpdk version 19.11 98/3298/1
Bin Yang [Thu, 16 Apr 2020 12:55:29 +0000 (12:55 +0000)]
Upgrade dpdk version 19.11

Issue-ID: INF-23
Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: Ib4513e7d9c4c67d078e768b588db082f85ff7516

4 years agokernel-devsrc: add new recipe and add into inf image 12/3112/1
Jackie Huang [Thu, 2 Apr 2020 07:15:59 +0000 (15:15 +0800)]
kernel-devsrc: add new recipe and add into inf image

The original recipe is copied from oe-core, which is only
capable of running "make scripts" and compiling kernel
modules against the running kernel on target.

We need the support to rebuild the kernel as well, so
do the following changes:
- Extend the ability of the recipe so it can rebuild kernel
- Add the one in oe-core into bbmask
- Add required kernel packages into packagegroup-oran

Issue-ID: INF-21
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I2a6d6a87f5956d3f5d8da8150407df107dd42b17

4 years agoRemove CMK guide 26/3026/1
Bin Yang [Fri, 27 Mar 2020 09:07:58 +0000 (09:07 +0000)]
Remove CMK guide

CMK is not applicable after upgrading to kubernetes 1.16.2

Issue-ID: INF-20
Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: Ie878cc5900108e7399047327ad2f6a90bde621dc

4 years agoUpdate installation guide 20/3020/2
Bin Yang [Fri, 27 Mar 2020 04:03:43 +0000 (04:03 +0000)]
Update installation guide

Update kubernetes version to 1.16.2
Add SRIOV CNI deployment instructions

Issue-ID: INF-20
Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: If286f3c7de98f6a2745def86da60ae573e70b04e

4 years agoUpgrade kubernetes version to 1.16.2 19/3019/1
Bin Yang [Fri, 27 Mar 2020 02:30:11 +0000 (02:30 +0000)]
Upgrade kubernetes version to 1.16.2

Upgrade kubenetes plugins version as well

Issue-ID: INF-20
Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: Ia942eeca2ef0139a81fbb278be180f55e6e32e45

4 years agoMerge "build_oran.sh: add support for nxp-lx2xxx"
Xiaohua Zhang [Thu, 5 Mar 2020 01:15:11 +0000 (01:15 +0000)]
Merge "build_oran.sh: add support for nxp-lx2xxx"

4 years agoAdd the architecture support for both X86_64 and ARM in the overview.rst for second... 36/2636/1
Xiaohua Zhang [Tue, 3 Mar 2020 06:00:19 +0000 (14:00 +0800)]
Add the architecture support for both X86_64 and ARM in the overview.rst for second release.

Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
Change-Id: I235f4fcb643c14bca112a28ee941fbdb6c9c31da

4 years agobuild_oran.sh: add support for nxp-lx2xxx 38/2638/1
Jackie Huang [Mon, 2 Mar 2020 11:29:01 +0000 (19:29 +0800)]
build_oran.sh: add support for nxp-lx2xxx

- remove the default templates
- add templates according to different BSP
- ceph is only added for x86-64
- linux-yocto-rt: add support for nxp-lx2xxx
- add patch for nxp-lx2xxx to support preempt-rt
- add an option for build script to select BSP

Issue-ID: INF-7
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I80c8acd9745db7003c56594ee36a1643ac269f2c

4 years agoAdd readme to illustate how to tigger release job 50/2550/1
Bin Yang [Fri, 21 Feb 2020 09:12:02 +0000 (17:12 +0800)]
Add readme to illustate how to tigger release job

Issue-ID: INF-15
Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: If1b19b33a33078ca09c1d15002c135b94bd23e0a

4 years agoThis patch is a test to trigger merge job 42/2542/3
Bin Yang [Thu, 20 Feb 2020 05:15:29 +0000 (13:15 +0800)]
This patch is a test to trigger merge job

Next patch will fix the release filename to trigger building job

Issue-ID: INF-15
Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: I76ae110eda9922eb006e2806fbe9728f2a51a5bc

4 years agoscripts/build_oran.sh: add option to use rm_work 28/2028/1
Jackie Huang [Mon, 9 Dec 2019 09:39:02 +0000 (17:39 +0800)]
scripts/build_oran.sh: add option to use rm_work

The rm_work class supports deletion of temporary workspace,
which can ease the hard drive demands during builds, so add
an option to use rm_work and enable it by default.

Issue-ID: INF-4
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I3578f8b365718196a89d6aebcb70757431824d2e

4 years agobuild_oran.sh: fix the symlink to avoid loop chain 60/1960/1
Jackie Huang [Sat, 7 Dec 2019 15:39:51 +0000 (23:39 +0800)]
build_oran.sh: fix the symlink to avoid loop chain

Issue-ID: INF-4
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I2faae02296fc7c32ceef219a84e1e6404118482d

4 years agobuild_oran.sh: remove ceph to work around for CI build 11/1911/1
Jackie Huang [Tue, 3 Dec 2019 09:13:24 +0000 (17:13 +0800)]
build_oran.sh: remove ceph to work around for CI build

Issue-ID: INF-4
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I0f5c499fbbff59ba0dc63dbe19c99e4dca316bf0

4 years agoMerge "scripts: add find_rpm_path.sh and rpm_repo_list.txt"
Jackie Huang [Thu, 28 Nov 2019 07:24:20 +0000 (07:24 +0000)]
Merge "scripts: add find_rpm_path.sh and rpm_repo_list.txt"

4 years agoscripts: add find_rpm_path.sh and rpm_repo_list.txt 56/1756/1
Jackie Huang [Fri, 15 Nov 2019 08:41:46 +0000 (16:41 +0800)]
scripts: add find_rpm_path.sh and rpm_repo_list.txt

Issue-ID: INF-4
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I92b39f70c750078ab5c0cc17b4278b7919bb372d

4 years agoChange to better format for docs/overview.rst 10/1710/1
Xiaohua Zhang [Thu, 21 Nov 2019 01:18:45 +0000 (09:18 +0800)]
Change to better format for docs/overview.rst

Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
Change-Id: I34b7da089e992ca2eb94f3b5b5331460c38035b7

4 years agoAdd more description of the project overview. 82/1682/1
Xiaohua Zhang [Wed, 20 Nov 2019 01:45:09 +0000 (09:45 +0800)]
Add more description of the project overview.

Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
Change-Id: I88af2026753e550b435adc017a50e97635584763

4 years agoinstallation-guide.rst: rephrase for accessing dashboard 08/1608/1
Jackie Huang [Fri, 15 Nov 2019 01:57:19 +0000 (09:57 +0800)]
installation-guide.rst: rephrase for accessing dashboard

Issue-ID: INF-4
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Id18dc7993de1f4b602fc5e10467a8dda8c1d5d54

4 years agodocs: fix typo in the links 90/1590/2
Jackie Huang [Thu, 14 Nov 2019 08:53:51 +0000 (16:53 +0800)]
docs: fix typo in the links

Issue-ID: INF-4
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I98f0de689f051216e5ddf6aee09f7084f10d661d

4 years agodocs: add contact info in overview.rst 87/1587/1
Jackie Huang [Thu, 14 Nov 2019 07:20:56 +0000 (15:20 +0800)]
docs: add contact info in overview.rst

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I8ca115f7488497fadb5a01efb1a4abca980e5c56

4 years agodocs: add initial contents for developer-guide.rst 86/1586/1
Jackie Huang [Thu, 14 Nov 2019 07:01:29 +0000 (15:01 +0800)]
docs: add initial contents for developer-guide.rst

Issue-ID: INF-4
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I372c54db1c195937fbeda91a60a36836796a26ee

4 years agodocs: add initial contents for release-notes.rst 85/1585/1
Jackie Huang [Thu, 14 Nov 2019 06:17:47 +0000 (14:17 +0800)]
docs: add initial contents for release-notes.rst

Issue-ID: INF-4
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I57a325255ed1141078282b0c229f923d5d37b3c4

4 years agodocs: add initial contents for overview.rst 84/1584/1
Jackie Huang [Thu, 14 Nov 2019 06:09:28 +0000 (14:09 +0800)]
docs: add initial contents for overview.rst

Issue-ID: INF-4
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I4452d9a94342ad370695414ed282fe2bb18c53d0

4 years agodocs: add installation-guide.rst 83/1583/1
Jackie Huang [Wed, 13 Nov 2019 07:45:51 +0000 (15:45 +0800)]
docs: add installation-guide.rst

Issue-ID: INF-4
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Iadb9747ca21d4f89a465c83ab420088bcb26d459

4 years agometa-oran: add missing license header 82/1582/1
Jackie Huang [Wed, 13 Nov 2019 06:43:04 +0000 (14:43 +0800)]
meta-oran: add missing license header

Issue-ID: INF-4
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I48be4510729f25a0c7f28e4c28f55af31c9381db

4 years agometa-oran: fix license for images and packagegroups 35/1535/1
Jackie Huang [Wed, 13 Nov 2019 01:36:41 +0000 (09:36 +0800)]
meta-oran: fix license for images and packagegroups

Change the license from MIT to Apache-2.0 for images and packagegroups.

Issue-ID: INF-4
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Iccd2dcb667dc593002f0a977bebc5d5efec23b71

4 years agoMerge "add requirement-docs.txt"
Jackie Huang [Mon, 11 Nov 2019 01:26:23 +0000 (01:26 +0000)]
Merge "add requirement-docs.txt"

4 years agoadd requirement-docs.txt 62/1462/1
weichen [Sun, 10 Nov 2019 02:24:46 +0000 (21:24 -0500)]
add requirement-docs.txt

Signed-off-by: weichen <niweichen@chinamobile.com>
Change-Id: Ia0bea5b5a74f7c1df794f7916d8275f1595cf900

4 years agobuild_oran.sh: do not set -u option 01/1401/1
Jackie Huang [Thu, 7 Nov 2019 08:31:10 +0000 (16:31 +0800)]
build_oran.sh: do not set -u option

-u option treats unset variables as en error but it's not
expected for the oe-init-build-env:
./oe-init-build-env: line 35: BBSERVER: unbound variable

Issue-ID: INF-4
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Id242d3f6f36569c7fefb1f7ff26d79557f927d5c

4 years agoMerge "Add git metadata to ignore doc output files"
Jackie Huang [Thu, 7 Nov 2019 07:01:43 +0000 (07:01 +0000)]
Merge "Add git metadata to ignore doc output files"

4 years agobuild_oran.sh: ensure we fail the job if any steps fail 94/1394/1
Jackie Huang [Thu, 7 Nov 2019 03:49:57 +0000 (11:49 +0800)]
build_oran.sh: ensure we fail the job if any steps fail

Issue-ID: INF-4
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I3db6b26c54dfa32be87c726c1acc4c504af5b447

4 years agoFix build_oran script issue 92/1392/1
Bin Yang [Thu, 7 Nov 2019 03:14:27 +0000 (03:14 +0000)]
Fix build_oran script issue

build assume the repo name as rtp

Issue-ID: INF-4
Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: I52a37e008375e048ad6f2c0a26753ebd4e3732e6