2025-08-28 02:36:19,188 - INFO - Domain Default found not creating 2025-08-28 02:36:19,335 - INFO - Project ctest-TestBasicPolicy-14792969 not found, creating it 2025-08-28 02:36:19,813 - INFO - Created Project:ctest-TestBasicPolicy-14792969, ID : d960c4d0-d9f3-44ab-89d8-fd763128f778 2025-08-28 02:36:21,208 - INFO - ================================================================================ 2025-08-28 02:36:21,209 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-08-28 02:36:21,209 - 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-28 02:36:22,461 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0', '10.20.0.254': '0'}, '10.0.0.27': {'10.20.0.17': '0', '10.20.0.25': '0'}} with 2025-08-28 02:36:22,461 - INFO - Initial checks done. Running the testcase now 2025-08-28 02:36:22,461 - INFO - 2025-08-28 02:36:23,094 - DEBUG - Response for create_network : {'network': {'id': 'd5faa3aa-b174-467d-bbac-f3660208b208', 'name': 'ctest-vn-31165338', 'tenant_id': 'd960c4d0d9f344ab89d8fd763128f778', 'project_id': 'd960c4d0d9f344ab89d8fd763128f778', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14792969', 'ctest-vn-31165338'], 'port_security_enabled': True, 'description': ''}} 2025-08-28 02:36:23,698 - DEBUG - Response for create_subnet : {'subnet': {'id': '43e74455-3fc6-4e7a-b631-9b465605aadc', 'name': '', 'tenant_id': 'd960c4d0d9f344ab89d8fd763128f778', 'network_id': 'd5faa3aa-b174-467d-bbac-f3660208b208', 'ip_version': 4, 'cidr': '181.221.105.0/26', 'allocation_pools': [{'start': '181.221.105.2', 'end': '181.221.105.62'}], 'gateway_ip': '181.221.105.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '181.221.105.2', 'tags': [], 'project_id': 'd960c4d0d9f344ab89d8fd763128f778'}} 2025-08-28 02:36:23,721 - INFO - Created VN ctest-vn-31165338 2025-08-28 02:36:23,734 - DEBUG - VN ctest-vn-31165338 UUID is d5faa3aa-b174-467d-bbac-f3660208b208 2025-08-28 02:36:24,054 - DEBUG - Response for create_network : {'network': {'id': '5a1ea05f-d8f3-4bab-b9ec-b3b5e8aa783f', 'name': 'ctest-vn-74073737', 'tenant_id': 'd960c4d0d9f344ab89d8fd763128f778', 'project_id': 'd960c4d0d9f344ab89d8fd763128f778', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14792969', 'ctest-vn-74073737'], 'port_security_enabled': True, 'description': ''}} 2025-08-28 02:36:24,303 - DEBUG - Response for create_subnet : {'subnet': {'id': '40092f09-d193-45e3-bc71-2a1a618ea667', 'name': '', 'tenant_id': 'd960c4d0d9f344ab89d8fd763128f778', 'network_id': '5a1ea05f-d8f3-4bab-b9ec-b3b5e8aa783f', 'ip_version': 4, 'cidr': '173.137.191.128/26', 'allocation_pools': [{'start': '173.137.191.130', 'end': '173.137.191.190'}], 'gateway_ip': '173.137.191.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.137.191.130', 'tags': [], 'project_id': 'd960c4d0d9f344ab89d8fd763128f778'}} 2025-08-28 02:36:24,324 - INFO - Created VN ctest-vn-74073737 2025-08-28 02:36:24,336 - DEBUG - VN ctest-vn-74073737 UUID is 5a1ea05f-d8f3-4bab-b9ec-b3b5e8aa783f 2025-08-28 02:36:24,445 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-14792969:ctest-vn-31165338, 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-14792969:ctest-vn-74073737, 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-28 02:36:24,801 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd5faa3aa-b174-467d-bbac-f3660208b208', 'name': 'ctest-vn-31165338', 'tenant_id': 'd960c4d0d9f344ab89d8fd763128f778', 'project_id': 'd960c4d0d9f344ab89d8fd763128f778', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['43e74455-3fc6-4e7a-b631-9b465605aadc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14792969', 'ctest-vn-31165338'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14792969', 'ctest-policy-allow-all-28426019']], 'subnet_ipam': [{'subnet_cidr': '181.221.105.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-28 02:36:24,993 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5a1ea05f-d8f3-4bab-b9ec-b3b5e8aa783f', 'name': 'ctest-vn-74073737', 'tenant_id': 'd960c4d0d9f344ab89d8fd763128f778', 'project_id': 'd960c4d0d9f344ab89d8fd763128f778', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['40092f09-d193-45e3-bc71-2a1a618ea667'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14792969', 'ctest-vn-74073737'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14792969', 'ctest-policy-allow-all-28426019']], 'subnet_ipam': [{'subnet_cidr': '173.137.191.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-28 02:36:25,127 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-28 02:36:25,439 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-28 02:36:25,466 - DEBUG - Requesting: http://10.0.0.19:8082/domain/692c5a68-a199-4232-a07c-1cd4918de9d4 2025-08-28 02:36:25,480 - DEBUG - Requesting: http://10.0.0.19:8082/project/d960c4d0-d9f3-44ab-89d8-fd763128f778 2025-08-28 02:36:25,571 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/d5faa3aa-b174-467d-bbac-f3660208b208 2025-08-28 02:36:25,584 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/d5faa3aa-b174-467d-bbac-f3660208b208 2025-08-28 02:36:25,594 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/cdea5524-6e5d-4846-9d6c-b64ca912d5ed 2025-08-28 02:36:25,601 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/cdea5524-6e5d-4846-9d6c-b64ca912d5ed 2025-08-28 02:36:25,607 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/fce5eac7-a8ed-4243-bf7e-0568531e6497 2025-08-28 02:36:25,613 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-28 02:36:25,613 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/d5faa3aa-b174-467d-bbac-f3660208b208 2025-08-28 02:36:25,621 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/cdea5524-6e5d-4846-9d6c-b64ca912d5ed 2025-08-28 02:36:25,635 - INFO - Verified VN network id 12 for VN d5faa3aa-b174-467d-bbac-f3660208b208 2025-08-28 02:36:25,635 - INFO - Verifications in API Server for VN ctest-vn-31165338 passed 2025-08-28 02:36:25,635 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/d5faa3aa-b174-467d-bbac-f3660208b208 2025-08-28 02:36:25,645 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/cdea5524-6e5d-4846-9d6c-b64ca912d5ed 2025-08-28 02:36:25,652 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/cdea5524-6e5d-4846-9d6c-b64ca912d5ed 2025-08-28 02:36:25,661 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/fce5eac7-a8ed-4243-bf7e-0568531e6497 2025-08-28 02:36:25,675 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14792969:ctest-vn-31165338', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14792969', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15418816227773269629', 'uuid-lslong': '13523451400533094920'}, 'enable': 'true', 'created': '2025-08-28T02:36:23', 'last-modified': '2025-08-28T02:36:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.942634'} 2025-08-28 02:36:25,682 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-28 02:36:25,687 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14792969:ctest-vn-31165338', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14792969', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15418816227773269629', 'uuid-lslong': '13523451400533094920'}, 'enable': 'true', 'created': '2025-08-28T02:36:23', 'last-modified': '2025-08-28T02:36:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.941762'} 2025-08-28 02:36:25,693 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-28 02:36:25,698 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14792969:ctest-vn-31165338', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14792969', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15418816227773269629', 'uuid-lslong': '13523451400533094920'}, 'enable': 'true', 'created': '2025-08-28T02:36:23', 'last-modified': '2025-08-28T02:36:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.966474'} 2025-08-28 02:36:25,702 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-28 02:36:25,703 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31165338 passed 2025-08-28 02:36:25,703 - DEBUG - ====Verifying policy data for ctest-vn-31165338 in API_Server ====== 2025-08-28 02:36:25,703 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-28 02:36:25,708 - DEBUG - Requesting: http://10.0.0.19:8082/domain/692c5a68-a199-4232-a07c-1cd4918de9d4 2025-08-28 02:36:25,718 - DEBUG - Requesting: http://10.0.0.19:8082/project/d960c4d0-d9f3-44ab-89d8-fd763128f778 2025-08-28 02:36:25,809 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/d5faa3aa-b174-467d-bbac-f3660208b208 2025-08-28 02:36:25,829 - DEBUG - ==>Verifying data for policy with id: 5af2cf04-35d0-4ab0-8a5b-daad5a72ffdb, fqn: ['default-domain', 'ctest-TestBasicPolicy-14792969', 'ctest-policy-allow-all-28426019'] 2025-08-28 02:36:25,829 - INFO - VN ctest-vn-31165338 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-28 02:36:25,830 - DEBUG - Verifying the vn in opserver 2025-08-28 02:36:25,830 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14792969:ctest-vn-31165338 virtual network link through opserver 10.0.0.19 2025-08-28 02:36:25,830 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-08-28 02:36:26,124 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-08-28 02:36:26,176 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14792969:ctest-vn-31165338', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14792969:ctest-vn-31165338?flat'} 2025-08-28 02:36:26,176 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14792969:ctest-vn-31165338 virtual network link through opserver 10.0.0.38 2025-08-28 02:36:26,176 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-28 02:36:26,469 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-28 02:36:26,522 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14792969:ctest-vn-31165338', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14792969:ctest-vn-31165338?flat'} 2025-08-28 02:36:26,523 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14792969:ctest-vn-31165338 virtual network link through opserver 10.0.0.41 2025-08-28 02:36:26,523 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-08-28 02:36:26,813 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-08-28 02:36:26,868 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14792969:ctest-vn-31165338', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14792969:ctest-vn-31165338?flat'} 2025-08-28 02:36:26,868 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14792969:ctest-vn-31165338 is found in opserver 2025-08-28 02:36:26,885 - DEBUG - Do not have enough data to verify VN in agent 2025-08-28 02:36:26,893 - DEBUG - VRF ids for VN ctest-vn-31165338: {} 2025-08-28 02:36:26,893 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-28 02:36:26,899 - DEBUG - Requesting: http://10.0.0.19:8082/domain/692c5a68-a199-4232-a07c-1cd4918de9d4 2025-08-28 02:36:26,910 - DEBUG - Requesting: http://10.0.0.19:8082/project/d960c4d0-d9f3-44ab-89d8-fd763128f778 2025-08-28 02:36:27,033 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/5a1ea05f-d8f3-4bab-b9ec-b3b5e8aa783f 2025-08-28 02:36:27,050 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/5a1ea05f-d8f3-4bab-b9ec-b3b5e8aa783f 2025-08-28 02:36:27,059 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/fe7f4f53-a0ac-4777-9a82-bc11327c1d53 2025-08-28 02:36:27,067 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/fe7f4f53-a0ac-4777-9a82-bc11327c1d53 2025-08-28 02:36:27,074 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/b19d2748-9713-4d0a-88f5-905aaaf9fb6d 2025-08-28 02:36:27,081 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-28 02:36:27,081 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/5a1ea05f-d8f3-4bab-b9ec-b3b5e8aa783f 2025-08-28 02:36:27,091 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/fe7f4f53-a0ac-4777-9a82-bc11327c1d53 2025-08-28 02:36:27,120 - INFO - Verified VN network id 13 for VN 5a1ea05f-d8f3-4bab-b9ec-b3b5e8aa783f 2025-08-28 02:36:27,120 - INFO - Verifications in API Server for VN ctest-vn-74073737 passed 2025-08-28 02:36:27,120 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/5a1ea05f-d8f3-4bab-b9ec-b3b5e8aa783f 2025-08-28 02:36:27,130 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/fe7f4f53-a0ac-4777-9a82-bc11327c1d53 2025-08-28 02:36:27,137 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/fe7f4f53-a0ac-4777-9a82-bc11327c1d53 2025-08-28 02:36:27,145 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/b19d2748-9713-4d0a-88f5-905aaaf9fb6d 2025-08-28 02:36:27,162 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14792969:ctest-vn-74073737', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14792969', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6493804046236994475', 'uuid-lslong': '13397280585394321471'}, 'enable': 'true', 'created': '2025-08-28T02:36:24', 'last-modified': '2025-08-28T02:36:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.204957'} 2025-08-28 02:36:27,170 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-28 02:36:27,177 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14792969:ctest-vn-74073737', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14792969', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6493804046236994475', 'uuid-lslong': '13397280585394321471'}, 'enable': 'true', 'created': '2025-08-28T02:36:24', 'last-modified': '2025-08-28T02:36:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.219038'} 2025-08-28 02:36:27,186 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-28 02:36:27,192 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14792969:ctest-vn-74073737', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14792969', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6493804046236994475', 'uuid-lslong': '13397280585394321471'}, 'enable': 'true', 'created': '2025-08-28T02:36:24', 'last-modified': '2025-08-28T02:36:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.234036'} 2025-08-28 02:36:27,202 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-28 02:36:27,202 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74073737 passed 2025-08-28 02:36:27,202 - DEBUG - ====Verifying policy data for ctest-vn-74073737 in API_Server ====== 2025-08-28 02:36:27,202 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-28 02:36:27,210 - DEBUG - Requesting: http://10.0.0.19:8082/domain/692c5a68-a199-4232-a07c-1cd4918de9d4 2025-08-28 02:36:27,223 - DEBUG - Requesting: http://10.0.0.19:8082/project/d960c4d0-d9f3-44ab-89d8-fd763128f778 2025-08-28 02:36:27,332 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/5a1ea05f-d8f3-4bab-b9ec-b3b5e8aa783f 2025-08-28 02:36:27,342 - DEBUG - ==>Verifying data for policy with id: 5af2cf04-35d0-4ab0-8a5b-daad5a72ffdb, fqn: ['default-domain', 'ctest-TestBasicPolicy-14792969', 'ctest-policy-allow-all-28426019'] 2025-08-28 02:36:27,342 - INFO - VN ctest-vn-74073737 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-28 02:36:27,342 - DEBUG - Verifying the vn in opserver 2025-08-28 02:36:27,342 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14792969:ctest-vn-74073737 virtual network link through opserver 10.0.0.19 2025-08-28 02:36:27,342 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-08-28 02:36:27,387 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14792969:ctest-vn-74073737', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14792969:ctest-vn-74073737?flat'} 2025-08-28 02:36:27,387 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14792969:ctest-vn-74073737 virtual network link through opserver 10.0.0.38 2025-08-28 02:36:27,388 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-28 02:36:27,442 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14792969:ctest-vn-74073737', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14792969:ctest-vn-74073737?flat'} 2025-08-28 02:36:27,442 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14792969:ctest-vn-74073737 virtual network link through opserver 10.0.0.41 2025-08-28 02:36:27,442 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-08-28 02:36:27,490 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14792969:ctest-vn-74073737', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14792969:ctest-vn-74073737?flat'} 2025-08-28 02:36:27,490 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14792969:ctest-vn-74073737 is found in opserver 2025-08-28 02:36:27,511 - DEBUG - Do not have enough data to verify VN in agent 2025-08-28 02:36:27,522 - DEBUG - VRF ids for VN ctest-vn-74073737: {} 2025-08-28 02:36:27,581 - DEBUG - Services list from nova: [, , , ] 2025-08-28 02:36:28,614 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3956-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3956-1) 2025-08-28 02:36:29,903 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3956-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3956-2) 2025-08-28 02:36:29,903 - INFO - Waiting for VM ctest-TestBasicPolicy-14792969-27010146 to be up.. 2025-08-28 02:36:29,983 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-28 02:36:35,082 - DEBUG - VM is in ACTIVE state now 2025-08-28 02:36:35,083 - INFO - VM name : ctest-TestBasicPolicy-14792969-27010146 2025-08-28 02:36:35,169 - DEBUG - VM ctest-TestBasicPolicy-14792969-27010146 ID is c10d37c7-0986-46e4-af45-de7875fdfca7 2025-08-28 02:36:35,204 - DEBUG - VM ctest-TestBasicPolicy-14792969-27010146 launched on Node an-jenkins-deploy-platform-ansible-os-3956-1 2025-08-28 02:36:35,300 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/c10d37c7-0986-46e4-af45-de7875fdfca7 2025-08-28 02:36:35,603 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/c10d37c7-0986-46e4-af45-de7875fdfca7 2025-08-28 02:36:35,635 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/838bb3c8-46af-4fa7-988f-cecea67c90d4 2025-08-28 02:36:38,801 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1002ms') 2025-08-28 02:36:38,801 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14792969-27010146 failed! 2025-08-28 02:36:38,815 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-14792969:ctest-vn-31165338 is 181.221.105.1 and allocation pool is NOT set 2025-08-28 02:36:42,891 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1016ms') 2025-08-28 02:36:42,891 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14792969-27010146 failed! 2025-08-28 02:36:42,904 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-14792969:ctest-vn-31165338 is 181.221.105.1 and allocation pool is NOT set 2025-08-28 02:36:46,993 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1027ms') 2025-08-28 02:36:46,994 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14792969-27010146 failed! 2025-08-28 02:36:47,006 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-14792969:ctest-vn-31165338 is 181.221.105.1 and allocation pool is NOT set 2025-08-28 02:36:51,089 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1020ms') 2025-08-28 02:36:51,089 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14792969-27010146 failed! 2025-08-28 02:36:51,101 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-14792969:ctest-vn-31165338 is 181.221.105.1 and allocation pool is NOT set 2025-08-28 02:36:55,175 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1019ms') 2025-08-28 02:36:55,175 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14792969-27010146 failed! 2025-08-28 02:36:55,188 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-14792969:ctest-vn-31165338 is 181.221.105.1 and allocation pool is NOT set 2025-08-28 02:36:59,280 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1028ms') 2025-08-28 02:36:59,280 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14792969-27010146 failed! 2025-08-28 02:36:59,294 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-14792969:ctest-vn-31165338 is 181.221.105.1 and allocation pool is NOT set 2025-08-28 02:37:03,375 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1020ms') 2025-08-28 02:37:03,375 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14792969-27010146 failed! 2025-08-28 02:37:03,387 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-14792969:ctest-vn-31165338 is 181.221.105.1 and allocation pool is NOT set 2025-08-28 02:37:05,447 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=8.31 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.09 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 1.085/4.695/8.305/3.610 ms') 2025-08-28 02:37:05,447 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14792969-27010146 passed 2025-08-28 02:37:05,521 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-28 02:37:05,521 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14792969-27010146, IP 181.221.105.3, Port 22 2025-08-28 02:37:05,589 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-08-28 02:37:05,664 - DEBUG - VM ctest-TestBasicPolicy-14792969-27010146 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-28 02:37:10,664 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-28 02:37:10,665 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14792969-27010146, IP 181.221.105.3, Port 22 2025-08-28 02:37:10,732 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-08-28 02:37:10,823 - DEBUG - VM ctest-TestBasicPolicy-14792969-27010146 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-28 02:37:15,824 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-28 02:37:15,824 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14792969-27010146, IP 181.221.105.3, Port 22 2025-08-28 02:37:15,882 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-08-28 02:37:15,956 - DEBUG - VM ctest-TestBasicPolicy-14792969-27010146 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-28 02:37:20,957 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-28 02:37:20,957 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14792969-27010146, IP 181.221.105.3, Port 22 2025-08-28 02:37:21,014 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-08-28 02:37:21,089 - DEBUG - VM ctest-TestBasicPolicy-14792969-27010146 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-28 02:37:26,089 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-28 02:37:26,089 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14792969-27010146, IP 181.221.105.3, Port 22 2025-08-28 02:37:26,247 - DEBUG - VM ctest-TestBasicPolicy-14792969-27010146 is ready for SSH connections 2025-08-28 02:37:26,247 - INFO - Waiting for VM ctest-TestBasicPolicy-14792969-05830751 to be up.. 2025-08-28 02:37:26,337 - DEBUG - VM is in ACTIVE state now 2025-08-28 02:37:26,337 - INFO - VM name : ctest-TestBasicPolicy-14792969-05830751 2025-08-28 02:37:26,414 - DEBUG - VM ctest-TestBasicPolicy-14792969-05830751 ID is 049c16ee-d960-44c4-82f7-58ecaeb22e5c 2025-08-28 02:37:26,414 - DEBUG - VM ctest-TestBasicPolicy-14792969-05830751 launched on Node an-jenkins-deploy-platform-ansible-os-3956-2 2025-08-28 02:37:26,490 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/049c16ee-d960-44c4-82f7-58ecaeb22e5c 2025-08-28 02:37:26,499 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/1fd9cd75-7c3d-4734-94a6-3a52fae21ece 2025-08-28 02:37:27,651 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=5.29 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.27 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 1.265/3.275/5.286/2.010 ms') 2025-08-28 02:37:27,651 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14792969-05830751 passed 2025-08-28 02:37:27,717 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-28 02:37:27,717 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14792969-05830751, IP 173.137.191.131, Port 22 2025-08-28 02:37:27,884 - DEBUG - VM ctest-TestBasicPolicy-14792969-05830751 is ready for SSH connections 2025-08-28 02:37:27,884 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-28 02:37:27,884 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 173.137.191.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-08-28 02:37:27,884 - DEBUG - ping -s 56 -c 3 -W 1 173.137.191.131 2025-08-28 02:37:46,921 - DEBUG - PING 173.137.191.131 (173.137.191.131) 56(84) bytes of data. 64 bytes from 173.137.191.131: icmp_req=1 ttl=63 time=5.51 ms 64 bytes from 173.137.191.131: icmp_req=2 ttl=63 time=1.35 ms 64 bytes from 173.137.191.131: icmp_req=3 ttl=63 time=1.47 ms --- 173.137.191.131 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 1.356/2.781/5.512/1.931 ms 2025-08-28 02:37:46,921 - INFO - Ping to IP 173.137.191.131 from VM ctest-TestBasicPolicy-14792969-27010146 passed 2025-08-28 02:37:47,125 - DEBUG - Policy Update Response {"network-policy": {"uuid": "5af2cf04-35d0-4ab0-8a5b-daad5a72ffdb", "href": "http://10.0.0.41:8082/network-policy/5af2cf04-35d0-4ab0-8a5b-daad5a72ffdb"}} 2025-08-28 02:37:47,125 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-28 02:37:47,125 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 173.137.191.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-08-28 02:37:47,125 - DEBUG - ping -s 56 -c 3 -W 1 173.137.191.131 2025-08-28 02:37:50,580 - DEBUG - PING 173.137.191.131 (173.137.191.131) 56(84) bytes of data. 64 bytes from 173.137.191.131: icmp_req=1 ttl=63 time=4.18 ms --- 173.137.191.131 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2011ms rtt min/avg/max/mdev = 4.184/4.184/4.184/0.000 ms 2025-08-28 02:37:50,580 - WARNING - Ping to IP 173.137.191.131 from VM ctest-TestBasicPolicy-14792969-27010146 failed 2025-08-28 02:37:50,580 - INFO - Deleting VM ctest-TestBasicPolicy-14792969-05830751 2025-08-28 02:37:50,646 - INFO - Deleting VM ctest-TestBasicPolicy-14792969-27010146 2025-08-28 02:37:51,113 - INFO - Deleted policy ctest-policy-allow-all-28426019 2025-08-28 02:37:51,113 - INFO - Deleting VN ctest-vn-74073737 2025-08-28 02:37:51,165 - DEBUG - VN 5a1ea05f-d8f3-4bab-b9ec-b3b5e8aa783f still in use: Unable to complete operation on network 5a1ea05f-d8f3-4bab-b9ec-b3b5e8aa783f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-05f670ef-5edf-4d36-b22e-5c2286ce7404'] 2025-08-28 02:37:51,165 - WARNING - Deleting VN ctest-vn-74073737 failed..Will retry 2025-08-28 02:37:53,308 - DEBUG - Response for deleting network () 2025-08-28 02:37:53,308 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/fe7f4f53-a0ac-4777-9a82-bc11327c1d53 2025-08-28 02:37:53,314 - DEBUG - Response Code: 404 2025-08-28 02:37:53,314 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-28 02:37:53,334 - DEBUG - Requesting: http://10.0.0.19:8082/domain/692c5a68-a199-4232-a07c-1cd4918de9d4 2025-08-28 02:37:53,393 - DEBUG - Requesting: http://10.0.0.19:8082/project/d960c4d0-d9f3-44ab-89d8-fd763128f778 2025-08-28 02:37:53,487 - INFO - Validated that VN ctest-vn-74073737 is not found in API Server 2025-08-28 02:37:53,498 - DEBUG - VN ctest-vn-74073737 is not present in Agent 10.0.0.65 2025-08-28 02:37:53,510 - DEBUG - VN ctest-vn-74073737 is not present in Agent 10.0.0.27 2025-08-28 02:37:53,510 - INFO - Validated that VN ctest-vn-74073737 is not in any agent 2025-08-28 02:37:53,539 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-74073737 info 2025-08-28 02:37:53,539 - INFO - Deleting VN ctest-vn-31165338 2025-08-28 02:37:53,691 - DEBUG - Response for deleting network () 2025-08-28 02:37:53,691 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/cdea5524-6e5d-4846-9d6c-b64ca912d5ed 2025-08-28 02:37:53,697 - DEBUG - Response Code: 404 2025-08-28 02:37:53,697 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-28 02:37:53,703 - DEBUG - Requesting: http://10.0.0.19:8082/domain/692c5a68-a199-4232-a07c-1cd4918de9d4 2025-08-28 02:37:53,727 - DEBUG - Requesting: http://10.0.0.19:8082/project/d960c4d0-d9f3-44ab-89d8-fd763128f778 2025-08-28 02:37:53,825 - INFO - Validated that VN ctest-vn-31165338 is not found in API Server 2025-08-28 02:37:53,835 - DEBUG - VN ctest-vn-31165338 is not present in Agent 10.0.0.65 2025-08-28 02:37:53,843 - DEBUG - VN ctest-vn-31165338 is not present in Agent 10.0.0.27 2025-08-28 02:37:53,844 - INFO - Validated that VN ctest-vn-31165338 is not in any agent 2025-08-28 02:37:53,870 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-31165338 info 2025-08-28 02:37:55,132 - DEBUG - No XMPP flaps were noticed during the test 2025-08-28 02:37:55,132 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:34] 2025-08-28 02:37:55,133 - INFO - -------------------------------------------------------------------------------- 2025-08-28 02:37:55,823 - INFO - Deleted project: ctest-TestBasicPolicy-14792969, ID : d960c4d0-d9f3-44ab-89d8-fd763128f778