2026-04-24 12:48:25,075 - INFO - Domain Default found not creating
2026-04-24 12:48:25,303 - INFO - Project ctest-TestBasicPolicy-05304108 not found, creating it
2026-04-24 12:48:25,833 - INFO - Created Project:ctest-TestBasicPolicy-05304108, ID : c72733cd-61be-4fa1-b816-55828a980d7b
2026-04-24 12:48:27,437 - INFO - ================================================================================
2026-04-24 12:48:27,438 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-24 12:48:27,438 - 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-24 12:48:27,703 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-04-24 12:48:27,703 - INFO - Initial checks done. Running the testcase now
2026-04-24 12:48:27,703 - INFO -
2026-04-24 12:48:28,298 - DEBUG - Response for create_network : {'network': {'id': '70d9870b-a59f-481f-90ec-a3d8444994bb', 'name': 'ctest-vn-07612632', 'tenant_id': 'c72733cd61be4fa1b81655828a980d7b', 'project_id': 'c72733cd61be4fa1b81655828a980d7b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05304108', 'ctest-vn-07612632'], 'port_security_enabled': True, 'description': ''}}
2026-04-24 12:48:28,467 - DEBUG - Response for create_subnet : {'subnet': {'id': '5c04ec1f-bd5f-481c-8d56-55c3b446fa56', 'name': '', 'tenant_id': 'c72733cd61be4fa1b81655828a980d7b', 'network_id': '70d9870b-a59f-481f-90ec-a3d8444994bb', 'ip_version': 4, 'cidr': '104.81.37.64/26', 'allocation_pools': [{'start': '104.81.37.66', 'end': '104.81.37.126'}], 'gateway_ip': '104.81.37.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.81.37.66', 'tags': [], 'project_id': 'c72733cd61be4fa1b81655828a980d7b'}}
2026-04-24 12:48:28,491 - INFO - Created VN ctest-vn-07612632
2026-04-24 12:48:28,548 - DEBUG - VN ctest-vn-07612632 UUID is 70d9870b-a59f-481f-90ec-a3d8444994bb
2026-04-24 12:48:28,878 - DEBUG - Response for create_network : {'network': {'id': '872cf6c0-c0d7-4cc9-bbb8-14cd0fffe875', 'name': 'ctest-vn-82887801', 'tenant_id': 'c72733cd61be4fa1b81655828a980d7b', 'project_id': 'c72733cd61be4fa1b81655828a980d7b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05304108', 'ctest-vn-82887801'], 'port_security_enabled': True, 'description': ''}}
2026-04-24 12:48:29,085 - DEBUG - Response for create_subnet : {'subnet': {'id': '10a5ab9a-551c-424b-bea5-031422cf7375', 'name': '', 'tenant_id': 'c72733cd61be4fa1b81655828a980d7b', 'network_id': '872cf6c0-c0d7-4cc9-bbb8-14cd0fffe875', 'ip_version': 4, 'cidr': '108.154.255.0/26', 'allocation_pools': [{'start': '108.154.255.2', 'end': '108.154.255.62'}], 'gateway_ip': '108.154.255.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '108.154.255.2', 'tags': [], 'project_id': 'c72733cd61be4fa1b81655828a980d7b'}}
2026-04-24 12:48:29,107 - INFO - Created VN ctest-vn-82887801
2026-04-24 12:48:29,164 - DEBUG - VN ctest-vn-82887801 UUID is 872cf6c0-c0d7-4cc9-bbb8-14cd0fffe875
2026-04-24 12:48:29,292 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-05304108:ctest-vn-07612632, 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-05304108:ctest-vn-82887801, 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-24 12:48:29,616 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '70d9870b-a59f-481f-90ec-a3d8444994bb', 'name': 'ctest-vn-07612632', 'tenant_id': 'c72733cd61be4fa1b81655828a980d7b', 'project_id': 'c72733cd61be4fa1b81655828a980d7b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5c04ec1f-bd5f-481c-8d56-55c3b446fa56'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05304108', 'ctest-vn-07612632'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05304108', 'ctest-policy-allow-all-77770838']], 'subnet_ipam': [{'subnet_cidr': '104.81.37.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-24 12:48:29,857 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '872cf6c0-c0d7-4cc9-bbb8-14cd0fffe875', 'name': 'ctest-vn-82887801', 'tenant_id': 'c72733cd61be4fa1b81655828a980d7b', 'project_id': 'c72733cd61be4fa1b81655828a980d7b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['10a5ab9a-551c-424b-bea5-031422cf7375'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05304108', 'ctest-vn-82887801'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05304108', 'ctest-policy-allow-all-77770838']], 'subnet_ipam': [{'subnet_cidr': '108.154.255.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-24 12:48:30,023 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-24 12:48:30,322 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-24 12:48:30,364 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9baee0df-b805-487b-b59f-1480aee99557
2026-04-24 12:48:30,381 - DEBUG - Requesting: http://10.0.0.38:8082/project/c72733cd-61be-4fa1-b816-55828a980d7b
2026-04-24 12:48:30,458 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/70d9870b-a59f-481f-90ec-a3d8444994bb
2026-04-24 12:48:30,474 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/70d9870b-a59f-481f-90ec-a3d8444994bb
2026-04-24 12:48:30,487 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/588f8668-2096-497e-b2e1-c7c62adcbaa6
2026-04-24 12:48:30,496 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/588f8668-2096-497e-b2e1-c7c62adcbaa6
2026-04-24 12:48:30,506 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8ca8a76f-f284-4a46-824f-dd35724b66d8
2026-04-24 12:48:30,515 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-24 12:48:30,515 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/70d9870b-a59f-481f-90ec-a3d8444994bb
2026-04-24 12:48:30,526 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/588f8668-2096-497e-b2e1-c7c62adcbaa6
2026-04-24 12:48:30,543 - INFO - Verified VN network id 9 for VN 70d9870b-a59f-481f-90ec-a3d8444994bb
2026-04-24 12:48:30,543 - INFO - Verifications in API Server for VN ctest-vn-07612632 passed
2026-04-24 12:48:30,543 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/70d9870b-a59f-481f-90ec-a3d8444994bb
2026-04-24 12:48:30,554 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/588f8668-2096-497e-b2e1-c7c62adcbaa6
2026-04-24 12:48:30,562 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/588f8668-2096-497e-b2e1-c7c62adcbaa6
2026-04-24 12:48:30,570 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8ca8a76f-f284-4a46-824f-dd35724b66d8
2026-04-24 12:48:30,584 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05304108:ctest-vn-07612632', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05304108', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8131679086287210527', 'uuid-lslong': '10442901785219273915'}, 'enable': 'true', 'created': '2026-04-24T12:48:28', 'last-modified': '2026-04-24T12:48:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.001636'}
2026-04-24 12:48:30,591 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-24 12:48:30,591 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07612632 passed
2026-04-24 12:48:30,591 - DEBUG - ====Verifying policy data for ctest-vn-07612632 in API_Server ======
2026-04-24 12:48:30,591 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-24 12:48:30,598 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9baee0df-b805-487b-b59f-1480aee99557
2026-04-24 12:48:30,612 - DEBUG - Requesting: http://10.0.0.38:8082/project/c72733cd-61be-4fa1-b816-55828a980d7b
2026-04-24 12:48:30,688 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/70d9870b-a59f-481f-90ec-a3d8444994bb
2026-04-24 12:48:30,699 - DEBUG - ==>Verifying data for policy with id: 3e6a7dca-4402-4401-b9a2-795583fd1e7d, fqn: ['default-domain', 'ctest-TestBasicPolicy-05304108', 'ctest-policy-allow-all-77770838']
2026-04-24 12:48:30,699 - INFO - VN ctest-vn-07612632 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-24 12:48:30,699 - DEBUG - Verifying the vn in opserver
2026-04-24 12:48:30,699 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05304108:ctest-vn-07612632 virtual network link through opserver 10.0.0.38
2026-04-24 12:48:30,699 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-24 12:48:30,995 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-24 12:48:31,077 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05304108:ctest-vn-07612632', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05304108:ctest-vn-07612632?flat'}
2026-04-24 12:48:31,077 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05304108:ctest-vn-07612632 is found in opserver
2026-04-24 12:48:31,090 - DEBUG - Do not have enough data to verify VN in agent
2026-04-24 12:48:31,095 - DEBUG - VRF ids for VN ctest-vn-07612632: {}
2026-04-24 12:48:31,095 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-24 12:48:31,102 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9baee0df-b805-487b-b59f-1480aee99557
2026-04-24 12:48:31,115 - DEBUG - Requesting: http://10.0.0.38:8082/project/c72733cd-61be-4fa1-b816-55828a980d7b
2026-04-24 12:48:31,187 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/872cf6c0-c0d7-4cc9-bbb8-14cd0fffe875
2026-04-24 12:48:31,199 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/872cf6c0-c0d7-4cc9-bbb8-14cd0fffe875
2026-04-24 12:48:31,210 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7dcee069-a309-4c42-8dd8-a83e5249a0a9
2026-04-24 12:48:31,218 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7dcee069-a309-4c42-8dd8-a83e5249a0a9
2026-04-24 12:48:31,227 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/18e277ce-c8b5-4652-b888-2e04c4d0758a
2026-04-24 12:48:31,235 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-24 12:48:31,235 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/872cf6c0-c0d7-4cc9-bbb8-14cd0fffe875
2026-04-24 12:48:31,248 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7dcee069-a309-4c42-8dd8-a83e5249a0a9
2026-04-24 12:48:31,265 - INFO - Verified VN network id 10 for VN 872cf6c0-c0d7-4cc9-bbb8-14cd0fffe875
2026-04-24 12:48:31,265 - INFO - Verifications in API Server for VN ctest-vn-82887801 passed
2026-04-24 12:48:31,265 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/872cf6c0-c0d7-4cc9-bbb8-14cd0fffe875
2026-04-24 12:48:31,276 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7dcee069-a309-4c42-8dd8-a83e5249a0a9
2026-04-24 12:48:31,286 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7dcee069-a309-4c42-8dd8-a83e5249a0a9
2026-04-24 12:48:31,296 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/18e277ce-c8b5-4652-b888-2e04c4d0758a
2026-04-24 12:48:31,312 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05304108:ctest-vn-82887801', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05304108', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9740431401825029321', 'uuid-lslong': '13526584351776565365'}, 'enable': 'true', 'created': '2026-04-24T12:48:28', 'last-modified': '2026-04-24T12:48:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.484560'}
2026-04-24 12:48:31,320 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-24 12:48:31,321 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82887801 passed
2026-04-24 12:48:31,321 - DEBUG - ====Verifying policy data for ctest-vn-82887801 in API_Server ======
2026-04-24 12:48:31,321 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-24 12:48:31,328 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9baee0df-b805-487b-b59f-1480aee99557
2026-04-24 12:48:31,341 - DEBUG - Requesting: http://10.0.0.38:8082/project/c72733cd-61be-4fa1-b816-55828a980d7b
2026-04-24 12:48:31,415 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/872cf6c0-c0d7-4cc9-bbb8-14cd0fffe875
2026-04-24 12:48:31,425 - DEBUG - ==>Verifying data for policy with id: 3e6a7dca-4402-4401-b9a2-795583fd1e7d, fqn: ['default-domain', 'ctest-TestBasicPolicy-05304108', 'ctest-policy-allow-all-77770838']
2026-04-24 12:48:31,425 - INFO - VN ctest-vn-82887801 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-24 12:48:31,425 - DEBUG - Verifying the vn in opserver
2026-04-24 12:48:31,425 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05304108:ctest-vn-82887801 virtual network link through opserver 10.0.0.38
2026-04-24 12:48:31,425 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-24 12:48:31,437 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05304108:ctest-vn-82887801', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05304108:ctest-vn-82887801?flat'}
2026-04-24 12:48:31,437 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05304108:ctest-vn-82887801 is found in opserver
2026-04-24 12:48:31,448 - DEBUG - Do not have enough data to verify VN in agent
2026-04-24 12:48:31,454 - DEBUG - VRF ids for VN ctest-vn-82887801: {}
2026-04-24 12:48:31,523 - DEBUG - Services list from nova: [