2025-10-23 19:06:06,061 - INFO - Domain Default found not creating
2025-10-23 19:06:06,216 - INFO - Project ctest-TestBasicPolicy-32601505 not found, creating it
2025-10-23 19:06:06,716 - INFO - Created Project:ctest-TestBasicPolicy-32601505, ID : a2d2642a-d2db-4275-b71e-96a22ef8ac20
2025-10-23 19:06:08,233 - INFO - ================================================================================
2025-10-23 19:06:08,233 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-23 19:06:08,233 - 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
2025-10-23 19:06:08,487 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-10-23 19:06:08,487 - INFO - Initial checks done. Running the testcase now
2025-10-23 19:06:08,487 - INFO -
2025-10-23 19:06:09,032 - DEBUG - Response for create_network : {'network': {'id': '3dca394d-5e2b-4349-947b-98cbb5199e0a', 'name': 'ctest-vn-26891912', 'tenant_id': 'a2d2642ad2db4275b71e96a22ef8ac20', 'project_id': 'a2d2642ad2db4275b71e96a22ef8ac20', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32601505', 'ctest-vn-26891912'], 'port_security_enabled': True, 'description': ''}}
2025-10-23 19:06:09,234 - DEBUG - Response for create_subnet : {'subnet': {'id': '876b2605-70dd-43c8-9872-a29d87bb7cc9', 'name': '', 'tenant_id': 'a2d2642ad2db4275b71e96a22ef8ac20', 'network_id': '3dca394d-5e2b-4349-947b-98cbb5199e0a', 'ip_version': 4, 'cidr': '26.100.95.0/26', 'allocation_pools': [{'start': '26.100.95.2', 'end': '26.100.95.62'}], 'gateway_ip': '26.100.95.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26.100.95.2', 'tags': [], 'project_id': 'a2d2642ad2db4275b71e96a22ef8ac20'}}
2025-10-23 19:06:09,257 - INFO - Created VN ctest-vn-26891912
2025-10-23 19:06:09,310 - DEBUG - VN ctest-vn-26891912 UUID is 3dca394d-5e2b-4349-947b-98cbb5199e0a
2025-10-23 19:06:09,600 - DEBUG - Response for create_network : {'network': {'id': '1d24f358-463f-41f0-b009-be46c92462e3', 'name': 'ctest-vn-25036925', 'tenant_id': 'a2d2642ad2db4275b71e96a22ef8ac20', 'project_id': 'a2d2642ad2db4275b71e96a22ef8ac20', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32601505', 'ctest-vn-25036925'], 'port_security_enabled': True, 'description': ''}}
2025-10-23 19:06:09,766 - DEBUG - Response for create_subnet : {'subnet': {'id': '1f511b99-a47b-40bb-a7ca-345e303963cc', 'name': '', 'tenant_id': 'a2d2642ad2db4275b71e96a22ef8ac20', 'network_id': '1d24f358-463f-41f0-b009-be46c92462e3', 'ip_version': 4, 'cidr': '18.75.24.0/26', 'allocation_pools': [{'start': '18.75.24.2', 'end': '18.75.24.62'}], 'gateway_ip': '18.75.24.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.75.24.2', 'tags': [], 'project_id': 'a2d2642ad2db4275b71e96a22ef8ac20'}}
2025-10-23 19:06:09,783 - INFO - Created VN ctest-vn-25036925
2025-10-23 19:06:09,834 - DEBUG - VN ctest-vn-25036925 UUID is 1d24f358-463f-41f0-b009-be46c92462e3
2025-10-23 19:06:09,947 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-32601505:ctest-vn-26891912, 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-32601505:ctest-vn-25036925, 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]
2025-10-23 19:06:10,230 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3dca394d-5e2b-4349-947b-98cbb5199e0a', 'name': 'ctest-vn-26891912', 'tenant_id': 'a2d2642ad2db4275b71e96a22ef8ac20', 'project_id': 'a2d2642ad2db4275b71e96a22ef8ac20', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['876b2605-70dd-43c8-9872-a29d87bb7cc9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32601505', 'ctest-vn-26891912'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32601505', 'ctest-policy-allow-all-52382539']], 'subnet_ipam': [{'subnet_cidr': '26.100.95.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-23 19:06:10,504 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1d24f358-463f-41f0-b009-be46c92462e3', 'name': 'ctest-vn-25036925', 'tenant_id': 'a2d2642ad2db4275b71e96a22ef8ac20', 'project_id': 'a2d2642ad2db4275b71e96a22ef8ac20', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1f511b99-a47b-40bb-a7ca-345e303963cc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32601505', 'ctest-vn-25036925'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32601505', 'ctest-policy-allow-all-52382539']], 'subnet_ipam': [{'subnet_cidr': '18.75.24.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-23 19:06:10,654 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-23 19:06:10,954 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-23 19:06:10,988 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e294bc14-004b-4d5c-99dd-b4f57c297166
2025-10-23 19:06:10,999 - DEBUG - Requesting: http://10.0.0.254:8082/project/a2d2642a-d2db-4275-b71e-96a22ef8ac20
2025-10-23 19:06:11,074 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3dca394d-5e2b-4349-947b-98cbb5199e0a
2025-10-23 19:06:11,086 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3dca394d-5e2b-4349-947b-98cbb5199e0a
2025-10-23 19:06:11,097 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f9af340f-74cb-4555-ba64-7777905eef12
2025-10-23 19:06:11,104 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f9af340f-74cb-4555-ba64-7777905eef12
2025-10-23 19:06:11,112 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/04e0ac5e-087f-4388-91dc-dcd4e85ea1db
2025-10-23 19:06:11,118 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-23 19:06:11,119 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3dca394d-5e2b-4349-947b-98cbb5199e0a
2025-10-23 19:06:11,129 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f9af340f-74cb-4555-ba64-7777905eef12
2025-10-23 19:06:11,146 - INFO - Verified VN network id 11 for VN 3dca394d-5e2b-4349-947b-98cbb5199e0a
2025-10-23 19:06:11,146 - INFO - Verifications in API Server for VN ctest-vn-26891912 passed
2025-10-23 19:06:11,146 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3dca394d-5e2b-4349-947b-98cbb5199e0a
2025-10-23 19:06:11,156 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f9af340f-74cb-4555-ba64-7777905eef12
2025-10-23 19:06:11,164 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f9af340f-74cb-4555-ba64-7777905eef12
2025-10-23 19:06:11,172 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/04e0ac5e-087f-4388-91dc-dcd4e85ea1db
2025-10-23 19:06:11,184 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32601505:ctest-vn-26891912', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32601505', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4452434186064315209', 'uuid-lslong': '10699313340432883210'}, 'enable': 'true', 'created': '2025-10-23T19:06:09', 'last-modified': '2025-10-23T19:06:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.971759'}
2025-10-23 19:06:11,190 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-23 19:06:11,190 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26891912 passed
2025-10-23 19:06:11,190 - DEBUG - ====Verifying policy data for ctest-vn-26891912 in API_Server ======
2025-10-23 19:06:11,190 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-23 19:06:11,195 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e294bc14-004b-4d5c-99dd-b4f57c297166
2025-10-23 19:06:11,206 - DEBUG - Requesting: http://10.0.0.254:8082/project/a2d2642a-d2db-4275-b71e-96a22ef8ac20
2025-10-23 19:06:11,276 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3dca394d-5e2b-4349-947b-98cbb5199e0a
2025-10-23 19:06:11,285 - DEBUG - ==>Verifying data for policy with id: 6b26a1f5-1889-4bd5-898e-5c030dfecdf8, fqn: ['default-domain', 'ctest-TestBasicPolicy-32601505', 'ctest-policy-allow-all-52382539']
2025-10-23 19:06:11,285 - INFO - VN ctest-vn-26891912 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-23 19:06:11,285 - DEBUG - Verifying the vn in opserver
2025-10-23 19:06:11,286 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32601505:ctest-vn-26891912 virtual network link through opserver 10.0.0.254
2025-10-23 19:06:11,286 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-23 19:06:11,580 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-23 19:06:11,635 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32601505:ctest-vn-26891912', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32601505:ctest-vn-26891912?flat'}
2025-10-23 19:06:11,635 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32601505:ctest-vn-26891912 is found in opserver
2025-10-23 19:06:11,645 - DEBUG - Do not have enough data to verify VN in agent
2025-10-23 19:06:11,649 - DEBUG - VRF ids for VN ctest-vn-26891912: {}
2025-10-23 19:06:11,649 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-23 19:06:11,655 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e294bc14-004b-4d5c-99dd-b4f57c297166
2025-10-23 19:06:11,665 - DEBUG - Requesting: http://10.0.0.254:8082/project/a2d2642a-d2db-4275-b71e-96a22ef8ac20
2025-10-23 19:06:11,744 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1d24f358-463f-41f0-b009-be46c92462e3
2025-10-23 19:06:11,758 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1d24f358-463f-41f0-b009-be46c92462e3
2025-10-23 19:06:11,767 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f2bc12c1-2878-4141-b084-cc394e319595
2025-10-23 19:06:11,774 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f2bc12c1-2878-4141-b084-cc394e319595
2025-10-23 19:06:11,781 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/caf85fa7-1b04-456b-8be8-6af4edc8bd25
2025-10-23 19:06:11,789 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-23 19:06:11,789 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1d24f358-463f-41f0-b009-be46c92462e3
2025-10-23 19:06:11,798 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f2bc12c1-2878-4141-b084-cc394e319595
2025-10-23 19:06:11,813 - INFO - Verified VN network id 12 for VN 1d24f358-463f-41f0-b009-be46c92462e3
2025-10-23 19:06:11,813 - INFO - Verifications in API Server for VN ctest-vn-25036925 passed
2025-10-23 19:06:11,813 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1d24f358-463f-41f0-b009-be46c92462e3
2025-10-23 19:06:11,823 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f2bc12c1-2878-4141-b084-cc394e319595
2025-10-23 19:06:11,831 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f2bc12c1-2878-4141-b084-cc394e319595
2025-10-23 19:06:11,840 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/caf85fa7-1b04-456b-8be8-6af4edc8bd25
2025-10-23 19:06:11,852 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32601505:ctest-vn-25036925', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32601505', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2100070886722716144', 'uuid-lslong': '12684879036697305827'}, 'enable': 'true', 'created': '2025-10-23T19:06:09', 'last-modified': '2025-10-23T19:06:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.411677'}
2025-10-23 19:06:11,858 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-23 19:06:11,858 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25036925 passed
2025-10-23 19:06:11,858 - DEBUG - ====Verifying policy data for ctest-vn-25036925 in API_Server ======
2025-10-23 19:06:11,859 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-23 19:06:11,864 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e294bc14-004b-4d5c-99dd-b4f57c297166
2025-10-23 19:06:11,875 - DEBUG - Requesting: http://10.0.0.254:8082/project/a2d2642a-d2db-4275-b71e-96a22ef8ac20
2025-10-23 19:06:11,947 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1d24f358-463f-41f0-b009-be46c92462e3
2025-10-23 19:06:11,956 - DEBUG - ==>Verifying data for policy with id: 6b26a1f5-1889-4bd5-898e-5c030dfecdf8, fqn: ['default-domain', 'ctest-TestBasicPolicy-32601505', 'ctest-policy-allow-all-52382539']
2025-10-23 19:06:11,956 - INFO - VN ctest-vn-25036925 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-23 19:06:11,956 - DEBUG - Verifying the vn in opserver
2025-10-23 19:06:11,956 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32601505:ctest-vn-25036925 virtual network link through opserver 10.0.0.254
2025-10-23 19:06:11,956 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-23 19:06:11,966 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32601505:ctest-vn-25036925', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32601505:ctest-vn-25036925?flat'}
2025-10-23 19:06:11,966 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32601505:ctest-vn-25036925 is found in opserver
2025-10-23 19:06:11,976 - DEBUG - Do not have enough data to verify VN in agent
2025-10-23 19:06:11,980 - DEBUG - VRF ids for VN ctest-vn-25036925: {}
2025-10-23 19:06:12,044 - DEBUG - Services list from nova: [