2025-08-12 18:40:43,433 - INFO - Domain Default found not creating
2025-08-12 18:40:43,558 - INFO - Project ctest-TestBasicPolicy-07975018 not found, creating it
2025-08-12 18:40:43,980 - INFO - Created Project:ctest-TestBasicPolicy-07975018, ID : 7f7bad38-d91a-4f58-8d5e-55ee84d7de3d
2025-08-12 18:40:45,367 - INFO - ================================================================================
2025-08-12 18:40:45,367 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-12 18:40:45,367 - 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-08-12 18:40:45,630 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-08-12 18:40:45,630 - INFO - Initial checks done. Running the testcase now
2025-08-12 18:40:45,630 - INFO -
2025-08-12 18:40:46,189 - DEBUG - Response for create_network : {'network': {'id': '3c8a629d-9c4e-4b69-8457-033213f9d9ac', 'name': 'ctest-vn-22880069', 'tenant_id': '7f7bad38d91a4f588d5e55ee84d7de3d', 'project_id': '7f7bad38d91a4f588d5e55ee84d7de3d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07975018', 'ctest-vn-22880069'], 'port_security_enabled': True, 'description': ''}}
2025-08-12 18:40:46,347 - DEBUG - Response for create_subnet : {'subnet': {'id': '73cc5406-00e7-4210-ab31-2bb92d595ba3', 'name': '', 'tenant_id': '7f7bad38d91a4f588d5e55ee84d7de3d', 'network_id': '3c8a629d-9c4e-4b69-8457-033213f9d9ac', 'ip_version': 4, 'cidr': '99.101.154.192/26', 'allocation_pools': [{'start': '99.101.154.194', 'end': '99.101.154.254'}], 'gateway_ip': '99.101.154.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.101.154.194', 'tags': [], 'project_id': '7f7bad38d91a4f588d5e55ee84d7de3d'}}
2025-08-12 18:40:46,364 - INFO - Created VN ctest-vn-22880069
2025-08-12 18:40:46,416 - DEBUG - VN ctest-vn-22880069 UUID is 3c8a629d-9c4e-4b69-8457-033213f9d9ac
2025-08-12 18:40:46,739 - DEBUG - Response for create_network : {'network': {'id': '63c6c72c-9a4f-4aff-b981-bd48d26d3b94', 'name': 'ctest-vn-65518758', 'tenant_id': '7f7bad38d91a4f588d5e55ee84d7de3d', 'project_id': '7f7bad38d91a4f588d5e55ee84d7de3d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07975018', 'ctest-vn-65518758'], 'port_security_enabled': True, 'description': ''}}
2025-08-12 18:40:46,935 - DEBUG - Response for create_subnet : {'subnet': {'id': '0c3b7682-ff11-4c47-a887-b6174cae8d01', 'name': '', 'tenant_id': '7f7bad38d91a4f588d5e55ee84d7de3d', 'network_id': '63c6c72c-9a4f-4aff-b981-bd48d26d3b94', 'ip_version': 4, 'cidr': '101.67.84.64/26', 'allocation_pools': [{'start': '101.67.84.66', 'end': '101.67.84.126'}], 'gateway_ip': '101.67.84.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.67.84.66', 'tags': [], 'project_id': '7f7bad38d91a4f588d5e55ee84d7de3d'}}
2025-08-12 18:40:46,951 - INFO - Created VN ctest-vn-65518758
2025-08-12 18:40:47,004 - DEBUG - VN ctest-vn-65518758 UUID is 63c6c72c-9a4f-4aff-b981-bd48d26d3b94
2025-08-12 18:40:47,147 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-07975018:ctest-vn-22880069, 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-07975018:ctest-vn-65518758, 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-08-12 18:40:47,432 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3c8a629d-9c4e-4b69-8457-033213f9d9ac', 'name': 'ctest-vn-22880069', 'tenant_id': '7f7bad38d91a4f588d5e55ee84d7de3d', 'project_id': '7f7bad38d91a4f588d5e55ee84d7de3d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['73cc5406-00e7-4210-ab31-2bb92d595ba3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07975018', 'ctest-vn-22880069'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07975018', 'ctest-policy-allow-all-60371350']], 'subnet_ipam': [{'subnet_cidr': '99.101.154.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-12 18:40:47,654 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '63c6c72c-9a4f-4aff-b981-bd48d26d3b94', 'name': 'ctest-vn-65518758', 'tenant_id': '7f7bad38d91a4f588d5e55ee84d7de3d', 'project_id': '7f7bad38d91a4f588d5e55ee84d7de3d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0c3b7682-ff11-4c47-a887-b6174cae8d01'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07975018', 'ctest-vn-65518758'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07975018', 'ctest-policy-allow-all-60371350']], 'subnet_ipam': [{'subnet_cidr': '101.67.84.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-12 18:40:47,824 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-08-12 18:40:48,117 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-08-12 18:40:48,143 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6b3317a1-9cbf-465f-a12d-fa5c37f51652
2025-08-12 18:40:48,155 - DEBUG - Requesting: http://10.0.0.22:8082/project/7f7bad38-d91a-4f58-8d5e-55ee84d7de3d
2025-08-12 18:40:48,233 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3c8a629d-9c4e-4b69-8457-033213f9d9ac
2025-08-12 18:40:48,244 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3c8a629d-9c4e-4b69-8457-033213f9d9ac
2025-08-12 18:40:48,252 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b140e2b6-fb27-4c13-966a-b20474ed4403
2025-08-12 18:40:48,258 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b140e2b6-fb27-4c13-966a-b20474ed4403
2025-08-12 18:40:48,264 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/a4bd7b85-0158-4b75-ad9a-050fd40337b9
2025-08-12 18:40:48,269 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-12 18:40:48,269 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3c8a629d-9c4e-4b69-8457-033213f9d9ac
2025-08-12 18:40:48,277 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b140e2b6-fb27-4c13-966a-b20474ed4403
2025-08-12 18:40:48,289 - INFO - Verified VN network id 11 for VN 3c8a629d-9c4e-4b69-8457-033213f9d9ac
2025-08-12 18:40:48,289 - INFO - Verifications in API Server for VN ctest-vn-22880069 passed
2025-08-12 18:40:48,289 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3c8a629d-9c4e-4b69-8457-033213f9d9ac
2025-08-12 18:40:48,298 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b140e2b6-fb27-4c13-966a-b20474ed4403
2025-08-12 18:40:48,304 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b140e2b6-fb27-4c13-966a-b20474ed4403
2025-08-12 18:40:48,310 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/a4bd7b85-0158-4b75-ad9a-050fd40337b9
2025-08-12 18:40:48,320 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07975018:ctest-vn-22880069', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07975018', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4362407618133511017', 'uuid-lslong': '9536094249598704044'}, 'enable': 'true', 'created': '2025-08-12T18:40:46', 'last-modified': '2025-08-12T18:40:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.909944'}
2025-08-12 18:40:48,326 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-12 18:40:48,326 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22880069 passed
2025-08-12 18:40:48,327 - DEBUG - ====Verifying policy data for ctest-vn-22880069 in API_Server ======
2025-08-12 18:40:48,327 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-08-12 18:40:48,332 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6b3317a1-9cbf-465f-a12d-fa5c37f51652
2025-08-12 18:40:48,344 - DEBUG - Requesting: http://10.0.0.22:8082/project/7f7bad38-d91a-4f58-8d5e-55ee84d7de3d
2025-08-12 18:40:48,421 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3c8a629d-9c4e-4b69-8457-033213f9d9ac
2025-08-12 18:40:48,431 - DEBUG - ==>Verifying data for policy with id: b4e0b640-5238-4848-94d1-8a4e78343fb0, fqn: ['default-domain', 'ctest-TestBasicPolicy-07975018', 'ctest-policy-allow-all-60371350']
2025-08-12 18:40:48,431 - INFO - VN ctest-vn-22880069 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-12 18:40:48,431 - DEBUG - Verifying the vn in opserver
2025-08-12 18:40:48,431 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07975018:ctest-vn-22880069 virtual network link through opserver 10.0.0.22
2025-08-12 18:40:48,431 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-08-12 18:40:48,721 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-08-12 18:40:48,776 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07975018:ctest-vn-22880069', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07975018:ctest-vn-22880069?flat'}
2025-08-12 18:40:48,776 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07975018:ctest-vn-22880069 is found in opserver
2025-08-12 18:40:48,787 - DEBUG - Do not have enough data to verify VN in agent
2025-08-12 18:40:48,791 - DEBUG - VRF ids for VN ctest-vn-22880069: {}
2025-08-12 18:40:48,791 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-08-12 18:40:48,797 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6b3317a1-9cbf-465f-a12d-fa5c37f51652
2025-08-12 18:40:48,808 - DEBUG - Requesting: http://10.0.0.22:8082/project/7f7bad38-d91a-4f58-8d5e-55ee84d7de3d
2025-08-12 18:40:48,879 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/63c6c72c-9a4f-4aff-b981-bd48d26d3b94
2025-08-12 18:40:48,890 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/63c6c72c-9a4f-4aff-b981-bd48d26d3b94
2025-08-12 18:40:48,899 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d76d7130-d1d4-4c8e-956b-297dd64c9583
2025-08-12 18:40:48,905 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d76d7130-d1d4-4c8e-956b-297dd64c9583
2025-08-12 18:40:48,910 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/891647ec-09b7-4706-84e5-ccfbe290c74d
2025-08-12 18:40:48,916 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-12 18:40:48,916 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/63c6c72c-9a4f-4aff-b981-bd48d26d3b94
2025-08-12 18:40:48,924 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d76d7130-d1d4-4c8e-956b-297dd64c9583
2025-08-12 18:40:48,936 - INFO - Verified VN network id 12 for VN 63c6c72c-9a4f-4aff-b981-bd48d26d3b94
2025-08-12 18:40:48,936 - INFO - Verifications in API Server for VN ctest-vn-65518758 passed
2025-08-12 18:40:48,936 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/63c6c72c-9a4f-4aff-b981-bd48d26d3b94
2025-08-12 18:40:48,944 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d76d7130-d1d4-4c8e-956b-297dd64c9583
2025-08-12 18:40:48,950 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d76d7130-d1d4-4c8e-956b-297dd64c9583
2025-08-12 18:40:48,956 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/891647ec-09b7-4706-84e5-ccfbe290c74d
2025-08-12 18:40:48,968 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07975018:ctest-vn-65518758', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07975018', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7189652849524951807', 'uuid-lslong': '13367173289478011796'}, 'enable': 'true', 'created': '2025-08-12T18:40:46', 'last-modified': '2025-08-12T18:40:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.335460'}
2025-08-12 18:40:48,973 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-12 18:40:48,973 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65518758 passed
2025-08-12 18:40:48,973 - DEBUG - ====Verifying policy data for ctest-vn-65518758 in API_Server ======
2025-08-12 18:40:48,974 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-08-12 18:40:48,979 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6b3317a1-9cbf-465f-a12d-fa5c37f51652
2025-08-12 18:40:48,989 - DEBUG - Requesting: http://10.0.0.22:8082/project/7f7bad38-d91a-4f58-8d5e-55ee84d7de3d
2025-08-12 18:40:49,058 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/63c6c72c-9a4f-4aff-b981-bd48d26d3b94
2025-08-12 18:40:49,067 - DEBUG - ==>Verifying data for policy with id: b4e0b640-5238-4848-94d1-8a4e78343fb0, fqn: ['default-domain', 'ctest-TestBasicPolicy-07975018', 'ctest-policy-allow-all-60371350']
2025-08-12 18:40:49,067 - INFO - VN ctest-vn-65518758 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-12 18:40:49,067 - DEBUG - Verifying the vn in opserver
2025-08-12 18:40:49,067 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07975018:ctest-vn-65518758 virtual network link through opserver 10.0.0.22
2025-08-12 18:40:49,067 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-08-12 18:40:49,077 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07975018:ctest-vn-65518758', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07975018:ctest-vn-65518758?flat'}
2025-08-12 18:40:49,077 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07975018:ctest-vn-65518758 is found in opserver
2025-08-12 18:40:49,086 - DEBUG - Do not have enough data to verify VN in agent
2025-08-12 18:40:49,091 - DEBUG - VRF ids for VN ctest-vn-65518758: {}
2025-08-12 18:40:49,140 - DEBUG - Services list from nova: [