2026-01-31 12:22:18,928 - INFO - Domain Default found not creating
2026-01-31 12:22:19,080 - INFO - Project ctest-TestBasicPolicy-81499200 not found, creating it
2026-01-31 12:22:19,537 - INFO - Created Project:ctest-TestBasicPolicy-81499200, ID : dcb33c56-2d5f-421b-8d2a-33ec51a3b403
2026-01-31 12:22:21,095 - INFO - ================================================================================
2026-01-31 12:22:21,096 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-31 12:22:21,096 - 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-31 12:22:21,362 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-01-31 12:22:21,362 - INFO - Initial checks done. Running the testcase now
2026-01-31 12:22:21,363 - INFO -
2026-01-31 12:22:21,858 - DEBUG - Response for create_network : {'network': {'id': 'c8ded1f3-dc48-4cad-8f9a-0a6c78ee3b62', 'name': 'ctest-vn-79851429', 'tenant_id': 'dcb33c562d5f421b8d2a33ec51a3b403', 'project_id': 'dcb33c562d5f421b8d2a33ec51a3b403', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81499200', 'ctest-vn-79851429'], 'port_security_enabled': True, 'description': ''}}
2026-01-31 12:22:22,036 - DEBUG - Response for create_subnet : {'subnet': {'id': '84c75543-0d48-424a-8fb6-b8fbcdce1fc1', 'name': '', 'tenant_id': 'dcb33c562d5f421b8d2a33ec51a3b403', 'network_id': 'c8ded1f3-dc48-4cad-8f9a-0a6c78ee3b62', 'ip_version': 4, 'cidr': '77.170.92.0/26', 'allocation_pools': [{'start': '77.170.92.2', 'end': '77.170.92.62'}], 'gateway_ip': '77.170.92.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '77.170.92.2', 'tags': [], 'project_id': 'dcb33c562d5f421b8d2a33ec51a3b403'}}
2026-01-31 12:22:22,052 - INFO - Created VN ctest-vn-79851429
2026-01-31 12:22:22,105 - DEBUG - VN ctest-vn-79851429 UUID is c8ded1f3-dc48-4cad-8f9a-0a6c78ee3b62
2026-01-31 12:22:22,422 - DEBUG - Response for create_network : {'network': {'id': 'ad9c0ec7-205a-4726-9ab3-c05c04276dfa', 'name': 'ctest-vn-89194570', 'tenant_id': 'dcb33c562d5f421b8d2a33ec51a3b403', 'project_id': 'dcb33c562d5f421b8d2a33ec51a3b403', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81499200', 'ctest-vn-89194570'], 'port_security_enabled': True, 'description': ''}}
2026-01-31 12:22:22,591 - DEBUG - Response for create_subnet : {'subnet': {'id': '4c87c442-1279-400b-8ed3-354ea42fb4e9', 'name': '', 'tenant_id': 'dcb33c562d5f421b8d2a33ec51a3b403', 'network_id': 'ad9c0ec7-205a-4726-9ab3-c05c04276dfa', 'ip_version': 4, 'cidr': '110.165.133.192/26', 'allocation_pools': [{'start': '110.165.133.194', 'end': '110.165.133.254'}], 'gateway_ip': '110.165.133.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '110.165.133.194', 'tags': [], 'project_id': 'dcb33c562d5f421b8d2a33ec51a3b403'}}
2026-01-31 12:22:22,607 - INFO - Created VN ctest-vn-89194570
2026-01-31 12:22:22,657 - DEBUG - VN ctest-vn-89194570 UUID is ad9c0ec7-205a-4726-9ab3-c05c04276dfa
2026-01-31 12:22:22,797 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-81499200:ctest-vn-79851429, 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-81499200:ctest-vn-89194570, 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-31 12:22:23,085 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c8ded1f3-dc48-4cad-8f9a-0a6c78ee3b62', 'name': 'ctest-vn-79851429', 'tenant_id': 'dcb33c562d5f421b8d2a33ec51a3b403', 'project_id': 'dcb33c562d5f421b8d2a33ec51a3b403', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['84c75543-0d48-424a-8fb6-b8fbcdce1fc1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81499200', 'ctest-vn-79851429'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-81499200', 'ctest-policy-allow-all-38450710']], 'subnet_ipam': [{'subnet_cidr': '77.170.92.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-31 12:22:23,298 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ad9c0ec7-205a-4726-9ab3-c05c04276dfa', 'name': 'ctest-vn-89194570', 'tenant_id': 'dcb33c562d5f421b8d2a33ec51a3b403', 'project_id': 'dcb33c562d5f421b8d2a33ec51a3b403', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4c87c442-1279-400b-8ed3-354ea42fb4e9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81499200', 'ctest-vn-89194570'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-81499200', 'ctest-policy-allow-all-38450710']], 'subnet_ipam': [{'subnet_cidr': '110.165.133.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-31 12:22:23,461 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-31 12:22:23,754 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-31 12:22:23,789 - DEBUG - Requesting: http://10.0.0.50:8082/domain/290c878f-1492-4e9f-84b5-af73f57aaa8d
2026-01-31 12:22:23,800 - DEBUG - Requesting: http://10.0.0.50:8082/project/dcb33c56-2d5f-421b-8d2a-33ec51a3b403
2026-01-31 12:22:23,866 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c8ded1f3-dc48-4cad-8f9a-0a6c78ee3b62
2026-01-31 12:22:23,876 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c8ded1f3-dc48-4cad-8f9a-0a6c78ee3b62
2026-01-31 12:22:23,886 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/af9a410c-739e-41e6-84d3-b694924aacbd
2026-01-31 12:22:23,893 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/af9a410c-739e-41e6-84d3-b694924aacbd
2026-01-31 12:22:23,901 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8a6561bd-ede8-4b18-8433-b9a05d7f92bd
2026-01-31 12:22:23,907 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-31 12:22:23,907 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c8ded1f3-dc48-4cad-8f9a-0a6c78ee3b62
2026-01-31 12:22:23,916 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/af9a410c-739e-41e6-84d3-b694924aacbd
2026-01-31 12:22:23,928 - INFO - Verified VN network id 9 for VN c8ded1f3-dc48-4cad-8f9a-0a6c78ee3b62
2026-01-31 12:22:23,928 - INFO - Verifications in API Server for VN ctest-vn-79851429 passed
2026-01-31 12:22:23,928 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c8ded1f3-dc48-4cad-8f9a-0a6c78ee3b62
2026-01-31 12:22:23,936 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/af9a410c-739e-41e6-84d3-b694924aacbd
2026-01-31 12:22:23,941 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/af9a410c-739e-41e6-84d3-b694924aacbd
2026-01-31 12:22:23,952 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8a6561bd-ede8-4b18-8433-b9a05d7f92bd
2026-01-31 12:22:23,966 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-81499200:ctest-vn-79851429', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-81499200', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14474237097718336685', 'uuid-lslong': '10347594554838760290'}, 'enable': 'true', 'created': '2026-01-31T12:22:21', 'last-modified': '2026-01-31T12:22:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.908083'}
2026-01-31 12:22:23,973 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-31 12:22:23,973 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79851429 passed
2026-01-31 12:22:23,973 - DEBUG - ====Verifying policy data for ctest-vn-79851429 in API_Server ======
2026-01-31 12:22:23,973 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-31 12:22:23,979 - DEBUG - Requesting: http://10.0.0.50:8082/domain/290c878f-1492-4e9f-84b5-af73f57aaa8d
2026-01-31 12:22:23,989 - DEBUG - Requesting: http://10.0.0.50:8082/project/dcb33c56-2d5f-421b-8d2a-33ec51a3b403
2026-01-31 12:22:24,054 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c8ded1f3-dc48-4cad-8f9a-0a6c78ee3b62
2026-01-31 12:22:24,062 - DEBUG - ==>Verifying data for policy with id: 2e6dc789-5404-45c0-8d04-310f85f26eb4, fqn: ['default-domain', 'ctest-TestBasicPolicy-81499200', 'ctest-policy-allow-all-38450710']
2026-01-31 12:22:24,062 - INFO - VN ctest-vn-79851429 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-31 12:22:24,062 - DEBUG - Verifying the vn in opserver
2026-01-31 12:22:24,062 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-81499200:ctest-vn-79851429 virtual network link through opserver 10.0.0.50
2026-01-31 12:22:24,062 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-31 12:22:24,353 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-31 12:22:24,407 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-81499200:ctest-vn-79851429', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-81499200:ctest-vn-79851429?flat'}
2026-01-31 12:22:24,407 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-81499200:ctest-vn-79851429 is found in opserver
2026-01-31 12:22:24,416 - DEBUG - Do not have enough data to verify VN in agent
2026-01-31 12:22:24,420 - DEBUG - VRF ids for VN ctest-vn-79851429: {}
2026-01-31 12:22:24,420 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-31 12:22:24,425 - DEBUG - Requesting: http://10.0.0.50:8082/domain/290c878f-1492-4e9f-84b5-af73f57aaa8d
2026-01-31 12:22:24,434 - DEBUG - Requesting: http://10.0.0.50:8082/project/dcb33c56-2d5f-421b-8d2a-33ec51a3b403
2026-01-31 12:22:24,503 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ad9c0ec7-205a-4726-9ab3-c05c04276dfa
2026-01-31 12:22:24,513 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ad9c0ec7-205a-4726-9ab3-c05c04276dfa
2026-01-31 12:22:24,521 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ef05510a-bd86-43ab-8d81-c71c2ca1a985
2026-01-31 12:22:24,528 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ef05510a-bd86-43ab-8d81-c71c2ca1a985
2026-01-31 12:22:24,534 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a9374fe7-1d26-492c-b7d2-9f7bcc12e277
2026-01-31 12:22:24,539 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-31 12:22:24,539 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ad9c0ec7-205a-4726-9ab3-c05c04276dfa
2026-01-31 12:22:24,546 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ef05510a-bd86-43ab-8d81-c71c2ca1a985
2026-01-31 12:22:24,558 - INFO - Verified VN network id 10 for VN ad9c0ec7-205a-4726-9ab3-c05c04276dfa
2026-01-31 12:22:24,558 - INFO - Verifications in API Server for VN ctest-vn-89194570 passed
2026-01-31 12:22:24,558 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ad9c0ec7-205a-4726-9ab3-c05c04276dfa
2026-01-31 12:22:24,565 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ef05510a-bd86-43ab-8d81-c71c2ca1a985
2026-01-31 12:22:24,570 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ef05510a-bd86-43ab-8d81-c71c2ca1a985
2026-01-31 12:22:24,576 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a9374fe7-1d26-492c-b7d2-9f7bcc12e277
2026-01-31 12:22:24,585 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-81499200:ctest-vn-89194570', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-81499200', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12509890113332463398', 'uuid-lslong': '11147465004111326714'}, 'enable': 'true', 'created': '2026-01-31T12:22:22', 'last-modified': '2026-01-31T12:22:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.309892'}
2026-01-31 12:22:24,590 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-31 12:22:24,590 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89194570 passed
2026-01-31 12:22:24,590 - DEBUG - ====Verifying policy data for ctest-vn-89194570 in API_Server ======
2026-01-31 12:22:24,590 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-31 12:22:24,594 - DEBUG - Requesting: http://10.0.0.50:8082/domain/290c878f-1492-4e9f-84b5-af73f57aaa8d
2026-01-31 12:22:24,603 - DEBUG - Requesting: http://10.0.0.50:8082/project/dcb33c56-2d5f-421b-8d2a-33ec51a3b403
2026-01-31 12:22:24,668 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ad9c0ec7-205a-4726-9ab3-c05c04276dfa
2026-01-31 12:22:24,677 - DEBUG - ==>Verifying data for policy with id: 2e6dc789-5404-45c0-8d04-310f85f26eb4, fqn: ['default-domain', 'ctest-TestBasicPolicy-81499200', 'ctest-policy-allow-all-38450710']
2026-01-31 12:22:24,677 - INFO - VN ctest-vn-89194570 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-31 12:22:24,677 - DEBUG - Verifying the vn in opserver
2026-01-31 12:22:24,677 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-81499200:ctest-vn-89194570 virtual network link through opserver 10.0.0.50
2026-01-31 12:22:24,677 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-31 12:22:24,685 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-81499200:ctest-vn-89194570', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-81499200:ctest-vn-89194570?flat'}
2026-01-31 12:22:24,685 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-81499200:ctest-vn-89194570 is found in opserver
2026-01-31 12:22:24,694 - DEBUG - Do not have enough data to verify VN in agent
2026-01-31 12:22:24,699 - DEBUG - VRF ids for VN ctest-vn-89194570: {}
2026-01-31 12:22:24,749 - DEBUG - Services list from nova: [