2026-04-20 12:10:32,057 - INFO - Domain Default found not creating
2026-04-20 12:10:32,254 - INFO - Project ctest-TestBasicPolicy-69293751 not found, creating it
2026-04-20 12:10:32,747 - INFO - Created Project:ctest-TestBasicPolicy-69293751, ID : b9d8f331-d1e2-4804-b2eb-5f278bb8411f
2026-04-20 12:10:34,348 - INFO - ================================================================================
2026-04-20 12:10:34,348 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-20 12:10:34,348 - 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-04-20 12:10:34,604 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-04-20 12:10:34,604 - INFO - Initial checks done. Running the testcase now
2026-04-20 12:10:34,604 - INFO -
2026-04-20 12:10:35,215 - DEBUG - Response for create_network : {'network': {'id': '12b5f807-c680-4d75-9298-4ed61a5af6b6', 'name': 'ctest-vn-64227756', 'tenant_id': 'b9d8f331d1e24804b2eb5f278bb8411f', 'project_id': 'b9d8f331d1e24804b2eb5f278bb8411f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69293751', 'ctest-vn-64227756'], 'port_security_enabled': True, 'description': ''}}
2026-04-20 12:10:35,388 - DEBUG - Response for create_subnet : {'subnet': {'id': '1bc8d5fa-a37f-4354-b1c8-b60ba39b47d9', 'name': '', 'tenant_id': 'b9d8f331d1e24804b2eb5f278bb8411f', 'network_id': '12b5f807-c680-4d75-9298-4ed61a5af6b6', 'ip_version': 4, 'cidr': '103.83.80.0/26', 'allocation_pools': [{'start': '103.83.80.2', 'end': '103.83.80.62'}], 'gateway_ip': '103.83.80.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '103.83.80.2', 'tags': [], 'project_id': 'b9d8f331d1e24804b2eb5f278bb8411f'}}
2026-04-20 12:10:35,414 - INFO - Created VN ctest-vn-64227756
2026-04-20 12:10:35,470 - DEBUG - VN ctest-vn-64227756 UUID is 12b5f807-c680-4d75-9298-4ed61a5af6b6
2026-04-20 12:10:35,790 - DEBUG - Response for create_network : {'network': {'id': '7e534f8a-2899-4ac2-bcb5-07b55e67d200', 'name': 'ctest-vn-97867867', 'tenant_id': 'b9d8f331d1e24804b2eb5f278bb8411f', 'project_id': 'b9d8f331d1e24804b2eb5f278bb8411f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69293751', 'ctest-vn-97867867'], 'port_security_enabled': True, 'description': ''}}
2026-04-20 12:10:36,002 - DEBUG - Response for create_subnet : {'subnet': {'id': '27199e9d-e07f-45f9-ac08-437789df905a', 'name': '', 'tenant_id': 'b9d8f331d1e24804b2eb5f278bb8411f', 'network_id': '7e534f8a-2899-4ac2-bcb5-07b55e67d200', 'ip_version': 4, 'cidr': '160.87.253.192/26', 'allocation_pools': [{'start': '160.87.253.194', 'end': '160.87.253.254'}], 'gateway_ip': '160.87.253.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.87.253.194', 'tags': [], 'project_id': 'b9d8f331d1e24804b2eb5f278bb8411f'}}
2026-04-20 12:10:36,022 - INFO - Created VN ctest-vn-97867867
2026-04-20 12:10:36,074 - DEBUG - VN ctest-vn-97867867 UUID is 7e534f8a-2899-4ac2-bcb5-07b55e67d200
2026-04-20 12:10:36,195 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-69293751:ctest-vn-64227756, 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-69293751:ctest-vn-97867867, 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-04-20 12:10:36,506 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '12b5f807-c680-4d75-9298-4ed61a5af6b6', 'name': 'ctest-vn-64227756', 'tenant_id': 'b9d8f331d1e24804b2eb5f278bb8411f', 'project_id': 'b9d8f331d1e24804b2eb5f278bb8411f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1bc8d5fa-a37f-4354-b1c8-b60ba39b47d9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69293751', 'ctest-vn-64227756'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69293751', 'ctest-policy-allow-all-90462508']], 'subnet_ipam': [{'subnet_cidr': '103.83.80.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-20 12:10:36,761 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7e534f8a-2899-4ac2-bcb5-07b55e67d200', 'name': 'ctest-vn-97867867', 'tenant_id': 'b9d8f331d1e24804b2eb5f278bb8411f', 'project_id': 'b9d8f331d1e24804b2eb5f278bb8411f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['27199e9d-e07f-45f9-ac08-437789df905a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69293751', 'ctest-vn-97867867'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69293751', 'ctest-policy-allow-all-90462508']], 'subnet_ipam': [{'subnet_cidr': '160.87.253.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-20 12:10:36,934 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-20 12:10:37,234 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-20 12:10:37,269 - DEBUG - Requesting: http://10.0.0.50:8082/domain/18a14f92-daf6-4052-b99b-1b0121998f5c
2026-04-20 12:10:37,283 - DEBUG - Requesting: http://10.0.0.50:8082/project/b9d8f331-d1e2-4804-b2eb-5f278bb8411f
2026-04-20 12:10:37,355 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/12b5f807-c680-4d75-9298-4ed61a5af6b6
2026-04-20 12:10:37,367 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/12b5f807-c680-4d75-9298-4ed61a5af6b6
2026-04-20 12:10:37,378 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ab9cda1b-a5b7-431f-85e4-4543fb47453a
2026-04-20 12:10:37,385 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ab9cda1b-a5b7-431f-85e4-4543fb47453a
2026-04-20 12:10:37,394 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f7339dfb-6e9f-4fa5-8c4c-9dfae5fd4ec5
2026-04-20 12:10:37,401 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-20 12:10:37,401 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/12b5f807-c680-4d75-9298-4ed61a5af6b6
2026-04-20 12:10:37,410 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ab9cda1b-a5b7-431f-85e4-4543fb47453a
2026-04-20 12:10:37,425 - INFO - Verified VN network id 11 for VN 12b5f807-c680-4d75-9298-4ed61a5af6b6
2026-04-20 12:10:37,425 - INFO - Verifications in API Server for VN ctest-vn-64227756 passed
2026-04-20 12:10:37,425 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/12b5f807-c680-4d75-9298-4ed61a5af6b6
2026-04-20 12:10:37,435 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ab9cda1b-a5b7-431f-85e4-4543fb47453a
2026-04-20 12:10:37,442 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ab9cda1b-a5b7-431f-85e4-4543fb47453a
2026-04-20 12:10:37,451 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f7339dfb-6e9f-4fa5-8c4c-9dfae5fd4ec5
2026-04-20 12:10:37,464 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69293751:ctest-vn-64227756', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69293751', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1348256375746088309', 'uuid-lslong': '10563279607469635254'}, 'enable': 'true', 'created': '2026-04-20T12:10:35', 'last-modified': '2026-04-20T12:10:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.980255'}
2026-04-20 12:10:37,471 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-20 12:10:37,471 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64227756 passed
2026-04-20 12:10:37,472 - DEBUG - ====Verifying policy data for ctest-vn-64227756 in API_Server ======
2026-04-20 12:10:37,472 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-20 12:10:37,478 - DEBUG - Requesting: http://10.0.0.50:8082/domain/18a14f92-daf6-4052-b99b-1b0121998f5c
2026-04-20 12:10:37,490 - DEBUG - Requesting: http://10.0.0.50:8082/project/b9d8f331-d1e2-4804-b2eb-5f278bb8411f
2026-04-20 12:10:37,560 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/12b5f807-c680-4d75-9298-4ed61a5af6b6
2026-04-20 12:10:37,572 - DEBUG - ==>Verifying data for policy with id: eefe6e16-4952-40af-8f44-508d33929882, fqn: ['default-domain', 'ctest-TestBasicPolicy-69293751', 'ctest-policy-allow-all-90462508']
2026-04-20 12:10:37,572 - INFO - VN ctest-vn-64227756 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-20 12:10:37,572 - DEBUG - Verifying the vn in opserver
2026-04-20 12:10:37,572 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69293751:ctest-vn-64227756 virtual network link through opserver 10.0.0.50
2026-04-20 12:10:37,572 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-20 12:10:37,872 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-20 12:10:37,945 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69293751:ctest-vn-64227756', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69293751:ctest-vn-64227756?flat'}
2026-04-20 12:10:37,945 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69293751:ctest-vn-64227756 is found in opserver
2026-04-20 12:10:37,955 - DEBUG - Do not have enough data to verify VN in agent
2026-04-20 12:10:37,960 - DEBUG - VRF ids for VN ctest-vn-64227756: {}
2026-04-20 12:10:37,960 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-20 12:10:37,966 - DEBUG - Requesting: http://10.0.0.50:8082/domain/18a14f92-daf6-4052-b99b-1b0121998f5c
2026-04-20 12:10:37,979 - DEBUG - Requesting: http://10.0.0.50:8082/project/b9d8f331-d1e2-4804-b2eb-5f278bb8411f
2026-04-20 12:10:38,050 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7e534f8a-2899-4ac2-bcb5-07b55e67d200
2026-04-20 12:10:38,062 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7e534f8a-2899-4ac2-bcb5-07b55e67d200
2026-04-20 12:10:38,073 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a233a87e-083f-4e8d-97b5-2b6938d9bd91
2026-04-20 12:10:38,082 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a233a87e-083f-4e8d-97b5-2b6938d9bd91
2026-04-20 12:10:38,090 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ac1c328e-0753-47c0-901e-35eba02faaeb
2026-04-20 12:10:38,098 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-20 12:10:38,098 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7e534f8a-2899-4ac2-bcb5-07b55e67d200
2026-04-20 12:10:38,108 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a233a87e-083f-4e8d-97b5-2b6938d9bd91
2026-04-20 12:10:38,124 - INFO - Verified VN network id 12 for VN 7e534f8a-2899-4ac2-bcb5-07b55e67d200
2026-04-20 12:10:38,124 - INFO - Verifications in API Server for VN ctest-vn-97867867 passed
2026-04-20 12:10:38,124 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7e534f8a-2899-4ac2-bcb5-07b55e67d200
2026-04-20 12:10:38,136 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a233a87e-083f-4e8d-97b5-2b6938d9bd91
2026-04-20 12:10:38,144 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a233a87e-083f-4e8d-97b5-2b6938d9bd91
2026-04-20 12:10:38,151 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ac1c328e-0753-47c0-901e-35eba02faaeb
2026-04-20 12:10:38,166 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69293751:ctest-vn-97867867', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69293751', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9102706726651120322', 'uuid-lslong': '13597783125469417984'}, 'enable': 'true', 'created': '2026-04-20T12:10:35', 'last-modified': '2026-04-20T12:10:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.430783'}
2026-04-20 12:10:38,173 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-20 12:10:38,173 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97867867 passed
2026-04-20 12:10:38,174 - DEBUG - ====Verifying policy data for ctest-vn-97867867 in API_Server ======
2026-04-20 12:10:38,174 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-20 12:10:38,180 - DEBUG - Requesting: http://10.0.0.50:8082/domain/18a14f92-daf6-4052-b99b-1b0121998f5c
2026-04-20 12:10:38,191 - DEBUG - Requesting: http://10.0.0.50:8082/project/b9d8f331-d1e2-4804-b2eb-5f278bb8411f
2026-04-20 12:10:38,264 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7e534f8a-2899-4ac2-bcb5-07b55e67d200
2026-04-20 12:10:38,273 - DEBUG - ==>Verifying data for policy with id: eefe6e16-4952-40af-8f44-508d33929882, fqn: ['default-domain', 'ctest-TestBasicPolicy-69293751', 'ctest-policy-allow-all-90462508']
2026-04-20 12:10:38,274 - INFO - VN ctest-vn-97867867 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-20 12:10:38,274 - DEBUG - Verifying the vn in opserver
2026-04-20 12:10:38,274 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69293751:ctest-vn-97867867 virtual network link through opserver 10.0.0.50
2026-04-20 12:10:38,274 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-20 12:10:38,284 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69293751:ctest-vn-97867867', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69293751:ctest-vn-97867867?flat'}
2026-04-20 12:10:38,284 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69293751:ctest-vn-97867867 is found in opserver
2026-04-20 12:10:38,294 - DEBUG - Do not have enough data to verify VN in agent
2026-04-20 12:10:38,298 - DEBUG - VRF ids for VN ctest-vn-97867867: {}
2026-04-20 12:10:38,371 - DEBUG - Services list from nova: [