2025-11-13 10:49:31,034 - INFO - Domain Default found not creating
2025-11-13 10:49:31,189 - INFO - Project ctest-TestBasicPolicy-49121634 not found, creating it
2025-11-13 10:49:31,715 - INFO - Created Project:ctest-TestBasicPolicy-49121634, ID : 1f2b1631-7cba-4e0b-9c65-5544fff6964d
2025-11-13 10:49:33,259 - INFO - ================================================================================
2025-11-13 10:49:33,259 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-13 10:49:33,259 - 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-13 10:49:33,513 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-11-13 10:49:33,513 - INFO - Initial checks done. Running the testcase now
2025-11-13 10:49:33,514 - INFO -
2025-11-13 10:49:34,093 - DEBUG - Response for create_network : {'network': {'id': '1aa2646e-aa38-421c-b02e-a70204be51a8', 'name': 'ctest-vn-60915960', 'tenant_id': '1f2b16317cba4e0b9c655544fff6964d', 'project_id': '1f2b16317cba4e0b9c655544fff6964d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49121634', 'ctest-vn-60915960'], 'port_security_enabled': True, 'description': ''}}
2025-11-13 10:49:34,294 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c6b3d996-2042-43f3-a30b-4af76fe1b9af', 'name': '', 'tenant_id': '1f2b16317cba4e0b9c655544fff6964d', 'network_id': '1aa2646e-aa38-421c-b02e-a70204be51a8', 'ip_version': 4, 'cidr': '94.198.183.64/26', 'allocation_pools': [{'start': '94.198.183.66', 'end': '94.198.183.126'}], 'gateway_ip': '94.198.183.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '94.198.183.66', 'tags': [], 'project_id': '1f2b16317cba4e0b9c655544fff6964d'}}
2025-11-13 10:49:34,309 - INFO - Created VN ctest-vn-60915960
2025-11-13 10:49:34,360 - DEBUG - VN ctest-vn-60915960 UUID is 1aa2646e-aa38-421c-b02e-a70204be51a8
2025-11-13 10:49:34,695 - DEBUG - Response for create_network : {'network': {'id': 'f012e942-729f-41ae-bafc-002d45c7a1cf', 'name': 'ctest-vn-98236320', 'tenant_id': '1f2b16317cba4e0b9c655544fff6964d', 'project_id': '1f2b16317cba4e0b9c655544fff6964d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49121634', 'ctest-vn-98236320'], 'port_security_enabled': True, 'description': ''}}
2025-11-13 10:49:34,896 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f22427d8-9311-4d65-bcf4-b6739d93e9b7', 'name': '', 'tenant_id': '1f2b16317cba4e0b9c655544fff6964d', 'network_id': 'f012e942-729f-41ae-bafc-002d45c7a1cf', 'ip_version': 4, 'cidr': '162.181.220.0/26', 'allocation_pools': [{'start': '162.181.220.2', 'end': '162.181.220.62'}], 'gateway_ip': '162.181.220.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '162.181.220.2', 'tags': [], 'project_id': '1f2b16317cba4e0b9c655544fff6964d'}}
2025-11-13 10:49:34,912 - INFO - Created VN ctest-vn-98236320
2025-11-13 10:49:34,964 - DEBUG - VN ctest-vn-98236320 UUID is f012e942-729f-41ae-bafc-002d45c7a1cf
2025-11-13 10:49:35,112 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-49121634:ctest-vn-60915960, 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-49121634:ctest-vn-98236320, 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-13 10:49:35,414 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1aa2646e-aa38-421c-b02e-a70204be51a8', 'name': 'ctest-vn-60915960', 'tenant_id': '1f2b16317cba4e0b9c655544fff6964d', 'project_id': '1f2b16317cba4e0b9c655544fff6964d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c6b3d996-2042-43f3-a30b-4af76fe1b9af'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49121634', 'ctest-vn-60915960'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49121634', 'ctest-policy-allow-all-95875573']], 'subnet_ipam': [{'subnet_cidr': '94.198.183.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-13 10:49:35,642 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f012e942-729f-41ae-bafc-002d45c7a1cf', 'name': 'ctest-vn-98236320', 'tenant_id': '1f2b16317cba4e0b9c655544fff6964d', 'project_id': '1f2b16317cba4e0b9c655544fff6964d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f22427d8-9311-4d65-bcf4-b6739d93e9b7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49121634', 'ctest-vn-98236320'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49121634', 'ctest-policy-allow-all-95875573']], 'subnet_ipam': [{'subnet_cidr': '162.181.220.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-13 10:49:35,808 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-13 10:49:36,131 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-13 10:49:36,160 - DEBUG - Requesting: http://10.0.0.38:8082/domain/80bf899c-de7c-4e12-b8f2-75a0f18115f3
2025-11-13 10:49:36,172 - DEBUG - Requesting: http://10.0.0.38:8082/project/1f2b1631-7cba-4e0b-9c65-5544fff6964d
2025-11-13 10:49:36,246 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1aa2646e-aa38-421c-b02e-a70204be51a8
2025-11-13 10:49:36,256 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1aa2646e-aa38-421c-b02e-a70204be51a8
2025-11-13 10:49:36,265 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6c91f108-6a4c-4e5f-a06e-9fea68ce0479
2025-11-13 10:49:36,276 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6c91f108-6a4c-4e5f-a06e-9fea68ce0479
2025-11-13 10:49:36,283 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/25a14e91-a8e0-4a43-ba27-9a9d6e27148b
2025-11-13 10:49:36,292 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-13 10:49:36,292 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1aa2646e-aa38-421c-b02e-a70204be51a8
2025-11-13 10:49:36,303 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6c91f108-6a4c-4e5f-a06e-9fea68ce0479
2025-11-13 10:49:36,318 - INFO - Verified VN network id 11 for VN 1aa2646e-aa38-421c-b02e-a70204be51a8
2025-11-13 10:49:36,318 - INFO - Verifications in API Server for VN ctest-vn-60915960 passed
2025-11-13 10:49:36,318 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1aa2646e-aa38-421c-b02e-a70204be51a8
2025-11-13 10:49:36,327 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6c91f108-6a4c-4e5f-a06e-9fea68ce0479
2025-11-13 10:49:36,334 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6c91f108-6a4c-4e5f-a06e-9fea68ce0479
2025-11-13 10:49:36,342 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/25a14e91-a8e0-4a43-ba27-9a9d6e27148b
2025-11-13 10:49:36,354 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49121634:ctest-vn-60915960', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49121634', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1919206817678246428', 'uuid-lslong': '12695268026715361704'}, 'enable': 'true', 'created': '2025-11-13T10:49:34', 'last-modified': '2025-11-13T10:49:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.960130'}
2025-11-13 10:49:36,360 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-13 10:49:36,360 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60915960 passed
2025-11-13 10:49:36,360 - DEBUG - ====Verifying policy data for ctest-vn-60915960 in API_Server ======
2025-11-13 10:49:36,360 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-13 10:49:36,366 - DEBUG - Requesting: http://10.0.0.38:8082/domain/80bf899c-de7c-4e12-b8f2-75a0f18115f3
2025-11-13 10:49:36,378 - DEBUG - Requesting: http://10.0.0.38:8082/project/1f2b1631-7cba-4e0b-9c65-5544fff6964d
2025-11-13 10:49:36,446 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1aa2646e-aa38-421c-b02e-a70204be51a8
2025-11-13 10:49:36,456 - DEBUG - ==>Verifying data for policy with id: 12c64740-359a-4ea7-a716-c255f31a4a9c, fqn: ['default-domain', 'ctest-TestBasicPolicy-49121634', 'ctest-policy-allow-all-95875573']
2025-11-13 10:49:36,456 - INFO - VN ctest-vn-60915960 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-13 10:49:36,456 - DEBUG - Verifying the vn in opserver
2025-11-13 10:49:36,456 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49121634:ctest-vn-60915960 virtual network link through opserver 10.0.0.38
2025-11-13 10:49:36,456 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-13 10:49:36,774 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-13 10:49:36,833 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49121634:ctest-vn-60915960', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49121634:ctest-vn-60915960?flat'}
2025-11-13 10:49:36,833 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49121634:ctest-vn-60915960 is found in opserver
2025-11-13 10:49:36,843 - DEBUG - Do not have enough data to verify VN in agent
2025-11-13 10:49:36,848 - DEBUG - VRF ids for VN ctest-vn-60915960: {}
2025-11-13 10:49:36,848 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-13 10:49:36,855 - DEBUG - Requesting: http://10.0.0.38:8082/domain/80bf899c-de7c-4e12-b8f2-75a0f18115f3
2025-11-13 10:49:36,866 - DEBUG - Requesting: http://10.0.0.38:8082/project/1f2b1631-7cba-4e0b-9c65-5544fff6964d
2025-11-13 10:49:36,948 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f012e942-729f-41ae-bafc-002d45c7a1cf
2025-11-13 10:49:36,960 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f012e942-729f-41ae-bafc-002d45c7a1cf
2025-11-13 10:49:36,973 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7b351994-613e-464d-b9a2-dfdef439dc54
2025-11-13 10:49:36,983 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7b351994-613e-464d-b9a2-dfdef439dc54
2025-11-13 10:49:36,992 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3c60e6d5-696a-4a52-8aa7-f5534db01bd9
2025-11-13 10:49:37,000 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-13 10:49:37,000 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f012e942-729f-41ae-bafc-002d45c7a1cf
2025-11-13 10:49:37,011 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7b351994-613e-464d-b9a2-dfdef439dc54
2025-11-13 10:49:37,026 - INFO - Verified VN network id 12 for VN f012e942-729f-41ae-bafc-002d45c7a1cf
2025-11-13 10:49:37,026 - INFO - Verifications in API Server for VN ctest-vn-98236320 passed
2025-11-13 10:49:37,027 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f012e942-729f-41ae-bafc-002d45c7a1cf
2025-11-13 10:49:37,036 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7b351994-613e-464d-b9a2-dfdef439dc54
2025-11-13 10:49:37,044 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7b351994-613e-464d-b9a2-dfdef439dc54
2025-11-13 10:49:37,052 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3c60e6d5-696a-4a52-8aa7-f5534db01bd9
2025-11-13 10:49:37,065 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49121634:ctest-vn-98236320', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49121634', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17299145590283649454', 'uuid-lslong': '13473644379629920719'}, 'enable': 'true', 'created': '2025-11-13T10:49:34', 'last-modified': '2025-11-13T10:49:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.446144'}
2025-11-13 10:49:37,071 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-13 10:49:37,071 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98236320 passed
2025-11-13 10:49:37,071 - DEBUG - ====Verifying policy data for ctest-vn-98236320 in API_Server ======
2025-11-13 10:49:37,071 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-13 10:49:37,077 - DEBUG - Requesting: http://10.0.0.38:8082/domain/80bf899c-de7c-4e12-b8f2-75a0f18115f3
2025-11-13 10:49:37,088 - DEBUG - Requesting: http://10.0.0.38:8082/project/1f2b1631-7cba-4e0b-9c65-5544fff6964d
2025-11-13 10:49:37,157 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f012e942-729f-41ae-bafc-002d45c7a1cf
2025-11-13 10:49:37,167 - DEBUG - ==>Verifying data for policy with id: 12c64740-359a-4ea7-a716-c255f31a4a9c, fqn: ['default-domain', 'ctest-TestBasicPolicy-49121634', 'ctest-policy-allow-all-95875573']
2025-11-13 10:49:37,167 - INFO - VN ctest-vn-98236320 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-13 10:49:37,168 - DEBUG - Verifying the vn in opserver
2025-11-13 10:49:37,168 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49121634:ctest-vn-98236320 virtual network link through opserver 10.0.0.38
2025-11-13 10:49:37,168 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-13 10:49:37,178 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49121634:ctest-vn-98236320', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49121634:ctest-vn-98236320?flat'}
2025-11-13 10:49:37,178 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49121634:ctest-vn-98236320 is found in opserver
2025-11-13 10:49:37,188 - DEBUG - Do not have enough data to verify VN in agent
2025-11-13 10:49:37,193 - DEBUG - VRF ids for VN ctest-vn-98236320: {}
2025-11-13 10:49:37,254 - DEBUG - Services list from nova: [