Missed runtime config on active controller initialization leads to config out of date alarm

Bug #1915343 reported by John Kung
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Medium
John Kung

Bug Description

Brief Description
-----------------
During initialization on the active controller, runtime config can be missed due to the agent not being ready to handle the config request.

This results in a missed config and stuck 250.001 "Config out of date alarm".

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

Major config out of date 250.001 alarm raised can be cleared by manual action.

Steps to Reproduce
------------------
Write down the steps to reproduce the issue

Expected Behavior
------------------
No config out of date due to missed runtime config.

Actual Behavior
----------------
Missed runtime config on active controller can lead to 250.001 config out of date alarm.

Reproducibility
---------------
Intermittent
Could be over 10% in large sample of lock/unlock subcloud.

System Configuration
--------------------
AIO-SX (including Distributed Cloud subcloud)
could also affect multinode system

Branch/Pull Time/Commit
-----------------------
2020-11-14_20-00-08

Last Pass
---------
Intermittent issue

Timestamp/Logs
--------------

sysinv 2020-11-16 18:21:59.169 95977 INFO sysinv.api.controllers.v1.certificate [-] refresh_admin_endpoint_certificate admin-endpoint-cert

sysinv 2020-11-16 18:22:03.777 94959 INFO sysinv.agent.rpcapi [-] config_apply_runtime_manifest: fanout_cast: sending config 4c101a3b-7fc8-486b-b36c-48587fc2d0c0

{'classes': ['platform::config::dc_root_ca::runtime', 'platform::haproxy::restart::runtime'], 'force': True, 'personalities': ['controller']}
to agent

sysinv 2020-11-16 18:22:03.794 95977 INFO sysinv.api.hooks.auditor [req-96c86d91-4a99-4642-8602-6e47f134aa4b 84cc06f81b654451bc4cc7478ee50751 471ea648e96247faa731e72060d8908d] fd01:15::2 "POST /v1/certificate/certificate_renew HTTP/1.0" status: 200 len: 16 time: 4.62439608574 POST:

{u'certtype': u'admin-endpoint-cert'}
host:[fd01:15::2]:6385 agent:cert-mon/1.0 user: sysinv tenant: services domain: Default

However, the agent was starting up at the time of the fanout rpc call; and consequently runtime config is missed:
sysinv 2020-11-16 18:21:47.449 10551 ERROR sysinv.openstack.common.rpc.common [-] AMQP server on fd01:15::2:5672 is unreachable: [Errno 111] ECONNREFUSED. Trying again in 23 seconds.: error: [Errno 111] ECONNREFUSED

Test Activity
-------------
Regression Testing

Workaround
----------
reapply the runtime config operation or
perform host-lock/unlock

Revision history for this message
John Kung (john-kung) wrote :
Revision history for this message
Ghada Khalil (gkhalil) wrote :

stx.5.0 / medium - alarm issue

tags: added: stx.config
Changed in starlingx:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → John Kung (john-kung)
tags: added: stx.5.0
Revision history for this message
John Kung (john-kung) wrote :
Changed in starlingx:
status: Triaged → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to config (f/centos8)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

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

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

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

Reviewed: https://review.opendev.org/c/starlingx/config/+/794906
Committed: https://opendev.org/starlingx/config/commit/75758b37a5a23c8811355b67e2a430a1713cd85b
Submitter: "Zuul (22348)"
Branch: f/centos8

commit 9e420d9513e5fafb1df4d29567bc299a9e04d58d
Author: Bin Qian <email address hidden>
Date: Mon May 31 14:45:52 2021 -0400

    Add more logging to run docker login

    Add error log for running docker login. The new log could
    help identify docker login failure.

    Closes-Bug: 1930310
    Change-Id: I8a709fb6665de8301fbe3022563499a92b2a0211
    Signed-off-by: Bin Qian <email address hidden>

commit 31c77439d2cea590dfcca13cfa646522665f8686
Author: albailey <email address hidden>
Date: Fri May 28 13:42:42 2021 -0500

    Fix controller-0 downgrade failing to kill ceph

    kill_ceph_storage_monitor tried to manipulate a pmon
    file that does not exist in an AIO-DX environment.

    We no longer invoke kill_ceph_storage_monitor in an
    AIO SX or DX env.

    This allows: "system host-downgrade controller-0"
    to proceed in an AIO-DX environment where that second
    controller (controller-0) was upgraded.

    Partial-Bug: 1929884
    Signed-off-by: albailey <email address hidden>
    Change-Id: I633853f75317736084feae96b5b849c601204c13

commit 0dc99eee608336fe01b58821ea404286371f1408
Author: albailey <email address hidden>
Date: Fri May 28 11:05:43 2021 -0500

    Fix file permissions failure during duplex upgrade abort

    When issuing a downgrade for controller-0 in a duplex upgrade
    abort and rollback scenario, the downgrade command was failing
    because the sysinv API does not have root permissions to set
    a file flag.
    The fix is to use RPC so the conductor can create the flag
    and allow the downgrade for controller-0 to get further.

    Partial-Bug: 1929884
    Signed-off-by: albailey <email address hidden>
    Change-Id: I913bcad73309fe887a12cbb016a518da93327947

commit 7ef3724dad173754e40b45538b1cc726a458cc1c
Author: Chen, Haochuan Z <email address hidden>
Date: Tue May 25 16:16:29 2021 +0800

    Fix bug rook-ceph provision with multi osd on one host

    Test case:
    1, deploy simplex system
    2, apply rook-ceph with below override value
    value.yaml
    cluster:
      storage:
        nodes:
        - name: controller-0
          devices:
          - name: sdb
          - name: sdc
    3, reboot

    Without this fix, only osd pod could launch successfully after boot
    as vg start with ceph could not correctly add in sysinv-database

    Closes-bug: 1929511

    Change-Id: Ia5be599cd168d13d2aab7b5e5890376c3c8a0019
    Signed-off-by: Chen, Haochuan Z <email address hidden>

commit 23505ba77d76114cf8a0bf833f9a5bcd05bc1dd1
Author: Angie Wang <email address hidden>
Date: Tue May 25 18:49:21 2021 -0400

    Fix issue in partition data migration script

    The created partition dictonary partition_map is not
    an ordered dict so we need to sort it by its key -
    device node when iterating it to adjust the device
    nodes/paths for user created extra partitions to ensure
    the number of device node...

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

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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