2025-11-04 13:58:03,644 - INFO - Domain Default found not creating
2025-11-04 13:58:03,818 - INFO - Project ctest-TestBasicPolicy-40404008 not found, creating it
2025-11-04 13:58:04,251 - INFO - Created Project:ctest-TestBasicPolicy-40404008, ID : 69de9395-97d4-461d-9c4c-550be9c1eba9
2025-11-04 13:58:05,597 - INFO - ================================================================================
2025-11-04 13:58:05,597 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-04 13:58:05,597 - 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-04 13:58:05,858 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-11-04 13:58:05,858 - INFO - Initial checks done. Running the testcase now
2025-11-04 13:58:05,858 - INFO -
2025-11-04 13:58:06,355 - DEBUG - Response for create_network : {'network': {'id': '4d862780-137c-4480-b397-2e216a01f66a', 'name': 'ctest-vn-86461160', 'tenant_id': '69de939597d4461d9c4c550be9c1eba9', 'project_id': '69de939597d4461d9c4c550be9c1eba9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40404008', 'ctest-vn-86461160'], 'port_security_enabled': True, 'description': ''}}
2025-11-04 13:58:06,505 - DEBUG - Response for create_subnet : {'subnet': {'id': '06b8e119-0916-4617-a899-13a0f14e4be9', 'name': '', 'tenant_id': '69de939597d4461d9c4c550be9c1eba9', 'network_id': '4d862780-137c-4480-b397-2e216a01f66a', 'ip_version': 4, 'cidr': '24.234.16.192/26', 'allocation_pools': [{'start': '24.234.16.194', 'end': '24.234.16.254'}], 'gateway_ip': '24.234.16.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.234.16.194', 'tags': [], 'project_id': '69de939597d4461d9c4c550be9c1eba9'}}
2025-11-04 13:58:06,525 - INFO - Created VN ctest-vn-86461160
2025-11-04 13:58:06,577 - DEBUG - VN ctest-vn-86461160 UUID is 4d862780-137c-4480-b397-2e216a01f66a
2025-11-04 13:58:06,896 - DEBUG - Response for create_network : {'network': {'id': '04749bda-7c29-48a6-9cd4-f36cdd5c0a28', 'name': 'ctest-vn-73325900', 'tenant_id': '69de939597d4461d9c4c550be9c1eba9', 'project_id': '69de939597d4461d9c4c550be9c1eba9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40404008', 'ctest-vn-73325900'], 'port_security_enabled': True, 'description': ''}}
2025-11-04 13:58:07,043 - DEBUG - Response for create_subnet : {'subnet': {'id': 'db3d65be-b0fc-4afb-b8ef-62d65f5c6f95', 'name': '', 'tenant_id': '69de939597d4461d9c4c550be9c1eba9', 'network_id': '04749bda-7c29-48a6-9cd4-f36cdd5c0a28', 'ip_version': 4, 'cidr': '195.188.88.128/26', 'allocation_pools': [{'start': '195.188.88.130', 'end': '195.188.88.190'}], 'gateway_ip': '195.188.88.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '195.188.88.130', 'tags': [], 'project_id': '69de939597d4461d9c4c550be9c1eba9'}}
2025-11-04 13:58:07,059 - INFO - Created VN ctest-vn-73325900
2025-11-04 13:58:07,109 - DEBUG - VN ctest-vn-73325900 UUID is 04749bda-7c29-48a6-9cd4-f36cdd5c0a28
2025-11-04 13:58:07,220 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40404008:ctest-vn-86461160, 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-40404008:ctest-vn-73325900, 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-04 13:58:07,520 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4d862780-137c-4480-b397-2e216a01f66a', 'name': 'ctest-vn-86461160', 'tenant_id': '69de939597d4461d9c4c550be9c1eba9', 'project_id': '69de939597d4461d9c4c550be9c1eba9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['06b8e119-0916-4617-a899-13a0f14e4be9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40404008', 'ctest-vn-86461160'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40404008', 'ctest-policy-allow-all-74754954']], 'subnet_ipam': [{'subnet_cidr': '24.234.16.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-04 13:58:07,746 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '04749bda-7c29-48a6-9cd4-f36cdd5c0a28', 'name': 'ctest-vn-73325900', 'tenant_id': '69de939597d4461d9c4c550be9c1eba9', 'project_id': '69de939597d4461d9c4c550be9c1eba9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['db3d65be-b0fc-4afb-b8ef-62d65f5c6f95'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40404008', 'ctest-vn-73325900'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40404008', 'ctest-policy-allow-all-74754954']], 'subnet_ipam': [{'subnet_cidr': '195.188.88.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-04 13:58:07,913 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-04 13:58:08,208 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-04 13:58:08,235 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3507ae07-c3d7-4704-ae8e-493c0eb5d9a3
2025-11-04 13:58:08,246 - DEBUG - Requesting: http://10.0.0.50:8082/project/69de9395-97d4-461d-9c4c-550be9c1eba9
2025-11-04 13:58:08,321 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4d862780-137c-4480-b397-2e216a01f66a
2025-11-04 13:58:08,330 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4d862780-137c-4480-b397-2e216a01f66a
2025-11-04 13:58:08,338 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/263f167c-ec8b-44a5-b873-c1786bd822c4
2025-11-04 13:58:08,345 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/263f167c-ec8b-44a5-b873-c1786bd822c4
2025-11-04 13:58:08,351 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/09aa7dca-09ff-43f2-803f-2f307c00ab7c
2025-11-04 13:58:08,357 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-04 13:58:08,357 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4d862780-137c-4480-b397-2e216a01f66a
2025-11-04 13:58:08,365 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/263f167c-ec8b-44a5-b873-c1786bd822c4
2025-11-04 13:58:08,379 - INFO - Verified VN network id 12 for VN 4d862780-137c-4480-b397-2e216a01f66a
2025-11-04 13:58:08,379 - INFO - Verifications in API Server for VN ctest-vn-86461160 passed
2025-11-04 13:58:08,379 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4d862780-137c-4480-b397-2e216a01f66a
2025-11-04 13:58:08,387 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/263f167c-ec8b-44a5-b873-c1786bd822c4
2025-11-04 13:58:08,394 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/263f167c-ec8b-44a5-b873-c1786bd822c4
2025-11-04 13:58:08,400 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/09aa7dca-09ff-43f2-803f-2f307c00ab7c
2025-11-04 13:58:08,411 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40404008:ctest-vn-86461160', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40404008', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5586195818835887232', 'uuid-lslong': '12940862775319721578'}, 'enable': 'true', 'created': '2025-11-04T13:58:06', 'last-modified': '2025-11-04T13:58:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.911476'}
2025-11-04 13:58:08,419 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-04 13:58:08,419 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86461160 passed
2025-11-04 13:58:08,419 - DEBUG - ====Verifying policy data for ctest-vn-86461160 in API_Server ======
2025-11-04 13:58:08,419 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-04 13:58:08,425 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3507ae07-c3d7-4704-ae8e-493c0eb5d9a3
2025-11-04 13:58:08,435 - DEBUG - Requesting: http://10.0.0.50:8082/project/69de9395-97d4-461d-9c4c-550be9c1eba9
2025-11-04 13:58:08,502 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4d862780-137c-4480-b397-2e216a01f66a
2025-11-04 13:58:08,509 - DEBUG - ==>Verifying data for policy with id: a216796f-7ad6-4c2f-bd52-4fec0cd3bb1b, fqn: ['default-domain', 'ctest-TestBasicPolicy-40404008', 'ctest-policy-allow-all-74754954']
2025-11-04 13:58:08,510 - INFO - VN ctest-vn-86461160 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-04 13:58:08,510 - DEBUG - Verifying the vn in opserver
2025-11-04 13:58:08,510 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40404008:ctest-vn-86461160 virtual network link through opserver 10.0.0.50
2025-11-04 13:58:08,510 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-04 13:58:08,798 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-04 13:58:08,853 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40404008:ctest-vn-86461160', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40404008:ctest-vn-86461160?flat'}
2025-11-04 13:58:08,853 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40404008:ctest-vn-86461160 is found in opserver
2025-11-04 13:58:08,861 - DEBUG - Do not have enough data to verify VN in agent
2025-11-04 13:58:08,865 - DEBUG - VRF ids for VN ctest-vn-86461160: {}
2025-11-04 13:58:08,865 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-04 13:58:08,870 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3507ae07-c3d7-4704-ae8e-493c0eb5d9a3
2025-11-04 13:58:08,878 - DEBUG - Requesting: http://10.0.0.50:8082/project/69de9395-97d4-461d-9c4c-550be9c1eba9
2025-11-04 13:58:08,942 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/04749bda-7c29-48a6-9cd4-f36cdd5c0a28
2025-11-04 13:58:08,952 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/04749bda-7c29-48a6-9cd4-f36cdd5c0a28
2025-11-04 13:58:08,959 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3830e506-e1b2-41be-a510-3f47f687cc9f
2025-11-04 13:58:08,965 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3830e506-e1b2-41be-a510-3f47f687cc9f
2025-11-04 13:58:08,970 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/25081cf7-2a10-4e0f-bb07-7f0501e7b373
2025-11-04 13:58:08,975 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-04 13:58:08,975 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/04749bda-7c29-48a6-9cd4-f36cdd5c0a28
2025-11-04 13:58:08,982 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3830e506-e1b2-41be-a510-3f47f687cc9f
2025-11-04 13:58:08,993 - INFO - Verified VN network id 13 for VN 04749bda-7c29-48a6-9cd4-f36cdd5c0a28
2025-11-04 13:58:08,993 - INFO - Verifications in API Server for VN ctest-vn-73325900 passed
2025-11-04 13:58:08,993 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/04749bda-7c29-48a6-9cd4-f36cdd5c0a28
2025-11-04 13:58:09,001 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3830e506-e1b2-41be-a510-3f47f687cc9f
2025-11-04 13:58:09,006 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3830e506-e1b2-41be-a510-3f47f687cc9f
2025-11-04 13:58:09,011 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/25081cf7-2a10-4e0f-bb07-7f0501e7b373
2025-11-04 13:58:09,022 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40404008:ctest-vn-73325900', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40404008', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '321052836138404006', 'uuid-lslong': '11300925013875231272'}, 'enable': 'true', 'created': '2025-11-04T13:58:06', 'last-modified': '2025-11-04T13:58:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.299769'}
2025-11-04 13:58:09,027 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-04 13:58:09,027 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73325900 passed
2025-11-04 13:58:09,027 - DEBUG - ====Verifying policy data for ctest-vn-73325900 in API_Server ======
2025-11-04 13:58:09,027 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-04 13:58:09,032 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3507ae07-c3d7-4704-ae8e-493c0eb5d9a3
2025-11-04 13:58:09,042 - DEBUG - Requesting: http://10.0.0.50:8082/project/69de9395-97d4-461d-9c4c-550be9c1eba9
2025-11-04 13:58:09,111 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/04749bda-7c29-48a6-9cd4-f36cdd5c0a28
2025-11-04 13:58:09,119 - DEBUG - ==>Verifying data for policy with id: a216796f-7ad6-4c2f-bd52-4fec0cd3bb1b, fqn: ['default-domain', 'ctest-TestBasicPolicy-40404008', 'ctest-policy-allow-all-74754954']
2025-11-04 13:58:09,119 - INFO - VN ctest-vn-73325900 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-04 13:58:09,119 - DEBUG - Verifying the vn in opserver
2025-11-04 13:58:09,119 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40404008:ctest-vn-73325900 virtual network link through opserver 10.0.0.50
2025-11-04 13:58:09,119 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-04 13:58:09,128 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40404008:ctest-vn-73325900', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40404008:ctest-vn-73325900?flat'}
2025-11-04 13:58:09,128 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40404008:ctest-vn-73325900 is found in opserver
2025-11-04 13:58:09,136 - DEBUG - Do not have enough data to verify VN in agent
2025-11-04 13:58:09,140 - DEBUG - VRF ids for VN ctest-vn-73325900: {}
2025-11-04 13:58:09,204 - DEBUG - Services list from nova: [