2026-02-25 16:52:35,636 - INFO - Domain Default found not creating
2026-02-25 16:52:35,767 - INFO - Project ctest-TestBasicPolicy-45671183 not found, creating it
2026-02-25 16:52:36,181 - INFO - Created Project:ctest-TestBasicPolicy-45671183, ID : 31968982-f2ba-43f3-b3c2-5ed653149f10
2026-02-25 16:52:37,532 - INFO - ================================================================================
2026-02-25 16:52:37,532 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-25 16:52:37,532 - 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-25 16:52:37,787 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2026-02-25 16:52:37,787 - INFO - Initial checks done. Running the testcase now
2026-02-25 16:52:37,787 - INFO -
2026-02-25 16:52:38,294 - DEBUG - Response for create_network : {'network': {'id': 'd14657df-d5b9-40dc-91a4-12b564864bc7', 'name': 'ctest-vn-65331837', 'tenant_id': '31968982f2ba43f3b3c25ed653149f10', 'project_id': '31968982f2ba43f3b3c25ed653149f10', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45671183', 'ctest-vn-65331837'], 'port_security_enabled': True, 'description': ''}}
2026-02-25 16:52:38,467 - DEBUG - Response for create_subnet : {'subnet': {'id': '880907cc-8c12-415c-a7ea-d37f1f2ab9be', 'name': '', 'tenant_id': '31968982f2ba43f3b3c25ed653149f10', 'network_id': 'd14657df-d5b9-40dc-91a4-12b564864bc7', 'ip_version': 4, 'cidr': '128.254.76.192/26', 'allocation_pools': [{'start': '128.254.76.194', 'end': '128.254.76.254'}], 'gateway_ip': '128.254.76.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '128.254.76.194', 'tags': [], 'project_id': '31968982f2ba43f3b3c25ed653149f10'}}
2026-02-25 16:52:38,481 - INFO - Created VN ctest-vn-65331837
2026-02-25 16:52:38,530 - DEBUG - VN ctest-vn-65331837 UUID is d14657df-d5b9-40dc-91a4-12b564864bc7
2026-02-25 16:52:38,822 - DEBUG - Response for create_network : {'network': {'id': '4fe779e7-9584-4a22-8355-dea2094034cc', 'name': 'ctest-vn-10708483', 'tenant_id': '31968982f2ba43f3b3c25ed653149f10', 'project_id': '31968982f2ba43f3b3c25ed653149f10', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45671183', 'ctest-vn-10708483'], 'port_security_enabled': True, 'description': ''}}
2026-02-25 16:52:38,989 - DEBUG - Response for create_subnet : {'subnet': {'id': '288f6826-1a59-4c4a-bd95-457230a5de75', 'name': '', 'tenant_id': '31968982f2ba43f3b3c25ed653149f10', 'network_id': '4fe779e7-9584-4a22-8355-dea2094034cc', 'ip_version': 4, 'cidr': '135.244.92.128/26', 'allocation_pools': [{'start': '135.244.92.130', 'end': '135.244.92.190'}], 'gateway_ip': '135.244.92.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.244.92.130', 'tags': [], 'project_id': '31968982f2ba43f3b3c25ed653149f10'}}
2026-02-25 16:52:39,004 - INFO - Created VN ctest-vn-10708483
2026-02-25 16:52:39,054 - DEBUG - VN ctest-vn-10708483 UUID is 4fe779e7-9584-4a22-8355-dea2094034cc
2026-02-25 16:52:39,194 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-45671183:ctest-vn-65331837, 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-45671183:ctest-vn-10708483, 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-25 16:52:39,489 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd14657df-d5b9-40dc-91a4-12b564864bc7', 'name': 'ctest-vn-65331837', 'tenant_id': '31968982f2ba43f3b3c25ed653149f10', 'project_id': '31968982f2ba43f3b3c25ed653149f10', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['880907cc-8c12-415c-a7ea-d37f1f2ab9be'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45671183', 'ctest-vn-65331837'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45671183', 'ctest-policy-allow-all-79484632']], 'subnet_ipam': [{'subnet_cidr': '128.254.76.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-25 16:52:39,718 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4fe779e7-9584-4a22-8355-dea2094034cc', 'name': 'ctest-vn-10708483', 'tenant_id': '31968982f2ba43f3b3c25ed653149f10', 'project_id': '31968982f2ba43f3b3c25ed653149f10', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['288f6826-1a59-4c4a-bd95-457230a5de75'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45671183', 'ctest-vn-10708483'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45671183', 'ctest-policy-allow-all-79484632']], 'subnet_ipam': [{'subnet_cidr': '135.244.92.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-25 16:52:39,866 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-25 16:52:40,180 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-25 16:52:40,212 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9dfdb332-45fa-4d14-8a62-697b714a7198
2026-02-25 16:52:40,223 - DEBUG - Requesting: http://10.0.0.22:8082/project/31968982-f2ba-43f3-b3c2-5ed653149f10
2026-02-25 16:52:40,293 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d14657df-d5b9-40dc-91a4-12b564864bc7
2026-02-25 16:52:40,302 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d14657df-d5b9-40dc-91a4-12b564864bc7
2026-02-25 16:52:40,310 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dc9296fc-f7e3-4f11-98cc-b69d8e9e14a1
2026-02-25 16:52:40,315 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dc9296fc-f7e3-4f11-98cc-b69d8e9e14a1
2026-02-25 16:52:40,321 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/ecc8121c-2e3d-4116-9b91-27fce8624f7d
2026-02-25 16:52:40,325 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-25 16:52:40,325 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d14657df-d5b9-40dc-91a4-12b564864bc7
2026-02-25 16:52:40,333 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dc9296fc-f7e3-4f11-98cc-b69d8e9e14a1
2026-02-25 16:52:40,346 - INFO - Verified VN network id 11 for VN d14657df-d5b9-40dc-91a4-12b564864bc7
2026-02-25 16:52:40,346 - INFO - Verifications in API Server for VN ctest-vn-65331837 passed
2026-02-25 16:52:40,347 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d14657df-d5b9-40dc-91a4-12b564864bc7
2026-02-25 16:52:40,353 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dc9296fc-f7e3-4f11-98cc-b69d8e9e14a1
2026-02-25 16:52:40,358 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dc9296fc-f7e3-4f11-98cc-b69d8e9e14a1
2026-02-25 16:52:40,364 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/ecc8121c-2e3d-4116-9b91-27fce8624f7d
2026-02-25 16:52:40,374 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45671183:ctest-vn-65331837', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45671183', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15079837021171695836', 'uuid-lslong': '10494533601965001671'}, 'enable': 'true', 'created': '2026-02-25T16:52:38', 'last-modified': '2026-02-25T16:52:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.911022'}
2026-02-25 16:52:40,380 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-25 16:52:40,380 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65331837 passed
2026-02-25 16:52:40,381 - DEBUG - ====Verifying policy data for ctest-vn-65331837 in API_Server ======
2026-02-25 16:52:40,381 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-25 16:52:40,386 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9dfdb332-45fa-4d14-8a62-697b714a7198
2026-02-25 16:52:40,395 - DEBUG - Requesting: http://10.0.0.22:8082/project/31968982-f2ba-43f3-b3c2-5ed653149f10
2026-02-25 16:52:40,463 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d14657df-d5b9-40dc-91a4-12b564864bc7
2026-02-25 16:52:40,472 - DEBUG - ==>Verifying data for policy with id: 62cf9362-f6ce-453a-ac0f-da08f06b42cf, fqn: ['default-domain', 'ctest-TestBasicPolicy-45671183', 'ctest-policy-allow-all-79484632']
2026-02-25 16:52:40,472 - INFO - VN ctest-vn-65331837 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-25 16:52:40,472 - DEBUG - Verifying the vn in opserver
2026-02-25 16:52:40,472 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45671183:ctest-vn-65331837 virtual network link through opserver 10.0.0.22
2026-02-25 16:52:40,472 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-02-25 16:52:40,769 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-02-25 16:52:40,827 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45671183:ctest-vn-65331837', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45671183:ctest-vn-65331837?flat'}
2026-02-25 16:52:40,827 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45671183:ctest-vn-65331837 is found in opserver
2026-02-25 16:52:40,836 - DEBUG - Do not have enough data to verify VN in agent
2026-02-25 16:52:40,840 - DEBUG - VRF ids for VN ctest-vn-65331837: {}
2026-02-25 16:52:40,840 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-25 16:52:40,845 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9dfdb332-45fa-4d14-8a62-697b714a7198
2026-02-25 16:52:40,854 - DEBUG - Requesting: http://10.0.0.22:8082/project/31968982-f2ba-43f3-b3c2-5ed653149f10
2026-02-25 16:52:40,922 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4fe779e7-9584-4a22-8355-dea2094034cc
2026-02-25 16:52:40,934 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4fe779e7-9584-4a22-8355-dea2094034cc
2026-02-25 16:52:40,942 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/61e69a47-dd43-447a-957f-1fdf8a012d84
2026-02-25 16:52:40,948 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/61e69a47-dd43-447a-957f-1fdf8a012d84
2026-02-25 16:52:40,953 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/be5e630b-bfdc-4d67-ae16-1f47e5f80517
2026-02-25 16:52:40,959 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-25 16:52:40,959 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4fe779e7-9584-4a22-8355-dea2094034cc
2026-02-25 16:52:40,967 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/61e69a47-dd43-447a-957f-1fdf8a012d84
2026-02-25 16:52:40,978 - INFO - Verified VN network id 12 for VN 4fe779e7-9584-4a22-8355-dea2094034cc
2026-02-25 16:52:40,978 - INFO - Verifications in API Server for VN ctest-vn-10708483 passed
2026-02-25 16:52:40,978 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4fe779e7-9584-4a22-8355-dea2094034cc
2026-02-25 16:52:40,986 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/61e69a47-dd43-447a-957f-1fdf8a012d84
2026-02-25 16:52:40,991 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/61e69a47-dd43-447a-957f-1fdf8a012d84
2026-02-25 16:52:40,996 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/be5e630b-bfdc-4d67-ae16-1f47e5f80517
2026-02-25 16:52:41,005 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45671183:ctest-vn-10708483', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45671183', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5757704684169349666', 'uuid-lslong': '9463714979510236364'}, 'enable': 'true', 'created': '2026-02-25T16:52:38', 'last-modified': '2026-02-25T16:52:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.307792'}
2026-02-25 16:52:41,010 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-25 16:52:41,010 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10708483 passed
2026-02-25 16:52:41,010 - DEBUG - ====Verifying policy data for ctest-vn-10708483 in API_Server ======
2026-02-25 16:52:41,010 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-25 16:52:41,016 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9dfdb332-45fa-4d14-8a62-697b714a7198
2026-02-25 16:52:41,024 - DEBUG - Requesting: http://10.0.0.22:8082/project/31968982-f2ba-43f3-b3c2-5ed653149f10
2026-02-25 16:52:41,091 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4fe779e7-9584-4a22-8355-dea2094034cc
2026-02-25 16:52:41,098 - DEBUG - ==>Verifying data for policy with id: 62cf9362-f6ce-453a-ac0f-da08f06b42cf, fqn: ['default-domain', 'ctest-TestBasicPolicy-45671183', 'ctest-policy-allow-all-79484632']
2026-02-25 16:52:41,099 - INFO - VN ctest-vn-10708483 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-25 16:52:41,099 - DEBUG - Verifying the vn in opserver
2026-02-25 16:52:41,099 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45671183:ctest-vn-10708483 virtual network link through opserver 10.0.0.22
2026-02-25 16:52:41,099 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-02-25 16:52:41,107 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45671183:ctest-vn-10708483', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45671183:ctest-vn-10708483?flat'}
2026-02-25 16:52:41,107 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45671183:ctest-vn-10708483 is found in opserver
2026-02-25 16:52:41,115 - DEBUG - Do not have enough data to verify VN in agent
2026-02-25 16:52:41,119 - DEBUG - VRF ids for VN ctest-vn-10708483: {}
2026-02-25 16:52:41,168 - DEBUG - Services list from nova: [