35 Commits

Author SHA1 Message Date
babak sarashki
bd166202e7 Renamed bb files to .inc and removed the exsource 2020-05-18 13:07:27 -07:00
babak sarashki
e6a7fff91e Staging starlingx
Added stx-config, stx-fault, and stx-metal.
2020-05-18 13:07:27 -07:00
babak sarashki
8c9213dac1 StarlingX port to thud in progress.
This is not a consumable layer yet. Work in progress
2020-05-18 13:07:27 -07:00
Sar Ashki, Babak
b071d0f2d8 move stx specifics bb files to rescipes-stx
Signed-off-by: Sar Ashki, Babak <Babak.SarAshki@windriver.com>
2020-05-13 12:54:08 -07:00
Sar Ashki, Babak
4f7f1acc29 Add copyright message to recipes
Signed-off-by: Sar Ashki, Babak <Babak.SarAshki@windriver.com>
2020-04-20 13:07:41 -07:00
Jackie Huang
d30f7a2139 sysinv-agent: disable the service
It will cause error in ansible bootstrap:
Failed to update the initial system config

so disable the service by default, and it will be
configured and enabled by ansible bootstrap.

fix #385

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
2020-04-03 10:03:47 -07:00
Jackie Huang
deea0bd7d8 storageconfig: fix a typo and remove from packagegroup-stx
storageconfig is not required by AIO.

fix #380

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
2020-04-02 16:17:31 -07:00
Jackie Huang
662d51565c sysinv-agent.inc: fix a typo
fix #379

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
2020-04-02 16:17:10 -07:00
Jackie Huang
449835b201 workerconfig.inc: align with stx 3.0
Do the following changes to align with stx 3.0:
- Split to 3 packages
- Add postinsts for workerconfig-standalone and workerconfig-subfunction
- workerconfig-standalone and workerconfig-subfunction are exclusive,
  and workerconfig-subfunction is used for AIO and
  workerconfig-standalone is used for the worker node in standard
  deployment, so install workerconfig-subfunction only for AIO
- Fix the dependencies.

fix #377
fix #378

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
2020-04-02 16:16:50 -07:00
Jackie Huang
992afca065 controllerconfig.inc: enable the service by default
Use SYSTEMD_AUTO_ENABLE to enable controllerconfig.service,
which is required by controller unlock process.

fix #376

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
2020-04-02 16:16:32 -07:00
Jackie Huang
e7cf03c9df stx-config: fix the binary paths
These binaris are installed in /usr/bin instead of
/usr/local/bin.

fix #318

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
2020-03-26 04:15:37 -04:00
Jackie Huang
94287f2cdc stx-puppet: move a missing patch from stx-config
move a missing patch from stx-config to stx-puppet
to fix typos.

fix #323

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
2020-03-26 04:15:04 -04:00
Jackie Huang
4a190fab4a sysinv: add RDEPENDS on gptfdisk
gptfdisk (gdisk in centos) is required by sysinv.

fix #313

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
2020-03-23 16:44:34 -04:00
Jackie Huang
72673378e7 stx-config: allow the feature 'sysvinit' te be backfilled
Some sripts from stx need to be intalled in /etc/init.d:

etc/init.d/worker_config
etc/init.d/storage_config
etc/init.d/sysinv-agent
etc/init.d/controller_config

but for the reicpe that inherit systemd, there is a postrunc
rm_sysvinit_initddir that will remove the installed scripts
in /etc/init.d if sysvinit is not present in DISTRO_FEATURE,
remove 'sysvinit' from DISTRO_FEATURES_BACKFILL_CONSIDERED
so it can be backfilled into DISTRO_FEATURE.

fix #185

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
2020-03-16 02:17:23 -04:00
Jackie Huang
9cda18a385 sysinv: add RDEPENDS on resource-agents
resource-agents provides /usr/lib/ocf/lib/heartbeat/ocf-shellfuncs
which is used by sysinv-api.

fix #230

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
2020-03-13 17:41:51 -04:00
Sar Ashki, Babak
f8c5af4207 Issue 122: set rdepends python packages
sysinv
python-lefthandclient
python-keystone
python-barbicanclient

