2025-11-21 17:51:19,728 - INFO - Domain Default found not creating
2025-11-21 17:51:19,922 - INFO - Project ctest-TestBasicPolicy-54950600 not found, creating it
2025-11-21 17:51:20,452 - INFO - Created Project:ctest-TestBasicPolicy-54950600, ID : e034ec91-f8b3-4704-bc70-14f465db4c76
2025-11-21 17:51:22,338 - INFO - ================================================================================
2025-11-21 17:51:22,338 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-21 17:51:22,338 - 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-11-21 17:51:22,609 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.18': '0'}} with
2025-11-21 17:51:22,609 - INFO - Initial checks done. Running the testcase now
2025-11-21 17:51:22,609 - INFO -
2025-11-21 17:51:23,285 - DEBUG - Response for create_network : {'network': {'id': 'a6b94bb8-48ae-45f3-993b-be8295aad0e5', 'name': 'ctest-vn-00253978', 'tenant_id': 'e034ec91f8b34704bc7014f465db4c76', 'project_id': 'e034ec91f8b34704bc7014f465db4c76', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54950600', 'ctest-vn-00253978'], 'port_security_enabled': True, 'description': ''}}
2025-11-21 17:51:23,489 - DEBUG - Response for create_subnet : {'subnet': {'id': '6d5c942e-9a0b-48f6-8f8b-9f40cc25c0c9', 'name': '', 'tenant_id': 'e034ec91f8b34704bc7014f465db4c76', 'network_id': 'a6b94bb8-48ae-45f3-993b-be8295aad0e5', 'ip_version': 4, 'cidr': '190.220.159.192/26', 'allocation_pools': [{'start': '190.220.159.194', 'end': '190.220.159.254'}], 'gateway_ip': '190.220.159.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '190.220.159.194', 'tags': [], 'project_id': 'e034ec91f8b34704bc7014f465db4c76'}}
2025-11-21 17:51:23,516 - INFO - Created VN ctest-vn-00253978
2025-11-21 17:51:23,571 - DEBUG - VN ctest-vn-00253978 UUID is a6b94bb8-48ae-45f3-993b-be8295aad0e5
2025-11-21 17:51:23,917 - DEBUG - Response for create_network : {'network': {'id': '254155dd-b5fa-4c85-811f-28435cb6a9f9', 'name': 'ctest-vn-66446951', 'tenant_id': 'e034ec91f8b34704bc7014f465db4c76', 'project_id': 'e034ec91f8b34704bc7014f465db4c76', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54950600', 'ctest-vn-66446951'], 'port_security_enabled': True, 'description': ''}}
2025-11-21 17:51:24,085 - DEBUG - Response for create_subnet : {'subnet': {'id': '80887973-0cd5-440e-b94f-f938634bf5a3', 'name': '', 'tenant_id': 'e034ec91f8b34704bc7014f465db4c76', 'network_id': '254155dd-b5fa-4c85-811f-28435cb6a9f9', 'ip_version': 4, 'cidr': '114.215.19.192/26', 'allocation_pools': [{'start': '114.215.19.194', 'end': '114.215.19.254'}], 'gateway_ip': '114.215.19.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.215.19.194', 'tags': [], 'project_id': 'e034ec91f8b34704bc7014f465db4c76'}}
2025-11-21 17:51:24,107 - INFO - Created VN ctest-vn-66446951
2025-11-21 17:51:24,163 - DEBUG - VN ctest-vn-66446951 UUID is 254155dd-b5fa-4c85-811f-28435cb6a9f9
2025-11-21 17:51:24,294 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54950600:ctest-vn-00253978, 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-54950600:ctest-vn-66446951, 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-11-21 17:51:24,637 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a6b94bb8-48ae-45f3-993b-be8295aad0e5', 'name': 'ctest-vn-00253978', 'tenant_id': 'e034ec91f8b34704bc7014f465db4c76', 'project_id': 'e034ec91f8b34704bc7014f465db4c76', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6d5c942e-9a0b-48f6-8f8b-9f40cc25c0c9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54950600', 'ctest-vn-00253978'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54950600', 'ctest-policy-allow-all-36624848']], 'subnet_ipam': [{'subnet_cidr': '190.220.159.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-21 17:51:24,940 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '254155dd-b5fa-4c85-811f-28435cb6a9f9', 'name': 'ctest-vn-66446951', 'tenant_id': 'e034ec91f8b34704bc7014f465db4c76', 'project_id': 'e034ec91f8b34704bc7014f465db4c76', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['80887973-0cd5-440e-b94f-f938634bf5a3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54950600', 'ctest-vn-66446951'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54950600', 'ctest-policy-allow-all-36624848']], 'subnet_ipam': [{'subnet_cidr': '114.215.19.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-21 17:51:25,103 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-21 17:51:25,453 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-21 17:51:25,492 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2e9e2302-54c2-4afe-9d57-d7ec484ec2c7
2025-11-21 17:51:25,506 - DEBUG - Requesting: http://10.0.0.38:8082/project/e034ec91-f8b3-4704-bc70-14f465db4c76
2025-11-21 17:51:25,594 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a6b94bb8-48ae-45f3-993b-be8295aad0e5
2025-11-21 17:51:25,610 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a6b94bb8-48ae-45f3-993b-be8295aad0e5
2025-11-21 17:51:25,622 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7b1049e5-9b94-4035-8098-8410c847d1af
2025-11-21 17:51:25,630 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7b1049e5-9b94-4035-8098-8410c847d1af
2025-11-21 17:51:25,639 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c6a16592-3899-4f7c-814c-dfac30fb510b
2025-11-21 17:51:25,647 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-21 17:51:25,647 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a6b94bb8-48ae-45f3-993b-be8295aad0e5
2025-11-21 17:51:25,659 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7b1049e5-9b94-4035-8098-8410c847d1af
2025-11-21 17:51:25,678 - INFO - Verified VN network id 11 for VN a6b94bb8-48ae-45f3-993b-be8295aad0e5
2025-11-21 17:51:25,678 - INFO - Verifications in API Server for VN ctest-vn-00253978 passed
2025-11-21 17:51:25,678 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a6b94bb8-48ae-45f3-993b-be8295aad0e5
2025-11-21 17:51:25,690 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7b1049e5-9b94-4035-8098-8410c847d1af
2025-11-21 17:51:25,699 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7b1049e5-9b94-4035-8098-8410c847d1af
2025-11-21 17:51:25,708 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c6a16592-3899-4f7c-814c-dfac30fb510b
2025-11-21 17:51:25,722 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54950600:ctest-vn-00253978', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54950600', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12013716735852955123', 'uuid-lslong': '11041628379494928613'}, 'enable': 'true', 'created': '2025-11-21T17:51:23', 'last-modified': '2025-11-21T17:51:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.120619'}
2025-11-21 17:51:25,729 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-21 17:51:25,729 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00253978 passed
2025-11-21 17:51:25,729 - DEBUG - ====Verifying policy data for ctest-vn-00253978 in API_Server ======
2025-11-21 17:51:25,729 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-21 17:51:25,736 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2e9e2302-54c2-4afe-9d57-d7ec484ec2c7
2025-11-21 17:51:25,749 - DEBUG - Requesting: http://10.0.0.38:8082/project/e034ec91-f8b3-4704-bc70-14f465db4c76
2025-11-21 17:51:25,828 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a6b94bb8-48ae-45f3-993b-be8295aad0e5
2025-11-21 17:51:25,841 - DEBUG - ==>Verifying data for policy with id: df5ed448-99e0-4b18-80e2-c1a03b584afc, fqn: ['default-domain', 'ctest-TestBasicPolicy-54950600', 'ctest-policy-allow-all-36624848']
2025-11-21 17:51:25,841 - INFO - VN ctest-vn-00253978 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-21 17:51:25,841 - DEBUG - Verifying the vn in opserver
2025-11-21 17:51:25,841 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54950600:ctest-vn-00253978 virtual network link through opserver 10.0.0.38
2025-11-21 17:51:25,841 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-21 17:51:26,183 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-21 17:51:26,260 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54950600:ctest-vn-00253978', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54950600:ctest-vn-00253978?flat'}
2025-11-21 17:51:26,260 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54950600:ctest-vn-00253978 is found in opserver
2025-11-21 17:51:26,272 - DEBUG - Do not have enough data to verify VN in agent
2025-11-21 17:51:26,279 - DEBUG - VRF ids for VN ctest-vn-00253978: {}
2025-11-21 17:51:26,279 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-21 17:51:26,286 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2e9e2302-54c2-4afe-9d57-d7ec484ec2c7
2025-11-21 17:51:26,301 - DEBUG - Requesting: http://10.0.0.38:8082/project/e034ec91-f8b3-4704-bc70-14f465db4c76
2025-11-21 17:51:26,378 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/254155dd-b5fa-4c85-811f-28435cb6a9f9
2025-11-21 17:51:26,392 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/254155dd-b5fa-4c85-811f-28435cb6a9f9
2025-11-21 17:51:26,403 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b27d1350-bd8e-40a8-8975-e59b540d51ab
2025-11-21 17:51:26,413 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b27d1350-bd8e-40a8-8975-e59b540d51ab
2025-11-21 17:51:26,422 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/cb4370a1-c0b2-4f0b-a5f8-f909708a0c8d
2025-11-21 17:51:26,430 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-21 17:51:26,430 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/254155dd-b5fa-4c85-811f-28435cb6a9f9
2025-11-21 17:51:26,440 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b27d1350-bd8e-40a8-8975-e59b540d51ab
2025-11-21 17:51:26,458 - INFO - Verified VN network id 12 for VN 254155dd-b5fa-4c85-811f-28435cb6a9f9
2025-11-21 17:51:26,459 - INFO - Verifications in API Server for VN ctest-vn-66446951 passed
2025-11-21 17:51:26,459 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/254155dd-b5fa-4c85-811f-28435cb6a9f9
2025-11-21 17:51:26,471 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b27d1350-bd8e-40a8-8975-e59b540d51ab
2025-11-21 17:51:26,481 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b27d1350-bd8e-40a8-8975-e59b540d51ab
2025-11-21 17:51:26,490 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/cb4370a1-c0b2-4f0b-a5f8-f909708a0c8d
2025-11-21 17:51:26,507 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54950600:ctest-vn-66446951', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54950600', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2684521263618739333', 'uuid-lslong': '9304199624954128889'}, 'enable': 'true', 'created': '2025-11-21T17:51:23', 'last-modified': '2025-11-21T17:51:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.643650'}
2025-11-21 17:51:26,515 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-21 17:51:26,515 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66446951 passed
2025-11-21 17:51:26,515 - DEBUG - ====Verifying policy data for ctest-vn-66446951 in API_Server ======
2025-11-21 17:51:26,515 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-21 17:51:26,522 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2e9e2302-54c2-4afe-9d57-d7ec484ec2c7
2025-11-21 17:51:26,537 - DEBUG - Requesting: http://10.0.0.38:8082/project/e034ec91-f8b3-4704-bc70-14f465db4c76
2025-11-21 17:51:26,618 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/254155dd-b5fa-4c85-811f-28435cb6a9f9
2025-11-21 17:51:26,629 - DEBUG - ==>Verifying data for policy with id: df5ed448-99e0-4b18-80e2-c1a03b584afc, fqn: ['default-domain', 'ctest-TestBasicPolicy-54950600', 'ctest-policy-allow-all-36624848']
2025-11-21 17:51:26,629 - INFO - VN ctest-vn-66446951 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-21 17:51:26,629 - DEBUG - Verifying the vn in opserver
2025-11-21 17:51:26,629 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54950600:ctest-vn-66446951 virtual network link through opserver 10.0.0.38
2025-11-21 17:51:26,629 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-21 17:51:26,641 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54950600:ctest-vn-66446951', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54950600:ctest-vn-66446951?flat'}
2025-11-21 17:51:26,641 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54950600:ctest-vn-66446951 is found in opserver
2025-11-21 17:51:26,653 - DEBUG - Do not have enough data to verify VN in agent
2025-11-21 17:51:26,659 - DEBUG - VRF ids for VN ctest-vn-66446951: {}
2025-11-21 17:51:26,730 - DEBUG - Services list from nova: [