2026-04-21 15:56:13,787 - INFO - Domain Default found not creating
2026-04-21 15:56:14,022 - INFO - Project ctest-TestBasicPolicy-38252566 not found, creating it
2026-04-21 15:56:14,498 - INFO - Created Project:ctest-TestBasicPolicy-38252566, ID : 49446bc6-6d6a-4d76-aa65-6b19f9ac8e7d
2026-04-21 15:56:16,583 - INFO - ================================================================================
2026-04-21 15:56:16,583 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-21 15:56:16,583 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2026-04-21 15:56:16,844 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-04-21 15:56:16,844 - INFO - Initial checks done. Running the testcase now
2026-04-21 15:56:16,846 - INFO -
2026-04-21 15:56:17,437 - DEBUG - Response for create_network : {'network': {'id': 'ec8c84ff-80df-4917-9422-ff7decec8b23', 'name': 'ctest-vn-74924837', 'tenant_id': '49446bc66d6a4d76aa656b19f9ac8e7d', 'project_id': '49446bc66d6a4d76aa656b19f9ac8e7d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38252566', 'ctest-vn-74924837'], 'port_security_enabled': True, 'description': ''}}
2026-04-21 15:56:17,669 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e355754f-f28c-42ff-9157-71d24e6fe490', 'name': '', 'tenant_id': '49446bc66d6a4d76aa656b19f9ac8e7d', 'network_id': 'ec8c84ff-80df-4917-9422-ff7decec8b23', 'ip_version': 4, 'cidr': '194.197.251.0/26', 'allocation_pools': [{'start': '194.197.251.2', 'end': '194.197.251.62'}], 'gateway_ip': '194.197.251.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '194.197.251.2', 'tags': [], 'project_id': '49446bc66d6a4d76aa656b19f9ac8e7d'}}
2026-04-21 15:56:17,691 - INFO - Created VN ctest-vn-74924837
2026-04-21 15:56:17,744 - DEBUG - VN ctest-vn-74924837 UUID is ec8c84ff-80df-4917-9422-ff7decec8b23
2026-04-21 15:56:18,049 - DEBUG - Response for create_network : {'network': {'id': '16239d60-0e47-4375-b7bd-3eb9afb49f0e', 'name': 'ctest-vn-57906086', 'tenant_id': '49446bc66d6a4d76aa656b19f9ac8e7d', 'project_id': '49446bc66d6a4d76aa656b19f9ac8e7d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38252566', 'ctest-vn-57906086'], 'port_security_enabled': True, 'description': ''}}
2026-04-21 15:56:18,262 - DEBUG - Response for create_subnet : {'subnet': {'id': '26f1b842-6ada-4a08-a45d-2569511c31d5', 'name': '', 'tenant_id': '49446bc66d6a4d76aa656b19f9ac8e7d', 'network_id': '16239d60-0e47-4375-b7bd-3eb9afb49f0e', 'ip_version': 4, 'cidr': '222.29.248.192/26', 'allocation_pools': [{'start': '222.29.248.194', 'end': '222.29.248.254'}], 'gateway_ip': '222.29.248.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.29.248.194', 'tags': [], 'project_id': '49446bc66d6a4d76aa656b19f9ac8e7d'}}
2026-04-21 15:56:18,284 - INFO - Created VN ctest-vn-57906086
2026-04-21 15:56:18,340 - DEBUG - VN ctest-vn-57906086 UUID is 16239d60-0e47-4375-b7bd-3eb9afb49f0e
2026-04-21 15:56:18,455 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38252566:ctest-vn-74924837, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38252566:ctest-vn-57906086, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2026-04-21 15:56:18,746 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ec8c84ff-80df-4917-9422-ff7decec8b23', 'name': 'ctest-vn-74924837', 'tenant_id': '49446bc66d6a4d76aa656b19f9ac8e7d', 'project_id': '49446bc66d6a4d76aa656b19f9ac8e7d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e355754f-f28c-42ff-9157-71d24e6fe490'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38252566', 'ctest-vn-74924837'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38252566', 'ctest-policy-allow-all-52068890']], 'subnet_ipam': [{'subnet_cidr': '194.197.251.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-21 15:56:18,993 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '16239d60-0e47-4375-b7bd-3eb9afb49f0e', 'name': 'ctest-vn-57906086', 'tenant_id': '49446bc66d6a4d76aa656b19f9ac8e7d', 'project_id': '49446bc66d6a4d76aa656b19f9ac8e7d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['26f1b842-6ada-4a08-a45d-2569511c31d5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38252566', 'ctest-vn-57906086'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38252566', 'ctest-policy-allow-all-52068890']], 'subnet_ipam': [{'subnet_cidr': '222.29.248.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-21 15:56:19,156 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-21 15:56:19,458 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-21 15:56:19,506 - DEBUG - Requesting: http://10.0.0.50:8082/domain/64a8b1d0-f638-4af0-ab1c-2a6a12ac0064
2026-04-21 15:56:19,521 - DEBUG - Requesting: http://10.0.0.50:8082/project/49446bc6-6d6a-4d76-aa65-6b19f9ac8e7d
2026-04-21 15:56:19,599 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ec8c84ff-80df-4917-9422-ff7decec8b23
2026-04-21 15:56:19,613 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ec8c84ff-80df-4917-9422-ff7decec8b23
2026-04-21 15:56:19,626 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e5b57c67-9e9d-4f32-9bc3-51401928db23
2026-04-21 15:56:19,641 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e5b57c67-9e9d-4f32-9bc3-51401928db23
2026-04-21 15:56:19,650 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2b15ad4b-daf8-4b87-b5d1-977e2225d5ae
2026-04-21 15:56:19,657 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-21 15:56:19,657 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ec8c84ff-80df-4917-9422-ff7decec8b23
2026-04-21 15:56:19,667 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e5b57c67-9e9d-4f32-9bc3-51401928db23
2026-04-21 15:56:19,683 - INFO - Verified VN network id 11 for VN ec8c84ff-80df-4917-9422-ff7decec8b23
2026-04-21 15:56:19,683 - INFO - Verifications in API Server for VN ctest-vn-74924837 passed
2026-04-21 15:56:19,683 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ec8c84ff-80df-4917-9422-ff7decec8b23
2026-04-21 15:56:19,694 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e5b57c67-9e9d-4f32-9bc3-51401928db23
2026-04-21 15:56:19,702 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e5b57c67-9e9d-4f32-9bc3-51401928db23
2026-04-21 15:56:19,710 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2b15ad4b-daf8-4b87-b5d1-977e2225d5ae
2026-04-21 15:56:19,724 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38252566:ctest-vn-74924837', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38252566', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17045144922604128535', 'uuid-lslong': '10674374983132416803'}, 'enable': 'true', 'created': '2026-04-21T15:56:17', 'last-modified': '2026-04-21T15:56:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.997181'}
2026-04-21 15:56:19,732 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-21 15:56:19,732 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74924837 passed
2026-04-21 15:56:19,732 - DEBUG - ====Verifying policy data for ctest-vn-74924837 in API_Server ======
2026-04-21 15:56:19,732 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-21 15:56:19,740 - DEBUG - Requesting: http://10.0.0.50:8082/domain/64a8b1d0-f638-4af0-ab1c-2a6a12ac0064
2026-04-21 15:56:19,753 - DEBUG - Requesting: http://10.0.0.50:8082/project/49446bc6-6d6a-4d76-aa65-6b19f9ac8e7d
2026-04-21 15:56:19,831 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ec8c84ff-80df-4917-9422-ff7decec8b23
2026-04-21 15:56:19,840 - DEBUG - ==>Verifying data for policy with id: 647ebbd6-7f60-462f-bd24-81738b397c8e, fqn: ['default-domain', 'ctest-TestBasicPolicy-38252566', 'ctest-policy-allow-all-52068890']
2026-04-21 15:56:19,840 - INFO - VN ctest-vn-74924837 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-21 15:56:19,840 - DEBUG - Verifying the vn in opserver
2026-04-21 15:56:19,840 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38252566:ctest-vn-74924837 virtual network link through opserver 10.0.0.50
2026-04-21 15:56:19,840 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-21 15:56:20,140 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-21 15:56:20,218 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38252566:ctest-vn-74924837', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38252566:ctest-vn-74924837?flat'}
2026-04-21 15:56:20,218 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38252566:ctest-vn-74924837 is found in opserver
2026-04-21 15:56:20,228 - DEBUG - Do not have enough data to verify VN in agent
2026-04-21 15:56:20,232 - DEBUG - VRF ids for VN ctest-vn-74924837: {}
2026-04-21 15:56:20,232 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-21 15:56:20,239 - DEBUG - Requesting: http://10.0.0.50:8082/domain/64a8b1d0-f638-4af0-ab1c-2a6a12ac0064
2026-04-21 15:56:20,254 - DEBUG - Requesting: http://10.0.0.50:8082/project/49446bc6-6d6a-4d76-aa65-6b19f9ac8e7d
2026-04-21 15:56:20,332 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/16239d60-0e47-4375-b7bd-3eb9afb49f0e
2026-04-21 15:56:20,346 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/16239d60-0e47-4375-b7bd-3eb9afb49f0e
2026-04-21 15:56:20,355 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/73d26f54-18b7-4dbc-aedf-929cd81ee484
2026-04-21 15:56:20,363 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/73d26f54-18b7-4dbc-aedf-929cd81ee484
2026-04-21 15:56:20,370 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/04f50b04-8896-4d8d-88f5-50a556c86e6a
2026-04-21 15:56:20,377 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-21 15:56:20,377 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/16239d60-0e47-4375-b7bd-3eb9afb49f0e
2026-04-21 15:56:20,386 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/73d26f54-18b7-4dbc-aedf-929cd81ee484
2026-04-21 15:56:20,401 - INFO - Verified VN network id 12 for VN 16239d60-0e47-4375-b7bd-3eb9afb49f0e
2026-04-21 15:56:20,401 - INFO - Verifications in API Server for VN ctest-vn-57906086 passed
2026-04-21 15:56:20,401 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/16239d60-0e47-4375-b7bd-3eb9afb49f0e
2026-04-21 15:56:20,412 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/73d26f54-18b7-4dbc-aedf-929cd81ee484
2026-04-21 15:56:20,421 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/73d26f54-18b7-4dbc-aedf-929cd81ee484
2026-04-21 15:56:20,430 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/04f50b04-8896-4d8d-88f5-50a556c86e6a
2026-04-21 15:56:20,445 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38252566:ctest-vn-57906086', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38252566', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1595291728901260149', 'uuid-lslong': '13239807446776848142'}, 'enable': 'true', 'created': '2026-04-21T15:56:18', 'last-modified': '2026-04-21T15:56:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.475220'}
2026-04-21 15:56:20,451 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-21 15:56:20,452 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57906086 passed
2026-04-21 15:56:20,452 - DEBUG - ====Verifying policy data for ctest-vn-57906086 in API_Server ======
2026-04-21 15:56:20,452 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-21 15:56:20,459 - DEBUG - Requesting: http://10.0.0.50:8082/domain/64a8b1d0-f638-4af0-ab1c-2a6a12ac0064
2026-04-21 15:56:20,471 - DEBUG - Requesting: http://10.0.0.50:8082/project/49446bc6-6d6a-4d76-aa65-6b19f9ac8e7d
2026-04-21 15:56:20,547 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/16239d60-0e47-4375-b7bd-3eb9afb49f0e
2026-04-21 15:56:20,558 - DEBUG - ==>Verifying data for policy with id: 647ebbd6-7f60-462f-bd24-81738b397c8e, fqn: ['default-domain', 'ctest-TestBasicPolicy-38252566', 'ctest-policy-allow-all-52068890']
2026-04-21 15:56:20,558 - INFO - VN ctest-vn-57906086 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-21 15:56:20,558 - DEBUG - Verifying the vn in opserver
2026-04-21 15:56:20,558 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38252566:ctest-vn-57906086 virtual network link through opserver 10.0.0.50
2026-04-21 15:56:20,558 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-21 15:56:20,569 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38252566:ctest-vn-57906086', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38252566:ctest-vn-57906086?flat'}
2026-04-21 15:56:20,569 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38252566:ctest-vn-57906086 is found in opserver
2026-04-21 15:56:20,582 - DEBUG - Do not have enough data to verify VN in agent
2026-04-21 15:56:20,587 - DEBUG - VRF ids for VN ctest-vn-57906086: {}
2026-04-21 15:56:20,650 - DEBUG - Services list from nova: [