Distributed Cloud: Patch audit running at wrong frequency

Bug #1928333 reported by Bart Wensley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Medium
Al Bailey

Bug Description

Brief Description
-----------------
The dcmanager audit is running both the patch audit and the load audit for each subcloud every 30 seconds or so (instead of every 15 minutes as intended). The issue is triggered as soon as the first patch is applied in the System Controller region. Here is a sample from DC-2:

2021-05-12 04:37:57.314 572129 INFO dcmanager.audit.patch_audit [-] Triggered patch audit for subcloud: subcloud66.
2021-05-12 04:37:58.783 572129 INFO dcmanager.audit.patch_audit [-] Auditing load of subcloud subcloud66
2021-05-12 04:37:58.838 572129 INFO dcmanager.audit.patch_audit [-] Patch audit completed for subcloud: subcloud66.
2021-05-12 04:38:28.846 572129 INFO dcmanager.audit.patch_audit [-] Triggered patch audit for subcloud: subcloud66.
2021-05-12 04:38:30.475 572129 INFO dcmanager.audit.patch_audit [-] Auditing load of subcloud subcloud66
2021-05-12 04:38:30.547 572129 INFO dcmanager.audit.patch_audit [-] Patch audit completed for subcloud: subcloud66.
2021-05-12 04:39:00.763 572129 INFO dcmanager.audit.patch_audit [-] Triggered patch audit for subcloud: subcloud66.
2021-05-12 04:39:02.172 572129 INFO dcmanager.audit.patch_audit [-] Auditing load of subcloud subcloud66
2021-05-12 04:39:02.219 572129 INFO dcmanager.audit.patch_audit [-] Patch audit completed for subcloud: subcloud66.

With a large number of subclouds in the system, it contributes to flooding the logs (see LP1928335) and it results in an excessive amount of messaging between the system controller and subclouds (30x the expected messages in steady state).

Severity
--------
Major: System/Feature is usable but degraded

Steps to Reproduce
------------------
1. Install a distributed cloud system.
2. Import and apply a patch in the system controller region.

Expected Behavior
-----------------
After the patch is applied, a patch audit should be triggered for all subclouds. After that audit is completed, the audit frequency should go back to 15 minutes.

Actual Behavior
---------------
The audit frequency changes to 30s permanently.

Reproducibility
---------------
100% Reproducible

System Configuration
--------------------
Distributed Cloud

Branch/Pull Time/Commit
-----------------------
SW_VERSION="21.05"
BUILD_TARGET="Host Installer"
BUILD_TYPE="Formal"
BUILD_ID="2021-05-11_00-00-06"
SRC_BUILD_ID="26"
BUILD_DATE="2021-05-11 00:02:31 -0400"

Last Pass
---------
This was broken by the following commit (February 25, 2021):
https://review.opendev.org/c/starlingx/distcloud/+/769216

Timestamp/Logs
--------------
See above

Test Activity
-------------
Developer Testing

Workaround
----------
None