Signed-off-by: Sar Ashki, Babak <Babak.SarAshki@windriver.com>
2020-03-12 15:45:10 +08:00
Sar Ashki, Babak
3e216ba7e8 sysinv rdepends on python-coverage
Signed-off-by: Sar Ashki, Babak <Babak.SarAshki@windriver.com>
2020-03-07 13:46:47 +08:00
Sar Ashki, Babak
63af6ea4f5 stx-config: align with stx.3.0 package naming
Signed-off-by: Sar Ashki, Babak <Babak.SarAshki@windriver.com>
2020-03-05 20:34:56 -08:00
Sar Ashki, Babak
3b777709f8 stx-config sysinv: account for required py modules 2020-02-25 14:22:34 -08:00
Sar Ashki, Babak
91775b6227 stx-config: argparse is not a standalone module
Missed the patch in commit 416041c03918cc3268d11b13a3a6cd904ddc7ced
2020-02-25 14:11:08 -08:00
Sar Ashki, Babak
416041c039 stx-config: remove argparse from sysinv requirements 2020-02-25 14:10:01 -08:00
Sar Ashki, Babak
a0ad9e7a7d Aligh stx-config with stx3.0 config
- Update packages to latest
2020-01-25 15:56:32 -08:00
Sar Ashki, Babak
e0131f72be Removing obsolete renamed recipes 2020-01-25 15:43:13 -08:00
Sar Ashki, Babak
b1ca43cba6 stx-config: silence cast related warnings from puppet
puppet-manifests:
Use cast operator to convert string to a number
2020-01-13 14:08:14 -08:00
Sar Ashki, Babak
914366ebad stx-config and stx-upstream: stx-platform-helm enabled
helm_2.13.1 prebuilt added for both native and target
openstack-helm-infra enabled
stx-platform-helm enabled

Issue 76
2020-01-13 14:04:10 -08:00
Sar Ashki, Babak
8100180ac2 stx-config: puppet-manifests fix etcd typo
upon completing the etcd bootstrap, service fails to start because of the
override.
1 - fixed typo
2 - removed /usr/bin/forward-journald from unit file
2020-01-08 15:18:05 -08:00
Sar Ashki, Babak
69587d1ba9 stx-conig: puppet manifests adjust PATH variable
stx-config
2019-12-26 11:57:46 -08:00
Sar Ashki, Babak
1a30a897a9 ansible-bootstrap fails: slapd fails to start
stx-config/puppet-manifest:
 - set ldap module path to libexec
 - default is lib64 which is not where OE installs openldap
sudo:
 - build --with-ldap and apply stx patches
 - needed for sudo.schema / slapd
openldap:
 - install ldap / la modules
packagegroups:
 - stx-python: pexpect, trove, colorama, debtcollector, mysql
 - stx: e2fsprogs-resize2fs nss-pam-ldapd openldap-devand libmysqld + deps
rabbitmq-server:
 - run under uid 0 to bypass permission errors
conf/layer.conf:
 - Add ldap user
 - set preferred versions
 - Set CONTROLLER_IP to localhost
classes/stx-postrun.bbclass:
 - Add openldap fine tuning
 - fix permissions for keystone to start
2019-12-11 19:43:19 -08:00
Sar Ashki, Babak
3ac95c37ef Do not enable services by default 2019-12-10 11:43:31 -08:00
Sar Ashki, Babak
bba9aeebb4 Pakage sysinv_goenabled_check.sh with sysinv
issue 22
stx-config: controllerconfig.inc sysinv.inc
Pakage /etc/goenabled.d/sysinv_goenabled_check.sh
with sysinv instead of controllerconfig
2019-12-01 12:36:12 -08:00
Sar Ashki, Babak
9f13931f31 Set stx services to auto startup
stx-config
stx-fault
stx-ha
stx-integ
2019-11-27 09:03:48 -08:00
babak sarashki
37bfaa186b Account for previously missed sysinv files 2019-10-31 19:48:30 -07:00
babak sarashki
0c6cf07dfc Fix typo PV is 19.01 2019-10-31 19:09:04 -07:00
babak sarashki
5bf763d458 Port stx packages and fix postrun class enable drdb 2019-10-20 23:28:16 -07:00
babak sarashki
e87fb1cef7 Add stx packages to the layer 2019-10-13 19:35:16 -07:00