2026-01-23 13:11:22,924 - INFO - Domain Default found not creating
2026-01-23 13:11:23,083 - INFO - Project ctest-TestBasicPolicy-03291382 not found, creating it
2026-01-23 13:11:23,524 - INFO - Created Project:ctest-TestBasicPolicy-03291382, ID : f51ce455-78a6-429d-b06a-2aa77d533760
2026-01-23 13:11:24,968 - INFO - ================================================================================
2026-01-23 13:11:24,968 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-23 13:11:24,969 - 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-01-23 13:11:25,229 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2026-01-23 13:11:25,229 - INFO - Initial checks done. Running the testcase now
2026-01-23 13:11:25,229 - INFO -
2026-01-23 13:11:25,772 - DEBUG - Response for create_network : {'network': {'id': 'bed598ba-deec-41ef-ad46-25cb078ddb33', 'name': 'ctest-vn-57968062', 'tenant_id': 'f51ce45578a6429db06a2aa77d533760', 'project_id': 'f51ce45578a6429db06a2aa77d533760', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03291382', 'ctest-vn-57968062'], 'port_security_enabled': True, 'description': ''}}
2026-01-23 13:11:25,940 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cf52e9d9-3678-4e5b-9438-b1b55ffdb797', 'name': '', 'tenant_id': 'f51ce45578a6429db06a2aa77d533760', 'network_id': 'bed598ba-deec-41ef-ad46-25cb078ddb33', 'ip_version': 4, 'cidr': '218.25.106.128/26', 'allocation_pools': [{'start': '218.25.106.130', 'end': '218.25.106.190'}], 'gateway_ip': '218.25.106.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.25.106.130', 'tags': [], 'project_id': 'f51ce45578a6429db06a2aa77d533760'}}
2026-01-23 13:11:25,958 - INFO - Created VN ctest-vn-57968062
2026-01-23 13:11:26,011 - DEBUG - VN ctest-vn-57968062 UUID is bed598ba-deec-41ef-ad46-25cb078ddb33
2026-01-23 13:11:26,324 - DEBUG - Response for create_network : {'network': {'id': '0282307c-d33d-49ab-a670-b1de26a661d4', 'name': 'ctest-vn-70800340', 'tenant_id': 'f51ce45578a6429db06a2aa77d533760', 'project_id': 'f51ce45578a6429db06a2aa77d533760', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03291382', 'ctest-vn-70800340'], 'port_security_enabled': True, 'description': ''}}
2026-01-23 13:11:26,529 - DEBUG - Response for create_subnet : {'subnet': {'id': '922e2862-e96e-494d-9835-07395af816b5', 'name': '', 'tenant_id': 'f51ce45578a6429db06a2aa77d533760', 'network_id': '0282307c-d33d-49ab-a670-b1de26a661d4', 'ip_version': 4, 'cidr': '65.98.200.64/26', 'allocation_pools': [{'start': '65.98.200.66', 'end': '65.98.200.126'}], 'gateway_ip': '65.98.200.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.98.200.66', 'tags': [], 'project_id': 'f51ce45578a6429db06a2aa77d533760'}}
2026-01-23 13:11:26,544 - INFO - Created VN ctest-vn-70800340
2026-01-23 13:11:26,595 - DEBUG - VN ctest-vn-70800340 UUID is 0282307c-d33d-49ab-a670-b1de26a661d4
2026-01-23 13:11:26,739 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-03291382:ctest-vn-57968062, 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-03291382:ctest-vn-70800340, 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-01-23 13:11:27,031 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bed598ba-deec-41ef-ad46-25cb078ddb33', 'name': 'ctest-vn-57968062', 'tenant_id': 'f51ce45578a6429db06a2aa77d533760', 'project_id': 'f51ce45578a6429db06a2aa77d533760', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cf52e9d9-3678-4e5b-9438-b1b55ffdb797'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03291382', 'ctest-vn-57968062'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03291382', 'ctest-policy-allow-all-87503968']], 'subnet_ipam': [{'subnet_cidr': '218.25.106.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-23 13:11:27,258 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0282307c-d33d-49ab-a670-b1de26a661d4', 'name': 'ctest-vn-70800340', 'tenant_id': 'f51ce45578a6429db06a2aa77d533760', 'project_id': 'f51ce45578a6429db06a2aa77d533760', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['922e2862-e96e-494d-9835-07395af816b5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03291382', 'ctest-vn-70800340'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03291382', 'ctest-policy-allow-all-87503968']], 'subnet_ipam': [{'subnet_cidr': '65.98.200.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-23 13:11:27,411 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-23 13:11:27,728 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-23 13:11:27,766 - DEBUG - Requesting: http://10.0.0.50:8082/domain/521e5d7c-a5cc-4328-a2e3-7fab4c7446f0
2026-01-23 13:11:27,778 - DEBUG - Requesting: http://10.0.0.50:8082/project/f51ce455-78a6-429d-b06a-2aa77d533760
2026-01-23 13:11:27,856 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bed598ba-deec-41ef-ad46-25cb078ddb33
2026-01-23 13:11:27,868 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bed598ba-deec-41ef-ad46-25cb078ddb33
2026-01-23 13:11:27,877 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/add25669-680d-49bc-92b2-55aba680fd13
2026-01-23 13:11:27,884 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/add25669-680d-49bc-92b2-55aba680fd13
2026-01-23 13:11:27,891 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/57d57fa8-ba52-42cc-98bc-c668ddc53a09
2026-01-23 13:11:27,897 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-23 13:11:27,897 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bed598ba-deec-41ef-ad46-25cb078ddb33
2026-01-23 13:11:27,907 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/add25669-680d-49bc-92b2-55aba680fd13
2026-01-23 13:11:27,920 - INFO - Verified VN network id 11 for VN bed598ba-deec-41ef-ad46-25cb078ddb33
2026-01-23 13:11:27,920 - INFO - Verifications in API Server for VN ctest-vn-57968062 passed
2026-01-23 13:11:27,920 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bed598ba-deec-41ef-ad46-25cb078ddb33
2026-01-23 13:11:27,928 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/add25669-680d-49bc-92b2-55aba680fd13
2026-01-23 13:11:27,935 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/add25669-680d-49bc-92b2-55aba680fd13
2026-01-23 13:11:27,943 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/57d57fa8-ba52-42cc-98bc-c668ddc53a09
2026-01-23 13:11:27,956 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03291382:ctest-vn-57968062', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03291382', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13751064965617041903', 'uuid-lslong': '12485708570866604851'}, 'enable': 'true', 'created': '2026-01-23T13:11:25', 'last-modified': '2026-01-23T13:11:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.944767'}
2026-01-23 13:11:27,963 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-23 13:11:27,963 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57968062 passed
2026-01-23 13:11:27,964 - DEBUG - ====Verifying policy data for ctest-vn-57968062 in API_Server ======
2026-01-23 13:11:27,964 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-23 13:11:27,968 - DEBUG - Requesting: http://10.0.0.50:8082/domain/521e5d7c-a5cc-4328-a2e3-7fab4c7446f0
2026-01-23 13:11:27,978 - DEBUG - Requesting: http://10.0.0.50:8082/project/f51ce455-78a6-429d-b06a-2aa77d533760
2026-01-23 13:11:28,048 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bed598ba-deec-41ef-ad46-25cb078ddb33
2026-01-23 13:11:28,056 - DEBUG - ==>Verifying data for policy with id: d5a9d90d-2cc5-4037-a839-4299657b14e6, fqn: ['default-domain', 'ctest-TestBasicPolicy-03291382', 'ctest-policy-allow-all-87503968']
2026-01-23 13:11:28,056 - INFO - VN ctest-vn-57968062 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-23 13:11:28,056 - DEBUG - Verifying the vn in opserver
2026-01-23 13:11:28,056 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03291382:ctest-vn-57968062 virtual network link through opserver 10.0.0.50
2026-01-23 13:11:28,056 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-23 13:11:28,345 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-23 13:11:28,412 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03291382:ctest-vn-57968062', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03291382:ctest-vn-57968062?flat'}
2026-01-23 13:11:28,412 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03291382:ctest-vn-57968062 is found in opserver
2026-01-23 13:11:28,420 - DEBUG - Do not have enough data to verify VN in agent
2026-01-23 13:11:28,425 - DEBUG - VRF ids for VN ctest-vn-57968062: {}
2026-01-23 13:11:28,425 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-23 13:11:28,430 - DEBUG - Requesting: http://10.0.0.50:8082/domain/521e5d7c-a5cc-4328-a2e3-7fab4c7446f0
2026-01-23 13:11:28,443 - DEBUG - Requesting: http://10.0.0.50:8082/project/f51ce455-78a6-429d-b06a-2aa77d533760
2026-01-23 13:11:28,514 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0282307c-d33d-49ab-a670-b1de26a661d4
2026-01-23 13:11:28,526 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0282307c-d33d-49ab-a670-b1de26a661d4
2026-01-23 13:11:28,534 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/757f830d-8872-4f83-aa40-ec208dedad19
2026-01-23 13:11:28,540 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/757f830d-8872-4f83-aa40-ec208dedad19
2026-01-23 13:11:28,546 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/78797a1d-d062-4d52-a3fc-1edba6f75a2c
2026-01-23 13:11:28,553 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-23 13:11:28,553 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0282307c-d33d-49ab-a670-b1de26a661d4
2026-01-23 13:11:28,561 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/757f830d-8872-4f83-aa40-ec208dedad19
2026-01-23 13:11:28,573 - INFO - Verified VN network id 12 for VN 0282307c-d33d-49ab-a670-b1de26a661d4
2026-01-23 13:11:28,573 - INFO - Verifications in API Server for VN ctest-vn-70800340 passed
2026-01-23 13:11:28,573 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0282307c-d33d-49ab-a670-b1de26a661d4
2026-01-23 13:11:28,581 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/757f830d-8872-4f83-aa40-ec208dedad19
2026-01-23 13:11:28,586 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/757f830d-8872-4f83-aa40-ec208dedad19
2026-01-23 13:11:28,592 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/78797a1d-d062-4d52-a3fc-1edba6f75a2c
2026-01-23 13:11:28,602 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03291382:ctest-vn-70800340', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03291382', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '180760247726328235', 'uuid-lslong': '11993281375376925140'}, 'enable': 'true', 'created': '2026-01-23T13:11:26', 'last-modified': '2026-01-23T13:11:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.362369'}
2026-01-23 13:11:28,607 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-23 13:11:28,607 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70800340 passed
2026-01-23 13:11:28,608 - DEBUG - ====Verifying policy data for ctest-vn-70800340 in API_Server ======
2026-01-23 13:11:28,608 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-23 13:11:28,613 - DEBUG - Requesting: http://10.0.0.50:8082/domain/521e5d7c-a5cc-4328-a2e3-7fab4c7446f0
2026-01-23 13:11:28,624 - DEBUG - Requesting: http://10.0.0.50:8082/project/f51ce455-78a6-429d-b06a-2aa77d533760
2026-01-23 13:11:28,693 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0282307c-d33d-49ab-a670-b1de26a661d4
2026-01-23 13:11:28,701 - DEBUG - ==>Verifying data for policy with id: d5a9d90d-2cc5-4037-a839-4299657b14e6, fqn: ['default-domain', 'ctest-TestBasicPolicy-03291382', 'ctest-policy-allow-all-87503968']
2026-01-23 13:11:28,701 - INFO - VN ctest-vn-70800340 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-23 13:11:28,701 - DEBUG - Verifying the vn in opserver
2026-01-23 13:11:28,701 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03291382:ctest-vn-70800340 virtual network link through opserver 10.0.0.50
2026-01-23 13:11:28,701 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-23 13:11:28,710 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03291382:ctest-vn-70800340', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03291382:ctest-vn-70800340?flat'}
2026-01-23 13:11:28,710 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03291382:ctest-vn-70800340 is found in opserver
2026-01-23 13:11:28,719 - DEBUG - Do not have enough data to verify VN in agent
2026-01-23 13:11:28,723 - DEBUG - VRF ids for VN ctest-vn-70800340: {}
2026-01-23 13:11:28,775 - DEBUG - Services list from nova: [