2025-09-23 12:25:31,613 - INFO - Domain Default found not creating
2025-09-23 12:25:31,815 - INFO - Project ctest-TestBasicPolicy-68298632 not found, creating it
2025-09-23 12:25:32,329 - INFO - Created Project:ctest-TestBasicPolicy-68298632, ID : 1dcbdb5d-e1a0-445a-afab-2568343de50f
2025-09-23 12:25:34,004 - INFO - ================================================================================
2025-09-23 12:25:34,004 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-23 12:25:34,004 - 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-23 12:25:34,278 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with
2025-09-23 12:25:34,278 - INFO - Initial checks done. Running the testcase now
2025-09-23 12:25:34,278 - INFO -
2025-09-23 12:25:34,899 - DEBUG - Response for create_network : {'network': {'id': 'b64a3aa3-b2da-4128-9f65-02f1ab86d6b4', 'name': 'ctest-vn-32889844', 'tenant_id': '1dcbdb5de1a0445aafab2568343de50f', 'project_id': '1dcbdb5de1a0445aafab2568343de50f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68298632', 'ctest-vn-32889844'], 'port_security_enabled': True, 'description': ''}}
2025-09-23 12:25:35,081 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fc5479e7-c16f-4721-aa4f-de456927adc3', 'name': '', 'tenant_id': '1dcbdb5de1a0445aafab2568343de50f', 'network_id': 'b64a3aa3-b2da-4128-9f65-02f1ab86d6b4', 'ip_version': 4, 'cidr': '50.48.169.64/26', 'allocation_pools': [{'start': '50.48.169.66', 'end': '50.48.169.126'}], 'gateway_ip': '50.48.169.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.48.169.66', 'tags': [], 'project_id': '1dcbdb5de1a0445aafab2568343de50f'}}
2025-09-23 12:25:35,101 - INFO - Created VN ctest-vn-32889844
2025-09-23 12:25:35,155 - DEBUG - VN ctest-vn-32889844 UUID is b64a3aa3-b2da-4128-9f65-02f1ab86d6b4
2025-09-23 12:25:35,461 - DEBUG - Response for create_network : {'network': {'id': '16054673-e7bd-4bba-91f5-3086ba48217a', 'name': 'ctest-vn-36655934', 'tenant_id': '1dcbdb5de1a0445aafab2568343de50f', 'project_id': '1dcbdb5de1a0445aafab2568343de50f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68298632', 'ctest-vn-36655934'], 'port_security_enabled': True, 'description': ''}}
2025-09-23 12:25:35,660 - DEBUG - Response for create_subnet : {'subnet': {'id': '87cd7360-4aad-4a9e-a5f4-cf504eaf0ae1', 'name': '', 'tenant_id': '1dcbdb5de1a0445aafab2568343de50f', 'network_id': '16054673-e7bd-4bba-91f5-3086ba48217a', 'ip_version': 4, 'cidr': '130.130.231.64/26', 'allocation_pools': [{'start': '130.130.231.66', 'end': '130.130.231.126'}], 'gateway_ip': '130.130.231.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.130.231.66', 'tags': [], 'project_id': '1dcbdb5de1a0445aafab2568343de50f'}}
2025-09-23 12:25:35,679 - INFO - Created VN ctest-vn-36655934
2025-09-23 12:25:35,735 - DEBUG - VN ctest-vn-36655934 UUID is 16054673-e7bd-4bba-91f5-3086ba48217a
2025-09-23 12:25:35,856 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68298632:ctest-vn-32889844, 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-68298632:ctest-vn-36655934, 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-23 12:25:36,265 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b64a3aa3-b2da-4128-9f65-02f1ab86d6b4', 'name': 'ctest-vn-32889844', 'tenant_id': '1dcbdb5de1a0445aafab2568343de50f', 'project_id': '1dcbdb5de1a0445aafab2568343de50f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fc5479e7-c16f-4721-aa4f-de456927adc3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68298632', 'ctest-vn-32889844'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68298632', 'ctest-policy-allow-all-22542947']], 'subnet_ipam': [{'subnet_cidr': '50.48.169.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-23 12:25:36,546 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '16054673-e7bd-4bba-91f5-3086ba48217a', 'name': 'ctest-vn-36655934', 'tenant_id': '1dcbdb5de1a0445aafab2568343de50f', 'project_id': '1dcbdb5de1a0445aafab2568343de50f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['87cd7360-4aad-4a9e-a5f4-cf504eaf0ae1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68298632', 'ctest-vn-36655934'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68298632', 'ctest-policy-allow-all-22542947']], 'subnet_ipam': [{'subnet_cidr': '130.130.231.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-23 12:25:36,699 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-09-23 12:25:36,999 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-09-23 12:25:37,031 - DEBUG - Requesting: http://10.0.0.33:8082/domain/24e61fe2-ec6b-4a00-98f7-7be48c0359fb
2025-09-23 12:25:37,048 - DEBUG - Requesting: http://10.0.0.33:8082/project/1dcbdb5d-e1a0-445a-afab-2568343de50f
2025-09-23 12:25:37,129 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b64a3aa3-b2da-4128-9f65-02f1ab86d6b4
2025-09-23 12:25:37,142 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b64a3aa3-b2da-4128-9f65-02f1ab86d6b4
2025-09-23 12:25:37,152 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ca484a97-a8d9-4f6f-87de-e32fb471a33c
2025-09-23 12:25:37,162 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ca484a97-a8d9-4f6f-87de-e32fb471a33c
2025-09-23 12:25:37,172 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/090e1784-dd65-4342-8ad1-c2d6c6c0a1f5
2025-09-23 12:25:37,180 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-23 12:25:37,180 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b64a3aa3-b2da-4128-9f65-02f1ab86d6b4
2025-09-23 12:25:37,193 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ca484a97-a8d9-4f6f-87de-e32fb471a33c
2025-09-23 12:25:37,208 - INFO - Verified VN network id 10 for VN b64a3aa3-b2da-4128-9f65-02f1ab86d6b4
2025-09-23 12:25:37,209 - INFO - Verifications in API Server for VN ctest-vn-32889844 passed
2025-09-23 12:25:37,209 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b64a3aa3-b2da-4128-9f65-02f1ab86d6b4
2025-09-23 12:25:37,221 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ca484a97-a8d9-4f6f-87de-e32fb471a33c
2025-09-23 12:25:37,229 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ca484a97-a8d9-4f6f-87de-e32fb471a33c
2025-09-23 12:25:37,237 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/090e1784-dd65-4342-8ad1-c2d6c6c0a1f5
2025-09-23 12:25:37,250 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68298632:ctest-vn-32889844', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68298632', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13135375737934201128', 'uuid-lslong': '11485589661666432692'}, 'enable': 'true', 'created': '2025-09-23T12:25:34', 'last-modified': '2025-09-23T12:25:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.089649'}
2025-09-23 12:25:37,258 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-23 12:25:37,258 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32889844 passed
2025-09-23 12:25:37,258 - DEBUG - ====Verifying policy data for ctest-vn-32889844 in API_Server ======
2025-09-23 12:25:37,258 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-09-23 12:25:37,266 - DEBUG - Requesting: http://10.0.0.33:8082/domain/24e61fe2-ec6b-4a00-98f7-7be48c0359fb
2025-09-23 12:25:37,279 - DEBUG - Requesting: http://10.0.0.33:8082/project/1dcbdb5d-e1a0-445a-afab-2568343de50f
2025-09-23 12:25:37,353 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b64a3aa3-b2da-4128-9f65-02f1ab86d6b4
2025-09-23 12:25:37,366 - DEBUG - ==>Verifying data for policy with id: d989b2cc-60a0-4cdf-acc8-c28011cf6b25, fqn: ['default-domain', 'ctest-TestBasicPolicy-68298632', 'ctest-policy-allow-all-22542947']
2025-09-23 12:25:37,366 - INFO - VN ctest-vn-32889844 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-23 12:25:37,366 - DEBUG - Verifying the vn in opserver
2025-09-23 12:25:37,366 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68298632:ctest-vn-32889844 virtual network link through opserver 10.0.0.33
2025-09-23 12:25:37,366 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-09-23 12:25:37,663 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-09-23 12:25:37,746 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68298632:ctest-vn-32889844', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68298632:ctest-vn-32889844?flat'}
2025-09-23 12:25:37,747 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68298632:ctest-vn-32889844 is found in opserver
2025-09-23 12:25:37,758 - DEBUG - Do not have enough data to verify VN in agent
2025-09-23 12:25:37,763 - DEBUG - VRF ids for VN ctest-vn-32889844: {}
2025-09-23 12:25:37,763 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-09-23 12:25:37,769 - DEBUG - Requesting: http://10.0.0.33:8082/domain/24e61fe2-ec6b-4a00-98f7-7be48c0359fb
2025-09-23 12:25:37,783 - DEBUG - Requesting: http://10.0.0.33:8082/project/1dcbdb5d-e1a0-445a-afab-2568343de50f
2025-09-23 12:25:37,860 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/16054673-e7bd-4bba-91f5-3086ba48217a
2025-09-23 12:25:37,873 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/16054673-e7bd-4bba-91f5-3086ba48217a
2025-09-23 12:25:37,884 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a298a1ef-7ba1-4d89-be4c-ab386e883da5
2025-09-23 12:25:37,893 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a298a1ef-7ba1-4d89-be4c-ab386e883da5
2025-09-23 12:25:37,901 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/d67886f9-c1b4-46c0-8a50-71d52c77f16a
2025-09-23 12:25:37,909 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-23 12:25:37,909 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/16054673-e7bd-4bba-91f5-3086ba48217a
2025-09-23 12:25:37,919 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a298a1ef-7ba1-4d89-be4c-ab386e883da5
2025-09-23 12:25:37,936 - INFO - Verified VN network id 11 for VN 16054673-e7bd-4bba-91f5-3086ba48217a
2025-09-23 12:25:37,936 - INFO - Verifications in API Server for VN ctest-vn-36655934 passed
2025-09-23 12:25:37,936 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/16054673-e7bd-4bba-91f5-3086ba48217a
2025-09-23 12:25:37,946 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a298a1ef-7ba1-4d89-be4c-ab386e883da5
2025-09-23 12:25:37,954 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a298a1ef-7ba1-4d89-be4c-ab386e883da5
2025-09-23 12:25:37,961 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/d67886f9-c1b4-46c0-8a50-71d52c77f16a
2025-09-23 12:25:37,975 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68298632:ctest-vn-36655934', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68298632', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1586751907341093818', 'uuid-lslong': '10517365860002701690'}, 'enable': 'true', 'created': '2025-09-23T12:25:35', 'last-modified': '2025-09-23T12:25:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.495731'}
2025-09-23 12:25:37,981 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-23 12:25:37,981 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36655934 passed
2025-09-23 12:25:37,981 - DEBUG - ====Verifying policy data for ctest-vn-36655934 in API_Server ======
2025-09-23 12:25:37,981 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-09-23 12:25:37,988 - DEBUG - Requesting: http://10.0.0.33:8082/domain/24e61fe2-ec6b-4a00-98f7-7be48c0359fb
2025-09-23 12:25:37,999 - DEBUG - Requesting: http://10.0.0.33:8082/project/1dcbdb5d-e1a0-445a-afab-2568343de50f
2025-09-23 12:25:38,072 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/16054673-e7bd-4bba-91f5-3086ba48217a
2025-09-23 12:25:38,082 - DEBUG - ==>Verifying data for policy with id: d989b2cc-60a0-4cdf-acc8-c28011cf6b25, fqn: ['default-domain', 'ctest-TestBasicPolicy-68298632', 'ctest-policy-allow-all-22542947']
2025-09-23 12:25:38,082 - INFO - VN ctest-vn-36655934 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-23 12:25:38,082 - DEBUG - Verifying the vn in opserver
2025-09-23 12:25:38,082 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68298632:ctest-vn-36655934 virtual network link through opserver 10.0.0.33
2025-09-23 12:25:38,082 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-09-23 12:25:38,093 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68298632:ctest-vn-36655934', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68298632:ctest-vn-36655934?flat'}
2025-09-23 12:25:38,093 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68298632:ctest-vn-36655934 is found in opserver
2025-09-23 12:25:38,106 - DEBUG - Do not have enough data to verify VN in agent
2025-09-23 12:25:38,111 - DEBUG - VRF ids for VN ctest-vn-36655934: {}
2025-09-23 12:25:38,179 - DEBUG - Services list from nova: [