2025-09-09 20:51:13,735 - INFO - Domain Default found not creating
2025-09-09 20:51:13,863 - INFO - Project ctest-TestBasicPolicy-33153963 not found, creating it
2025-09-09 20:51:14,273 - INFO - Created Project:ctest-TestBasicPolicy-33153963, ID : 32148a6e-0b12-43ae-84f3-16fecf6f51e2
2025-09-09 20:51:15,611 - INFO - ================================================================================
2025-09-09 20:51:15,612 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-09 20:51:15,612 - 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-09 20:51:15,866 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with
2025-09-09 20:51:15,866 - INFO - Initial checks done. Running the testcase now
2025-09-09 20:51:15,866 - INFO -
2025-09-09 20:51:16,395 - DEBUG - Response for create_network : {'network': {'id': '8ae47e79-1bc0-4169-8d30-33867ad191a6', 'name': 'ctest-vn-77124076', 'tenant_id': '32148a6e0b1243ae84f316fecf6f51e2', 'project_id': '32148a6e0b1243ae84f316fecf6f51e2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33153963', 'ctest-vn-77124076'], 'port_security_enabled': True, 'description': ''}}
2025-09-09 20:51:16,599 - DEBUG - Response for create_subnet : {'subnet': {'id': '8eefc111-bb37-4a86-aba8-7402a4bc9546', 'name': '', 'tenant_id': '32148a6e0b1243ae84f316fecf6f51e2', 'network_id': '8ae47e79-1bc0-4169-8d30-33867ad191a6', 'ip_version': 4, 'cidr': '138.151.31.0/26', 'allocation_pools': [{'start': '138.151.31.2', 'end': '138.151.31.62'}], 'gateway_ip': '138.151.31.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '138.151.31.2', 'tags': [], 'project_id': '32148a6e0b1243ae84f316fecf6f51e2'}}
2025-09-09 20:51:16,614 - INFO - Created VN ctest-vn-77124076
2025-09-09 20:51:16,664 - DEBUG - VN ctest-vn-77124076 UUID is 8ae47e79-1bc0-4169-8d30-33867ad191a6
2025-09-09 20:51:16,965 - DEBUG - Response for create_network : {'network': {'id': '63ae1813-2b84-4b30-a295-b4b55e556d8b', 'name': 'ctest-vn-37966113', 'tenant_id': '32148a6e0b1243ae84f316fecf6f51e2', 'project_id': '32148a6e0b1243ae84f316fecf6f51e2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33153963', 'ctest-vn-37966113'], 'port_security_enabled': True, 'description': ''}}
2025-09-09 20:51:17,178 - DEBUG - Response for create_subnet : {'subnet': {'id': '03fa5c80-1546-4571-964d-3ce40a35faba', 'name': '', 'tenant_id': '32148a6e0b1243ae84f316fecf6f51e2', 'network_id': '63ae1813-2b84-4b30-a295-b4b55e556d8b', 'ip_version': 4, 'cidr': '212.217.252.0/26', 'allocation_pools': [{'start': '212.217.252.2', 'end': '212.217.252.62'}], 'gateway_ip': '212.217.252.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212.217.252.2', 'tags': [], 'project_id': '32148a6e0b1243ae84f316fecf6f51e2'}}
2025-09-09 20:51:17,194 - INFO - Created VN ctest-vn-37966113
2025-09-09 20:51:17,244 - DEBUG - VN ctest-vn-37966113 UUID is 63ae1813-2b84-4b30-a295-b4b55e556d8b
2025-09-09 20:51:17,384 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-33153963:ctest-vn-77124076, 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-33153963:ctest-vn-37966113, 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-09 20:51:17,670 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8ae47e79-1bc0-4169-8d30-33867ad191a6', 'name': 'ctest-vn-77124076', 'tenant_id': '32148a6e0b1243ae84f316fecf6f51e2', 'project_id': '32148a6e0b1243ae84f316fecf6f51e2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8eefc111-bb37-4a86-aba8-7402a4bc9546'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33153963', 'ctest-vn-77124076'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33153963', 'ctest-policy-allow-all-42203344']], 'subnet_ipam': [{'subnet_cidr': '138.151.31.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-09 20:51:17,883 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '63ae1813-2b84-4b30-a295-b4b55e556d8b', 'name': 'ctest-vn-37966113', 'tenant_id': '32148a6e0b1243ae84f316fecf6f51e2', 'project_id': '32148a6e0b1243ae84f316fecf6f51e2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['03fa5c80-1546-4571-964d-3ce40a35faba'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33153963', 'ctest-vn-37966113'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33153963', 'ctest-policy-allow-all-42203344']], 'subnet_ipam': [{'subnet_cidr': '212.217.252.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-09 20:51:18,044 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-09-09 20:51:18,333 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-09-09 20:51:18,357 - DEBUG - Requesting: http://10.0.0.48:8082/domain/e5788a33-7c56-4391-ad46-5a7b442d4258
2025-09-09 20:51:18,367 - DEBUG - Requesting: http://10.0.0.48:8082/project/32148a6e-0b12-43ae-84f3-16fecf6f51e2
2025-09-09 20:51:18,434 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/8ae47e79-1bc0-4169-8d30-33867ad191a6
2025-09-09 20:51:18,443 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/8ae47e79-1bc0-4169-8d30-33867ad191a6
2025-09-09 20:51:18,450 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/50fcb5df-b789-4ab6-b9b4-6b820c2dfa9d
2025-09-09 20:51:18,455 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/50fcb5df-b789-4ab6-b9b4-6b820c2dfa9d
2025-09-09 20:51:18,460 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/3e110170-6e64-4e88-9d18-5e902922a60e
2025-09-09 20:51:18,465 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-09 20:51:18,465 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/8ae47e79-1bc0-4169-8d30-33867ad191a6
2025-09-09 20:51:18,473 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/50fcb5df-b789-4ab6-b9b4-6b820c2dfa9d
2025-09-09 20:51:18,484 - INFO - Verified VN network id 12 for VN 8ae47e79-1bc0-4169-8d30-33867ad191a6
2025-09-09 20:51:18,484 - INFO - Verifications in API Server for VN ctest-vn-77124076 passed
2025-09-09 20:51:18,484 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/8ae47e79-1bc0-4169-8d30-33867ad191a6
2025-09-09 20:51:18,492 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/50fcb5df-b789-4ab6-b9b4-6b820c2dfa9d
2025-09-09 20:51:18,497 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/50fcb5df-b789-4ab6-b9b4-6b820c2dfa9d
2025-09-09 20:51:18,503 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/3e110170-6e64-4e88-9d18-5e902922a60e
2025-09-09 20:51:18,512 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33153963:ctest-vn-77124076', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33153963', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10008263330545811817', 'uuid-lslong': '10173688210909139366'}, 'enable': 'true', 'created': '2025-09-09T20:51:16', 'last-modified': '2025-09-09T20:51:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.862078'}
2025-09-09 20:51:18,517 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-09 20:51:18,518 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77124076 passed
2025-09-09 20:51:18,518 - DEBUG - ====Verifying policy data for ctest-vn-77124076 in API_Server ======
2025-09-09 20:51:18,518 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-09-09 20:51:18,522 - DEBUG - Requesting: http://10.0.0.48:8082/domain/e5788a33-7c56-4391-ad46-5a7b442d4258
2025-09-09 20:51:18,532 - DEBUG - Requesting: http://10.0.0.48:8082/project/32148a6e-0b12-43ae-84f3-16fecf6f51e2
2025-09-09 20:51:18,599 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/8ae47e79-1bc0-4169-8d30-33867ad191a6
2025-09-09 20:51:18,607 - DEBUG - ==>Verifying data for policy with id: 3e2575ea-191f-482c-9146-8e1306bcfbdd, fqn: ['default-domain', 'ctest-TestBasicPolicy-33153963', 'ctest-policy-allow-all-42203344']
2025-09-09 20:51:18,607 - INFO - VN ctest-vn-77124076 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-09 20:51:18,607 - DEBUG - Verifying the vn in opserver
2025-09-09 20:51:18,607 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33153963:ctest-vn-77124076 virtual network link through opserver 10.0.0.48
2025-09-09 20:51:18,607 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-09-09 20:51:18,896 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-09-09 20:51:18,948 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33153963:ctest-vn-77124076', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33153963:ctest-vn-77124076?flat'}
2025-09-09 20:51:18,948 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33153963:ctest-vn-77124076 is found in opserver
2025-09-09 20:51:18,957 - DEBUG - Do not have enough data to verify VN in agent
2025-09-09 20:51:18,960 - DEBUG - VRF ids for VN ctest-vn-77124076: {}
2025-09-09 20:51:18,960 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-09-09 20:51:18,965 - DEBUG - Requesting: http://10.0.0.48:8082/domain/e5788a33-7c56-4391-ad46-5a7b442d4258
2025-09-09 20:51:18,974 - DEBUG - Requesting: http://10.0.0.48:8082/project/32148a6e-0b12-43ae-84f3-16fecf6f51e2
2025-09-09 20:51:19,043 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/63ae1813-2b84-4b30-a295-b4b55e556d8b
2025-09-09 20:51:19,053 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/63ae1813-2b84-4b30-a295-b4b55e556d8b
2025-09-09 20:51:19,061 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a9b9e57b-f1d9-43ec-8a98-1f982a600d52
2025-09-09 20:51:19,066 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a9b9e57b-f1d9-43ec-8a98-1f982a600d52
2025-09-09 20:51:19,072 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/0bdb5353-8455-4767-8244-de043515b9b9
2025-09-09 20:51:19,077 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-09 20:51:19,077 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/63ae1813-2b84-4b30-a295-b4b55e556d8b
2025-09-09 20:51:19,084 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a9b9e57b-f1d9-43ec-8a98-1f982a600d52
2025-09-09 20:51:19,095 - INFO - Verified VN network id 13 for VN 63ae1813-2b84-4b30-a295-b4b55e556d8b
2025-09-09 20:51:19,095 - INFO - Verifications in API Server for VN ctest-vn-37966113 passed
2025-09-09 20:51:19,095 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/63ae1813-2b84-4b30-a295-b4b55e556d8b
2025-09-09 20:51:19,103 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a9b9e57b-f1d9-43ec-8a98-1f982a600d52
2025-09-09 20:51:19,108 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a9b9e57b-f1d9-43ec-8a98-1f982a600d52
2025-09-09 20:51:19,113 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/0bdb5353-8455-4767-8244-de043515b9b9
2025-09-09 20:51:19,122 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33153963:ctest-vn-37966113', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33153963', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7182704926316055344', 'uuid-lslong': '11715468696738950539'}, 'enable': 'true', 'created': '2025-09-09T20:51:16', 'last-modified': '2025-09-09T20:51:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.260684'}
2025-09-09 20:51:19,127 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-09 20:51:19,127 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37966113 passed
2025-09-09 20:51:19,127 - DEBUG - ====Verifying policy data for ctest-vn-37966113 in API_Server ======
2025-09-09 20:51:19,127 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-09-09 20:51:19,131 - DEBUG - Requesting: http://10.0.0.48:8082/domain/e5788a33-7c56-4391-ad46-5a7b442d4258
2025-09-09 20:51:19,139 - DEBUG - Requesting: http://10.0.0.48:8082/project/32148a6e-0b12-43ae-84f3-16fecf6f51e2
2025-09-09 20:51:19,205 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/63ae1813-2b84-4b30-a295-b4b55e556d8b
2025-09-09 20:51:19,212 - DEBUG - ==>Verifying data for policy with id: 3e2575ea-191f-482c-9146-8e1306bcfbdd, fqn: ['default-domain', 'ctest-TestBasicPolicy-33153963', 'ctest-policy-allow-all-42203344']
2025-09-09 20:51:19,212 - INFO - VN ctest-vn-37966113 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-09 20:51:19,212 - DEBUG - Verifying the vn in opserver
2025-09-09 20:51:19,213 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33153963:ctest-vn-37966113 virtual network link through opserver 10.0.0.48
2025-09-09 20:51:19,213 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-09-09 20:51:19,220 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33153963:ctest-vn-37966113', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33153963:ctest-vn-37966113?flat'}
2025-09-09 20:51:19,220 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33153963:ctest-vn-37966113 is found in opserver
2025-09-09 20:51:19,228 - DEBUG - Do not have enough data to verify VN in agent
2025-09-09 20:51:19,232 - DEBUG - VRF ids for VN ctest-vn-37966113: {}
2025-09-09 20:51:19,286 - DEBUG - Services list from nova: [