2026-05-28 01:53:02,110 - INFO - Reading existing Domain with UUID 1d5ccdab-3b8a-46cd-977b-65a3c3aa09af
2026-05-28 01:53:02,121 - INFO - Using existing domain ['admin_domain'](1d5ccdab-3b8a-46cd-977b-65a3c3aa09af)
2026-05-28 01:53:02,311 - INFO - Project ctest-TestBasicPolicy-47848042 not found, creating it
2026-05-28 01:53:02,822 - INFO - Created Project:ctest-TestBasicPolicy-47848042, ID : f33922bb-f412-459f-99d9-275e6eca7150
2026-05-28 01:53:04,534 - INFO - ================================================================================
2026-05-28 01:53:04,535 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-28 01:53:04,535 - 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-28 01:53:04,915 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.0.0.23': '0'}} with
2026-05-28 01:53:04,916 - INFO - Initial checks done. Running the testcase now
2026-05-28 01:53:04,916 - INFO -
2026-05-28 01:53:05,748 - DEBUG - Response for create_network : {'network': {'id': 'a69b3cf8-0f89-4cd3-bf1a-9b980c0ad0d3', 'name': 'ctest-vn-13191873', 'tenant_id': 'f33922bbf412459f99d9275e6eca7150', 'project_id': 'f33922bbf412459f99d9275e6eca7150', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-47848042', 'ctest-vn-13191873'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2026-05-28 01:53:06,007 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c45b4e99-5413-4210-a8ca-b9bd19b25f54', 'name': '', 'tenant_id': 'f33922bbf412459f99d9275e6eca7150', 'network_id': 'a69b3cf8-0f89-4cd3-bf1a-9b980c0ad0d3', 'ip_version': 4, 'cidr': '70.204.68.0/26', 'allocation_pools': [{'start': '70.204.68.2', 'end': '70.204.68.62'}], 'gateway_ip': '70.204.68.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-05-28T01:53:05.886671', 'updated_at': '2026-05-28T01:53:05.886671', 'dns_server_address': '70.204.68.2', 'tags': [], 'project_id': 'f33922bbf412459f99d9275e6eca7150'}}
2026-05-28 01:53:06,072 - INFO - Created VN ctest-vn-13191873
2026-05-28 01:53:06,130 - DEBUG - VN ctest-vn-13191873 UUID is a69b3cf8-0f89-4cd3-bf1a-9b980c0ad0d3
2026-05-28 01:53:06,630 - DEBUG - Response for create_network : {'network': {'id': '1194c03e-0f03-49fb-a50f-ddaec7ff4f66', 'name': 'ctest-vn-10101354', 'tenant_id': 'f33922bbf412459f99d9275e6eca7150', 'project_id': 'f33922bbf412459f99d9275e6eca7150', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-47848042', 'ctest-vn-10101354'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2026-05-28 01:53:06,866 - DEBUG - Response for create_subnet : {'subnet': {'id': '119ac6b4-9bd9-40b5-ab49-36e38da37c3d', 'name': '', 'tenant_id': 'f33922bbf412459f99d9275e6eca7150', 'network_id': '1194c03e-0f03-49fb-a50f-ddaec7ff4f66', 'ip_version': 4, 'cidr': '18.231.227.192/26', 'allocation_pools': [{'start': '18.231.227.194', 'end': '18.231.227.254'}], 'gateway_ip': '18.231.227.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-05-28T01:53:06.757052', 'updated_at': '2026-05-28T01:53:06.757052', 'dns_server_address': '18.231.227.194', 'tags': [], 'project_id': 'f33922bbf412459f99d9275e6eca7150'}}
2026-05-28 01:53:06,932 - INFO - Created VN ctest-vn-10101354
2026-05-28 01:53:06,986 - DEBUG - VN ctest-vn-10101354 UUID is 1194c03e-0f03-49fb-a50f-ddaec7ff4f66
2026-05-28 01:53:07,193 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-47848042:ctest-vn-13191873, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-47848042:ctest-vn-10101354, 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-28 01:53:07,601 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a69b3cf8-0f89-4cd3-bf1a-9b980c0ad0d3', 'name': 'ctest-vn-13191873', 'tenant_id': 'f33922bbf412459f99d9275e6eca7150', 'project_id': 'f33922bbf412459f99d9275e6eca7150', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c45b4e99-5413-4210-a8ca-b9bd19b25f54'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-47848042', 'ctest-vn-13191873'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-47848042', 'ctest-policy-allow-all-55710448']], 'subnet_ipam': [{'subnet_cidr': '70.204.68.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-05-28T01:53:05.659203', 'updated_at': '2026-05-28T01:53:05.905216'}}
2026-05-28 01:53:07,950 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1194c03e-0f03-49fb-a50f-ddaec7ff4f66', 'name': 'ctest-vn-10101354', 'tenant_id': 'f33922bbf412459f99d9275e6eca7150', 'project_id': 'f33922bbf412459f99d9275e6eca7150', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['119ac6b4-9bd9-40b5-ab49-36e38da37c3d'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-47848042', 'ctest-vn-10101354'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-47848042', 'ctest-policy-allow-all-55710448']], 'subnet_ipam': [{'subnet_cidr': '18.231.227.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-05-28T01:53:06.552202', 'updated_at': '2026-05-28T01:53:06.771746'}}
2026-05-28 01:53:08,130 - DEBUG - Requesting: https://10.0.0.23:8082/domains
2026-05-28 01:53:08,484 - DEBUG - Requesting: https://10.0.0.23:8082/domains
2026-05-28 01:53:08,566 - DEBUG - Requesting: https://10.0.0.23:8082/domain/1d5ccdab-3b8a-46cd-977b-65a3c3aa09af
2026-05-28 01:53:08,623 - DEBUG - Requesting: https://10.0.0.23:8082/project/f33922bb-f412-459f-99d9-275e6eca7150
2026-05-28 01:53:08,699 - DEBUG - Requesting: https://10.0.0.23:8082/virtual-network/a69b3cf8-0f89-4cd3-bf1a-9b980c0ad0d3
2026-05-28 01:53:08,760 - DEBUG - Requesting: https://10.0.0.23:8082/virtual-network/a69b3cf8-0f89-4cd3-bf1a-9b980c0ad0d3
2026-05-28 01:53:08,820 - DEBUG - Requesting: https://10.0.0.23:8082/routing-instance/45aba36f-d188-497e-8b89-2c9f49bce941
2026-05-28 01:53:08,876 - DEBUG - Requesting: https://10.0.0.23:8082/routing-instance/45aba36f-d188-497e-8b89-2c9f49bce941
2026-05-28 01:53:08,931 - DEBUG - Requesting: https://10.0.0.23:8082/route-target/a6456eaf-a92b-41d0-b850-bb8d0bc65d69
2026-05-28 01:53:08,987 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-28 01:53:08,987 - DEBUG - Requesting: https://10.0.0.23:8082/virtual-network/a69b3cf8-0f89-4cd3-bf1a-9b980c0ad0d3
2026-05-28 01:53:09,044 - DEBUG - Requesting: https://10.0.0.23:8082/routing-instance/45aba36f-d188-497e-8b89-2c9f49bce941
2026-05-28 01:53:09,113 - INFO - Verified VN network id 11 for VN a69b3cf8-0f89-4cd3-bf1a-9b980c0ad0d3
2026-05-28 01:53:09,113 - INFO - Verifications in API Server for VN ctest-vn-13191873 passed
2026-05-28 01:53:09,113 - DEBUG - Requesting: https://10.0.0.23:8082/virtual-network/a69b3cf8-0f89-4cd3-bf1a-9b980c0ad0d3
2026-05-28 01:53:09,167 - DEBUG - Requesting: https://10.0.0.23:8082/routing-instance/45aba36f-d188-497e-8b89-2c9f49bce941
2026-05-28 01:53:09,219 - DEBUG - Requesting: https://10.0.0.23:8082/routing-instance/45aba36f-d188-497e-8b89-2c9f49bce941
2026-05-28 01:53:09,271 - DEBUG - Requesting: https://10.0.0.23:8082/route-target/a6456eaf-a92b-41d0-b850-bb8d0bc65d69
2026-05-28 01:53:09,379 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-47848042:ctest-vn-13191873', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47848042', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12005256267796401363', 'uuid-lslong': '13770489887978082515'}, 'enable': 'true', 'created': '2026-05-28T01:53:05', 'last-modified': '2026-05-28T01:53:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.805305'}
2026-05-28 01:53:09,432 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-28 01:53:09,432 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13191873 passed
2026-05-28 01:53:09,432 - DEBUG - ====Verifying policy data for ctest-vn-13191873 in API_Server ======
2026-05-28 01:53:09,432 - DEBUG - Requesting: https://10.0.0.23:8082/domains
2026-05-28 01:53:09,482 - DEBUG - Requesting: https://10.0.0.23:8082/domain/1d5ccdab-3b8a-46cd-977b-65a3c3aa09af
2026-05-28 01:53:09,543 - DEBUG - Requesting: https://10.0.0.23:8082/project/f33922bb-f412-459f-99d9-275e6eca7150
2026-05-28 01:53:09,632 - DEBUG - Requesting: https://10.0.0.23:8082/virtual-network/a69b3cf8-0f89-4cd3-bf1a-9b980c0ad0d3
2026-05-28 01:53:09,692 - DEBUG - ==>Verifying data for policy with id: 29e3594e-172c-407a-8d11-cac7689e4ba6, fqn: ['admin_domain', 'ctest-TestBasicPolicy-47848042', 'ctest-policy-allow-all-55710448']
2026-05-28 01:53:09,693 - INFO - VN ctest-vn-13191873 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-28 01:53:09,693 - DEBUG - Verifying the vn in opserver
2026-05-28 01:53:09,693 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-47848042:ctest-vn-13191873 virtual network link through opserver 10.0.0.23
2026-05-28 01:53:09,693 - DEBUG - Requesting: https://10.0.0.23:8081/analytics/uves/virtual-networks
2026-05-28 01:53:10,039 - DEBUG - Requesting: https://10.0.0.23:8081/analytics/uves/virtual-networks
2026-05-28 01:53:10,150 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-47848042:ctest-vn-13191873', 'href': 'https://10.0.0.23:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-47848042:ctest-vn-13191873?flat'}
2026-05-28 01:53:10,151 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-47848042:ctest-vn-13191873 is found in opserver
2026-05-28 01:53:10,246 - DEBUG - Do not have enough data to verify VN in agent
2026-05-28 01:53:10,296 - DEBUG - VRF ids for VN ctest-vn-13191873: {}
2026-05-28 01:53:10,296 - DEBUG - Requesting: https://10.0.0.23:8082/domains
2026-05-28 01:53:10,350 - DEBUG - Requesting: https://10.0.0.23:8082/domain/1d5ccdab-3b8a-46cd-977b-65a3c3aa09af
2026-05-28 01:53:10,406 - DEBUG - Requesting: https://10.0.0.23:8082/project/f33922bb-f412-459f-99d9-275e6eca7150
2026-05-28 01:53:10,483 - DEBUG - Requesting: https://10.0.0.23:8082/virtual-network/1194c03e-0f03-49fb-a50f-ddaec7ff4f66
2026-05-28 01:53:10,543 - DEBUG - Requesting: https://10.0.0.23:8082/virtual-network/1194c03e-0f03-49fb-a50f-ddaec7ff4f66
2026-05-28 01:53:10,599 - DEBUG - Requesting: https://10.0.0.23:8082/routing-instance/599202e8-3e20-482a-add8-5ffc1a93f21f
2026-05-28 01:53:10,655 - DEBUG - Requesting: https://10.0.0.23:8082/routing-instance/599202e8-3e20-482a-add8-5ffc1a93f21f
2026-05-28 01:53:10,706 - DEBUG - Requesting: https://10.0.0.23:8082/route-target/b8550c4f-839f-4206-a8d0-3fe28c4cf4d4
2026-05-28 01:53:10,763 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-28 01:53:10,763 - DEBUG - Requesting: https://10.0.0.23:8082/virtual-network/1194c03e-0f03-49fb-a50f-ddaec7ff4f66
2026-05-28 01:53:10,822 - DEBUG - Requesting: https://10.0.0.23:8082/routing-instance/599202e8-3e20-482a-add8-5ffc1a93f21f
2026-05-28 01:53:10,883 - INFO - Verified VN network id 12 for VN 1194c03e-0f03-49fb-a50f-ddaec7ff4f66
2026-05-28 01:53:10,883 - INFO - Verifications in API Server for VN ctest-vn-10101354 passed
2026-05-28 01:53:10,883 - DEBUG - Requesting: https://10.0.0.23:8082/virtual-network/1194c03e-0f03-49fb-a50f-ddaec7ff4f66
2026-05-28 01:53:10,943 - DEBUG - Requesting: https://10.0.0.23:8082/routing-instance/599202e8-3e20-482a-add8-5ffc1a93f21f
2026-05-28 01:53:10,995 - DEBUG - Requesting: https://10.0.0.23:8082/routing-instance/599202e8-3e20-482a-add8-5ffc1a93f21f
2026-05-28 01:53:11,051 - DEBUG - Requesting: https://10.0.0.23:8082/route-target/b8550c4f-839f-4206-a8d0-3fe28c4cf4d4
2026-05-28 01:53:11,151 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-47848042:ctest-vn-10101354', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47848042', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1266848767970331131', 'uuid-lslong': '11893968883658215270'}, 'enable': 'true', 'created': '2026-05-28T01:53:06', 'last-modified': '2026-05-28T01:53:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.225489'}
2026-05-28 01:53:11,199 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-28 01:53:11,199 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10101354 passed
2026-05-28 01:53:11,199 - DEBUG - ====Verifying policy data for ctest-vn-10101354 in API_Server ======
2026-05-28 01:53:11,200 - DEBUG - Requesting: https://10.0.0.23:8082/domains
2026-05-28 01:53:11,250 - DEBUG - Requesting: https://10.0.0.23:8082/domain/1d5ccdab-3b8a-46cd-977b-65a3c3aa09af
2026-05-28 01:53:11,307 - DEBUG - Requesting: https://10.0.0.23:8082/project/f33922bb-f412-459f-99d9-275e6eca7150
2026-05-28 01:53:11,387 - DEBUG - Requesting: https://10.0.0.23:8082/virtual-network/1194c03e-0f03-49fb-a50f-ddaec7ff4f66
2026-05-28 01:53:11,444 - DEBUG - ==>Verifying data for policy with id: 29e3594e-172c-407a-8d11-cac7689e4ba6, fqn: ['admin_domain', 'ctest-TestBasicPolicy-47848042', 'ctest-policy-allow-all-55710448']
2026-05-28 01:53:11,444 - INFO - VN ctest-vn-10101354 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-28 01:53:11,444 - DEBUG - Verifying the vn in opserver
2026-05-28 01:53:11,444 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-47848042:ctest-vn-10101354 virtual network link through opserver 10.0.0.23
2026-05-28 01:53:11,444 - DEBUG - Requesting: https://10.0.0.23:8081/analytics/uves/virtual-networks
2026-05-28 01:53:11,502 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-47848042:ctest-vn-10101354', 'href': 'https://10.0.0.23:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-47848042:ctest-vn-10101354?flat'}
2026-05-28 01:53:11,503 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-47848042:ctest-vn-10101354 is found in opserver
2026-05-28 01:53:11,602 - DEBUG - Do not have enough data to verify VN in agent
2026-05-28 01:53:11,650 - DEBUG - VRF ids for VN ctest-vn-10101354: {}
2026-05-28 01:53:11,717 - DEBUG - Services list from nova: [