22 Commits

Author SHA1 Message Date
Charles Short
2527c5ac75 debian: Specify the correct paths for pgsql
Correct the paths for the following defaults:
- OCF_RESKEY_pgctl_default
- OCF_RESKEY_pgdata_default
- OCF_RESKEY_socketdir_default

Test Plan
PASS Build resource-agents package
PASS Build ISO
PASS Unlock system

Story: 2009101
Task: 43317

Depends-On: https://review.opendev.org/c/starlingx/utilities/+/840497

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I8eab1ff7a39222dce9c2b6c0094338e70c03c1e4
2022-05-16 10:15:40 +03:00
Yue Tao
4a709349a9 meta_data.yaml: add sha256sum checksum
Test Plan:
Pass: Verify sha256sum checksum via "download -s"

Story: 2008846
Task: 44578

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Change-Id: I78d9dff2af0afb18c6db4e8d2d39ef79b5cf5864
2022-03-03 14:30:40 +08:00
Zuul
82bad921f3 Merge "Add debian package for cluster-resource-agents" 2021-11-10 21:44:26 +00:00
Yue Tao
fcfb04d621 Add debian package for cluster-resource-agents
Except for Do-not-log-at-debug-log-level-when-HA_debug-is-unset.patch,
which is merged upstream, others local patches have been ported.

Depends-On: https://review.opendev.org/c/starlingx/tools/+/817010

Story: 2009221
Task: 43310

Signed-off-by: Yue Tao <yue.tao@windriver.com>
Change-Id: Id602f7b9dac55b06e46337fb800a865d3a82d701
2021-11-09 16:12:44 +08:00
Joao Paulo Tavares Musico
ed307f794a Reduce log rates for daemon-ocf
A 3 year old patch which made debug log default to off has been
missed. This change will add this patch so log rates for
daemon-ocf.log will decrease.
To turn on debug logging a variable shall be added for each process:
i.e. keystone
Add following like to /use/lib/ocf/resource.d/openstack/keystone
HA_debug=1

Test Plan:

PASS: Verify that by default no more debug logs are found in
daemon-ocf.log
PASS: Verify that adding HA_debug=1 to an ocf script will enable debug
logging for that process
PASS: Verify that having HA_debug=0 to an ocf script will disable
debug logging for that process

Failure Path:

PASS: Verify a value other than 0 or 1 for HA_debug will not break
process

Regression:

PASS: Verify system install
PASS: Verify all log levels, other than debug, are still being
generated

Story: 2009272
Task: 43606

Signed-off-by: Joao Paulo Tavares Musico <joaopaulotavares.musico@windriver.com>
Change-Id: Icfc62d0e7eafaaedfd0fe516f8c1b137343f8428
2021-10-25 19:21:26 +00:00
Dongqi Chen
af359d4938 Add auto-versioning to starlingx/integ packages
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>
2020-06-24 09:48:28 +08:00
Eric MacDonald
c0617ebb53 Remove Resource Monitor ; aka rmon, from the load
All rmon resource monitoring has been moved to collectd.

This update removes rmon from mtce and the load.

Story: 2002823
Task: 30045

Test Plan:
PASS: Build and install a standard system.
PASS: Inspect mtce rpm list
PASS: Inspect logs
PASS: Check pmon.d

Depends-On: https://review.openstack.org/#/c/643739
Change-Id: I927862895272fdd024d281ab49e0a128465b1b3f
Signed-off-by: Eric MacDonald <eric.macdonald@windriver.com>
2019-03-18 12:27:59 -04:00
Shuicheng Lin
0a982310d6 fix issue: cinder-lvm service failed to run up
It leads to AIO duplex deploy failure. It is caused by resource-agents
upgrade. The new srpm changed parameter "vgchange_options" to
"vgchange_activate_options", so patch need be updated to use the new
parameter.

Story: 2004522
Task: 29025

Change-Id: I0832d93d726e8791c29395121000e0ef4dbb07f2
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
2019-01-23 07:42:39 +00:00
Martin, Chen
53d39bcee7 rebase resource-agents patch to CentOS 7.6 version
deduct Re-enable-background-execution-of-arp-commands.patch,
already in upgraded basecode

Test:
Pass build and simplex deploy test

Depends-On: https://review.openstack.org/629964/

Story: 2004522
Task: 28427

Change-Id: I6b5ab7f424cafd09164e55a64419f165357f2ffc
Signed-off-by: Martin, Chen <haochuan.z.chen@intel.com>
2019-01-15 13:54:27 +08:00
Shuicheng Lin
2ae727788d de-fuzz fuzzy patch in cluster-resource-agents
Closes-Bug: 1806298

Fuzzy patch may cause build failure. Correct the line num
to de-fuzz it.

Test:
Pass build and multi node deploy test.

Change-Id: I3e0783a17738d35986c675a8125b12d7c6378671
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
2018-12-03 22:22:30 +08:00
Scott Little
f60e67741e fix base/cluster-resource-agents/centos/meta_patches/spec-include-TiS-patches.patch
The refactored patch...
    base/cluster-resource-agents/centos/meta_patches/spec-include-TiS-patches.patch
introduced by 4171654457fe428185fe2a37ee8e6dc28d24cc98
was malformed due to a bad line count.

This update fixes the line count.

Story: 2003768
Task: 28043
Change-Id: I6c48cec168e4c93e1cfbd8040da177e0b63491db
Signed-off-by: Scott Little <scott.little@windriver.com>
2018-11-27 14:58:01 -05:00
zhipengl
4171654457 Refactor patches for resource-agents package
Refactor meta patches and merge all adding source patches to
spec-include-TiS-patches.patch

