2025-04-30 14:41:11,533 - INFO - Domain Default found not creating
2025-04-30 14:41:11,649 - INFO - Project ctest-TestBasicPolicy-62424100 not found, creating it
2025-04-30 14:41:12,173 - INFO - Created Project:ctest-TestBasicPolicy-62424100, ID : a41f3083-eb1e-4417-b768-babef92d055c
2025-04-30 14:41:13,513 - INFO - ================================================================================
2025-04-30 14:41:13,513 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-30 14:41:13,513 - 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-04-30 14:41:13,763 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-04-30 14:41:13,763 - INFO - Initial checks done. Running the testcase now
2025-04-30 14:41:13,763 - INFO -
2025-04-30 14:41:14,273 - DEBUG - Response for create_network : {'network': {'id': 'deceed51-d6b6-401c-baa9-7dd71c61d4fe', 'name': 'ctest-vn-21805151', 'tenant_id': 'a41f3083eb1e4417b768babef92d055c', 'project_id': 'a41f3083eb1e4417b768babef92d055c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62424100', 'ctest-vn-21805151'], 'port_security_enabled': True, 'description': ''}}
2025-04-30 14:41:14,419 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b6c26e05-982e-4985-8394-ed3d03e01d9a', 'name': '', 'tenant_id': 'a41f3083eb1e4417b768babef92d055c', 'network_id': 'deceed51-d6b6-401c-baa9-7dd71c61d4fe', 'ip_version': 4, 'cidr': '26.39.50.128/26', 'allocation_pools': [{'start': '26.39.50.130', 'end': '26.39.50.190'}], 'gateway_ip': '26.39.50.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26.39.50.130', 'tags': [], 'project_id': 'a41f3083eb1e4417b768babef92d055c'}}
2025-04-30 14:41:14,435 - INFO - Created VN ctest-vn-21805151
2025-04-30 14:41:14,489 - DEBUG - VN ctest-vn-21805151 UUID is deceed51-d6b6-401c-baa9-7dd71c61d4fe
2025-04-30 14:41:14,785 - DEBUG - Response for create_network : {'network': {'id': '903bbadf-10ac-4bec-a0da-e3518765364a', 'name': 'ctest-vn-07779913', 'tenant_id': 'a41f3083eb1e4417b768babef92d055c', 'project_id': 'a41f3083eb1e4417b768babef92d055c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62424100', 'ctest-vn-07779913'], 'port_security_enabled': True, 'description': ''}}
2025-04-30 14:41:14,977 - DEBUG - Response for create_subnet : {'subnet': {'id': '445bc89d-e695-4953-8846-cbc0c3e940de', 'name': '', 'tenant_id': 'a41f3083eb1e4417b768babef92d055c', 'network_id': '903bbadf-10ac-4bec-a0da-e3518765364a', 'ip_version': 4, 'cidr': '205.49.45.0/26', 'allocation_pools': [{'start': '205.49.45.2', 'end': '205.49.45.62'}], 'gateway_ip': '205.49.45.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205.49.45.2', 'tags': [], 'project_id': 'a41f3083eb1e4417b768babef92d055c'}}
2025-04-30 14:41:14,992 - INFO - Created VN ctest-vn-07779913
2025-04-30 14:41:15,045 - DEBUG - VN ctest-vn-07779913 UUID is 903bbadf-10ac-4bec-a0da-e3518765364a
2025-04-30 14:41:15,261 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-62424100:ctest-vn-21805151, 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-62424100:ctest-vn-07779913, 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-04-30 14:41:15,540 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'deceed51-d6b6-401c-baa9-7dd71c61d4fe', 'name': 'ctest-vn-21805151', 'tenant_id': 'a41f3083eb1e4417b768babef92d055c', 'project_id': 'a41f3083eb1e4417b768babef92d055c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b6c26e05-982e-4985-8394-ed3d03e01d9a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62424100', 'ctest-vn-21805151'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62424100', 'ctest-policy-allow-all-88462713']], 'subnet_ipam': [{'subnet_cidr': '26.39.50.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-30 14:41:15,813 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '903bbadf-10ac-4bec-a0da-e3518765364a', 'name': 'ctest-vn-07779913', 'tenant_id': 'a41f3083eb1e4417b768babef92d055c', 'project_id': 'a41f3083eb1e4417b768babef92d055c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['445bc89d-e695-4953-8846-cbc0c3e940de'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62424100', 'ctest-vn-07779913'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62424100', 'ctest-policy-allow-all-88462713']], 'subnet_ipam': [{'subnet_cidr': '205.49.45.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-30 14:41:15,961 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-30 14:41:16,252 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-30 14:41:16,277 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3a79b4e5-0d36-42ab-bcb2-f11eb5dfe71b
2025-04-30 14:41:16,289 - DEBUG - Requesting: http://10.0.0.38:8082/project/a41f3083-eb1e-4417-b768-babef92d055c
2025-04-30 14:41:16,359 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/deceed51-d6b6-401c-baa9-7dd71c61d4fe
2025-04-30 14:41:16,369 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/deceed51-d6b6-401c-baa9-7dd71c61d4fe
2025-04-30 14:41:16,378 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3ca7de19-f3b9-4074-9a04-445979f26691
2025-04-30 14:41:16,385 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3ca7de19-f3b9-4074-9a04-445979f26691
2025-04-30 14:41:16,401 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/aee7faea-49cd-431d-9dc2-38cb5cbfbd2e
2025-04-30 14:41:16,407 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-30 14:41:16,407 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/deceed51-d6b6-401c-baa9-7dd71c61d4fe
2025-04-30 14:41:16,417 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3ca7de19-f3b9-4074-9a04-445979f26691
2025-04-30 14:41:16,430 - INFO - Verified VN network id 9 for VN deceed51-d6b6-401c-baa9-7dd71c61d4fe
2025-04-30 14:41:16,430 - INFO - Verifications in API Server for VN ctest-vn-21805151 passed
2025-04-30 14:41:16,430 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/deceed51-d6b6-401c-baa9-7dd71c61d4fe
2025-04-30 14:41:16,440 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3ca7de19-f3b9-4074-9a04-445979f26691
2025-04-30 14:41:16,447 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3ca7de19-f3b9-4074-9a04-445979f26691
2025-04-30 14:41:16,454 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/aee7faea-49cd-431d-9dc2-38cb5cbfbd2e
2025-04-30 14:41:16,466 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62424100:ctest-vn-21805151', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62424100', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16055030657372799004', 'uuid-lslong': '13450420124966311166'}, 'enable': 'true', 'created': '2025-04-30T14:41:14', 'last-modified': '2025-04-30T14:41:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.940258'}
2025-04-30 14:41:16,473 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-30 14:41:16,473 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21805151 passed
2025-04-30 14:41:16,473 - DEBUG - ====Verifying policy data for ctest-vn-21805151 in API_Server ======
2025-04-30 14:41:16,473 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-30 14:41:16,478 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3a79b4e5-0d36-42ab-bcb2-f11eb5dfe71b
2025-04-30 14:41:16,488 - DEBUG - Requesting: http://10.0.0.38:8082/project/a41f3083-eb1e-4417-b768-babef92d055c
2025-04-30 14:41:16,555 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/deceed51-d6b6-401c-baa9-7dd71c61d4fe
2025-04-30 14:41:16,564 - DEBUG - ==>Verifying data for policy with id: d4922c5a-38be-4466-8f47-b89ec9a08675, fqn: ['default-domain', 'ctest-TestBasicPolicy-62424100', 'ctest-policy-allow-all-88462713']
2025-04-30 14:41:16,564 - INFO - VN ctest-vn-21805151 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-30 14:41:16,564 - DEBUG - Verifying the vn in opserver
2025-04-30 14:41:16,564 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62424100:ctest-vn-21805151 virtual network link through opserver 10.0.0.38
2025-04-30 14:41:16,564 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-30 14:41:16,850 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-30 14:41:16,896 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62424100:ctest-vn-21805151', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62424100:ctest-vn-21805151?flat'}
2025-04-30 14:41:16,896 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62424100:ctest-vn-21805151 is found in opserver
2025-04-30 14:41:16,906 - DEBUG - Do not have enough data to verify VN in agent
2025-04-30 14:41:16,911 - DEBUG - VRF ids for VN ctest-vn-21805151: {}
2025-04-30 14:41:16,911 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-30 14:41:16,915 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3a79b4e5-0d36-42ab-bcb2-f11eb5dfe71b
2025-04-30 14:41:16,926 - DEBUG - Requesting: http://10.0.0.38:8082/project/a41f3083-eb1e-4417-b768-babef92d055c
2025-04-30 14:41:16,992 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/903bbadf-10ac-4bec-a0da-e3518765364a
2025-04-30 14:41:17,003 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/903bbadf-10ac-4bec-a0da-e3518765364a
2025-04-30 14:41:17,014 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1c733b9a-93e7-4238-becf-7c57a76d36bb
2025-04-30 14:41:17,021 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1c733b9a-93e7-4238-becf-7c57a76d36bb
2025-04-30 14:41:17,028 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5aa5bb0d-928f-4543-958e-da1823e5db44
2025-04-30 14:41:17,034 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-30 14:41:17,034 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/903bbadf-10ac-4bec-a0da-e3518765364a
2025-04-30 14:41:17,043 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1c733b9a-93e7-4238-becf-7c57a76d36bb
2025-04-30 14:41:17,055 - INFO - Verified VN network id 10 for VN 903bbadf-10ac-4bec-a0da-e3518765364a
2025-04-30 14:41:17,056 - INFO - Verifications in API Server for VN ctest-vn-07779913 passed
2025-04-30 14:41:17,056 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/903bbadf-10ac-4bec-a0da-e3518765364a
2025-04-30 14:41:17,066 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1c733b9a-93e7-4238-becf-7c57a76d36bb
2025-04-30 14:41:17,072 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1c733b9a-93e7-4238-becf-7c57a76d36bb
2025-04-30 14:41:17,077 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5aa5bb0d-928f-4543-958e-da1823e5db44
2025-04-30 14:41:17,088 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62424100:ctest-vn-07779913', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62424100', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10393106032307751916', 'uuid-lslong': '11590826530294806090'}, 'enable': 'true', 'created': '2025-04-30T14:41:14', 'last-modified': '2025-04-30T14:41:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.344472'}
2025-04-30 14:41:17,093 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-30 14:41:17,093 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07779913 passed
2025-04-30 14:41:17,094 - DEBUG - ====Verifying policy data for ctest-vn-07779913 in API_Server ======
2025-04-30 14:41:17,094 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-30 14:41:17,098 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3a79b4e5-0d36-42ab-bcb2-f11eb5dfe71b
2025-04-30 14:41:17,109 - DEBUG - Requesting: http://10.0.0.38:8082/project/a41f3083-eb1e-4417-b768-babef92d055c
2025-04-30 14:41:17,235 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/903bbadf-10ac-4bec-a0da-e3518765364a
2025-04-30 14:41:17,248 - DEBUG - ==>Verifying data for policy with id: d4922c5a-38be-4466-8f47-b89ec9a08675, fqn: ['default-domain', 'ctest-TestBasicPolicy-62424100', 'ctest-policy-allow-all-88462713']
2025-04-30 14:41:17,248 - INFO - VN ctest-vn-07779913 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-30 14:41:17,248 - DEBUG - Verifying the vn in opserver
2025-04-30 14:41:17,248 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62424100:ctest-vn-07779913 virtual network link through opserver 10.0.0.38
2025-04-30 14:41:17,248 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-30 14:41:17,259 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62424100:ctest-vn-07779913', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62424100:ctest-vn-07779913?flat'}
2025-04-30 14:41:17,259 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62424100:ctest-vn-07779913 is found in opserver
2025-04-30 14:41:17,271 - DEBUG - Do not have enough data to verify VN in agent
2025-04-30 14:41:17,276 - DEBUG - VRF ids for VN ctest-vn-07779913: {}
2025-04-30 14:41:17,331 - DEBUG - Services list from nova: [