2026-02-04 10:25:07,956 - INFO - Domain Default found not creating
2026-02-04 10:25:08,141 - INFO - Project ctest-TestBasicPolicy-32359958 not found, creating it
2026-02-04 10:25:08,623 - INFO - Created Project:ctest-TestBasicPolicy-32359958, ID : a15f46f3-5d7f-419d-a626-744d4bb56f21
2026-02-04 10:25:10,289 - INFO - ================================================================================
2026-02-04 10:25:10,289 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-04 10:25:10,289 - 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-02-04 10:25:10,561 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.193': '0'}} with
2026-02-04 10:25:10,561 - INFO - Initial checks done. Running the testcase now
2026-02-04 10:25:10,561 - INFO -
2026-02-04 10:25:11,139 - DEBUG - Response for create_network : {'network': {'id': 'f4553ed1-086b-496d-b693-9fee26f12bf5', 'name': 'ctest-vn-44904731', 'tenant_id': 'a15f46f35d7f419da626744d4bb56f21', 'project_id': 'a15f46f35d7f419da626744d4bb56f21', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32359958', 'ctest-vn-44904731'], 'port_security_enabled': True, 'description': ''}}
2026-02-04 10:25:11,298 - DEBUG - Response for create_subnet : {'subnet': {'id': '2176368e-18bc-4d4a-8ddf-2735f25a64b5', 'name': '', 'tenant_id': 'a15f46f35d7f419da626744d4bb56f21', 'network_id': 'f4553ed1-086b-496d-b693-9fee26f12bf5', 'ip_version': 4, 'cidr': '69.28.210.0/26', 'allocation_pools': [{'start': '69.28.210.2', 'end': '69.28.210.62'}], 'gateway_ip': '69.28.210.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '69.28.210.2', 'tags': [], 'project_id': 'a15f46f35d7f419da626744d4bb56f21'}}
2026-02-04 10:25:11,319 - INFO - Created VN ctest-vn-44904731
2026-02-04 10:25:11,374 - DEBUG - VN ctest-vn-44904731 UUID is f4553ed1-086b-496d-b693-9fee26f12bf5
2026-02-04 10:25:11,667 - DEBUG - Response for create_network : {'network': {'id': '426e8e5b-f550-40da-9e52-3f33fa072d26', 'name': 'ctest-vn-99602201', 'tenant_id': 'a15f46f35d7f419da626744d4bb56f21', 'project_id': 'a15f46f35d7f419da626744d4bb56f21', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32359958', 'ctest-vn-99602201'], 'port_security_enabled': True, 'description': ''}}
2026-02-04 10:25:11,832 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f52bcd4d-72eb-4bb0-9bf9-a104031f3880', 'name': '', 'tenant_id': 'a15f46f35d7f419da626744d4bb56f21', 'network_id': '426e8e5b-f550-40da-9e52-3f33fa072d26', 'ip_version': 4, 'cidr': '160.150.28.128/26', 'allocation_pools': [{'start': '160.150.28.130', 'end': '160.150.28.190'}], 'gateway_ip': '160.150.28.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.150.28.130', 'tags': [], 'project_id': 'a15f46f35d7f419da626744d4bb56f21'}}
2026-02-04 10:25:11,857 - INFO - Created VN ctest-vn-99602201
2026-02-04 10:25:11,913 - DEBUG - VN ctest-vn-99602201 UUID is 426e8e5b-f550-40da-9e52-3f33fa072d26
2026-02-04 10:25:12,039 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-32359958:ctest-vn-44904731, 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-32359958:ctest-vn-99602201, 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-02-04 10:25:12,348 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f4553ed1-086b-496d-b693-9fee26f12bf5', 'name': 'ctest-vn-44904731', 'tenant_id': 'a15f46f35d7f419da626744d4bb56f21', 'project_id': 'a15f46f35d7f419da626744d4bb56f21', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2176368e-18bc-4d4a-8ddf-2735f25a64b5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32359958', 'ctest-vn-44904731'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32359958', 'ctest-policy-allow-all-00895276']], 'subnet_ipam': [{'subnet_cidr': '69.28.210.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-04 10:25:12,573 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '426e8e5b-f550-40da-9e52-3f33fa072d26', 'name': 'ctest-vn-99602201', 'tenant_id': 'a15f46f35d7f419da626744d4bb56f21', 'project_id': 'a15f46f35d7f419da626744d4bb56f21', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f52bcd4d-72eb-4bb0-9bf9-a104031f3880'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32359958', 'ctest-vn-99602201'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32359958', 'ctest-policy-allow-all-00895276']], 'subnet_ipam': [{'subnet_cidr': '160.150.28.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-04 10:25:12,734 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2026-02-04 10:25:13,045 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2026-02-04 10:25:13,076 - DEBUG - Requesting: http://10.0.0.23:8082/domain/2edf6a3b-a264-4d20-81b7-144b6668e103
2026-02-04 10:25:13,091 - DEBUG - Requesting: http://10.0.0.23:8082/project/a15f46f3-5d7f-419d-a626-744d4bb56f21
2026-02-04 10:25:13,171 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f4553ed1-086b-496d-b693-9fee26f12bf5
2026-02-04 10:25:13,183 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f4553ed1-086b-496d-b693-9fee26f12bf5
2026-02-04 10:25:13,192 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/08b289b7-0f2d-4b3b-bba3-807c20059399
2026-02-04 10:25:13,200 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/08b289b7-0f2d-4b3b-bba3-807c20059399
2026-02-04 10:25:13,207 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/6c1fc39b-ac0b-4c56-897e-9fa7b20244b1
2026-02-04 10:25:13,214 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-04 10:25:13,214 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f4553ed1-086b-496d-b693-9fee26f12bf5
2026-02-04 10:25:13,224 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/08b289b7-0f2d-4b3b-bba3-807c20059399
2026-02-04 10:25:13,241 - INFO - Verified VN network id 11 for VN f4553ed1-086b-496d-b693-9fee26f12bf5
2026-02-04 10:25:13,242 - INFO - Verifications in API Server for VN ctest-vn-44904731 passed
2026-02-04 10:25:13,242 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f4553ed1-086b-496d-b693-9fee26f12bf5
2026-02-04 10:25:13,251 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/08b289b7-0f2d-4b3b-bba3-807c20059399
2026-02-04 10:25:13,258 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/08b289b7-0f2d-4b3b-bba3-807c20059399
2026-02-04 10:25:13,266 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/6c1fc39b-ac0b-4c56-897e-9fa7b20244b1
2026-02-04 10:25:13,282 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32359958:ctest-vn-44904731', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32359958', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17606047385785157997', 'uuid-lslong': '13156034781683723253'}, 'enable': 'true', 'created': '2026-02-04T10:25:11', 'last-modified': '2026-02-04T10:25:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.956811'}
2026-02-04 10:25:13,288 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-04 10:25:13,288 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44904731 passed
2026-02-04 10:25:13,289 - DEBUG - ====Verifying policy data for ctest-vn-44904731 in API_Server ======
2026-02-04 10:25:13,289 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2026-02-04 10:25:13,298 - DEBUG - Requesting: http://10.0.0.23:8082/domain/2edf6a3b-a264-4d20-81b7-144b6668e103
2026-02-04 10:25:13,309 - DEBUG - Requesting: http://10.0.0.23:8082/project/a15f46f3-5d7f-419d-a626-744d4bb56f21
2026-02-04 10:25:13,379 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f4553ed1-086b-496d-b693-9fee26f12bf5
2026-02-04 10:25:13,388 - DEBUG - ==>Verifying data for policy with id: fbf1b3e3-1d55-4a92-901e-64bb410127b1, fqn: ['default-domain', 'ctest-TestBasicPolicy-32359958', 'ctest-policy-allow-all-00895276']
2026-02-04 10:25:13,388 - INFO - VN ctest-vn-44904731 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-04 10:25:13,388 - DEBUG - Verifying the vn in opserver
2026-02-04 10:25:13,388 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32359958:ctest-vn-44904731 virtual network link through opserver 10.0.0.23
2026-02-04 10:25:13,388 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2026-02-04 10:25:13,696 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2026-02-04 10:25:13,759 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32359958:ctest-vn-44904731', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32359958:ctest-vn-44904731?flat'}
2026-02-04 10:25:13,759 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32359958:ctest-vn-44904731 is found in opserver
2026-02-04 10:25:13,769 - DEBUG - Do not have enough data to verify VN in agent
2026-02-04 10:25:13,773 - DEBUG - VRF ids for VN ctest-vn-44904731: {}
2026-02-04 10:25:13,773 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2026-02-04 10:25:13,778 - DEBUG - Requesting: http://10.0.0.23:8082/domain/2edf6a3b-a264-4d20-81b7-144b6668e103
2026-02-04 10:25:13,791 - DEBUG - Requesting: http://10.0.0.23:8082/project/a15f46f3-5d7f-419d-a626-744d4bb56f21
2026-02-04 10:25:13,862 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/426e8e5b-f550-40da-9e52-3f33fa072d26
2026-02-04 10:25:13,874 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/426e8e5b-f550-40da-9e52-3f33fa072d26
2026-02-04 10:25:13,883 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/a2593fb2-babc-4c92-8d26-cae81433c93f
2026-02-04 10:25:13,889 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/a2593fb2-babc-4c92-8d26-cae81433c93f
2026-02-04 10:25:13,896 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/bc0e1aa3-cbfb-47f8-9f57-e6b4cbd8fb06
2026-02-04 10:25:13,903 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-04 10:25:13,903 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/426e8e5b-f550-40da-9e52-3f33fa072d26
2026-02-04 10:25:13,912 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/a2593fb2-babc-4c92-8d26-cae81433c93f
2026-02-04 10:25:13,924 - INFO - Verified VN network id 12 for VN 426e8e5b-f550-40da-9e52-3f33fa072d26
2026-02-04 10:25:13,924 - INFO - Verifications in API Server for VN ctest-vn-99602201 passed
2026-02-04 10:25:13,924 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/426e8e5b-f550-40da-9e52-3f33fa072d26
2026-02-04 10:25:13,932 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/a2593fb2-babc-4c92-8d26-cae81433c93f
2026-02-04 10:25:13,938 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/a2593fb2-babc-4c92-8d26-cae81433c93f
2026-02-04 10:25:13,943 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/bc0e1aa3-cbfb-47f8-9f57-e6b4cbd8fb06
2026-02-04 10:25:13,954 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32359958:ctest-vn-99602201', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32359958', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4786919979550261466', 'uuid-lslong': '11408250298553543974'}, 'enable': 'true', 'created': '2026-02-04T10:25:11', 'last-modified': '2026-02-04T10:25:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.404505'}
2026-02-04 10:25:13,961 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-04 10:25:13,961 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99602201 passed
2026-02-04 10:25:13,961 - DEBUG - ====Verifying policy data for ctest-vn-99602201 in API_Server ======
2026-02-04 10:25:13,961 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2026-02-04 10:25:13,966 - DEBUG - Requesting: http://10.0.0.23:8082/domain/2edf6a3b-a264-4d20-81b7-144b6668e103
2026-02-04 10:25:13,976 - DEBUG - Requesting: http://10.0.0.23:8082/project/a15f46f3-5d7f-419d-a626-744d4bb56f21
2026-02-04 10:25:14,039 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/426e8e5b-f550-40da-9e52-3f33fa072d26
2026-02-04 10:25:14,049 - DEBUG - ==>Verifying data for policy with id: fbf1b3e3-1d55-4a92-901e-64bb410127b1, fqn: ['default-domain', 'ctest-TestBasicPolicy-32359958', 'ctest-policy-allow-all-00895276']
2026-02-04 10:25:14,049 - INFO - VN ctest-vn-99602201 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-04 10:25:14,049 - DEBUG - Verifying the vn in opserver
2026-02-04 10:25:14,049 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32359958:ctest-vn-99602201 virtual network link through opserver 10.0.0.23
2026-02-04 10:25:14,049 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2026-02-04 10:25:14,059 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32359958:ctest-vn-99602201', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32359958:ctest-vn-99602201?flat'}
2026-02-04 10:25:14,059 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32359958:ctest-vn-99602201 is found in opserver
2026-02-04 10:25:14,068 - DEBUG - Do not have enough data to verify VN in agent
2026-02-04 10:25:14,073 - DEBUG - VRF ids for VN ctest-vn-99602201: {}
2026-02-04 10:25:14,131 - DEBUG - Services list from nova: [