2025-11-05 06:39:43,869 - INFO - Domain Default found not creating
2025-11-05 06:39:44,037 - INFO - Project ctest-TestBasicPolicy-37509734 not found, creating it
2025-11-05 06:39:44,521 - INFO - Created Project:ctest-TestBasicPolicy-37509734, ID : 9b84e939-e1d2-4370-be66-cad19e0ac3f5
2025-11-05 06:39:46,182 - INFO - ================================================================================
2025-11-05 06:39:46,182 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-05 06:39:46,183 - 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-11-05 06:39:46,458 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with
2025-11-05 06:39:46,458 - INFO - Initial checks done. Running the testcase now
2025-11-05 06:39:46,458 - INFO -
2025-11-05 06:39:47,094 - DEBUG - Response for create_network : {'network': {'id': '9c507e2a-d6ff-448e-a75a-c5249b79c510', 'name': 'ctest-vn-88354753', 'tenant_id': '9b84e939e1d24370be66cad19e0ac3f5', 'project_id': '9b84e939e1d24370be66cad19e0ac3f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37509734', 'ctest-vn-88354753'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 06:39:47,257 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f4f42769-c08e-48d3-98bd-8ff7c331d9ed', 'name': '', 'tenant_id': '9b84e939e1d24370be66cad19e0ac3f5', 'network_id': '9c507e2a-d6ff-448e-a75a-c5249b79c510', 'ip_version': 4, 'cidr': '80.237.163.64/26', 'allocation_pools': [{'start': '80.237.163.66', 'end': '80.237.163.126'}], 'gateway_ip': '80.237.163.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '80.237.163.66', 'tags': [], 'project_id': '9b84e939e1d24370be66cad19e0ac3f5'}}
2025-11-05 06:39:47,276 - INFO - Created VN ctest-vn-88354753
2025-11-05 06:39:47,329 - DEBUG - VN ctest-vn-88354753 UUID is 9c507e2a-d6ff-448e-a75a-c5249b79c510
2025-11-05 06:39:47,631 - DEBUG - Response for create_network : {'network': {'id': '8ce6a95e-8822-4bab-b257-135985c54b99', 'name': 'ctest-vn-83608077', 'tenant_id': '9b84e939e1d24370be66cad19e0ac3f5', 'project_id': '9b84e939e1d24370be66cad19e0ac3f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37509734', 'ctest-vn-83608077'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 06:39:47,807 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bc440c4e-cb0c-44c2-b97b-5d6b3e942875', 'name': '', 'tenant_id': '9b84e939e1d24370be66cad19e0ac3f5', 'network_id': '8ce6a95e-8822-4bab-b257-135985c54b99', 'ip_version': 4, 'cidr': '141.71.241.0/26', 'allocation_pools': [{'start': '141.71.241.2', 'end': '141.71.241.62'}], 'gateway_ip': '141.71.241.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '141.71.241.2', 'tags': [], 'project_id': '9b84e939e1d24370be66cad19e0ac3f5'}}
2025-11-05 06:39:47,828 - INFO - Created VN ctest-vn-83608077
2025-11-05 06:39:47,881 - DEBUG - VN ctest-vn-83608077 UUID is 8ce6a95e-8822-4bab-b257-135985c54b99
2025-11-05 06:39:48,004 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-37509734:ctest-vn-88354753, 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-37509734:ctest-vn-83608077, 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-11-05 06:39:48,307 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9c507e2a-d6ff-448e-a75a-c5249b79c510', 'name': 'ctest-vn-88354753', 'tenant_id': '9b84e939e1d24370be66cad19e0ac3f5', 'project_id': '9b84e939e1d24370be66cad19e0ac3f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f4f42769-c08e-48d3-98bd-8ff7c331d9ed'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37509734', 'ctest-vn-88354753'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37509734', 'ctest-policy-allow-all-47804110']], 'subnet_ipam': [{'subnet_cidr': '80.237.163.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 06:39:48,588 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8ce6a95e-8822-4bab-b257-135985c54b99', 'name': 'ctest-vn-83608077', 'tenant_id': '9b84e939e1d24370be66cad19e0ac3f5', 'project_id': '9b84e939e1d24370be66cad19e0ac3f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bc440c4e-cb0c-44c2-b97b-5d6b3e942875'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37509734', 'ctest-vn-83608077'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37509734', 'ctest-policy-allow-all-47804110']], 'subnet_ipam': [{'subnet_cidr': '141.71.241.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 06:39:48,725 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-11-05 06:39:49,068 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-11-05 06:39:49,100 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e38da72f-f1e5-4c94-a4a6-7a222e1ac34c
2025-11-05 06:39:49,112 - DEBUG - Requesting: http://10.0.0.130:8082/project/9b84e939-e1d2-4370-be66-cad19e0ac3f5
2025-11-05 06:39:49,189 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/9c507e2a-d6ff-448e-a75a-c5249b79c510
2025-11-05 06:39:49,200 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/9c507e2a-d6ff-448e-a75a-c5249b79c510
2025-11-05 06:39:49,209 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/27fdbc19-9930-4071-a75e-69246091afee
2025-11-05 06:39:49,222 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/27fdbc19-9930-4071-a75e-69246091afee
2025-11-05 06:39:49,229 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/89f14b75-e518-46aa-9e41-cb934fdc369d
2025-11-05 06:39:49,235 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 06:39:49,235 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/9c507e2a-d6ff-448e-a75a-c5249b79c510
2025-11-05 06:39:49,244 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/27fdbc19-9930-4071-a75e-69246091afee
2025-11-05 06:39:49,259 - INFO - Verified VN network id 11 for VN 9c507e2a-d6ff-448e-a75a-c5249b79c510
2025-11-05 06:39:49,259 - INFO - Verifications in API Server for VN ctest-vn-88354753 passed
2025-11-05 06:39:49,259 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/9c507e2a-d6ff-448e-a75a-c5249b79c510
2025-11-05 06:39:49,268 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/27fdbc19-9930-4071-a75e-69246091afee
2025-11-05 06:39:49,275 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/27fdbc19-9930-4071-a75e-69246091afee
2025-11-05 06:39:49,282 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/89f14b75-e518-46aa-9e41-cb934fdc369d
2025-11-05 06:39:49,296 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37509734:ctest-vn-88354753', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37509734', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11263641390514390158', 'uuid-lslong': '12059167713255867664'}, 'enable': 'true', 'created': '2025-11-05T06:39:47', 'last-modified': '2025-11-05T06:39:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.016375'}
2025-11-05 06:39:49,303 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 06:39:49,303 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88354753 passed
2025-11-05 06:39:49,303 - DEBUG - ====Verifying policy data for ctest-vn-88354753 in API_Server ======
2025-11-05 06:39:49,303 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-11-05 06:39:49,309 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e38da72f-f1e5-4c94-a4a6-7a222e1ac34c
2025-11-05 06:39:49,321 - DEBUG - Requesting: http://10.0.0.130:8082/project/9b84e939-e1d2-4370-be66-cad19e0ac3f5
2025-11-05 06:39:49,396 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/9c507e2a-d6ff-448e-a75a-c5249b79c510
2025-11-05 06:39:49,405 - DEBUG - ==>Verifying data for policy with id: 5dbb0971-9045-4305-ba50-22bdab43c81b, fqn: ['default-domain', 'ctest-TestBasicPolicy-37509734', 'ctest-policy-allow-all-47804110']
2025-11-05 06:39:49,405 - INFO - VN ctest-vn-88354753 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 06:39:49,405 - DEBUG - Verifying the vn in opserver
2025-11-05 06:39:49,405 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37509734:ctest-vn-88354753 virtual network link through opserver 10.0.0.130
2025-11-05 06:39:49,405 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-11-05 06:39:49,743 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-11-05 06:39:49,805 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37509734:ctest-vn-88354753', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37509734:ctest-vn-88354753?flat'}
2025-11-05 06:39:49,805 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37509734:ctest-vn-88354753 is found in opserver
2025-11-05 06:39:49,815 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 06:39:49,821 - DEBUG - VRF ids for VN ctest-vn-88354753: {}
2025-11-05 06:39:49,821 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-11-05 06:39:49,827 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e38da72f-f1e5-4c94-a4a6-7a222e1ac34c
2025-11-05 06:39:49,839 - DEBUG - Requesting: http://10.0.0.130:8082/project/9b84e939-e1d2-4370-be66-cad19e0ac3f5
2025-11-05 06:39:49,912 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/8ce6a95e-8822-4bab-b257-135985c54b99
2025-11-05 06:39:49,924 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/8ce6a95e-8822-4bab-b257-135985c54b99
2025-11-05 06:39:49,934 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/b47b62a6-4b42-4ac5-92e8-4db0f71a5ec8
2025-11-05 06:39:49,942 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/b47b62a6-4b42-4ac5-92e8-4db0f71a5ec8
2025-11-05 06:39:49,950 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/cd89b511-4583-4106-bb8a-e39a46921c51
2025-11-05 06:39:49,958 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 06:39:49,958 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/8ce6a95e-8822-4bab-b257-135985c54b99
2025-11-05 06:39:49,969 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/b47b62a6-4b42-4ac5-92e8-4db0f71a5ec8
2025-11-05 06:39:49,988 - INFO - Verified VN network id 12 for VN 8ce6a95e-8822-4bab-b257-135985c54b99
2025-11-05 06:39:49,988 - INFO - Verifications in API Server for VN ctest-vn-83608077 passed
2025-11-05 06:39:49,988 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/8ce6a95e-8822-4bab-b257-135985c54b99
2025-11-05 06:39:49,998 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/b47b62a6-4b42-4ac5-92e8-4db0f71a5ec8
2025-11-05 06:39:50,006 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/b47b62a6-4b42-4ac5-92e8-4db0f71a5ec8
2025-11-05 06:39:50,014 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/cd89b511-4583-4106-bb8a-e39a46921c51
2025-11-05 06:39:50,028 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37509734:ctest-vn-83608077', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37509734', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10152988633429330859', 'uuid-lslong': '12850761336942316441'}, 'enable': 'true', 'created': '2025-11-05T06:39:47', 'last-modified': '2025-11-05T06:39:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.509695'}
2025-11-05 06:39:50,034 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 06:39:50,034 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83608077 passed
2025-11-05 06:39:50,034 - DEBUG - ====Verifying policy data for ctest-vn-83608077 in API_Server ======
2025-11-05 06:39:50,035 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-11-05 06:39:50,042 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e38da72f-f1e5-4c94-a4a6-7a222e1ac34c
2025-11-05 06:39:50,054 - DEBUG - Requesting: http://10.0.0.130:8082/project/9b84e939-e1d2-4370-be66-cad19e0ac3f5
2025-11-05 06:39:50,128 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/8ce6a95e-8822-4bab-b257-135985c54b99
2025-11-05 06:39:50,137 - DEBUG - ==>Verifying data for policy with id: 5dbb0971-9045-4305-ba50-22bdab43c81b, fqn: ['default-domain', 'ctest-TestBasicPolicy-37509734', 'ctest-policy-allow-all-47804110']
2025-11-05 06:39:50,137 - INFO - VN ctest-vn-83608077 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 06:39:50,137 - DEBUG - Verifying the vn in opserver
2025-11-05 06:39:50,138 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37509734:ctest-vn-83608077 virtual network link through opserver 10.0.0.130
2025-11-05 06:39:50,138 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-11-05 06:39:50,147 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37509734:ctest-vn-83608077', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37509734:ctest-vn-83608077?flat'}
2025-11-05 06:39:50,148 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37509734:ctest-vn-83608077 is found in opserver
2025-11-05 06:39:50,157 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 06:39:50,162 - DEBUG - VRF ids for VN ctest-vn-83608077: {}
2025-11-05 06:39:50,229 - DEBUG - Services list from nova: [