2026-02-06 19:24:09,321 - INFO - Domain Default found not creating
2026-02-06 19:24:09,521 - INFO - Project ctest-TestBasicPolicy-66858801 not found, creating it
2026-02-06 19:24:10,248 - INFO - Created Project:ctest-TestBasicPolicy-66858801, ID : 440ef8b6-f2b1-4b49-bb22-b546aafd1122
2026-02-06 19:24:11,676 - INFO - ================================================================================
2026-02-06 19:24:11,676 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-06 19:24:11,676 - 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-06 19:24:11,932 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-02-06 19:24:11,932 - INFO - Initial checks done. Running the testcase now
2026-02-06 19:24:11,932 - INFO -
2026-02-06 19:24:12,500 - DEBUG - Response for create_network : {'network': {'id': '89dfd5c2-c3e5-4716-874a-8cacbb939e2e', 'name': 'ctest-vn-38341436', 'tenant_id': '440ef8b6f2b14b49bb22b546aafd1122', 'project_id': '440ef8b6f2b14b49bb22b546aafd1122', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66858801', 'ctest-vn-38341436'], 'port_security_enabled': True, 'description': ''}}
2026-02-06 19:24:12,711 - DEBUG - Response for create_subnet : {'subnet': {'id': '1fc9279a-4d05-45ac-a850-9ded06755dc2', 'name': '', 'tenant_id': '440ef8b6f2b14b49bb22b546aafd1122', 'network_id': '89dfd5c2-c3e5-4716-874a-8cacbb939e2e', 'ip_version': 4, 'cidr': '18.20.134.64/26', 'allocation_pools': [{'start': '18.20.134.66', 'end': '18.20.134.126'}], 'gateway_ip': '18.20.134.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.20.134.66', 'tags': [], 'project_id': '440ef8b6f2b14b49bb22b546aafd1122'}}
2026-02-06 19:24:12,730 - INFO - Created VN ctest-vn-38341436
2026-02-06 19:24:12,782 - DEBUG - VN ctest-vn-38341436 UUID is 89dfd5c2-c3e5-4716-874a-8cacbb939e2e
2026-02-06 19:24:13,075 - DEBUG - Response for create_network : {'network': {'id': '3ff34758-b497-4425-970f-79405a3dbf8e', 'name': 'ctest-vn-15280704', 'tenant_id': '440ef8b6f2b14b49bb22b546aafd1122', 'project_id': '440ef8b6f2b14b49bb22b546aafd1122', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66858801', 'ctest-vn-15280704'], 'port_security_enabled': True, 'description': ''}}
2026-02-06 19:24:13,240 - DEBUG - Response for create_subnet : {'subnet': {'id': '76d94cfa-693c-40a5-a55c-9cc7728e50ba', 'name': '', 'tenant_id': '440ef8b6f2b14b49bb22b546aafd1122', 'network_id': '3ff34758-b497-4425-970f-79405a3dbf8e', 'ip_version': 4, 'cidr': '181.176.128.192/26', 'allocation_pools': [{'start': '181.176.128.194', 'end': '181.176.128.254'}], 'gateway_ip': '181.176.128.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '181.176.128.194', 'tags': [], 'project_id': '440ef8b6f2b14b49bb22b546aafd1122'}}
2026-02-06 19:24:13,258 - INFO - Created VN ctest-vn-15280704
2026-02-06 19:24:13,310 - DEBUG - VN ctest-vn-15280704 UUID is 3ff34758-b497-4425-970f-79405a3dbf8e
2026-02-06 19:24:13,462 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-66858801:ctest-vn-38341436, 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-66858801:ctest-vn-15280704, 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-06 19:24:13,763 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '89dfd5c2-c3e5-4716-874a-8cacbb939e2e', 'name': 'ctest-vn-38341436', 'tenant_id': '440ef8b6f2b14b49bb22b546aafd1122', 'project_id': '440ef8b6f2b14b49bb22b546aafd1122', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1fc9279a-4d05-45ac-a850-9ded06755dc2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66858801', 'ctest-vn-38341436'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66858801', 'ctest-policy-allow-all-46053990']], 'subnet_ipam': [{'subnet_cidr': '18.20.134.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-06 19:24:14,044 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3ff34758-b497-4425-970f-79405a3dbf8e', 'name': 'ctest-vn-15280704', 'tenant_id': '440ef8b6f2b14b49bb22b546aafd1122', 'project_id': '440ef8b6f2b14b49bb22b546aafd1122', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['76d94cfa-693c-40a5-a55c-9cc7728e50ba'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66858801', 'ctest-vn-15280704'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66858801', 'ctest-policy-allow-all-46053990']], 'subnet_ipam': [{'subnet_cidr': '181.176.128.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-06 19:24:14,206 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-06 19:24:14,798 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-06 19:24:14,862 - DEBUG - Requesting: http://10.0.0.50:8082/domain/441a7ee2-85a4-43c0-949e-4495667f55c1
2026-02-06 19:24:14,876 - DEBUG - Requesting: http://10.0.0.50:8082/project/440ef8b6-f2b1-4b49-bb22-b546aafd1122
2026-02-06 19:24:14,959 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/89dfd5c2-c3e5-4716-874a-8cacbb939e2e
2026-02-06 19:24:14,979 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/89dfd5c2-c3e5-4716-874a-8cacbb939e2e
2026-02-06 19:24:14,991 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/debdb67d-fbec-4e7b-ba5a-0b64af5a394a
2026-02-06 19:24:15,000 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/debdb67d-fbec-4e7b-ba5a-0b64af5a394a
2026-02-06 19:24:15,009 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c76dbb60-8762-4150-bf0a-4e5e1b2cd244
2026-02-06 19:24:15,022 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-06 19:24:15,022 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/89dfd5c2-c3e5-4716-874a-8cacbb939e2e
2026-02-06 19:24:15,036 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/debdb67d-fbec-4e7b-ba5a-0b64af5a394a
2026-02-06 19:24:15,054 - INFO - Verified VN network id 11 for VN 89dfd5c2-c3e5-4716-874a-8cacbb939e2e
2026-02-06 19:24:15,054 - INFO - Verifications in API Server for VN ctest-vn-38341436 passed
2026-02-06 19:24:15,054 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/89dfd5c2-c3e5-4716-874a-8cacbb939e2e
2026-02-06 19:24:15,066 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/debdb67d-fbec-4e7b-ba5a-0b64af5a394a
2026-02-06 19:24:15,074 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/debdb67d-fbec-4e7b-ba5a-0b64af5a394a
2026-02-06 19:24:15,081 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c76dbb60-8762-4150-bf0a-4e5e1b2cd244
2026-02-06 19:24:15,109 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66858801:ctest-vn-38341436', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66858801', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9934894335489558294', 'uuid-lslong': '9748759016906137134'}, 'enable': 'true', 'created': '2026-02-06T19:24:12', 'last-modified': '2026-02-06T19:24:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.372833'}
2026-02-06 19:24:15,117 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-06 19:24:15,117 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38341436 passed
2026-02-06 19:24:15,117 - DEBUG - ====Verifying policy data for ctest-vn-38341436 in API_Server ======
2026-02-06 19:24:15,117 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-06 19:24:15,123 - DEBUG - Requesting: http://10.0.0.50:8082/domain/441a7ee2-85a4-43c0-949e-4495667f55c1
2026-02-06 19:24:15,134 - DEBUG - Requesting: http://10.0.0.50:8082/project/440ef8b6-f2b1-4b49-bb22-b546aafd1122
2026-02-06 19:24:15,206 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/89dfd5c2-c3e5-4716-874a-8cacbb939e2e
2026-02-06 19:24:15,218 - DEBUG - ==>Verifying data for policy with id: 9a9c67d9-8b13-4896-8e04-0aff90e06d62, fqn: ['default-domain', 'ctest-TestBasicPolicy-66858801', 'ctest-policy-allow-all-46053990']
2026-02-06 19:24:15,219 - INFO - VN ctest-vn-38341436 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-06 19:24:15,219 - DEBUG - Verifying the vn in opserver
2026-02-06 19:24:15,219 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66858801:ctest-vn-38341436 virtual network link through opserver 10.0.0.50
2026-02-06 19:24:15,219 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-06 19:24:15,537 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-06 19:24:15,612 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66858801:ctest-vn-38341436', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66858801:ctest-vn-38341436?flat'}
2026-02-06 19:24:15,612 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66858801:ctest-vn-38341436 is found in opserver
2026-02-06 19:24:15,621 - DEBUG - Do not have enough data to verify VN in agent
2026-02-06 19:24:15,625 - DEBUG - VRF ids for VN ctest-vn-38341436: {}
2026-02-06 19:24:15,625 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-06 19:24:15,630 - DEBUG - Requesting: http://10.0.0.50:8082/domain/441a7ee2-85a4-43c0-949e-4495667f55c1
2026-02-06 19:24:15,640 - DEBUG - Requesting: http://10.0.0.50:8082/project/440ef8b6-f2b1-4b49-bb22-b546aafd1122
2026-02-06 19:24:15,707 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3ff34758-b497-4425-970f-79405a3dbf8e
2026-02-06 19:24:15,718 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3ff34758-b497-4425-970f-79405a3dbf8e
2026-02-06 19:24:15,726 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/974cea13-f024-4c70-a18f-2cecebbc0363
2026-02-06 19:24:15,733 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/974cea13-f024-4c70-a18f-2cecebbc0363
2026-02-06 19:24:15,739 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/25fb989d-ca22-4224-9f85-d0f0ba2731d6
2026-02-06 19:24:15,744 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-06 19:24:15,744 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3ff34758-b497-4425-970f-79405a3dbf8e
2026-02-06 19:24:15,752 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/974cea13-f024-4c70-a18f-2cecebbc0363
2026-02-06 19:24:15,764 - INFO - Verified VN network id 12 for VN 3ff34758-b497-4425-970f-79405a3dbf8e
2026-02-06 19:24:15,764 - INFO - Verifications in API Server for VN ctest-vn-15280704 passed
2026-02-06 19:24:15,764 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3ff34758-b497-4425-970f-79405a3dbf8e
2026-02-06 19:24:15,771 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/974cea13-f024-4c70-a18f-2cecebbc0363
2026-02-06 19:24:15,776 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/974cea13-f024-4c70-a18f-2cecebbc0363
2026-02-06 19:24:15,781 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/25fb989d-ca22-4224-9f85-d0f0ba2731d6
2026-02-06 19:24:15,791 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66858801:ctest-vn-15280704', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66858801', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4608105290042655781', 'uuid-lslong': '10885052141676642190'}, 'enable': 'true', 'created': '2026-02-06T19:24:13', 'last-modified': '2026-02-06T19:24:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.813065'}
2026-02-06 19:24:15,797 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-06 19:24:15,797 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15280704 passed
2026-02-06 19:24:15,798 - DEBUG - ====Verifying policy data for ctest-vn-15280704 in API_Server ======
2026-02-06 19:24:15,798 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-06 19:24:15,803 - DEBUG - Requesting: http://10.0.0.50:8082/domain/441a7ee2-85a4-43c0-949e-4495667f55c1
2026-02-06 19:24:15,813 - DEBUG - Requesting: http://10.0.0.50:8082/project/440ef8b6-f2b1-4b49-bb22-b546aafd1122
2026-02-06 19:24:15,880 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3ff34758-b497-4425-970f-79405a3dbf8e
2026-02-06 19:24:15,889 - DEBUG - ==>Verifying data for policy with id: 9a9c67d9-8b13-4896-8e04-0aff90e06d62, fqn: ['default-domain', 'ctest-TestBasicPolicy-66858801', 'ctest-policy-allow-all-46053990']
2026-02-06 19:24:15,889 - INFO - VN ctest-vn-15280704 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-06 19:24:15,889 - DEBUG - Verifying the vn in opserver
2026-02-06 19:24:15,889 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66858801:ctest-vn-15280704 virtual network link through opserver 10.0.0.50
2026-02-06 19:24:15,889 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-06 19:24:15,899 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66858801:ctest-vn-15280704', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66858801:ctest-vn-15280704?flat'}
2026-02-06 19:24:15,899 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66858801:ctest-vn-15280704 is found in opserver
2026-02-06 19:24:15,907 - DEBUG - Do not have enough data to verify VN in agent
2026-02-06 19:24:15,911 - DEBUG - VRF ids for VN ctest-vn-15280704: {}
2026-02-06 19:24:15,966 - DEBUG - Services list from nova: [