2025-10-11 21:41:38,012 - INFO - Domain Default found not creating
2025-10-11 21:41:38,133 - INFO - Project ctest-TestBasicPolicy-83323680 not found, creating it
2025-10-11 21:41:38,536 - INFO - Created Project:ctest-TestBasicPolicy-83323680, ID : a2071e3b-ea8e-48a4-b40d-a2d4f04aa18a
2025-10-11 21:41:39,845 - INFO - ================================================================================
2025-10-11 21:41:39,845 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-11 21:41:39,845 - 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-11 21:41:40,103 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-10-11 21:41:40,103 - INFO - Initial checks done. Running the testcase now
2025-10-11 21:41:40,103 - INFO -
2025-10-11 21:41:40,634 - DEBUG - Response for create_network : {'network': {'id': '5818acce-50b2-4285-81ab-0e1625b9c79d', 'name': 'ctest-vn-77212011', 'tenant_id': 'a2071e3bea8e48a4b40da2d4f04aa18a', 'project_id': 'a2071e3bea8e48a4b40da2d4f04aa18a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83323680', 'ctest-vn-77212011'], 'port_security_enabled': True, 'description': ''}}
2025-10-11 21:41:40,837 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cb7a050a-8b7a-4a30-9c7d-34b22af46bef', 'name': '', 'tenant_id': 'a2071e3bea8e48a4b40da2d4f04aa18a', 'network_id': '5818acce-50b2-4285-81ab-0e1625b9c79d', 'ip_version': 4, 'cidr': '119.137.30.128/26', 'allocation_pools': [{'start': '119.137.30.130', 'end': '119.137.30.190'}], 'gateway_ip': '119.137.30.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '119.137.30.130', 'tags': [], 'project_id': 'a2071e3bea8e48a4b40da2d4f04aa18a'}}
2025-10-11 21:41:40,852 - INFO - Created VN ctest-vn-77212011
2025-10-11 21:41:40,903 - DEBUG - VN ctest-vn-77212011 UUID is 5818acce-50b2-4285-81ab-0e1625b9c79d
2025-10-11 21:41:41,190 - DEBUG - Response for create_network : {'network': {'id': '1dbbd4dc-8368-4096-9450-bf80845f876c', 'name': 'ctest-vn-80931202', 'tenant_id': 'a2071e3bea8e48a4b40da2d4f04aa18a', 'project_id': 'a2071e3bea8e48a4b40da2d4f04aa18a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83323680', 'ctest-vn-80931202'], 'port_security_enabled': True, 'description': ''}}
2025-10-11 21:41:41,445 - DEBUG - Response for create_subnet : {'subnet': {'id': '0027029c-bb44-4da5-8177-d356a2efb35b', 'name': '', 'tenant_id': 'a2071e3bea8e48a4b40da2d4f04aa18a', 'network_id': '1dbbd4dc-8368-4096-9450-bf80845f876c', 'ip_version': 4, 'cidr': '112.164.40.0/26', 'allocation_pools': [{'start': '112.164.40.2', 'end': '112.164.40.62'}], 'gateway_ip': '112.164.40.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.164.40.2', 'tags': [], 'project_id': 'a2071e3bea8e48a4b40da2d4f04aa18a'}}
2025-10-11 21:41:41,460 - INFO - Created VN ctest-vn-80931202
2025-10-11 21:41:41,511 - DEBUG - VN ctest-vn-80931202 UUID is 1dbbd4dc-8368-4096-9450-bf80845f876c
2025-10-11 21:41:41,651 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-83323680:ctest-vn-77212011, 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-83323680:ctest-vn-80931202, 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-11 21:41:41,949 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5818acce-50b2-4285-81ab-0e1625b9c79d', 'name': 'ctest-vn-77212011', 'tenant_id': 'a2071e3bea8e48a4b40da2d4f04aa18a', 'project_id': 'a2071e3bea8e48a4b40da2d4f04aa18a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cb7a050a-8b7a-4a30-9c7d-34b22af46bef'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83323680', 'ctest-vn-77212011'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83323680', 'ctest-policy-allow-all-87464376']], 'subnet_ipam': [{'subnet_cidr': '119.137.30.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-11 21:41:42,167 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1dbbd4dc-8368-4096-9450-bf80845f876c', 'name': 'ctest-vn-80931202', 'tenant_id': 'a2071e3bea8e48a4b40da2d4f04aa18a', 'project_id': 'a2071e3bea8e48a4b40da2d4f04aa18a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0027029c-bb44-4da5-8177-d356a2efb35b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83323680', 'ctest-vn-80931202'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83323680', 'ctest-policy-allow-all-87464376']], 'subnet_ipam': [{'subnet_cidr': '112.164.40.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-11 21:41:42,323 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-11 21:41:42,612 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-11 21:41:42,634 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4a83baed-c43f-4dde-b817-e9cb23b4da22
2025-10-11 21:41:42,643 - DEBUG - Requesting: http://10.0.0.38:8082/project/a2071e3b-ea8e-48a4-b40d-a2d4f04aa18a
2025-10-11 21:41:42,710 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5818acce-50b2-4285-81ab-0e1625b9c79d
2025-10-11 21:41:42,719 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5818acce-50b2-4285-81ab-0e1625b9c79d
2025-10-11 21:41:42,726 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/35efe9c2-6dbc-4cfc-81e4-2d1e942da3d1
2025-10-11 21:41:42,730 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/35efe9c2-6dbc-4cfc-81e4-2d1e942da3d1
2025-10-11 21:41:42,735 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d78612fc-91ae-4336-8325-2a8bfeb8dc7e
2025-10-11 21:41:42,740 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-11 21:41:42,740 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5818acce-50b2-4285-81ab-0e1625b9c79d
2025-10-11 21:41:42,746 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/35efe9c2-6dbc-4cfc-81e4-2d1e942da3d1
2025-10-11 21:41:42,756 - INFO - Verified VN network id 9 for VN 5818acce-50b2-4285-81ab-0e1625b9c79d
2025-10-11 21:41:42,757 - INFO - Verifications in API Server for VN ctest-vn-77212011 passed
2025-10-11 21:41:42,757 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5818acce-50b2-4285-81ab-0e1625b9c79d
2025-10-11 21:41:42,765 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/35efe9c2-6dbc-4cfc-81e4-2d1e942da3d1
2025-10-11 21:41:42,771 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/35efe9c2-6dbc-4cfc-81e4-2d1e942da3d1
2025-10-11 21:41:42,776 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d78612fc-91ae-4336-8325-2a8bfeb8dc7e
2025-10-11 21:41:42,786 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83323680:ctest-vn-77212011', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83323680', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6348013676895814277', 'uuid-lslong': '9343577340195227549'}, 'enable': 'true', 'created': '2025-10-11T21:41:40', 'last-modified': '2025-10-11T21:41:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.864382'}
2025-10-11 21:41:42,790 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-11 21:41:42,790 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77212011 passed
2025-10-11 21:41:42,791 - DEBUG - ====Verifying policy data for ctest-vn-77212011 in API_Server ======
2025-10-11 21:41:42,791 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-11 21:41:42,794 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4a83baed-c43f-4dde-b817-e9cb23b4da22
2025-10-11 21:41:42,802 - DEBUG - Requesting: http://10.0.0.38:8082/project/a2071e3b-ea8e-48a4-b40d-a2d4f04aa18a
2025-10-11 21:41:42,866 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5818acce-50b2-4285-81ab-0e1625b9c79d
2025-10-11 21:41:42,874 - DEBUG - ==>Verifying data for policy with id: e2bdc205-9a78-4706-b114-808475669441, fqn: ['default-domain', 'ctest-TestBasicPolicy-83323680', 'ctest-policy-allow-all-87464376']
2025-10-11 21:41:42,874 - INFO - VN ctest-vn-77212011 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-11 21:41:42,874 - DEBUG - Verifying the vn in opserver
2025-10-11 21:41:42,874 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83323680:ctest-vn-77212011 virtual network link through opserver 10.0.0.38
2025-10-11 21:41:42,874 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-11 21:41:43,161 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-11 21:41:43,205 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83323680:ctest-vn-77212011', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83323680:ctest-vn-77212011?flat'}
2025-10-11 21:41:43,205 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83323680:ctest-vn-77212011 is found in opserver
2025-10-11 21:41:43,213 - DEBUG - Do not have enough data to verify VN in agent
2025-10-11 21:41:43,216 - DEBUG - VRF ids for VN ctest-vn-77212011: {}
2025-10-11 21:41:43,216 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-11 21:41:43,220 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4a83baed-c43f-4dde-b817-e9cb23b4da22
2025-10-11 21:41:43,228 - DEBUG - Requesting: http://10.0.0.38:8082/project/a2071e3b-ea8e-48a4-b40d-a2d4f04aa18a
2025-10-11 21:41:43,296 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1dbbd4dc-8368-4096-9450-bf80845f876c
2025-10-11 21:41:43,306 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1dbbd4dc-8368-4096-9450-bf80845f876c
2025-10-11 21:41:43,313 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2b9018d5-7891-4f09-8571-686376cc7401
2025-10-11 21:41:43,318 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2b9018d5-7891-4f09-8571-686376cc7401
2025-10-11 21:41:43,323 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6ca11f9f-6ff2-48f7-a119-f28c6ae568a0
2025-10-11 21:41:43,328 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-11 21:41:43,328 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1dbbd4dc-8368-4096-9450-bf80845f876c
2025-10-11 21:41:43,334 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2b9018d5-7891-4f09-8571-686376cc7401
2025-10-11 21:41:43,344 - INFO - Verified VN network id 10 for VN 1dbbd4dc-8368-4096-9450-bf80845f876c
2025-10-11 21:41:43,344 - INFO - Verifications in API Server for VN ctest-vn-80931202 passed
2025-10-11 21:41:43,344 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1dbbd4dc-8368-4096-9450-bf80845f876c
2025-10-11 21:41:43,351 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2b9018d5-7891-4f09-8571-686376cc7401
2025-10-11 21:41:43,355 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2b9018d5-7891-4f09-8571-686376cc7401
2025-10-11 21:41:43,360 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6ca11f9f-6ff2-48f7-a119-f28c6ae568a0
2025-10-11 21:41:43,368 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83323680:ctest-vn-80931202', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83323680', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2142540091307344022', 'uuid-lslong': '10687252474447759212'}, 'enable': 'true', 'created': '2025-10-11T21:41:41', 'last-modified': '2025-10-11T21:41:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.222059'}
2025-10-11 21:41:43,373 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-11 21:41:43,373 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80931202 passed
2025-10-11 21:41:43,373 - DEBUG - ====Verifying policy data for ctest-vn-80931202 in API_Server ======
2025-10-11 21:41:43,373 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-11 21:41:43,377 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4a83baed-c43f-4dde-b817-e9cb23b4da22
2025-10-11 21:41:43,385 - DEBUG - Requesting: http://10.0.0.38:8082/project/a2071e3b-ea8e-48a4-b40d-a2d4f04aa18a
2025-10-11 21:41:43,449 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1dbbd4dc-8368-4096-9450-bf80845f876c
2025-10-11 21:41:43,456 - DEBUG - ==>Verifying data for policy with id: e2bdc205-9a78-4706-b114-808475669441, fqn: ['default-domain', 'ctest-TestBasicPolicy-83323680', 'ctest-policy-allow-all-87464376']
2025-10-11 21:41:43,456 - INFO - VN ctest-vn-80931202 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-11 21:41:43,456 - DEBUG - Verifying the vn in opserver
2025-10-11 21:41:43,456 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83323680:ctest-vn-80931202 virtual network link through opserver 10.0.0.38
2025-10-11 21:41:43,456 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-11 21:41:43,464 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83323680:ctest-vn-80931202', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83323680:ctest-vn-80931202?flat'}
2025-10-11 21:41:43,464 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83323680:ctest-vn-80931202 is found in opserver
2025-10-11 21:41:43,471 - DEBUG - Do not have enough data to verify VN in agent
2025-10-11 21:41:43,475 - DEBUG - VRF ids for VN ctest-vn-80931202: {}
2025-10-11 21:41:43,523 - DEBUG - Services list from nova: [