2026-05-07 02:27:26,017 - INFO - Domain Default found not creating
2026-05-07 02:27:26,251 - INFO - Project ctest-TestBasicPolicy-40807288 not found, creating it
2026-05-07 02:27:26,736 - INFO - Created Project:ctest-TestBasicPolicy-40807288, ID : 343ccc0d-8b19-47ce-afd0-b32bb9486007
2026-05-07 02:27:29,195 - INFO - ================================================================================
2026-05-07 02:27:29,195 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-07 02:27:29,195 - 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-05-07 02:27:29,469 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with
2026-05-07 02:27:29,470 - INFO - Initial checks done. Running the testcase now
2026-05-07 02:27:29,470 - INFO -
2026-05-07 02:27:30,067 - DEBUG - Response for create_network : {'network': {'id': '8a8aae06-003b-4917-9bf8-c367e063a17c', 'name': 'ctest-vn-81674842', 'tenant_id': '343ccc0d8b1947ceafd0b32bb9486007', 'project_id': '343ccc0d8b1947ceafd0b32bb9486007', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40807288', 'ctest-vn-81674842'], 'port_security_enabled': True, 'description': ''}}
2026-05-07 02:27:30,282 - DEBUG - Response for create_subnet : {'subnet': {'id': '77f4d5ba-2972-4b42-9ea4-a3d2aae41527', 'name': '', 'tenant_id': '343ccc0d8b1947ceafd0b32bb9486007', 'network_id': '8a8aae06-003b-4917-9bf8-c367e063a17c', 'ip_version': 4, 'cidr': '221.65.130.0/26', 'allocation_pools': [{'start': '221.65.130.2', 'end': '221.65.130.62'}], 'gateway_ip': '221.65.130.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.65.130.2', 'tags': [], 'project_id': '343ccc0d8b1947ceafd0b32bb9486007'}}
2026-05-07 02:27:30,308 - INFO - Created VN ctest-vn-81674842
2026-05-07 02:27:30,366 - DEBUG - VN ctest-vn-81674842 UUID is 8a8aae06-003b-4917-9bf8-c367e063a17c
2026-05-07 02:27:30,703 - DEBUG - Response for create_network : {'network': {'id': '0f7304d6-c8da-4bce-94f8-50d0defbfe8b', 'name': 'ctest-vn-58401770', 'tenant_id': '343ccc0d8b1947ceafd0b32bb9486007', 'project_id': '343ccc0d8b1947ceafd0b32bb9486007', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40807288', 'ctest-vn-58401770'], 'port_security_enabled': True, 'description': ''}}
2026-05-07 02:27:30,891 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b4f67a50-984b-40df-a2b1-2285f4b693e2', 'name': '', 'tenant_id': '343ccc0d8b1947ceafd0b32bb9486007', 'network_id': '0f7304d6-c8da-4bce-94f8-50d0defbfe8b', 'ip_version': 4, 'cidr': '61.243.161.64/26', 'allocation_pools': [{'start': '61.243.161.66', 'end': '61.243.161.126'}], 'gateway_ip': '61.243.161.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '61.243.161.66', 'tags': [], 'project_id': '343ccc0d8b1947ceafd0b32bb9486007'}}
2026-05-07 02:27:30,915 - INFO - Created VN ctest-vn-58401770
2026-05-07 02:27:30,970 - DEBUG - VN ctest-vn-58401770 UUID is 0f7304d6-c8da-4bce-94f8-50d0defbfe8b
2026-05-07 02:27:31,107 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40807288:ctest-vn-81674842, 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-40807288:ctest-vn-58401770, 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-05-07 02:27:31,443 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8a8aae06-003b-4917-9bf8-c367e063a17c', 'name': 'ctest-vn-81674842', 'tenant_id': '343ccc0d8b1947ceafd0b32bb9486007', 'project_id': '343ccc0d8b1947ceafd0b32bb9486007', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['77f4d5ba-2972-4b42-9ea4-a3d2aae41527'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40807288', 'ctest-vn-81674842'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40807288', 'ctest-policy-allow-all-09022513']], 'subnet_ipam': [{'subnet_cidr': '221.65.130.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-07 02:27:31,707 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0f7304d6-c8da-4bce-94f8-50d0defbfe8b', 'name': 'ctest-vn-58401770', 'tenant_id': '343ccc0d8b1947ceafd0b32bb9486007', 'project_id': '343ccc0d8b1947ceafd0b32bb9486007', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b4f67a50-984b-40df-a2b1-2285f4b693e2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40807288', 'ctest-vn-58401770'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40807288', 'ctest-policy-allow-all-09022513']], 'subnet_ipam': [{'subnet_cidr': '61.243.161.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-07 02:27:31,882 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-05-07 02:27:32,201 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-05-07 02:27:32,238 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ce58ba89-0286-48e6-aceb-3557d6ec7944
2026-05-07 02:27:32,253 - DEBUG - Requesting: http://10.0.0.22:8082/project/343ccc0d-8b19-47ce-afd0-b32bb9486007
2026-05-07 02:27:32,328 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8a8aae06-003b-4917-9bf8-c367e063a17c
2026-05-07 02:27:32,343 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8a8aae06-003b-4917-9bf8-c367e063a17c
2026-05-07 02:27:32,358 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c30db230-c841-43ce-81ba-74b8deee5362
2026-05-07 02:27:32,368 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c30db230-c841-43ce-81ba-74b8deee5362
2026-05-07 02:27:32,376 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/adc16068-b406-4a86-9304-dcca298b0de9
2026-05-07 02:27:32,384 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-07 02:27:32,384 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8a8aae06-003b-4917-9bf8-c367e063a17c
2026-05-07 02:27:32,393 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c30db230-c841-43ce-81ba-74b8deee5362
2026-05-07 02:27:32,411 - INFO - Verified VN network id 12 for VN 8a8aae06-003b-4917-9bf8-c367e063a17c
2026-05-07 02:27:32,412 - INFO - Verifications in API Server for VN ctest-vn-81674842 passed
2026-05-07 02:27:32,412 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8a8aae06-003b-4917-9bf8-c367e063a17c
2026-05-07 02:27:32,422 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c30db230-c841-43ce-81ba-74b8deee5362
2026-05-07 02:27:32,430 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c30db230-c841-43ce-81ba-74b8deee5362
2026-05-07 02:27:32,438 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/adc16068-b406-4a86-9304-dcca298b0de9
2026-05-07 02:27:32,451 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40807288:ctest-vn-81674842', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40807288', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9982982864817047831', 'uuid-lslong': '11238947721016746364'}, 'enable': 'true', 'created': '2026-05-07T02:27:30', 'last-modified': '2026-05-07T02:27:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.033191'}
2026-05-07 02:27:32,459 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-07 02:27:32,459 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81674842 passed
2026-05-07 02:27:32,460 - DEBUG - ====Verifying policy data for ctest-vn-81674842 in API_Server ======
2026-05-07 02:27:32,460 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-05-07 02:27:32,467 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ce58ba89-0286-48e6-aceb-3557d6ec7944
2026-05-07 02:27:32,480 - DEBUG - Requesting: http://10.0.0.22:8082/project/343ccc0d-8b19-47ce-afd0-b32bb9486007
2026-05-07 02:27:32,552 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8a8aae06-003b-4917-9bf8-c367e063a17c
2026-05-07 02:27:32,563 - DEBUG - ==>Verifying data for policy with id: a98102ea-35fa-4cd4-adec-c49a3e6ceb82, fqn: ['default-domain', 'ctest-TestBasicPolicy-40807288', 'ctest-policy-allow-all-09022513']
2026-05-07 02:27:32,563 - INFO - VN ctest-vn-81674842 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-07 02:27:32,563 - DEBUG - Verifying the vn in opserver
2026-05-07 02:27:32,563 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40807288:ctest-vn-81674842 virtual network link through opserver 10.0.0.22
2026-05-07 02:27:32,563 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-05-07 02:27:32,889 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-05-07 02:27:32,975 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40807288:ctest-vn-81674842', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40807288:ctest-vn-81674842?flat'}
2026-05-07 02:27:32,975 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40807288:ctest-vn-81674842 is found in opserver
2026-05-07 02:27:32,989 - DEBUG - Do not have enough data to verify VN in agent
2026-05-07 02:27:32,995 - DEBUG - VRF ids for VN ctest-vn-81674842: {}
2026-05-07 02:27:32,995 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-05-07 02:27:33,002 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ce58ba89-0286-48e6-aceb-3557d6ec7944
2026-05-07 02:27:33,014 - DEBUG - Requesting: http://10.0.0.22:8082/project/343ccc0d-8b19-47ce-afd0-b32bb9486007
2026-05-07 02:27:33,095 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0f7304d6-c8da-4bce-94f8-50d0defbfe8b
2026-05-07 02:27:33,110 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0f7304d6-c8da-4bce-94f8-50d0defbfe8b
2026-05-07 02:27:33,122 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/039683ed-2e24-4d41-bfc1-1f7edc018bc4
2026-05-07 02:27:33,131 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/039683ed-2e24-4d41-bfc1-1f7edc018bc4
2026-05-07 02:27:33,140 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d1210943-6974-4e96-9de0-f5e92bcf284b
2026-05-07 02:27:33,150 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-07 02:27:33,150 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0f7304d6-c8da-4bce-94f8-50d0defbfe8b
2026-05-07 02:27:33,162 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/039683ed-2e24-4d41-bfc1-1f7edc018bc4
2026-05-07 02:27:33,183 - INFO - Verified VN network id 13 for VN 0f7304d6-c8da-4bce-94f8-50d0defbfe8b
2026-05-07 02:27:33,183 - INFO - Verifications in API Server for VN ctest-vn-58401770 passed
2026-05-07 02:27:33,183 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0f7304d6-c8da-4bce-94f8-50d0defbfe8b
2026-05-07 02:27:33,193 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/039683ed-2e24-4d41-bfc1-1f7edc018bc4
2026-05-07 02:27:33,202 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/039683ed-2e24-4d41-bfc1-1f7edc018bc4
2026-05-07 02:27:33,211 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d1210943-6974-4e96-9de0-f5e92bcf284b
2026-05-07 02:27:33,225 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40807288:ctest-vn-58401770', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40807288', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1113238853429906382', 'uuid-lslong': '10734418569862053515'}, 'enable': 'true', 'created': '2026-05-07T02:27:30', 'last-modified': '2026-05-07T02:27:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.543421'}
2026-05-07 02:27:33,232 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-07 02:27:33,232 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58401770 passed
2026-05-07 02:27:33,232 - DEBUG - ====Verifying policy data for ctest-vn-58401770 in API_Server ======
2026-05-07 02:27:33,232 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-05-07 02:27:33,239 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ce58ba89-0286-48e6-aceb-3557d6ec7944
2026-05-07 02:27:33,251 - DEBUG - Requesting: http://10.0.0.22:8082/project/343ccc0d-8b19-47ce-afd0-b32bb9486007
2026-05-07 02:27:33,325 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0f7304d6-c8da-4bce-94f8-50d0defbfe8b
2026-05-07 02:27:33,337 - DEBUG - ==>Verifying data for policy with id: a98102ea-35fa-4cd4-adec-c49a3e6ceb82, fqn: ['default-domain', 'ctest-TestBasicPolicy-40807288', 'ctest-policy-allow-all-09022513']
2026-05-07 02:27:33,337 - INFO - VN ctest-vn-58401770 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-07 02:27:33,337 - DEBUG - Verifying the vn in opserver
2026-05-07 02:27:33,337 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40807288:ctest-vn-58401770 virtual network link through opserver 10.0.0.22
2026-05-07 02:27:33,337 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-05-07 02:27:33,349 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40807288:ctest-vn-58401770', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40807288:ctest-vn-58401770?flat'}
2026-05-07 02:27:33,349 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40807288:ctest-vn-58401770 is found in opserver
2026-05-07 02:27:33,360 - DEBUG - Do not have enough data to verify VN in agent
2026-05-07 02:27:33,365 - DEBUG - VRF ids for VN ctest-vn-58401770: {}
2026-05-07 02:27:33,444 - DEBUG - Services list from nova: [