Prior to this commit, the Ansible bootstrap procedure on StarlingX would
fail with drbd-related errors when a v5.10-based kernel was in use. The
error reported by the kernel was "invalid argument".
Upon further debugging, it was discovered that generic-netlink (genl)
messages generated by drbdsetup would be rejected by the v5.10 kernel.
After looking at the git history of the drbd-utils repository, the
following two commits were found:
$ git log -2 --pretty=ref 859151b228d3b3aacefb09d06d515a2589c22e35
859151b228d3 (netlink: Add NLA_F_NESTED flag to nested attribute, 2019-07-12)
92ade5989027 (netlink: prepare for kernel v5.2, 2019-07-12)
This issue appears to be caused by kernel versions >= 5.2 being more
strict with the validation of nested netlink attributes. The patches
required very minor context adjustments and enable the Ansible bootstrap
procedure to succeed.
Story: 2008921
Task: 42787
Change-Id: I573d0caafc741c7668be8ee8e494fde826437a98
Signed-off-by: M. Vefa Bicakci <vefa.bicakci@windriver.com>
When stopping drbd, we need to unmount targets from each device.
Devices with multiple mountpoints can fail to unmount, leading to
metadata corruption. Add --all-targets to the umount command.
Closes-Bug: 1920245
Signed-off-by: David Sullivan <david.sullivan@windriver.com>
Change-Id: Ic1b4583c72a0dd256724b8672dbb59126273330b
drbd services occasionally fail at rapid successive swact
Netlink device number exceeding 255 (max number
that can be represented with two characters in hex ,
"ff") fail to parse by drbdadm during fast successive swacts,
the Netlink device number (second string in lines of
/proc/net/if_inet6]) gets very large exceeding 255 decimal and
cannot be represented as two hex characters (ff), like this:
fe80000000000000eceeeefffeeeeeee 14e 40 20 80 cali19a19189318
Closes-bug: 1877907
Change-Id: I035eb81830f3c5e5a129c20766348ff842bc05c8
Signed-off-by: Paul Vaduva <Paul.Vaduva@windriver.com>
This update makes use of the PKG_GITREVCOUNT variable
to auto-version the packages in this repo.
Story: 2007750
Task: 39951
Change-Id: I854419c922b9db4edbbf6f1e987a982ec2ec7b59
Signed-off-by: Dongqi Chen <chen.dq@neusoft.com>
This update enhances the DRBD OCF script to check whether
a filesystem is mounted before attempting to demote it from
Primary to Secondary. The demotion attempt will result in
DRBD state change failures reported to the console if it
is still in use.
Change-Id: Ie5abe5d0858f75bd0d31ce8d8d1d04e7beb83132
Story: 2004520
Task: 29398
Signed-off-by: Don Penney <don.penney@windriver.com>
As we see in the patch, it changes %dir to %ghost to avoid RPM audit.
If we move the config file mod change to config package and use RPM
instead of SRPM, we have no audit issue anymore and can ignore related
change.
Deployment test pass and related file check pass!
Story: 2003768
Task: 28459
Depends-on: https://review.openstack.org/#/c/624584/
Change-Id: Ic23ccd740520e1942b3118a84cb03aef5f388332
Signed-off-by: zhipengl <zhipengs.liu@intel.com>
Story: 2004404
Task: 28046
since there is no src patch, move the meta patch setting to config
package. And replace srpm with rpm.
The 4 service files(rpc-statd/rpc-statd-notify) from nfs-utils are
kept to avoid rpm audit complain. Just disable them by default.
The service/conf files in files folder are not used, so just remove
them.
Test:
Pass build and multi node deploy test. Confirmed The 4 services are
disabled. Other services are the same as before.
Change-Id: I42d2ef3d61c1f62fe8aaea5467c810fc6e39dc13
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
These files are not listed in build_srpm.data. And are not included
in other place also.
Test:
Pass clean build and multi node deploy test.
Story: 2004406
Task: 28048
Change-Id: Ife1e554bd4897540297b27791885f06b0ad3b9db
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
Use iscsi-initiator-utils-config package to package config and
service file for iscsi-initiator-utils package.
Deployment test and ping test between WMs pass
Config and service files check pass.
Story: 2003768
Task: 27596
Change-Id: I6512171f1c9186018c0af15b15e7d2094e3d7a73
Signed-off-by: zhipengl <zhipengs.liu@intel.com>
Use nfs-utils-config package to package service and config files for nfs-utils
Story: 2003768
Task: 26461
Change-Id: Id24669ea5f7b7dadff025208e7f7f07f179c1490
Signed-off-by: zhipengl <zhipengs.liu@intel.com>
In some rare occasions following a host lock/unlock or force
reboot, there are two rpc.statd process one of which is a
runaway that floods daemon.log causing high CPU alarm. Based
on a few samples of startup sequence (success vs failure),
it is evident that the issue appeared each time mountnfs unit
had been loaded before rpc.statd process was started.
This change ensures nfscommon unit, which starts rpc.statd
and rpc.idmapd, is loaded before mountnfs unit.
Tests performed:
- installation (standard system)
- sanity (automated, repeats = 10)
Closes-Bug: 1794366
Change-Id: I6a916b9c3348338b0ab79fcec4f2cd5d04741499
Signed-off-by: Tee Ngo <Tee.Ngo@windriver.com>
With rpm version < 4.13, patch cmd will create .orig file for fuzzy
patch in default. And this .orig file may lead to rpmbuild failure
"error: Installed (but unpackaged) file(s) found:"
Please visit below link to get more detail info:
https://bugs.launchpad.net/starlingx/+bug/1794611
Story: 2003917
Task: 26962
Change-Id: I9e75bb278e6de63e28b2a1692f03883e5a2e86de
Signed-off-by: slin14 <shuicheng.lin@intel.com>
When do Centos 7.5 upgraded, some patches didn't resolve and cause
the fuzzy in the line numbers of the patches. And it may cause
.orig file is created when do patch. And this .orig file will lead
to rpm packaging failure due to the unexpected and unpackaged .orig
file.
Please visit below link to get more detail info:
https://bugs.launchpad.net/starlingx/+bug/1794611
Solution:
Safest solution is to de-fuzz our patches.
Story: 2003389
Task: 26755
Change-Id: I485e28dd3251c908ae1e918a15d3ea33e1ee8475
Signed-off-by: slin14 <shuicheng.lin@intel.com>
When do Centos 7.5 upgraded, some patches didn't resolve and cause
the fuzzy in the line numbers of the patches. And it may cause
.orig file is created when do patch. And this .orig file will lead
to rpm packaging failure due to the unexpected and unpackaged .orig
file.
Please visit below link to get more detail info:
https://bugs.launchpad.net/starlingx/+bug/1794611
Solution:
Safest solution is to de-fuzz our patches.
Story: 2003389
Task: 26755
Change-Id: Id45e12fbacccec6c68e7c65994b0dca9955bfcaf
Signed-off-by: slin14 <shuicheng.lin@intel.com>
When do Centos 7.5 upgraded, some patches didn't resolve and cause
the fuzzy in the line numbers of the patches. And it may cause
.orig file is created when do patch. And this .orig file will lead
to rpm packaging failure due to the unexpected and unpackaged .orig
file.
Please visit below link to get more detail info:
https://bugs.launchpad.net/starlingx/+bug/1794611
Solution:
Safest solution is to de-fuzz our patches.
Story: 2003389
Task: 26755
Change-Id: I3e54f61b200c71c1900fa48d29a43e08c70688d0
Signed-off-by: slin14 <shuicheng.lin@intel.com>
Fix below linters errors
E010 The "do" should be on same line as for
E010 The "do" should be on same line as while
E011 Then keyword is not on same line as if or elif keyword
E020 Function declaration not in format ^function name {$
Ignore:
E041 Arithmetic expansion using $[ is deprecated for $((
E042 local declaration hides errors
E043 Arithmetic compound has inconsistent return semantics
E044 Use [[ for non-POSIX comparisions
Story: 2003366
Task: 24423
Change-Id: I8b6b72e702d3e89d1813772d6bf16819e28e818c
Signed-off-by: Martin Chen <haochuan.z.chen@intel.com>
src rpm package is dropped to replaced by rpm since no change is needed for e2fsprogs
Story: 2003389
Task: 24490
Depends-On: https://review.openstack.org/#/c/594898/
Change-Id: Ifee5ad90c5b5efb5a98990369a66903120d18a1f
Signed-off-by: slin14 <shuicheng.lin@intel.com>
Most of changes in fix-dev-nodes-getting-removed-for-100-to-300-ms-on-parted-print.patch
are already in 7.5 version. So related changes removed.
Story: 2003389
Task: 24479
Depends-On: https://review.openstack.org/#/c/595981/
Change-Id: I92501a66ebb44eab92f4b7377998bb71d70fc722
Signed-off-by: zhipengl <zhipengs.liu@intel.com>
Move content from stx-gplv3 into stx-integ
Packages will be relocated to
stx-integ:
base/
anaconda
crontabs
dnsmasq
rsync
database/
python-psycopg2
filesystem/
parted
grub/
grub2
security/
python-keyring
Change-Id: I567380cf4f84d31c2bd07f0b89b77a452f7cbc90
Story: 2002801
Task: 22687
Signed-off-by: Scott Little <scott.little@windriver.com>