2025-06-20 12:51:10,346 - INFO - Domain Default found not creating
2025-06-20 12:51:10,513 - INFO - Project ctest-TestBasicPolicy-07146475 not found, creating it
2025-06-20 12:51:10,982 - INFO - Created Project:ctest-TestBasicPolicy-07146475, ID : 88c7ede7-67d7-4623-a854-ede45398b303
2025-06-20 12:51:12,482 - INFO - ================================================================================
2025-06-20 12:51:12,483 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-20 12:51:12,483 - 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-06-20 12:51:12,740 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-06-20 12:51:12,740 - INFO - Initial checks done. Running the testcase now
2025-06-20 12:51:12,740 - INFO -
2025-06-20 12:51:13,294 - DEBUG - Response for create_network : {'network': {'id': '5bf2269f-f2f7-4b73-a725-1f58246d6693', 'name': 'ctest-vn-67740777', 'tenant_id': '88c7ede767d74623a854ede45398b303', 'project_id': '88c7ede767d74623a854ede45398b303', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07146475', 'ctest-vn-67740777'], 'port_security_enabled': True, 'description': ''}}
2025-06-20 12:51:13,479 - DEBUG - Response for create_subnet : {'subnet': {'id': '877dba99-0ced-4181-86d2-edeb6a20889f', 'name': '', 'tenant_id': '88c7ede767d74623a854ede45398b303', 'network_id': '5bf2269f-f2f7-4b73-a725-1f58246d6693', 'ip_version': 4, 'cidr': '187.169.66.64/26', 'allocation_pools': [{'start': '187.169.66.66', 'end': '187.169.66.126'}], 'gateway_ip': '187.169.66.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.169.66.66', 'tags': [], 'project_id': '88c7ede767d74623a854ede45398b303'}}
2025-06-20 12:51:13,497 - INFO - Created VN ctest-vn-67740777
2025-06-20 12:51:13,550 - DEBUG - VN ctest-vn-67740777 UUID is 5bf2269f-f2f7-4b73-a725-1f58246d6693
2025-06-20 12:51:13,844 - DEBUG - Response for create_network : {'network': {'id': '1c4dde16-53e2-43ad-b34b-c5a2eeb0e52b', 'name': 'ctest-vn-50920176', 'tenant_id': '88c7ede767d74623a854ede45398b303', 'project_id': '88c7ede767d74623a854ede45398b303', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07146475', 'ctest-vn-50920176'], 'port_security_enabled': True, 'description': ''}}
2025-06-20 12:51:13,999 - DEBUG - Response for create_subnet : {'subnet': {'id': '9a3316ae-5007-47fb-87d3-1a402a742944', 'name': '', 'tenant_id': '88c7ede767d74623a854ede45398b303', 'network_id': '1c4dde16-53e2-43ad-b34b-c5a2eeb0e52b', 'ip_version': 4, 'cidr': '196.21.96.192/26', 'allocation_pools': [{'start': '196.21.96.194', 'end': '196.21.96.254'}], 'gateway_ip': '196.21.96.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.21.96.194', 'tags': [], 'project_id': '88c7ede767d74623a854ede45398b303'}}
2025-06-20 12:51:14,018 - INFO - Created VN ctest-vn-50920176
2025-06-20 12:51:14,070 - DEBUG - VN ctest-vn-50920176 UUID is 1c4dde16-53e2-43ad-b34b-c5a2eeb0e52b
2025-06-20 12:51:14,186 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-07146475:ctest-vn-67740777, 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-07146475:ctest-vn-50920176, 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-06-20 12:51:14,491 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5bf2269f-f2f7-4b73-a725-1f58246d6693', 'name': 'ctest-vn-67740777', 'tenant_id': '88c7ede767d74623a854ede45398b303', 'project_id': '88c7ede767d74623a854ede45398b303', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['877dba99-0ced-4181-86d2-edeb6a20889f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07146475', 'ctest-vn-67740777'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07146475', 'ctest-policy-allow-all-89315321']], 'subnet_ipam': [{'subnet_cidr': '187.169.66.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-20 12:51:14,768 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1c4dde16-53e2-43ad-b34b-c5a2eeb0e52b', 'name': 'ctest-vn-50920176', 'tenant_id': '88c7ede767d74623a854ede45398b303', 'project_id': '88c7ede767d74623a854ede45398b303', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9a3316ae-5007-47fb-87d3-1a402a742944'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07146475', 'ctest-vn-50920176'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07146475', 'ctest-policy-allow-all-89315321']], 'subnet_ipam': [{'subnet_cidr': '196.21.96.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-20 12:51:14,918 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-20 12:51:15,211 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-20 12:51:15,238 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ef61e37c-86e4-4e34-8ce7-9a01933ffd4a
2025-06-20 12:51:15,252 - DEBUG - Requesting: http://10.0.0.50:8082/project/88c7ede7-67d7-4623-a854-ede45398b303
2025-06-20 12:51:15,329 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5bf2269f-f2f7-4b73-a725-1f58246d6693
2025-06-20 12:51:15,343 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5bf2269f-f2f7-4b73-a725-1f58246d6693
2025-06-20 12:51:15,355 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/39265be8-a755-41e0-89ff-6e524980c71c
2025-06-20 12:51:15,362 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/39265be8-a755-41e0-89ff-6e524980c71c
2025-06-20 12:51:15,370 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1ceb465e-c410-4db8-8020-89013c17fe59
2025-06-20 12:51:15,377 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-20 12:51:15,377 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5bf2269f-f2f7-4b73-a725-1f58246d6693
2025-06-20 12:51:15,388 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/39265be8-a755-41e0-89ff-6e524980c71c
2025-06-20 12:51:15,405 - INFO - Verified VN network id 8 for VN 5bf2269f-f2f7-4b73-a725-1f58246d6693
2025-06-20 12:51:15,405 - INFO - Verifications in API Server for VN ctest-vn-67740777 passed
2025-06-20 12:51:15,405 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5bf2269f-f2f7-4b73-a725-1f58246d6693
2025-06-20 12:51:15,418 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/39265be8-a755-41e0-89ff-6e524980c71c
2025-06-20 12:51:15,425 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/39265be8-a755-41e0-89ff-6e524980c71c
2025-06-20 12:51:15,432 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1ceb465e-c410-4db8-8020-89013c17fe59
2025-06-20 12:51:15,446 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07146475:ctest-vn-67740777', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07146475', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6625400470233369459', 'uuid-lslong': '12044067241900992147'}, 'enable': 'true', 'created': '2025-06-20T12:51:13', 'last-modified': '2025-06-20T12:51:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.982834'}
2025-06-20 12:51:15,453 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-20 12:51:15,453 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67740777 passed
2025-06-20 12:51:15,454 - DEBUG - ====Verifying policy data for ctest-vn-67740777 in API_Server ======
2025-06-20 12:51:15,454 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-20 12:51:15,460 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ef61e37c-86e4-4e34-8ce7-9a01933ffd4a
2025-06-20 12:51:15,472 - DEBUG - Requesting: http://10.0.0.50:8082/project/88c7ede7-67d7-4623-a854-ede45398b303
2025-06-20 12:51:15,548 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5bf2269f-f2f7-4b73-a725-1f58246d6693
2025-06-20 12:51:15,559 - DEBUG - ==>Verifying data for policy with id: 92cb2189-6f2a-4804-99b6-35b97b549428, fqn: ['default-domain', 'ctest-TestBasicPolicy-07146475', 'ctest-policy-allow-all-89315321']
2025-06-20 12:51:15,559 - INFO - VN ctest-vn-67740777 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-20 12:51:15,559 - DEBUG - Verifying the vn in opserver
2025-06-20 12:51:15,559 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07146475:ctest-vn-67740777 virtual network link through opserver 10.0.0.50
2025-06-20 12:51:15,559 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-06-20 12:51:15,858 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-06-20 12:51:15,913 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07146475:ctest-vn-67740777', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07146475:ctest-vn-67740777?flat'}
2025-06-20 12:51:15,913 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07146475:ctest-vn-67740777 is found in opserver
2025-06-20 12:51:15,926 - DEBUG - Do not have enough data to verify VN in agent
2025-06-20 12:51:15,932 - DEBUG - VRF ids for VN ctest-vn-67740777: {}
2025-06-20 12:51:15,932 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-20 12:51:15,938 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ef61e37c-86e4-4e34-8ce7-9a01933ffd4a
2025-06-20 12:51:15,951 - DEBUG - Requesting: http://10.0.0.50:8082/project/88c7ede7-67d7-4623-a854-ede45398b303
2025-06-20 12:51:16,026 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1c4dde16-53e2-43ad-b34b-c5a2eeb0e52b
2025-06-20 12:51:16,041 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1c4dde16-53e2-43ad-b34b-c5a2eeb0e52b
2025-06-20 12:51:16,052 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9b3bef6b-d8ef-4b6d-a6e9-bc76b928b53f
2025-06-20 12:51:16,062 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9b3bef6b-d8ef-4b6d-a6e9-bc76b928b53f
2025-06-20 12:51:16,069 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/235b295a-f02b-4400-87fe-51a2850ed260
2025-06-20 12:51:16,077 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-20 12:51:16,077 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1c4dde16-53e2-43ad-b34b-c5a2eeb0e52b
2025-06-20 12:51:16,088 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9b3bef6b-d8ef-4b6d-a6e9-bc76b928b53f
2025-06-20 12:51:16,104 - INFO - Verified VN network id 9 for VN 1c4dde16-53e2-43ad-b34b-c5a2eeb0e52b
2025-06-20 12:51:16,104 - INFO - Verifications in API Server for VN ctest-vn-50920176 passed
2025-06-20 12:51:16,104 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1c4dde16-53e2-43ad-b34b-c5a2eeb0e52b
2025-06-20 12:51:16,116 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9b3bef6b-d8ef-4b6d-a6e9-bc76b928b53f
2025-06-20 12:51:16,125 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9b3bef6b-d8ef-4b6d-a6e9-bc76b928b53f
2025-06-20 12:51:16,133 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/235b295a-f02b-4400-87fe-51a2850ed260
2025-06-20 12:51:16,149 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07146475:ctest-vn-50920176', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07146475', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2039530393746686893', 'uuid-lslong': '12919637259622343979'}, 'enable': 'true', 'created': '2025-06-20T12:51:13', 'last-modified': '2025-06-20T12:51:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.447760'}
2025-06-20 12:51:16,157 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-20 12:51:16,157 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50920176 passed
2025-06-20 12:51:16,157 - DEBUG - ====Verifying policy data for ctest-vn-50920176 in API_Server ======
2025-06-20 12:51:16,157 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-20 12:51:16,164 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ef61e37c-86e4-4e34-8ce7-9a01933ffd4a
2025-06-20 12:51:16,177 - DEBUG - Requesting: http://10.0.0.50:8082/project/88c7ede7-67d7-4623-a854-ede45398b303
2025-06-20 12:51:16,264 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1c4dde16-53e2-43ad-b34b-c5a2eeb0e52b
2025-06-20 12:51:16,274 - DEBUG - ==>Verifying data for policy with id: 92cb2189-6f2a-4804-99b6-35b97b549428, fqn: ['default-domain', 'ctest-TestBasicPolicy-07146475', 'ctest-policy-allow-all-89315321']
2025-06-20 12:51:16,274 - INFO - VN ctest-vn-50920176 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-20 12:51:16,274 - DEBUG - Verifying the vn in opserver
2025-06-20 12:51:16,274 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07146475:ctest-vn-50920176 virtual network link through opserver 10.0.0.50
2025-06-20 12:51:16,274 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-06-20 12:51:16,286 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07146475:ctest-vn-50920176', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07146475:ctest-vn-50920176?flat'}
2025-06-20 12:51:16,286 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07146475:ctest-vn-50920176 is found in opserver
2025-06-20 12:51:16,297 - DEBUG - Do not have enough data to verify VN in agent
2025-06-20 12:51:16,302 - DEBUG - VRF ids for VN ctest-vn-50920176: {}
2025-06-20 12:51:16,359 - DEBUG - Services list from nova: [