2025-11-07 15:52:01,914 - INFO - Domain Default found not creating
2025-11-07 15:52:02,105 - INFO - Project ctest-TestBasicPolicy-64425439 not found, creating it
2025-11-07 15:52:02,587 - INFO - Created Project:ctest-TestBasicPolicy-64425439, ID : 2bf22d15-f460-432c-9f13-f4d4cba2871a
2025-11-07 15:52:04,084 - INFO - ================================================================================
2025-11-07 15:52:04,085 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-07 15:52:04,085 - 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-07 15:52:04,344 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.18': '0'}} with
2025-11-07 15:52:04,344 - INFO - Initial checks done. Running the testcase now
2025-11-07 15:52:04,344 - INFO -
2025-11-07 15:52:04,947 - DEBUG - Response for create_network : {'network': {'id': 'f6a4c0f5-bb45-4ccc-83eb-f3baf82112e1', 'name': 'ctest-vn-34645086', 'tenant_id': '2bf22d15f460432c9f13f4d4cba2871a', 'project_id': '2bf22d15f460432c9f13f4d4cba2871a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64425439', 'ctest-vn-34645086'], 'port_security_enabled': True, 'description': ''}}
2025-11-07 15:52:05,163 - DEBUG - Response for create_subnet : {'subnet': {'id': '68024be5-f40e-4ca3-9c0b-1247b7944a06', 'name': '', 'tenant_id': '2bf22d15f460432c9f13f4d4cba2871a', 'network_id': 'f6a4c0f5-bb45-4ccc-83eb-f3baf82112e1', 'ip_version': 4, 'cidr': '25.176.40.0/26', 'allocation_pools': [{'start': '25.176.40.2', 'end': '25.176.40.62'}], 'gateway_ip': '25.176.40.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.176.40.2', 'tags': [], 'project_id': '2bf22d15f460432c9f13f4d4cba2871a'}}
2025-11-07 15:52:05,183 - INFO - Created VN ctest-vn-34645086
2025-11-07 15:52:05,237 - DEBUG - VN ctest-vn-34645086 UUID is f6a4c0f5-bb45-4ccc-83eb-f3baf82112e1
2025-11-07 15:52:05,552 - DEBUG - Response for create_network : {'network': {'id': 'a15d3d06-a21b-4a05-9a02-b17fd66c31db', 'name': 'ctest-vn-01866158', 'tenant_id': '2bf22d15f460432c9f13f4d4cba2871a', 'project_id': '2bf22d15f460432c9f13f4d4cba2871a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64425439', 'ctest-vn-01866158'], 'port_security_enabled': True, 'description': ''}}
2025-11-07 15:52:05,769 - DEBUG - Response for create_subnet : {'subnet': {'id': '71112839-60a8-42c9-a233-0a970557d24b', 'name': '', 'tenant_id': '2bf22d15f460432c9f13f4d4cba2871a', 'network_id': 'a15d3d06-a21b-4a05-9a02-b17fd66c31db', 'ip_version': 4, 'cidr': '130.108.189.64/26', 'allocation_pools': [{'start': '130.108.189.66', 'end': '130.108.189.126'}], 'gateway_ip': '130.108.189.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.108.189.66', 'tags': [], 'project_id': '2bf22d15f460432c9f13f4d4cba2871a'}}
2025-11-07 15:52:05,789 - INFO - Created VN ctest-vn-01866158
2025-11-07 15:52:05,841 - DEBUG - VN ctest-vn-01866158 UUID is a15d3d06-a21b-4a05-9a02-b17fd66c31db
2025-11-07 15:52:05,968 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-64425439:ctest-vn-34645086, 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-64425439:ctest-vn-01866158, 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-07 15:52:06,288 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f6a4c0f5-bb45-4ccc-83eb-f3baf82112e1', 'name': 'ctest-vn-34645086', 'tenant_id': '2bf22d15f460432c9f13f4d4cba2871a', 'project_id': '2bf22d15f460432c9f13f4d4cba2871a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['68024be5-f40e-4ca3-9c0b-1247b7944a06'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64425439', 'ctest-vn-34645086'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64425439', 'ctest-policy-allow-all-34640669']], 'subnet_ipam': [{'subnet_cidr': '25.176.40.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-07 15:52:06,529 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a15d3d06-a21b-4a05-9a02-b17fd66c31db', 'name': 'ctest-vn-01866158', 'tenant_id': '2bf22d15f460432c9f13f4d4cba2871a', 'project_id': '2bf22d15f460432c9f13f4d4cba2871a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['71112839-60a8-42c9-a233-0a970557d24b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64425439', 'ctest-vn-01866158'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64425439', 'ctest-policy-allow-all-34640669']], 'subnet_ipam': [{'subnet_cidr': '130.108.189.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-07 15:52:06,677 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-11-07 15:52:06,981 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-11-07 15:52:07,012 - DEBUG - Requesting: http://10.0.0.242:8082/domain/860d3f7d-0152-4986-8a9b-26dbb8901334
2025-11-07 15:52:07,025 - DEBUG - Requesting: http://10.0.0.242:8082/project/2bf22d15-f460-432c-9f13-f4d4cba2871a
2025-11-07 15:52:07,104 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/f6a4c0f5-bb45-4ccc-83eb-f3baf82112e1
2025-11-07 15:52:07,116 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/f6a4c0f5-bb45-4ccc-83eb-f3baf82112e1
2025-11-07 15:52:07,128 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/f8854450-8a5a-495b-ae1a-fad3fa6bc86b
2025-11-07 15:52:07,137 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/f8854450-8a5a-495b-ae1a-fad3fa6bc86b
2025-11-07 15:52:07,146 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/6e974d79-66fc-49e8-89fd-7bcfbd0fade8
2025-11-07 15:52:07,153 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-07 15:52:07,153 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/f6a4c0f5-bb45-4ccc-83eb-f3baf82112e1
2025-11-07 15:52:07,165 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/f8854450-8a5a-495b-ae1a-fad3fa6bc86b
2025-11-07 15:52:07,180 - INFO - Verified VN network id 11 for VN f6a4c0f5-bb45-4ccc-83eb-f3baf82112e1
2025-11-07 15:52:07,180 - INFO - Verifications in API Server for VN ctest-vn-34645086 passed
2025-11-07 15:52:07,180 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/f6a4c0f5-bb45-4ccc-83eb-f3baf82112e1
2025-11-07 15:52:07,191 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/f8854450-8a5a-495b-ae1a-fad3fa6bc86b
2025-11-07 15:52:07,202 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/f8854450-8a5a-495b-ae1a-fad3fa6bc86b
2025-11-07 15:52:07,211 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/6e974d79-66fc-49e8-89fd-7bcfbd0fade8
2025-11-07 15:52:07,224 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64425439:ctest-vn-34645086', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64425439', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17772542191152221388', 'uuid-lslong': '9505959422847947489'}, 'enable': 'true', 'created': '2025-11-07T15:52:04', 'last-modified': '2025-11-07T15:52:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.965775'}
2025-11-07 15:52:07,232 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-07 15:52:07,232 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34645086 passed
2025-11-07 15:52:07,232 - DEBUG - ====Verifying policy data for ctest-vn-34645086 in API_Server ======
2025-11-07 15:52:07,232 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-11-07 15:52:07,238 - DEBUG - Requesting: http://10.0.0.242:8082/domain/860d3f7d-0152-4986-8a9b-26dbb8901334
2025-11-07 15:52:07,249 - DEBUG - Requesting: http://10.0.0.242:8082/project/2bf22d15-f460-432c-9f13-f4d4cba2871a
2025-11-07 15:52:07,318 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/f6a4c0f5-bb45-4ccc-83eb-f3baf82112e1
2025-11-07 15:52:07,333 - DEBUG - ==>Verifying data for policy with id: 8879c735-bdfd-4265-bec7-773ec2a217f5, fqn: ['default-domain', 'ctest-TestBasicPolicy-64425439', 'ctest-policy-allow-all-34640669']
2025-11-07 15:52:07,333 - INFO - VN ctest-vn-34645086 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-07 15:52:07,333 - DEBUG - Verifying the vn in opserver
2025-11-07 15:52:07,333 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64425439:ctest-vn-34645086 virtual network link through opserver 10.0.0.242
2025-11-07 15:52:07,333 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-11-07 15:52:07,632 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-11-07 15:52:07,724 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64425439:ctest-vn-34645086', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64425439:ctest-vn-34645086?flat'}
2025-11-07 15:52:07,724 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64425439:ctest-vn-34645086 is found in opserver
2025-11-07 15:52:07,740 - DEBUG - Do not have enough data to verify VN in agent
2025-11-07 15:52:07,746 - DEBUG - VRF ids for VN ctest-vn-34645086: {}
2025-11-07 15:52:07,746 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-11-07 15:52:07,754 - DEBUG - Requesting: http://10.0.0.242:8082/domain/860d3f7d-0152-4986-8a9b-26dbb8901334
2025-11-07 15:52:07,767 - DEBUG - Requesting: http://10.0.0.242:8082/project/2bf22d15-f460-432c-9f13-f4d4cba2871a
2025-11-07 15:52:07,850 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a15d3d06-a21b-4a05-9a02-b17fd66c31db
2025-11-07 15:52:07,863 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a15d3d06-a21b-4a05-9a02-b17fd66c31db
2025-11-07 15:52:07,873 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7748a146-9e05-4fbc-9333-be03cf7999c1
2025-11-07 15:52:07,880 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7748a146-9e05-4fbc-9333-be03cf7999c1
2025-11-07 15:52:07,888 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/bf2e0f49-ff36-4d68-b80a-104a3784a9f4
2025-11-07 15:52:07,895 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-07 15:52:07,895 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a15d3d06-a21b-4a05-9a02-b17fd66c31db
2025-11-07 15:52:07,904 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7748a146-9e05-4fbc-9333-be03cf7999c1
2025-11-07 15:52:07,920 - INFO - Verified VN network id 12 for VN a15d3d06-a21b-4a05-9a02-b17fd66c31db
2025-11-07 15:52:07,920 - INFO - Verifications in API Server for VN ctest-vn-01866158 passed
2025-11-07 15:52:07,920 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a15d3d06-a21b-4a05-9a02-b17fd66c31db
2025-11-07 15:52:07,930 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7748a146-9e05-4fbc-9333-be03cf7999c1
2025-11-07 15:52:07,939 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7748a146-9e05-4fbc-9333-be03cf7999c1
2025-11-07 15:52:07,948 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/bf2e0f49-ff36-4d68-b80a-104a3784a9f4
2025-11-07 15:52:07,961 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64425439:ctest-vn-01866158', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64425439', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11627516911639284229', 'uuid-lslong': '11097627594410701275'}, 'enable': 'true', 'created': '2025-11-07T15:52:05', 'last-modified': '2025-11-07T15:52:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.458941'}
2025-11-07 15:52:07,968 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-07 15:52:07,968 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01866158 passed
2025-11-07 15:52:07,968 - DEBUG - ====Verifying policy data for ctest-vn-01866158 in API_Server ======
2025-11-07 15:52:07,968 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-11-07 15:52:07,975 - DEBUG - Requesting: http://10.0.0.242:8082/domain/860d3f7d-0152-4986-8a9b-26dbb8901334
2025-11-07 15:52:07,988 - DEBUG - Requesting: http://10.0.0.242:8082/project/2bf22d15-f460-432c-9f13-f4d4cba2871a
2025-11-07 15:52:08,061 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a15d3d06-a21b-4a05-9a02-b17fd66c31db
2025-11-07 15:52:08,073 - DEBUG - ==>Verifying data for policy with id: 8879c735-bdfd-4265-bec7-773ec2a217f5, fqn: ['default-domain', 'ctest-TestBasicPolicy-64425439', 'ctest-policy-allow-all-34640669']
2025-11-07 15:52:08,073 - INFO - VN ctest-vn-01866158 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-07 15:52:08,074 - DEBUG - Verifying the vn in opserver
2025-11-07 15:52:08,074 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64425439:ctest-vn-01866158 virtual network link through opserver 10.0.0.242
2025-11-07 15:52:08,074 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-11-07 15:52:08,085 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64425439:ctest-vn-01866158', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64425439:ctest-vn-01866158?flat'}
2025-11-07 15:52:08,085 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64425439:ctest-vn-01866158 is found in opserver
2025-11-07 15:52:08,096 - DEBUG - Do not have enough data to verify VN in agent
2025-11-07 15:52:08,103 - DEBUG - VRF ids for VN ctest-vn-01866158: {}
2025-11-07 15:52:08,170 - DEBUG - Services list from nova: [