2025-09-15 11:32:40,215 - INFO - Domain Default found not creating
2025-09-15 11:32:40,372 - INFO - Project ctest-TestBasicPolicy-75850686 not found, creating it
2025-09-15 11:32:40,814 - INFO - Created Project:ctest-TestBasicPolicy-75850686, ID : c30bd0d1-0e68-4f34-a33a-192311b53202
2025-09-15 11:32:42,235 - INFO - ================================================================================
2025-09-15 11:32:42,236 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-15 11:32:42,236 - 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-15 11:32:42,488 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-09-15 11:32:42,488 - INFO - Initial checks done. Running the testcase now
2025-09-15 11:32:42,488 - INFO -
2025-09-15 11:32:43,022 - DEBUG - Response for create_network : {'network': {'id': '029440a4-4fa9-4f40-a29f-b520a4fee62f', 'name': 'ctest-vn-16442295', 'tenant_id': 'c30bd0d10e684f34a33a192311b53202', 'project_id': 'c30bd0d10e684f34a33a192311b53202', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75850686', 'ctest-vn-16442295'], 'port_security_enabled': True, 'description': ''}}
2025-09-15 11:32:43,219 - DEBUG - Response for create_subnet : {'subnet': {'id': '513ea8c9-b3fc-4d9a-a75b-9c0a78d778f5', 'name': '', 'tenant_id': 'c30bd0d10e684f34a33a192311b53202', 'network_id': '029440a4-4fa9-4f40-a29f-b520a4fee62f', 'ip_version': 4, 'cidr': '38.38.232.64/26', 'allocation_pools': [{'start': '38.38.232.66', 'end': '38.38.232.126'}], 'gateway_ip': '38.38.232.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.38.232.66', 'tags': [], 'project_id': 'c30bd0d10e684f34a33a192311b53202'}}
2025-09-15 11:32:43,235 - INFO - Created VN ctest-vn-16442295
2025-09-15 11:32:43,287 - DEBUG - VN ctest-vn-16442295 UUID is 029440a4-4fa9-4f40-a29f-b520a4fee62f
2025-09-15 11:32:43,597 - DEBUG - Response for create_network : {'network': {'id': '319bd3e9-1166-458b-bf82-8332ecebdcc7', 'name': 'ctest-vn-05492487', 'tenant_id': 'c30bd0d10e684f34a33a192311b53202', 'project_id': 'c30bd0d10e684f34a33a192311b53202', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75850686', 'ctest-vn-05492487'], 'port_security_enabled': True, 'description': ''}}
2025-09-15 11:32:43,792 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ec12c024-fbdc-4f2c-af5c-8103f896590c', 'name': '', 'tenant_id': 'c30bd0d10e684f34a33a192311b53202', 'network_id': '319bd3e9-1166-458b-bf82-8332ecebdcc7', 'ip_version': 4, 'cidr': '9.26.181.192/26', 'allocation_pools': [{'start': '9.26.181.194', 'end': '9.26.181.254'}], 'gateway_ip': '9.26.181.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.26.181.194', 'tags': [], 'project_id': 'c30bd0d10e684f34a33a192311b53202'}}
2025-09-15 11:32:43,808 - INFO - Created VN ctest-vn-05492487
2025-09-15 11:32:43,859 - DEBUG - VN ctest-vn-05492487 UUID is 319bd3e9-1166-458b-bf82-8332ecebdcc7
2025-09-15 11:32:43,971 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-75850686:ctest-vn-16442295, 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-75850686:ctest-vn-05492487, 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-15 11:32:44,261 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '029440a4-4fa9-4f40-a29f-b520a4fee62f', 'name': 'ctest-vn-16442295', 'tenant_id': 'c30bd0d10e684f34a33a192311b53202', 'project_id': 'c30bd0d10e684f34a33a192311b53202', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['513ea8c9-b3fc-4d9a-a75b-9c0a78d778f5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75850686', 'ctest-vn-16442295'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75850686', 'ctest-policy-allow-all-38856644']], 'subnet_ipam': [{'subnet_cidr': '38.38.232.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-15 11:32:44,483 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '319bd3e9-1166-458b-bf82-8332ecebdcc7', 'name': 'ctest-vn-05492487', 'tenant_id': 'c30bd0d10e684f34a33a192311b53202', 'project_id': 'c30bd0d10e684f34a33a192311b53202', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ec12c024-fbdc-4f2c-af5c-8103f896590c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75850686', 'ctest-vn-05492487'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75850686', 'ctest-policy-allow-all-38856644']], 'subnet_ipam': [{'subnet_cidr': '9.26.181.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-15 11:32:44,639 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-15 11:32:44,935 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-15 11:32:44,965 - DEBUG - Requesting: http://10.0.0.22:8082/domain/b060051c-7aee-4d6e-8637-30f7274bf19e
2025-09-15 11:32:44,977 - DEBUG - Requesting: http://10.0.0.22:8082/project/c30bd0d1-0e68-4f34-a33a-192311b53202
2025-09-15 11:32:45,049 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/029440a4-4fa9-4f40-a29f-b520a4fee62f
2025-09-15 11:32:45,059 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/029440a4-4fa9-4f40-a29f-b520a4fee62f
2025-09-15 11:32:45,067 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/622aeb56-4f28-4eb6-b97f-7c69db1da4f8
2025-09-15 11:32:45,073 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/622aeb56-4f28-4eb6-b97f-7c69db1da4f8
2025-09-15 11:32:45,078 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c9a18841-1af0-47d5-b224-a5b95b06a0f5
2025-09-15 11:32:45,084 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-15 11:32:45,084 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/029440a4-4fa9-4f40-a29f-b520a4fee62f
2025-09-15 11:32:45,092 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/622aeb56-4f28-4eb6-b97f-7c69db1da4f8
2025-09-15 11:32:45,103 - INFO - Verified VN network id 11 for VN 029440a4-4fa9-4f40-a29f-b520a4fee62f
2025-09-15 11:32:45,103 - INFO - Verifications in API Server for VN ctest-vn-16442295 passed
2025-09-15 11:32:45,103 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/029440a4-4fa9-4f40-a29f-b520a4fee62f
2025-09-15 11:32:45,111 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/622aeb56-4f28-4eb6-b97f-7c69db1da4f8
2025-09-15 11:32:45,116 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/622aeb56-4f28-4eb6-b97f-7c69db1da4f8
2025-09-15 11:32:45,122 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c9a18841-1af0-47d5-b224-a5b95b06a0f5
2025-09-15 11:32:45,131 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75850686:ctest-vn-16442295', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75850686', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '185844559084343104', 'uuid-lslong': '11718283907253069359'}, 'enable': 'true', 'created': '2025-09-15T11:32:42', 'last-modified': '2025-09-15T11:32:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.895885'}
2025-09-15 11:32:45,137 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-15 11:32:45,137 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16442295 passed
2025-09-15 11:32:45,137 - DEBUG - ====Verifying policy data for ctest-vn-16442295 in API_Server ======
2025-09-15 11:32:45,137 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-15 11:32:45,142 - DEBUG - Requesting: http://10.0.0.22:8082/domain/b060051c-7aee-4d6e-8637-30f7274bf19e
2025-09-15 11:32:45,152 - DEBUG - Requesting: http://10.0.0.22:8082/project/c30bd0d1-0e68-4f34-a33a-192311b53202
2025-09-15 11:32:45,222 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/029440a4-4fa9-4f40-a29f-b520a4fee62f
2025-09-15 11:32:45,230 - DEBUG - ==>Verifying data for policy with id: 83905417-188a-4830-896e-f2794b0f81ce, fqn: ['default-domain', 'ctest-TestBasicPolicy-75850686', 'ctest-policy-allow-all-38856644']
2025-09-15 11:32:45,231 - INFO - VN ctest-vn-16442295 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-15 11:32:45,231 - DEBUG - Verifying the vn in opserver
2025-09-15 11:32:45,231 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75850686:ctest-vn-16442295 virtual network link through opserver 10.0.0.22
2025-09-15 11:32:45,231 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-15 11:32:45,521 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-15 11:32:45,574 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75850686:ctest-vn-16442295', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75850686:ctest-vn-16442295?flat'}
2025-09-15 11:32:45,574 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75850686:ctest-vn-16442295 is found in opserver
2025-09-15 11:32:45,583 - DEBUG - Do not have enough data to verify VN in agent
2025-09-15 11:32:45,587 - DEBUG - VRF ids for VN ctest-vn-16442295: {}
2025-09-15 11:32:45,587 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-15 11:32:45,591 - DEBUG - Requesting: http://10.0.0.22:8082/domain/b060051c-7aee-4d6e-8637-30f7274bf19e
2025-09-15 11:32:45,600 - DEBUG - Requesting: http://10.0.0.22:8082/project/c30bd0d1-0e68-4f34-a33a-192311b53202
2025-09-15 11:32:45,665 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/319bd3e9-1166-458b-bf82-8332ecebdcc7
2025-09-15 11:32:45,674 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/319bd3e9-1166-458b-bf82-8332ecebdcc7
2025-09-15 11:32:45,682 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8f554887-1255-4cbf-b9bc-73844cecc733
2025-09-15 11:32:45,688 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8f554887-1255-4cbf-b9bc-73844cecc733
2025-09-15 11:32:45,694 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/3c8827b0-1e2c-4dda-bcba-fcc0080102ce
2025-09-15 11:32:45,700 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-15 11:32:45,700 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/319bd3e9-1166-458b-bf82-8332ecebdcc7
2025-09-15 11:32:45,708 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8f554887-1255-4cbf-b9bc-73844cecc733
2025-09-15 11:32:45,721 - INFO - Verified VN network id 12 for VN 319bd3e9-1166-458b-bf82-8332ecebdcc7
2025-09-15 11:32:45,721 - INFO - Verifications in API Server for VN ctest-vn-05492487 passed
2025-09-15 11:32:45,721 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/319bd3e9-1166-458b-bf82-8332ecebdcc7
2025-09-15 11:32:45,728 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8f554887-1255-4cbf-b9bc-73844cecc733
2025-09-15 11:32:45,734 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8f554887-1255-4cbf-b9bc-73844cecc733
2025-09-15 11:32:45,740 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/3c8827b0-1e2c-4dda-bcba-fcc0080102ce
2025-09-15 11:32:45,750 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75850686:ctest-vn-05492487', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75850686', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3574683727221376395', 'uuid-lslong': '13799736462963104967'}, 'enable': 'true', 'created': '2025-09-15T11:32:43', 'last-modified': '2025-09-15T11:32:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.286388'}
2025-09-15 11:32:45,755 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-15 11:32:45,756 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05492487 passed
2025-09-15 11:32:45,756 - DEBUG - ====Verifying policy data for ctest-vn-05492487 in API_Server ======
2025-09-15 11:32:45,756 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-15 11:32:45,761 - DEBUG - Requesting: http://10.0.0.22:8082/domain/b060051c-7aee-4d6e-8637-30f7274bf19e
2025-09-15 11:32:45,771 - DEBUG - Requesting: http://10.0.0.22:8082/project/c30bd0d1-0e68-4f34-a33a-192311b53202
2025-09-15 11:32:45,840 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/319bd3e9-1166-458b-bf82-8332ecebdcc7
2025-09-15 11:32:45,848 - DEBUG - ==>Verifying data for policy with id: 83905417-188a-4830-896e-f2794b0f81ce, fqn: ['default-domain', 'ctest-TestBasicPolicy-75850686', 'ctest-policy-allow-all-38856644']
2025-09-15 11:32:45,848 - INFO - VN ctest-vn-05492487 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-15 11:32:45,848 - DEBUG - Verifying the vn in opserver
2025-09-15 11:32:45,848 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75850686:ctest-vn-05492487 virtual network link through opserver 10.0.0.22
2025-09-15 11:32:45,848 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-15 11:32:45,857 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75850686:ctest-vn-05492487', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75850686:ctest-vn-05492487?flat'}
2025-09-15 11:32:45,857 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75850686:ctest-vn-05492487 is found in opserver
2025-09-15 11:32:45,867 - DEBUG - Do not have enough data to verify VN in agent
2025-09-15 11:32:45,871 - DEBUG - VRF ids for VN ctest-vn-05492487: {}
2025-09-15 11:32:45,926 - DEBUG - Services list from nova: [