tags: added: stx.distcloud
Changed in starlingx:
assignee: nobody → Al Bailey (albailey1974)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to distcloud (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/starlingx/distcloud/+/791244

Changed in starlingx:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to distcloud (master)

Reviewed: https://review.opendev.org/c/starlingx/distcloud/+/791244
Committed: https://opendev.org/starlingx/distcloud/commit/8d16d245504039b7e59b5d7a083b3b9d28b358e9
Submitter: "Zuul (22348)"
Branch: master

commit 8d16d245504039b7e59b5d7a083b3b9d28b358e9
Author: albailey <email address hidden>
Date: Thu May 13 08:36:52 2021 -0500

    Reset the force patch audit flag after it is triggered

    The force patch audit flag could be set, but never cleared.
    This would result in patch audits being run during every audit
    loop, as well as any derived audits such as software load.

    This change ensures that the force flag is cleared when a
    patch audit is invoked.

    The force patch audit flag is used by other audits such as the
    audit_load, so it needs to be reset after those evaluations.

    Change-Id: I833d157a616916a9ee37553b1f4cf3582caa8862
    Closes-Bug: 1928333
    Signed-off-by: albailey <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → Medium
tags: added: stx.6.0
Revision history for this message
Ghada Khalil (gkhalil) wrote :

screening: stx.6.0 / medium - audit frequency is increased after a patching operation. Fix in stx master is sufficient given the frequency just puts strain on the system, but doesn't result in specific failures.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to distcloud (f/centos8)

Fix proposed to branch: f/centos8
Review: https://review.opendev.org/c/starlingx/distcloud/+/792298

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on distcloud (f/centos8)

Change abandoned by "Chuck Short <email address hidden>" on branch: f/centos8
Review: https://review.opendev.org/c/starlingx/distcloud/+/792298
Reason: Updated merge soon

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to distcloud (f/centos8)

Fix proposed to branch: f/centos8
Review: https://review.opendev.org/c/starlingx/distcloud/+/793405

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on distcloud (f/centos8)

Change abandoned by "Chuck Short <email address hidden>" on branch: f/centos8
Review: https://review.opendev.org/c/starlingx/distcloud/+/793405

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to distcloud (f/centos8)

Fix proposed to branch: f/centos8
Review: https://review.opendev.org/c/starlingx/distcloud/+/796528

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to distcloud (f/centos8)
Download full text (105.0 KiB)

Reviewed: https://review.opendev.org/c/starlingx/distcloud/+/796528
Committed: https://opendev.org/starlingx/distcloud/commit/4c5344f8765b372cb84d2b1181589c16db2ae6e4
Submitter: "Zuul (22348)"
Branch: f/centos8

commit cb979811017bd193fc1f06e53bb7830fd3184859
Author: Yuxing Jiang <email address hidden>
Date: Wed Jun 9 11:11:27 2021 -0400

    Format the IP addresses in payload before adding a subcloud

    The IPv6 addresses can be represented in multiple formats. As IP
    addresses are stored as text in database, ansible inventory and
    overrides, this commit converts the IP addresses in payload to
    standard text format of IPv6 address during adding a new subcloud.

    Tested with installing and bootstrapping a new subcloud(RVMC
    configured) with the correct IPv6 address values, but with
    unrecommended upper case letters and '0'. The addresses are
    converted to standard format in database, ansible inventory and
    overrides files.

    Partial-Bug: 1931459
    Signed-off-by: Yuxing Jiang <email address hidden>
    Change-Id: I6c26e749941f1ea2597f91886ad8f7da64521f0d

commit 2cf5d6d5cef0808c354f7575336aec34253993b3
Author: albailey <email address hidden>
Date: Thu May 20 14:19:24 2021 -0500

    Delete existing vim strategy from subcloud during patch orch

    When dcmanager creates a patch strategy, if a subcloud has an
    existing vim patch strategy, it will attempt to re-use
    that strategy during its patching phase, which may result in an
    error.

    This commit deletes the existing vim patch strategy in
    a subcloud, if it exists, so it can be re-created.
    If the strategy cannot be deleted, orchestration fails.

    Change-Id: Id35ef26ed3ddae6d71874fc6bac11df147f72323
    Closes-Bug: 1929221
    Signed-off-by: albailey <email address hidden>

commit 9e14c83f0162549a2a94cb8bc1e73dbc4f4d4887
Author: albailey <email address hidden>
Date: Tue Jun 1 14:37:14 2021 -0500

    Adding activation retry to upgrade orchestration

    When performing an activation, the keystone endpoints may not
    be accessible in the subcloud due to the asyncronous way that
    cert-mon can trigger a restart of keystone.

    This would have occasionally resulted in the upgrade activation
    failing to be initiated, and orchestration needing to be invoked
    again to resume.

    This 'hack' adds retries and sleeps to the initial
    activation action.

    Change-Id: Ic757521dec7bdc248a51a70b5463caafe7927360
    Partial-Bug: 1927550
    Signed-off-by: albailey <email address hidden>

commit bb604c0a9b872efd65fa45f1e2269995818c6262
Author: Tee Ngo <email address hidden>
Date: Thu May 27 22:17:16 2021 -0400

    Fix subcloud show --detail command related issues

    If the subcloud is offline, the command stalls and eventually returns
    the "ERROR (app)" output. If the subcloud is online, the oam_floating_ip
    info is excluded from the output when the subcloud id instead of subcloud
    name is specified.

    This commit fixes both of the above issues.

    Closes-Bug: 1929893
    Change-Id: I995591368564539b0e6af185b1adba2db73e0e46
    Sign...

tags: added: in-f-centos8
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.