2025-09-23 12:15:58,137 - INFO - Domain Default found not creating
2025-09-23 12:15:58,637 - INFO - Project ctest-TestBasicPolicy-64193970 not found, creating it
2025-09-23 12:15:59,088 - INFO - Created Project:ctest-TestBasicPolicy-64193970, ID : 6bf61bd6-9387-4ee3-9657-c7f7661d346f
2025-09-23 12:16:00,579 - INFO - ================================================================================
2025-09-23 12:16:00,579 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-23 12:16:00,579 - 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-09-23 12:16:00,854 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-09-23 12:16:00,854 - INFO - Initial checks done. Running the testcase now
2025-09-23 12:16:00,854 - INFO -
2025-09-23 12:16:01,438 - DEBUG - Response for create_network : {'network': {'id': 'da8426c0-9783-4c18-bdde-e3e69cf5b1b3', 'name': 'ctest-vn-58927101', 'tenant_id': '6bf61bd693874ee39657c7f7661d346f', 'project_id': '6bf61bd693874ee39657c7f7661d346f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64193970', 'ctest-vn-58927101'], 'port_security_enabled': True, 'description': ''}}
2025-09-23 12:16:01,613 - DEBUG - Response for create_subnet : {'subnet': {'id': '3c8790cb-e909-4c32-bda0-89f940d9cc6c', 'name': '', 'tenant_id': '6bf61bd693874ee39657c7f7661d346f', 'network_id': 'da8426c0-9783-4c18-bdde-e3e69cf5b1b3', 'ip_version': 4, 'cidr': '34.135.90.128/26', 'allocation_pools': [{'start': '34.135.90.130', 'end': '34.135.90.190'}], 'gateway_ip': '34.135.90.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.135.90.130', 'tags': [], 'project_id': '6bf61bd693874ee39657c7f7661d346f'}}
2025-09-23 12:16:01,634 - INFO - Created VN ctest-vn-58927101
2025-09-23 12:16:01,688 - DEBUG - VN ctest-vn-58927101 UUID is da8426c0-9783-4c18-bdde-e3e69cf5b1b3
2025-09-23 12:16:01,987 - DEBUG - Response for create_network : {'network': {'id': 'abb28329-eb02-4fc5-a237-5fd0295990b2', 'name': 'ctest-vn-57833330', 'tenant_id': '6bf61bd693874ee39657c7f7661d346f', 'project_id': '6bf61bd693874ee39657c7f7661d346f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64193970', 'ctest-vn-57833330'], 'port_security_enabled': True, 'description': ''}}
2025-09-23 12:16:02,222 - DEBUG - Response for create_subnet : {'subnet': {'id': '8fed48fd-dc10-4393-aed8-7f6d7e10885f', 'name': '', 'tenant_id': '6bf61bd693874ee39657c7f7661d346f', 'network_id': 'abb28329-eb02-4fc5-a237-5fd0295990b2', 'ip_version': 4, 'cidr': '133.106.86.0/26', 'allocation_pools': [{'start': '133.106.86.2', 'end': '133.106.86.62'}], 'gateway_ip': '133.106.86.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.106.86.2', 'tags': [], 'project_id': '6bf61bd693874ee39657c7f7661d346f'}}
2025-09-23 12:16:02,243 - INFO - Created VN ctest-vn-57833330
2025-09-23 12:16:02,300 - DEBUG - VN ctest-vn-57833330 UUID is abb28329-eb02-4fc5-a237-5fd0295990b2
2025-09-23 12:16:02,420 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-64193970:ctest-vn-58927101, 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-64193970:ctest-vn-57833330, 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-09-23 12:16:02,722 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'da8426c0-9783-4c18-bdde-e3e69cf5b1b3', 'name': 'ctest-vn-58927101', 'tenant_id': '6bf61bd693874ee39657c7f7661d346f', 'project_id': '6bf61bd693874ee39657c7f7661d346f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3c8790cb-e909-4c32-bda0-89f940d9cc6c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64193970', 'ctest-vn-58927101'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64193970', 'ctest-policy-allow-all-00172592']], 'subnet_ipam': [{'subnet_cidr': '34.135.90.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-23 12:16:03,018 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'abb28329-eb02-4fc5-a237-5fd0295990b2', 'name': 'ctest-vn-57833330', 'tenant_id': '6bf61bd693874ee39657c7f7661d346f', 'project_id': '6bf61bd693874ee39657c7f7661d346f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8fed48fd-dc10-4393-aed8-7f6d7e10885f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64193970', 'ctest-vn-57833330'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64193970', 'ctest-policy-allow-all-00172592']], 'subnet_ipam': [{'subnet_cidr': '133.106.86.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-23 12:16:03,176 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-23 12:16:03,483 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-23 12:16:03,513 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8bc7aaff-2766-45ed-ac21-d4ece8f95b67
2025-09-23 12:16:03,527 - DEBUG - Requesting: http://10.0.0.50:8082/project/6bf61bd6-9387-4ee3-9657-c7f7661d346f
2025-09-23 12:16:03,602 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/da8426c0-9783-4c18-bdde-e3e69cf5b1b3
2025-09-23 12:16:03,614 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/da8426c0-9783-4c18-bdde-e3e69cf5b1b3
2025-09-23 12:16:03,624 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/25549385-e842-45ba-ab1c-4ea811b6466d
2025-09-23 12:16:03,632 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/25549385-e842-45ba-ab1c-4ea811b6466d
2025-09-23 12:16:03,640 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/622b7995-a657-45f0-9680-75b873eb2573
2025-09-23 12:16:03,647 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-23 12:16:03,647 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/da8426c0-9783-4c18-bdde-e3e69cf5b1b3
2025-09-23 12:16:03,656 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/25549385-e842-45ba-ab1c-4ea811b6466d
2025-09-23 12:16:03,672 - INFO - Verified VN network id 12 for VN da8426c0-9783-4c18-bdde-e3e69cf5b1b3
2025-09-23 12:16:03,672 - INFO - Verifications in API Server for VN ctest-vn-58927101 passed
2025-09-23 12:16:03,672 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/da8426c0-9783-4c18-bdde-e3e69cf5b1b3
2025-09-23 12:16:03,682 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/25549385-e842-45ba-ab1c-4ea811b6466d
2025-09-23 12:16:03,688 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/25549385-e842-45ba-ab1c-4ea811b6466d
2025-09-23 12:16:03,695 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/622b7995-a657-45f0-9680-75b873eb2573
2025-09-23 12:16:03,707 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64193970:ctest-vn-58927101', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64193970', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15745752805811637272', 'uuid-lslong': '13681623297613476275'}, 'enable': 'true', 'created': '2025-09-23T12:16:01', 'last-modified': '2025-09-23T12:16:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.003442'}
2025-09-23 12:16:03,713 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-23 12:16:03,713 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58927101 passed
2025-09-23 12:16:03,713 - DEBUG - ====Verifying policy data for ctest-vn-58927101 in API_Server ======
2025-09-23 12:16:03,713 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-23 12:16:03,719 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8bc7aaff-2766-45ed-ac21-d4ece8f95b67
2025-09-23 12:16:03,730 - DEBUG - Requesting: http://10.0.0.50:8082/project/6bf61bd6-9387-4ee3-9657-c7f7661d346f
2025-09-23 12:16:03,802 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/da8426c0-9783-4c18-bdde-e3e69cf5b1b3
2025-09-23 12:16:03,811 - DEBUG - ==>Verifying data for policy with id: ffb2bf26-4a57-4eeb-ae4b-8c50a8604389, fqn: ['default-domain', 'ctest-TestBasicPolicy-64193970', 'ctest-policy-allow-all-00172592']
2025-09-23 12:16:03,811 - INFO - VN ctest-vn-58927101 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-23 12:16:03,811 - DEBUG - Verifying the vn in opserver
2025-09-23 12:16:03,811 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64193970:ctest-vn-58927101 virtual network link through opserver 10.0.0.50
2025-09-23 12:16:03,811 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-09-23 12:16:04,106 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-09-23 12:16:04,165 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64193970:ctest-vn-58927101', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64193970:ctest-vn-58927101?flat'}
2025-09-23 12:16:04,165 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64193970:ctest-vn-58927101 is found in opserver
2025-09-23 12:16:04,176 - DEBUG - Do not have enough data to verify VN in agent
2025-09-23 12:16:04,182 - DEBUG - VRF ids for VN ctest-vn-58927101: {}
2025-09-23 12:16:04,182 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-23 12:16:04,188 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8bc7aaff-2766-45ed-ac21-d4ece8f95b67
2025-09-23 12:16:04,201 - DEBUG - Requesting: http://10.0.0.50:8082/project/6bf61bd6-9387-4ee3-9657-c7f7661d346f
2025-09-23 12:16:04,274 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/abb28329-eb02-4fc5-a237-5fd0295990b2
2025-09-23 12:16:04,286 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/abb28329-eb02-4fc5-a237-5fd0295990b2
2025-09-23 12:16:04,296 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/27f1d115-7136-4e57-9c63-d72d100c921f
2025-09-23 12:16:04,303 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/27f1d115-7136-4e57-9c63-d72d100c921f
2025-09-23 12:16:04,310 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/7ac46402-d563-4e1b-9424-e7b32412b0d8
2025-09-23 12:16:04,318 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-23 12:16:04,318 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/abb28329-eb02-4fc5-a237-5fd0295990b2
2025-09-23 12:16:04,328 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/27f1d115-7136-4e57-9c63-d72d100c921f
2025-09-23 12:16:04,345 - INFO - Verified VN network id 13 for VN abb28329-eb02-4fc5-a237-5fd0295990b2
2025-09-23 12:16:04,345 - INFO - Verifications in API Server for VN ctest-vn-57833330 passed
2025-09-23 12:16:04,345 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/abb28329-eb02-4fc5-a237-5fd0295990b2
2025-09-23 12:16:04,355 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/27f1d115-7136-4e57-9c63-d72d100c921f
2025-09-23 12:16:04,364 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/27f1d115-7136-4e57-9c63-d72d100c921f
2025-09-23 12:16:04,372 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/7ac46402-d563-4e1b-9424-e7b32412b0d8
2025-09-23 12:16:04,387 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64193970:ctest-vn-57833330', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64193970', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12372095342399868869', 'uuid-lslong': '11688916705514983602'}, 'enable': 'true', 'created': '2025-09-23T12:16:01', 'last-modified': '2025-09-23T12:16:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.440887'}
2025-09-23 12:16:04,394 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-23 12:16:04,394 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57833330 passed
2025-09-23 12:16:04,395 - DEBUG - ====Verifying policy data for ctest-vn-57833330 in API_Server ======
2025-09-23 12:16:04,395 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-23 12:16:04,402 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8bc7aaff-2766-45ed-ac21-d4ece8f95b67
2025-09-23 12:16:04,418 - DEBUG - Requesting: http://10.0.0.50:8082/project/6bf61bd6-9387-4ee3-9657-c7f7661d346f
2025-09-23 12:16:04,495 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/abb28329-eb02-4fc5-a237-5fd0295990b2
2025-09-23 12:16:04,506 - DEBUG - ==>Verifying data for policy with id: ffb2bf26-4a57-4eeb-ae4b-8c50a8604389, fqn: ['default-domain', 'ctest-TestBasicPolicy-64193970', 'ctest-policy-allow-all-00172592']
2025-09-23 12:16:04,506 - INFO - VN ctest-vn-57833330 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-23 12:16:04,506 - DEBUG - Verifying the vn in opserver
2025-09-23 12:16:04,507 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64193970:ctest-vn-57833330 virtual network link through opserver 10.0.0.50
2025-09-23 12:16:04,507 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-09-23 12:16:04,517 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64193970:ctest-vn-57833330', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64193970:ctest-vn-57833330?flat'}
2025-09-23 12:16:04,517 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64193970:ctest-vn-57833330 is found in opserver
2025-09-23 12:16:04,527 - DEBUG - Do not have enough data to verify VN in agent
2025-09-23 12:16:04,532 - DEBUG - VRF ids for VN ctest-vn-57833330: {}
2025-09-23 12:16:04,604 - DEBUG - Services list from nova: [