orb icon indicating copy to clipboard operation
orb copied to clipboard

Policies linked to a group are not applied on the agent even without any error logs

Open manrodrigues opened this issue 2 years ago • 1 comments

Probably related to #1054

Three policies are applied to the agent, but 4 should be:

image.png

{
    "id": "757f0685-d90d-42c2-812f-156573983df3",
    "name": "test_agent_name_xxsiNIMMwW",
    "state": "online",
    "channel_id": "8f4dcce4-34ac-432b-b22a-8398d8050a16",
    "agent_tags": {},
    "orb_tags": {
        "test_tag_tLlILT": "test_tag_azRE"
    },
    "agent_metadata": {
        "backends": {
            "pktvisor": {
                "data": {
                    "taps": {
                        "default_pcap": {
                            "config": {
                                "iface": "wlo1"
                            },
                            "input_type": "pcap",
                            "interface": "visor.module.input/1.0"
                        }
                    }
                },
                "version": "4.2.0-develop-5f5b487"
            }
        },
        "orb_agent": {
            "version": "0.16.0-develop-8679ef0"
        }
    },
    "last_hb_data": {
        "backend_state": {
            "pktvisor": {
                "state": "running"
            }
        },
        "group_state": {
            "6dcacf48-ebd8-4419-93bf-11f32341bb2d": {
                "channel": "229e8ba8-f582-4d4b-8051-ae4b08e50821",
                "name": "test_group_name_uVVVjbkyOh"
            }
        },
        "policy_state": {
            "0b2cf31d-3ff9-4b42-b15f-d9faa97a6274": {
                "datasets": [
                    "ff34efd0-9db7-4929-9069-247f9e7cc632"
                ],
                "name": "test_policy_name_ZWdFQkUKtQ",
                "state": "running"
            },
            "958fa28a-afc5-4669-908f-c93a98fa486c": {
                "datasets": [
                    "3068d60f-7e61-413b-9a30-d479ceb86ad9"
                ],
                "name": "test_policy_name_GSKcAYrfdt",
                "state": "running"
            },
            "d9d4ffb4-e5f1-44a7-9c36-9995a1b73314": {
                "datasets": [
                    "bff79c0e-3482-4f37-a538-2c059904a77b"
                ],
                "name": "test_policy_name_XpOrUXlVPI",
                "state": "running"
            }
        }
    },
    "ts_created": "2022-06-23T14:56:22.584403Z",
    "ts_last_hb": "2022-06-23T15:49:45.094238Z"
}

This policy is missing:

image.png

Full logs:

757f0685-d90d-42c2-812f-156573983df3.log

image.png

image.png

image.png

image.png

manrodrigues avatar Jun 23 '22 15:06 manrodrigues

Another agent with the same problem to may help with investigation:

One policy is applied, but 2 was expected:

image

This dataset is applied:

image

This dataset is not applied:

image

Full logs:

611247cb-3ade-4485-b9e3-80abb1da8ad4.log

manrodrigues avatar Jun 23 '22 16:06 manrodrigues