2025-11-05 09:26:20,302 - INFO - Domain Default found not creating
2025-11-05 09:26:20,445 - INFO - Project ctest-TestBasicPolicy-44021611 not found, creating it
2025-11-05 09:26:20,881 - INFO - Created Project:ctest-TestBasicPolicy-44021611, ID : 36cffaf9-74c7-46d0-8036-fd710a438c91
2025-11-05 09:26:22,235 - INFO - ================================================================================
2025-11-05 09:26:22,235 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-05 09:26:22,235 - 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-05 09:26:22,498 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-11-05 09:26:22,498 - INFO - Initial checks done. Running the testcase now
2025-11-05 09:26:22,498 - INFO -
2025-11-05 09:26:23,030 - DEBUG - Response for create_network : {'network': {'id': 'e4af7e3c-6b97-4bf2-a7f6-e82cc059f197', 'name': 'ctest-vn-59595907', 'tenant_id': '36cffaf974c746d08036fd710a438c91', 'project_id': '36cffaf974c746d08036fd710a438c91', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44021611', 'ctest-vn-59595907'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 09:26:23,200 - DEBUG - Response for create_subnet : {'subnet': {'id': '6a418d96-cbe2-4a8c-9eac-5c584ff6792e', 'name': '', 'tenant_id': '36cffaf974c746d08036fd710a438c91', 'network_id': 'e4af7e3c-6b97-4bf2-a7f6-e82cc059f197', 'ip_version': 4, 'cidr': '70.171.83.192/26', 'allocation_pools': [{'start': '70.171.83.194', 'end': '70.171.83.254'}], 'gateway_ip': '70.171.83.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.171.83.194', 'tags': [], 'project_id': '36cffaf974c746d08036fd710a438c91'}}
2025-11-05 09:26:23,214 - INFO - Created VN ctest-vn-59595907
2025-11-05 09:26:23,265 - DEBUG - VN ctest-vn-59595907 UUID is e4af7e3c-6b97-4bf2-a7f6-e82cc059f197
2025-11-05 09:26:23,567 - DEBUG - Response for create_network : {'network': {'id': '50e94a9a-3c9d-4cdf-8ca1-927aeeb688c1', 'name': 'ctest-vn-78460790', 'tenant_id': '36cffaf974c746d08036fd710a438c91', 'project_id': '36cffaf974c746d08036fd710a438c91', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44021611', 'ctest-vn-78460790'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 09:26:23,752 - DEBUG - Response for create_subnet : {'subnet': {'id': '364b2a6d-2d4b-4071-9a48-6ac84f168796', 'name': '', 'tenant_id': '36cffaf974c746d08036fd710a438c91', 'network_id': '50e94a9a-3c9d-4cdf-8ca1-927aeeb688c1', 'ip_version': 4, 'cidr': '220.168.178.64/26', 'allocation_pools': [{'start': '220.168.178.66', 'end': '220.168.178.126'}], 'gateway_ip': '220.168.178.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.168.178.66', 'tags': [], 'project_id': '36cffaf974c746d08036fd710a438c91'}}
2025-11-05 09:26:23,768 - INFO - Created VN ctest-vn-78460790
2025-11-05 09:26:23,824 - DEBUG - VN ctest-vn-78460790 UUID is 50e94a9a-3c9d-4cdf-8ca1-927aeeb688c1
2025-11-05 09:26:23,976 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-44021611:ctest-vn-59595907, 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-44021611:ctest-vn-78460790, 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-05 09:26:24,256 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e4af7e3c-6b97-4bf2-a7f6-e82cc059f197', 'name': 'ctest-vn-59595907', 'tenant_id': '36cffaf974c746d08036fd710a438c91', 'project_id': '36cffaf974c746d08036fd710a438c91', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6a418d96-cbe2-4a8c-9eac-5c584ff6792e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44021611', 'ctest-vn-59595907'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44021611', 'ctest-policy-allow-all-01581202']], 'subnet_ipam': [{'subnet_cidr': '70.171.83.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 09:26:24,468 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '50e94a9a-3c9d-4cdf-8ca1-927aeeb688c1', 'name': 'ctest-vn-78460790', 'tenant_id': '36cffaf974c746d08036fd710a438c91', 'project_id': '36cffaf974c746d08036fd710a438c91', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['364b2a6d-2d4b-4071-9a48-6ac84f168796'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44021611', 'ctest-vn-78460790'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44021611', 'ctest-policy-allow-all-01581202']], 'subnet_ipam': [{'subnet_cidr': '220.168.178.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 09:26:24,628 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-05 09:26:24,922 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-05 09:26:24,946 - DEBUG - Requesting: http://10.0.0.22:8082/domain/b71d308d-fb1f-403d-8a34-31136a746c4e
2025-11-05 09:26:24,957 - DEBUG - Requesting: http://10.0.0.22:8082/project/36cffaf9-74c7-46d0-8036-fd710a438c91
2025-11-05 09:26:25,029 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e4af7e3c-6b97-4bf2-a7f6-e82cc059f197
2025-11-05 09:26:25,039 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e4af7e3c-6b97-4bf2-a7f6-e82cc059f197
2025-11-05 09:26:25,047 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e6ba006f-126e-4b24-b4aa-27a75c6e527b
2025-11-05 09:26:25,054 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e6ba006f-126e-4b24-b4aa-27a75c6e527b
2025-11-05 09:26:25,060 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/1d77ba29-d7d0-47e5-a528-43ba5d8862cd
2025-11-05 09:26:25,065 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 09:26:25,065 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e4af7e3c-6b97-4bf2-a7f6-e82cc059f197
2025-11-05 09:26:25,072 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e6ba006f-126e-4b24-b4aa-27a75c6e527b
2025-11-05 09:26:25,084 - INFO - Verified VN network id 12 for VN e4af7e3c-6b97-4bf2-a7f6-e82cc059f197
2025-11-05 09:26:25,084 - INFO - Verifications in API Server for VN ctest-vn-59595907 passed
2025-11-05 09:26:25,084 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e4af7e3c-6b97-4bf2-a7f6-e82cc059f197
2025-11-05 09:26:25,091 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e6ba006f-126e-4b24-b4aa-27a75c6e527b
2025-11-05 09:26:25,096 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e6ba006f-126e-4b24-b4aa-27a75c6e527b
2025-11-05 09:26:25,101 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/1d77ba29-d7d0-47e5-a528-43ba5d8862cd
2025-11-05 09:26:25,110 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44021611:ctest-vn-59595907', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44021611', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16478528359540149234', 'uuid-lslong': '12103116327508111767'}, 'enable': 'true', 'created': '2025-11-05T09:26:23', 'last-modified': '2025-11-05T09:26:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.870845'}
2025-11-05 09:26:25,115 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 09:26:25,115 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59595907 passed
2025-11-05 09:26:25,115 - DEBUG - ====Verifying policy data for ctest-vn-59595907 in API_Server ======
2025-11-05 09:26:25,115 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-05 09:26:25,119 - DEBUG - Requesting: http://10.0.0.22:8082/domain/b71d308d-fb1f-403d-8a34-31136a746c4e
2025-11-05 09:26:25,128 - DEBUG - Requesting: http://10.0.0.22:8082/project/36cffaf9-74c7-46d0-8036-fd710a438c91
2025-11-05 09:26:25,195 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e4af7e3c-6b97-4bf2-a7f6-e82cc059f197
2025-11-05 09:26:25,204 - DEBUG - ==>Verifying data for policy with id: 8370538e-5359-498b-87b5-607fe411f827, fqn: ['default-domain', 'ctest-TestBasicPolicy-44021611', 'ctest-policy-allow-all-01581202']
2025-11-05 09:26:25,204 - INFO - VN ctest-vn-59595907 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 09:26:25,204 - DEBUG - Verifying the vn in opserver
2025-11-05 09:26:25,205 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44021611:ctest-vn-59595907 virtual network link through opserver 10.0.0.22
2025-11-05 09:26:25,205 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-05 09:26:25,494 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-05 09:26:25,545 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44021611:ctest-vn-59595907', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44021611:ctest-vn-59595907?flat'}
2025-11-05 09:26:25,545 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44021611:ctest-vn-59595907 is found in opserver
2025-11-05 09:26:25,554 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 09:26:25,558 - DEBUG - VRF ids for VN ctest-vn-59595907: {}
2025-11-05 09:26:25,558 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-05 09:26:25,562 - DEBUG - Requesting: http://10.0.0.22:8082/domain/b71d308d-fb1f-403d-8a34-31136a746c4e
2025-11-05 09:26:25,572 - DEBUG - Requesting: http://10.0.0.22:8082/project/36cffaf9-74c7-46d0-8036-fd710a438c91
2025-11-05 09:26:25,640 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/50e94a9a-3c9d-4cdf-8ca1-927aeeb688c1
2025-11-05 09:26:25,649 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/50e94a9a-3c9d-4cdf-8ca1-927aeeb688c1
2025-11-05 09:26:25,657 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/38af6feb-4dd6-47be-8d9f-d60d8943c8e0
2025-11-05 09:26:25,664 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/38af6feb-4dd6-47be-8d9f-d60d8943c8e0
2025-11-05 09:26:25,670 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/a1dd22bc-465a-4973-ab7b-e4bb20127379
2025-11-05 09:26:25,676 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 09:26:25,676 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/50e94a9a-3c9d-4cdf-8ca1-927aeeb688c1
2025-11-05 09:26:25,684 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/38af6feb-4dd6-47be-8d9f-d60d8943c8e0
2025-11-05 09:26:25,695 - INFO - Verified VN network id 13 for VN 50e94a9a-3c9d-4cdf-8ca1-927aeeb688c1
2025-11-05 09:26:25,695 - INFO - Verifications in API Server for VN ctest-vn-78460790 passed
2025-11-05 09:26:25,696 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/50e94a9a-3c9d-4cdf-8ca1-927aeeb688c1
2025-11-05 09:26:25,703 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/38af6feb-4dd6-47be-8d9f-d60d8943c8e0
2025-11-05 09:26:25,709 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/38af6feb-4dd6-47be-8d9f-d60d8943c8e0
2025-11-05 09:26:25,714 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/a1dd22bc-465a-4973-ab7b-e4bb20127379
2025-11-05 09:26:25,723 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44021611:ctest-vn-78460790', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44021611', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5830273218910178527', 'uuid-lslong': '10133541693248932033'}, 'enable': 'true', 'created': '2025-11-05T09:26:23', 'last-modified': '2025-11-05T09:26:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.275681'}
2025-11-05 09:26:25,728 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 09:26:25,728 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78460790 passed
2025-11-05 09:26:25,728 - DEBUG - ====Verifying policy data for ctest-vn-78460790 in API_Server ======
2025-11-05 09:26:25,729 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-05 09:26:25,733 - DEBUG - Requesting: http://10.0.0.22:8082/domain/b71d308d-fb1f-403d-8a34-31136a746c4e
2025-11-05 09:26:25,743 - DEBUG - Requesting: http://10.0.0.22:8082/project/36cffaf9-74c7-46d0-8036-fd710a438c91
2025-11-05 09:26:25,806 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/50e94a9a-3c9d-4cdf-8ca1-927aeeb688c1
2025-11-05 09:26:25,814 - DEBUG - ==>Verifying data for policy with id: 8370538e-5359-498b-87b5-607fe411f827, fqn: ['default-domain', 'ctest-TestBasicPolicy-44021611', 'ctest-policy-allow-all-01581202']
2025-11-05 09:26:25,815 - INFO - VN ctest-vn-78460790 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 09:26:25,815 - DEBUG - Verifying the vn in opserver
2025-11-05 09:26:25,815 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44021611:ctest-vn-78460790 virtual network link through opserver 10.0.0.22
2025-11-05 09:26:25,815 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-05 09:26:25,823 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44021611:ctest-vn-78460790', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44021611:ctest-vn-78460790?flat'}
2025-11-05 09:26:25,823 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44021611:ctest-vn-78460790 is found in opserver
2025-11-05 09:26:25,831 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 09:26:25,835 - DEBUG - VRF ids for VN ctest-vn-78460790: {}
2025-11-05 09:26:25,885 - DEBUG - Services list from nova: [