2025-10-30 09:37:58,877 - INFO - Domain Default found not creating
2025-10-30 09:37:59,030 - INFO - Project ctest-TestBasicPolicy-08402986 not found, creating it
2025-10-30 09:37:59,470 - INFO - Created Project:ctest-TestBasicPolicy-08402986, ID : 3c9a9c95-62ec-473f-89af-37d795602c36
2025-10-30 09:38:01,059 - INFO - ================================================================================
2025-10-30 09:38:01,059 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-30 09:38:01,059 - 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-30 09:38:01,331 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with
2025-10-30 09:38:01,331 - INFO - Initial checks done. Running the testcase now
2025-10-30 09:38:01,331 - INFO -
2025-10-30 09:38:01,940 - DEBUG - Response for create_network : {'network': {'id': 'd6c0630b-88ae-462b-ba5f-22095f0542a7', 'name': 'ctest-vn-56949357', 'tenant_id': '3c9a9c9562ec473f89af37d795602c36', 'project_id': '3c9a9c9562ec473f89af37d795602c36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08402986', 'ctest-vn-56949357'], 'port_security_enabled': True, 'description': ''}}
2025-10-30 09:38:02,132 - DEBUG - Response for create_subnet : {'subnet': {'id': '32c035ed-efad-4bff-9243-b315bb8fa4b2', 'name': '', 'tenant_id': '3c9a9c9562ec473f89af37d795602c36', 'network_id': 'd6c0630b-88ae-462b-ba5f-22095f0542a7', 'ip_version': 4, 'cidr': '118.154.13.128/26', 'allocation_pools': [{'start': '118.154.13.130', 'end': '118.154.13.190'}], 'gateway_ip': '118.154.13.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '118.154.13.130', 'tags': [], 'project_id': '3c9a9c9562ec473f89af37d795602c36'}}
2025-10-30 09:38:02,151 - INFO - Created VN ctest-vn-56949357
2025-10-30 09:38:02,207 - DEBUG - VN ctest-vn-56949357 UUID is d6c0630b-88ae-462b-ba5f-22095f0542a7
2025-10-30 09:38:02,521 - DEBUG - Response for create_network : {'network': {'id': '84b58581-1165-4101-a61a-624db3d8e383', 'name': 'ctest-vn-99767947', 'tenant_id': '3c9a9c9562ec473f89af37d795602c36', 'project_id': '3c9a9c9562ec473f89af37d795602c36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08402986', 'ctest-vn-99767947'], 'port_security_enabled': True, 'description': ''}}
2025-10-30 09:38:02,755 - DEBUG - Response for create_subnet : {'subnet': {'id': '137fa04b-c98c-429f-a5c7-625e7377b61e', 'name': '', 'tenant_id': '3c9a9c9562ec473f89af37d795602c36', 'network_id': '84b58581-1165-4101-a61a-624db3d8e383', 'ip_version': 4, 'cidr': '37.193.88.192/26', 'allocation_pools': [{'start': '37.193.88.194', 'end': '37.193.88.254'}], 'gateway_ip': '37.193.88.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37.193.88.194', 'tags': [], 'project_id': '3c9a9c9562ec473f89af37d795602c36'}}
2025-10-30 09:38:02,779 - INFO - Created VN ctest-vn-99767947
2025-10-30 09:38:02,831 - DEBUG - VN ctest-vn-99767947 UUID is 84b58581-1165-4101-a61a-624db3d8e383
2025-10-30 09:38:02,951 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-08402986:ctest-vn-56949357, 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-08402986:ctest-vn-99767947, 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-30 09:38:03,238 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd6c0630b-88ae-462b-ba5f-22095f0542a7', 'name': 'ctest-vn-56949357', 'tenant_id': '3c9a9c9562ec473f89af37d795602c36', 'project_id': '3c9a9c9562ec473f89af37d795602c36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['32c035ed-efad-4bff-9243-b315bb8fa4b2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08402986', 'ctest-vn-56949357'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08402986', 'ctest-policy-allow-all-19878609']], 'subnet_ipam': [{'subnet_cidr': '118.154.13.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-30 09:38:03,476 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '84b58581-1165-4101-a61a-624db3d8e383', 'name': 'ctest-vn-99767947', 'tenant_id': '3c9a9c9562ec473f89af37d795602c36', 'project_id': '3c9a9c9562ec473f89af37d795602c36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['137fa04b-c98c-429f-a5c7-625e7377b61e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08402986', 'ctest-vn-99767947'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08402986', 'ctest-policy-allow-all-19878609']], 'subnet_ipam': [{'subnet_cidr': '37.193.88.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-30 09:38:03,647 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-30 09:38:03,981 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-30 09:38:04,009 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e8842c49-fe20-49e3-9e4a-a5a397df3378
2025-10-30 09:38:04,020 - DEBUG - Requesting: http://10.0.0.254:8082/project/3c9a9c95-62ec-473f-89af-37d795602c36
2025-10-30 09:38:04,092 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d6c0630b-88ae-462b-ba5f-22095f0542a7
2025-10-30 09:38:04,104 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d6c0630b-88ae-462b-ba5f-22095f0542a7
2025-10-30 09:38:04,114 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/eceadaff-6997-4a7f-991d-1c381dad5d92
2025-10-30 09:38:04,121 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/eceadaff-6997-4a7f-991d-1c381dad5d92
2025-10-30 09:38:04,127 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3e6daa47-dbd6-46d6-afc3-8efaacef246e
2025-10-30 09:38:04,133 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-30 09:38:04,133 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d6c0630b-88ae-462b-ba5f-22095f0542a7
2025-10-30 09:38:04,142 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/eceadaff-6997-4a7f-991d-1c381dad5d92
2025-10-30 09:38:04,155 - INFO - Verified VN network id 11 for VN d6c0630b-88ae-462b-ba5f-22095f0542a7
2025-10-30 09:38:04,155 - INFO - Verifications in API Server for VN ctest-vn-56949357 passed
2025-10-30 09:38:04,155 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d6c0630b-88ae-462b-ba5f-22095f0542a7
2025-10-30 09:38:04,165 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/eceadaff-6997-4a7f-991d-1c381dad5d92
2025-10-30 09:38:04,171 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/eceadaff-6997-4a7f-991d-1c381dad5d92
2025-10-30 09:38:04,178 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3e6daa47-dbd6-46d6-afc3-8efaacef246e
2025-10-30 09:38:04,190 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08402986:ctest-vn-56949357', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08402986', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15474477220833936939', 'uuid-lslong': '13429490037486338727'}, 'enable': 'true', 'created': '2025-10-30T09:38:01', 'last-modified': '2025-10-30T09:38:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.970134'}
2025-10-30 09:38:04,197 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-30 09:38:04,197 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56949357 passed
2025-10-30 09:38:04,197 - DEBUG - ====Verifying policy data for ctest-vn-56949357 in API_Server ======
2025-10-30 09:38:04,197 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-30 09:38:04,202 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e8842c49-fe20-49e3-9e4a-a5a397df3378
2025-10-30 09:38:04,213 - DEBUG - Requesting: http://10.0.0.254:8082/project/3c9a9c95-62ec-473f-89af-37d795602c36
2025-10-30 09:38:04,281 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d6c0630b-88ae-462b-ba5f-22095f0542a7
2025-10-30 09:38:04,290 - DEBUG - ==>Verifying data for policy with id: a0efcb91-c497-4f4f-a658-f54649bcee69, fqn: ['default-domain', 'ctest-TestBasicPolicy-08402986', 'ctest-policy-allow-all-19878609']
2025-10-30 09:38:04,290 - INFO - VN ctest-vn-56949357 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-30 09:38:04,290 - DEBUG - Verifying the vn in opserver
2025-10-30 09:38:04,290 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08402986:ctest-vn-56949357 virtual network link through opserver 10.0.0.254
2025-10-30 09:38:04,290 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-30 09:38:04,620 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-30 09:38:04,674 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08402986:ctest-vn-56949357', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08402986:ctest-vn-56949357?flat'}
2025-10-30 09:38:04,674 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08402986:ctest-vn-56949357 is found in opserver
2025-10-30 09:38:04,684 - DEBUG - Do not have enough data to verify VN in agent
2025-10-30 09:38:04,689 - DEBUG - VRF ids for VN ctest-vn-56949357: {}
2025-10-30 09:38:04,689 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-30 09:38:04,693 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e8842c49-fe20-49e3-9e4a-a5a397df3378
2025-10-30 09:38:04,705 - DEBUG - Requesting: http://10.0.0.254:8082/project/3c9a9c95-62ec-473f-89af-37d795602c36
2025-10-30 09:38:04,773 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/84b58581-1165-4101-a61a-624db3d8e383
2025-10-30 09:38:04,785 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/84b58581-1165-4101-a61a-624db3d8e383
2025-10-30 09:38:04,794 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/704397a8-b326-4514-81d8-1a6e147b7e9f
2025-10-30 09:38:04,800 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/704397a8-b326-4514-81d8-1a6e147b7e9f
2025-10-30 09:38:04,807 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/445bbbd6-495d-478c-8b53-6627fee56e60
2025-10-30 09:38:04,814 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-30 09:38:04,814 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/84b58581-1165-4101-a61a-624db3d8e383
2025-10-30 09:38:04,823 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/704397a8-b326-4514-81d8-1a6e147b7e9f
2025-10-30 09:38:04,838 - INFO - Verified VN network id 12 for VN 84b58581-1165-4101-a61a-624db3d8e383
2025-10-30 09:38:04,838 - INFO - Verifications in API Server for VN ctest-vn-99767947 passed
2025-10-30 09:38:04,838 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/84b58581-1165-4101-a61a-624db3d8e383
2025-10-30 09:38:04,847 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/704397a8-b326-4514-81d8-1a6e147b7e9f
2025-10-30 09:38:04,853 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/704397a8-b326-4514-81d8-1a6e147b7e9f
2025-10-30 09:38:04,858 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/445bbbd6-495d-478c-8b53-6627fee56e60
2025-10-30 09:38:04,868 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08402986:ctest-vn-99767947', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08402986', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9562696173180240129', 'uuid-lslong': '11968987045559853955'}, 'enable': 'true', 'created': '2025-10-30T09:38:02', 'last-modified': '2025-10-30T09:38:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.422458'}
2025-10-30 09:38:04,873 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-30 09:38:04,873 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99767947 passed
2025-10-30 09:38:04,873 - DEBUG - ====Verifying policy data for ctest-vn-99767947 in API_Server ======
2025-10-30 09:38:04,873 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-30 09:38:04,878 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e8842c49-fe20-49e3-9e4a-a5a397df3378
2025-10-30 09:38:04,888 - DEBUG - Requesting: http://10.0.0.254:8082/project/3c9a9c95-62ec-473f-89af-37d795602c36
2025-10-30 09:38:04,955 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/84b58581-1165-4101-a61a-624db3d8e383
2025-10-30 09:38:04,963 - DEBUG - ==>Verifying data for policy with id: a0efcb91-c497-4f4f-a658-f54649bcee69, fqn: ['default-domain', 'ctest-TestBasicPolicy-08402986', 'ctest-policy-allow-all-19878609']
2025-10-30 09:38:04,963 - INFO - VN ctest-vn-99767947 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-30 09:38:04,963 - DEBUG - Verifying the vn in opserver
2025-10-30 09:38:04,963 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08402986:ctest-vn-99767947 virtual network link through opserver 10.0.0.254
2025-10-30 09:38:04,963 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-30 09:38:04,973 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08402986:ctest-vn-99767947', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08402986:ctest-vn-99767947?flat'}
2025-10-30 09:38:04,973 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08402986:ctest-vn-99767947 is found in opserver
2025-10-30 09:38:04,982 - DEBUG - Do not have enough data to verify VN in agent
2025-10-30 09:38:04,986 - DEBUG - VRF ids for VN ctest-vn-99767947: {}
2025-10-30 09:38:05,045 - DEBUG - Services list from nova: [