2026-09-30 16:21:07,109 - INFO - Domain Default found not creating
2026-09-30 16:21:07,251 - INFO - Project ctest-TestBasicPolicy-41626724 not found, creating it
2026-09-30 16:21:07,686 - INFO - Created Project:ctest-TestBasicPolicy-41626724, ID : 3cc63024-c00f-411d-a360-f1a786df2fd7
2026-09-30 16:21:09,808 - INFO - ================================================================================
2026-09-30 16:21:09,808 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-09-30 16:21:09,808 - 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-09-30 16:21:10,064 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.25': '0'}} with
2026-09-30 16:21:10,064 - INFO - Initial checks done. Running the testcase now
2026-09-30 16:21:10,064 - INFO -
2026-09-30 16:21:10,617 - DEBUG - Response for create_network : {'network': {'id': '15e91948-e691-4eb4-be72-be93834dbb43', 'name': 'ctest-vn-83067631', 'tenant_id': '3cc63024c00f411da360f1a786df2fd7', 'project_id': '3cc63024c00f411da360f1a786df2fd7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41626724', 'ctest-vn-83067631'], 'port_security_enabled': True, 'description': ''}}
2026-09-30 16:21:10,799 - DEBUG - Response for create_subnet : {'subnet': {'id': '164e5404-ea53-4f08-af8b-312f33337e86', 'name': '', 'tenant_id': '3cc63024c00f411da360f1a786df2fd7', 'network_id': '15e91948-e691-4eb4-be72-be93834dbb43', 'ip_version': 4, 'cidr': '20.229.3.128/26', 'allocation_pools': [{'start': '20.229.3.130', 'end': '20.229.3.190'}], 'gateway_ip': '20.229.3.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.229.3.130', 'tags': [], 'project_id': '3cc63024c00f411da360f1a786df2fd7'}}
2026-09-30 16:21:10,821 - INFO - Created VN ctest-vn-83067631
2026-09-30 16:21:10,874 - DEBUG - VN ctest-vn-83067631 UUID is 15e91948-e691-4eb4-be72-be93834dbb43
2026-09-30 16:21:11,216 - DEBUG - Response for create_network : {'network': {'id': 'a6dd1083-568e-43d8-9c11-86ce02230753', 'name': 'ctest-vn-09688418', 'tenant_id': '3cc63024c00f411da360f1a786df2fd7', 'project_id': '3cc63024c00f411da360f1a786df2fd7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41626724', 'ctest-vn-09688418'], 'port_security_enabled': True, 'description': ''}}
2026-09-30 16:21:11,411 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e15e6d3a-3192-4e70-812a-ed6812183e73', 'name': '', 'tenant_id': '3cc63024c00f411da360f1a786df2fd7', 'network_id': 'a6dd1083-568e-43d8-9c11-86ce02230753', 'ip_version': 4, 'cidr': '12.28.61.128/26', 'allocation_pools': [{'start': '12.28.61.130', 'end': '12.28.61.190'}], 'gateway_ip': '12.28.61.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '12.28.61.130', 'tags': [], 'project_id': '3cc63024c00f411da360f1a786df2fd7'}}
2026-09-30 16:21:11,426 - INFO - Created VN ctest-vn-09688418
2026-09-30 16:21:11,478 - DEBUG - VN ctest-vn-09688418 UUID is a6dd1083-568e-43d8-9c11-86ce02230753
2026-09-30 16:21:11,626 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-41626724:ctest-vn-83067631, 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-41626724:ctest-vn-09688418, 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-09-30 16:21:11,932 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '15e91948-e691-4eb4-be72-be93834dbb43', 'name': 'ctest-vn-83067631', 'tenant_id': '3cc63024c00f411da360f1a786df2fd7', 'project_id': '3cc63024c00f411da360f1a786df2fd7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['164e5404-ea53-4f08-af8b-312f33337e86'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41626724', 'ctest-vn-83067631'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41626724', 'ctest-policy-allow-all-50519278']], 'subnet_ipam': [{'subnet_cidr': '20.229.3.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-30 16:21:12,161 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a6dd1083-568e-43d8-9c11-86ce02230753', 'name': 'ctest-vn-09688418', 'tenant_id': '3cc63024c00f411da360f1a786df2fd7', 'project_id': '3cc63024c00f411da360f1a786df2fd7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['e15e6d3a-3192-4e70-812a-ed6812183e73'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41626724', 'ctest-vn-09688418'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41626724', 'ctest-policy-allow-all-50519278']], 'subnet_ipam': [{'subnet_cidr': '12.28.61.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-30 16:21:12,310 - DEBUG - Requesting: http://10.0.0.189:8082/domains
2026-09-30 16:21:12,626 - DEBUG - Requesting: http://10.0.0.189:8082/domains
2026-09-30 16:21:12,651 - DEBUG - Requesting: http://10.0.0.189:8082/domain/5d11a5b1-94ab-4c0d-ab72-36b6ed4e5368
2026-09-30 16:21:12,663 - DEBUG - Requesting: http://10.0.0.189:8082/project/3cc63024-c00f-411d-a360-f1a786df2fd7
2026-09-30 16:21:12,734 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/15e91948-e691-4eb4-be72-be93834dbb43
2026-09-30 16:21:12,746 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/15e91948-e691-4eb4-be72-be93834dbb43
2026-09-30 16:21:12,756 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/0ca3874f-9a91-4f44-aa4a-3860f6b3ffcd
2026-09-30 16:21:12,763 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/0ca3874f-9a91-4f44-aa4a-3860f6b3ffcd
2026-09-30 16:21:12,771 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/612ac1e5-a8a5-4f86-9e3d-555b76ba0c30
2026-09-30 16:21:12,777 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-30 16:21:12,777 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/15e91948-e691-4eb4-be72-be93834dbb43
2026-09-30 16:21:12,785 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/0ca3874f-9a91-4f44-aa4a-3860f6b3ffcd
2026-09-30 16:21:12,802 - INFO - Verified VN network id 12 for VN 15e91948-e691-4eb4-be72-be93834dbb43
2026-09-30 16:21:12,802 - INFO - Verifications in API Server for VN ctest-vn-83067631 passed
2026-09-30 16:21:12,802 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/15e91948-e691-4eb4-be72-be93834dbb43
2026-09-30 16:21:12,812 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/0ca3874f-9a91-4f44-aa4a-3860f6b3ffcd
2026-09-30 16:21:12,820 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/0ca3874f-9a91-4f44-aa4a-3860f6b3ffcd
2026-09-30 16:21:12,827 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/612ac1e5-a8a5-4f86-9e3d-555b76ba0c30
2026-09-30 16:21:12,839 - DEBUG - Control-node 10.0.0.189 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41626724:ctest-vn-83067631', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41626724', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1578820945266691764', 'uuid-lslong': '13723240555323702083'}, 'enable': 'true', 'created': '2026-09-30T16:21:10', 'last-modified': '2026-09-30T16:21:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.935755'}
2026-09-30 16:21:12,846 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-30 16:21:12,846 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83067631 passed
2026-09-30 16:21:12,846 - DEBUG - ====Verifying policy data for ctest-vn-83067631 in API_Server ======
2026-09-30 16:21:12,846 - DEBUG - Requesting: http://10.0.0.189:8082/domains
2026-09-30 16:21:12,852 - DEBUG - Requesting: http://10.0.0.189:8082/domain/5d11a5b1-94ab-4c0d-ab72-36b6ed4e5368
2026-09-30 16:21:12,866 - DEBUG - Requesting: http://10.0.0.189:8082/project/3cc63024-c00f-411d-a360-f1a786df2fd7
2026-09-30 16:21:12,938 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/15e91948-e691-4eb4-be72-be93834dbb43
2026-09-30 16:21:12,946 - DEBUG - ==>Verifying data for policy with id: 2a884b62-9f6b-4bfc-9500-b418ab3b88de, fqn: ['default-domain', 'ctest-TestBasicPolicy-41626724', 'ctest-policy-allow-all-50519278']
2026-09-30 16:21:12,946 - INFO - VN ctest-vn-83067631 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-30 16:21:12,947 - DEBUG - Verifying the vn in opserver
2026-09-30 16:21:12,947 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41626724:ctest-vn-83067631 virtual network link through opserver 10.0.0.189
2026-09-30 16:21:12,947 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks
2026-09-30 16:21:13,261 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks
2026-09-30 16:21:13,311 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41626724:ctest-vn-83067631', 'href': 'http://10.0.0.189:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41626724:ctest-vn-83067631?flat'}
2026-09-30 16:21:13,311 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41626724:ctest-vn-83067631 is found in opserver
2026-09-30 16:21:13,321 - DEBUG - Do not have enough data to verify VN in agent
2026-09-30 16:21:13,326 - DEBUG - VRF ids for VN ctest-vn-83067631: {}
2026-09-30 16:21:13,326 - DEBUG - Requesting: http://10.0.0.189:8082/domains
2026-09-30 16:21:13,331 - DEBUG - Requesting: http://10.0.0.189:8082/domain/5d11a5b1-94ab-4c0d-ab72-36b6ed4e5368
2026-09-30 16:21:13,341 - DEBUG - Requesting: http://10.0.0.189:8082/project/3cc63024-c00f-411d-a360-f1a786df2fd7
2026-09-30 16:21:13,410 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/a6dd1083-568e-43d8-9c11-86ce02230753
2026-09-30 16:21:13,422 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/a6dd1083-568e-43d8-9c11-86ce02230753
2026-09-30 16:21:13,432 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/2aa963b5-72e0-4ebb-830f-d384ffb3d9a4
2026-09-30 16:21:13,439 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/2aa963b5-72e0-4ebb-830f-d384ffb3d9a4
2026-09-30 16:21:13,446 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/63a54027-29ed-4fe8-be47-85a39661ad99
2026-09-30 16:21:13,453 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-30 16:21:13,453 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/a6dd1083-568e-43d8-9c11-86ce02230753
2026-09-30 16:21:13,462 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/2aa963b5-72e0-4ebb-830f-d384ffb3d9a4
2026-09-30 16:21:13,476 - INFO - Verified VN network id 13 for VN a6dd1083-568e-43d8-9c11-86ce02230753
2026-09-30 16:21:13,476 - INFO - Verifications in API Server for VN ctest-vn-09688418 passed
2026-09-30 16:21:13,476 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/a6dd1083-568e-43d8-9c11-86ce02230753
2026-09-30 16:21:13,485 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/2aa963b5-72e0-4ebb-830f-d384ffb3d9a4
2026-09-30 16:21:13,493 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/2aa963b5-72e0-4ebb-830f-d384ffb3d9a4
2026-09-30 16:21:13,500 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/63a54027-29ed-4fe8-be47-85a39661ad99
2026-09-30 16:21:13,512 - DEBUG - Control-node 10.0.0.189 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41626724:ctest-vn-09688418', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41626724', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12023784736428016600', 'uuid-lslong': '11245917963878074195'}, 'enable': 'true', 'created': '2026-09-30T16:21:11', 'last-modified': '2026-09-30T16:21:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.379469'}
2026-09-30 16:21:13,519 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-30 16:21:13,519 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09688418 passed
2026-09-30 16:21:13,519 - DEBUG - ====Verifying policy data for ctest-vn-09688418 in API_Server ======
2026-09-30 16:21:13,519 - DEBUG - Requesting: http://10.0.0.189:8082/domains
2026-09-30 16:21:13,524 - DEBUG - Requesting: http://10.0.0.189:8082/domain/5d11a5b1-94ab-4c0d-ab72-36b6ed4e5368
2026-09-30 16:21:13,535 - DEBUG - Requesting: http://10.0.0.189:8082/project/3cc63024-c00f-411d-a360-f1a786df2fd7
2026-09-30 16:21:13,603 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/a6dd1083-568e-43d8-9c11-86ce02230753
2026-09-30 16:21:13,612 - DEBUG - ==>Verifying data for policy with id: 2a884b62-9f6b-4bfc-9500-b418ab3b88de, fqn: ['default-domain', 'ctest-TestBasicPolicy-41626724', 'ctest-policy-allow-all-50519278']
2026-09-30 16:21:13,612 - INFO - VN ctest-vn-09688418 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-30 16:21:13,612 - DEBUG - Verifying the vn in opserver
2026-09-30 16:21:13,612 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41626724:ctest-vn-09688418 virtual network link through opserver 10.0.0.189
2026-09-30 16:21:13,612 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks
2026-09-30 16:21:13,622 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41626724:ctest-vn-09688418', 'href': 'http://10.0.0.189:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41626724:ctest-vn-09688418?flat'}
2026-09-30 16:21:13,622 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41626724:ctest-vn-09688418 is found in opserver
2026-09-30 16:21:13,632 - DEBUG - Do not have enough data to verify VN in agent
2026-09-30 16:21:13,639 - DEBUG - VRF ids for VN ctest-vn-09688418: {}
2026-09-30 16:21:13,695 - DEBUG - Services list from nova: [