2025-10-09 10:33:30,039 - INFO - Reading existing Domain with UUID dfa458d1-aaf5-4c71-9ede-e49be62ab991
2025-10-09 10:33:30,050 - INFO - Using existing domain ['admin_domain'](dfa458d1-aaf5-4c71-9ede-e49be62ab991)
2025-10-09 10:33:30,267 - INFO - Project ctest-TestBasicPolicy-64599488 not found, creating it
2025-10-09 10:33:30,745 - INFO - Created Project:ctest-TestBasicPolicy-64599488, ID : 8052a03d-135e-41e9-8e90-d99115908fa5
2025-10-09 10:33:32,463 - INFO - ================================================================================
2025-10-09 10:33:32,464 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-09 10:33:32,464 - 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
2025-10-09 10:33:32,861 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.0.0.33': '0'}} with
2025-10-09 10:33:32,861 - INFO - Initial checks done. Running the testcase now
2025-10-09 10:33:32,861 - INFO -
2025-10-09 10:33:33,680 - DEBUG - Response for create_network : {'network': {'id': '74ae0c86-782e-42db-b0a9-c84c1db05623', 'name': 'ctest-vn-10803880', 'tenant_id': '8052a03d135e41e98e90d99115908fa5', 'project_id': '8052a03d135e41e98e90d99115908fa5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-64599488', 'ctest-vn-10803880'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-10-09 10:33:33,940 - DEBUG - Response for create_subnet : {'subnet': {'id': '63d09f82-3519-4241-9503-ebc91ef6819c', 'name': '', 'tenant_id': '8052a03d135e41e98e90d99115908fa5', 'network_id': '74ae0c86-782e-42db-b0a9-c84c1db05623', 'ip_version': 4, 'cidr': '64.134.232.128/26', 'allocation_pools': [{'start': '64.134.232.130', 'end': '64.134.232.190'}], 'gateway_ip': '64.134.232.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-09T10:33:33.841584', 'updated_at': '2025-10-09T10:33:33.841584', 'dns_server_address': '64.134.232.130', 'tags': [], 'project_id': '8052a03d135e41e98e90d99115908fa5'}}
2025-10-09 10:33:34,005 - INFO - Created VN ctest-vn-10803880
2025-10-09 10:33:34,063 - DEBUG - VN ctest-vn-10803880 UUID is 74ae0c86-782e-42db-b0a9-c84c1db05623
2025-10-09 10:33:34,543 - DEBUG - Response for create_network : {'network': {'id': 'be27253b-7fc9-449f-85b2-baaff3546293', 'name': 'ctest-vn-92527430', 'tenant_id': '8052a03d135e41e98e90d99115908fa5', 'project_id': '8052a03d135e41e98e90d99115908fa5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-64599488', 'ctest-vn-92527430'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-10-09 10:33:34,747 - DEBUG - Response for create_subnet : {'subnet': {'id': '14a72c6e-30f3-4fb9-b661-d9e28a6b1de1', 'name': '', 'tenant_id': '8052a03d135e41e98e90d99115908fa5', 'network_id': 'be27253b-7fc9-449f-85b2-baaff3546293', 'ip_version': 4, 'cidr': '68.131.2.0/26', 'allocation_pools': [{'start': '68.131.2.2', 'end': '68.131.2.62'}], 'gateway_ip': '68.131.2.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-09T10:33:34.649609', 'updated_at': '2025-10-09T10:33:34.649609', 'dns_server_address': '68.131.2.2', 'tags': [], 'project_id': '8052a03d135e41e98e90d99115908fa5'}}
2025-10-09 10:33:34,814 - INFO - Created VN ctest-vn-92527430
2025-10-09 10:33:34,867 - DEBUG - VN ctest-vn-92527430 UUID is be27253b-7fc9-449f-85b2-baaff3546293
2025-10-09 10:33:35,082 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-64599488:ctest-vn-10803880, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-64599488:ctest-vn-92527430, 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]
2025-10-09 10:33:35,474 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '74ae0c86-782e-42db-b0a9-c84c1db05623', 'name': 'ctest-vn-10803880', 'tenant_id': '8052a03d135e41e98e90d99115908fa5', 'project_id': '8052a03d135e41e98e90d99115908fa5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['63d09f82-3519-4241-9503-ebc91ef6819c'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-64599488', 'ctest-vn-10803880'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-64599488', 'ctest-policy-allow-all-06588189']], 'subnet_ipam': [{'subnet_cidr': '64.134.232.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-09T10:33:33.593528', 'updated_at': '2025-10-09T10:33:33.856739'}}
2025-10-09 10:33:35,810 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'be27253b-7fc9-449f-85b2-baaff3546293', 'name': 'ctest-vn-92527430', 'tenant_id': '8052a03d135e41e98e90d99115908fa5', 'project_id': '8052a03d135e41e98e90d99115908fa5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['14a72c6e-30f3-4fb9-b661-d9e28a6b1de1'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-64599488', 'ctest-vn-92527430'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-64599488', 'ctest-policy-allow-all-06588189']], 'subnet_ipam': [{'subnet_cidr': '68.131.2.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-09T10:33:34.471329', 'updated_at': '2025-10-09T10:33:34.663025'}}
2025-10-09 10:33:35,983 - DEBUG - Requesting: https://10.0.0.33:8082/domains
2025-10-09 10:33:36,329 - DEBUG - Requesting: https://10.0.0.33:8082/domains
2025-10-09 10:33:36,419 - DEBUG - Requesting: https://10.0.0.33:8082/domain/dfa458d1-aaf5-4c71-9ede-e49be62ab991
2025-10-09 10:33:36,480 - DEBUG - Requesting: https://10.0.0.33:8082/project/8052a03d-135e-41e9-8e90-d99115908fa5
2025-10-09 10:33:36,568 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/74ae0c86-782e-42db-b0a9-c84c1db05623
2025-10-09 10:33:36,625 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/74ae0c86-782e-42db-b0a9-c84c1db05623
2025-10-09 10:33:36,680 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/d3db9275-f435-488b-b7e7-e9f503c0b2bc
2025-10-09 10:33:36,736 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/d3db9275-f435-488b-b7e7-e9f503c0b2bc
2025-10-09 10:33:36,788 - DEBUG - Requesting: https://10.0.0.33:8082/route-target/7cfd91c3-01e8-4deb-96ac-293f25fcd3e2
2025-10-09 10:33:36,840 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 10:33:36,840 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/74ae0c86-782e-42db-b0a9-c84c1db05623
2025-10-09 10:33:36,897 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/d3db9275-f435-488b-b7e7-e9f503c0b2bc
2025-10-09 10:33:36,964 - INFO - Verified VN network id 11 for VN 74ae0c86-782e-42db-b0a9-c84c1db05623
2025-10-09 10:33:36,964 - INFO - Verifications in API Server for VN ctest-vn-10803880 passed
2025-10-09 10:33:36,964 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/74ae0c86-782e-42db-b0a9-c84c1db05623
2025-10-09 10:33:37,017 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/d3db9275-f435-488b-b7e7-e9f503c0b2bc
2025-10-09 10:33:37,076 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/d3db9275-f435-488b-b7e7-e9f503c0b2bc
2025-10-09 10:33:37,136 - DEBUG - Requesting: https://10.0.0.33:8082/route-target/7cfd91c3-01e8-4deb-96ac-293f25fcd3e2
2025-10-09 10:33:37,240 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-64599488:ctest-vn-10803880', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64599488', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8407671326028743387', 'uuid-lslong': '12729926050980582947'}, 'enable': 'true', 'created': '2025-10-09T10:33:33', 'last-modified': '2025-10-09T10:33:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.790911'}
2025-10-09 10:33:37,293 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 10:33:37,293 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10803880 passed
2025-10-09 10:33:37,293 - DEBUG - ====Verifying policy data for ctest-vn-10803880 in API_Server ======
2025-10-09 10:33:37,293 - DEBUG - Requesting: https://10.0.0.33:8082/domains
2025-10-09 10:33:37,344 - DEBUG - Requesting: https://10.0.0.33:8082/domain/dfa458d1-aaf5-4c71-9ede-e49be62ab991
2025-10-09 10:33:37,400 - DEBUG - Requesting: https://10.0.0.33:8082/project/8052a03d-135e-41e9-8e90-d99115908fa5
2025-10-09 10:33:37,480 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/74ae0c86-782e-42db-b0a9-c84c1db05623
2025-10-09 10:33:37,537 - DEBUG - ==>Verifying data for policy with id: b42c6f92-d836-43e9-9996-36cdcbd12915, fqn: ['admin_domain', 'ctest-TestBasicPolicy-64599488', 'ctest-policy-allow-all-06588189']
2025-10-09 10:33:37,537 - INFO - VN ctest-vn-10803880 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 10:33:37,537 - DEBUG - Verifying the vn in opserver
2025-10-09 10:33:37,537 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-64599488:ctest-vn-10803880 virtual network link through opserver 10.0.0.33
2025-10-09 10:33:37,537 - DEBUG - Requesting: https://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-09 10:33:37,880 - DEBUG - Requesting: https://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-09 10:33:37,999 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-64599488:ctest-vn-10803880', 'href': 'https://10.0.0.33:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-64599488:ctest-vn-10803880?flat'}
2025-10-09 10:33:37,999 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-64599488:ctest-vn-10803880 is found in opserver
2025-10-09 10:33:38,103 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 10:33:38,151 - DEBUG - VRF ids for VN ctest-vn-10803880: {}
2025-10-09 10:33:38,151 - DEBUG - Requesting: https://10.0.0.33:8082/domains
2025-10-09 10:33:38,203 - DEBUG - Requesting: https://10.0.0.33:8082/domain/dfa458d1-aaf5-4c71-9ede-e49be62ab991
2025-10-09 10:33:38,260 - DEBUG - Requesting: https://10.0.0.33:8082/project/8052a03d-135e-41e9-8e90-d99115908fa5
2025-10-09 10:33:38,344 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/be27253b-7fc9-449f-85b2-baaff3546293
2025-10-09 10:33:38,401 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/be27253b-7fc9-449f-85b2-baaff3546293
2025-10-09 10:33:38,456 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/971feb4c-bec6-45e3-9d9c-439c713b3ed6
2025-10-09 10:33:38,508 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/971feb4c-bec6-45e3-9d9c-439c713b3ed6
2025-10-09 10:33:38,564 - DEBUG - Requesting: https://10.0.0.33:8082/route-target/832b7f16-ad08-4dda-afe6-9adbe28a068e
2025-10-09 10:33:38,616 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 10:33:38,616 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/be27253b-7fc9-449f-85b2-baaff3546293
2025-10-09 10:33:38,673 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/971feb4c-bec6-45e3-9d9c-439c713b3ed6
2025-10-09 10:33:38,736 - INFO - Verified VN network id 12 for VN be27253b-7fc9-449f-85b2-baaff3546293
2025-10-09 10:33:38,736 - INFO - Verifications in API Server for VN ctest-vn-92527430 passed
2025-10-09 10:33:38,736 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/be27253b-7fc9-449f-85b2-baaff3546293
2025-10-09 10:33:38,792 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/971feb4c-bec6-45e3-9d9c-439c713b3ed6
2025-10-09 10:33:38,848 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/971feb4c-bec6-45e3-9d9c-439c713b3ed6
2025-10-09 10:33:38,910 - DEBUG - Requesting: https://10.0.0.33:8082/route-target/832b7f16-ad08-4dda-afe6-9adbe28a068e
2025-10-09 10:33:39,017 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-64599488:ctest-vn-92527430', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64599488', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13701961328775218335', 'uuid-lslong': '9633967817763349139'}, 'enable': 'true', 'created': '2025-10-09T10:33:34', 'last-modified': '2025-10-09T10:33:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.225380'}
2025-10-09 10:33:39,072 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 10:33:39,073 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92527430 passed
2025-10-09 10:33:39,073 - DEBUG - ====Verifying policy data for ctest-vn-92527430 in API_Server ======
2025-10-09 10:33:39,073 - DEBUG - Requesting: https://10.0.0.33:8082/domains
2025-10-09 10:33:39,127 - DEBUG - Requesting: https://10.0.0.33:8082/domain/dfa458d1-aaf5-4c71-9ede-e49be62ab991
2025-10-09 10:33:39,184 - DEBUG - Requesting: https://10.0.0.33:8082/project/8052a03d-135e-41e9-8e90-d99115908fa5
2025-10-09 10:33:39,260 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/be27253b-7fc9-449f-85b2-baaff3546293
2025-10-09 10:33:39,317 - DEBUG - ==>Verifying data for policy with id: b42c6f92-d836-43e9-9996-36cdcbd12915, fqn: ['admin_domain', 'ctest-TestBasicPolicy-64599488', 'ctest-policy-allow-all-06588189']
2025-10-09 10:33:39,317 - INFO - VN ctest-vn-92527430 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 10:33:39,317 - DEBUG - Verifying the vn in opserver
2025-10-09 10:33:39,317 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-64599488:ctest-vn-92527430 virtual network link through opserver 10.0.0.33
2025-10-09 10:33:39,317 - DEBUG - Requesting: https://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-09 10:33:39,375 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-64599488:ctest-vn-92527430', 'href': 'https://10.0.0.33:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-64599488:ctest-vn-92527430?flat'}
2025-10-09 10:33:39,375 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-64599488:ctest-vn-92527430 is found in opserver
2025-10-09 10:33:39,479 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 10:33:39,531 - DEBUG - VRF ids for VN ctest-vn-92527430: {}
2025-10-09 10:33:39,600 - DEBUG - Services list from nova: [