2025-10-16 02:12:01,449 - INFO - Domain Default found not creating
2025-10-16 02:12:01,590 - INFO - Project ctest-TestBasicPolicy-94107570 not found, creating it
2025-10-16 02:12:02,016 - INFO - Created Project:ctest-TestBasicPolicy-94107570, ID : fe901ba0-12b6-4114-9dfc-910571e04ee1
2025-10-16 02:12:03,413 - INFO - ================================================================================
2025-10-16 02:12:03,413 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-16 02:12:03,413 - 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-16 02:12:03,671 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.249': '0'}} with
2025-10-16 02:12:03,671 - INFO - Initial checks done. Running the testcase now
2025-10-16 02:12:03,671 - INFO -
2025-10-16 02:12:04,218 - DEBUG - Response for create_network : {'network': {'id': '5711f898-1310-420a-81ac-a29e9dac594b', 'name': 'ctest-vn-91791516', 'tenant_id': 'fe901ba012b641149dfc910571e04ee1', 'project_id': 'fe901ba012b641149dfc910571e04ee1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94107570', 'ctest-vn-91791516'], 'port_security_enabled': True, 'description': ''}}
2025-10-16 02:12:04,378 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f9b06402-bc23-47a3-804d-231f5d96745c', 'name': '', 'tenant_id': 'fe901ba012b641149dfc910571e04ee1', 'network_id': '5711f898-1310-420a-81ac-a29e9dac594b', 'ip_version': 4, 'cidr': '198.35.52.192/26', 'allocation_pools': [{'start': '198.35.52.194', 'end': '198.35.52.254'}], 'gateway_ip': '198.35.52.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.35.52.194', 'tags': [], 'project_id': 'fe901ba012b641149dfc910571e04ee1'}}
2025-10-16 02:12:04,397 - INFO - Created VN ctest-vn-91791516
2025-10-16 02:12:04,450 - DEBUG - VN ctest-vn-91791516 UUID is 5711f898-1310-420a-81ac-a29e9dac594b
2025-10-16 02:12:04,799 - DEBUG - Response for create_network : {'network': {'id': 'f2fd6d88-7e25-4b92-8b4d-3a36c6fcc4f5', 'name': 'ctest-vn-24236152', 'tenant_id': 'fe901ba012b641149dfc910571e04ee1', 'project_id': 'fe901ba012b641149dfc910571e04ee1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94107570', 'ctest-vn-24236152'], 'port_security_enabled': True, 'description': ''}}
2025-10-16 02:12:05,011 - DEBUG - Response for create_subnet : {'subnet': {'id': '3ecb7615-e3c0-425f-8bff-273dcda313bb', 'name': '', 'tenant_id': 'fe901ba012b641149dfc910571e04ee1', 'network_id': 'f2fd6d88-7e25-4b92-8b4d-3a36c6fcc4f5', 'ip_version': 4, 'cidr': '89.172.20.128/26', 'allocation_pools': [{'start': '89.172.20.130', 'end': '89.172.20.190'}], 'gateway_ip': '89.172.20.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '89.172.20.130', 'tags': [], 'project_id': 'fe901ba012b641149dfc910571e04ee1'}}
2025-10-16 02:12:05,030 - INFO - Created VN ctest-vn-24236152
2025-10-16 02:12:05,082 - DEBUG - VN ctest-vn-24236152 UUID is f2fd6d88-7e25-4b92-8b4d-3a36c6fcc4f5
2025-10-16 02:12:05,197 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-94107570:ctest-vn-91791516, 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-94107570:ctest-vn-24236152, 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-16 02:12:05,478 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5711f898-1310-420a-81ac-a29e9dac594b', 'name': 'ctest-vn-91791516', 'tenant_id': 'fe901ba012b641149dfc910571e04ee1', 'project_id': 'fe901ba012b641149dfc910571e04ee1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f9b06402-bc23-47a3-804d-231f5d96745c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94107570', 'ctest-vn-91791516'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94107570', 'ctest-policy-allow-all-08035356']], 'subnet_ipam': [{'subnet_cidr': '198.35.52.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-16 02:12:05,700 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f2fd6d88-7e25-4b92-8b4d-3a36c6fcc4f5', 'name': 'ctest-vn-24236152', 'tenant_id': 'fe901ba012b641149dfc910571e04ee1', 'project_id': 'fe901ba012b641149dfc910571e04ee1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3ecb7615-e3c0-425f-8bff-273dcda313bb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94107570', 'ctest-vn-24236152'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94107570', 'ctest-policy-allow-all-08035356']], 'subnet_ipam': [{'subnet_cidr': '89.172.20.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-16 02:12:05,866 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-10-16 02:12:06,158 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-10-16 02:12:06,184 - DEBUG - Requesting: http://10.0.0.41:8082/domain/d11bab7d-671b-44cf-bcaf-5e65cae8fbe6
2025-10-16 02:12:06,195 - DEBUG - Requesting: http://10.0.0.41:8082/project/fe901ba0-12b6-4114-9dfc-910571e04ee1
2025-10-16 02:12:06,263 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/5711f898-1310-420a-81ac-a29e9dac594b
2025-10-16 02:12:06,273 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/5711f898-1310-420a-81ac-a29e9dac594b
2025-10-16 02:12:06,281 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/13f4c7cb-d09f-4f96-99d9-0680111b27a8
2025-10-16 02:12:06,288 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/13f4c7cb-d09f-4f96-99d9-0680111b27a8
2025-10-16 02:12:06,295 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/a48f28dc-53b4-426a-8771-cfde17a5bff1
2025-10-16 02:12:06,300 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-16 02:12:06,300 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/5711f898-1310-420a-81ac-a29e9dac594b
2025-10-16 02:12:06,307 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/13f4c7cb-d09f-4f96-99d9-0680111b27a8
2025-10-16 02:12:06,318 - INFO - Verified VN network id 12 for VN 5711f898-1310-420a-81ac-a29e9dac594b
2025-10-16 02:12:06,318 - INFO - Verifications in API Server for VN ctest-vn-91791516 passed
2025-10-16 02:12:06,318 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/5711f898-1310-420a-81ac-a29e9dac594b
2025-10-16 02:12:06,326 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/13f4c7cb-d09f-4f96-99d9-0680111b27a8
2025-10-16 02:12:06,331 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/13f4c7cb-d09f-4f96-99d9-0680111b27a8
2025-10-16 02:12:06,337 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/a48f28dc-53b4-426a-8771-cfde17a5bff1
2025-10-16 02:12:06,346 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94107570:ctest-vn-91791516', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94107570', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6274069087942361610', 'uuid-lslong': '9344022129020787019'}, 'enable': 'true', 'created': '2025-10-16T02:12:04', 'last-modified': '2025-10-16T02:12:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.886950'}
2025-10-16 02:12:06,352 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-16 02:12:06,352 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91791516 passed
2025-10-16 02:12:06,352 - DEBUG - ====Verifying policy data for ctest-vn-91791516 in API_Server ======
2025-10-16 02:12:06,352 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-10-16 02:12:06,357 - DEBUG - Requesting: http://10.0.0.41:8082/domain/d11bab7d-671b-44cf-bcaf-5e65cae8fbe6
2025-10-16 02:12:06,367 - DEBUG - Requesting: http://10.0.0.41:8082/project/fe901ba0-12b6-4114-9dfc-910571e04ee1
2025-10-16 02:12:06,437 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/5711f898-1310-420a-81ac-a29e9dac594b
2025-10-16 02:12:06,446 - DEBUG - ==>Verifying data for policy with id: 61d274de-fd14-48aa-b7bc-93be7d3a4d83, fqn: ['default-domain', 'ctest-TestBasicPolicy-94107570', 'ctest-policy-allow-all-08035356']
2025-10-16 02:12:06,446 - INFO - VN ctest-vn-91791516 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-16 02:12:06,446 - DEBUG - Verifying the vn in opserver
2025-10-16 02:12:06,446 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94107570:ctest-vn-91791516 virtual network link through opserver 10.0.0.41
2025-10-16 02:12:06,446 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-10-16 02:12:06,735 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-10-16 02:12:06,790 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94107570:ctest-vn-91791516', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94107570:ctest-vn-91791516?flat'}
2025-10-16 02:12:06,790 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94107570:ctest-vn-91791516 is found in opserver
2025-10-16 02:12:06,800 - DEBUG - Do not have enough data to verify VN in agent
2025-10-16 02:12:06,805 - DEBUG - VRF ids for VN ctest-vn-91791516: {}
2025-10-16 02:12:06,805 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-10-16 02:12:06,810 - DEBUG - Requesting: http://10.0.0.41:8082/domain/d11bab7d-671b-44cf-bcaf-5e65cae8fbe6
2025-10-16 02:12:06,819 - DEBUG - Requesting: http://10.0.0.41:8082/project/fe901ba0-12b6-4114-9dfc-910571e04ee1
2025-10-16 02:12:06,891 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f2fd6d88-7e25-4b92-8b4d-3a36c6fcc4f5
2025-10-16 02:12:06,902 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f2fd6d88-7e25-4b92-8b4d-3a36c6fcc4f5
2025-10-16 02:12:06,910 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/dea0ad8e-944d-40cf-921b-f4534f8016df
2025-10-16 02:12:06,916 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/dea0ad8e-944d-40cf-921b-f4534f8016df
2025-10-16 02:12:06,922 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/35d71351-c6b3-43a2-a9b3-f2bdb6da3b9a
2025-10-16 02:12:06,927 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-16 02:12:06,927 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f2fd6d88-7e25-4b92-8b4d-3a36c6fcc4f5
2025-10-16 02:12:06,938 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/dea0ad8e-944d-40cf-921b-f4534f8016df
2025-10-16 02:12:06,953 - INFO - Verified VN network id 13 for VN f2fd6d88-7e25-4b92-8b4d-3a36c6fcc4f5
2025-10-16 02:12:06,953 - INFO - Verifications in API Server for VN ctest-vn-24236152 passed
2025-10-16 02:12:06,953 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f2fd6d88-7e25-4b92-8b4d-3a36c6fcc4f5
2025-10-16 02:12:06,962 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/dea0ad8e-944d-40cf-921b-f4534f8016df
2025-10-16 02:12:06,969 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/dea0ad8e-944d-40cf-921b-f4534f8016df
2025-10-16 02:12:06,975 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/35d71351-c6b3-43a2-a9b3-f2bdb6da3b9a
2025-10-16 02:12:06,985 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94107570:ctest-vn-24236152', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94107570', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17509271359285709714', 'uuid-lslong': '10037743151419802869'}, 'enable': 'true', 'created': '2025-10-16T02:12:04', 'last-modified': '2025-10-16T02:12:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.299311'}
2025-10-16 02:12:06,991 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-16 02:12:06,991 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24236152 passed
2025-10-16 02:12:06,991 - DEBUG - ====Verifying policy data for ctest-vn-24236152 in API_Server ======
2025-10-16 02:12:06,991 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-10-16 02:12:06,997 - DEBUG - Requesting: http://10.0.0.41:8082/domain/d11bab7d-671b-44cf-bcaf-5e65cae8fbe6
2025-10-16 02:12:07,007 - DEBUG - Requesting: http://10.0.0.41:8082/project/fe901ba0-12b6-4114-9dfc-910571e04ee1
2025-10-16 02:12:07,078 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f2fd6d88-7e25-4b92-8b4d-3a36c6fcc4f5
2025-10-16 02:12:07,086 - DEBUG - ==>Verifying data for policy with id: 61d274de-fd14-48aa-b7bc-93be7d3a4d83, fqn: ['default-domain', 'ctest-TestBasicPolicy-94107570', 'ctest-policy-allow-all-08035356']
2025-10-16 02:12:07,086 - INFO - VN ctest-vn-24236152 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-16 02:12:07,086 - DEBUG - Verifying the vn in opserver
2025-10-16 02:12:07,086 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94107570:ctest-vn-24236152 virtual network link through opserver 10.0.0.41
2025-10-16 02:12:07,086 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-10-16 02:12:07,095 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94107570:ctest-vn-24236152', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94107570:ctest-vn-24236152?flat'}
2025-10-16 02:12:07,095 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94107570:ctest-vn-24236152 is found in opserver
2025-10-16 02:12:07,105 - DEBUG - Do not have enough data to verify VN in agent
2025-10-16 02:12:07,111 - DEBUG - VRF ids for VN ctest-vn-24236152: {}
2025-10-16 02:12:07,167 - DEBUG - Services list from nova: [