2025-02-12 08:17:18,535 - INFO - Domain Default found not creating 2025-02-12 08:17:18,707 - INFO - Project ctest-TestBasicPolicy-89720379 not found, creating it 2025-02-12 08:17:19,200 - INFO - Created Project:ctest-TestBasicPolicy-89720379, ID : adc6d6ce-27b4-4f70-89f8-a327f6576fa2 2025-02-12 08:17:20,879 - INFO - ================================================================================ 2025-02-12 08:17:20,879 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-02-12 08:17:20,879 - 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-02-12 08:17:21,142 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.6': '0'}} with 2025-02-12 08:17:21,142 - INFO - Initial checks done. Running the testcase now 2025-02-12 08:17:21,142 - INFO - 2025-02-12 08:17:21,767 - DEBUG - Response for create_network : {'network': {'id': 'e56959b2-48bc-4a2a-9c1e-53cd10d2ba8e', 'name': 'ctest-vn-24719230', 'tenant_id': 'adc6d6ce27b44f7089f8a327f6576fa2', 'project_id': 'adc6d6ce27b44f7089f8a327f6576fa2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89720379', 'ctest-vn-24719230'], 'port_security_enabled': True, 'description': ''}} 2025-02-12 08:17:22,009 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aa8a63b9-4624-4c78-9200-9e5ec8b793d7', 'name': '', 'tenant_id': 'adc6d6ce27b44f7089f8a327f6576fa2', 'network_id': 'e56959b2-48bc-4a2a-9c1e-53cd10d2ba8e', 'ip_version': 4, 'cidr': '112.255.19.64/26', 'allocation_pools': [{'start': '112.255.19.66', 'end': '112.255.19.126'}], 'gateway_ip': '112.255.19.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.255.19.66', 'tags': [], 'project_id': 'adc6d6ce27b44f7089f8a327f6576fa2'}} 2025-02-12 08:17:22,030 - INFO - Created VN ctest-vn-24719230 2025-02-12 08:17:22,086 - DEBUG - VN ctest-vn-24719230 UUID is e56959b2-48bc-4a2a-9c1e-53cd10d2ba8e 2025-02-12 08:17:22,670 - DEBUG - Response for create_network : {'network': {'id': '370a0e82-06be-4ad1-8a8b-74cea2a3b7dc', 'name': 'ctest-vn-50701577', 'tenant_id': 'adc6d6ce27b44f7089f8a327f6576fa2', 'project_id': 'adc6d6ce27b44f7089f8a327f6576fa2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89720379', 'ctest-vn-50701577'], 'port_security_enabled': True, 'description': ''}} 2025-02-12 08:17:23,144 - DEBUG - Response for create_subnet : {'subnet': {'id': '8e71caf9-c04c-42b9-ac99-b204160d6b13', 'name': '', 'tenant_id': 'adc6d6ce27b44f7089f8a327f6576fa2', 'network_id': '370a0e82-06be-4ad1-8a8b-74cea2a3b7dc', 'ip_version': 4, 'cidr': '153.141.4.128/26', 'allocation_pools': [{'start': '153.141.4.130', 'end': '153.141.4.190'}], 'gateway_ip': '153.141.4.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '153.141.4.130', 'tags': [], 'project_id': 'adc6d6ce27b44f7089f8a327f6576fa2'}} 2025-02-12 08:17:23,182 - INFO - Created VN ctest-vn-50701577 2025-02-12 08:17:23,238 - DEBUG - VN ctest-vn-50701577 UUID is 370a0e82-06be-4ad1-8a8b-74cea2a3b7dc 2025-02-12 08:17:23,371 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89720379:ctest-vn-24719230, 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-89720379:ctest-vn-50701577, 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-02-12 08:17:23,689 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e56959b2-48bc-4a2a-9c1e-53cd10d2ba8e', 'name': 'ctest-vn-24719230', 'tenant_id': 'adc6d6ce27b44f7089f8a327f6576fa2', 'project_id': 'adc6d6ce27b44f7089f8a327f6576fa2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aa8a63b9-4624-4c78-9200-9e5ec8b793d7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89720379', 'ctest-vn-24719230'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89720379', 'ctest-policy-allow-all-15655505']], 'subnet_ipam': [{'subnet_cidr': '112.255.19.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-12 08:17:23,942 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '370a0e82-06be-4ad1-8a8b-74cea2a3b7dc', 'name': 'ctest-vn-50701577', 'tenant_id': 'adc6d6ce27b44f7089f8a327f6576fa2', 'project_id': 'adc6d6ce27b44f7089f8a327f6576fa2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8e71caf9-c04c-42b9-ac99-b204160d6b13'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89720379', 'ctest-vn-50701577'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89720379', 'ctest-policy-allow-all-15655505']], 'subnet_ipam': [{'subnet_cidr': '153.141.4.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-12 08:17:24,095 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-02-12 08:17:24,472 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-02-12 08:17:24,503 - DEBUG - Requesting: http://10.0.0.12:8082/domain/6320f057-964d-40b3-9820-b5a9f33ba791 2025-02-12 08:17:24,519 - DEBUG - Requesting: http://10.0.0.12:8082/project/adc6d6ce-27b4-4f70-89f8-a327f6576fa2 2025-02-12 08:17:24,600 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e56959b2-48bc-4a2a-9c1e-53cd10d2ba8e 2025-02-12 08:17:24,613 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e56959b2-48bc-4a2a-9c1e-53cd10d2ba8e 2025-02-12 08:17:24,624 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/ca92bd8c-3006-45ce-9f39-dbadf29a74ce 2025-02-12 08:17:24,634 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/ca92bd8c-3006-45ce-9f39-dbadf29a74ce 2025-02-12 08:17:24,642 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/cc2c4d0f-acb7-4e7c-8c6e-9774d8811aa6 2025-02-12 08:17:24,650 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-02-12 08:17:24,650 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e56959b2-48bc-4a2a-9c1e-53cd10d2ba8e 2025-02-12 08:17:24,661 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/ca92bd8c-3006-45ce-9f39-dbadf29a74ce 2025-02-12 08:17:24,678 - INFO - Verified VN network id 9 for VN e56959b2-48bc-4a2a-9c1e-53cd10d2ba8e 2025-02-12 08:17:24,678 - INFO - Verifications in API Server for VN ctest-vn-24719230 passed 2025-02-12 08:17:24,678 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e56959b2-48bc-4a2a-9c1e-53cd10d2ba8e 2025-02-12 08:17:24,689 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/ca92bd8c-3006-45ce-9f39-dbadf29a74ce 2025-02-12 08:17:24,698 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/ca92bd8c-3006-45ce-9f39-dbadf29a74ce 2025-02-12 08:17:24,707 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/cc2c4d0f-acb7-4e7c-8c6e-9774d8811aa6 2025-02-12 08:17:24,722 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89720379:ctest-vn-24719230', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89720379', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16530842529499466282', 'uuid-lslong': '11249521059433724558'}, 'enable': 'true', 'created': '2025-02-12T08:17:21', 'last-modified': '2025-02-12T08:17:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.063262'} 2025-02-12 08:17:24,729 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-02-12 08:17:24,730 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24719230 passed 2025-02-12 08:17:24,730 - DEBUG - ====Verifying policy data for ctest-vn-24719230 in API_Server ====== 2025-02-12 08:17:24,730 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-02-12 08:17:24,736 - DEBUG - Requesting: http://10.0.0.12:8082/domain/6320f057-964d-40b3-9820-b5a9f33ba791 2025-02-12 08:17:24,749 - DEBUG - Requesting: http://10.0.0.12:8082/project/adc6d6ce-27b4-4f70-89f8-a327f6576fa2 2025-02-12 08:17:24,837 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e56959b2-48bc-4a2a-9c1e-53cd10d2ba8e 2025-02-12 08:17:24,850 - DEBUG - ==>Verifying data for policy with id: 166278e0-7f8f-4b39-8b24-098752f7ca89, fqn: ['default-domain', 'ctest-TestBasicPolicy-89720379', 'ctest-policy-allow-all-15655505'] 2025-02-12 08:17:24,850 - INFO - VN ctest-vn-24719230 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-12 08:17:24,850 - DEBUG - Verifying the vn in opserver 2025-02-12 08:17:24,850 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89720379:ctest-vn-24719230 virtual network link through opserver 10.0.0.12 2025-02-12 08:17:24,850 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2025-02-12 08:17:25,186 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2025-02-12 08:17:25,252 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89720379:ctest-vn-24719230', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89720379:ctest-vn-24719230?flat'} 2025-02-12 08:17:25,253 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89720379:ctest-vn-24719230 is found in opserver 2025-02-12 08:17:25,269 - DEBUG - Do not have enough data to verify VN in agent 2025-02-12 08:17:25,275 - DEBUG - VRF ids for VN ctest-vn-24719230: {} 2025-02-12 08:17:25,276 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-02-12 08:17:25,283 - DEBUG - Requesting: http://10.0.0.12:8082/domain/6320f057-964d-40b3-9820-b5a9f33ba791 2025-02-12 08:17:25,298 - DEBUG - Requesting: http://10.0.0.12:8082/project/adc6d6ce-27b4-4f70-89f8-a327f6576fa2 2025-02-12 08:17:25,379 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/370a0e82-06be-4ad1-8a8b-74cea2a3b7dc 2025-02-12 08:17:25,394 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/370a0e82-06be-4ad1-8a8b-74cea2a3b7dc 2025-02-12 08:17:25,406 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/517d60d8-5465-43f5-bcab-ae18111b0cd3 2025-02-12 08:17:25,418 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/517d60d8-5465-43f5-bcab-ae18111b0cd3 2025-02-12 08:17:25,428 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/b339099e-80a2-494f-8146-51259807a7fa 2025-02-12 08:17:25,436 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-12 08:17:25,436 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/370a0e82-06be-4ad1-8a8b-74cea2a3b7dc 2025-02-12 08:17:25,447 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/517d60d8-5465-43f5-bcab-ae18111b0cd3 2025-02-12 08:17:25,465 - INFO - Verified VN network id 10 for VN 370a0e82-06be-4ad1-8a8b-74cea2a3b7dc 2025-02-12 08:17:25,465 - INFO - Verifications in API Server for VN ctest-vn-50701577 passed 2025-02-12 08:17:25,465 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/370a0e82-06be-4ad1-8a8b-74cea2a3b7dc 2025-02-12 08:17:25,477 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/517d60d8-5465-43f5-bcab-ae18111b0cd3 2025-02-12 08:17:25,486 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/517d60d8-5465-43f5-bcab-ae18111b0cd3 2025-02-12 08:17:25,495 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/b339099e-80a2-494f-8146-51259807a7fa 2025-02-12 08:17:25,510 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89720379:ctest-vn-50701577', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89720379', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3965998373474814673', 'uuid-lslong': '9983201429837559772'}, 'enable': 'true', 'created': '2025-02-12T08:17:22', 'last-modified': '2025-02-12T08:17:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.597473'} 2025-02-12 08:17:25,517 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-12 08:17:25,517 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50701577 passed 2025-02-12 08:17:25,517 - DEBUG - ====Verifying policy data for ctest-vn-50701577 in API_Server ====== 2025-02-12 08:17:25,517 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-02-12 08:17:25,524 - DEBUG - Requesting: http://10.0.0.12:8082/domain/6320f057-964d-40b3-9820-b5a9f33ba791 2025-02-12 08:17:25,537 - DEBUG - Requesting: http://10.0.0.12:8082/project/adc6d6ce-27b4-4f70-89f8-a327f6576fa2 2025-02-12 08:17:25,620 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/370a0e82-06be-4ad1-8a8b-74cea2a3b7dc 2025-02-12 08:17:25,632 - DEBUG - ==>Verifying data for policy with id: 166278e0-7f8f-4b39-8b24-098752f7ca89, fqn: ['default-domain', 'ctest-TestBasicPolicy-89720379', 'ctest-policy-allow-all-15655505'] 2025-02-12 08:17:25,632 - INFO - VN ctest-vn-50701577 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-12 08:17:25,632 - DEBUG - Verifying the vn in opserver 2025-02-12 08:17:25,632 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89720379:ctest-vn-50701577 virtual network link through opserver 10.0.0.12 2025-02-12 08:17:25,632 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2025-02-12 08:17:25,645 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89720379:ctest-vn-50701577', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89720379:ctest-vn-50701577?flat'} 2025-02-12 08:17:25,645 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89720379:ctest-vn-50701577 is found in opserver 2025-02-12 08:17:25,658 - DEBUG - Do not have enough data to verify VN in agent 2025-02-12 08:17:25,665 - DEBUG - VRF ids for VN ctest-vn-50701577: {} 2025-02-12 08:17:25,749 - DEBUG - Services list from nova: [, , ] 2025-02-12 08:17:26,950 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2727-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2727-1) 2025-02-12 08:17:28,476 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2727-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2727-1) 2025-02-12 08:17:28,476 - INFO - Waiting for VM ctest-TestBasicPolicy-89720379-12699240 to be up.. 2025-02-12 08:17:28,612 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-02-12 08:17:33,729 - DEBUG - VM is in ACTIVE state now 2025-02-12 08:17:33,729 - INFO - VM name : ctest-TestBasicPolicy-89720379-12699240 2025-02-12 08:17:33,819 - DEBUG - VM ctest-TestBasicPolicy-89720379-12699240 ID is 8fc40838-d157-4f38-b550-9ec9d9c68474 2025-02-12 08:17:33,842 - DEBUG - VM ctest-TestBasicPolicy-89720379-12699240 launched on Node cn-jenkins-deploy-platform-ansible-os-2727-1 2025-02-12 08:17:33,943 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/8fc40838-d157-4f38-b550-9ec9d9c68474 2025-02-12 08:17:33,956 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/0b30d6f3-a153-4550-bf02-6570b9e55224 2025-02-12 08:17:37,238 - 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 1034ms') 2025-02-12 08:17:37,238 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-89720379-12699240 failed! 2025-02-12 08:17:37,295 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-89720379:ctest-vn-24719230 is 112.255.19.65 and allocation pool is NOT set 2025-02-12 08:17:39,368 - 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.79 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.48 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 3.478/6.135/8.793/2.657 ms') 2025-02-12 08:17:39,368 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-89720379-12699240 passed 2025-02-12 08:17:39,534 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-12 08:17:39,535 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-89720379-12699240, IP 112.255.19.67, Port 22 2025-02-12 08:17:39,601 - DEBUG - Error on ssh to cirros@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-02-12 08:17:39,698 - DEBUG - VM ctest-TestBasicPolicy-89720379-12699240 is NOT ready for SSH connections, VM status: ACTIVE 2025-02-12 08:17:44,699 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-12 08:17:44,699 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-89720379-12699240, IP 112.255.19.67, Port 22 2025-02-12 08:17:44,854 - DEBUG - VM ctest-TestBasicPolicy-89720379-12699240 is ready for SSH connections 2025-02-12 08:17:44,854 - INFO - Waiting for VM ctest-TestBasicPolicy-89720379-37229386 to be up.. 2025-02-12 08:17:44,942 - DEBUG - VM is in ACTIVE state now 2025-02-12 08:17:44,942 - INFO - VM name : ctest-TestBasicPolicy-89720379-37229386 2025-02-12 08:17:45,033 - DEBUG - VM ctest-TestBasicPolicy-89720379-37229386 ID is f592ac23-1533-49bd-8acb-199b81dcd981 2025-02-12 08:17:45,033 - DEBUG - VM ctest-TestBasicPolicy-89720379-37229386 launched on Node cn-jenkins-deploy-platform-ansible-os-2727-1 2025-02-12 08:17:45,115 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/f592ac23-1533-49bd-8acb-199b81dcd981 2025-02-12 08:17:45,125 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/520b0b01-7a09-4571-8682-0cdb2584a238 2025-02-12 08:17:46,373 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=3.36 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.499 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.499/1.929/3.360/1.430 ms') 2025-02-12 08:17:46,373 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-89720379-37229386 passed 2025-02-12 08:17:46,526 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-12 08:17:46,527 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-89720379-37229386, IP 153.141.4.131, Port 22 2025-02-12 08:17:46,693 - DEBUG - VM ctest-TestBasicPolicy-89720379-37229386 is ready for SSH connections 2025-02-12 08:17:46,693 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-12 08:17:46,693 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 153.141.4.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2025-02-12 08:17:46,694 - DEBUG - ping -s 56 -c 3 -W 1 153.141.4.131 2025-02-12 08:17:50,453 - DEBUG - PING 153.141.4.131 (153.141.4.131): 56 data bytes 64 bytes from 153.141.4.131: seq=0 ttl=63 time=4.116 ms 64 bytes from 153.141.4.131: seq=1 ttl=63 time=1.208 ms 64 bytes from 153.141.4.131: seq=2 ttl=63 time=0.816 ms --- 153.141.4.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.816/2.046/4.116 ms 2025-02-12 08:17:50,453 - INFO - Ping to IP 153.141.4.131 from VM ctest-TestBasicPolicy-89720379-12699240 passed 2025-02-12 08:17:50,658 - DEBUG - Policy Update Response {"network-policy": {"uuid": "166278e0-7f8f-4b39-8b24-098752f7ca89", "href": "http://10.0.0.12:8082/network-policy/166278e0-7f8f-4b39-8b24-098752f7ca89"}} 2025-02-12 08:17:50,659 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-12 08:17:50,659 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 153.141.4.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2025-02-12 08:17:50,659 - DEBUG - ping -s 56 -c 3 -W 1 153.141.4.131 2025-02-12 08:17:53,932 - DEBUG - PING 153.141.4.131 (153.141.4.131): 56 data bytes --- 153.141.4.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-02-12 08:17:53,932 - WARNING - Ping to IP 153.141.4.131 from VM ctest-TestBasicPolicy-89720379-12699240 failed 2025-02-12 08:17:53,932 - INFO - Deleting VM ctest-TestBasicPolicy-89720379-37229386 2025-02-12 08:17:54,005 - INFO - Deleting VM ctest-TestBasicPolicy-89720379-12699240 2025-02-12 08:17:54,436 - INFO - Deleted policy ctest-policy-allow-all-15655505 2025-02-12 08:17:54,436 - INFO - Deleting VN ctest-vn-50701577 2025-02-12 08:17:54,479 - DEBUG - VN 370a0e82-06be-4ad1-8a8b-74cea2a3b7dc still in use: Unable to complete operation on network 370a0e82-06be-4ad1-8a8b-74cea2a3b7dc. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-3bff4f71-daf9-45e3-978b-b7bae20da8b3'] 2025-02-12 08:17:54,479 - WARNING - Deleting VN ctest-vn-50701577 failed..Will retry 2025-02-12 08:17:56,659 - DEBUG - Response for deleting network () 2025-02-12 08:17:56,659 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/517d60d8-5465-43f5-bcab-ae18111b0cd3 2025-02-12 08:17:56,666 - DEBUG - Response Code: 404 2025-02-12 08:17:56,666 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-02-12 08:17:56,677 - DEBUG - Requesting: http://10.0.0.12:8082/domain/6320f057-964d-40b3-9820-b5a9f33ba791 2025-02-12 08:17:56,741 - DEBUG - Requesting: http://10.0.0.12:8082/project/adc6d6ce-27b4-4f70-89f8-a327f6576fa2 2025-02-12 08:17:56,820 - INFO - Validated that VN ctest-vn-50701577 is not found in API Server 2025-02-12 08:17:56,833 - DEBUG - VN ctest-vn-50701577 is not present in Agent 10.0.0.12 2025-02-12 08:17:56,833 - INFO - Validated that VN ctest-vn-50701577 is not in any agent 2025-02-12 08:17:56,852 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-50701577 info 2025-02-12 08:17:56,852 - INFO - Deleting VN ctest-vn-24719230 2025-02-12 08:17:56,976 - DEBUG - Response for deleting network () 2025-02-12 08:17:56,976 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/ca92bd8c-3006-45ce-9f39-dbadf29a74ce 2025-02-12 08:17:56,983 - DEBUG - Response Code: 404 2025-02-12 08:17:56,983 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-02-12 08:17:56,992 - DEBUG - Requesting: http://10.0.0.12:8082/domain/6320f057-964d-40b3-9820-b5a9f33ba791 2025-02-12 08:17:57,053 - DEBUG - Requesting: http://10.0.0.12:8082/project/adc6d6ce-27b4-4f70-89f8-a327f6576fa2 2025-02-12 08:17:57,133 - INFO - Validated that VN ctest-vn-24719230 is not found in API Server 2025-02-12 08:17:57,159 - DEBUG - VN ctest-vn-24719230 is not present in Agent 10.0.0.12 2025-02-12 08:17:57,159 - INFO - Validated that VN ctest-vn-24719230 is not in any agent 2025-02-12 08:17:57,178 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-24719230 info 2025-02-12 08:17:57,450 - DEBUG - No XMPP flaps were noticed during the test 2025-02-12 08:17:57,450 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37] 2025-02-12 08:17:57,450 - INFO - -------------------------------------------------------------------------------- 2025-02-12 08:17:58,181 - INFO - Deleted project: ctest-TestBasicPolicy-89720379, ID : adc6d6ce-27b4-4f70-89f8-a327f6576fa2