2025-11-04 21:51:43,912 - INFO - Domain Default found not creating
2025-11-04 21:51:44,062 - INFO - Project ctest-TestBasicPolicy-14333230 not found, creating it
2025-11-04 21:51:44,511 - INFO - Created Project:ctest-TestBasicPolicy-14333230, ID : a6429c67-970d-40f4-b1b8-8a6db74def16
2025-11-04 21:51:45,943 - INFO - ================================================================================
2025-11-04 21:51:45,943 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-04 21:51:45,943 - 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-11-04 21:51:46,195 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.254': '0'}} with
2025-11-04 21:51:46,195 - INFO - Initial checks done. Running the testcase now
2025-11-04 21:51:46,195 - INFO -
2025-11-04 21:51:46,753 - DEBUG - Response for create_network : {'network': {'id': '799dbb9d-8d48-4bd7-8115-0a6072b344e6', 'name': 'ctest-vn-79142326', 'tenant_id': 'a6429c67970d40f4b1b88a6db74def16', 'project_id': 'a6429c67970d40f4b1b88a6db74def16', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14333230', 'ctest-vn-79142326'], 'port_security_enabled': True, 'description': ''}}
2025-11-04 21:51:46,943 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f01277c9-3945-44db-b29c-90b369200d4a', 'name': '', 'tenant_id': 'a6429c67970d40f4b1b88a6db74def16', 'network_id': '799dbb9d-8d48-4bd7-8115-0a6072b344e6', 'ip_version': 4, 'cidr': '197.226.107.0/26', 'allocation_pools': [{'start': '197.226.107.2', 'end': '197.226.107.62'}], 'gateway_ip': '197.226.107.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.226.107.2', 'tags': [], 'project_id': 'a6429c67970d40f4b1b88a6db74def16'}}
2025-11-04 21:51:46,961 - INFO - Created VN ctest-vn-79142326
2025-11-04 21:51:47,014 - DEBUG - VN ctest-vn-79142326 UUID is 799dbb9d-8d48-4bd7-8115-0a6072b344e6
2025-11-04 21:51:47,331 - DEBUG - Response for create_network : {'network': {'id': 'bcf7515d-51e9-4e2d-9b60-a5b365e4da77', 'name': 'ctest-vn-08487400', 'tenant_id': 'a6429c67970d40f4b1b88a6db74def16', 'project_id': 'a6429c67970d40f4b1b88a6db74def16', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14333230', 'ctest-vn-08487400'], 'port_security_enabled': True, 'description': ''}}
2025-11-04 21:51:47,507 - DEBUG - Response for create_subnet : {'subnet': {'id': '6677f68c-2001-41a9-8470-b0784bd7e580', 'name': '', 'tenant_id': 'a6429c67970d40f4b1b88a6db74def16', 'network_id': 'bcf7515d-51e9-4e2d-9b60-a5b365e4da77', 'ip_version': 4, 'cidr': '9.136.254.128/26', 'allocation_pools': [{'start': '9.136.254.130', 'end': '9.136.254.190'}], 'gateway_ip': '9.136.254.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.136.254.130', 'tags': [], 'project_id': 'a6429c67970d40f4b1b88a6db74def16'}}
2025-11-04 21:51:47,526 - INFO - Created VN ctest-vn-08487400
2025-11-04 21:51:47,578 - DEBUG - VN ctest-vn-08487400 UUID is bcf7515d-51e9-4e2d-9b60-a5b365e4da77
2025-11-04 21:51:47,697 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-14333230:ctest-vn-79142326, 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-14333230:ctest-vn-08487400, 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-11-04 21:51:47,984 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '799dbb9d-8d48-4bd7-8115-0a6072b344e6', 'name': 'ctest-vn-79142326', 'tenant_id': 'a6429c67970d40f4b1b88a6db74def16', 'project_id': 'a6429c67970d40f4b1b88a6db74def16', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f01277c9-3945-44db-b29c-90b369200d4a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14333230', 'ctest-vn-79142326'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14333230', 'ctest-policy-allow-all-36070536']], 'subnet_ipam': [{'subnet_cidr': '197.226.107.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-04 21:51:48,205 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bcf7515d-51e9-4e2d-9b60-a5b365e4da77', 'name': 'ctest-vn-08487400', 'tenant_id': 'a6429c67970d40f4b1b88a6db74def16', 'project_id': 'a6429c67970d40f4b1b88a6db74def16', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6677f68c-2001-41a9-8470-b0784bd7e580'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14333230', 'ctest-vn-08487400'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14333230', 'ctest-policy-allow-all-36070536']], 'subnet_ipam': [{'subnet_cidr': '9.136.254.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-04 21:51:48,374 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-11-04 21:51:48,674 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-11-04 21:51:48,706 - DEBUG - Requesting: http://10.0.0.27:8082/domain/12455651-6c94-4d55-86f1-219ed9e1f1c8
2025-11-04 21:51:48,718 - DEBUG - Requesting: http://10.0.0.27:8082/project/a6429c67-970d-40f4-b1b8-8a6db74def16
2025-11-04 21:51:48,794 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/799dbb9d-8d48-4bd7-8115-0a6072b344e6
2025-11-04 21:51:48,805 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/799dbb9d-8d48-4bd7-8115-0a6072b344e6
2025-11-04 21:51:48,815 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/fc1d14f0-6824-4911-8009-76598fba7b99
2025-11-04 21:51:48,823 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/fc1d14f0-6824-4911-8009-76598fba7b99
2025-11-04 21:51:48,830 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/0afc87c4-ed52-46b0-b4e6-16e4a43816d8
2025-11-04 21:51:48,836 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-04 21:51:48,836 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/799dbb9d-8d48-4bd7-8115-0a6072b344e6
2025-11-04 21:51:48,844 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/fc1d14f0-6824-4911-8009-76598fba7b99
2025-11-04 21:51:48,858 - INFO - Verified VN network id 11 for VN 799dbb9d-8d48-4bd7-8115-0a6072b344e6
2025-11-04 21:51:48,858 - INFO - Verifications in API Server for VN ctest-vn-79142326 passed
2025-11-04 21:51:48,858 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/799dbb9d-8d48-4bd7-8115-0a6072b344e6
2025-11-04 21:51:48,867 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/fc1d14f0-6824-4911-8009-76598fba7b99
2025-11-04 21:51:48,873 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/fc1d14f0-6824-4911-8009-76598fba7b99
2025-11-04 21:51:48,880 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/0afc87c4-ed52-46b0-b4e6-16e4a43816d8
2025-11-04 21:51:48,891 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14333230:ctest-vn-79142326', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14333230', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8763366735287438295', 'uuid-lslong': '9301352014761116902'}, 'enable': 'true', 'created': '2025-11-04T21:51:46', 'last-modified': '2025-11-04T21:51:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.930546'}
2025-11-04 21:51:48,898 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-04 21:51:48,898 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79142326 passed
2025-11-04 21:51:48,899 - DEBUG - ====Verifying policy data for ctest-vn-79142326 in API_Server ======
2025-11-04 21:51:48,899 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-11-04 21:51:48,904 - DEBUG - Requesting: http://10.0.0.27:8082/domain/12455651-6c94-4d55-86f1-219ed9e1f1c8
2025-11-04 21:51:48,915 - DEBUG - Requesting: http://10.0.0.27:8082/project/a6429c67-970d-40f4-b1b8-8a6db74def16
2025-11-04 21:51:48,985 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/799dbb9d-8d48-4bd7-8115-0a6072b344e6
2025-11-04 21:51:48,994 - DEBUG - ==>Verifying data for policy with id: b1a74488-674a-4188-8aa0-791e85560bba, fqn: ['default-domain', 'ctest-TestBasicPolicy-14333230', 'ctest-policy-allow-all-36070536']
2025-11-04 21:51:48,994 - INFO - VN ctest-vn-79142326 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-04 21:51:48,994 - DEBUG - Verifying the vn in opserver
2025-11-04 21:51:48,994 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14333230:ctest-vn-79142326 virtual network link through opserver 10.0.0.27
2025-11-04 21:51:48,994 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-11-04 21:51:49,288 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-11-04 21:51:49,345 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14333230:ctest-vn-79142326', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14333230:ctest-vn-79142326?flat'}
2025-11-04 21:51:49,346 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14333230:ctest-vn-79142326 is found in opserver
2025-11-04 21:51:49,354 - DEBUG - Do not have enough data to verify VN in agent
2025-11-04 21:51:49,358 - DEBUG - VRF ids for VN ctest-vn-79142326: {}
2025-11-04 21:51:49,358 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-11-04 21:51:49,364 - DEBUG - Requesting: http://10.0.0.27:8082/domain/12455651-6c94-4d55-86f1-219ed9e1f1c8
2025-11-04 21:51:49,374 - DEBUG - Requesting: http://10.0.0.27:8082/project/a6429c67-970d-40f4-b1b8-8a6db74def16
2025-11-04 21:51:49,444 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/bcf7515d-51e9-4e2d-9b60-a5b365e4da77
2025-11-04 21:51:49,454 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/bcf7515d-51e9-4e2d-9b60-a5b365e4da77
2025-11-04 21:51:49,462 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/66af6498-b00f-4390-84e5-14666570d244
2025-11-04 21:51:49,468 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/66af6498-b00f-4390-84e5-14666570d244
2025-11-04 21:51:49,474 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/768b23c3-80a1-4ff7-a8e2-f3a18dc3e019
2025-11-04 21:51:49,480 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-04 21:51:49,480 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/bcf7515d-51e9-4e2d-9b60-a5b365e4da77
2025-11-04 21:51:49,489 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/66af6498-b00f-4390-84e5-14666570d244
2025-11-04 21:51:49,502 - INFO - Verified VN network id 12 for VN bcf7515d-51e9-4e2d-9b60-a5b365e4da77
2025-11-04 21:51:49,502 - INFO - Verifications in API Server for VN ctest-vn-08487400 passed
2025-11-04 21:51:49,502 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/bcf7515d-51e9-4e2d-9b60-a5b365e4da77
2025-11-04 21:51:49,510 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/66af6498-b00f-4390-84e5-14666570d244
2025-11-04 21:51:49,517 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/66af6498-b00f-4390-84e5-14666570d244
2025-11-04 21:51:49,523 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/768b23c3-80a1-4ff7-a8e2-f3a18dc3e019
2025-11-04 21:51:49,535 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14333230:ctest-vn-08487400', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14333230', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13616441459626036781', 'uuid-lslong': '11196130863570279031'}, 'enable': 'true', 'created': '2025-11-04T21:51:47', 'last-modified': '2025-11-04T21:51:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.342765'}
2025-11-04 21:51:49,540 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-04 21:51:49,541 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08487400 passed
2025-11-04 21:51:49,541 - DEBUG - ====Verifying policy data for ctest-vn-08487400 in API_Server ======
2025-11-04 21:51:49,541 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-11-04 21:51:49,546 - DEBUG - Requesting: http://10.0.0.27:8082/domain/12455651-6c94-4d55-86f1-219ed9e1f1c8
2025-11-04 21:51:49,556 - DEBUG - Requesting: http://10.0.0.27:8082/project/a6429c67-970d-40f4-b1b8-8a6db74def16
2025-11-04 21:51:49,623 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/bcf7515d-51e9-4e2d-9b60-a5b365e4da77
2025-11-04 21:51:49,632 - DEBUG - ==>Verifying data for policy with id: b1a74488-674a-4188-8aa0-791e85560bba, fqn: ['default-domain', 'ctest-TestBasicPolicy-14333230', 'ctest-policy-allow-all-36070536']
2025-11-04 21:51:49,632 - INFO - VN ctest-vn-08487400 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-04 21:51:49,632 - DEBUG - Verifying the vn in opserver
2025-11-04 21:51:49,632 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14333230:ctest-vn-08487400 virtual network link through opserver 10.0.0.27
2025-11-04 21:51:49,632 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-11-04 21:51:49,641 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14333230:ctest-vn-08487400', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14333230:ctest-vn-08487400?flat'}
2025-11-04 21:51:49,641 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14333230:ctest-vn-08487400 is found in opserver
2025-11-04 21:51:49,649 - DEBUG - Do not have enough data to verify VN in agent
2025-11-04 21:51:49,654 - DEBUG - VRF ids for VN ctest-vn-08487400: {}
2025-11-04 21:51:49,706 - DEBUG - Services list from nova: [