2026-01-22 13:47:31,743 - INFO - Domain Default found not creating
2026-01-22 13:47:31,904 - INFO - Project ctest-TestBasicPolicy-55339194 not found, creating it
2026-01-22 13:47:32,353 - INFO - Created Project:ctest-TestBasicPolicy-55339194, ID : 87f4c942-ac7c-4b3f-8d0b-ca45aa440f75
2026-01-22 13:47:33,801 - INFO - ================================================================================
2026-01-22 13:47:33,801 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-22 13:47:33,801 - 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-01-22 13:47:34,054 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.130': '0'}} with
2026-01-22 13:47:34,055 - INFO - Initial checks done. Running the testcase now
2026-01-22 13:47:34,055 - INFO -
2026-01-22 13:47:34,586 - DEBUG - Response for create_network : {'network': {'id': '786955b9-ad00-4b80-8d6e-03bb43b01e1a', 'name': 'ctest-vn-10198740', 'tenant_id': '87f4c942ac7c4b3f8d0bca45aa440f75', 'project_id': '87f4c942ac7c4b3f8d0bca45aa440f75', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55339194', 'ctest-vn-10198740'], 'port_security_enabled': True, 'description': ''}}
2026-01-22 13:47:34,780 - DEBUG - Response for create_subnet : {'subnet': {'id': '354421a9-9103-4fd8-a116-d8868eb96009', 'name': '', 'tenant_id': '87f4c942ac7c4b3f8d0bca45aa440f75', 'network_id': '786955b9-ad00-4b80-8d6e-03bb43b01e1a', 'ip_version': 4, 'cidr': '24.208.143.128/26', 'allocation_pools': [{'start': '24.208.143.130', 'end': '24.208.143.190'}], 'gateway_ip': '24.208.143.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.208.143.130', 'tags': [], 'project_id': '87f4c942ac7c4b3f8d0bca45aa440f75'}}
2026-01-22 13:47:34,797 - INFO - Created VN ctest-vn-10198740
2026-01-22 13:47:34,849 - DEBUG - VN ctest-vn-10198740 UUID is 786955b9-ad00-4b80-8d6e-03bb43b01e1a
2026-01-22 13:47:35,123 - DEBUG - Response for create_network : {'network': {'id': '8505b5b0-eeb7-496b-9981-f1edceb5ade3', 'name': 'ctest-vn-41132816', 'tenant_id': '87f4c942ac7c4b3f8d0bca45aa440f75', 'project_id': '87f4c942ac7c4b3f8d0bca45aa440f75', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55339194', 'ctest-vn-41132816'], 'port_security_enabled': True, 'description': ''}}
2026-01-22 13:47:35,318 - DEBUG - Response for create_subnet : {'subnet': {'id': '7bf2ab35-d0ee-4167-84cc-461625df7104', 'name': '', 'tenant_id': '87f4c942ac7c4b3f8d0bca45aa440f75', 'network_id': '8505b5b0-eeb7-496b-9981-f1edceb5ade3', 'ip_version': 4, 'cidr': '223.122.77.128/26', 'allocation_pools': [{'start': '223.122.77.130', 'end': '223.122.77.190'}], 'gateway_ip': '223.122.77.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '223.122.77.130', 'tags': [], 'project_id': '87f4c942ac7c4b3f8d0bca45aa440f75'}}
2026-01-22 13:47:35,335 - INFO - Created VN ctest-vn-41132816
2026-01-22 13:47:35,389 - DEBUG - VN ctest-vn-41132816 UUID is 8505b5b0-eeb7-496b-9981-f1edceb5ade3
2026-01-22 13:47:35,545 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-55339194:ctest-vn-10198740, 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-55339194:ctest-vn-41132816, 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-01-22 13:47:35,836 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '786955b9-ad00-4b80-8d6e-03bb43b01e1a', 'name': 'ctest-vn-10198740', 'tenant_id': '87f4c942ac7c4b3f8d0bca45aa440f75', 'project_id': '87f4c942ac7c4b3f8d0bca45aa440f75', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['354421a9-9103-4fd8-a116-d8868eb96009'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55339194', 'ctest-vn-10198740'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55339194', 'ctest-policy-allow-all-68558622']], 'subnet_ipam': [{'subnet_cidr': '24.208.143.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-22 13:47:36,065 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8505b5b0-eeb7-496b-9981-f1edceb5ade3', 'name': 'ctest-vn-41132816', 'tenant_id': '87f4c942ac7c4b3f8d0bca45aa440f75', 'project_id': '87f4c942ac7c4b3f8d0bca45aa440f75', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7bf2ab35-d0ee-4167-84cc-461625df7104'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55339194', 'ctest-vn-41132816'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55339194', 'ctest-policy-allow-all-68558622']], 'subnet_ipam': [{'subnet_cidr': '223.122.77.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-22 13:47:36,245 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-22 13:47:36,548 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-22 13:47:36,581 - DEBUG - Requesting: http://10.0.0.50:8082/domain/97d6fd71-e172-4cf1-9c0b-3351b75d6356
2026-01-22 13:47:36,593 - DEBUG - Requesting: http://10.0.0.50:8082/project/87f4c942-ac7c-4b3f-8d0b-ca45aa440f75
2026-01-22 13:47:36,665 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/786955b9-ad00-4b80-8d6e-03bb43b01e1a
2026-01-22 13:47:36,676 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/786955b9-ad00-4b80-8d6e-03bb43b01e1a
2026-01-22 13:47:36,685 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/55e5a5db-a936-42a2-a6fd-d285149c34fb
2026-01-22 13:47:36,693 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/55e5a5db-a936-42a2-a6fd-d285149c34fb
2026-01-22 13:47:36,700 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2c806fc2-b152-4dfe-9442-a47dc260daf3
2026-01-22 13:47:36,707 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-22 13:47:36,707 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/786955b9-ad00-4b80-8d6e-03bb43b01e1a
2026-01-22 13:47:36,718 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/55e5a5db-a936-42a2-a6fd-d285149c34fb
2026-01-22 13:47:36,731 - INFO - Verified VN network id 11 for VN 786955b9-ad00-4b80-8d6e-03bb43b01e1a
2026-01-22 13:47:36,731 - INFO - Verifications in API Server for VN ctest-vn-10198740 passed
2026-01-22 13:47:36,732 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/786955b9-ad00-4b80-8d6e-03bb43b01e1a
2026-01-22 13:47:36,741 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/55e5a5db-a936-42a2-a6fd-d285149c34fb
2026-01-22 13:47:36,748 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/55e5a5db-a936-42a2-a6fd-d285149c34fb
2026-01-22 13:47:36,755 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2c806fc2-b152-4dfe-9442-a47dc260daf3
2026-01-22 13:47:36,768 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55339194:ctest-vn-10198740', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55339194', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8676560413065759616', 'uuid-lslong': '10191087109615394330'}, 'enable': 'true', 'created': '2026-01-22T13:47:34', 'last-modified': '2026-01-22T13:47:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.956552'}
2026-01-22 13:47:36,774 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-22 13:47:36,774 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10198740 passed
2026-01-22 13:47:36,775 - DEBUG - ====Verifying policy data for ctest-vn-10198740 in API_Server ======
2026-01-22 13:47:36,775 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-22 13:47:36,780 - DEBUG - Requesting: http://10.0.0.50:8082/domain/97d6fd71-e172-4cf1-9c0b-3351b75d6356
2026-01-22 13:47:36,790 - DEBUG - Requesting: http://10.0.0.50:8082/project/87f4c942-ac7c-4b3f-8d0b-ca45aa440f75
2026-01-22 13:47:36,860 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/786955b9-ad00-4b80-8d6e-03bb43b01e1a
2026-01-22 13:47:36,868 - DEBUG - ==>Verifying data for policy with id: cf07381b-bca4-47c1-ad7e-24603d0909a1, fqn: ['default-domain', 'ctest-TestBasicPolicy-55339194', 'ctest-policy-allow-all-68558622']
2026-01-22 13:47:36,869 - INFO - VN ctest-vn-10198740 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-22 13:47:36,869 - DEBUG - Verifying the vn in opserver
2026-01-22 13:47:36,869 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55339194:ctest-vn-10198740 virtual network link through opserver 10.0.0.50
2026-01-22 13:47:36,869 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-22 13:47:37,166 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-22 13:47:37,236 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55339194:ctest-vn-10198740', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55339194:ctest-vn-10198740?flat'}
2026-01-22 13:47:37,236 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55339194:ctest-vn-10198740 is found in opserver
2026-01-22 13:47:37,246 - DEBUG - Do not have enough data to verify VN in agent
2026-01-22 13:47:37,251 - DEBUG - VRF ids for VN ctest-vn-10198740: {}
2026-01-22 13:47:37,251 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-22 13:47:37,256 - DEBUG - Requesting: http://10.0.0.50:8082/domain/97d6fd71-e172-4cf1-9c0b-3351b75d6356
2026-01-22 13:47:37,268 - DEBUG - Requesting: http://10.0.0.50:8082/project/87f4c942-ac7c-4b3f-8d0b-ca45aa440f75
2026-01-22 13:47:37,346 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8505b5b0-eeb7-496b-9981-f1edceb5ade3
2026-01-22 13:47:37,357 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8505b5b0-eeb7-496b-9981-f1edceb5ade3
2026-01-22 13:47:37,366 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2c59319c-d645-4223-adda-7d58ea7f7a5f
2026-01-22 13:47:37,374 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2c59319c-d645-4223-adda-7d58ea7f7a5f
2026-01-22 13:47:37,381 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/089b8d8c-132a-4ccc-84ac-4153559ed6bd
2026-01-22 13:47:37,387 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-22 13:47:37,387 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8505b5b0-eeb7-496b-9981-f1edceb5ade3
2026-01-22 13:47:37,396 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2c59319c-d645-4223-adda-7d58ea7f7a5f
2026-01-22 13:47:37,412 - INFO - Verified VN network id 12 for VN 8505b5b0-eeb7-496b-9981-f1edceb5ade3
2026-01-22 13:47:37,412 - INFO - Verifications in API Server for VN ctest-vn-41132816 passed
2026-01-22 13:47:37,412 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8505b5b0-eeb7-496b-9981-f1edceb5ade3
2026-01-22 13:47:37,421 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2c59319c-d645-4223-adda-7d58ea7f7a5f
2026-01-22 13:47:37,428 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2c59319c-d645-4223-adda-7d58ea7f7a5f
2026-01-22 13:47:37,436 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/089b8d8c-132a-4ccc-84ac-4153559ed6bd
2026-01-22 13:47:37,449 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55339194:ctest-vn-41132816', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55339194', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9585267153451829611', 'uuid-lslong': '11061388163476205027'}, 'enable': 'true', 'created': '2026-01-22T13:47:35', 'last-modified': '2026-01-22T13:47:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.408204'}
2026-01-22 13:47:37,456 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-22 13:47:37,456 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41132816 passed
2026-01-22 13:47:37,456 - DEBUG - ====Verifying policy data for ctest-vn-41132816 in API_Server ======
2026-01-22 13:47:37,457 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-22 13:47:37,463 - DEBUG - Requesting: http://10.0.0.50:8082/domain/97d6fd71-e172-4cf1-9c0b-3351b75d6356
2026-01-22 13:47:37,475 - DEBUG - Requesting: http://10.0.0.50:8082/project/87f4c942-ac7c-4b3f-8d0b-ca45aa440f75
2026-01-22 13:47:37,543 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8505b5b0-eeb7-496b-9981-f1edceb5ade3
2026-01-22 13:47:37,552 - DEBUG - ==>Verifying data for policy with id: cf07381b-bca4-47c1-ad7e-24603d0909a1, fqn: ['default-domain', 'ctest-TestBasicPolicy-55339194', 'ctest-policy-allow-all-68558622']
2026-01-22 13:47:37,552 - INFO - VN ctest-vn-41132816 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-22 13:47:37,552 - DEBUG - Verifying the vn in opserver
2026-01-22 13:47:37,552 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55339194:ctest-vn-41132816 virtual network link through opserver 10.0.0.50
2026-01-22 13:47:37,552 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-22 13:47:37,562 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55339194:ctest-vn-41132816', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55339194:ctest-vn-41132816?flat'}
2026-01-22 13:47:37,562 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55339194:ctest-vn-41132816 is found in opserver
2026-01-22 13:47:37,573 - DEBUG - Do not have enough data to verify VN in agent
2026-01-22 13:47:37,577 - DEBUG - VRF ids for VN ctest-vn-41132816: {}
2026-01-22 13:47:37,637 - DEBUG - Services list from nova: [