2025-09-22 19:41:44,641 - INFO - Domain Default found not creating
2025-09-22 19:41:44,773 - INFO - Project ctest-TestBasicPolicy-94492461 not found, creating it
2025-09-22 19:41:45,234 - INFO - Created Project:ctest-TestBasicPolicy-94492461, ID : 26b4c2dc-a2a3-4f0f-8d6c-de7e819fd957
2025-09-22 19:41:46,593 - INFO - ================================================================================
2025-09-22 19:41:46,594 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-22 19:41:46,594 - 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-22 19:41:46,848 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.14': '0'}} with
2025-09-22 19:41:46,848 - INFO - Initial checks done. Running the testcase now
2025-09-22 19:41:46,848 - INFO -
2025-09-22 19:41:47,909 - DEBUG - Response for create_network : {'network': {'id': '5badf689-8523-4857-abbf-6daf37e24895', 'name': 'ctest-vn-99081819', 'tenant_id': '26b4c2dca2a34f0f8d6cde7e819fd957', 'project_id': '26b4c2dca2a34f0f8d6cde7e819fd957', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94492461', 'ctest-vn-99081819'], 'port_security_enabled': True, 'description': ''}}
2025-09-22 19:41:48,063 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a36b4b8f-565d-49b2-bfef-c47984dd1c0c', 'name': '', 'tenant_id': '26b4c2dca2a34f0f8d6cde7e819fd957', 'network_id': '5badf689-8523-4857-abbf-6daf37e24895', 'ip_version': 4, 'cidr': '118.99.162.64/26', 'allocation_pools': [{'start': '118.99.162.66', 'end': '118.99.162.126'}], 'gateway_ip': '118.99.162.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '118.99.162.66', 'tags': [], 'project_id': '26b4c2dca2a34f0f8d6cde7e819fd957'}}
2025-09-22 19:41:48,080 - INFO - Created VN ctest-vn-99081819
2025-09-22 19:41:48,131 - DEBUG - VN ctest-vn-99081819 UUID is 5badf689-8523-4857-abbf-6daf37e24895
2025-09-22 19:41:48,410 - DEBUG - Response for create_network : {'network': {'id': '34d5562a-f46a-419e-89ff-10f3987650cd', 'name': 'ctest-vn-30967171', 'tenant_id': '26b4c2dca2a34f0f8d6cde7e819fd957', 'project_id': '26b4c2dca2a34f0f8d6cde7e819fd957', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94492461', 'ctest-vn-30967171'], 'port_security_enabled': True, 'description': ''}}
2025-09-22 19:41:48,619 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b73ba589-6150-46d8-9841-022dc1548738', 'name': '', 'tenant_id': '26b4c2dca2a34f0f8d6cde7e819fd957', 'network_id': '34d5562a-f46a-419e-89ff-10f3987650cd', 'ip_version': 4, 'cidr': '80.23.250.128/26', 'allocation_pools': [{'start': '80.23.250.130', 'end': '80.23.250.190'}], 'gateway_ip': '80.23.250.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '80.23.250.130', 'tags': [], 'project_id': '26b4c2dca2a34f0f8d6cde7e819fd957'}}
2025-09-22 19:41:48,635 - INFO - Created VN ctest-vn-30967171
2025-09-22 19:41:48,687 - DEBUG - VN ctest-vn-30967171 UUID is 34d5562a-f46a-419e-89ff-10f3987650cd
2025-09-22 19:41:48,835 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-94492461:ctest-vn-99081819, 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-94492461:ctest-vn-30967171, 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-22 19:41:49,123 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5badf689-8523-4857-abbf-6daf37e24895', 'name': 'ctest-vn-99081819', 'tenant_id': '26b4c2dca2a34f0f8d6cde7e819fd957', 'project_id': '26b4c2dca2a34f0f8d6cde7e819fd957', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a36b4b8f-565d-49b2-bfef-c47984dd1c0c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94492461', 'ctest-vn-99081819'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94492461', 'ctest-policy-allow-all-45881295']], 'subnet_ipam': [{'subnet_cidr': '118.99.162.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-22 19:41:49,355 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '34d5562a-f46a-419e-89ff-10f3987650cd', 'name': 'ctest-vn-30967171', 'tenant_id': '26b4c2dca2a34f0f8d6cde7e819fd957', 'project_id': '26b4c2dca2a34f0f8d6cde7e819fd957', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b73ba589-6150-46d8-9841-022dc1548738'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94492461', 'ctest-vn-30967171'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94492461', 'ctest-policy-allow-all-45881295']], 'subnet_ipam': [{'subnet_cidr': '80.23.250.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-22 19:41:49,523 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-09-22 19:41:49,820 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-09-22 19:41:49,849 - DEBUG - Requesting: http://10.0.0.49:8082/domain/68cecb4b-104e-442b-b003-e38ae151ab22
2025-09-22 19:41:49,859 - DEBUG - Requesting: http://10.0.0.49:8082/project/26b4c2dc-a2a3-4f0f-8d6c-de7e819fd957
2025-09-22 19:41:49,932 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/5badf689-8523-4857-abbf-6daf37e24895
2025-09-22 19:41:49,945 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/5badf689-8523-4857-abbf-6daf37e24895
2025-09-22 19:41:49,954 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/64cb0fbf-dd49-46ee-bd28-d2ca3d745c2f
2025-09-22 19:41:49,960 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/64cb0fbf-dd49-46ee-bd28-d2ca3d745c2f
2025-09-22 19:41:49,966 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/491c1ecb-6e42-4cf9-8705-d9ddd98e707f
2025-09-22 19:41:49,972 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-22 19:41:49,972 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/5badf689-8523-4857-abbf-6daf37e24895
2025-09-22 19:41:49,981 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/64cb0fbf-dd49-46ee-bd28-d2ca3d745c2f
2025-09-22 19:41:49,995 - INFO - Verified VN network id 10 for VN 5badf689-8523-4857-abbf-6daf37e24895
2025-09-22 19:41:49,995 - INFO - Verifications in API Server for VN ctest-vn-99081819 passed
2025-09-22 19:41:49,995 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/5badf689-8523-4857-abbf-6daf37e24895
2025-09-22 19:41:50,004 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/64cb0fbf-dd49-46ee-bd28-d2ca3d745c2f
2025-09-22 19:41:50,011 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/64cb0fbf-dd49-46ee-bd28-d2ca3d745c2f
2025-09-22 19:41:50,018 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/491c1ecb-6e42-4cf9-8705-d9ddd98e707f
2025-09-22 19:41:50,028 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94492461:ctest-vn-99081819', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94492461', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6606207298927020119', 'uuid-lslong': '12375730900361693333'}, 'enable': 'true', 'created': '2025-09-22T19:41:47', 'last-modified': '2025-09-22T19:41:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.926117'}
2025-09-22 19:41:50,035 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-22 19:41:50,035 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99081819 passed
2025-09-22 19:41:50,035 - DEBUG - ====Verifying policy data for ctest-vn-99081819 in API_Server ======
2025-09-22 19:41:50,035 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-09-22 19:41:50,041 - DEBUG - Requesting: http://10.0.0.49:8082/domain/68cecb4b-104e-442b-b003-e38ae151ab22
2025-09-22 19:41:50,051 - DEBUG - Requesting: http://10.0.0.49:8082/project/26b4c2dc-a2a3-4f0f-8d6c-de7e819fd957
2025-09-22 19:41:50,127 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/5badf689-8523-4857-abbf-6daf37e24895
2025-09-22 19:41:50,135 - DEBUG - ==>Verifying data for policy with id: 3644e5b5-4f47-4a18-9c0e-d3cd07a24d49, fqn: ['default-domain', 'ctest-TestBasicPolicy-94492461', 'ctest-policy-allow-all-45881295']
2025-09-22 19:41:50,135 - INFO - VN ctest-vn-99081819 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-22 19:41:50,136 - DEBUG - Verifying the vn in opserver
2025-09-22 19:41:50,136 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94492461:ctest-vn-99081819 virtual network link through opserver 10.0.0.49
2025-09-22 19:41:50,136 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-09-22 19:41:50,430 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-09-22 19:41:50,483 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94492461:ctest-vn-99081819', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94492461:ctest-vn-99081819?flat'}
2025-09-22 19:41:50,483 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94492461:ctest-vn-99081819 is found in opserver
2025-09-22 19:41:50,492 - DEBUG - Do not have enough data to verify VN in agent
2025-09-22 19:41:50,495 - DEBUG - VRF ids for VN ctest-vn-99081819: {}
2025-09-22 19:41:50,496 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-09-22 19:41:50,500 - DEBUG - Requesting: http://10.0.0.49:8082/domain/68cecb4b-104e-442b-b003-e38ae151ab22
2025-09-22 19:41:50,510 - DEBUG - Requesting: http://10.0.0.49:8082/project/26b4c2dc-a2a3-4f0f-8d6c-de7e819fd957
2025-09-22 19:41:50,577 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/34d5562a-f46a-419e-89ff-10f3987650cd
2025-09-22 19:41:50,589 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/34d5562a-f46a-419e-89ff-10f3987650cd
2025-09-22 19:41:50,597 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/31f159a8-9615-4d86-bc7f-1333d39ffb9f
2025-09-22 19:41:50,604 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/31f159a8-9615-4d86-bc7f-1333d39ffb9f
2025-09-22 19:41:50,610 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/2156aade-ba84-44a0-aa22-0a86362ec4db
2025-09-22 19:41:50,617 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-22 19:41:50,617 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/34d5562a-f46a-419e-89ff-10f3987650cd
2025-09-22 19:41:50,626 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/31f159a8-9615-4d86-bc7f-1333d39ffb9f
2025-09-22 19:41:50,639 - INFO - Verified VN network id 11 for VN 34d5562a-f46a-419e-89ff-10f3987650cd
2025-09-22 19:41:50,639 - INFO - Verifications in API Server for VN ctest-vn-30967171 passed
2025-09-22 19:41:50,639 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/34d5562a-f46a-419e-89ff-10f3987650cd
2025-09-22 19:41:50,650 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/31f159a8-9615-4d86-bc7f-1333d39ffb9f
2025-09-22 19:41:50,657 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/31f159a8-9615-4d86-bc7f-1333d39ffb9f
2025-09-22 19:41:50,664 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/2156aade-ba84-44a0-aa22-0a86362ec4db
2025-09-22 19:41:50,674 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94492461:ctest-vn-30967171', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94492461', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3807043802500841886', 'uuid-lslong': '9943685140678332621'}, 'enable': 'true', 'created': '2025-09-22T19:41:48', 'last-modified': '2025-09-22T19:41:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.341467'}
2025-09-22 19:41:50,680 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-22 19:41:50,680 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30967171 passed
2025-09-22 19:41:50,681 - DEBUG - ====Verifying policy data for ctest-vn-30967171 in API_Server ======
2025-09-22 19:41:50,681 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-09-22 19:41:50,686 - DEBUG - Requesting: http://10.0.0.49:8082/domain/68cecb4b-104e-442b-b003-e38ae151ab22
2025-09-22 19:41:50,697 - DEBUG - Requesting: http://10.0.0.49:8082/project/26b4c2dc-a2a3-4f0f-8d6c-de7e819fd957
2025-09-22 19:41:50,768 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/34d5562a-f46a-419e-89ff-10f3987650cd
2025-09-22 19:41:50,779 - DEBUG - ==>Verifying data for policy with id: 3644e5b5-4f47-4a18-9c0e-d3cd07a24d49, fqn: ['default-domain', 'ctest-TestBasicPolicy-94492461', 'ctest-policy-allow-all-45881295']
2025-09-22 19:41:50,779 - INFO - VN ctest-vn-30967171 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-22 19:41:50,779 - DEBUG - Verifying the vn in opserver
2025-09-22 19:41:50,779 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94492461:ctest-vn-30967171 virtual network link through opserver 10.0.0.49
2025-09-22 19:41:50,779 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-09-22 19:41:50,790 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94492461:ctest-vn-30967171', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94492461:ctest-vn-30967171?flat'}
2025-09-22 19:41:50,790 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94492461:ctest-vn-30967171 is found in opserver
2025-09-22 19:41:50,800 - DEBUG - Do not have enough data to verify VN in agent
2025-09-22 19:41:50,805 - DEBUG - VRF ids for VN ctest-vn-30967171: {}
2025-09-22 19:41:50,874 - DEBUG - Services list from nova: [