2025-11-22 06:37:11,732 - INFO - Domain Default found not creating
2025-11-22 06:37:11,915 - INFO - Project ctest-TestBasicPolicy-46189064 not found, creating it
2025-11-22 06:37:12,406 - INFO - Created Project:ctest-TestBasicPolicy-46189064, ID : 2183329c-e40a-44c6-8d29-c77e76bf12d8
2025-11-22 06:37:13,962 - INFO - ================================================================================
2025-11-22 06:37:13,962 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-22 06:37:13,962 - 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-22 06:37:14,226 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-11-22 06:37:14,226 - INFO - Initial checks done. Running the testcase now
2025-11-22 06:37:14,226 - INFO -
2025-11-22 06:37:14,792 - DEBUG - Response for create_network : {'network': {'id': '87c87b0e-da1f-46f2-a22b-fd5e30a186b2', 'name': 'ctest-vn-19526037', 'tenant_id': '2183329ce40a44c68d29c77e76bf12d8', 'project_id': '2183329ce40a44c68d29c77e76bf12d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46189064', 'ctest-vn-19526037'], 'port_security_enabled': True, 'description': ''}}
2025-11-22 06:37:14,939 - DEBUG - Response for create_subnet : {'subnet': {'id': '97ff6de8-ba9e-4e84-9fa3-ad986363fc9f', 'name': '', 'tenant_id': '2183329ce40a44c68d29c77e76bf12d8', 'network_id': '87c87b0e-da1f-46f2-a22b-fd5e30a186b2', 'ip_version': 4, 'cidr': '112.248.233.64/26', 'allocation_pools': [{'start': '112.248.233.66', 'end': '112.248.233.126'}], 'gateway_ip': '112.248.233.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.248.233.66', 'tags': [], 'project_id': '2183329ce40a44c68d29c77e76bf12d8'}}
2025-11-22 06:37:14,960 - INFO - Created VN ctest-vn-19526037
2025-11-22 06:37:15,012 - DEBUG - VN ctest-vn-19526037 UUID is 87c87b0e-da1f-46f2-a22b-fd5e30a186b2
2025-11-22 06:37:15,314 - DEBUG - Response for create_network : {'network': {'id': '743b6901-4c88-4bda-a676-866ced9dfed5', 'name': 'ctest-vn-53883947', 'tenant_id': '2183329ce40a44c68d29c77e76bf12d8', 'project_id': '2183329ce40a44c68d29c77e76bf12d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46189064', 'ctest-vn-53883947'], 'port_security_enabled': True, 'description': ''}}
2025-11-22 06:37:15,567 - DEBUG - Response for create_subnet : {'subnet': {'id': '44ff4fb6-13bc-4b19-a80a-fcec970ee28a', 'name': '', 'tenant_id': '2183329ce40a44c68d29c77e76bf12d8', 'network_id': '743b6901-4c88-4bda-a676-866ced9dfed5', 'ip_version': 4, 'cidr': '125.90.90.64/26', 'allocation_pools': [{'start': '125.90.90.66', 'end': '125.90.90.126'}], 'gateway_ip': '125.90.90.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.90.90.66', 'tags': [], 'project_id': '2183329ce40a44c68d29c77e76bf12d8'}}
2025-11-22 06:37:15,587 - INFO - Created VN ctest-vn-53883947
2025-11-22 06:37:15,640 - DEBUG - VN ctest-vn-53883947 UUID is 743b6901-4c88-4bda-a676-866ced9dfed5
2025-11-22 06:37:15,764 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-46189064:ctest-vn-19526037, 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-46189064:ctest-vn-53883947, 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-22 06:37:16,113 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '87c87b0e-da1f-46f2-a22b-fd5e30a186b2', 'name': 'ctest-vn-19526037', 'tenant_id': '2183329ce40a44c68d29c77e76bf12d8', 'project_id': '2183329ce40a44c68d29c77e76bf12d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['97ff6de8-ba9e-4e84-9fa3-ad986363fc9f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46189064', 'ctest-vn-19526037'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46189064', 'ctest-policy-allow-all-28637515']], 'subnet_ipam': [{'subnet_cidr': '112.248.233.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-22 06:37:16,373 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '743b6901-4c88-4bda-a676-866ced9dfed5', 'name': 'ctest-vn-53883947', 'tenant_id': '2183329ce40a44c68d29c77e76bf12d8', 'project_id': '2183329ce40a44c68d29c77e76bf12d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['44ff4fb6-13bc-4b19-a80a-fcec970ee28a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46189064', 'ctest-vn-53883947'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46189064', 'ctest-policy-allow-all-28637515']], 'subnet_ipam': [{'subnet_cidr': '125.90.90.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-22 06:37:16,548 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-22 06:37:16,852 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-22 06:37:16,890 - DEBUG - Requesting: http://10.0.0.50:8082/domain/401b823b-7849-4b97-ae5b-6cd8429e7ea6
2025-11-22 06:37:16,903 - DEBUG - Requesting: http://10.0.0.50:8082/project/2183329c-e40a-44c6-8d29-c77e76bf12d8
2025-11-22 06:37:16,977 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/87c87b0e-da1f-46f2-a22b-fd5e30a186b2
2025-11-22 06:37:16,988 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/87c87b0e-da1f-46f2-a22b-fd5e30a186b2
2025-11-22 06:37:16,998 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6a1ce30d-7feb-4350-8022-26b3b130a9e0
2025-11-22 06:37:17,005 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6a1ce30d-7feb-4350-8022-26b3b130a9e0
2025-11-22 06:37:17,012 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5d555ea5-b518-40ae-91e4-b38eed31082b
2025-11-22 06:37:17,019 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-22 06:37:17,019 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/87c87b0e-da1f-46f2-a22b-fd5e30a186b2
2025-11-22 06:37:17,029 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6a1ce30d-7feb-4350-8022-26b3b130a9e0
2025-11-22 06:37:17,044 - INFO - Verified VN network id 11 for VN 87c87b0e-da1f-46f2-a22b-fd5e30a186b2
2025-11-22 06:37:17,044 - INFO - Verifications in API Server for VN ctest-vn-19526037 passed
2025-11-22 06:37:17,044 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/87c87b0e-da1f-46f2-a22b-fd5e30a186b2
2025-11-22 06:37:17,054 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6a1ce30d-7feb-4350-8022-26b3b130a9e0
2025-11-22 06:37:17,061 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6a1ce30d-7feb-4350-8022-26b3b130a9e0
2025-11-22 06:37:17,068 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5d555ea5-b518-40ae-91e4-b38eed31082b
2025-11-22 06:37:17,083 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46189064:ctest-vn-19526037', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46189064', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9784205494181644018', 'uuid-lslong': '11685712239127529138'}, 'enable': 'true', 'created': '2025-11-22T06:37:14', 'last-modified': '2025-11-22T06:37:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.007737'}
2025-11-22 06:37:17,091 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-22 06:37:17,091 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19526037 passed
2025-11-22 06:37:17,091 - DEBUG - ====Verifying policy data for ctest-vn-19526037 in API_Server ======
2025-11-22 06:37:17,091 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-22 06:37:17,098 - DEBUG - Requesting: http://10.0.0.50:8082/domain/401b823b-7849-4b97-ae5b-6cd8429e7ea6
2025-11-22 06:37:17,110 - DEBUG - Requesting: http://10.0.0.50:8082/project/2183329c-e40a-44c6-8d29-c77e76bf12d8
2025-11-22 06:37:17,184 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/87c87b0e-da1f-46f2-a22b-fd5e30a186b2
2025-11-22 06:37:17,194 - DEBUG - ==>Verifying data for policy with id: fbe239c6-ede4-4327-b10f-1984985d734f, fqn: ['default-domain', 'ctest-TestBasicPolicy-46189064', 'ctest-policy-allow-all-28637515']
2025-11-22 06:37:17,194 - INFO - VN ctest-vn-19526037 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-22 06:37:17,195 - DEBUG - Verifying the vn in opserver
2025-11-22 06:37:17,195 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46189064:ctest-vn-19526037 virtual network link through opserver 10.0.0.50
2025-11-22 06:37:17,195 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-22 06:37:17,496 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-22 06:37:17,562 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46189064:ctest-vn-19526037', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46189064:ctest-vn-19526037?flat'}
2025-11-22 06:37:17,563 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46189064:ctest-vn-19526037 is found in opserver
2025-11-22 06:37:17,572 - DEBUG - Do not have enough data to verify VN in agent
2025-11-22 06:37:17,577 - DEBUG - VRF ids for VN ctest-vn-19526037: {}
2025-11-22 06:37:17,577 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-22 06:37:17,582 - DEBUG - Requesting: http://10.0.0.50:8082/domain/401b823b-7849-4b97-ae5b-6cd8429e7ea6
2025-11-22 06:37:17,593 - DEBUG - Requesting: http://10.0.0.50:8082/project/2183329c-e40a-44c6-8d29-c77e76bf12d8
2025-11-22 06:37:17,662 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/743b6901-4c88-4bda-a676-866ced9dfed5
2025-11-22 06:37:17,673 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/743b6901-4c88-4bda-a676-866ced9dfed5
2025-11-22 06:37:17,681 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ce204dbf-520e-413e-95b7-4e5cd27d5f51
2025-11-22 06:37:17,689 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ce204dbf-520e-413e-95b7-4e5cd27d5f51
2025-11-22 06:37:17,696 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2ee06c19-1a2c-40ae-81b7-009f09ee0f19
2025-11-22 06:37:17,702 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-22 06:37:17,702 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/743b6901-4c88-4bda-a676-866ced9dfed5
2025-11-22 06:37:17,712 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ce204dbf-520e-413e-95b7-4e5cd27d5f51
2025-11-22 06:37:17,726 - INFO - Verified VN network id 12 for VN 743b6901-4c88-4bda-a676-866ced9dfed5
2025-11-22 06:37:17,726 - INFO - Verifications in API Server for VN ctest-vn-53883947 passed
2025-11-22 06:37:17,726 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/743b6901-4c88-4bda-a676-866ced9dfed5
2025-11-22 06:37:17,734 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ce204dbf-520e-413e-95b7-4e5cd27d5f51
2025-11-22 06:37:17,741 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ce204dbf-520e-413e-95b7-4e5cd27d5f51
2025-11-22 06:37:17,747 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2ee06c19-1a2c-40ae-81b7-009f09ee0f19
2025-11-22 06:37:17,758 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46189064:ctest-vn-53883947', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46189064', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8375403386325453786', 'uuid-lslong': '11994922459949039317'}, 'enable': 'true', 'created': '2025-11-22T06:37:15', 'last-modified': '2025-11-22T06:37:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.413752'}
2025-11-22 06:37:17,764 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-22 06:37:17,764 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53883947 passed
2025-11-22 06:37:17,764 - DEBUG - ====Verifying policy data for ctest-vn-53883947 in API_Server ======
2025-11-22 06:37:17,764 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-22 06:37:17,770 - DEBUG - Requesting: http://10.0.0.50:8082/domain/401b823b-7849-4b97-ae5b-6cd8429e7ea6
2025-11-22 06:37:17,781 - DEBUG - Requesting: http://10.0.0.50:8082/project/2183329c-e40a-44c6-8d29-c77e76bf12d8
2025-11-22 06:37:17,851 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/743b6901-4c88-4bda-a676-866ced9dfed5
2025-11-22 06:37:17,860 - DEBUG - ==>Verifying data for policy with id: fbe239c6-ede4-4327-b10f-1984985d734f, fqn: ['default-domain', 'ctest-TestBasicPolicy-46189064', 'ctest-policy-allow-all-28637515']
2025-11-22 06:37:17,860 - INFO - VN ctest-vn-53883947 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-22 06:37:17,861 - DEBUG - Verifying the vn in opserver
2025-11-22 06:37:17,861 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46189064:ctest-vn-53883947 virtual network link through opserver 10.0.0.50
2025-11-22 06:37:17,861 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-22 06:37:17,870 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46189064:ctest-vn-53883947', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46189064:ctest-vn-53883947?flat'}
2025-11-22 06:37:17,870 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46189064:ctest-vn-53883947 is found in opserver
2025-11-22 06:37:17,879 - DEBUG - Do not have enough data to verify VN in agent
2025-11-22 06:37:17,883 - DEBUG - VRF ids for VN ctest-vn-53883947: {}
2025-11-22 06:37:17,946 - DEBUG - Services list from nova: [