2025-11-01 16:05:06,213 - INFO - Domain Default found not creating
2025-11-01 16:05:06,364 - INFO - Project ctest-TestBasicPolicy-02862461 not found, creating it
2025-11-01 16:05:06,811 - INFO - Created Project:ctest-TestBasicPolicy-02862461, ID : 06812aaa-270f-4552-82a2-aad63c46287b
2025-11-01 16:05:08,372 - INFO - ================================================================================
2025-11-01 16:05:08,372 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-01 16:05:08,372 - 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-01 16:05:08,625 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-11-01 16:05:08,625 - INFO - Initial checks done. Running the testcase now
2025-11-01 16:05:08,626 - INFO -
2025-11-01 16:05:09,238 - DEBUG - Response for create_network : {'network': {'id': '562fc494-258b-45ee-8ffc-4e100d292b1f', 'name': 'ctest-vn-68510293', 'tenant_id': '06812aaa270f455282a2aad63c46287b', 'project_id': '06812aaa270f455282a2aad63c46287b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02862461', 'ctest-vn-68510293'], 'port_security_enabled': True, 'description': ''}}
2025-11-01 16:05:09,412 - DEBUG - Response for create_subnet : {'subnet': {'id': '921c3b1d-28ab-4910-82e6-f73e04797c9d', 'name': '', 'tenant_id': '06812aaa270f455282a2aad63c46287b', 'network_id': '562fc494-258b-45ee-8ffc-4e100d292b1f', 'ip_version': 4, 'cidr': '3.191.83.0/26', 'allocation_pools': [{'start': '3.191.83.2', 'end': '3.191.83.62'}], 'gateway_ip': '3.191.83.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.191.83.2', 'tags': [], 'project_id': '06812aaa270f455282a2aad63c46287b'}}
2025-11-01 16:05:09,431 - INFO - Created VN ctest-vn-68510293
2025-11-01 16:05:09,484 - DEBUG - VN ctest-vn-68510293 UUID is 562fc494-258b-45ee-8ffc-4e100d292b1f
2025-11-01 16:05:09,796 - DEBUG - Response for create_network : {'network': {'id': '6a546c3e-3cef-4906-bd33-0cf20f8be257', 'name': 'ctest-vn-79442078', 'tenant_id': '06812aaa270f455282a2aad63c46287b', 'project_id': '06812aaa270f455282a2aad63c46287b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02862461', 'ctest-vn-79442078'], 'port_security_enabled': True, 'description': ''}}
2025-11-01 16:05:09,967 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ed17ff0a-7ed9-419a-b7b4-dc5b2a363093', 'name': '', 'tenant_id': '06812aaa270f455282a2aad63c46287b', 'network_id': '6a546c3e-3cef-4906-bd33-0cf20f8be257', 'ip_version': 4, 'cidr': '144.58.86.192/26', 'allocation_pools': [{'start': '144.58.86.194', 'end': '144.58.86.254'}], 'gateway_ip': '144.58.86.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.58.86.194', 'tags': [], 'project_id': '06812aaa270f455282a2aad63c46287b'}}
2025-11-01 16:05:09,989 - INFO - Created VN ctest-vn-79442078
2025-11-01 16:05:10,044 - DEBUG - VN ctest-vn-79442078 UUID is 6a546c3e-3cef-4906-bd33-0cf20f8be257
2025-11-01 16:05:10,177 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-02862461:ctest-vn-68510293, 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-02862461:ctest-vn-79442078, 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-01 16:05:10,499 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '562fc494-258b-45ee-8ffc-4e100d292b1f', 'name': 'ctest-vn-68510293', 'tenant_id': '06812aaa270f455282a2aad63c46287b', 'project_id': '06812aaa270f455282a2aad63c46287b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['921c3b1d-28ab-4910-82e6-f73e04797c9d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02862461', 'ctest-vn-68510293'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02862461', 'ctest-policy-allow-all-83200990']], 'subnet_ipam': [{'subnet_cidr': '3.191.83.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-01 16:05:10,793 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6a546c3e-3cef-4906-bd33-0cf20f8be257', 'name': 'ctest-vn-79442078', 'tenant_id': '06812aaa270f455282a2aad63c46287b', 'project_id': '06812aaa270f455282a2aad63c46287b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ed17ff0a-7ed9-419a-b7b4-dc5b2a363093'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02862461', 'ctest-vn-79442078'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02862461', 'ctest-policy-allow-all-83200990']], 'subnet_ipam': [{'subnet_cidr': '144.58.86.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-01 16:05:10,948 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-01 16:05:11,289 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-01 16:05:11,318 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a2397960-d558-4df0-b58f-1f7a36c527a4
2025-11-01 16:05:11,329 - DEBUG - Requesting: http://10.0.0.50:8082/project/06812aaa-270f-4552-82a2-aad63c46287b
2025-11-01 16:05:11,399 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/562fc494-258b-45ee-8ffc-4e100d292b1f
2025-11-01 16:05:11,409 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/562fc494-258b-45ee-8ffc-4e100d292b1f
2025-11-01 16:05:11,418 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0ee9d95f-f85e-4099-9f4d-6dc4f85f2c69
2025-11-01 16:05:11,425 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0ee9d95f-f85e-4099-9f4d-6dc4f85f2c69
2025-11-01 16:05:11,431 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d15f38fa-f543-4751-9d21-eb7ebe5cf20c
2025-11-01 16:05:11,438 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-01 16:05:11,438 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/562fc494-258b-45ee-8ffc-4e100d292b1f
2025-11-01 16:05:11,446 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0ee9d95f-f85e-4099-9f4d-6dc4f85f2c69
2025-11-01 16:05:11,459 - INFO - Verified VN network id 12 for VN 562fc494-258b-45ee-8ffc-4e100d292b1f
2025-11-01 16:05:11,459 - INFO - Verifications in API Server for VN ctest-vn-68510293 passed
2025-11-01 16:05:11,459 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/562fc494-258b-45ee-8ffc-4e100d292b1f
2025-11-01 16:05:11,467 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0ee9d95f-f85e-4099-9f4d-6dc4f85f2c69
2025-11-01 16:05:11,473 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0ee9d95f-f85e-4099-9f4d-6dc4f85f2c69
2025-11-01 16:05:11,479 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d15f38fa-f543-4751-9d21-eb7ebe5cf20c
2025-11-01 16:05:11,489 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02862461:ctest-vn-68510293', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02862461', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6210398551731291630', 'uuid-lslong': '10375253472402025247'}, 'enable': 'true', 'created': '2025-11-01T16:05:09', 'last-modified': '2025-11-01T16:05:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.014512'}
2025-11-01 16:05:11,495 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-01 16:05:11,496 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68510293 passed
2025-11-01 16:05:11,497 - DEBUG - ====Verifying policy data for ctest-vn-68510293 in API_Server ======
2025-11-01 16:05:11,497 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-01 16:05:11,501 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a2397960-d558-4df0-b58f-1f7a36c527a4
2025-11-01 16:05:11,512 - DEBUG - Requesting: http://10.0.0.50:8082/project/06812aaa-270f-4552-82a2-aad63c46287b
2025-11-01 16:05:11,581 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/562fc494-258b-45ee-8ffc-4e100d292b1f
2025-11-01 16:05:11,590 - DEBUG - ==>Verifying data for policy with id: ffba66c7-bc3d-4441-a2d5-a5c511432051, fqn: ['default-domain', 'ctest-TestBasicPolicy-02862461', 'ctest-policy-allow-all-83200990']
2025-11-01 16:05:11,590 - INFO - VN ctest-vn-68510293 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-01 16:05:11,590 - DEBUG - Verifying the vn in opserver
2025-11-01 16:05:11,590 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02862461:ctest-vn-68510293 virtual network link through opserver 10.0.0.50
2025-11-01 16:05:11,590 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-01 16:05:11,920 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-01 16:05:11,975 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02862461:ctest-vn-68510293', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02862461:ctest-vn-68510293?flat'}
2025-11-01 16:05:11,975 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02862461:ctest-vn-68510293 is found in opserver
2025-11-01 16:05:11,984 - DEBUG - Do not have enough data to verify VN in agent
2025-11-01 16:05:11,988 - DEBUG - VRF ids for VN ctest-vn-68510293: {}
2025-11-01 16:05:11,988 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-01 16:05:11,993 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a2397960-d558-4df0-b58f-1f7a36c527a4
2025-11-01 16:05:12,004 - DEBUG - Requesting: http://10.0.0.50:8082/project/06812aaa-270f-4552-82a2-aad63c46287b
2025-11-01 16:05:12,074 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6a546c3e-3cef-4906-bd33-0cf20f8be257
2025-11-01 16:05:12,090 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6a546c3e-3cef-4906-bd33-0cf20f8be257
2025-11-01 16:05:12,098 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8d9089bd-2424-49eb-8b3c-2662310edd81
2025-11-01 16:05:12,105 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8d9089bd-2424-49eb-8b3c-2662310edd81
2025-11-01 16:05:12,110 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/3c480724-2137-4292-9cdc-aa91586d79d0
2025-11-01 16:05:12,116 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-01 16:05:12,116 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6a546c3e-3cef-4906-bd33-0cf20f8be257
2025-11-01 16:05:12,124 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8d9089bd-2424-49eb-8b3c-2662310edd81
2025-11-01 16:05:12,136 - INFO - Verified VN network id 13 for VN 6a546c3e-3cef-4906-bd33-0cf20f8be257
2025-11-01 16:05:12,136 - INFO - Verifications in API Server for VN ctest-vn-79442078 passed
2025-11-01 16:05:12,136 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6a546c3e-3cef-4906-bd33-0cf20f8be257
2025-11-01 16:05:12,144 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8d9089bd-2424-49eb-8b3c-2662310edd81
2025-11-01 16:05:12,150 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8d9089bd-2424-49eb-8b3c-2662310edd81
2025-11-01 16:05:12,156 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/3c480724-2137-4292-9cdc-aa91586d79d0
2025-11-01 16:05:12,166 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02862461:ctest-vn-79442078', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02862461', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7661867880630143238', 'uuid-lslong': '13633254730763067991'}, 'enable': 'true', 'created': '2025-11-01T16:05:09', 'last-modified': '2025-11-01T16:05:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.439598'}
2025-11-01 16:05:12,173 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-01 16:05:12,173 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79442078 passed
2025-11-01 16:05:12,173 - DEBUG - ====Verifying policy data for ctest-vn-79442078 in API_Server ======
2025-11-01 16:05:12,173 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-01 16:05:12,178 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a2397960-d558-4df0-b58f-1f7a36c527a4
2025-11-01 16:05:12,188 - DEBUG - Requesting: http://10.0.0.50:8082/project/06812aaa-270f-4552-82a2-aad63c46287b
2025-11-01 16:05:12,257 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6a546c3e-3cef-4906-bd33-0cf20f8be257
2025-11-01 16:05:12,266 - DEBUG - ==>Verifying data for policy with id: ffba66c7-bc3d-4441-a2d5-a5c511432051, fqn: ['default-domain', 'ctest-TestBasicPolicy-02862461', 'ctest-policy-allow-all-83200990']
2025-11-01 16:05:12,266 - INFO - VN ctest-vn-79442078 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-01 16:05:12,266 - DEBUG - Verifying the vn in opserver
2025-11-01 16:05:12,266 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02862461:ctest-vn-79442078 virtual network link through opserver 10.0.0.50
2025-11-01 16:05:12,266 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-01 16:05:12,275 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02862461:ctest-vn-79442078', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02862461:ctest-vn-79442078?flat'}
2025-11-01 16:05:12,275 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02862461:ctest-vn-79442078 is found in opserver
2025-11-01 16:05:12,284 - DEBUG - Do not have enough data to verify VN in agent
2025-11-01 16:05:12,288 - DEBUG - VRF ids for VN ctest-vn-79442078: {}
2025-11-01 16:05:12,346 - DEBUG - Services list from nova: [