Brief Description
-----------------
Create a subscription right after second round of lock/unlock of standby controller results in the app not receiving ptp status change event
Severity
--------
Major
Steps to Reproduce
------------------
lock/unlock standby controller
swact controller
lock/unlock standby controller again
subscribe ptp notification of active controller
change class on GM
Expected Behavior
------------------
app receives Holdover and Freerun events
Actual Behavior
---------------
app didn't receive event
Reproducibility
---------------
Reproducible
System Configuration
---------------------
standard system
Brief Description
-----------------
Create a subscription right after second round of lock/unlock of standby controller results in the app not receiving ptp status change event
Severity
--------
Major
Steps to Reproduce
------------------
lock/unlock standby controller
swact controller
lock/unlock standby controller again
subscribe ptp notification of active controller
change class on GM
Expected Behavior
------------------
app receives Holdover and Freerun events
Actual Behavior
---------------
app didn't receive event
Reproducibility
---------------
Reproducible
System Configuration ------- -------
-------
standard system
Branch/Pull Time/Commit ------- ------- --
-------
stx master 2021-04-28_20-00-06
Last Pass
---------
N/A - new robustness test scenario
Timestamp/Logs 30T18:37: 31+00:00"
--------------
change class on GM right after "2021-04-
pod logs
2021-04-30 18:37:19,978 [[34;1mDEBUG [0m] [notificationcl ientsdk. client. base][MainThrea d] Created Broker client: controller- 1,rabbit: //admin: admin@[ 172.16. 166.143] :5672 ientsdk. services. ptp][MainThread ] initial ptpstatus: {'ResourceType' : 'PTP', 'EventData': {'State': 'Locked'}, 'ResourceQualif ier': {'NodeName': 'controller-1'}, 'EventTimestamp': 1619807502.971857} ientsdk. services. ptp][MainThread ] initial ptpstatus is delivered successfully controllers. v1.subscription s][MainThread] created subscription: {'SubscriptionId': '189770ba- a9e3-11eb- bec1-a27428df2a f2', 'ResourceType': 'PTP', 'UriLocation': 'http:// 127.0.0. 1:8080/ ocloudNotificat ions/v1/ subscriptions/ 189770ba- a9e3-11eb- bec1-a27428df2a f2', 'EndpointUri': 'http:// 127.0.0. 1:9090/ v1/resource_ status/ ptp', 'ResourceQualif ier': {'NodeName': 'controller-1'}} ientsdk. services. notification_ worker] [MainThread] daemon control event is asserted commands. serve][ MainThread] "POST /ocloudNotifica tions/v1/ subscriptions HTTP/1.1" 201 309 ientsdk. services. notification_ worker] [MainThread] found 1 subscriptions ientsdk. services. broker_ state_manager] [MainThread] subscription: {'SubscriptionI d': '189770ba- a9e3-11eb- bec1-a27428df2a f2', 'ResourceType': 'PTP', 'UriLocation': 'http:// 127.0.0. 1:8080/ ocloudNotificat ions/v1/ subscriptions/ 189770ba- a9e3-11eb- bec1-a27428df2a f2', 'EndpointUri': 'http:// 127.0.0. 1:9090/ v1/resource_ status/ ptp', 'ResourceQualif ier': {'NodeName': 'controller-1'}}, Status:1 ientsdk. services. broker_ state_manager] [MainThread] Failed to enumerate broker names for controller-1 ientsdk. services. notification_ handler] [MainThread] delivery time @node: controller- 1,subscription: 189770ba- a9e3-11eb- bec1-a27428df2a f2 is added commands. serve][ MainThread] "GET /ocloudNotifica tions/v1/ subscriptions/ 189770ba- a9e3-11eb- bec1-a27428df2a f2 HTTP/1.1" 200 309 commands. serve][ MainThread] "GET /ocloudNotifica tions/v1/ subscriptions HTTP/1.1" 200 311 ientsdk. services. ptp][MainThread ] Pulled location info@controller -1:{'NodeName' : 'controller-1', 'PodIP': '172.16.166.143', 'ResourceTypes': ['PTP'], 'Timestamp': 1619806955.3530345} ientsdk. client. base][MainThrea d] Created Broker client: controller- 1,rabbit: //admin: admin@[ 172.16. 166.143] :5672 commands. serve][ MainThread] "GET /ocloudNotifica tions/v1/ PTP/CurrentStat e HTTP/1.1" 200 145 ientsdk. client. locationservice ][Thread- 7] LocationService Client NotifyLocation called {'NodeName': 'controller-1', 'PodIP': '172.16.166.143', 'ResourceTypes': ['PTP'], 'Timestamp': 1619806955.3530345} ientsdk. services. notification_ worker] [Thread- 7] Received location info:{'NodeName': 'controller-1', 'PodIP': '172.16.166.143', 'ResourceTypes': ['PTP'], 'Timestamp': 1619806955.3530345} ientsdk. services. notification_ worker] [MainThread] daemon control event is asserted ientsdk. services. notification_ worker] [MainThread] Start to consume location event ientsdk. services. notification_ worker] [MainThread] consume location info @controller- 1:{'NodeName' : 'controller-1', 'PodIP': '172.16.166.143', 'ResourceTypes': ['PTP'], 'Timestamp': 1619806955.3530345} ientsdk. services. notification_ worker] [MainThread] Add NodeInfo: controller-1 ientsdk. services. notification_ worker] [MainThread] Finished consuming location event ientsdk. services. notification_ worker] [MainThread] signal event to refresh brokers state from subscription ientsdk. services. notification_ worker] [MainThread] try to refresh brokers state due to changes of node info ientsdk. services. notification_ worker] [MainThread] found 1 subscriptions ientsdk. services. broker_ state_manager] [MainThread] subscription: {'SubscriptionI d': '189770ba- a9e3-11eb- bec1-a27428df2a f2', 'ResourceType': 'PTP', 'UriLocation': 'http:// 127.0.0. 1:8080/ ocloudNotificat ions/v1/ subscriptions/ 189770ba- a9e3-11eb- bec1-a27428df2a f2', 'EndpointUri': 'http:// 127.0.0. 1:9090/ v1/resource_ status/ ptp', 'ResourceQualif ier': {'NodeName': 'controller-1'}}, Status:1 ientsdk. services. notification_ worker] [MainThread] try to sync up watcher for 1 brokers ientsdk. services. broker_ state_manager] [MainThread] Start watching due to connected: controller-1 ientsdk. services. broker_ connection_ manager] [MainThread] Start watching location announcement of notificationser vice@controller -1 ientsdk. services. broker_ connection_ manager] [MainThread] Pulled location info@controller -1:{'NodeName' : 'controller-1', 'PodIP': '172.16.166.143', 'ResourceTypes': ['PTP'], 'Timestamp': 1619806955.3530345} ientsdk. services. broker_ connection_ manager] [MainThread] Start watching notifications from notificationser vice@controller -1 ientsdk. client. base][MainThrea d] Created Broker client: controller- 1,rabbit: //admin: admin@[ 172.16. 166.143] :5672 ientsdk. services. broker_ connection_ manager] [MainThread] Start watching PTP@controller-1 ientsdk. services. notification_ worker] [MainThread] try to sync up data for 1 brokers ientsdk. services. notification_ worker] [MainThread] daemon control event is asserted ientsdk. client. base][Thread- 2] Started rpcserver@ LocationListene r-controller- 1@LocationListe ner-14037011067 6384 ientsdk. client. base][Thread- 13] Started rpcserver@ PTP-Event- controller- 1@PTP-EventList ener-1403700713 32456 ientsdk. client. notificationser vice][Thread- 17] NotificationSer viceClient NotifyStatus called {'ResourceType': 'PTP', 'EventData': {'State': 'Freerun'}, 'ResourceQualif ier': {'NodeName': 'controller-1'}, 'EventTimestamp': 1619807868.160548} ientsdk. services. notification_ handler] [Thread- 17] start notification delivery ientsdk. services. notification_ handler] [Thread- 17] notification is delivered successfully to 189770ba- a9e3-11eb- bec1-a27428df2a f2 ientsdk. services. notification_ handler] [Thread- 17] delivery time @node: controller- 1,subscription: 189770ba- a9e3-11eb- bec1-a27428df2a f2 is updated ientsdk. services. notification_ handler] [Thread- 17] Finished notification delivery ientsdk. client. notificationser vice][Thread- 17] NotificationSer viceClient NotifyStatus called {'ResourceType': 'PTP', 'EventData': {'State': 'Freerun'}, 'ResourceQualif ier': {'NodeName': 'controller-1'}, 'EventTimestamp': 1619807868.160548} ientsdk. services. notification_ handler] [Thread- 17] start notification delivery
2021-04-30 18:37:20,017 [[1mINFO [0m] [notificationcl
2021-04-30 18:37:20,037 [[1mINFO [0m] [notificationcl
2021-04-30 18:37:20,043 [[1mINFO [0m] [sidecar.
2021-04-30 18:37:20,043 [[34;1mDEBUG [0m] [notificationcl
2021-04-30 18:37:20,044 [[1mINFO [0m] [pecan.
2021-04-30 18:37:20,045 [[34;1mDEBUG [0m] [notificationcl
2021-04-30 18:37:20,046 [[34;1mDEBUG [0m] [notificationcl
2021-04-30 18:37:20,049 [[34;1mDEBUG [0m] [notificationcl
2021-04-30 18:37:20,050 [[34;1mDEBUG [0m] [notificationcl
2021-04-30 18:37:28,330 [[1mINFO [0m] [pecan.
2021-04-30 18:37:29,302 [[1mINFO [0m] [pecan.
2021-04-30 18:37:30,281 [[34;1mDEBUG [0m] [notificationcl
2021-04-30 18:37:30,283 [[34;1mDEBUG [0m] [notificationcl
2021-04-30 18:37:31,325 [[1mINFO [0m] [pecan.
2021-04-30 18:39:37,584 [[34;1mDEBUG [0m] [notificationcl
2021-04-30 18:39:37,584 [[34;1mDEBUG [0m] [notificationcl
2021-04-30 18:39:37,584 [[34;1mDEBUG [0m] [notificationcl
2021-04-30 18:39:37,585 [[34;1mDEBUG [0m] [notificationcl
2021-04-30 18:39:37,585 [[34;1mDEBUG [0m] [notificationcl
2021-04-30 18:39:37,592 [[34;1mDEBUG [0m] [notificationcl
2021-04-30 18:39:37,592 [[34;1mDEBUG [0m] [notificationcl
2021-04-30 18:39:37,593 [[34;1mDEBUG [0m] [notificationcl
2021-04-30 18:39:37,593 [[34;1mDEBUG [0m] [notificationcl
2021-04-30 18:39:37,596 [[34;1mDEBUG [0m] [notificationcl
2021-04-30 18:39:37,596 [[34;1mDEBUG [0m] [notificationcl
2021-04-30 18:39:37,602 [[34;1mDEBUG [0m] [notificationcl
2021-04-30 18:39:37,602 [[34;1mDEBUG [0m] [notificationcl
2021-04-30 18:39:37,602 [[34;1mDEBUG [0m] [notificationcl
2021-04-30 18:39:37,634 [[34;1mDEBUG [0m] [notificationcl
2021-04-30 18:39:37,635 [[34;1mDEBUG [0m] [notificationcl
2021-04-30 18:39:37,637 [[34;1mDEBUG [0m] [notificationcl
2021-04-30 18:39:37,637 [[34;1mDEBUG [0m] [notificationcl
2021-04-30 18:39:37,647 [[34;1mDEBUG [0m] [notificationcl
2021-04-30 18:39:37,648 [[34;1mDEBUG [0m] [notificationcl
2021-04-30 18:39:37,649 [[34;1mDEBUG [0m] [notificationcl
2021-04-30 18:39:37,662 [[34;1mDEBUG [0m] [notificationcl
2021-04-30 18:39:39,881 [[34;1mDEBUG [0m] [notificationcl
2021-04-30 18:39:39,881 [[34;1mDEBUG [0m] [notificationcl
2021-04-30 18:39:39,903 [[34;1mDEBUG [0m] [notificationcl
2021-04-30 18:39:39,903 [[34;1mDEBUG [0m] [notificationcl
2021-04-30 18:39:39,903 [[34;1mDEBUG [0m] [notificationcl
2021-04-30 18:39:42,312 [[34;1mDEBUG [0m] [notificationcl
2021-04-30 18:39:42,313 [[34;1mDEBUG [0m] [notificationcl
Test Activity
-------------
Feature Testing
Workaround
----------
Unknown