2025-06-25 15:43:18,955 - INFO - Domain Default found not creating
2025-06-25 15:43:19,121 - INFO - Project ctest-TestBasicPolicy-54281569 not found, creating it
2025-06-25 15:43:19,599 - INFO - Created Project:ctest-TestBasicPolicy-54281569, ID : 8bf82de4-dfb0-475c-a51f-53d3e501d6b7
2025-06-25 15:43:21,268 - INFO - ================================================================================
2025-06-25 15:43:21,268 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-25 15:43:21,268 - 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-25 15:43:21,524 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-06-25 15:43:21,524 - INFO - Initial checks done. Running the testcase now
2025-06-25 15:43:21,524 - INFO -
2025-06-25 15:43:22,115 - DEBUG - Response for create_network : {'network': {'id': '113c18c3-c42e-47fe-8b74-118fd6dabfa9', 'name': 'ctest-vn-69624334', 'tenant_id': '8bf82de4dfb0475ca51f53d3e501d6b7', 'project_id': '8bf82de4dfb0475ca51f53d3e501d6b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54281569', 'ctest-vn-69624334'], 'port_security_enabled': True, 'description': ''}}
2025-06-25 15:43:22,322 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ae78aba2-3a1e-4792-b250-90d310513c1a', 'name': '', 'tenant_id': '8bf82de4dfb0475ca51f53d3e501d6b7', 'network_id': '113c18c3-c42e-47fe-8b74-118fd6dabfa9', 'ip_version': 4, 'cidr': '120.106.111.64/26', 'allocation_pools': [{'start': '120.106.111.66', 'end': '120.106.111.126'}], 'gateway_ip': '120.106.111.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.106.111.66', 'tags': [], 'project_id': '8bf82de4dfb0475ca51f53d3e501d6b7'}}
2025-06-25 15:43:22,392 - INFO - Created VN ctest-vn-69624334
2025-06-25 15:43:22,446 - DEBUG - VN ctest-vn-69624334 UUID is 113c18c3-c42e-47fe-8b74-118fd6dabfa9
2025-06-25 15:43:22,751 - DEBUG - Response for create_network : {'network': {'id': '6d57adde-44e9-4d3c-9649-c85e058f2897', 'name': 'ctest-vn-67886573', 'tenant_id': '8bf82de4dfb0475ca51f53d3e501d6b7', 'project_id': '8bf82de4dfb0475ca51f53d3e501d6b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54281569', 'ctest-vn-67886573'], 'port_security_enabled': True, 'description': ''}}
2025-06-25 15:43:22,961 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a8df96ff-2e6c-4d38-8fac-e15dc678fb90', 'name': '', 'tenant_id': '8bf82de4dfb0475ca51f53d3e501d6b7', 'network_id': '6d57adde-44e9-4d3c-9649-c85e058f2897', 'ip_version': 4, 'cidr': '148.179.80.192/26', 'allocation_pools': [{'start': '148.179.80.194', 'end': '148.179.80.254'}], 'gateway_ip': '148.179.80.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.179.80.194', 'tags': [], 'project_id': '8bf82de4dfb0475ca51f53d3e501d6b7'}}
2025-06-25 15:43:22,986 - INFO - Created VN ctest-vn-67886573
2025-06-25 15:43:23,042 - DEBUG - VN ctest-vn-67886573 UUID is 6d57adde-44e9-4d3c-9649-c85e058f2897
2025-06-25 15:43:23,159 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54281569:ctest-vn-69624334, 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-54281569:ctest-vn-67886573, 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-25 15:43:23,454 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '113c18c3-c42e-47fe-8b74-118fd6dabfa9', 'name': 'ctest-vn-69624334', 'tenant_id': '8bf82de4dfb0475ca51f53d3e501d6b7', 'project_id': '8bf82de4dfb0475ca51f53d3e501d6b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ae78aba2-3a1e-4792-b250-90d310513c1a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54281569', 'ctest-vn-69624334'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54281569', 'ctest-policy-allow-all-91190161']], 'subnet_ipam': [{'subnet_cidr': '120.106.111.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-25 15:43:23,744 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6d57adde-44e9-4d3c-9649-c85e058f2897', 'name': 'ctest-vn-67886573', 'tenant_id': '8bf82de4dfb0475ca51f53d3e501d6b7', 'project_id': '8bf82de4dfb0475ca51f53d3e501d6b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a8df96ff-2e6c-4d38-8fac-e15dc678fb90'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54281569', 'ctest-vn-67886573'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54281569', 'ctest-policy-allow-all-91190161']], 'subnet_ipam': [{'subnet_cidr': '148.179.80.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-25 15:43:23,902 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-25 15:43:24,237 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-25 15:43:24,266 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a8ba9dbd-4ee5-4e01-8335-7ed78317279e
2025-06-25 15:43:24,281 - DEBUG - Requesting: http://10.0.0.254:8082/project/8bf82de4-dfb0-475c-a51f-53d3e501d6b7
2025-06-25 15:43:24,360 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/113c18c3-c42e-47fe-8b74-118fd6dabfa9
2025-06-25 15:43:24,374 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/113c18c3-c42e-47fe-8b74-118fd6dabfa9
2025-06-25 15:43:24,386 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/10ad33b7-60f4-49cb-8459-9c9cedded6bd
2025-06-25 15:43:24,396 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/10ad33b7-60f4-49cb-8459-9c9cedded6bd
2025-06-25 15:43:24,404 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5f99fbf7-d187-4b9a-bf1a-feae4fa72677
2025-06-25 15:43:24,412 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-25 15:43:24,412 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/113c18c3-c42e-47fe-8b74-118fd6dabfa9
2025-06-25 15:43:24,423 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/10ad33b7-60f4-49cb-8459-9c9cedded6bd
2025-06-25 15:43:24,439 - INFO - Verified VN network id 9 for VN 113c18c3-c42e-47fe-8b74-118fd6dabfa9
2025-06-25 15:43:24,439 - INFO - Verifications in API Server for VN ctest-vn-69624334 passed
2025-06-25 15:43:24,439 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/113c18c3-c42e-47fe-8b74-118fd6dabfa9
2025-06-25 15:43:24,450 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/10ad33b7-60f4-49cb-8459-9c9cedded6bd
2025-06-25 15:43:24,458 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/10ad33b7-60f4-49cb-8459-9c9cedded6bd
2025-06-25 15:43:24,465 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5f99fbf7-d187-4b9a-bf1a-feae4fa72677
2025-06-25 15:43:24,478 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54281569:ctest-vn-69624334', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54281569', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1241894826336471038', 'uuid-lslong': '10048675978053074857'}, 'enable': 'true', 'created': '2025-06-25T15:43:22', 'last-modified': '2025-06-25T15:43:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.039885'}
2025-06-25 15:43:24,485 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-25 15:43:24,486 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69624334 passed
2025-06-25 15:43:24,486 - DEBUG - ====Verifying policy data for ctest-vn-69624334 in API_Server ======
2025-06-25 15:43:24,486 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-25 15:43:24,494 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a8ba9dbd-4ee5-4e01-8335-7ed78317279e
2025-06-25 15:43:24,510 - DEBUG - Requesting: http://10.0.0.254:8082/project/8bf82de4-dfb0-475c-a51f-53d3e501d6b7
2025-06-25 15:43:24,585 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/113c18c3-c42e-47fe-8b74-118fd6dabfa9
2025-06-25 15:43:24,595 - DEBUG - ==>Verifying data for policy with id: a9926946-ca53-44c7-bd87-973bd05dfb24, fqn: ['default-domain', 'ctest-TestBasicPolicy-54281569', 'ctest-policy-allow-all-91190161']
2025-06-25 15:43:24,595 - INFO - VN ctest-vn-69624334 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-25 15:43:24,595 - DEBUG - Verifying the vn in opserver
2025-06-25 15:43:24,596 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54281569:ctest-vn-69624334 virtual network link through opserver 10.0.0.254
2025-06-25 15:43:24,596 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-25 15:43:24,927 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-25 15:43:24,987 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54281569:ctest-vn-69624334', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54281569:ctest-vn-69624334?flat'}
2025-06-25 15:43:24,987 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54281569:ctest-vn-69624334 is found in opserver
2025-06-25 15:43:24,999 - DEBUG - Do not have enough data to verify VN in agent
2025-06-25 15:43:25,006 - DEBUG - VRF ids for VN ctest-vn-69624334: {}
2025-06-25 15:43:25,006 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-25 15:43:25,013 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a8ba9dbd-4ee5-4e01-8335-7ed78317279e
2025-06-25 15:43:25,027 - DEBUG - Requesting: http://10.0.0.254:8082/project/8bf82de4-dfb0-475c-a51f-53d3e501d6b7
2025-06-25 15:43:25,103 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6d57adde-44e9-4d3c-9649-c85e058f2897
2025-06-25 15:43:25,115 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6d57adde-44e9-4d3c-9649-c85e058f2897
2025-06-25 15:43:25,128 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f325e07a-17d4-43b7-8b52-c7fb67e29a14
2025-06-25 15:43:25,137 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f325e07a-17d4-43b7-8b52-c7fb67e29a14
2025-06-25 15:43:25,145 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d04eebb2-597d-48ba-829e-9849d5b0bd32
2025-06-25 15:43:25,152 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-25 15:43:25,152 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6d57adde-44e9-4d3c-9649-c85e058f2897
2025-06-25 15:43:25,162 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f325e07a-17d4-43b7-8b52-c7fb67e29a14
2025-06-25 15:43:25,178 - INFO - Verified VN network id 10 for VN 6d57adde-44e9-4d3c-9649-c85e058f2897
2025-06-25 15:43:25,178 - INFO - Verifications in API Server for VN ctest-vn-67886573 passed
2025-06-25 15:43:25,178 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6d57adde-44e9-4d3c-9649-c85e058f2897
2025-06-25 15:43:25,189 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f325e07a-17d4-43b7-8b52-c7fb67e29a14
2025-06-25 15:43:25,197 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f325e07a-17d4-43b7-8b52-c7fb67e29a14
2025-06-25 15:43:25,204 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d04eebb2-597d-48ba-829e-9849d5b0bd32
2025-06-25 15:43:25,218 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54281569:ctest-vn-67886573', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54281569', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7878957243258457404', 'uuid-lslong': '10829407085134817431'}, 'enable': 'true', 'created': '2025-06-25T15:43:22', 'last-modified': '2025-06-25T15:43:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.549781'}
2025-06-25 15:43:25,224 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-25 15:43:25,224 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67886573 passed
2025-06-25 15:43:25,225 - DEBUG - ====Verifying policy data for ctest-vn-67886573 in API_Server ======
2025-06-25 15:43:25,225 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-25 15:43:25,230 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a8ba9dbd-4ee5-4e01-8335-7ed78317279e
2025-06-25 15:43:25,243 - DEBUG - Requesting: http://10.0.0.254:8082/project/8bf82de4-dfb0-475c-a51f-53d3e501d6b7
2025-06-25 15:43:25,317 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6d57adde-44e9-4d3c-9649-c85e058f2897
2025-06-25 15:43:25,328 - DEBUG - ==>Verifying data for policy with id: a9926946-ca53-44c7-bd87-973bd05dfb24, fqn: ['default-domain', 'ctest-TestBasicPolicy-54281569', 'ctest-policy-allow-all-91190161']
2025-06-25 15:43:25,328 - INFO - VN ctest-vn-67886573 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-25 15:43:25,328 - DEBUG - Verifying the vn in opserver
2025-06-25 15:43:25,328 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54281569:ctest-vn-67886573 virtual network link through opserver 10.0.0.254
2025-06-25 15:43:25,329 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-25 15:43:25,340 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54281569:ctest-vn-67886573', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54281569:ctest-vn-67886573?flat'}
2025-06-25 15:43:25,340 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54281569:ctest-vn-67886573 is found in opserver
2025-06-25 15:43:25,352 - DEBUG - Do not have enough data to verify VN in agent
2025-06-25 15:43:25,357 - DEBUG - VRF ids for VN ctest-vn-67886573: {}
2025-06-25 15:43:25,414 - DEBUG - Services list from nova: [