HeartBeat packet has some invalid information.

Bug #1628440 reported by Masahito Muroi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
congress
Fix Released
Medium
Masahito Muroi

Bug Description

Heartbeat packet doesn't include correct service's information.

How to reproduce:
1. define following rule.
// ID: 0b3049a6-e1b8-4c09-8610-8664cb90e7e9
// Name: test
server_id(x):-nova:servers(id=x)
2. check logs on engine node and datasource node

Unexpected behavior:
1. subscribed_tables of engine node's packet doesn't show service id that subscribes another service's table. It only shows '0'.

2016-09-28 09:41:50.944 DEBUG root [-] <datasource> Accepted heartbeat: context={u'instance': u'3d3f5b60-b150-4209-9fd1-313112c0fb07', u'node_id': u'root-api'}, args='{"services": [{"service_id": "_control_bus", "published_tables": [], "node_id": "root-api", "subscribed_tables": [], "rpc_endpoints_info": []}, {"service_id": "__api", "published_tables": [], "node_id": "root-api", "subscribed_tables": [], "rpc_endpoints_info": []}, {"service_id": "engine", "published_tables": [], "node_id": "root-api", "subscribed_tables": [], "rpc_endpoints_info": []}], "subscribed_tables": {"nova": {"servers": 0}}}'

2. subscribed_tables of datasource node's packet doesn't show subscribing service id. It also show '0'.

2016-09-28 09:50:25.910 DEBUG root [-] <root-api> Accepted heartbeat: context={u'instance': u'9a61241c-6002-4e58-9fc7-64cf44b21417', u'node_id': u'datasource'}, args='{"services": [{"service_id": "_control_bus", "published_tables": [], "node_id": "datasource", "subscribed_tables": [], "rpc_endpoints_info": []}, {"service_id": "glancev2", "published_tables": [], "node_id": "datasource", "subscribed_tables": [], "rpc_endpoints_info": []}, {"service_id": "nova", "published_tables": [], "node_id": "datasource", "subscribed_tables": [], "rpc_endpoints_info": []}, {"service_id": "cinder", "published_tables": [], "node_id": "datasource", "subscribed_tables": [], "rpc_endpoints_info": []}, {"service_id": "keystone", "published_tables": [], "node_id": "datasource", "subscribed_tables": [], "rpc_endpoints_info": []}, {"service_id": "neutronv2", "published_tables": [], "node_id": "datasource", "subscribed_tables": [], "rpc_endpoints_info": []}], "subscribed_tables": {}}'

Eric K (ekcs)
Changed in congress:
status: New → Triaged
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to congress (master)

Fix proposed to branch: master
Review: https://review.openstack.org/381472

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

Reviewed: https://review.openstack.org/381472
Committed: https://git.openstack.org/cgit/openstack/congress/commit/?id=854d2d81fceeb60dde62aacf6356fcb7a75affce
Submitter: Jenkins
Branch: master

commit 854d2d81fceeb60dde62aacf6356fcb7a75affce
Author: Masahito Muroi <email address hidden>
Date: Fri Sep 30 00:09:13 2016 +0900

    HeartBeat packet includes subscribed_table info

    HeartBeat packet has service's info that includes list of suscriber.

    Change-Id: I82dcb41a2cc935bd35c2f9997c6ab73845aa71f7
    Closes-Bug: 1628440

Changed in congress:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/congress 5.0.0.0b1

This issue was fixed in the openstack/congress 5.0.0.0b1 development milestone.

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.