2025-09-18 16:21:25,820 - INFO - Domain Default found not creating
2025-09-18 16:21:25,947 - INFO - Project ctest-TestBasicPolicy-20739216 not found, creating it
2025-09-18 16:21:26,364 - INFO - Created Project:ctest-TestBasicPolicy-20739216, ID : 1a4cbe57-373c-4587-a893-ca6c713e17da
2025-09-18 16:21:27,758 - INFO - ================================================================================
2025-09-18 16:21:27,758 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-18 16:21:27,758 - 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-09-18 16:21:28,016 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-09-18 16:21:28,016 - INFO - Initial checks done. Running the testcase now
2025-09-18 16:21:28,016 - INFO -
2025-09-18 16:21:28,547 - DEBUG - Response for create_network : {'network': {'id': '8eabae64-2931-4b33-845a-a8137f68933f', 'name': 'ctest-vn-87363459', 'tenant_id': '1a4cbe57373c4587a893ca6c713e17da', 'project_id': '1a4cbe57373c4587a893ca6c713e17da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20739216', 'ctest-vn-87363459'], 'port_security_enabled': True, 'description': ''}}
2025-09-18 16:21:28,697 - DEBUG - Response for create_subnet : {'subnet': {'id': '78487908-4359-4131-809a-75daf0b9d3a6', 'name': '', 'tenant_id': '1a4cbe57373c4587a893ca6c713e17da', 'network_id': '8eabae64-2931-4b33-845a-a8137f68933f', 'ip_version': 4, 'cidr': '89.156.171.192/26', 'allocation_pools': [{'start': '89.156.171.194', 'end': '89.156.171.254'}], 'gateway_ip': '89.156.171.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '89.156.171.194', 'tags': [], 'project_id': '1a4cbe57373c4587a893ca6c713e17da'}}
2025-09-18 16:21:28,713 - INFO - Created VN ctest-vn-87363459
2025-09-18 16:21:28,766 - DEBUG - VN ctest-vn-87363459 UUID is 8eabae64-2931-4b33-845a-a8137f68933f
2025-09-18 16:21:29,075 - DEBUG - Response for create_network : {'network': {'id': '2ced8328-ad76-458d-b993-01fd40b8a322', 'name': 'ctest-vn-66217255', 'tenant_id': '1a4cbe57373c4587a893ca6c713e17da', 'project_id': '1a4cbe57373c4587a893ca6c713e17da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20739216', 'ctest-vn-66217255'], 'port_security_enabled': True, 'description': ''}}
2025-09-18 16:21:29,250 - DEBUG - Response for create_subnet : {'subnet': {'id': '836f0af1-5038-4dca-b344-b64a238ef5fd', 'name': '', 'tenant_id': '1a4cbe57373c4587a893ca6c713e17da', 'network_id': '2ced8328-ad76-458d-b993-01fd40b8a322', 'ip_version': 4, 'cidr': '26.89.53.192/26', 'allocation_pools': [{'start': '26.89.53.194', 'end': '26.89.53.254'}], 'gateway_ip': '26.89.53.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26.89.53.194', 'tags': [], 'project_id': '1a4cbe57373c4587a893ca6c713e17da'}}
2025-09-18 16:21:29,268 - INFO - Created VN ctest-vn-66217255
2025-09-18 16:21:29,322 - DEBUG - VN ctest-vn-66217255 UUID is 2ced8328-ad76-458d-b993-01fd40b8a322
2025-09-18 16:21:29,470 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-20739216:ctest-vn-87363459, 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-20739216:ctest-vn-66217255, 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-09-18 16:21:29,767 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8eabae64-2931-4b33-845a-a8137f68933f', 'name': 'ctest-vn-87363459', 'tenant_id': '1a4cbe57373c4587a893ca6c713e17da', 'project_id': '1a4cbe57373c4587a893ca6c713e17da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['78487908-4359-4131-809a-75daf0b9d3a6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20739216', 'ctest-vn-87363459'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20739216', 'ctest-policy-allow-all-45326392']], 'subnet_ipam': [{'subnet_cidr': '89.156.171.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-18 16:21:29,992 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2ced8328-ad76-458d-b993-01fd40b8a322', 'name': 'ctest-vn-66217255', 'tenant_id': '1a4cbe57373c4587a893ca6c713e17da', 'project_id': '1a4cbe57373c4587a893ca6c713e17da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['836f0af1-5038-4dca-b344-b64a238ef5fd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20739216', 'ctest-vn-66217255'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20739216', 'ctest-policy-allow-all-45326392']], 'subnet_ipam': [{'subnet_cidr': '26.89.53.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-18 16:21:30,146 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-18 16:21:30,471 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-18 16:21:30,534 - DEBUG - Requesting: http://10.0.0.254:8082/domain/351a95ff-19e9-4a83-9fe6-28cecda65472
2025-09-18 16:21:30,611 - DEBUG - Requesting: http://10.0.0.254:8082/project/1a4cbe57-373c-4587-a893-ca6c713e17da
2025-09-18 16:21:30,698 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8eabae64-2931-4b33-845a-a8137f68933f
2025-09-18 16:21:30,715 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8eabae64-2931-4b33-845a-a8137f68933f
2025-09-18 16:21:30,726 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8053892e-44cf-407d-96e9-2ed37d2a70b3
2025-09-18 16:21:30,733 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8053892e-44cf-407d-96e9-2ed37d2a70b3
2025-09-18 16:21:30,740 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/10a47f80-afc2-4328-b6bc-fa3027654eab
2025-09-18 16:21:30,748 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-18 16:21:30,748 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8eabae64-2931-4b33-845a-a8137f68933f
2025-09-18 16:21:30,757 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8053892e-44cf-407d-96e9-2ed37d2a70b3
2025-09-18 16:21:30,774 - INFO - Verified VN network id 12 for VN 8eabae64-2931-4b33-845a-a8137f68933f
2025-09-18 16:21:30,774 - INFO - Verifications in API Server for VN ctest-vn-87363459 passed
2025-09-18 16:21:30,774 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8eabae64-2931-4b33-845a-a8137f68933f
2025-09-18 16:21:30,785 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8053892e-44cf-407d-96e9-2ed37d2a70b3
2025-09-18 16:21:30,792 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8053892e-44cf-407d-96e9-2ed37d2a70b3
2025-09-18 16:21:30,800 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/10a47f80-afc2-4328-b6bc-fa3027654eab
2025-09-18 16:21:30,820 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20739216:ctest-vn-87363459', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20739216', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10280502319614348083', 'uuid-lslong': '9537119962605851455'}, 'enable': 'true', 'created': '2025-09-18T16:21:28', 'last-modified': '2025-09-18T16:21:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.075007'}
2025-09-18 16:21:30,826 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-18 16:21:30,826 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87363459 passed
2025-09-18 16:21:30,826 - DEBUG - ====Verifying policy data for ctest-vn-87363459 in API_Server ======
2025-09-18 16:21:30,826 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-18 16:21:30,832 - DEBUG - Requesting: http://10.0.0.254:8082/domain/351a95ff-19e9-4a83-9fe6-28cecda65472
2025-09-18 16:21:30,842 - DEBUG - Requesting: http://10.0.0.254:8082/project/1a4cbe57-373c-4587-a893-ca6c713e17da
2025-09-18 16:21:30,913 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8eabae64-2931-4b33-845a-a8137f68933f
2025-09-18 16:21:30,922 - DEBUG - ==>Verifying data for policy with id: 3fb4834c-19e9-40c9-976d-cd1ec3e255a5, fqn: ['default-domain', 'ctest-TestBasicPolicy-20739216', 'ctest-policy-allow-all-45326392']
2025-09-18 16:21:30,922 - INFO - VN ctest-vn-87363459 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-18 16:21:30,922 - DEBUG - Verifying the vn in opserver
2025-09-18 16:21:30,922 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20739216:ctest-vn-87363459 virtual network link through opserver 10.0.0.254
2025-09-18 16:21:30,922 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-18 16:21:31,213 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-18 16:21:31,266 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20739216:ctest-vn-87363459', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20739216:ctest-vn-87363459?flat'}
2025-09-18 16:21:31,266 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20739216:ctest-vn-87363459 is found in opserver
2025-09-18 16:21:31,276 - DEBUG - Do not have enough data to verify VN in agent
2025-09-18 16:21:31,280 - DEBUG - VRF ids for VN ctest-vn-87363459: {}
2025-09-18 16:21:31,280 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-18 16:21:31,285 - DEBUG - Requesting: http://10.0.0.254:8082/domain/351a95ff-19e9-4a83-9fe6-28cecda65472
2025-09-18 16:21:31,295 - DEBUG - Requesting: http://10.0.0.254:8082/project/1a4cbe57-373c-4587-a893-ca6c713e17da
2025-09-18 16:21:31,361 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2ced8328-ad76-458d-b993-01fd40b8a322
2025-09-18 16:21:31,371 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2ced8328-ad76-458d-b993-01fd40b8a322
2025-09-18 16:21:31,381 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/00daedce-392a-4646-84bd-ec3247f25910
2025-09-18 16:21:31,388 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/00daedce-392a-4646-84bd-ec3247f25910
2025-09-18 16:21:31,395 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7d7f6191-4601-49c9-8ff1-f8738d108faf
2025-09-18 16:21:31,402 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-18 16:21:31,402 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2ced8328-ad76-458d-b993-01fd40b8a322
2025-09-18 16:21:31,411 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/00daedce-392a-4646-84bd-ec3247f25910
2025-09-18 16:21:31,425 - INFO - Verified VN network id 13 for VN 2ced8328-ad76-458d-b993-01fd40b8a322
2025-09-18 16:21:31,425 - INFO - Verifications in API Server for VN ctest-vn-66217255 passed
2025-09-18 16:21:31,425 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2ced8328-ad76-458d-b993-01fd40b8a322
2025-09-18 16:21:31,434 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/00daedce-392a-4646-84bd-ec3247f25910
2025-09-18 16:21:31,441 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/00daedce-392a-4646-84bd-ec3247f25910
2025-09-18 16:21:31,448 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7d7f6191-4601-49c9-8ff1-f8738d108faf
2025-09-18 16:21:31,463 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20739216:ctest-vn-66217255', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20739216', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3237387917881394573', 'uuid-lslong': '13372033905817330466'}, 'enable': 'true', 'created': '2025-09-18T16:21:29', 'last-modified': '2025-09-18T16:21:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.492010'}
2025-09-18 16:21:31,469 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-18 16:21:31,469 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66217255 passed
2025-09-18 16:21:31,469 - DEBUG - ====Verifying policy data for ctest-vn-66217255 in API_Server ======
2025-09-18 16:21:31,470 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-18 16:21:31,475 - DEBUG - Requesting: http://10.0.0.254:8082/domain/351a95ff-19e9-4a83-9fe6-28cecda65472
2025-09-18 16:21:31,485 - DEBUG - Requesting: http://10.0.0.254:8082/project/1a4cbe57-373c-4587-a893-ca6c713e17da
2025-09-18 16:21:31,557 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2ced8328-ad76-458d-b993-01fd40b8a322
2025-09-18 16:21:31,565 - DEBUG - ==>Verifying data for policy with id: 3fb4834c-19e9-40c9-976d-cd1ec3e255a5, fqn: ['default-domain', 'ctest-TestBasicPolicy-20739216', 'ctest-policy-allow-all-45326392']
2025-09-18 16:21:31,565 - INFO - VN ctest-vn-66217255 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-18 16:21:31,565 - DEBUG - Verifying the vn in opserver
2025-09-18 16:21:31,565 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20739216:ctest-vn-66217255 virtual network link through opserver 10.0.0.254
2025-09-18 16:21:31,565 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-18 16:21:31,575 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20739216:ctest-vn-66217255', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20739216:ctest-vn-66217255?flat'}
2025-09-18 16:21:31,575 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20739216:ctest-vn-66217255 is found in opserver
2025-09-18 16:21:31,583 - DEBUG - Do not have enough data to verify VN in agent
2025-09-18 16:21:31,587 - DEBUG - VRF ids for VN ctest-vn-66217255: {}
2025-09-18 16:21:31,645 - DEBUG - Services list from nova: [