2025-10-15 07:19:26,240 - INFO - Domain Default found not creating
2025-10-15 07:19:26,385 - INFO - Project ctest-TestBasicPolicy-74300013 not found, creating it
2025-10-15 07:19:26,855 - INFO - Created Project:ctest-TestBasicPolicy-74300013, ID : 00de25f4-2e65-4e04-b50c-f317ca8e49c6
2025-10-15 07:19:28,232 - INFO - ================================================================================
2025-10-15 07:19:28,232 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-15 07:19:28,232 - 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-10-15 07:19:28,484 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.5': '0'}} with
2025-10-15 07:19:28,484 - INFO - Initial checks done. Running the testcase now
2025-10-15 07:19:28,484 - INFO -
2025-10-15 07:19:29,015 - DEBUG - Response for create_network : {'network': {'id': 'afbba729-4096-43d3-9f4a-1abecb9bcbc9', 'name': 'ctest-vn-60413292', 'tenant_id': '00de25f42e654e04b50cf317ca8e49c6', 'project_id': '00de25f42e654e04b50cf317ca8e49c6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74300013', 'ctest-vn-60413292'], 'port_security_enabled': True, 'description': ''}}
2025-10-15 07:19:29,197 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e13a0f5b-0703-48e5-84eb-5e3134102703', 'name': '', 'tenant_id': '00de25f42e654e04b50cf317ca8e49c6', 'network_id': 'afbba729-4096-43d3-9f4a-1abecb9bcbc9', 'ip_version': 4, 'cidr': '136.68.72.64/26', 'allocation_pools': [{'start': '136.68.72.66', 'end': '136.68.72.126'}], 'gateway_ip': '136.68.72.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '136.68.72.66', 'tags': [], 'project_id': '00de25f42e654e04b50cf317ca8e49c6'}}
2025-10-15 07:19:29,214 - INFO - Created VN ctest-vn-60413292
2025-10-15 07:19:29,271 - DEBUG - VN ctest-vn-60413292 UUID is afbba729-4096-43d3-9f4a-1abecb9bcbc9
2025-10-15 07:19:29,565 - DEBUG - Response for create_network : {'network': {'id': '10f1d2ae-fc9f-4194-8b04-36b38ddf92ee', 'name': 'ctest-vn-71375382', 'tenant_id': '00de25f42e654e04b50cf317ca8e49c6', 'project_id': '00de25f42e654e04b50cf317ca8e49c6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74300013', 'ctest-vn-71375382'], 'port_security_enabled': True, 'description': ''}}
2025-10-15 07:19:29,768 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c3fa3cdb-ea9d-43a4-b36d-858a60088795', 'name': '', 'tenant_id': '00de25f42e654e04b50cf317ca8e49c6', 'network_id': '10f1d2ae-fc9f-4194-8b04-36b38ddf92ee', 'ip_version': 4, 'cidr': '61.192.76.64/26', 'allocation_pools': [{'start': '61.192.76.66', 'end': '61.192.76.126'}], 'gateway_ip': '61.192.76.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '61.192.76.66', 'tags': [], 'project_id': '00de25f42e654e04b50cf317ca8e49c6'}}
2025-10-15 07:19:29,785 - INFO - Created VN ctest-vn-71375382
2025-10-15 07:19:29,839 - DEBUG - VN ctest-vn-71375382 UUID is 10f1d2ae-fc9f-4194-8b04-36b38ddf92ee
2025-10-15 07:19:29,966 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-74300013:ctest-vn-60413292, 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-74300013:ctest-vn-71375382, 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-10-15 07:19:30,267 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'afbba729-4096-43d3-9f4a-1abecb9bcbc9', 'name': 'ctest-vn-60413292', 'tenant_id': '00de25f42e654e04b50cf317ca8e49c6', 'project_id': '00de25f42e654e04b50cf317ca8e49c6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e13a0f5b-0703-48e5-84eb-5e3134102703'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74300013', 'ctest-vn-60413292'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74300013', 'ctest-policy-allow-all-14270864']], 'subnet_ipam': [{'subnet_cidr': '136.68.72.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-15 07:19:30,535 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '10f1d2ae-fc9f-4194-8b04-36b38ddf92ee', 'name': 'ctest-vn-71375382', 'tenant_id': '00de25f42e654e04b50cf317ca8e49c6', 'project_id': '00de25f42e654e04b50cf317ca8e49c6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c3fa3cdb-ea9d-43a4-b36d-858a60088795'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74300013', 'ctest-vn-71375382'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74300013', 'ctest-policy-allow-all-14270864']], 'subnet_ipam': [{'subnet_cidr': '61.192.76.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-15 07:19:30,691 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-15 07:19:30,985 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-15 07:19:31,011 - DEBUG - Requesting: http://10.0.0.27:8082/domain/662f29fa-8ce3-41f7-b69f-a208ab0d77d9
2025-10-15 07:19:31,023 - DEBUG - Requesting: http://10.0.0.27:8082/project/00de25f4-2e65-4e04-b50c-f317ca8e49c6
2025-10-15 07:19:31,092 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/afbba729-4096-43d3-9f4a-1abecb9bcbc9
2025-10-15 07:19:31,101 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/afbba729-4096-43d3-9f4a-1abecb9bcbc9
2025-10-15 07:19:31,109 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e126a27a-4cce-473a-ad66-f4d81f6fb7d7
2025-10-15 07:19:31,114 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e126a27a-4cce-473a-ad66-f4d81f6fb7d7
2025-10-15 07:19:31,120 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/e6df3f98-d484-4a6b-8477-805fd2effe3f
2025-10-15 07:19:31,125 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-15 07:19:31,125 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/afbba729-4096-43d3-9f4a-1abecb9bcbc9
2025-10-15 07:19:31,132 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e126a27a-4cce-473a-ad66-f4d81f6fb7d7
2025-10-15 07:19:31,144 - INFO - Verified VN network id 11 for VN afbba729-4096-43d3-9f4a-1abecb9bcbc9
2025-10-15 07:19:31,144 - INFO - Verifications in API Server for VN ctest-vn-60413292 passed
2025-10-15 07:19:31,144 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/afbba729-4096-43d3-9f4a-1abecb9bcbc9
2025-10-15 07:19:31,152 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e126a27a-4cce-473a-ad66-f4d81f6fb7d7
2025-10-15 07:19:31,159 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e126a27a-4cce-473a-ad66-f4d81f6fb7d7
2025-10-15 07:19:31,164 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/e6df3f98-d484-4a6b-8477-805fd2effe3f
2025-10-15 07:19:31,175 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74300013:ctest-vn-60413292', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74300013', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12662898572901368787', 'uuid-lslong': '11478016007069223881'}, 'enable': 'true', 'created': '2025-10-15T07:19:28', 'last-modified': '2025-10-15T07:19:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.928402'}
2025-10-15 07:19:31,180 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-15 07:19:31,180 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60413292 passed
2025-10-15 07:19:31,180 - DEBUG - ====Verifying policy data for ctest-vn-60413292 in API_Server ======
2025-10-15 07:19:31,180 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-15 07:19:31,185 - DEBUG - Requesting: http://10.0.0.27:8082/domain/662f29fa-8ce3-41f7-b69f-a208ab0d77d9
2025-10-15 07:19:31,193 - DEBUG - Requesting: http://10.0.0.27:8082/project/00de25f4-2e65-4e04-b50c-f317ca8e49c6
2025-10-15 07:19:31,259 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/afbba729-4096-43d3-9f4a-1abecb9bcbc9
2025-10-15 07:19:31,269 - DEBUG - ==>Verifying data for policy with id: 5d939770-9eba-42e3-bff9-3cf2168b9a91, fqn: ['default-domain', 'ctest-TestBasicPolicy-74300013', 'ctest-policy-allow-all-14270864']
2025-10-15 07:19:31,269 - INFO - VN ctest-vn-60413292 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-15 07:19:31,269 - DEBUG - Verifying the vn in opserver
2025-10-15 07:19:31,269 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74300013:ctest-vn-60413292 virtual network link through opserver 10.0.0.27
2025-10-15 07:19:31,269 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-15 07:19:31,563 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-15 07:19:31,616 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74300013:ctest-vn-60413292', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74300013:ctest-vn-60413292?flat'}
2025-10-15 07:19:31,616 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74300013:ctest-vn-60413292 is found in opserver
2025-10-15 07:19:31,625 - DEBUG - Do not have enough data to verify VN in agent
2025-10-15 07:19:31,630 - DEBUG - VRF ids for VN ctest-vn-60413292: {}
2025-10-15 07:19:31,630 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-15 07:19:31,636 - DEBUG - Requesting: http://10.0.0.27:8082/domain/662f29fa-8ce3-41f7-b69f-a208ab0d77d9
2025-10-15 07:19:31,648 - DEBUG - Requesting: http://10.0.0.27:8082/project/00de25f4-2e65-4e04-b50c-f317ca8e49c6
2025-10-15 07:19:31,719 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/10f1d2ae-fc9f-4194-8b04-36b38ddf92ee
2025-10-15 07:19:31,729 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/10f1d2ae-fc9f-4194-8b04-36b38ddf92ee
2025-10-15 07:19:31,739 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5d8feb54-a4a2-4754-945c-6b753f9a019f
2025-10-15 07:19:31,745 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5d8feb54-a4a2-4754-945c-6b753f9a019f
2025-10-15 07:19:31,752 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/241f6b28-d99c-4ee8-b07d-6b4562992e61
2025-10-15 07:19:31,758 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-15 07:19:31,758 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/10f1d2ae-fc9f-4194-8b04-36b38ddf92ee
2025-10-15 07:19:31,766 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5d8feb54-a4a2-4754-945c-6b753f9a019f
2025-10-15 07:19:31,778 - INFO - Verified VN network id 12 for VN 10f1d2ae-fc9f-4194-8b04-36b38ddf92ee
2025-10-15 07:19:31,778 - INFO - Verifications in API Server for VN ctest-vn-71375382 passed
2025-10-15 07:19:31,778 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/10f1d2ae-fc9f-4194-8b04-36b38ddf92ee
2025-10-15 07:19:31,786 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5d8feb54-a4a2-4754-945c-6b753f9a019f
2025-10-15 07:19:31,793 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5d8feb54-a4a2-4754-945c-6b753f9a019f
2025-10-15 07:19:31,798 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/241f6b28-d99c-4ee8-b07d-6b4562992e61
2025-10-15 07:19:31,807 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74300013:ctest-vn-71375382', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74300013', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1220988622998552980', 'uuid-lslong': '10017191615986111214'}, 'enable': 'true', 'created': '2025-10-15T07:19:29', 'last-modified': '2025-10-15T07:19:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.339739'}
2025-10-15 07:19:31,812 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-15 07:19:31,812 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71375382 passed
2025-10-15 07:19:31,812 - DEBUG - ====Verifying policy data for ctest-vn-71375382 in API_Server ======
2025-10-15 07:19:31,812 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-15 07:19:31,818 - DEBUG - Requesting: http://10.0.0.27:8082/domain/662f29fa-8ce3-41f7-b69f-a208ab0d77d9
2025-10-15 07:19:31,826 - DEBUG - Requesting: http://10.0.0.27:8082/project/00de25f4-2e65-4e04-b50c-f317ca8e49c6
2025-10-15 07:19:31,895 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/10f1d2ae-fc9f-4194-8b04-36b38ddf92ee
2025-10-15 07:19:31,903 - DEBUG - ==>Verifying data for policy with id: 5d939770-9eba-42e3-bff9-3cf2168b9a91, fqn: ['default-domain', 'ctest-TestBasicPolicy-74300013', 'ctest-policy-allow-all-14270864']
2025-10-15 07:19:31,903 - INFO - VN ctest-vn-71375382 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-15 07:19:31,903 - DEBUG - Verifying the vn in opserver
2025-10-15 07:19:31,904 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74300013:ctest-vn-71375382 virtual network link through opserver 10.0.0.27
2025-10-15 07:19:31,904 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-15 07:19:31,911 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74300013:ctest-vn-71375382', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74300013:ctest-vn-71375382?flat'}
2025-10-15 07:19:31,911 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74300013:ctest-vn-71375382 is found in opserver
2025-10-15 07:19:31,919 - DEBUG - Do not have enough data to verify VN in agent
2025-10-15 07:19:31,922 - DEBUG - VRF ids for VN ctest-vn-71375382: {}
2025-10-15 07:19:31,975 - DEBUG - Services list from nova: [