2025-01-20 02:20:14,585 - INFO - Domain Default found not creating
2025-01-20 02:20:14,777 - INFO - Project ctest-TestBasicPolicy-02604041 not found, creating it
2025-01-20 02:20:15,284 - INFO - Created Project:ctest-TestBasicPolicy-02604041, ID : f92e5fd2-10b5-46c9-8355-9f412dc60f55
2025-01-20 02:20:16,969 - INFO - ================================================================================
2025-01-20 02:20:16,969 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-20 02:20:16,969 - 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-01-20 02:20:17,233 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.5': '0'}} with
2025-01-20 02:20:17,233 - INFO - Initial checks done. Running the testcase now
2025-01-20 02:20:17,233 - INFO -
2025-01-20 02:20:17,875 - DEBUG - Response for create_network : {'network': {'id': '21229849-a96e-473c-8993-ed79732663ff', 'name': 'ctest-vn-37266972', 'tenant_id': 'f92e5fd210b546c983559f412dc60f55', 'project_id': 'f92e5fd210b546c983559f412dc60f55', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02604041', 'ctest-vn-37266972'], 'port_security_enabled': True, 'description': ''}}
2025-01-20 02:20:18,098 - DEBUG - Response for create_subnet : {'subnet': {'id': 'daae1f7d-32f3-4e45-87cb-3e05b207a863', 'name': '', 'tenant_id': 'f92e5fd210b546c983559f412dc60f55', 'network_id': '21229849-a96e-473c-8993-ed79732663ff', 'ip_version': 4, 'cidr': '114.160.143.128/26', 'allocation_pools': [{'start': '114.160.143.130', 'end': '114.160.143.190'}], 'gateway_ip': '114.160.143.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.160.143.130', 'tags': [], 'project_id': 'f92e5fd210b546c983559f412dc60f55'}}
2025-01-20 02:20:18,123 - INFO - Created VN ctest-vn-37266972
2025-01-20 02:20:18,181 - DEBUG - VN ctest-vn-37266972 UUID is 21229849-a96e-473c-8993-ed79732663ff
2025-01-20 02:20:18,515 - DEBUG - Response for create_network : {'network': {'id': '2853fc47-7741-402e-b72c-40b407600be4', 'name': 'ctest-vn-83880330', 'tenant_id': 'f92e5fd210b546c983559f412dc60f55', 'project_id': 'f92e5fd210b546c983559f412dc60f55', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02604041', 'ctest-vn-83880330'], 'port_security_enabled': True, 'description': ''}}
2025-01-20 02:20:18,731 - DEBUG - Response for create_subnet : {'subnet': {'id': '708e1b82-f759-48de-9a3c-c2f02b1cc12b', 'name': '', 'tenant_id': 'f92e5fd210b546c983559f412dc60f55', 'network_id': '2853fc47-7741-402e-b72c-40b407600be4', 'ip_version': 4, 'cidr': '48.94.226.128/26', 'allocation_pools': [{'start': '48.94.226.130', 'end': '48.94.226.190'}], 'gateway_ip': '48.94.226.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '48.94.226.130', 'tags': [], 'project_id': 'f92e5fd210b546c983559f412dc60f55'}}
2025-01-20 02:20:18,754 - INFO - Created VN ctest-vn-83880330
2025-01-20 02:20:18,808 - DEBUG - VN ctest-vn-83880330 UUID is 2853fc47-7741-402e-b72c-40b407600be4
2025-01-20 02:20:18,940 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-02604041:ctest-vn-37266972, 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-02604041:ctest-vn-83880330, 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-01-20 02:20:19,259 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '21229849-a96e-473c-8993-ed79732663ff', 'name': 'ctest-vn-37266972', 'tenant_id': 'f92e5fd210b546c983559f412dc60f55', 'project_id': 'f92e5fd210b546c983559f412dc60f55', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['daae1f7d-32f3-4e45-87cb-3e05b207a863'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02604041', 'ctest-vn-37266972'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02604041', 'ctest-policy-allow-all-97302606']], 'subnet_ipam': [{'subnet_cidr': '114.160.143.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-20 02:20:19,640 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2853fc47-7741-402e-b72c-40b407600be4', 'name': 'ctest-vn-83880330', 'tenant_id': 'f92e5fd210b546c983559f412dc60f55', 'project_id': 'f92e5fd210b546c983559f412dc60f55', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['708e1b82-f759-48de-9a3c-c2f02b1cc12b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02604041', 'ctest-vn-83880330'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02604041', 'ctest-policy-allow-all-97302606']], 'subnet_ipam': [{'subnet_cidr': '48.94.226.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-20 02:20:19,840 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2025-01-20 02:20:20,215 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2025-01-20 02:20:20,253 - DEBUG - Requesting: http://10.0.0.40:8082/domain/21c3f377-201f-4207-b4ef-b03c1c786541
2025-01-20 02:20:20,278 - DEBUG - Requesting: http://10.0.0.40:8082/project/f92e5fd2-10b5-46c9-8355-9f412dc60f55
2025-01-20 02:20:20,357 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/21229849-a96e-473c-8993-ed79732663ff
2025-01-20 02:20:20,367 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/21229849-a96e-473c-8993-ed79732663ff
2025-01-20 02:20:20,375 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/b47210a1-5acd-4f10-9c49-9a908d7fe6ab
2025-01-20 02:20:20,384 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/b47210a1-5acd-4f10-9c49-9a908d7fe6ab
2025-01-20 02:20:20,394 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/48f7a149-6e78-467e-87c5-37b0c303cd39
2025-01-20 02:20:20,403 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-20 02:20:20,403 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/21229849-a96e-473c-8993-ed79732663ff
2025-01-20 02:20:20,415 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/b47210a1-5acd-4f10-9c49-9a908d7fe6ab
2025-01-20 02:20:20,430 - INFO - Verified VN network id 9 for VN 21229849-a96e-473c-8993-ed79732663ff
2025-01-20 02:20:20,430 - INFO - Verifications in API Server for VN ctest-vn-37266972 passed
2025-01-20 02:20:20,430 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/21229849-a96e-473c-8993-ed79732663ff
2025-01-20 02:20:20,439 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/b47210a1-5acd-4f10-9c49-9a908d7fe6ab
2025-01-20 02:20:20,448 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/b47210a1-5acd-4f10-9c49-9a908d7fe6ab
2025-01-20 02:20:20,456 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/48f7a149-6e78-467e-87c5-37b0c303cd39
2025-01-20 02:20:20,471 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02604041:ctest-vn-37266972', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02604041', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2387638194602395452', 'uuid-lslong': '9913528310651315199'}, 'enable': 'true', 'created': '2025-01-20T02:20:17', 'last-modified': '2025-01-20T02:20:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.241372'}
2025-01-20 02:20:20,480 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-20 02:20:20,481 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37266972 passed
2025-01-20 02:20:20,481 - DEBUG - ====Verifying policy data for ctest-vn-37266972 in API_Server ======
2025-01-20 02:20:20,481 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2025-01-20 02:20:20,489 - DEBUG - Requesting: http://10.0.0.40:8082/domain/21c3f377-201f-4207-b4ef-b03c1c786541
2025-01-20 02:20:20,504 - DEBUG - Requesting: http://10.0.0.40:8082/project/f92e5fd2-10b5-46c9-8355-9f412dc60f55
2025-01-20 02:20:20,574 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/21229849-a96e-473c-8993-ed79732663ff
2025-01-20 02:20:20,584 - DEBUG - ==>Verifying data for policy with id: ccc1802f-d2aa-42b7-8086-be2c00579f20, fqn: ['default-domain', 'ctest-TestBasicPolicy-02604041', 'ctest-policy-allow-all-97302606']
2025-01-20 02:20:20,584 - INFO - VN ctest-vn-37266972 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-20 02:20:20,584 - DEBUG - Verifying the vn in opserver
2025-01-20 02:20:20,584 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02604041:ctest-vn-37266972 virtual network link through opserver 10.0.0.40
2025-01-20 02:20:20,584 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2025-01-20 02:20:20,922 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2025-01-20 02:20:20,988 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02604041:ctest-vn-37266972', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02604041:ctest-vn-37266972?flat'}
2025-01-20 02:20:20,988 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02604041:ctest-vn-37266972 is found in opserver
2025-01-20 02:20:21,002 - DEBUG - Do not have enough data to verify VN in agent
2025-01-20 02:20:21,009 - DEBUG - VRF ids for VN ctest-vn-37266972: {}
2025-01-20 02:20:21,009 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2025-01-20 02:20:21,017 - DEBUG - Requesting: http://10.0.0.40:8082/domain/21c3f377-201f-4207-b4ef-b03c1c786541
2025-01-20 02:20:21,030 - DEBUG - Requesting: http://10.0.0.40:8082/project/f92e5fd2-10b5-46c9-8355-9f412dc60f55
2025-01-20 02:20:21,105 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/2853fc47-7741-402e-b72c-40b407600be4
2025-01-20 02:20:21,120 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/2853fc47-7741-402e-b72c-40b407600be4
2025-01-20 02:20:21,131 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/15505747-016e-47e3-ab4c-262de0305f56
2025-01-20 02:20:21,139 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/15505747-016e-47e3-ab4c-262de0305f56
2025-01-20 02:20:21,149 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/d6ac13a0-2f2f-4fb6-8c9f-415a4996b5bd
2025-01-20 02:20:21,159 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-20 02:20:21,159 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/2853fc47-7741-402e-b72c-40b407600be4
2025-01-20 02:20:21,169 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/15505747-016e-47e3-ab4c-262de0305f56
2025-01-20 02:20:21,185 - INFO - Verified VN network id 10 for VN 2853fc47-7741-402e-b72c-40b407600be4
2025-01-20 02:20:21,185 - INFO - Verifications in API Server for VN ctest-vn-83880330 passed
2025-01-20 02:20:21,186 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/2853fc47-7741-402e-b72c-40b407600be4
2025-01-20 02:20:21,197 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/15505747-016e-47e3-ab4c-262de0305f56
2025-01-20 02:20:21,206 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/15505747-016e-47e3-ab4c-262de0305f56
2025-01-20 02:20:21,218 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/d6ac13a0-2f2f-4fb6-8c9f-415a4996b5bd
2025-01-20 02:20:21,235 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02604041:ctest-vn-83880330', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02604041', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2905943568457744430', 'uuid-lslong': '13198995749878107108'}, 'enable': 'true', 'created': '2025-01-20T02:20:18', 'last-modified': '2025-01-20T02:20:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.650380'}
2025-01-20 02:20:21,243 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-20 02:20:21,244 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83880330 passed
2025-01-20 02:20:21,244 - DEBUG - ====Verifying policy data for ctest-vn-83880330 in API_Server ======
2025-01-20 02:20:21,244 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2025-01-20 02:20:21,251 - DEBUG - Requesting: http://10.0.0.40:8082/domain/21c3f377-201f-4207-b4ef-b03c1c786541
2025-01-20 02:20:21,265 - DEBUG - Requesting: http://10.0.0.40:8082/project/f92e5fd2-10b5-46c9-8355-9f412dc60f55
2025-01-20 02:20:21,339 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/2853fc47-7741-402e-b72c-40b407600be4
2025-01-20 02:20:21,349 - DEBUG - ==>Verifying data for policy with id: ccc1802f-d2aa-42b7-8086-be2c00579f20, fqn: ['default-domain', 'ctest-TestBasicPolicy-02604041', 'ctest-policy-allow-all-97302606']
2025-01-20 02:20:21,349 - INFO - VN ctest-vn-83880330 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-20 02:20:21,349 - DEBUG - Verifying the vn in opserver
2025-01-20 02:20:21,349 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02604041:ctest-vn-83880330 virtual network link through opserver 10.0.0.40
2025-01-20 02:20:21,349 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2025-01-20 02:20:21,362 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02604041:ctest-vn-83880330', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02604041:ctest-vn-83880330?flat'}
2025-01-20 02:20:21,362 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02604041:ctest-vn-83880330 is found in opserver
2025-01-20 02:20:21,376 - DEBUG - Do not have enough data to verify VN in agent
2025-01-20 02:20:21,382 - DEBUG - VRF ids for VN ctest-vn-83880330: {}
2025-01-20 02:20:21,451 - DEBUG - Services list from nova: [