Not able to view the availability-state field during system peer creation

Bug #2045717 reported by Jon Zhang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
High
Jon Zhang

Bug Description

Brief Description
-----------------
After creation of system peer - the availability-state field is missing.

Severity
--------
Major

Steps to Reproduce
------------------
Run the below command:

dcmanager system-peer add --peer-uuid 7b5050be-0e74-44b9-b33f-695beab92cfd --peer-name siteA-B-system-peer --manager-endpoint http://[2620:10a:a001:d41::1080]:5000 --peer-controller-gateway-address fdff:719a:bf60:1105::1

Enter the admin password for the system peer:
Re-enter admin password to confirm:
--------------------------------------------------------------------+

Field Value
--------------------------------------------------------------------+

id 1
peer uuid 7b5050be-0e74-44b9-b33f-695beab92cfd
peer name siteA-B-system-peer
manager endpoint http://[2620:10a:a001:d41::1080]:5000
manager username admin
controller gateway address fdff:719a:bf60:1105::1
administrative state enabled
heartbeat interval 60
heartbeat failure threshold 3
heartbeat failure policy alarm
heartbeat maintenance timeout 600
heartbeat status created
created_at 2023-12-04 09:08:14.129548
updated_at None
--------------------------------------------------------------------+

Expected Behavior
------------------
Should display the availability-state field.

Actual Behavior
----------------
Not able to view the availability-state field

Reproducibility
---------------
Yes

System Configuration
--------------------
distributed_cloud

Branch/Pull Time/Commit
-----------------------
master

Test Activity
-------------
Feature Testing

Workaround
----------
N/A

Jon Zhang (jonzhang)
Changed in starlingx:
assignee: nobody → Jon Zhang (jonzhang)
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/+/902765

Changed in starlingx:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to distcloud-client (master)
Tee Ngo (teewrs)
summary: Not able to view the availability-state field during system peer
- creation.
+ creation
Changed in starlingx:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to distcloud (master)

Reviewed: https://review.opendev.org/c/starlingx/distcloud/+/902765
Committed: https://opendev.org/starlingx/distcloud/commit/7af5caf83c4719e75f867b69cb733d9e48751b67
Submitter: "Zuul (22348)"
Branch: master

commit 7af5caf83c4719e75f867b69cb733d9e48751b67
Author: Zhang Rong(Jon) <email address hidden>
Date: Mon Dec 4 15:54:29 2023 +0800

    Change heartbeat-status to availablity-state of system peer

    Fix availablity-state field is missing of system peer

    Test Plan:
    - PASS: Create/Update the system peer check the availability-
            state is exist.
    - PASS: Get details of the system peer check the availability-
            state is exist.
    - PASS: Peer monitor can change the availability-state when
            the peer site is avaliable.
    - PASS: Raise an alarm when the peer is unavaliable.

    Closes-Bug: 2045717

    Change-Id: I497e3d21355c08d000a77965e6a6f36c6f483936
    Signed-off-by: Zhang Rong(Jon) <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
tags: added: stx.9.0 stx.distcloud
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to distcloud-client (master)

Reviewed: https://review.opendev.org/c/starlingx/distcloud-client/+/902766
Committed: https://opendev.org/starlingx/distcloud-client/commit/2c9ee0ea97051b610381db592bfa16683c84477e
Submitter: "Zuul (22348)"
Branch: master

commit 2c9ee0ea97051b610381db592bfa16683c84477e
Author: Zhang Rong(Jon) <email address hidden>
Date: Tue Dec 5 15:59:46 2023 +0800

    Change heartbeat-status to availablity-state of system peer

    Fix availablity-state field is missing of system peer

    Test Plan:
    - PASS: Create/Update the system peer check the availability-
            state is exist in CLI.
    - PASS: Get details of the system peer check the availability-
            state is exist in CLI.

    Closes-Bug: 2045717
    Depends-On: I497e3d21355c08d000a77965e6a6f36c6f483936

    Change-Id: I07268732b9fab22a21e32dee8f22cc615f372461
    Signed-off-by: Zhang Rong(Jon) <email address hidden>

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.