2025-10-20 16:37:30,995 - INFO - Reading existing Domain with UUID d63b8345-8de7-4e97-94d5-a56d8ff33dd0
2025-10-20 16:37:31,006 - INFO - Using existing domain ['admin_domain'](d63b8345-8de7-4e97-94d5-a56d8ff33dd0)
2025-10-20 16:37:31,199 - INFO - Project ctest-TestBasicPolicy-86523354 not found, creating it
2025-10-20 16:37:31,722 - INFO - Created Project:ctest-TestBasicPolicy-86523354, ID : 8a1cfe2c-7032-4de8-9efe-a64c4d621c7c
2025-10-20 16:37:33,428 - INFO - ================================================================================
2025-10-20 16:37:33,428 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-20 16:37:33,428 - 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-20 16:37:33,819 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.0.0.22': '0'}} with
2025-10-20 16:37:33,820 - INFO - Initial checks done. Running the testcase now
2025-10-20 16:37:33,820 - INFO -
2025-10-20 16:37:34,536 - DEBUG - Response for create_network : {'network': {'id': '60a34a3b-b658-4dcf-b643-68d28ee0caa7', 'name': 'ctest-vn-86027194', 'tenant_id': '8a1cfe2c70324de89efea64c4d621c7c', 'project_id': '8a1cfe2c70324de89efea64c4d621c7c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-86523354', 'ctest-vn-86027194'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-10-20 16:37:34,743 - DEBUG - Response for create_subnet : {'subnet': {'id': '72a45355-3821-458e-9077-622460ab9097', 'name': '', 'tenant_id': '8a1cfe2c70324de89efea64c4d621c7c', 'network_id': '60a34a3b-b658-4dcf-b643-68d28ee0caa7', 'ip_version': 4, 'cidr': '117.88.32.192/26', 'allocation_pools': [{'start': '117.88.32.194', 'end': '117.88.32.254'}], 'gateway_ip': '117.88.32.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-20T16:37:34.631142', 'updated_at': '2025-10-20T16:37:34.631142', 'dns_server_address': '117.88.32.194', 'tags': [], 'project_id': '8a1cfe2c70324de89efea64c4d621c7c'}}
2025-10-20 16:37:34,808 - INFO - Created VN ctest-vn-86027194
2025-10-20 16:37:34,867 - DEBUG - VN ctest-vn-86027194 UUID is 60a34a3b-b658-4dcf-b643-68d28ee0caa7
2025-10-20 16:37:35,365 - DEBUG - Response for create_network : {'network': {'id': '01936bbe-3234-4468-b88c-5144d09764ee', 'name': 'ctest-vn-54047102', 'tenant_id': '8a1cfe2c70324de89efea64c4d621c7c', 'project_id': '8a1cfe2c70324de89efea64c4d621c7c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-86523354', 'ctest-vn-54047102'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-10-20 16:37:35,619 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ee85a79b-80ea-4e0d-a587-200e61e1da1c', 'name': '', 'tenant_id': '8a1cfe2c70324de89efea64c4d621c7c', 'network_id': '01936bbe-3234-4468-b88c-5144d09764ee', 'ip_version': 4, 'cidr': '96.220.68.0/26', 'allocation_pools': [{'start': '96.220.68.2', 'end': '96.220.68.62'}], 'gateway_ip': '96.220.68.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-20T16:37:35.518516', 'updated_at': '2025-10-20T16:37:35.518516', 'dns_server_address': '96.220.68.2', 'tags': [], 'project_id': '8a1cfe2c70324de89efea64c4d621c7c'}}
2025-10-20 16:37:35,684 - INFO - Created VN ctest-vn-54047102
2025-10-20 16:37:35,746 - DEBUG - VN ctest-vn-54047102 UUID is 01936bbe-3234-4468-b88c-5144d09764ee
2025-10-20 16:37:35,958 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-86523354:ctest-vn-86027194, 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-86523354:ctest-vn-54047102, 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-20 16:37:36,362 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '60a34a3b-b658-4dcf-b643-68d28ee0caa7', 'name': 'ctest-vn-86027194', 'tenant_id': '8a1cfe2c70324de89efea64c4d621c7c', 'project_id': '8a1cfe2c70324de89efea64c4d621c7c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['72a45355-3821-458e-9077-622460ab9097'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-86523354', 'ctest-vn-86027194'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-86523354', 'ctest-policy-allow-all-07451488']], 'subnet_ipam': [{'subnet_cidr': '117.88.32.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-20T16:37:34.455217', 'updated_at': '2025-10-20T16:37:34.647107'}}
2025-10-20 16:37:36,698 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '01936bbe-3234-4468-b88c-5144d09764ee', 'name': 'ctest-vn-54047102', 'tenant_id': '8a1cfe2c70324de89efea64c4d621c7c', 'project_id': '8a1cfe2c70324de89efea64c4d621c7c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ee85a79b-80ea-4e0d-a587-200e61e1da1c'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-86523354', 'ctest-vn-54047102'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-86523354', 'ctest-policy-allow-all-07451488']], 'subnet_ipam': [{'subnet_cidr': '96.220.68.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-20T16:37:35.289242', 'updated_at': '2025-10-20T16:37:35.531926'}}
2025-10-20 16:37:36,874 - DEBUG - Requesting: https://10.0.0.22:8082/domains
2025-10-20 16:37:37,217 - DEBUG - Requesting: https://10.0.0.22:8082/domains
2025-10-20 16:37:37,295 - DEBUG - Requesting: https://10.0.0.22:8082/domain/d63b8345-8de7-4e97-94d5-a56d8ff33dd0
2025-10-20 16:37:37,355 - DEBUG - Requesting: https://10.0.0.22:8082/project/8a1cfe2c-7032-4de8-9efe-a64c4d621c7c
2025-10-20 16:37:37,435 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/60a34a3b-b658-4dcf-b643-68d28ee0caa7
2025-10-20 16:37:37,492 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/60a34a3b-b658-4dcf-b643-68d28ee0caa7
2025-10-20 16:37:37,548 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/8f785882-f149-4573-a646-d6998b358a30
2025-10-20 16:37:37,599 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/8f785882-f149-4573-a646-d6998b358a30
2025-10-20 16:37:37,655 - DEBUG - Requesting: https://10.0.0.22:8082/route-target/470d3477-5d7f-4e07-9be4-1df08ac74c42
2025-10-20 16:37:37,707 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-20 16:37:37,707 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/60a34a3b-b658-4dcf-b643-68d28ee0caa7
2025-10-20 16:37:37,764 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/8f785882-f149-4573-a646-d6998b358a30
2025-10-20 16:37:37,829 - INFO - Verified VN network id 11 for VN 60a34a3b-b658-4dcf-b643-68d28ee0caa7
2025-10-20 16:37:37,829 - INFO - Verifications in API Server for VN ctest-vn-86027194 passed
2025-10-20 16:37:37,829 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/60a34a3b-b658-4dcf-b643-68d28ee0caa7
2025-10-20 16:37:37,884 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/8f785882-f149-4573-a646-d6998b358a30
2025-10-20 16:37:37,935 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/8f785882-f149-4573-a646-d6998b358a30
2025-10-20 16:37:37,987 - DEBUG - Requesting: https://10.0.0.22:8082/route-target/470d3477-5d7f-4e07-9be4-1df08ac74c42
2025-10-20 16:37:38,091 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-86523354:ctest-vn-86027194', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86523354', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6963491069167685071', 'uuid-lslong': '13133456191892015783'}, 'enable': 'true', 'created': '2025-10-20T16:37:34', 'last-modified': '2025-10-20T16:37:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.750371'}
2025-10-20 16:37:38,144 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-20 16:37:38,145 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86027194 passed
2025-10-20 16:37:38,145 - DEBUG - ====Verifying policy data for ctest-vn-86027194 in API_Server ======
2025-10-20 16:37:38,145 - DEBUG - Requesting: https://10.0.0.22:8082/domains
2025-10-20 16:37:38,195 - DEBUG - Requesting: https://10.0.0.22:8082/domain/d63b8345-8de7-4e97-94d5-a56d8ff33dd0
2025-10-20 16:37:38,251 - DEBUG - Requesting: https://10.0.0.22:8082/project/8a1cfe2c-7032-4de8-9efe-a64c4d621c7c
2025-10-20 16:37:38,331 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/60a34a3b-b658-4dcf-b643-68d28ee0caa7
2025-10-20 16:37:38,388 - DEBUG - ==>Verifying data for policy with id: 4248ef90-36f3-42ea-b648-cd51c464ca62, fqn: ['admin_domain', 'ctest-TestBasicPolicy-86523354', 'ctest-policy-allow-all-07451488']
2025-10-20 16:37:38,388 - INFO - VN ctest-vn-86027194 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-20 16:37:38,388 - DEBUG - Verifying the vn in opserver
2025-10-20 16:37:38,388 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-86523354:ctest-vn-86027194 virtual network link through opserver 10.0.0.22
2025-10-20 16:37:38,388 - DEBUG - Requesting: https://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-20 16:37:38,729 - DEBUG - Requesting: https://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-20 16:37:38,843 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-86523354:ctest-vn-86027194', 'href': 'https://10.0.0.22:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-86523354:ctest-vn-86027194?flat'}
2025-10-20 16:37:38,843 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-86523354:ctest-vn-86027194 is found in opserver
2025-10-20 16:37:38,939 - DEBUG - Do not have enough data to verify VN in agent
2025-10-20 16:37:38,995 - DEBUG - VRF ids for VN ctest-vn-86027194: {}
2025-10-20 16:37:38,995 - DEBUG - Requesting: https://10.0.0.22:8082/domains
2025-10-20 16:37:39,047 - DEBUG - Requesting: https://10.0.0.22:8082/domain/d63b8345-8de7-4e97-94d5-a56d8ff33dd0
2025-10-20 16:37:39,107 - DEBUG - Requesting: https://10.0.0.22:8082/project/8a1cfe2c-7032-4de8-9efe-a64c4d621c7c
2025-10-20 16:37:39,187 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/01936bbe-3234-4468-b88c-5144d09764ee
2025-10-20 16:37:39,244 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/01936bbe-3234-4468-b88c-5144d09764ee
2025-10-20 16:37:39,304 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/de1c6ff7-da76-4304-a896-d9113a0b59d4
2025-10-20 16:37:39,359 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/de1c6ff7-da76-4304-a896-d9113a0b59d4
2025-10-20 16:37:39,415 - DEBUG - Requesting: https://10.0.0.22:8082/route-target/e319d8f3-2192-4230-a21e-060ef16c914d
2025-10-20 16:37:39,467 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-20 16:37:39,467 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/01936bbe-3234-4468-b88c-5144d09764ee
2025-10-20 16:37:39,524 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/de1c6ff7-da76-4304-a896-d9113a0b59d4
2025-10-20 16:37:39,590 - INFO - Verified VN network id 12 for VN 01936bbe-3234-4468-b88c-5144d09764ee
2025-10-20 16:37:39,590 - INFO - Verifications in API Server for VN ctest-vn-54047102 passed
2025-10-20 16:37:39,590 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/01936bbe-3234-4468-b88c-5144d09764ee
2025-10-20 16:37:39,649 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/de1c6ff7-da76-4304-a896-d9113a0b59d4
2025-10-20 16:37:39,703 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/de1c6ff7-da76-4304-a896-d9113a0b59d4
2025-10-20 16:37:39,763 - DEBUG - Requesting: https://10.0.0.22:8082/route-target/e319d8f3-2192-4230-a21e-060ef16c914d
2025-10-20 16:37:39,867 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-86523354:ctest-vn-54047102', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86523354', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '113552880244638824', 'uuid-lslong': '13298093155717440750'}, 'enable': 'true', 'created': '2025-10-20T16:37:35', 'last-modified': '2025-10-20T16:37:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.192236'}
2025-10-20 16:37:39,920 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-20 16:37:39,920 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54047102 passed
2025-10-20 16:37:39,920 - DEBUG - ====Verifying policy data for ctest-vn-54047102 in API_Server ======
2025-10-20 16:37:39,920 - DEBUG - Requesting: https://10.0.0.22:8082/domains
2025-10-20 16:37:39,971 - DEBUG - Requesting: https://10.0.0.22:8082/domain/d63b8345-8de7-4e97-94d5-a56d8ff33dd0
2025-10-20 16:37:40,027 - DEBUG - Requesting: https://10.0.0.22:8082/project/8a1cfe2c-7032-4de8-9efe-a64c4d621c7c
2025-10-20 16:37:40,107 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/01936bbe-3234-4468-b88c-5144d09764ee
2025-10-20 16:37:40,164 - DEBUG - ==>Verifying data for policy with id: 4248ef90-36f3-42ea-b648-cd51c464ca62, fqn: ['admin_domain', 'ctest-TestBasicPolicy-86523354', 'ctest-policy-allow-all-07451488']
2025-10-20 16:37:40,164 - INFO - VN ctest-vn-54047102 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-20 16:37:40,164 - DEBUG - Verifying the vn in opserver
2025-10-20 16:37:40,164 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-86523354:ctest-vn-54047102 virtual network link through opserver 10.0.0.22
2025-10-20 16:37:40,164 - DEBUG - Requesting: https://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-20 16:37:40,223 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-86523354:ctest-vn-54047102', 'href': 'https://10.0.0.22:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-86523354:ctest-vn-54047102?flat'}
2025-10-20 16:37:40,223 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-86523354:ctest-vn-54047102 is found in opserver
2025-10-20 16:37:40,323 - DEBUG - Do not have enough data to verify VN in agent
2025-10-20 16:37:40,371 - DEBUG - VRF ids for VN ctest-vn-54047102: {}
2025-10-20 16:37:40,456 - DEBUG - Services list from nova: [