2026-06-08 02:14:33,465 - INFO - Domain Default found not creating
2026-06-08 02:14:33,647 - INFO - Project ctest-TestBasicPolicy-46776615 not found, creating it
2026-06-08 02:14:34,112 - INFO - Created Project:ctest-TestBasicPolicy-46776615, ID : 4480ffb7-7a78-4001-a7a8-e8ac6b650320
2026-06-08 02:14:35,650 - INFO - ================================================================================
2026-06-08 02:14:35,650 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-06-08 02:14:35,650 - 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-06-08 02:14:35,905 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-06-08 02:14:35,905 - INFO - Initial checks done. Running the testcase now
2026-06-08 02:14:35,906 - INFO -
2026-06-08 02:14:36,459 - DEBUG - Response for create_network : {'network': {'id': 'f21be935-61c4-4d6c-8e1c-02c01308ba4b', 'name': 'ctest-vn-63984317', 'tenant_id': '4480ffb77a784001a7a8e8ac6b650320', 'project_id': '4480ffb77a784001a7a8e8ac6b650320', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46776615', 'ctest-vn-63984317'], 'port_security_enabled': True, 'description': ''}}
2026-06-08 02:14:36,638 - DEBUG - Response for create_subnet : {'subnet': {'id': '9b940e07-e3ae-4e47-bc7b-53b6c72a5ae5', 'name': '', 'tenant_id': '4480ffb77a784001a7a8e8ac6b650320', 'network_id': 'f21be935-61c4-4d6c-8e1c-02c01308ba4b', 'ip_version': 4, 'cidr': '128.52.144.128/26', 'allocation_pools': [{'start': '128.52.144.130', 'end': '128.52.144.190'}], 'gateway_ip': '128.52.144.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '128.52.144.130', 'tags': [], 'project_id': '4480ffb77a784001a7a8e8ac6b650320'}}
2026-06-08 02:14:36,656 - INFO - Created VN ctest-vn-63984317
2026-06-08 02:14:36,707 - DEBUG - VN ctest-vn-63984317 UUID is f21be935-61c4-4d6c-8e1c-02c01308ba4b
2026-06-08 02:14:37,001 - DEBUG - Response for create_network : {'network': {'id': '454daad9-678e-46fe-bd39-2ab3cafe2c3b', 'name': 'ctest-vn-77682154', 'tenant_id': '4480ffb77a784001a7a8e8ac6b650320', 'project_id': '4480ffb77a784001a7a8e8ac6b650320', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46776615', 'ctest-vn-77682154'], 'port_security_enabled': True, 'description': ''}}
2026-06-08 02:14:37,164 - DEBUG - Response for create_subnet : {'subnet': {'id': '8ac798c8-d2ae-4b7c-952e-c8ae336a4a83', 'name': '', 'tenant_id': '4480ffb77a784001a7a8e8ac6b650320', 'network_id': '454daad9-678e-46fe-bd39-2ab3cafe2c3b', 'ip_version': 4, 'cidr': '68.36.182.0/26', 'allocation_pools': [{'start': '68.36.182.2', 'end': '68.36.182.62'}], 'gateway_ip': '68.36.182.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '68.36.182.2', 'tags': [], 'project_id': '4480ffb77a784001a7a8e8ac6b650320'}}
2026-06-08 02:14:37,188 - INFO - Created VN ctest-vn-77682154
2026-06-08 02:14:37,239 - DEBUG - VN ctest-vn-77682154 UUID is 454daad9-678e-46fe-bd39-2ab3cafe2c3b
2026-06-08 02:14:37,352 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-46776615:ctest-vn-63984317, 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-46776615:ctest-vn-77682154, 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-06-08 02:14:37,662 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f21be935-61c4-4d6c-8e1c-02c01308ba4b', 'name': 'ctest-vn-63984317', 'tenant_id': '4480ffb77a784001a7a8e8ac6b650320', 'project_id': '4480ffb77a784001a7a8e8ac6b650320', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9b940e07-e3ae-4e47-bc7b-53b6c72a5ae5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46776615', 'ctest-vn-63984317'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46776615', 'ctest-policy-allow-all-33980021']], 'subnet_ipam': [{'subnet_cidr': '128.52.144.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-08 02:14:37,892 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '454daad9-678e-46fe-bd39-2ab3cafe2c3b', 'name': 'ctest-vn-77682154', 'tenant_id': '4480ffb77a784001a7a8e8ac6b650320', 'project_id': '4480ffb77a784001a7a8e8ac6b650320', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8ac798c8-d2ae-4b7c-952e-c8ae336a4a83'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46776615', 'ctest-vn-77682154'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46776615', 'ctest-policy-allow-all-33980021']], 'subnet_ipam': [{'subnet_cidr': '68.36.182.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-08 02:14:38,063 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-06-08 02:14:38,361 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-06-08 02:14:38,395 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1ec0f333-d896-42e6-88f1-d28f52d3ea4a
2026-06-08 02:14:38,408 - DEBUG - Requesting: http://10.0.0.38:8082/project/4480ffb7-7a78-4001-a7a8-e8ac6b650320
2026-06-08 02:14:38,482 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f21be935-61c4-4d6c-8e1c-02c01308ba4b
2026-06-08 02:14:38,492 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f21be935-61c4-4d6c-8e1c-02c01308ba4b
2026-06-08 02:14:38,503 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f658b64e-3ded-4add-b0a7-52862e5bb7eb
2026-06-08 02:14:38,510 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f658b64e-3ded-4add-b0a7-52862e5bb7eb
2026-06-08 02:14:38,517 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/79dc4a62-4168-47dc-b9e6-1776ec176377
2026-06-08 02:14:38,523 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-08 02:14:38,523 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f21be935-61c4-4d6c-8e1c-02c01308ba4b
2026-06-08 02:14:38,531 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f658b64e-3ded-4add-b0a7-52862e5bb7eb
2026-06-08 02:14:38,543 - INFO - Verified VN network id 11 for VN f21be935-61c4-4d6c-8e1c-02c01308ba4b
2026-06-08 02:14:38,543 - INFO - Verifications in API Server for VN ctest-vn-63984317 passed
2026-06-08 02:14:38,543 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f21be935-61c4-4d6c-8e1c-02c01308ba4b
2026-06-08 02:14:38,552 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f658b64e-3ded-4add-b0a7-52862e5bb7eb
2026-06-08 02:14:38,558 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f658b64e-3ded-4add-b0a7-52862e5bb7eb
2026-06-08 02:14:38,567 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/79dc4a62-4168-47dc-b9e6-1776ec176377
2026-06-08 02:14:38,583 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46776615:ctest-vn-63984317', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46776615', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17445793997032541548', 'uuid-lslong': '10240062676709980747'}, 'enable': 'true', 'created': '2026-06-08T02:14:36', 'last-modified': '2026-06-08T02:14:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.950093'}
2026-06-08 02:14:38,589 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-08 02:14:38,589 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63984317 passed
2026-06-08 02:14:38,589 - DEBUG - ====Verifying policy data for ctest-vn-63984317 in API_Server ======
2026-06-08 02:14:38,589 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-06-08 02:14:38,595 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1ec0f333-d896-42e6-88f1-d28f52d3ea4a
2026-06-08 02:14:38,606 - DEBUG - Requesting: http://10.0.0.38:8082/project/4480ffb7-7a78-4001-a7a8-e8ac6b650320
2026-06-08 02:14:38,683 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f21be935-61c4-4d6c-8e1c-02c01308ba4b
2026-06-08 02:14:38,693 - DEBUG - ==>Verifying data for policy with id: edbeb026-4763-409b-934c-02fafb1726c8, fqn: ['default-domain', 'ctest-TestBasicPolicy-46776615', 'ctest-policy-allow-all-33980021']
2026-06-08 02:14:38,693 - INFO - VN ctest-vn-63984317 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-08 02:14:38,693 - DEBUG - Verifying the vn in opserver
2026-06-08 02:14:38,693 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46776615:ctest-vn-63984317 virtual network link through opserver 10.0.0.38
2026-06-08 02:14:38,693 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-06-08 02:14:38,985 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-06-08 02:14:39,057 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46776615:ctest-vn-63984317', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46776615:ctest-vn-63984317?flat'}
2026-06-08 02:14:39,057 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46776615:ctest-vn-63984317 is found in opserver
2026-06-08 02:14:39,066 - DEBUG - Do not have enough data to verify VN in agent
2026-06-08 02:14:39,071 - DEBUG - VRF ids for VN ctest-vn-63984317: {}
2026-06-08 02:14:39,071 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-06-08 02:14:39,076 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1ec0f333-d896-42e6-88f1-d28f52d3ea4a
2026-06-08 02:14:39,087 - DEBUG - Requesting: http://10.0.0.38:8082/project/4480ffb7-7a78-4001-a7a8-e8ac6b650320
2026-06-08 02:14:39,160 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/454daad9-678e-46fe-bd39-2ab3cafe2c3b
2026-06-08 02:14:39,173 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/454daad9-678e-46fe-bd39-2ab3cafe2c3b
2026-06-08 02:14:39,183 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/be6f0cf2-c27c-432b-938b-083f519567e3
2026-06-08 02:14:39,190 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/be6f0cf2-c27c-432b-938b-083f519567e3
2026-06-08 02:14:39,197 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8a300ebc-2fc5-4fd7-9545-c4e52fc9b595
2026-06-08 02:14:39,204 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-08 02:14:39,204 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/454daad9-678e-46fe-bd39-2ab3cafe2c3b
2026-06-08 02:14:39,212 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/be6f0cf2-c27c-432b-938b-083f519567e3
2026-06-08 02:14:39,227 - INFO - Verified VN network id 12 for VN 454daad9-678e-46fe-bd39-2ab3cafe2c3b
2026-06-08 02:14:39,227 - INFO - Verifications in API Server for VN ctest-vn-77682154 passed
2026-06-08 02:14:39,228 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/454daad9-678e-46fe-bd39-2ab3cafe2c3b
2026-06-08 02:14:39,237 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/be6f0cf2-c27c-432b-938b-083f519567e3
2026-06-08 02:14:39,244 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/be6f0cf2-c27c-432b-938b-083f519567e3
2026-06-08 02:14:39,250 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8a300ebc-2fc5-4fd7-9545-c4e52fc9b595
2026-06-08 02:14:39,266 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46776615:ctest-vn-77682154', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46776615', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4993835412545750782', 'uuid-lslong': '13634976298534054971'}, 'enable': 'true', 'created': '2026-06-08T02:14:36', 'last-modified': '2026-06-08T02:14:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.396850'}
2026-06-08 02:14:39,274 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-08 02:14:39,274 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77682154 passed
2026-06-08 02:14:39,274 - DEBUG - ====Verifying policy data for ctest-vn-77682154 in API_Server ======
2026-06-08 02:14:39,274 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-06-08 02:14:39,281 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1ec0f333-d896-42e6-88f1-d28f52d3ea4a
2026-06-08 02:14:39,296 - DEBUG - Requesting: http://10.0.0.38:8082/project/4480ffb7-7a78-4001-a7a8-e8ac6b650320
2026-06-08 02:14:39,368 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/454daad9-678e-46fe-bd39-2ab3cafe2c3b
2026-06-08 02:14:39,387 - DEBUG - ==>Verifying data for policy with id: edbeb026-4763-409b-934c-02fafb1726c8, fqn: ['default-domain', 'ctest-TestBasicPolicy-46776615', 'ctest-policy-allow-all-33980021']
2026-06-08 02:14:39,387 - INFO - VN ctest-vn-77682154 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-08 02:14:39,387 - DEBUG - Verifying the vn in opserver
2026-06-08 02:14:39,387 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46776615:ctest-vn-77682154 virtual network link through opserver 10.0.0.38
2026-06-08 02:14:39,387 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-06-08 02:14:39,397 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46776615:ctest-vn-77682154', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46776615:ctest-vn-77682154?flat'}
2026-06-08 02:14:39,397 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46776615:ctest-vn-77682154 is found in opserver
2026-06-08 02:14:39,407 - DEBUG - Do not have enough data to verify VN in agent
2026-06-08 02:14:39,413 - DEBUG - VRF ids for VN ctest-vn-77682154: {}
2026-06-08 02:14:39,471 - DEBUG - Services list from nova: [