2025-01-13 02:35:43,720 - INFO - Domain Default found not creating 2025-01-13 02:35:43,947 - INFO - Project ctest-TestBasicPolicy-86973582 not found, creating it 2025-01-13 02:35:44,763 - INFO - Created Project:ctest-TestBasicPolicy-86973582, ID : 9efc1c58-8361-4b13-b7fd-cb8ea5540968 2025-01-13 02:35:46,402 - INFO - ================================================================================ 2025-01-13 02:35:46,402 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-13 02:35:46,402 - 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-13 02:35:46,660 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.21': '0'}} with 2025-01-13 02:35:46,660 - INFO - Initial checks done. Running the testcase now 2025-01-13 02:35:46,661 - INFO - 2025-01-13 02:35:47,290 - DEBUG - Response for create_network : {'network': {'id': '19a7a2cf-d326-449a-85bb-73837ebc6ee8', 'name': 'ctest-vn-50581802', 'tenant_id': '9efc1c5883614b13b7fdcb8ea5540968', 'project_id': '9efc1c5883614b13b7fdcb8ea5540968', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86973582', 'ctest-vn-50581802'], 'port_security_enabled': True, 'description': ''}} 2025-01-13 02:35:47,515 - DEBUG - Response for create_subnet : {'subnet': {'id': '2b45400a-6de5-45f3-a0a9-6cca921821ae', 'name': '', 'tenant_id': '9efc1c5883614b13b7fdcb8ea5540968', 'network_id': '19a7a2cf-d326-449a-85bb-73837ebc6ee8', 'ip_version': 4, 'cidr': '119.220.65.128/26', 'allocation_pools': [{'start': '119.220.65.130', 'end': '119.220.65.190'}], 'gateway_ip': '119.220.65.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '119.220.65.130', 'tags': [], 'project_id': '9efc1c5883614b13b7fdcb8ea5540968'}} 2025-01-13 02:35:47,536 - INFO - Created VN ctest-vn-50581802 2025-01-13 02:35:47,589 - DEBUG - VN ctest-vn-50581802 UUID is 19a7a2cf-d326-449a-85bb-73837ebc6ee8 2025-01-13 02:35:47,908 - DEBUG - Response for create_network : {'network': {'id': '2dafe21d-5c7d-4822-ae3e-f8bcc647e146', 'name': 'ctest-vn-96784800', 'tenant_id': '9efc1c5883614b13b7fdcb8ea5540968', 'project_id': '9efc1c5883614b13b7fdcb8ea5540968', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86973582', 'ctest-vn-96784800'], 'port_security_enabled': True, 'description': ''}} 2025-01-13 02:35:48,135 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f443d16c-d079-4ba3-b553-01a71f9edc05', 'name': '', 'tenant_id': '9efc1c5883614b13b7fdcb8ea5540968', 'network_id': '2dafe21d-5c7d-4822-ae3e-f8bcc647e146', 'ip_version': 4, 'cidr': '143.29.155.0/26', 'allocation_pools': [{'start': '143.29.155.2', 'end': '143.29.155.62'}], 'gateway_ip': '143.29.155.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.29.155.2', 'tags': [], 'project_id': '9efc1c5883614b13b7fdcb8ea5540968'}} 2025-01-13 02:35:48,156 - INFO - Created VN ctest-vn-96784800 2025-01-13 02:35:48,209 - DEBUG - VN ctest-vn-96784800 UUID is 2dafe21d-5c7d-4822-ae3e-f8bcc647e146 2025-01-13 02:35:48,331 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-86973582:ctest-vn-50581802, 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-86973582:ctest-vn-96784800, 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-13 02:35:48,681 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '19a7a2cf-d326-449a-85bb-73837ebc6ee8', 'name': 'ctest-vn-50581802', 'tenant_id': '9efc1c5883614b13b7fdcb8ea5540968', 'project_id': '9efc1c5883614b13b7fdcb8ea5540968', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2b45400a-6de5-45f3-a0a9-6cca921821ae'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86973582', 'ctest-vn-50581802'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86973582', 'ctest-policy-allow-all-38107793']], 'subnet_ipam': [{'subnet_cidr': '119.220.65.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-13 02:35:48,916 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2dafe21d-5c7d-4822-ae3e-f8bcc647e146', 'name': 'ctest-vn-96784800', 'tenant_id': '9efc1c5883614b13b7fdcb8ea5540968', 'project_id': '9efc1c5883614b13b7fdcb8ea5540968', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f443d16c-d079-4ba3-b553-01a71f9edc05'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86973582', 'ctest-vn-96784800'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86973582', 'ctest-policy-allow-all-38107793']], 'subnet_ipam': [{'subnet_cidr': '143.29.155.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-13 02:35:49,089 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-01-13 02:35:49,432 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-01-13 02:35:49,471 - DEBUG - Requesting: http://10.0.0.23:8082/domain/0f308976-278f-4b6f-aaa1-ba4632518825 2025-01-13 02:35:49,489 - DEBUG - Requesting: http://10.0.0.23:8082/project/9efc1c58-8361-4b13-b7fd-cb8ea5540968 2025-01-13 02:35:49,572 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/19a7a2cf-d326-449a-85bb-73837ebc6ee8 2025-01-13 02:35:49,585 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/19a7a2cf-d326-449a-85bb-73837ebc6ee8 2025-01-13 02:35:49,596 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/b8c43bd2-2456-42db-938f-ab8349311ce1 2025-01-13 02:35:49,606 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/b8c43bd2-2456-42db-938f-ab8349311ce1 2025-01-13 02:35:49,616 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/57ec368d-63a7-4b38-8ab4-2dd690e49817 2025-01-13 02:35:49,625 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-13 02:35:49,625 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/19a7a2cf-d326-449a-85bb-73837ebc6ee8 2025-01-13 02:35:49,637 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/b8c43bd2-2456-42db-938f-ab8349311ce1 2025-01-13 02:35:49,654 - INFO - Verified VN network id 8 for VN 19a7a2cf-d326-449a-85bb-73837ebc6ee8 2025-01-13 02:35:49,654 - INFO - Verifications in API Server for VN ctest-vn-50581802 passed 2025-01-13 02:35:49,654 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/19a7a2cf-d326-449a-85bb-73837ebc6ee8 2025-01-13 02:35:49,669 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/b8c43bd2-2456-42db-938f-ab8349311ce1 2025-01-13 02:35:49,681 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/b8c43bd2-2456-42db-938f-ab8349311ce1 2025-01-13 02:35:49,692 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/57ec368d-63a7-4b38-8ab4-2dd690e49817 2025-01-13 02:35:49,709 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86973582:ctest-vn-50581802', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86973582', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1848625185543308442', 'uuid-lslong': '9636422836293496552'}, 'enable': 'true', 'created': '2025-01-13T02:35:47', 'last-modified': '2025-01-13T02:35:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.058907'} 2025-01-13 02:35:49,718 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-13 02:35:49,718 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50581802 passed 2025-01-13 02:35:49,719 - DEBUG - ====Verifying policy data for ctest-vn-50581802 in API_Server ====== 2025-01-13 02:35:49,719 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-01-13 02:35:49,727 - DEBUG - Requesting: http://10.0.0.23:8082/domain/0f308976-278f-4b6f-aaa1-ba4632518825 2025-01-13 02:35:49,743 - DEBUG - Requesting: http://10.0.0.23:8082/project/9efc1c58-8361-4b13-b7fd-cb8ea5540968 2025-01-13 02:35:49,820 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/19a7a2cf-d326-449a-85bb-73837ebc6ee8 2025-01-13 02:35:49,831 - DEBUG - ==>Verifying data for policy with id: 5e0a9470-8e2c-4185-b87c-63f57f8ffcaf, fqn: ['default-domain', 'ctest-TestBasicPolicy-86973582', 'ctest-policy-allow-all-38107793'] 2025-01-13 02:35:49,831 - INFO - VN ctest-vn-50581802 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-13 02:35:49,831 - DEBUG - Verifying the vn in opserver 2025-01-13 02:35:49,831 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86973582:ctest-vn-50581802 virtual network link through opserver 10.0.0.23 2025-01-13 02:35:49,831 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-01-13 02:35:50,196 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-01-13 02:35:50,273 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86973582:ctest-vn-50581802', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86973582:ctest-vn-50581802?flat'} 2025-01-13 02:35:50,273 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86973582:ctest-vn-50581802 is found in opserver 2025-01-13 02:35:50,290 - DEBUG - Do not have enough data to verify VN in agent 2025-01-13 02:35:50,298 - DEBUG - VRF ids for VN ctest-vn-50581802: {} 2025-01-13 02:35:50,298 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-01-13 02:35:50,307 - DEBUG - Requesting: http://10.0.0.23:8082/domain/0f308976-278f-4b6f-aaa1-ba4632518825 2025-01-13 02:35:50,326 - DEBUG - Requesting: http://10.0.0.23:8082/project/9efc1c58-8361-4b13-b7fd-cb8ea5540968 2025-01-13 02:35:50,403 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/2dafe21d-5c7d-4822-ae3e-f8bcc647e146 2025-01-13 02:35:50,415 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/2dafe21d-5c7d-4822-ae3e-f8bcc647e146 2025-01-13 02:35:50,426 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/eb591dea-451f-452e-aed7-327517c63846 2025-01-13 02:35:50,436 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/eb591dea-451f-452e-aed7-327517c63846 2025-01-13 02:35:50,445 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/2619a816-cad4-4a88-9260-a5a559ff08d7 2025-01-13 02:35:50,453 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-13 02:35:50,453 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/2dafe21d-5c7d-4822-ae3e-f8bcc647e146 2025-01-13 02:35:50,462 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/eb591dea-451f-452e-aed7-327517c63846 2025-01-13 02:35:50,477 - INFO - Verified VN network id 9 for VN 2dafe21d-5c7d-4822-ae3e-f8bcc647e146 2025-01-13 02:35:50,477 - INFO - Verifications in API Server for VN ctest-vn-96784800 passed 2025-01-13 02:35:50,478 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/2dafe21d-5c7d-4822-ae3e-f8bcc647e146 2025-01-13 02:35:50,487 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/eb591dea-451f-452e-aed7-327517c63846 2025-01-13 02:35:50,495 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/eb591dea-451f-452e-aed7-327517c63846 2025-01-13 02:35:50,503 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/2619a816-cad4-4a88-9260-a5a559ff08d7 2025-01-13 02:35:50,517 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86973582:ctest-vn-96784800', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86973582', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3292098468364765218', 'uuid-lslong': '12555746300819661126'}, 'enable': 'true', 'created': '2025-01-13T02:35:47', 'last-modified': '2025-01-13T02:35:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.621060'} 2025-01-13 02:35:50,526 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-13 02:35:50,526 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96784800 passed 2025-01-13 02:35:50,526 - DEBUG - ====Verifying policy data for ctest-vn-96784800 in API_Server ====== 2025-01-13 02:35:50,527 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-01-13 02:35:50,536 - DEBUG - Requesting: http://10.0.0.23:8082/domain/0f308976-278f-4b6f-aaa1-ba4632518825 2025-01-13 02:35:50,551 - DEBUG - Requesting: http://10.0.0.23:8082/project/9efc1c58-8361-4b13-b7fd-cb8ea5540968 2025-01-13 02:35:50,622 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/2dafe21d-5c7d-4822-ae3e-f8bcc647e146 2025-01-13 02:35:50,631 - DEBUG - ==>Verifying data for policy with id: 5e0a9470-8e2c-4185-b87c-63f57f8ffcaf, fqn: ['default-domain', 'ctest-TestBasicPolicy-86973582', 'ctest-policy-allow-all-38107793'] 2025-01-13 02:35:50,631 - INFO - VN ctest-vn-96784800 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-13 02:35:50,631 - DEBUG - Verifying the vn in opserver 2025-01-13 02:35:50,631 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86973582:ctest-vn-96784800 virtual network link through opserver 10.0.0.23 2025-01-13 02:35:50,631 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-01-13 02:35:50,646 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86973582:ctest-vn-96784800', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86973582:ctest-vn-96784800?flat'} 2025-01-13 02:35:50,646 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86973582:ctest-vn-96784800 is found in opserver 2025-01-13 02:35:50,659 - DEBUG - Do not have enough data to verify VN in agent 2025-01-13 02:35:50,666 - DEBUG - VRF ids for VN ctest-vn-96784800: {} 2025-01-13 02:35:50,731 - DEBUG - Services list from nova: [, , ] 2025-01-13 02:35:51,899 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2605-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2605-1) 2025-01-13 02:35:53,302 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2605-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2605-1) 2025-01-13 02:35:53,302 - INFO - Waiting for VM ctest-TestBasicPolicy-86973582-76085471 to be up.. 2025-01-13 02:35:53,405 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-13 02:35:58,485 - DEBUG - VM is in ACTIVE state now 2025-01-13 02:35:58,486 - INFO - VM name : ctest-TestBasicPolicy-86973582-76085471 2025-01-13 02:35:58,574 - DEBUG - VM ctest-TestBasicPolicy-86973582-76085471 ID is b912d4bc-1d4c-41d9-aabd-e1ff00531f8e 2025-01-13 02:35:58,594 - DEBUG - VM ctest-TestBasicPolicy-86973582-76085471 launched on Node cn-jenkins-deploy-platform-ansible-os-2605-1 2025-01-13 02:35:58,694 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/b912d4bc-1d4c-41d9-aabd-e1ff00531f8e 2025-01-13 02:35:58,703 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/a79ace42-f6eb-4d0b-842c-9747bd475c9f 2025-01-13 02:36:01,964 - 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 1014ms') 2025-01-13 02:36:01,964 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-86973582-76085471 failed! 2025-01-13 02:36:02,025 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-86973582:ctest-vn-50581802 is 119.220.65.129 and allocation pool is NOT set 2025-01-13 02:36:04,095 - 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=9.13 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.556 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 = 0.556/4.841/9.127/4.285 ms') 2025-01-13 02:36:04,095 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-86973582-76085471 passed 2025-01-13 02:36:04,246 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 02:36:04,246 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-86973582-76085471, IP 119.220.65.131, Port 22 2025-01-13 02:36:04,312 - 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-01-13 02:36:04,406 - DEBUG - VM ctest-TestBasicPolicy-86973582-76085471 is NOT ready for SSH connections, VM status: ACTIVE 2025-01-13 02:36:09,407 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 02:36:09,407 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-86973582-76085471, IP 119.220.65.131, Port 22 2025-01-13 02:36:09,564 - DEBUG - VM ctest-TestBasicPolicy-86973582-76085471 is ready for SSH connections 2025-01-13 02:36:09,565 - INFO - Waiting for VM ctest-TestBasicPolicy-86973582-73646162 to be up.. 2025-01-13 02:36:09,659 - DEBUG - VM is in ACTIVE state now 2025-01-13 02:36:09,659 - INFO - VM name : ctest-TestBasicPolicy-86973582-73646162 2025-01-13 02:36:09,762 - DEBUG - VM ctest-TestBasicPolicy-86973582-73646162 ID is 94ac3821-4dd5-4f51-ba93-d478e955af6f 2025-01-13 02:36:09,763 - DEBUG - VM ctest-TestBasicPolicy-86973582-73646162 launched on Node cn-jenkins-deploy-platform-ansible-os-2605-1 2025-01-13 02:36:09,853 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/94ac3821-4dd5-4f51-ba93-d478e955af6f 2025-01-13 02:36:09,864 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/a2a025dc-e204-42f2-99eb-2eb41c6f75f4 2025-01-13 02:36:11,106 - 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.45 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.449 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.449/1.949/3.450/1.500 ms') 2025-01-13 02:36:11,106 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-86973582-73646162 passed 2025-01-13 02:36:11,261 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 02:36:11,262 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-86973582-73646162, IP 143.29.155.3, Port 22 2025-01-13 02:36:11,421 - DEBUG - VM ctest-TestBasicPolicy-86973582-73646162 is ready for SSH connections 2025-01-13 02:36:11,421 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 02:36:11,421 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 143.29.155.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2025-01-13 02:36:11,421 - DEBUG - ping -s 56 -c 3 -W 1 143.29.155.3 2025-01-13 02:36:15,560 - DEBUG - PING 143.29.155.3 (143.29.155.3): 56 data bytes 64 bytes from 143.29.155.3: seq=0 ttl=63 time=3.810 ms 64 bytes from 143.29.155.3: seq=1 ttl=63 time=0.999 ms 64 bytes from 143.29.155.3: seq=2 ttl=63 time=0.936 ms --- 143.29.155.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.936/1.915/3.810 ms 2025-01-13 02:36:15,560 - INFO - Ping to IP 143.29.155.3 from VM ctest-TestBasicPolicy-86973582-76085471 passed 2025-01-13 02:36:15,749 - DEBUG - Policy Update Response {"network-policy": {"uuid": "5e0a9470-8e2c-4185-b87c-63f57f8ffcaf", "href": "http://10.0.0.23:8082/network-policy/5e0a9470-8e2c-4185-b87c-63f57f8ffcaf"}} 2025-01-13 02:36:15,749 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 02:36:15,749 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 143.29.155.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2025-01-13 02:36:15,749 - DEBUG - ping -s 56 -c 3 -W 1 143.29.155.3 2025-01-13 02:36:19,019 - DEBUG - PING 143.29.155.3 (143.29.155.3): 56 data bytes 64 bytes from 143.29.155.3: seq=0 ttl=63 time=1.698 ms --- 143.29.155.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.698/1.698/1.698 ms 2025-01-13 02:36:19,019 - WARNING - Ping to IP 143.29.155.3 from VM ctest-TestBasicPolicy-86973582-76085471 failed 2025-01-13 02:36:19,019 - INFO - Deleting VM ctest-TestBasicPolicy-86973582-73646162 2025-01-13 02:36:19,098 - INFO - Deleting VM ctest-TestBasicPolicy-86973582-76085471 2025-01-13 02:36:19,556 - INFO - Deleted policy ctest-policy-allow-all-38107793 2025-01-13 02:36:19,557 - INFO - Deleting VN ctest-vn-96784800 2025-01-13 02:36:19,607 - DEBUG - VN 2dafe21d-5c7d-4822-ae3e-f8bcc647e146 still in use: Unable to complete operation on network 2dafe21d-5c7d-4822-ae3e-f8bcc647e146. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7988efb9-77ce-4362-86b2-272c43c515f4'] 2025-01-13 02:36:19,608 - WARNING - Deleting VN ctest-vn-96784800 failed..Will retry 2025-01-13 02:36:21,738 - DEBUG - Response for deleting network () 2025-01-13 02:36:21,738 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/eb591dea-451f-452e-aed7-327517c63846 2025-01-13 02:36:21,750 - DEBUG - Response Code: 404 2025-01-13 02:36:21,751 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-01-13 02:36:21,759 - DEBUG - Requesting: http://10.0.0.23:8082/domain/0f308976-278f-4b6f-aaa1-ba4632518825 2025-01-13 02:36:21,819 - DEBUG - Requesting: http://10.0.0.23:8082/project/9efc1c58-8361-4b13-b7fd-cb8ea5540968 2025-01-13 02:36:21,895 - INFO - Validated that VN ctest-vn-96784800 is not found in API Server 2025-01-13 02:36:21,909 - DEBUG - VN ctest-vn-96784800 is not present in Agent 10.0.0.23 2025-01-13 02:36:21,909 - INFO - Validated that VN ctest-vn-96784800 is not in any agent 2025-01-13 02:36:21,928 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-96784800 info 2025-01-13 02:36:21,928 - INFO - Deleting VN ctest-vn-50581802 2025-01-13 02:36:22,039 - DEBUG - Response for deleting network () 2025-01-13 02:36:22,039 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/b8c43bd2-2456-42db-938f-ab8349311ce1 2025-01-13 02:36:22,046 - DEBUG - Response Code: 404 2025-01-13 02:36:22,046 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-01-13 02:36:22,057 - DEBUG - Requesting: http://10.0.0.23:8082/domain/0f308976-278f-4b6f-aaa1-ba4632518825 2025-01-13 02:36:22,115 - DEBUG - Requesting: http://10.0.0.23:8082/project/9efc1c58-8361-4b13-b7fd-cb8ea5540968 2025-01-13 02:36:22,184 - INFO - Validated that VN ctest-vn-50581802 is not found in API Server 2025-01-13 02:36:22,198 - DEBUG - VN ctest-vn-50581802 is not present in Agent 10.0.0.23 2025-01-13 02:36:22,198 - INFO - Validated that VN ctest-vn-50581802 is not in any agent 2025-01-13 02:36:22,220 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-50581802 info 2025-01-13 02:36:22,504 - DEBUG - No XMPP flaps were noticed during the test 2025-01-13 02:36:22,504 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2025-01-13 02:36:22,504 - INFO - -------------------------------------------------------------------------------- 2025-01-13 02:36:23,266 - INFO - Deleted project: ctest-TestBasicPolicy-86973582, ID : 9efc1c58-8361-4b13-b7fd-cb8ea5540968