2025-10-22 16:16:48,124 - INFO - Reading existing Domain with UUID 46535b60-2514-4548-ad8b-3c79fd57b8eb
2025-10-22 16:16:48,136 - INFO - Using existing domain ['admin_domain'](46535b60-2514-4548-ad8b-3c79fd57b8eb)
2025-10-22 16:16:48,330 - INFO - Project ctest-TestBasicPolicy-66728683 not found, creating it
2025-10-22 16:16:48,840 - INFO - Created Project:ctest-TestBasicPolicy-66728683, ID : 0aafd8f2-159f-466a-a49c-141e63e78599
2025-10-22 16:16:50,517 - INFO - ================================================================================
2025-10-22 16:16:50,517 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-22 16:16:50,517 - 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-22 16:16:50,906 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.0.0.242': '0'}} with
2025-10-22 16:16:50,906 - INFO - Initial checks done. Running the testcase now
2025-10-22 16:16:50,907 - INFO -
2025-10-22 16:16:51,706 - DEBUG - Response for create_network : {'network': {'id': 'e1e3397f-13d3-4eb8-b692-e523d26792a0', 'name': 'ctest-vn-79085875', 'tenant_id': '0aafd8f2159f466aa49c141e63e78599', 'project_id': '0aafd8f2159f466aa49c141e63e78599', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-66728683', 'ctest-vn-79085875'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-10-22 16:16:51,954 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e1a489c9-306b-4ea4-9532-9787c6b5d6ac', 'name': '', 'tenant_id': '0aafd8f2159f466aa49c141e63e78599', 'network_id': 'e1e3397f-13d3-4eb8-b692-e523d26792a0', 'ip_version': 4, 'cidr': '205.1.155.64/26', 'allocation_pools': [{'start': '205.1.155.66', 'end': '205.1.155.126'}], 'gateway_ip': '205.1.155.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-22T16:16:51.846051', 'updated_at': '2025-10-22T16:16:51.846051', 'dns_server_address': '205.1.155.66', 'tags': [], 'project_id': '0aafd8f2159f466aa49c141e63e78599'}}
2025-10-22 16:16:52,019 - INFO - Created VN ctest-vn-79085875
2025-10-22 16:16:52,073 - DEBUG - VN ctest-vn-79085875 UUID is e1e3397f-13d3-4eb8-b692-e523d26792a0
2025-10-22 16:16:52,579 - DEBUG - Response for create_network : {'network': {'id': '67865f55-36e4-4917-9942-3b79702080b4', 'name': 'ctest-vn-47630703', 'tenant_id': '0aafd8f2159f466aa49c141e63e78599', 'project_id': '0aafd8f2159f466aa49c141e63e78599', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-66728683', 'ctest-vn-47630703'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-10-22 16:16:52,830 - DEBUG - Response for create_subnet : {'subnet': {'id': '6e53c59b-f7b1-45ff-88fd-c236004e3e70', 'name': '', 'tenant_id': '0aafd8f2159f466aa49c141e63e78599', 'network_id': '67865f55-36e4-4917-9942-3b79702080b4', 'ip_version': 4, 'cidr': '106.32.186.128/26', 'allocation_pools': [{'start': '106.32.186.130', 'end': '106.32.186.190'}], 'gateway_ip': '106.32.186.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-22T16:16:52.727959', 'updated_at': '2025-10-22T16:16:52.727959', 'dns_server_address': '106.32.186.130', 'tags': [], 'project_id': '0aafd8f2159f466aa49c141e63e78599'}}
2025-10-22 16:16:52,895 - INFO - Created VN ctest-vn-47630703
2025-10-22 16:16:52,949 - DEBUG - VN ctest-vn-47630703 UUID is 67865f55-36e4-4917-9942-3b79702080b4
2025-10-22 16:16:53,165 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-66728683:ctest-vn-79085875, 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-66728683:ctest-vn-47630703, 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-22 16:16:53,572 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e1e3397f-13d3-4eb8-b692-e523d26792a0', 'name': 'ctest-vn-79085875', 'tenant_id': '0aafd8f2159f466aa49c141e63e78599', 'project_id': '0aafd8f2159f466aa49c141e63e78599', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e1a489c9-306b-4ea4-9532-9787c6b5d6ac'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-66728683', 'ctest-vn-79085875'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-66728683', 'ctest-policy-allow-all-98271227']], 'subnet_ipam': [{'subnet_cidr': '205.1.155.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-22T16:16:51.624975', 'updated_at': '2025-10-22T16:16:51.861027'}}
2025-10-22 16:16:53,929 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '67865f55-36e4-4917-9942-3b79702080b4', 'name': 'ctest-vn-47630703', 'tenant_id': '0aafd8f2159f466aa49c141e63e78599', 'project_id': '0aafd8f2159f466aa49c141e63e78599', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6e53c59b-f7b1-45ff-88fd-c236004e3e70'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-66728683', 'ctest-vn-47630703'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-66728683', 'ctest-policy-allow-all-98271227']], 'subnet_ipam': [{'subnet_cidr': '106.32.186.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-22T16:16:52.505112', 'updated_at': '2025-10-22T16:16:52.742706'}}
2025-10-22 16:16:54,137 - DEBUG - Requesting: https://10.0.0.242:8082/domains
2025-10-22 16:16:54,483 - DEBUG - Requesting: https://10.0.0.242:8082/domains
2025-10-22 16:16:54,561 - DEBUG - Requesting: https://10.0.0.242:8082/domain/46535b60-2514-4548-ad8b-3c79fd57b8eb
2025-10-22 16:16:54,618 - DEBUG - Requesting: https://10.0.0.242:8082/project/0aafd8f2-159f-466a-a49c-141e63e78599
2025-10-22 16:16:54,694 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/e1e3397f-13d3-4eb8-b692-e523d26792a0
2025-10-22 16:16:54,750 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/e1e3397f-13d3-4eb8-b692-e523d26792a0
2025-10-22 16:16:54,806 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/cc4beba7-f34c-4d64-960c-72d8bdbfd77f
2025-10-22 16:16:54,862 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/cc4beba7-f34c-4d64-960c-72d8bdbfd77f
2025-10-22 16:16:54,914 - DEBUG - Requesting: https://10.0.0.242:8082/route-target/03795834-2185-4860-87e9-febda68153f6
2025-10-22 16:16:54,965 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 16:16:54,966 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/e1e3397f-13d3-4eb8-b692-e523d26792a0
2025-10-22 16:16:55,022 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/cc4beba7-f34c-4d64-960c-72d8bdbfd77f
2025-10-22 16:16:55,089 - INFO - Verified VN network id 11 for VN e1e3397f-13d3-4eb8-b692-e523d26792a0
2025-10-22 16:16:55,090 - INFO - Verifications in API Server for VN ctest-vn-79085875 passed
2025-10-22 16:16:55,090 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/e1e3397f-13d3-4eb8-b692-e523d26792a0
2025-10-22 16:16:55,146 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/cc4beba7-f34c-4d64-960c-72d8bdbfd77f
2025-10-22 16:16:55,202 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/cc4beba7-f34c-4d64-960c-72d8bdbfd77f
2025-10-22 16:16:55,254 - DEBUG - Requesting: https://10.0.0.242:8082/route-target/03795834-2185-4860-87e9-febda68153f6
2025-10-22 16:16:55,354 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-66728683:ctest-vn-79085875', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66728683', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16276916696203349688', 'uuid-lslong': '13155829403519259296'}, 'enable': 'true', 'created': '2025-10-22T16:16:51', 'last-modified': '2025-10-22T16:16:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.813539'}
2025-10-22 16:16:55,407 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 16:16:55,407 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79085875 passed
2025-10-22 16:16:55,407 - DEBUG - ====Verifying policy data for ctest-vn-79085875 in API_Server ======
2025-10-22 16:16:55,407 - DEBUG - Requesting: https://10.0.0.242:8082/domains
2025-10-22 16:16:55,461 - DEBUG - Requesting: https://10.0.0.242:8082/domain/46535b60-2514-4548-ad8b-3c79fd57b8eb
2025-10-22 16:16:55,518 - DEBUG - Requesting: https://10.0.0.242:8082/project/0aafd8f2-159f-466a-a49c-141e63e78599
2025-10-22 16:16:55,590 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/e1e3397f-13d3-4eb8-b692-e523d26792a0
2025-10-22 16:16:55,646 - DEBUG - ==>Verifying data for policy with id: 73c257fa-b6a4-4061-b168-226d91dd8be6, fqn: ['admin_domain', 'ctest-TestBasicPolicy-66728683', 'ctest-policy-allow-all-98271227']
2025-10-22 16:16:55,646 - INFO - VN ctest-vn-79085875 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 16:16:55,647 - DEBUG - Verifying the vn in opserver
2025-10-22 16:16:55,647 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-66728683:ctest-vn-79085875 virtual network link through opserver 10.0.0.242
2025-10-22 16:16:55,647 - DEBUG - Requesting: https://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-22 16:16:55,989 - DEBUG - Requesting: https://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-22 16:16:56,102 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-66728683:ctest-vn-79085875', 'href': 'https://10.0.0.242:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-66728683:ctest-vn-79085875?flat'}
2025-10-22 16:16:56,102 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-66728683:ctest-vn-79085875 is found in opserver
2025-10-22 16:16:56,201 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 16:16:56,253 - DEBUG - VRF ids for VN ctest-vn-79085875: {}
2025-10-22 16:16:56,253 - DEBUG - Requesting: https://10.0.0.242:8082/domains
2025-10-22 16:16:56,305 - DEBUG - Requesting: https://10.0.0.242:8082/domain/46535b60-2514-4548-ad8b-3c79fd57b8eb
2025-10-22 16:16:56,362 - DEBUG - Requesting: https://10.0.0.242:8082/project/0aafd8f2-159f-466a-a49c-141e63e78599
2025-10-22 16:16:56,442 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/67865f55-36e4-4917-9942-3b79702080b4
2025-10-22 16:16:56,498 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/67865f55-36e4-4917-9942-3b79702080b4
2025-10-22 16:16:56,558 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/0c04baf2-a1ac-4791-8dcd-d4bb15141ee0
2025-10-22 16:16:56,614 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/0c04baf2-a1ac-4791-8dcd-d4bb15141ee0
2025-10-22 16:16:56,666 - DEBUG - Requesting: https://10.0.0.242:8082/route-target/91e9268b-5140-4458-bc87-b6f15a1ebae8
2025-10-22 16:16:56,717 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 16:16:56,718 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/67865f55-36e4-4917-9942-3b79702080b4
2025-10-22 16:16:56,771 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/0c04baf2-a1ac-4791-8dcd-d4bb15141ee0
2025-10-22 16:16:56,835 - INFO - Verified VN network id 12 for VN 67865f55-36e4-4917-9942-3b79702080b4
2025-10-22 16:16:56,835 - INFO - Verifications in API Server for VN ctest-vn-47630703 passed
2025-10-22 16:16:56,835 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/67865f55-36e4-4917-9942-3b79702080b4
2025-10-22 16:16:56,894 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/0c04baf2-a1ac-4791-8dcd-d4bb15141ee0
2025-10-22 16:16:56,946 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/0c04baf2-a1ac-4791-8dcd-d4bb15141ee0
2025-10-22 16:16:57,006 - DEBUG - Requesting: https://10.0.0.242:8082/route-target/91e9268b-5140-4458-bc87-b6f15a1ebae8
2025-10-22 16:16:57,110 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-66728683:ctest-vn-47630703', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66728683', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7459754652383594775', 'uuid-lslong': '11043454629024137396'}, 'enable': 'true', 'created': '2025-10-22T16:16:52', 'last-modified': '2025-10-22T16:16:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.215391'}
2025-10-22 16:16:57,158 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 16:16:57,158 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47630703 passed
2025-10-22 16:16:57,159 - DEBUG - ====Verifying policy data for ctest-vn-47630703 in API_Server ======
2025-10-22 16:16:57,159 - DEBUG - Requesting: https://10.0.0.242:8082/domains
2025-10-22 16:16:57,213 - DEBUG - Requesting: https://10.0.0.242:8082/domain/46535b60-2514-4548-ad8b-3c79fd57b8eb
2025-10-22 16:16:57,274 - DEBUG - Requesting: https://10.0.0.242:8082/project/0aafd8f2-159f-466a-a49c-141e63e78599
2025-10-22 16:16:57,350 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/67865f55-36e4-4917-9942-3b79702080b4
2025-10-22 16:16:57,410 - DEBUG - ==>Verifying data for policy with id: 73c257fa-b6a4-4061-b168-226d91dd8be6, fqn: ['admin_domain', 'ctest-TestBasicPolicy-66728683', 'ctest-policy-allow-all-98271227']
2025-10-22 16:16:57,410 - INFO - VN ctest-vn-47630703 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 16:16:57,410 - DEBUG - Verifying the vn in opserver
2025-10-22 16:16:57,411 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-66728683:ctest-vn-47630703 virtual network link through opserver 10.0.0.242
2025-10-22 16:16:57,411 - DEBUG - Requesting: https://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-22 16:16:57,465 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-66728683:ctest-vn-47630703', 'href': 'https://10.0.0.242:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-66728683:ctest-vn-47630703?flat'}
2025-10-22 16:16:57,465 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-66728683:ctest-vn-47630703 is found in opserver
2025-10-22 16:16:57,569 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 16:16:57,617 - DEBUG - VRF ids for VN ctest-vn-47630703: {}
2025-10-22 16:16:57,685 - DEBUG - Services list from nova: [