2025-11-07 13:20:43,979 - INFO - Domain Default found not creating
2025-11-07 13:20:44,147 - INFO - Project ctest-TestBasicPolicy-02461697 not found, creating it
2025-11-07 13:20:44,602 - INFO - Created Project:ctest-TestBasicPolicy-02461697, ID : 1bea7523-4af2-4e19-8bc1-871e1c327012
2025-11-07 13:20:46,222 - INFO - ================================================================================
2025-11-07 13:20:46,222 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-07 13:20:46,222 - 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-07 13:20:46,477 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with
2025-11-07 13:20:46,477 - INFO - Initial checks done. Running the testcase now
2025-11-07 13:20:46,477 - INFO -
2025-11-07 13:20:47,059 - DEBUG - Response for create_network : {'network': {'id': '7f394fb3-e139-454d-8d10-dc0cb3d2b7da', 'name': 'ctest-vn-78917080', 'tenant_id': '1bea75234af24e198bc1871e1c327012', 'project_id': '1bea75234af24e198bc1871e1c327012', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02461697', 'ctest-vn-78917080'], 'port_security_enabled': True, 'description': ''}}
2025-11-07 13:20:47,234 - DEBUG - Response for create_subnet : {'subnet': {'id': '537bfd24-5452-456a-8968-66b8fc0668fd', 'name': '', 'tenant_id': '1bea75234af24e198bc1871e1c327012', 'network_id': '7f394fb3-e139-454d-8d10-dc0cb3d2b7da', 'ip_version': 4, 'cidr': '147.223.151.128/26', 'allocation_pools': [{'start': '147.223.151.130', 'end': '147.223.151.190'}], 'gateway_ip': '147.223.151.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.223.151.130', 'tags': [], 'project_id': '1bea75234af24e198bc1871e1c327012'}}
2025-11-07 13:20:47,253 - INFO - Created VN ctest-vn-78917080
2025-11-07 13:20:47,308 - DEBUG - VN ctest-vn-78917080 UUID is 7f394fb3-e139-454d-8d10-dc0cb3d2b7da
2025-11-07 13:20:47,626 - DEBUG - Response for create_network : {'network': {'id': '3425649f-41f0-449d-b434-74d761e0f139', 'name': 'ctest-vn-71621408', 'tenant_id': '1bea75234af24e198bc1871e1c327012', 'project_id': '1bea75234af24e198bc1871e1c327012', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02461697', 'ctest-vn-71621408'], 'port_security_enabled': True, 'description': ''}}
2025-11-07 13:20:47,809 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e3b40758-661e-4290-b9f7-469d745ab305', 'name': '', 'tenant_id': '1bea75234af24e198bc1871e1c327012', 'network_id': '3425649f-41f0-449d-b434-74d761e0f139', 'ip_version': 4, 'cidr': '100.135.55.0/26', 'allocation_pools': [{'start': '100.135.55.2', 'end': '100.135.55.62'}], 'gateway_ip': '100.135.55.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '100.135.55.2', 'tags': [], 'project_id': '1bea75234af24e198bc1871e1c327012'}}
2025-11-07 13:20:47,826 - INFO - Created VN ctest-vn-71621408
2025-11-07 13:20:47,880 - DEBUG - VN ctest-vn-71621408 UUID is 3425649f-41f0-449d-b434-74d761e0f139
2025-11-07 13:20:48,028 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-02461697:ctest-vn-78917080, 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-02461697:ctest-vn-71621408, 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-07 13:20:48,321 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7f394fb3-e139-454d-8d10-dc0cb3d2b7da', 'name': 'ctest-vn-78917080', 'tenant_id': '1bea75234af24e198bc1871e1c327012', 'project_id': '1bea75234af24e198bc1871e1c327012', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['537bfd24-5452-456a-8968-66b8fc0668fd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02461697', 'ctest-vn-78917080'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02461697', 'ctest-policy-allow-all-32679333']], 'subnet_ipam': [{'subnet_cidr': '147.223.151.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-07 13:20:48,544 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3425649f-41f0-449d-b434-74d761e0f139', 'name': 'ctest-vn-71621408', 'tenant_id': '1bea75234af24e198bc1871e1c327012', 'project_id': '1bea75234af24e198bc1871e1c327012', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e3b40758-661e-4290-b9f7-469d745ab305'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02461697', 'ctest-vn-71621408'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02461697', 'ctest-policy-allow-all-32679333']], 'subnet_ipam': [{'subnet_cidr': '100.135.55.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-07 13:20:48,720 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-07 13:20:49,043 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-07 13:20:49,068 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a8d0d865-f9b0-4130-9301-1ae509ba31e3
2025-11-07 13:20:49,083 - DEBUG - Requesting: http://10.0.0.50:8082/project/1bea7523-4af2-4e19-8bc1-871e1c327012
2025-11-07 13:20:49,158 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7f394fb3-e139-454d-8d10-dc0cb3d2b7da
2025-11-07 13:20:49,174 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7f394fb3-e139-454d-8d10-dc0cb3d2b7da
2025-11-07 13:20:49,186 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e42ad22b-c2db-403c-8cd6-ec9298f12bf7
2025-11-07 13:20:49,194 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e42ad22b-c2db-403c-8cd6-ec9298f12bf7
2025-11-07 13:20:49,201 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ee2b1f17-268c-4677-9c9c-511488771fbd
2025-11-07 13:20:49,209 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-07 13:20:49,209 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7f394fb3-e139-454d-8d10-dc0cb3d2b7da
2025-11-07 13:20:49,220 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e42ad22b-c2db-403c-8cd6-ec9298f12bf7
2025-11-07 13:20:49,235 - INFO - Verified VN network id 12 for VN 7f394fb3-e139-454d-8d10-dc0cb3d2b7da
2025-11-07 13:20:49,235 - INFO - Verifications in API Server for VN ctest-vn-78917080 passed
2025-11-07 13:20:49,235 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7f394fb3-e139-454d-8d10-dc0cb3d2b7da
2025-11-07 13:20:49,245 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e42ad22b-c2db-403c-8cd6-ec9298f12bf7
2025-11-07 13:20:49,252 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e42ad22b-c2db-403c-8cd6-ec9298f12bf7
2025-11-07 13:20:49,259 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ee2b1f17-268c-4677-9c9c-511488771fbd
2025-11-07 13:20:49,271 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02461697:ctest-vn-78917080', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02461697', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9167446150485722445', 'uuid-lslong': '10164866306089859034'}, 'enable': 'true', 'created': '2025-11-07T13:20:47', 'last-modified': '2025-11-07T13:20:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.978014'}
2025-11-07 13:20:49,276 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-07 13:20:49,277 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78917080 passed
2025-11-07 13:20:49,277 - DEBUG - ====Verifying policy data for ctest-vn-78917080 in API_Server ======
2025-11-07 13:20:49,277 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-07 13:20:49,283 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a8d0d865-f9b0-4130-9301-1ae509ba31e3
2025-11-07 13:20:49,294 - DEBUG - Requesting: http://10.0.0.50:8082/project/1bea7523-4af2-4e19-8bc1-871e1c327012
2025-11-07 13:20:49,368 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7f394fb3-e139-454d-8d10-dc0cb3d2b7da
2025-11-07 13:20:49,379 - DEBUG - ==>Verifying data for policy with id: 8d4ece79-0e8c-4ca3-a0ec-8c371abdd115, fqn: ['default-domain', 'ctest-TestBasicPolicy-02461697', 'ctest-policy-allow-all-32679333']
2025-11-07 13:20:49,379 - INFO - VN ctest-vn-78917080 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-07 13:20:49,379 - DEBUG - Verifying the vn in opserver
2025-11-07 13:20:49,379 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02461697:ctest-vn-78917080 virtual network link through opserver 10.0.0.50
2025-11-07 13:20:49,379 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-07 13:20:49,703 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-07 13:20:49,756 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02461697:ctest-vn-78917080', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02461697:ctest-vn-78917080?flat'}
2025-11-07 13:20:49,756 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02461697:ctest-vn-78917080 is found in opserver
2025-11-07 13:20:49,766 - DEBUG - Do not have enough data to verify VN in agent
2025-11-07 13:20:49,770 - DEBUG - VRF ids for VN ctest-vn-78917080: {}
2025-11-07 13:20:49,770 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-07 13:20:49,776 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a8d0d865-f9b0-4130-9301-1ae509ba31e3
2025-11-07 13:20:49,788 - DEBUG - Requesting: http://10.0.0.50:8082/project/1bea7523-4af2-4e19-8bc1-871e1c327012
2025-11-07 13:20:49,866 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3425649f-41f0-449d-b434-74d761e0f139
2025-11-07 13:20:49,877 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3425649f-41f0-449d-b434-74d761e0f139
2025-11-07 13:20:49,887 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9792c1c4-91b4-4d69-a751-67ae249b47a0
2025-11-07 13:20:49,894 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9792c1c4-91b4-4d69-a751-67ae249b47a0
2025-11-07 13:20:49,901 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ba802131-1a35-4ac2-86f1-2140628cbf83
2025-11-07 13:20:49,908 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-07 13:20:49,908 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3425649f-41f0-449d-b434-74d761e0f139
2025-11-07 13:20:49,917 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9792c1c4-91b4-4d69-a751-67ae249b47a0
2025-11-07 13:20:49,932 - INFO - Verified VN network id 13 for VN 3425649f-41f0-449d-b434-74d761e0f139
2025-11-07 13:20:49,932 - INFO - Verifications in API Server for VN ctest-vn-71621408 passed
2025-11-07 13:20:49,932 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3425649f-41f0-449d-b434-74d761e0f139
2025-11-07 13:20:49,942 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9792c1c4-91b4-4d69-a751-67ae249b47a0
2025-11-07 13:20:49,949 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9792c1c4-91b4-4d69-a751-67ae249b47a0
2025-11-07 13:20:49,956 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ba802131-1a35-4ac2-86f1-2140628cbf83
2025-11-07 13:20:49,968 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02461697:ctest-vn-71621408', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02461697', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3757520099279389853', 'uuid-lslong': '12985132094024905017'}, 'enable': 'true', 'created': '2025-11-07T13:20:47', 'last-modified': '2025-11-07T13:20:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.441835'}
2025-11-07 13:20:49,974 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-07 13:20:49,974 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71621408 passed
2025-11-07 13:20:49,974 - DEBUG - ====Verifying policy data for ctest-vn-71621408 in API_Server ======
2025-11-07 13:20:49,974 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-07 13:20:49,979 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a8d0d865-f9b0-4130-9301-1ae509ba31e3
2025-11-07 13:20:49,991 - DEBUG - Requesting: http://10.0.0.50:8082/project/1bea7523-4af2-4e19-8bc1-871e1c327012
2025-11-07 13:20:50,064 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3425649f-41f0-449d-b434-74d761e0f139
2025-11-07 13:20:50,073 - DEBUG - ==>Verifying data for policy with id: 8d4ece79-0e8c-4ca3-a0ec-8c371abdd115, fqn: ['default-domain', 'ctest-TestBasicPolicy-02461697', 'ctest-policy-allow-all-32679333']
2025-11-07 13:20:50,073 - INFO - VN ctest-vn-71621408 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-07 13:20:50,073 - DEBUG - Verifying the vn in opserver
2025-11-07 13:20:50,073 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02461697:ctest-vn-71621408 virtual network link through opserver 10.0.0.50
2025-11-07 13:20:50,073 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-07 13:20:50,082 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02461697:ctest-vn-71621408', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02461697:ctest-vn-71621408?flat'}
2025-11-07 13:20:50,082 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02461697:ctest-vn-71621408 is found in opserver
2025-11-07 13:20:50,092 - DEBUG - Do not have enough data to verify VN in agent
2025-11-07 13:20:50,097 - DEBUG - VRF ids for VN ctest-vn-71621408: {}
2025-11-07 13:20:50,158 - DEBUG - Services list from nova: [