2026-04-01 17:49:47,021 - INFO - Domain Default found not creating
2026-04-01 17:49:47,196 - INFO - Project ctest-TestBasicPolicy-52618812 not found, creating it
2026-04-01 17:49:47,653 - INFO - Created Project:ctest-TestBasicPolicy-52618812, ID : b2487e2a-c982-4b5a-83ee-3213f4636972
2026-04-01 17:49:49,132 - INFO - ================================================================================
2026-04-01 17:49:49,132 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-01 17:49:49,133 - 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-04-01 17:49:49,407 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2026-04-01 17:49:49,407 - INFO - Initial checks done. Running the testcase now
2026-04-01 17:49:49,407 - INFO -
2026-04-01 17:49:49,970 - DEBUG - Response for create_network : {'network': {'id': '3fd57262-68f4-4ad6-a613-5ff66c6fcb3e', 'name': 'ctest-vn-95663756', 'tenant_id': 'b2487e2ac9824b5a83ee3213f4636972', 'project_id': 'b2487e2ac9824b5a83ee3213f4636972', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52618812', 'ctest-vn-95663756'], 'port_security_enabled': True, 'description': ''}}
2026-04-01 17:49:50,142 - DEBUG - Response for create_subnet : {'subnet': {'id': '44f5e046-13b6-41d9-acef-b84f944b29cb', 'name': '', 'tenant_id': 'b2487e2ac9824b5a83ee3213f4636972', 'network_id': '3fd57262-68f4-4ad6-a613-5ff66c6fcb3e', 'ip_version': 4, 'cidr': '192.30.250.128/26', 'allocation_pools': [{'start': '192.30.250.130', 'end': '192.30.250.190'}], 'gateway_ip': '192.30.250.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.30.250.130', 'tags': [], 'project_id': 'b2487e2ac9824b5a83ee3213f4636972'}}
2026-04-01 17:49:50,159 - INFO - Created VN ctest-vn-95663756
2026-04-01 17:49:50,211 - DEBUG - VN ctest-vn-95663756 UUID is 3fd57262-68f4-4ad6-a613-5ff66c6fcb3e
2026-04-01 17:49:50,535 - DEBUG - Response for create_network : {'network': {'id': '5ffe3c77-1a5d-4b6e-8803-ed632f93687f', 'name': 'ctest-vn-68953052', 'tenant_id': 'b2487e2ac9824b5a83ee3213f4636972', 'project_id': 'b2487e2ac9824b5a83ee3213f4636972', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52618812', 'ctest-vn-68953052'], 'port_security_enabled': True, 'description': ''}}
2026-04-01 17:49:50,744 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f94eb175-6413-4415-9394-f47a840f3aae', 'name': '', 'tenant_id': 'b2487e2ac9824b5a83ee3213f4636972', 'network_id': '5ffe3c77-1a5d-4b6e-8803-ed632f93687f', 'ip_version': 4, 'cidr': '191.172.105.0/26', 'allocation_pools': [{'start': '191.172.105.2', 'end': '191.172.105.62'}], 'gateway_ip': '191.172.105.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.172.105.2', 'tags': [], 'project_id': 'b2487e2ac9824b5a83ee3213f4636972'}}
2026-04-01 17:49:50,761 - INFO - Created VN ctest-vn-68953052
2026-04-01 17:49:50,811 - DEBUG - VN ctest-vn-68953052 UUID is 5ffe3c77-1a5d-4b6e-8803-ed632f93687f
2026-04-01 17:49:50,967 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-52618812:ctest-vn-95663756, 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-52618812:ctest-vn-68953052, 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-04-01 17:49:51,252 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3fd57262-68f4-4ad6-a613-5ff66c6fcb3e', 'name': 'ctest-vn-95663756', 'tenant_id': 'b2487e2ac9824b5a83ee3213f4636972', 'project_id': 'b2487e2ac9824b5a83ee3213f4636972', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['44f5e046-13b6-41d9-acef-b84f944b29cb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52618812', 'ctest-vn-95663756'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52618812', 'ctest-policy-allow-all-45434508']], 'subnet_ipam': [{'subnet_cidr': '192.30.250.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-01 17:49:51,469 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5ffe3c77-1a5d-4b6e-8803-ed632f93687f', 'name': 'ctest-vn-68953052', 'tenant_id': 'b2487e2ac9824b5a83ee3213f4636972', 'project_id': 'b2487e2ac9824b5a83ee3213f4636972', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f94eb175-6413-4415-9394-f47a840f3aae'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52618812', 'ctest-vn-68953052'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52618812', 'ctest-policy-allow-all-45434508']], 'subnet_ipam': [{'subnet_cidr': '191.172.105.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-01 17:49:51,635 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-01 17:49:51,941 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-01 17:49:51,972 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3db96bd2-688c-4493-8241-b8350c0354c9
2026-04-01 17:49:51,985 - DEBUG - Requesting: http://10.0.0.50:8082/project/b2487e2a-c982-4b5a-83ee-3213f4636972
2026-04-01 17:49:52,058 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3fd57262-68f4-4ad6-a613-5ff66c6fcb3e
2026-04-01 17:49:52,068 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3fd57262-68f4-4ad6-a613-5ff66c6fcb3e
2026-04-01 17:49:52,076 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5bc60ba4-4d7b-4bad-b818-d0abbb497a86
2026-04-01 17:49:52,082 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5bc60ba4-4d7b-4bad-b818-d0abbb497a86
2026-04-01 17:49:52,089 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c301aecb-e302-489d-9b4c-03cab0ea4b4e
2026-04-01 17:49:52,095 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-01 17:49:52,095 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3fd57262-68f4-4ad6-a613-5ff66c6fcb3e
2026-04-01 17:49:52,104 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5bc60ba4-4d7b-4bad-b818-d0abbb497a86
2026-04-01 17:49:52,117 - INFO - Verified VN network id 11 for VN 3fd57262-68f4-4ad6-a613-5ff66c6fcb3e
2026-04-01 17:49:52,117 - INFO - Verifications in API Server for VN ctest-vn-95663756 passed
2026-04-01 17:49:52,117 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3fd57262-68f4-4ad6-a613-5ff66c6fcb3e
2026-04-01 17:49:52,125 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5bc60ba4-4d7b-4bad-b818-d0abbb497a86
2026-04-01 17:49:52,131 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5bc60ba4-4d7b-4bad-b818-d0abbb497a86
2026-04-01 17:49:52,136 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c301aecb-e302-489d-9b4c-03cab0ea4b4e
2026-04-01 17:49:52,146 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52618812:ctest-vn-95663756', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52618812', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4599708361422031574', 'uuid-lslong': '11967014146839399230'}, 'enable': 'true', 'created': '2026-04-01T17:49:49', 'last-modified': '2026-04-01T17:49:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.911543'}
2026-04-01 17:49:52,153 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-01 17:49:52,153 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95663756 passed
2026-04-01 17:49:52,153 - DEBUG - ====Verifying policy data for ctest-vn-95663756 in API_Server ======
2026-04-01 17:49:52,153 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-01 17:49:52,158 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3db96bd2-688c-4493-8241-b8350c0354c9
2026-04-01 17:49:52,167 - DEBUG - Requesting: http://10.0.0.50:8082/project/b2487e2a-c982-4b5a-83ee-3213f4636972
2026-04-01 17:49:52,237 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3fd57262-68f4-4ad6-a613-5ff66c6fcb3e
2026-04-01 17:49:52,245 - DEBUG - ==>Verifying data for policy with id: 0ec9a10e-58cd-49cc-b00b-b76b1111d301, fqn: ['default-domain', 'ctest-TestBasicPolicy-52618812', 'ctest-policy-allow-all-45434508']
2026-04-01 17:49:52,245 - INFO - VN ctest-vn-95663756 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-01 17:49:52,245 - DEBUG - Verifying the vn in opserver
2026-04-01 17:49:52,245 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52618812:ctest-vn-95663756 virtual network link through opserver 10.0.0.50
2026-04-01 17:49:52,245 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-01 17:49:52,553 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-01 17:49:52,613 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52618812:ctest-vn-95663756', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52618812:ctest-vn-95663756?flat'}
2026-04-01 17:49:52,613 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52618812:ctest-vn-95663756 is found in opserver
2026-04-01 17:49:52,621 - DEBUG - Do not have enough data to verify VN in agent
2026-04-01 17:49:52,625 - DEBUG - VRF ids for VN ctest-vn-95663756: {}
2026-04-01 17:49:52,625 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-01 17:49:52,631 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3db96bd2-688c-4493-8241-b8350c0354c9
2026-04-01 17:49:52,642 - DEBUG - Requesting: http://10.0.0.50:8082/project/b2487e2a-c982-4b5a-83ee-3213f4636972
2026-04-01 17:49:52,710 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5ffe3c77-1a5d-4b6e-8803-ed632f93687f
2026-04-01 17:49:52,720 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5ffe3c77-1a5d-4b6e-8803-ed632f93687f
2026-04-01 17:49:52,728 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/70eb22e1-e338-44eb-9cfc-a991a4c33fab
2026-04-01 17:49:52,736 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/70eb22e1-e338-44eb-9cfc-a991a4c33fab
2026-04-01 17:49:52,741 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/3d3fb617-92b5-4250-b1d2-556ebe4bf3a1
2026-04-01 17:49:52,747 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-01 17:49:52,747 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5ffe3c77-1a5d-4b6e-8803-ed632f93687f
2026-04-01 17:49:52,756 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/70eb22e1-e338-44eb-9cfc-a991a4c33fab
2026-04-01 17:49:52,769 - INFO - Verified VN network id 12 for VN 5ffe3c77-1a5d-4b6e-8803-ed632f93687f
2026-04-01 17:49:52,769 - INFO - Verifications in API Server for VN ctest-vn-68953052 passed
2026-04-01 17:49:52,769 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5ffe3c77-1a5d-4b6e-8803-ed632f93687f
2026-04-01 17:49:52,778 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/70eb22e1-e338-44eb-9cfc-a991a4c33fab
2026-04-01 17:49:52,785 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/70eb22e1-e338-44eb-9cfc-a991a4c33fab
2026-04-01 17:49:52,791 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/3d3fb617-92b5-4250-b1d2-556ebe4bf3a1
2026-04-01 17:49:52,801 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52618812:ctest-vn-68953052', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52618812', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6917032559928757102', 'uuid-lslong': '9800938224344066175'}, 'enable': 'true', 'created': '2026-04-01T17:49:50', 'last-modified': '2026-04-01T17:49:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.351685'}
2026-04-01 17:49:52,809 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-01 17:49:52,809 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68953052 passed
2026-04-01 17:49:52,809 - DEBUG - ====Verifying policy data for ctest-vn-68953052 in API_Server ======
2026-04-01 17:49:52,809 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-01 17:49:52,815 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3db96bd2-688c-4493-8241-b8350c0354c9
2026-04-01 17:49:52,824 - DEBUG - Requesting: http://10.0.0.50:8082/project/b2487e2a-c982-4b5a-83ee-3213f4636972
2026-04-01 17:49:52,892 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5ffe3c77-1a5d-4b6e-8803-ed632f93687f
2026-04-01 17:49:52,901 - DEBUG - ==>Verifying data for policy with id: 0ec9a10e-58cd-49cc-b00b-b76b1111d301, fqn: ['default-domain', 'ctest-TestBasicPolicy-52618812', 'ctest-policy-allow-all-45434508']
2026-04-01 17:49:52,901 - INFO - VN ctest-vn-68953052 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-01 17:49:52,901 - DEBUG - Verifying the vn in opserver
2026-04-01 17:49:52,901 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52618812:ctest-vn-68953052 virtual network link through opserver 10.0.0.50
2026-04-01 17:49:52,901 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-01 17:49:52,910 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52618812:ctest-vn-68953052', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52618812:ctest-vn-68953052?flat'}
2026-04-01 17:49:52,910 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52618812:ctest-vn-68953052 is found in opserver
2026-04-01 17:49:52,920 - DEBUG - Do not have enough data to verify VN in agent
2026-04-01 17:49:52,923 - DEBUG - VRF ids for VN ctest-vn-68953052: {}
2026-04-01 17:49:52,990 - DEBUG - Services list from nova: [