2026-02-12 10:43:54,466 - INFO - Domain Default found not creating
2026-02-12 10:43:54,654 - INFO - Project ctest-TestBasicPolicy-89487455 not found, creating it
2026-02-12 10:43:55,116 - INFO - Created Project:ctest-TestBasicPolicy-89487455, ID : 925a1188-8e4d-43e1-a8a3-c72ecf33d7d0
2026-02-12 10:43:56,720 - INFO - ================================================================================
2026-02-12 10:43:56,721 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-12 10:43:56,721 - 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
2026-02-12 10:43:56,994 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-02-12 10:43:56,994 - INFO - Initial checks done. Running the testcase now
2026-02-12 10:43:56,995 - INFO -
2026-02-12 10:43:57,563 - DEBUG - Response for create_network : {'network': {'id': '30e5d72c-d5cc-4c05-bb1d-7287370e039f', 'name': 'ctest-vn-42621110', 'tenant_id': '925a11888e4d43e1a8a3c72ecf33d7d0', 'project_id': '925a11888e4d43e1a8a3c72ecf33d7d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89487455', 'ctest-vn-42621110'], 'port_security_enabled': True, 'description': ''}}
2026-02-12 10:43:57,776 - DEBUG - Response for create_subnet : {'subnet': {'id': '47a27c93-d44c-485d-b050-621666a6f4d6', 'name': '', 'tenant_id': '925a11888e4d43e1a8a3c72ecf33d7d0', 'network_id': '30e5d72c-d5cc-4c05-bb1d-7287370e039f', 'ip_version': 4, 'cidr': '104.55.220.0/26', 'allocation_pools': [{'start': '104.55.220.2', 'end': '104.55.220.62'}], 'gateway_ip': '104.55.220.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.55.220.2', 'tags': [], 'project_id': '925a11888e4d43e1a8a3c72ecf33d7d0'}}
2026-02-12 10:43:57,795 - INFO - Created VN ctest-vn-42621110
2026-02-12 10:43:57,850 - DEBUG - VN ctest-vn-42621110 UUID is 30e5d72c-d5cc-4c05-bb1d-7287370e039f
2026-02-12 10:43:58,164 - DEBUG - Response for create_network : {'network': {'id': 'ec904082-a0c0-45aa-a486-32a6ea1a9c39', 'name': 'ctest-vn-62207801', 'tenant_id': '925a11888e4d43e1a8a3c72ecf33d7d0', 'project_id': '925a11888e4d43e1a8a3c72ecf33d7d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89487455', 'ctest-vn-62207801'], 'port_security_enabled': True, 'description': ''}}
2026-02-12 10:43:58,394 - DEBUG - Response for create_subnet : {'subnet': {'id': '8c0f563a-c1d6-4fd0-9d62-e19f44c4668f', 'name': '', 'tenant_id': '925a11888e4d43e1a8a3c72ecf33d7d0', 'network_id': 'ec904082-a0c0-45aa-a486-32a6ea1a9c39', 'ip_version': 4, 'cidr': '149.181.74.128/26', 'allocation_pools': [{'start': '149.181.74.130', 'end': '149.181.74.190'}], 'gateway_ip': '149.181.74.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.181.74.130', 'tags': [], 'project_id': '925a11888e4d43e1a8a3c72ecf33d7d0'}}
2026-02-12 10:43:58,415 - INFO - Created VN ctest-vn-62207801
2026-02-12 10:43:58,470 - DEBUG - VN ctest-vn-62207801 UUID is ec904082-a0c0-45aa-a486-32a6ea1a9c39
2026-02-12 10:43:58,589 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89487455:ctest-vn-42621110, 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-89487455:ctest-vn-62207801, 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]
2026-02-12 10:43:58,895 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '30e5d72c-d5cc-4c05-bb1d-7287370e039f', 'name': 'ctest-vn-42621110', 'tenant_id': '925a11888e4d43e1a8a3c72ecf33d7d0', 'project_id': '925a11888e4d43e1a8a3c72ecf33d7d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['47a27c93-d44c-485d-b050-621666a6f4d6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89487455', 'ctest-vn-42621110'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89487455', 'ctest-policy-allow-all-18315967']], 'subnet_ipam': [{'subnet_cidr': '104.55.220.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-12 10:43:59,159 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ec904082-a0c0-45aa-a486-32a6ea1a9c39', 'name': 'ctest-vn-62207801', 'tenant_id': '925a11888e4d43e1a8a3c72ecf33d7d0', 'project_id': '925a11888e4d43e1a8a3c72ecf33d7d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8c0f563a-c1d6-4fd0-9d62-e19f44c4668f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89487455', 'ctest-vn-62207801'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89487455', 'ctest-policy-allow-all-18315967']], 'subnet_ipam': [{'subnet_cidr': '149.181.74.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-12 10:43:59,322 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-12 10:43:59,647 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-12 10:43:59,699 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9262b1a8-b0fa-4571-aeb1-7ebca5cb486f
2026-02-12 10:43:59,712 - DEBUG - Requesting: http://10.0.0.50:8082/project/925a1188-8e4d-43e1-a8a3-c72ecf33d7d0
2026-02-12 10:43:59,786 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/30e5d72c-d5cc-4c05-bb1d-7287370e039f
2026-02-12 10:43:59,798 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/30e5d72c-d5cc-4c05-bb1d-7287370e039f
2026-02-12 10:43:59,808 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4e49ba4a-e758-4237-aba2-b3ea3c8b818b
2026-02-12 10:43:59,815 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4e49ba4a-e758-4237-aba2-b3ea3c8b818b
2026-02-12 10:43:59,822 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/fccb498a-c0ac-475e-95b5-87508d031034
2026-02-12 10:43:59,829 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-12 10:43:59,829 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/30e5d72c-d5cc-4c05-bb1d-7287370e039f
2026-02-12 10:43:59,840 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4e49ba4a-e758-4237-aba2-b3ea3c8b818b
2026-02-12 10:43:59,856 - INFO - Verified VN network id 12 for VN 30e5d72c-d5cc-4c05-bb1d-7287370e039f
2026-02-12 10:43:59,856 - INFO - Verifications in API Server for VN ctest-vn-42621110 passed
2026-02-12 10:43:59,856 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/30e5d72c-d5cc-4c05-bb1d-7287370e039f
2026-02-12 10:43:59,867 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4e49ba4a-e758-4237-aba2-b3ea3c8b818b
2026-02-12 10:43:59,875 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4e49ba4a-e758-4237-aba2-b3ea3c8b818b
2026-02-12 10:43:59,883 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/fccb498a-c0ac-475e-95b5-87508d031034
2026-02-12 10:43:59,896 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89487455:ctest-vn-42621110', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89487455', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3523458871052749829', 'uuid-lslong': '13483058784486949791'}, 'enable': 'true', 'created': '2026-02-12T10:43:57', 'last-modified': '2026-02-12T10:43:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.027948'}
2026-02-12 10:43:59,903 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-12 10:43:59,903 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42621110 passed
2026-02-12 10:43:59,903 - DEBUG - ====Verifying policy data for ctest-vn-42621110 in API_Server ======
2026-02-12 10:43:59,903 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-12 10:43:59,909 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9262b1a8-b0fa-4571-aeb1-7ebca5cb486f
2026-02-12 10:43:59,919 - DEBUG - Requesting: http://10.0.0.50:8082/project/925a1188-8e4d-43e1-a8a3-c72ecf33d7d0
2026-02-12 10:43:59,989 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/30e5d72c-d5cc-4c05-bb1d-7287370e039f
2026-02-12 10:43:59,998 - DEBUG - ==>Verifying data for policy with id: 55e264b3-d22d-4e1e-8257-27ed6e8c641e, fqn: ['default-domain', 'ctest-TestBasicPolicy-89487455', 'ctest-policy-allow-all-18315967']
2026-02-12 10:43:59,998 - INFO - VN ctest-vn-42621110 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-12 10:43:59,998 - DEBUG - Verifying the vn in opserver
2026-02-12 10:43:59,998 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89487455:ctest-vn-42621110 virtual network link through opserver 10.0.0.50
2026-02-12 10:43:59,998 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-12 10:44:00,307 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-12 10:44:00,396 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89487455:ctest-vn-42621110', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89487455:ctest-vn-42621110?flat'}
2026-02-12 10:44:00,396 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89487455:ctest-vn-42621110 is found in opserver
2026-02-12 10:44:00,405 - DEBUG - Do not have enough data to verify VN in agent
2026-02-12 10:44:00,409 - DEBUG - VRF ids for VN ctest-vn-42621110: {}
2026-02-12 10:44:00,409 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-12 10:44:00,415 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9262b1a8-b0fa-4571-aeb1-7ebca5cb486f
2026-02-12 10:44:00,425 - DEBUG - Requesting: http://10.0.0.50:8082/project/925a1188-8e4d-43e1-a8a3-c72ecf33d7d0
2026-02-12 10:44:00,498 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ec904082-a0c0-45aa-a486-32a6ea1a9c39
2026-02-12 10:44:00,509 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ec904082-a0c0-45aa-a486-32a6ea1a9c39
2026-02-12 10:44:00,518 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5b4d119c-123d-4488-b3a2-5e40e203b049
2026-02-12 10:44:00,525 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5b4d119c-123d-4488-b3a2-5e40e203b049
2026-02-12 10:44:00,533 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b7811f85-dce9-4132-a57c-32783451d0d1
2026-02-12 10:44:00,540 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-12 10:44:00,540 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ec904082-a0c0-45aa-a486-32a6ea1a9c39
2026-02-12 10:44:00,548 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5b4d119c-123d-4488-b3a2-5e40e203b049
2026-02-12 10:44:00,565 - INFO - Verified VN network id 13 for VN ec904082-a0c0-45aa-a486-32a6ea1a9c39
2026-02-12 10:44:00,565 - INFO - Verifications in API Server for VN ctest-vn-62207801 passed
2026-02-12 10:44:00,565 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ec904082-a0c0-45aa-a486-32a6ea1a9c39
2026-02-12 10:44:00,576 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5b4d119c-123d-4488-b3a2-5e40e203b049
2026-02-12 10:44:00,584 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5b4d119c-123d-4488-b3a2-5e40e203b049
2026-02-12 10:44:00,592 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b7811f85-dce9-4132-a57c-32783451d0d1
2026-02-12 10:44:00,606 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89487455:ctest-vn-62207801', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89487455', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17046195519384208810', 'uuid-lslong': '11855218761572981817'}, 'enable': 'true', 'created': '2026-02-12T10:43:58', 'last-modified': '2026-02-12T10:43:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.481947'}
2026-02-12 10:44:00,612 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-12 10:44:00,612 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62207801 passed
2026-02-12 10:44:00,612 - DEBUG - ====Verifying policy data for ctest-vn-62207801 in API_Server ======
2026-02-12 10:44:00,612 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-12 10:44:00,617 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9262b1a8-b0fa-4571-aeb1-7ebca5cb486f
2026-02-12 10:44:00,628 - DEBUG - Requesting: http://10.0.0.50:8082/project/925a1188-8e4d-43e1-a8a3-c72ecf33d7d0
2026-02-12 10:44:00,699 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ec904082-a0c0-45aa-a486-32a6ea1a9c39
2026-02-12 10:44:00,708 - DEBUG - ==>Verifying data for policy with id: 55e264b3-d22d-4e1e-8257-27ed6e8c641e, fqn: ['default-domain', 'ctest-TestBasicPolicy-89487455', 'ctest-policy-allow-all-18315967']
2026-02-12 10:44:00,708 - INFO - VN ctest-vn-62207801 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-12 10:44:00,708 - DEBUG - Verifying the vn in opserver
2026-02-12 10:44:00,708 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89487455:ctest-vn-62207801 virtual network link through opserver 10.0.0.50
2026-02-12 10:44:00,708 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-12 10:44:00,717 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89487455:ctest-vn-62207801', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89487455:ctest-vn-62207801?flat'}
2026-02-12 10:44:00,717 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89487455:ctest-vn-62207801 is found in opserver
2026-02-12 10:44:00,728 - DEBUG - Do not have enough data to verify VN in agent
2026-02-12 10:44:00,734 - DEBUG - VRF ids for VN ctest-vn-62207801: {}
2026-02-12 10:44:00,792 - DEBUG - Services list from nova: [