Deployment test and ping test between VMs pass.

Story: 2003768
Task: 28043

Change-Id: I6302ca0ef78a51ed85f20e71dcf04ba4721a182d
Signed-off-by: zhipengl <zhipengs.liu@intel.com>
2018-11-25 05:30:00 +08:00
Zuul
ffa6bf6b9b Merge "IPaddr2 resource agent fix for loopback interface" 2018-11-23 21:19:29 +00:00
Bart Wensley
a26414d982 IPaddr2 resource agent fix for loopback interface
The IPaddr2 resource agent currently assigns addresses
to the loopback interface without specifying the scope,
so they default to the global scope. This fails if the
address is not in the loopback address range.

The fix is to always specify "scope host" when assigning
addresses to the loopback interface.

Change-Id: Ib7c08bfc1c661a9fb347308e55cc806b4dd129ad
Story: 2003910
Task: 26796
Signed-off-by: Bart Wensley <barton.wensley@windriver.com>
2018-11-22 15:45:18 -06:00
Shuicheng Lin
2dc269b72d remove create-var-run-resource-agents.patch
The /var/run is on tmpfs, so the dir will be lost when reboot. This
issue is already fixed in upstream since resource-agents-3.9.5-116
with bz1462802-systemd-tmpfiles.patch. Our current version is 3.9.5-124.
So we could drop our patch safely.
Here is the upstream issue track link:
https://bugzilla.redhat.com/show_bug.cgi?id=1462802

Test:
Pass build and multi node deploy test.

Story: 2004019
Task: 27010

Change-Id: Ieb8ecd863d90fa0f08195f8765daf551127c8a1d
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
2018-11-22 19:19:20 +08:00
Sun Austin
c22442cf09 de-fuzz resource-agents patches
Problem:
- Centos 7.5 upgraded resource-agentss.
- Porting of resource-agentss patches did not resolve and 'fuzz' in the line
  numbers of the patches.
- If resource-agents is built by rpm 4.11, or default version of rpm
  until 4.14 is compiled, a fuzzy patch results in the creating
  of an .orig file.
- Packaging of resource-agentss failes due to the unexpected, and
  unpackaged .orig file

Solution:
  Safest solution is to de-fuzz our resource-agentss patches.

Story: 2003389
Task: 26755

Change-Id: I14d975368f5e70eea5bae6ac8dcfed2cfd6711ff
Signed-off-by: Sun Austin <austin.sun@intel.com>
2018-09-28 09:04:08 +08:00
slin14
551b098a87 fix cluster-resource-agent srpm build failure after merge sync with centos75
Story: 2003389
Task: 26564

It is due to 1 more patch added in master, and it conflict with branch change.

Change-Id: I3c5f6afc2c2acdeda7e721400ec1fa68b02b734f
Signed-off-by: slin14 <shuicheng.lin@intel.com>
2018-09-21 01:03:06 +08:00
Dean Troyer
fe26a0ff84 Merge remote-tracking branch 'origin/master' into f/centos75
Change-Id: I166b99c4ce2ed458ac79ce686064ab05ad3ca198
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-09-15 01:18:37 -05:00
Bin Qian
a98bf512c4 Remove OCF script code to monitor I/F status
Remove OCF script code to monitor I/F status and fail the service
when the I/F is down.
On the other change, the monitor work is done by SM, to perform
swact based on healthy state of both controllers.

Depends: Ifa7453136f34768b99e2bcd741d1065e69ef452e

Story: 2003577
Task: 24900

Change-Id: Ie3da54940054ef5c1880dae718272be1663026d8
Signed-off-by: Bin Qian <bin.qian@windriver.com>
2018-09-04 17:51:37 +00:00
zhipengl
80480de8bc upgrade resource-agents to CentOS 7.5 version
Story: 2003389
Task: 24500
Depends-On: https://review.openstack.org/#/c/595986/

Change-Id: I1d1101bf1f419fe8c4260b4b638544871b39531d
Signed-off-by: zhipengl <zhipengs.liu@intel.com>
2018-08-28 05:36:48 +00:00
Al Bailey
2d7009011b Enable background of arp calls in OCF ip scripts
Arp calls were waiting to timeout which caused the action to take 6 seconds
By backgrounding the arp calls it takes 0.2 seconds
This speeds up the critical path for SM and makes swact faster

Change-Id: Ie0e2b7cff35852bf5867e5394e6f0f29cef5d274
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
Signed-off-by: Scott Little <scott.little@windriver.com>
2018-08-01 15:31:54 -04:00
Scott Little
dad45a06a5 Relocate cluster-resource-agents to
stx-integ/base/cluster-resource-agents

Move content from stx-gplv2 into stx-integ

Packages will be relocated to

stx-integ:
    base/
        bash
        cgcs-users
        cluster-resource-agents
        dpkg
        haproxy
        libfdt
        netpbm
        rpm

    database/
        mariadb

    filesystem/
        iscsi-initiator-utils

    filesystem/drbd/
        drbd-tools

    kernel/kernel-modules/
        drbd
        integrity
        intel-e1000e
        intel-i40e
        intel-i40evf
        intel-ixgbe
        intel-ixgbevf
        qat17
        tpmdd

    ldap/
        ldapscripts

    networking/
        iptables
        net-tools

Change-Id: I3a4ee4bde0adfd2a486bd5be3a151db85aa4947e
Story: 2002801
Task: 22687
Signed-off-by: Scott Little <scott.little@windriver.com>
2018-08-01 15:31:54 -04:00