2025-10-14 12:07:09,930 - INFO - Domain Default found not creating
2025-10-14 12:07:10,084 - INFO - Project ctest-TestBasicPolicy-51216999 not found, creating it
2025-10-14 12:07:10,532 - INFO - Created Project:ctest-TestBasicPolicy-51216999, ID : da6408bc-54be-4a3d-b707-20f44f5269b0
2025-10-14 12:07:11,970 - INFO - ================================================================================
2025-10-14 12:07:11,971 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-14 12:07:11,971 - 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-14 12:07:12,222 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.18': '0'}} with
2025-10-14 12:07:12,222 - INFO - Initial checks done. Running the testcase now
2025-10-14 12:07:12,222 - INFO -
2025-10-14 12:07:12,732 - DEBUG - Response for create_network : {'network': {'id': '9dfff382-e7cb-4b21-aeae-1c247768433d', 'name': 'ctest-vn-02160848', 'tenant_id': 'da6408bc54be4a3db70720f44f5269b0', 'project_id': 'da6408bc54be4a3db70720f44f5269b0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51216999', 'ctest-vn-02160848'], 'port_security_enabled': True, 'description': ''}}
2025-10-14 12:07:12,936 - DEBUG - Response for create_subnet : {'subnet': {'id': '97eb4400-2061-4279-aaa1-cf68290d5abb', 'name': '', 'tenant_id': 'da6408bc54be4a3db70720f44f5269b0', 'network_id': '9dfff382-e7cb-4b21-aeae-1c247768433d', 'ip_version': 4, 'cidr': '206.168.180.64/26', 'allocation_pools': [{'start': '206.168.180.66', 'end': '206.168.180.126'}], 'gateway_ip': '206.168.180.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '206.168.180.66', 'tags': [], 'project_id': 'da6408bc54be4a3db70720f44f5269b0'}}
2025-10-14 12:07:12,952 - INFO - Created VN ctest-vn-02160848
2025-10-14 12:07:13,002 - DEBUG - VN ctest-vn-02160848 UUID is 9dfff382-e7cb-4b21-aeae-1c247768433d
2025-10-14 12:07:13,285 - DEBUG - Response for create_network : {'network': {'id': 'de03d579-20c8-4d3a-8e61-57dc4bd11a7d', 'name': 'ctest-vn-62138571', 'tenant_id': 'da6408bc54be4a3db70720f44f5269b0', 'project_id': 'da6408bc54be4a3db70720f44f5269b0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51216999', 'ctest-vn-62138571'], 'port_security_enabled': True, 'description': ''}}
2025-10-14 12:07:13,511 - DEBUG - Response for create_subnet : {'subnet': {'id': '5f328792-9f99-445e-8930-119f614307e9', 'name': '', 'tenant_id': 'da6408bc54be4a3db70720f44f5269b0', 'network_id': 'de03d579-20c8-4d3a-8e61-57dc4bd11a7d', 'ip_version': 4, 'cidr': '213.134.207.0/26', 'allocation_pools': [{'start': '213.134.207.2', 'end': '213.134.207.62'}], 'gateway_ip': '213.134.207.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.134.207.2', 'tags': [], 'project_id': 'da6408bc54be4a3db70720f44f5269b0'}}
2025-10-14 12:07:13,528 - INFO - Created VN ctest-vn-62138571
2025-10-14 12:07:13,577 - DEBUG - VN ctest-vn-62138571 UUID is de03d579-20c8-4d3a-8e61-57dc4bd11a7d
2025-10-14 12:07:13,721 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-51216999:ctest-vn-02160848, 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-51216999:ctest-vn-62138571, 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-14 12:07:14,016 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9dfff382-e7cb-4b21-aeae-1c247768433d', 'name': 'ctest-vn-02160848', 'tenant_id': 'da6408bc54be4a3db70720f44f5269b0', 'project_id': 'da6408bc54be4a3db70720f44f5269b0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['97eb4400-2061-4279-aaa1-cf68290d5abb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51216999', 'ctest-vn-02160848'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51216999', 'ctest-policy-allow-all-78004072']], 'subnet_ipam': [{'subnet_cidr': '206.168.180.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-14 12:07:14,248 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'de03d579-20c8-4d3a-8e61-57dc4bd11a7d', 'name': 'ctest-vn-62138571', 'tenant_id': 'da6408bc54be4a3db70720f44f5269b0', 'project_id': 'da6408bc54be4a3db70720f44f5269b0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5f328792-9f99-445e-8930-119f614307e9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51216999', 'ctest-vn-62138571'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51216999', 'ctest-policy-allow-all-78004072']], 'subnet_ipam': [{'subnet_cidr': '213.134.207.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-14 12:07:14,417 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-10-14 12:07:14,713 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-10-14 12:07:15,013 - DEBUG - Requesting: http://10.0.0.41:8082/domain/baf544cd-86c1-46ed-aa58-aa441036e6be
2025-10-14 12:07:15,025 - DEBUG - Requesting: http://10.0.0.41:8082/project/da6408bc-54be-4a3d-b707-20f44f5269b0
2025-10-14 12:07:15,094 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/9dfff382-e7cb-4b21-aeae-1c247768433d
2025-10-14 12:07:15,104 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/9dfff382-e7cb-4b21-aeae-1c247768433d
2025-10-14 12:07:15,112 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7cd00cb7-3027-4aa6-9429-bdc585c1cb25
2025-10-14 12:07:15,118 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7cd00cb7-3027-4aa6-9429-bdc585c1cb25
2025-10-14 12:07:15,125 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/838703ac-2164-486f-a60a-526efd9e67ca
2025-10-14 12:07:15,131 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-14 12:07:15,131 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/9dfff382-e7cb-4b21-aeae-1c247768433d
2025-10-14 12:07:15,139 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7cd00cb7-3027-4aa6-9429-bdc585c1cb25
2025-10-14 12:07:15,151 - INFO - Verified VN network id 11 for VN 9dfff382-e7cb-4b21-aeae-1c247768433d
2025-10-14 12:07:15,151 - INFO - Verifications in API Server for VN ctest-vn-02160848 passed
2025-10-14 12:07:15,151 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/9dfff382-e7cb-4b21-aeae-1c247768433d
2025-10-14 12:07:15,159 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7cd00cb7-3027-4aa6-9429-bdc585c1cb25
2025-10-14 12:07:15,168 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7cd00cb7-3027-4aa6-9429-bdc585c1cb25
2025-10-14 12:07:15,175 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/838703ac-2164-486f-a60a-526efd9e67ca
2025-10-14 12:07:15,186 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51216999:ctest-vn-02160848', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51216999', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11385086126576061217', 'uuid-lslong': '12587028951494837053'}, 'enable': 'true', 'created': '2025-10-14T12:07:12', 'last-modified': '2025-10-14T12:07:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.195689'}
2025-10-14 12:07:15,193 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-14 12:07:15,193 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02160848 passed
2025-10-14 12:07:15,193 - DEBUG - ====Verifying policy data for ctest-vn-02160848 in API_Server ======
2025-10-14 12:07:15,193 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-10-14 12:07:15,199 - DEBUG - Requesting: http://10.0.0.41:8082/domain/baf544cd-86c1-46ed-aa58-aa441036e6be
2025-10-14 12:07:15,208 - DEBUG - Requesting: http://10.0.0.41:8082/project/da6408bc-54be-4a3d-b707-20f44f5269b0
2025-10-14 12:07:15,274 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/9dfff382-e7cb-4b21-aeae-1c247768433d
2025-10-14 12:07:15,283 - DEBUG - ==>Verifying data for policy with id: 79ff8bb3-8210-469d-8969-0aef85e5c2a6, fqn: ['default-domain', 'ctest-TestBasicPolicy-51216999', 'ctest-policy-allow-all-78004072']
2025-10-14 12:07:15,283 - INFO - VN ctest-vn-02160848 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-14 12:07:15,283 - DEBUG - Verifying the vn in opserver
2025-10-14 12:07:15,283 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51216999:ctest-vn-02160848 virtual network link through opserver 10.0.0.41
2025-10-14 12:07:15,283 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-10-14 12:07:15,572 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-10-14 12:07:15,624 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51216999:ctest-vn-02160848', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51216999:ctest-vn-02160848?flat'}
2025-10-14 12:07:15,624 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51216999:ctest-vn-02160848 is found in opserver
2025-10-14 12:07:15,633 - DEBUG - Do not have enough data to verify VN in agent
2025-10-14 12:07:15,637 - DEBUG - VRF ids for VN ctest-vn-02160848: {}
2025-10-14 12:07:15,637 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-10-14 12:07:15,642 - DEBUG - Requesting: http://10.0.0.41:8082/domain/baf544cd-86c1-46ed-aa58-aa441036e6be
2025-10-14 12:07:15,652 - DEBUG - Requesting: http://10.0.0.41:8082/project/da6408bc-54be-4a3d-b707-20f44f5269b0
2025-10-14 12:07:15,721 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/de03d579-20c8-4d3a-8e61-57dc4bd11a7d
2025-10-14 12:07:15,732 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/de03d579-20c8-4d3a-8e61-57dc4bd11a7d
2025-10-14 12:07:15,742 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/4c1fee7c-35a0-48b4-b8ae-b103dbe0752f
2025-10-14 12:07:15,749 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/4c1fee7c-35a0-48b4-b8ae-b103dbe0752f
2025-10-14 12:07:15,756 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/7c3ff7e7-358d-4ed2-8f4a-605dadcda5bb
2025-10-14 12:07:15,763 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-14 12:07:15,763 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/de03d579-20c8-4d3a-8e61-57dc4bd11a7d
2025-10-14 12:07:15,772 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/4c1fee7c-35a0-48b4-b8ae-b103dbe0752f
2025-10-14 12:07:15,785 - INFO - Verified VN network id 12 for VN de03d579-20c8-4d3a-8e61-57dc4bd11a7d
2025-10-14 12:07:15,785 - INFO - Verifications in API Server for VN ctest-vn-62138571 passed
2025-10-14 12:07:15,785 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/de03d579-20c8-4d3a-8e61-57dc4bd11a7d
2025-10-14 12:07:15,793 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/4c1fee7c-35a0-48b4-b8ae-b103dbe0752f
2025-10-14 12:07:15,800 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/4c1fee7c-35a0-48b4-b8ae-b103dbe0752f
2025-10-14 12:07:15,806 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/7c3ff7e7-358d-4ed2-8f4a-605dadcda5bb
2025-10-14 12:07:15,818 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51216999:ctest-vn-62138571', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51216999', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15997865017567890746', 'uuid-lslong': '10259578029803117181'}, 'enable': 'true', 'created': '2025-10-14T12:07:13', 'last-modified': '2025-10-14T12:07:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.599378'}
2025-10-14 12:07:15,824 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-14 12:07:15,824 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62138571 passed
2025-10-14 12:07:15,824 - DEBUG - ====Verifying policy data for ctest-vn-62138571 in API_Server ======
2025-10-14 12:07:15,824 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-10-14 12:07:15,829 - DEBUG - Requesting: http://10.0.0.41:8082/domain/baf544cd-86c1-46ed-aa58-aa441036e6be
2025-10-14 12:07:15,838 - DEBUG - Requesting: http://10.0.0.41:8082/project/da6408bc-54be-4a3d-b707-20f44f5269b0
2025-10-14 12:07:15,906 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/de03d579-20c8-4d3a-8e61-57dc4bd11a7d
2025-10-14 12:07:15,914 - DEBUG - ==>Verifying data for policy with id: 79ff8bb3-8210-469d-8969-0aef85e5c2a6, fqn: ['default-domain', 'ctest-TestBasicPolicy-51216999', 'ctest-policy-allow-all-78004072']
2025-10-14 12:07:15,914 - INFO - VN ctest-vn-62138571 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-14 12:07:15,914 - DEBUG - Verifying the vn in opserver
2025-10-14 12:07:15,914 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51216999:ctest-vn-62138571 virtual network link through opserver 10.0.0.41
2025-10-14 12:07:15,914 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-10-14 12:07:15,924 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51216999:ctest-vn-62138571', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51216999:ctest-vn-62138571?flat'}
2025-10-14 12:07:15,924 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51216999:ctest-vn-62138571 is found in opserver
2025-10-14 12:07:15,934 - DEBUG - Do not have enough data to verify VN in agent
2025-10-14 12:07:15,939 - DEBUG - VRF ids for VN ctest-vn-62138571: {}
2025-10-14 12:07:15,990 - DEBUG - Services list from nova: [