2025-06-23 02:08:19,798 - INFO - Domain Default found not creating
2025-06-23 02:08:19,963 - INFO - Project ctest-TestBasicPolicy-55412802 not found, creating it
2025-06-23 02:08:20,442 - INFO - Created Project:ctest-TestBasicPolicy-55412802, ID : 8c330d36-c73d-4bd2-9cfd-3bc828ed4311
2025-06-23 02:08:21,931 - INFO - ================================================================================
2025-06-23 02:08:21,931 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-23 02:08:21,931 - 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-06-23 02:08:22,187 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-06-23 02:08:22,187 - INFO - Initial checks done. Running the testcase now
2025-06-23 02:08:22,187 - INFO -
2025-06-23 02:08:22,741 - DEBUG - Response for create_network : {'network': {'id': '64fcbf87-b3c7-461c-be65-3245e239eaa7', 'name': 'ctest-vn-83243942', 'tenant_id': '8c330d36c73d4bd29cfd3bc828ed4311', 'project_id': '8c330d36c73d4bd29cfd3bc828ed4311', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55412802', 'ctest-vn-83243942'], 'port_security_enabled': True, 'description': ''}}
2025-06-23 02:08:22,915 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f1ce6cb0-404c-488f-8db4-d4d1f3546868', 'name': '', 'tenant_id': '8c330d36c73d4bd29cfd3bc828ed4311', 'network_id': '64fcbf87-b3c7-461c-be65-3245e239eaa7', 'ip_version': 4, 'cidr': '219.159.174.64/26', 'allocation_pools': [{'start': '219.159.174.66', 'end': '219.159.174.126'}], 'gateway_ip': '219.159.174.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '219.159.174.66', 'tags': [], 'project_id': '8c330d36c73d4bd29cfd3bc828ed4311'}}
2025-06-23 02:08:22,933 - INFO - Created VN ctest-vn-83243942
2025-06-23 02:08:22,984 - DEBUG - VN ctest-vn-83243942 UUID is 64fcbf87-b3c7-461c-be65-3245e239eaa7
2025-06-23 02:08:23,272 - DEBUG - Response for create_network : {'network': {'id': '25012679-e01c-4970-a234-3ade9705ac73', 'name': 'ctest-vn-15922073', 'tenant_id': '8c330d36c73d4bd29cfd3bc828ed4311', 'project_id': '8c330d36c73d4bd29cfd3bc828ed4311', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55412802', 'ctest-vn-15922073'], 'port_security_enabled': True, 'description': ''}}
2025-06-23 02:08:23,489 - DEBUG - Response for create_subnet : {'subnet': {'id': '42a9cdce-1cc7-490a-b9ba-37f241817270', 'name': '', 'tenant_id': '8c330d36c73d4bd29cfd3bc828ed4311', 'network_id': '25012679-e01c-4970-a234-3ade9705ac73', 'ip_version': 4, 'cidr': '134.237.7.128/26', 'allocation_pools': [{'start': '134.237.7.130', 'end': '134.237.7.190'}], 'gateway_ip': '134.237.7.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.237.7.130', 'tags': [], 'project_id': '8c330d36c73d4bd29cfd3bc828ed4311'}}
2025-06-23 02:08:23,507 - INFO - Created VN ctest-vn-15922073
2025-06-23 02:08:23,560 - DEBUG - VN ctest-vn-15922073 UUID is 25012679-e01c-4970-a234-3ade9705ac73
2025-06-23 02:08:23,673 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-55412802:ctest-vn-83243942, 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-55412802:ctest-vn-15922073, 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-06-23 02:08:23,976 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '64fcbf87-b3c7-461c-be65-3245e239eaa7', 'name': 'ctest-vn-83243942', 'tenant_id': '8c330d36c73d4bd29cfd3bc828ed4311', 'project_id': '8c330d36c73d4bd29cfd3bc828ed4311', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f1ce6cb0-404c-488f-8db4-d4d1f3546868'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55412802', 'ctest-vn-83243942'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55412802', 'ctest-policy-allow-all-67927972']], 'subnet_ipam': [{'subnet_cidr': '219.159.174.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-23 02:08:24,209 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '25012679-e01c-4970-a234-3ade9705ac73', 'name': 'ctest-vn-15922073', 'tenant_id': '8c330d36c73d4bd29cfd3bc828ed4311', 'project_id': '8c330d36c73d4bd29cfd3bc828ed4311', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['42a9cdce-1cc7-490a-b9ba-37f241817270'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55412802', 'ctest-vn-15922073'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55412802', 'ctest-policy-allow-all-67927972']], 'subnet_ipam': [{'subnet_cidr': '134.237.7.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-23 02:08:24,389 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-23 02:08:24,681 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-23 02:08:24,711 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c8878672-6f43-4cee-b2ea-4a538521fef9
2025-06-23 02:08:24,728 - DEBUG - Requesting: http://10.0.0.254:8082/project/8c330d36-c73d-4bd2-9cfd-3bc828ed4311
2025-06-23 02:08:24,807 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/64fcbf87-b3c7-461c-be65-3245e239eaa7
2025-06-23 02:08:24,819 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/64fcbf87-b3c7-461c-be65-3245e239eaa7
2025-06-23 02:08:24,832 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6b9b1990-461a-4abd-b0b6-48d458921f86
2025-06-23 02:08:24,842 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6b9b1990-461a-4abd-b0b6-48d458921f86
2025-06-23 02:08:24,851 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/651fe567-5dfb-48b9-98db-2494e11c424e
2025-06-23 02:08:24,860 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-23 02:08:24,861 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/64fcbf87-b3c7-461c-be65-3245e239eaa7
2025-06-23 02:08:24,871 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6b9b1990-461a-4abd-b0b6-48d458921f86
2025-06-23 02:08:24,890 - INFO - Verified VN network id 8 for VN 64fcbf87-b3c7-461c-be65-3245e239eaa7
2025-06-23 02:08:24,891 - INFO - Verifications in API Server for VN ctest-vn-83243942 passed
2025-06-23 02:08:24,891 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/64fcbf87-b3c7-461c-be65-3245e239eaa7
2025-06-23 02:08:24,904 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6b9b1990-461a-4abd-b0b6-48d458921f86
2025-06-23 02:08:24,916 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6b9b1990-461a-4abd-b0b6-48d458921f86
2025-06-23 02:08:24,924 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/651fe567-5dfb-48b9-98db-2494e11c424e
2025-06-23 02:08:24,941 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55412802:ctest-vn-83243942', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55412802', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7276901687481550364', 'uuid-lslong': '13719427115583662759'}, 'enable': 'true', 'created': '2025-06-23T02:08:22', 'last-modified': '2025-06-23T02:08:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.993286'}
2025-06-23 02:08:24,949 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-23 02:08:24,950 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83243942 passed
2025-06-23 02:08:24,950 - DEBUG - ====Verifying policy data for ctest-vn-83243942 in API_Server ======
2025-06-23 02:08:24,950 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-23 02:08:24,957 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c8878672-6f43-4cee-b2ea-4a538521fef9
2025-06-23 02:08:24,970 - DEBUG - Requesting: http://10.0.0.254:8082/project/8c330d36-c73d-4bd2-9cfd-3bc828ed4311
2025-06-23 02:08:25,047 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/64fcbf87-b3c7-461c-be65-3245e239eaa7
2025-06-23 02:08:25,058 - DEBUG - ==>Verifying data for policy with id: 4d6f723a-0a40-43fc-b4fd-119c5313d5e0, fqn: ['default-domain', 'ctest-TestBasicPolicy-55412802', 'ctest-policy-allow-all-67927972']
2025-06-23 02:08:25,058 - INFO - VN ctest-vn-83243942 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-23 02:08:25,059 - DEBUG - Verifying the vn in opserver
2025-06-23 02:08:25,059 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55412802:ctest-vn-83243942 virtual network link through opserver 10.0.0.254
2025-06-23 02:08:25,059 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-23 02:08:25,354 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-23 02:08:25,414 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55412802:ctest-vn-83243942', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55412802:ctest-vn-83243942?flat'}
2025-06-23 02:08:25,414 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55412802:ctest-vn-83243942 is found in opserver
2025-06-23 02:08:25,425 - DEBUG - Do not have enough data to verify VN in agent
2025-06-23 02:08:25,430 - DEBUG - VRF ids for VN ctest-vn-83243942: {}
2025-06-23 02:08:25,430 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-23 02:08:25,437 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c8878672-6f43-4cee-b2ea-4a538521fef9
2025-06-23 02:08:25,449 - DEBUG - Requesting: http://10.0.0.254:8082/project/8c330d36-c73d-4bd2-9cfd-3bc828ed4311
2025-06-23 02:08:25,535 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/25012679-e01c-4970-a234-3ade9705ac73
2025-06-23 02:08:25,550 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/25012679-e01c-4970-a234-3ade9705ac73
2025-06-23 02:08:25,562 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a1961f0f-d447-4044-aceb-d172cd8d689e
2025-06-23 02:08:25,571 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a1961f0f-d447-4044-aceb-d172cd8d689e
2025-06-23 02:08:25,579 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ed7fe63a-26b9-492a-9532-b624aa200e17
2025-06-23 02:08:25,588 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-23 02:08:25,588 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/25012679-e01c-4970-a234-3ade9705ac73
2025-06-23 02:08:25,602 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a1961f0f-d447-4044-aceb-d172cd8d689e
2025-06-23 02:08:25,623 - INFO - Verified VN network id 9 for VN 25012679-e01c-4970-a234-3ade9705ac73
2025-06-23 02:08:25,623 - INFO - Verifications in API Server for VN ctest-vn-15922073 passed
2025-06-23 02:08:25,623 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/25012679-e01c-4970-a234-3ade9705ac73
2025-06-23 02:08:25,639 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a1961f0f-d447-4044-aceb-d172cd8d689e
2025-06-23 02:08:25,647 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a1961f0f-d447-4044-aceb-d172cd8d689e
2025-06-23 02:08:25,655 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ed7fe63a-26b9-492a-9532-b624aa200e17
2025-06-23 02:08:25,671 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55412802:ctest-vn-15922073', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55412802', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2666454759272892784', 'uuid-lslong': '11688031660624161907'}, 'enable': 'true', 'created': '2025-06-23T02:08:23', 'last-modified': '2025-06-23T02:08:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.488376'}
2025-06-23 02:08:25,677 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-23 02:08:25,678 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15922073 passed
2025-06-23 02:08:25,678 - DEBUG - ====Verifying policy data for ctest-vn-15922073 in API_Server ======
2025-06-23 02:08:25,678 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-23 02:08:25,684 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c8878672-6f43-4cee-b2ea-4a538521fef9
2025-06-23 02:08:25,696 - DEBUG - Requesting: http://10.0.0.254:8082/project/8c330d36-c73d-4bd2-9cfd-3bc828ed4311
2025-06-23 02:08:25,774 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/25012679-e01c-4970-a234-3ade9705ac73
2025-06-23 02:08:25,784 - DEBUG - ==>Verifying data for policy with id: 4d6f723a-0a40-43fc-b4fd-119c5313d5e0, fqn: ['default-domain', 'ctest-TestBasicPolicy-55412802', 'ctest-policy-allow-all-67927972']
2025-06-23 02:08:25,784 - INFO - VN ctest-vn-15922073 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-23 02:08:25,785 - DEBUG - Verifying the vn in opserver
2025-06-23 02:08:25,785 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55412802:ctest-vn-15922073 virtual network link through opserver 10.0.0.254
2025-06-23 02:08:25,785 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-23 02:08:25,795 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55412802:ctest-vn-15922073', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55412802:ctest-vn-15922073?flat'}
2025-06-23 02:08:25,795 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55412802:ctest-vn-15922073 is found in opserver
2025-06-23 02:08:25,806 - DEBUG - Do not have enough data to verify VN in agent
2025-06-23 02:08:25,811 - DEBUG - VRF ids for VN ctest-vn-15922073: {}
2025-06-23 02:08:25,866 - DEBUG - Services list from nova: [