2025-06-22 14:17:13,793 - INFO - Domain Default found not creating
2025-06-22 14:17:13,930 - INFO - Project ctest-TestBasicPolicy-84213780 not found, creating it
2025-06-22 14:17:14,385 - INFO - Created Project:ctest-TestBasicPolicy-84213780, ID : aa0fda71-6d58-468d-85ef-ad0df674b88a
2025-06-22 14:17:15,772 - INFO - ================================================================================
2025-06-22 14:17:15,772 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-22 14:17:15,773 - 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-22 14:17:16,032 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-06-22 14:17:16,032 - INFO - Initial checks done. Running the testcase now
2025-06-22 14:17:16,032 - INFO -
2025-06-22 14:17:16,557 - DEBUG - Response for create_network : {'network': {'id': '20682602-e985-4bb8-99da-66ee175b760c', 'name': 'ctest-vn-34155533', 'tenant_id': 'aa0fda716d58468d85efad0df674b88a', 'project_id': 'aa0fda716d58468d85efad0df674b88a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84213780', 'ctest-vn-34155533'], 'port_security_enabled': True, 'description': ''}}
2025-06-22 14:17:16,745 - DEBUG - Response for create_subnet : {'subnet': {'id': '959d6363-f565-4ff9-bc4a-8a39209635f5', 'name': '', 'tenant_id': 'aa0fda716d58468d85efad0df674b88a', 'network_id': '20682602-e985-4bb8-99da-66ee175b760c', 'ip_version': 4, 'cidr': '114.121.61.128/26', 'allocation_pools': [{'start': '114.121.61.130', 'end': '114.121.61.190'}], 'gateway_ip': '114.121.61.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.121.61.130', 'tags': [], 'project_id': 'aa0fda716d58468d85efad0df674b88a'}}
2025-06-22 14:17:16,760 - INFO - Created VN ctest-vn-34155533
2025-06-22 14:17:16,814 - DEBUG - VN ctest-vn-34155533 UUID is 20682602-e985-4bb8-99da-66ee175b760c
2025-06-22 14:17:17,145 - DEBUG - Response for create_network : {'network': {'id': '39e376eb-bf7b-475a-b519-02a71a522fbb', 'name': 'ctest-vn-28700825', 'tenant_id': 'aa0fda716d58468d85efad0df674b88a', 'project_id': 'aa0fda716d58468d85efad0df674b88a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84213780', 'ctest-vn-28700825'], 'port_security_enabled': True, 'description': ''}}
2025-06-22 14:17:17,327 - DEBUG - Response for create_subnet : {'subnet': {'id': '5dcd5801-3566-4c99-87d8-b40c93632ba5', 'name': '', 'tenant_id': 'aa0fda716d58468d85efad0df674b88a', 'network_id': '39e376eb-bf7b-475a-b519-02a71a522fbb', 'ip_version': 4, 'cidr': '86.47.60.192/26', 'allocation_pools': [{'start': '86.47.60.194', 'end': '86.47.60.254'}], 'gateway_ip': '86.47.60.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '86.47.60.194', 'tags': [], 'project_id': 'aa0fda716d58468d85efad0df674b88a'}}
2025-06-22 14:17:17,344 - INFO - Created VN ctest-vn-28700825
2025-06-22 14:17:17,394 - DEBUG - VN ctest-vn-28700825 UUID is 39e376eb-bf7b-475a-b519-02a71a522fbb
2025-06-22 14:17:17,522 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-84213780:ctest-vn-34155533, 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-84213780:ctest-vn-28700825, 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-22 14:17:17,823 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '20682602-e985-4bb8-99da-66ee175b760c', 'name': 'ctest-vn-34155533', 'tenant_id': 'aa0fda716d58468d85efad0df674b88a', 'project_id': 'aa0fda716d58468d85efad0df674b88a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['959d6363-f565-4ff9-bc4a-8a39209635f5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84213780', 'ctest-vn-34155533'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84213780', 'ctest-policy-allow-all-31345128']], 'subnet_ipam': [{'subnet_cidr': '114.121.61.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-22 14:17:18,052 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '39e376eb-bf7b-475a-b519-02a71a522fbb', 'name': 'ctest-vn-28700825', 'tenant_id': 'aa0fda716d58468d85efad0df674b88a', 'project_id': 'aa0fda716d58468d85efad0df674b88a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5dcd5801-3566-4c99-87d8-b40c93632ba5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84213780', 'ctest-vn-28700825'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84213780', 'ctest-policy-allow-all-31345128']], 'subnet_ipam': [{'subnet_cidr': '86.47.60.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-22 14:17:18,206 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-22 14:17:18,500 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-22 14:17:18,529 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1f3a35d4-6afe-4715-aab4-d265aa0f6594
2025-06-22 14:17:18,542 - DEBUG - Requesting: http://10.0.0.38:8082/project/aa0fda71-6d58-468d-85ef-ad0df674b88a
2025-06-22 14:17:18,619 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/20682602-e985-4bb8-99da-66ee175b760c
2025-06-22 14:17:18,630 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/20682602-e985-4bb8-99da-66ee175b760c
2025-06-22 14:17:18,639 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/87ca3210-e268-4673-9873-295b9714df55
2025-06-22 14:17:18,646 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/87ca3210-e268-4673-9873-295b9714df55
2025-06-22 14:17:18,654 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/de915eb9-4998-4d6a-95a3-be2fff6690c3
2025-06-22 14:17:18,660 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-22 14:17:18,661 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/20682602-e985-4bb8-99da-66ee175b760c
2025-06-22 14:17:18,673 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/87ca3210-e268-4673-9873-295b9714df55
2025-06-22 14:17:18,685 - INFO - Verified VN network id 8 for VN 20682602-e985-4bb8-99da-66ee175b760c
2025-06-22 14:17:18,686 - INFO - Verifications in API Server for VN ctest-vn-34155533 passed
2025-06-22 14:17:18,686 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/20682602-e985-4bb8-99da-66ee175b760c
2025-06-22 14:17:18,694 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/87ca3210-e268-4673-9873-295b9714df55
2025-06-22 14:17:18,700 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/87ca3210-e268-4673-9873-295b9714df55
2025-06-22 14:17:18,706 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/de915eb9-4998-4d6a-95a3-be2fff6690c3
2025-06-22 14:17:18,717 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84213780:ctest-vn-34155533', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84213780', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2335158200741219256', 'uuid-lslong': '11086286605506016780'}, 'enable': 'true', 'created': '2025-06-22T14:17:16', 'last-modified': '2025-06-22T14:17:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.913351'}
2025-06-22 14:17:18,723 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-22 14:17:18,723 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34155533 passed
2025-06-22 14:17:18,723 - DEBUG - ====Verifying policy data for ctest-vn-34155533 in API_Server ======
2025-06-22 14:17:18,724 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-22 14:17:18,728 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1f3a35d4-6afe-4715-aab4-d265aa0f6594
2025-06-22 14:17:18,740 - DEBUG - Requesting: http://10.0.0.38:8082/project/aa0fda71-6d58-468d-85ef-ad0df674b88a
2025-06-22 14:17:18,810 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/20682602-e985-4bb8-99da-66ee175b760c
2025-06-22 14:17:18,819 - DEBUG - ==>Verifying data for policy with id: 8ba3b707-b206-4d64-997e-6f9e8d01e1b4, fqn: ['default-domain', 'ctest-TestBasicPolicy-84213780', 'ctest-policy-allow-all-31345128']
2025-06-22 14:17:18,819 - INFO - VN ctest-vn-34155533 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-22 14:17:18,819 - DEBUG - Verifying the vn in opserver
2025-06-22 14:17:18,819 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84213780:ctest-vn-34155533 virtual network link through opserver 10.0.0.38
2025-06-22 14:17:18,819 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-22 14:17:19,108 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-22 14:17:19,160 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84213780:ctest-vn-34155533', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84213780:ctest-vn-34155533?flat'}
2025-06-22 14:17:19,160 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84213780:ctest-vn-34155533 is found in opserver
2025-06-22 14:17:19,171 - DEBUG - Do not have enough data to verify VN in agent
2025-06-22 14:17:19,176 - DEBUG - VRF ids for VN ctest-vn-34155533: {}
2025-06-22 14:17:19,176 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-22 14:17:19,183 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1f3a35d4-6afe-4715-aab4-d265aa0f6594
2025-06-22 14:17:19,195 - DEBUG - Requesting: http://10.0.0.38:8082/project/aa0fda71-6d58-468d-85ef-ad0df674b88a
2025-06-22 14:17:19,270 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/39e376eb-bf7b-475a-b519-02a71a522fbb
2025-06-22 14:17:19,284 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/39e376eb-bf7b-475a-b519-02a71a522fbb
2025-06-22 14:17:19,293 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b49c208f-0e91-49f4-8f86-06f1f789704e
2025-06-22 14:17:19,301 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b49c208f-0e91-49f4-8f86-06f1f789704e
2025-06-22 14:17:19,308 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a98339e9-e7ba-44a2-8fdf-403017a97236
2025-06-22 14:17:19,315 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-22 14:17:19,315 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/39e376eb-bf7b-475a-b519-02a71a522fbb
2025-06-22 14:17:19,324 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b49c208f-0e91-49f4-8f86-06f1f789704e
2025-06-22 14:17:19,337 - INFO - Verified VN network id 9 for VN 39e376eb-bf7b-475a-b519-02a71a522fbb
2025-06-22 14:17:19,337 - INFO - Verifications in API Server for VN ctest-vn-28700825 passed
2025-06-22 14:17:19,337 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/39e376eb-bf7b-475a-b519-02a71a522fbb
2025-06-22 14:17:19,346 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b49c208f-0e91-49f4-8f86-06f1f789704e
2025-06-22 14:17:19,353 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b49c208f-0e91-49f4-8f86-06f1f789704e
2025-06-22 14:17:19,360 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a98339e9-e7ba-44a2-8fdf-403017a97236
2025-06-22 14:17:19,372 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84213780:ctest-vn-28700825', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84213780', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4171308434777130842', 'uuid-lslong': '13049464312007110587'}, 'enable': 'true', 'created': '2025-06-22T14:17:17', 'last-modified': '2025-06-22T14:17:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.338743'}
2025-06-22 14:17:19,378 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-22 14:17:19,378 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28700825 passed
2025-06-22 14:17:19,378 - DEBUG - ====Verifying policy data for ctest-vn-28700825 in API_Server ======
2025-06-22 14:17:19,378 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-22 14:17:19,384 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1f3a35d4-6afe-4715-aab4-d265aa0f6594
2025-06-22 14:17:19,396 - DEBUG - Requesting: http://10.0.0.38:8082/project/aa0fda71-6d58-468d-85ef-ad0df674b88a
2025-06-22 14:17:19,469 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/39e376eb-bf7b-475a-b519-02a71a522fbb
2025-06-22 14:17:19,479 - DEBUG - ==>Verifying data for policy with id: 8ba3b707-b206-4d64-997e-6f9e8d01e1b4, fqn: ['default-domain', 'ctest-TestBasicPolicy-84213780', 'ctest-policy-allow-all-31345128']
2025-06-22 14:17:19,479 - INFO - VN ctest-vn-28700825 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-22 14:17:19,479 - DEBUG - Verifying the vn in opserver
2025-06-22 14:17:19,479 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84213780:ctest-vn-28700825 virtual network link through opserver 10.0.0.38
2025-06-22 14:17:19,479 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-22 14:17:19,490 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84213780:ctest-vn-28700825', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84213780:ctest-vn-28700825?flat'}
2025-06-22 14:17:19,490 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84213780:ctest-vn-28700825 is found in opserver
2025-06-22 14:17:19,501 - DEBUG - Do not have enough data to verify VN in agent
2025-06-22 14:17:19,506 - DEBUG - VRF ids for VN ctest-vn-28700825: {}
2025-06-22 14:17:19,571 - DEBUG - Services list from nova: [