2025-01-02 22:57:17,267 - INFO - Domain Default found not creating 2025-01-02 22:57:17,431 - INFO - Project ctest-TestBasicPolicy-34608474 not found, creating it 2025-01-02 22:57:17,891 - INFO - Created Project:ctest-TestBasicPolicy-34608474, ID : 8b25f756-3b20-4d75-866b-fd2394af80bf 2025-01-02 22:57:20,029 - INFO - ================================================================================ 2025-01-02 22:57:20,030 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-02 22:57:20,030 - 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-02 22:57:20,286 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.7': '0'}} with 2025-01-02 22:57:20,286 - INFO - Initial checks done. Running the testcase now 2025-01-02 22:57:20,287 - INFO - 2025-01-02 22:57:20,812 - DEBUG - Response for create_network : {'network': {'id': 'e00cdf9f-fe2b-4e3a-b5f8-2dba7f313bcd', 'name': 'ctest-vn-03166854', 'tenant_id': '8b25f7563b204d75866bfd2394af80bf', 'project_id': '8b25f7563b204d75866bfd2394af80bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34608474', 'ctest-vn-03166854'], 'port_security_enabled': True, 'description': ''}} 2025-01-02 22:57:21,006 - DEBUG - Response for create_subnet : {'subnet': {'id': '83eebb4e-be2f-41c6-8d45-8b073f98928b', 'name': '', 'tenant_id': '8b25f7563b204d75866bfd2394af80bf', 'network_id': 'e00cdf9f-fe2b-4e3a-b5f8-2dba7f313bcd', 'ip_version': 4, 'cidr': '71.173.221.192/26', 'allocation_pools': [{'start': '71.173.221.194', 'end': '71.173.221.254'}], 'gateway_ip': '71.173.221.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '71.173.221.194', 'tags': [], 'project_id': '8b25f7563b204d75866bfd2394af80bf'}} 2025-01-02 22:57:21,026 - INFO - Created VN ctest-vn-03166854 2025-01-02 22:57:21,080 - DEBUG - VN ctest-vn-03166854 UUID is e00cdf9f-fe2b-4e3a-b5f8-2dba7f313bcd 2025-01-02 22:57:21,371 - DEBUG - Response for create_network : {'network': {'id': 'af14a9e5-51eb-4fb6-ba8a-ae21d83dc9be', 'name': 'ctest-vn-70900731', 'tenant_id': '8b25f7563b204d75866bfd2394af80bf', 'project_id': '8b25f7563b204d75866bfd2394af80bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34608474', 'ctest-vn-70900731'], 'port_security_enabled': True, 'description': ''}} 2025-01-02 22:57:21,593 - DEBUG - Response for create_subnet : {'subnet': {'id': '6ada4cac-5241-42f0-8134-f8e930247e7b', 'name': '', 'tenant_id': '8b25f7563b204d75866bfd2394af80bf', 'network_id': 'af14a9e5-51eb-4fb6-ba8a-ae21d83dc9be', 'ip_version': 4, 'cidr': '144.234.30.192/26', 'allocation_pools': [{'start': '144.234.30.194', 'end': '144.234.30.254'}], 'gateway_ip': '144.234.30.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.234.30.194', 'tags': [], 'project_id': '8b25f7563b204d75866bfd2394af80bf'}} 2025-01-02 22:57:21,612 - INFO - Created VN ctest-vn-70900731 2025-01-02 22:57:21,668 - DEBUG - VN ctest-vn-70900731 UUID is af14a9e5-51eb-4fb6-ba8a-ae21d83dc9be 2025-01-02 22:57:21,780 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-34608474:ctest-vn-03166854, 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-34608474:ctest-vn-70900731, 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-02 22:57:22,076 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e00cdf9f-fe2b-4e3a-b5f8-2dba7f313bcd', 'name': 'ctest-vn-03166854', 'tenant_id': '8b25f7563b204d75866bfd2394af80bf', 'project_id': '8b25f7563b204d75866bfd2394af80bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['83eebb4e-be2f-41c6-8d45-8b073f98928b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34608474', 'ctest-vn-03166854'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34608474', 'ctest-policy-allow-all-89450845']], 'subnet_ipam': [{'subnet_cidr': '71.173.221.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-02 22:57:22,328 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'af14a9e5-51eb-4fb6-ba8a-ae21d83dc9be', 'name': 'ctest-vn-70900731', 'tenant_id': '8b25f7563b204d75866bfd2394af80bf', 'project_id': '8b25f7563b204d75866bfd2394af80bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6ada4cac-5241-42f0-8134-f8e930247e7b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34608474', 'ctest-vn-70900731'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34608474', 'ctest-policy-allow-all-89450845']], 'subnet_ipam': [{'subnet_cidr': '144.234.30.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-02 22:57:22,476 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2025-01-02 22:57:22,774 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2025-01-02 22:57:22,803 - DEBUG - Requesting: http://10.0.0.31:8082/domain/1f57bba1-785a-49bc-8d17-76345d4db971 2025-01-02 22:57:22,816 - DEBUG - Requesting: http://10.0.0.31:8082/project/8b25f756-3b20-4d75-866b-fd2394af80bf 2025-01-02 22:57:22,887 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/e00cdf9f-fe2b-4e3a-b5f8-2dba7f313bcd 2025-01-02 22:57:22,899 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/e00cdf9f-fe2b-4e3a-b5f8-2dba7f313bcd 2025-01-02 22:57:22,911 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/d157d78e-b3ec-431d-b572-c325d9a314a5 2025-01-02 22:57:22,921 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/d157d78e-b3ec-431d-b572-c325d9a314a5 2025-01-02 22:57:22,928 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/54e1b0ed-8148-467d-8627-76aefe5b9b65 2025-01-02 22:57:22,935 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-02 22:57:22,935 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/e00cdf9f-fe2b-4e3a-b5f8-2dba7f313bcd 2025-01-02 22:57:22,945 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/d157d78e-b3ec-431d-b572-c325d9a314a5 2025-01-02 22:57:22,961 - INFO - Verified VN network id 8 for VN e00cdf9f-fe2b-4e3a-b5f8-2dba7f313bcd 2025-01-02 22:57:22,961 - INFO - Verifications in API Server for VN ctest-vn-03166854 passed 2025-01-02 22:57:22,961 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/e00cdf9f-fe2b-4e3a-b5f8-2dba7f313bcd 2025-01-02 22:57:22,972 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/d157d78e-b3ec-431d-b572-c325d9a314a5 2025-01-02 22:57:22,980 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/d157d78e-b3ec-431d-b572-c325d9a314a5 2025-01-02 22:57:22,987 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/54e1b0ed-8148-467d-8627-76aefe5b9b65 2025-01-02 22:57:23,001 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34608474:ctest-vn-03166854', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34608474', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16144524642473430586', 'uuid-lslong': '13112280594110299085'}, 'enable': 'true', 'created': '2025-01-02T22:57:20', 'last-modified': '2025-01-02T22:57:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.944161'} 2025-01-02 22:57:23,009 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-02 22:57:23,009 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03166854 passed 2025-01-02 22:57:23,009 - DEBUG - ====Verifying policy data for ctest-vn-03166854 in API_Server ====== 2025-01-02 22:57:23,009 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2025-01-02 22:57:23,017 - DEBUG - Requesting: http://10.0.0.31:8082/domain/1f57bba1-785a-49bc-8d17-76345d4db971 2025-01-02 22:57:23,032 - DEBUG - Requesting: http://10.0.0.31:8082/project/8b25f756-3b20-4d75-866b-fd2394af80bf 2025-01-02 22:57:23,108 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/e00cdf9f-fe2b-4e3a-b5f8-2dba7f313bcd 2025-01-02 22:57:23,118 - DEBUG - ==>Verifying data for policy with id: 8fc7055b-815b-4f9d-9b69-c69e3dd9450f, fqn: ['default-domain', 'ctest-TestBasicPolicy-34608474', 'ctest-policy-allow-all-89450845'] 2025-01-02 22:57:23,118 - INFO - VN ctest-vn-03166854 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-02 22:57:23,118 - DEBUG - Verifying the vn in opserver 2025-01-02 22:57:23,118 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34608474:ctest-vn-03166854 virtual network link through opserver 10.0.0.31 2025-01-02 22:57:23,118 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2025-01-02 22:57:23,424 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2025-01-02 22:57:23,484 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34608474:ctest-vn-03166854', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34608474:ctest-vn-03166854?flat'} 2025-01-02 22:57:23,484 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34608474:ctest-vn-03166854 is found in opserver 2025-01-02 22:57:23,496 - DEBUG - Do not have enough data to verify VN in agent 2025-01-02 22:57:23,503 - DEBUG - VRF ids for VN ctest-vn-03166854: {} 2025-01-02 22:57:23,503 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2025-01-02 22:57:23,510 - DEBUG - Requesting: http://10.0.0.31:8082/domain/1f57bba1-785a-49bc-8d17-76345d4db971 2025-01-02 22:57:23,525 - DEBUG - Requesting: http://10.0.0.31:8082/project/8b25f756-3b20-4d75-866b-fd2394af80bf 2025-01-02 22:57:23,600 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/af14a9e5-51eb-4fb6-ba8a-ae21d83dc9be 2025-01-02 22:57:23,612 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/af14a9e5-51eb-4fb6-ba8a-ae21d83dc9be 2025-01-02 22:57:23,622 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/82f9d6de-0c52-483d-807a-968b5d559e09 2025-01-02 22:57:23,630 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/82f9d6de-0c52-483d-807a-968b5d559e09 2025-01-02 22:57:23,637 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/c595f8e2-8e24-49f5-b493-543fd638b637 2025-01-02 22:57:23,643 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-02 22:57:23,643 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/af14a9e5-51eb-4fb6-ba8a-ae21d83dc9be 2025-01-02 22:57:23,653 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/82f9d6de-0c52-483d-807a-968b5d559e09 2025-01-02 22:57:23,668 - INFO - Verified VN network id 9 for VN af14a9e5-51eb-4fb6-ba8a-ae21d83dc9be 2025-01-02 22:57:23,668 - INFO - Verifications in API Server for VN ctest-vn-70900731 passed 2025-01-02 22:57:23,668 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/af14a9e5-51eb-4fb6-ba8a-ae21d83dc9be 2025-01-02 22:57:23,678 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/82f9d6de-0c52-483d-807a-968b5d559e09 2025-01-02 22:57:23,686 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/82f9d6de-0c52-483d-807a-968b5d559e09 2025-01-02 22:57:23,693 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/c595f8e2-8e24-49f5-b493-543fd638b637 2025-01-02 22:57:23,704 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34608474:ctest-vn-70900731', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34608474', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12615895258558582710', 'uuid-lslong': '13441747498225748414'}, 'enable': 'true', 'created': '2025-01-02T22:57:21', 'last-modified': '2025-01-02T22:57:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.410227'} 2025-01-02 22:57:23,712 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-02 22:57:23,712 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70900731 passed 2025-01-02 22:57:23,713 - DEBUG - ====Verifying policy data for ctest-vn-70900731 in API_Server ====== 2025-01-02 22:57:23,713 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2025-01-02 22:57:23,718 - DEBUG - Requesting: http://10.0.0.31:8082/domain/1f57bba1-785a-49bc-8d17-76345d4db971 2025-01-02 22:57:23,729 - DEBUG - Requesting: http://10.0.0.31:8082/project/8b25f756-3b20-4d75-866b-fd2394af80bf 2025-01-02 22:57:23,800 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/af14a9e5-51eb-4fb6-ba8a-ae21d83dc9be 2025-01-02 22:57:23,810 - DEBUG - ==>Verifying data for policy with id: 8fc7055b-815b-4f9d-9b69-c69e3dd9450f, fqn: ['default-domain', 'ctest-TestBasicPolicy-34608474', 'ctest-policy-allow-all-89450845'] 2025-01-02 22:57:23,810 - INFO - VN ctest-vn-70900731 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-02 22:57:23,810 - DEBUG - Verifying the vn in opserver 2025-01-02 22:57:23,810 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34608474:ctest-vn-70900731 virtual network link through opserver 10.0.0.31 2025-01-02 22:57:23,810 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2025-01-02 22:57:23,821 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34608474:ctest-vn-70900731', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34608474:ctest-vn-70900731?flat'} 2025-01-02 22:57:23,821 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34608474:ctest-vn-70900731 is found in opserver 2025-01-02 22:57:23,832 - DEBUG - Do not have enough data to verify VN in agent 2025-01-02 22:57:23,838 - DEBUG - VRF ids for VN ctest-vn-70900731: {} 2025-01-02 22:57:23,899 - DEBUG - Services list from nova: [, , ] 2025-01-02 22:57:25,008 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2516-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2516-1) 2025-01-02 22:57:26,135 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2516-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2516-1) 2025-01-02 22:57:26,135 - INFO - Waiting for VM ctest-TestBasicPolicy-34608474-26229724 to be up.. 2025-01-02 22:57:26,217 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-02 22:57:31,296 - DEBUG - VM is in ACTIVE state now 2025-01-02 22:57:31,296 - INFO - VM name : ctest-TestBasicPolicy-34608474-26229724 2025-01-02 22:57:31,371 - DEBUG - VM ctest-TestBasicPolicy-34608474-26229724 ID is b91eca2f-41d1-4c71-849d-e78005f0e567 2025-01-02 22:57:31,390 - DEBUG - VM ctest-TestBasicPolicy-34608474-26229724 launched on Node cn-jenkins-deploy-platform-ansible-os-2516-1 2025-01-02 22:57:31,473 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/b91eca2f-41d1-4c71-849d-e78005f0e567 2025-01-02 22:57:31,482 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/ad527177-117a-4084-8ec2-064f3b84e113 2025-01-02 22:57:34,754 - 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 1031ms') 2025-01-02 22:57:34,754 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-34608474-26229724 failed! 2025-01-02 22:57:34,808 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-34608474:ctest-vn-03166854 is 71.173.221.193 and allocation pool is NOT set 2025-01-02 22:57:36,870 - 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.86 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.72 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.718/5.291/8.864/3.573 ms') 2025-01-02 22:57:36,871 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-34608474-26229724 passed 2025-01-02 22:57:37,024 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-02 22:57:37,024 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-34608474-26229724, IP 71.173.221.195, Port 22 2025-01-02 22:57:37,083 - 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-02 22:57:37,167 - DEBUG - VM ctest-TestBasicPolicy-34608474-26229724 is NOT ready for SSH connections, VM status: ACTIVE 2025-01-02 22:57:42,168 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-02 22:57:42,168 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-34608474-26229724, IP 71.173.221.195, Port 22 2025-01-02 22:57:42,328 - DEBUG - VM ctest-TestBasicPolicy-34608474-26229724 is ready for SSH connections 2025-01-02 22:57:42,328 - INFO - Waiting for VM ctest-TestBasicPolicy-34608474-48575292 to be up.. 2025-01-02 22:57:42,404 - DEBUG - VM is in ACTIVE state now 2025-01-02 22:57:42,405 - INFO - VM name : ctest-TestBasicPolicy-34608474-48575292 2025-01-02 22:57:42,479 - DEBUG - VM ctest-TestBasicPolicy-34608474-48575292 ID is 9bebe9c1-5fc9-47d6-a1b4-e163c4e31824 2025-01-02 22:57:42,479 - DEBUG - VM ctest-TestBasicPolicy-34608474-48575292 launched on Node cn-jenkins-deploy-platform-ansible-os-2516-1 2025-01-02 22:57:42,562 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/9bebe9c1-5fc9-47d6-a1b4-e163c4e31824 2025-01-02 22:57:42,570 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/52fb906e-c582-4ba2-b433-faa1bde7cc6d 2025-01-02 22:57:43,802 - 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.04 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.356 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.356/1.700/3.044/1.344 ms') 2025-01-02 22:57:43,802 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-34608474-48575292 passed 2025-01-02 22:57:43,956 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-02 22:57:43,956 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-34608474-48575292, IP 144.234.30.195, Port 22 2025-01-02 22:57:44,112 - DEBUG - VM ctest-TestBasicPolicy-34608474-48575292 is ready for SSH connections 2025-01-02 22:57:44,112 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-02 22:57:44,112 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 144.234.30.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2025-01-02 22:57:44,112 - DEBUG - ping -s 56 -c 3 -W 1 144.234.30.195 2025-01-02 22:57:48,088 - DEBUG - PING 144.234.30.195 (144.234.30.195): 56 data bytes 64 bytes from 144.234.30.195: seq=0 ttl=63 time=3.692 ms 64 bytes from 144.234.30.195: seq=1 ttl=63 time=0.910 ms 64 bytes from 144.234.30.195: seq=2 ttl=63 time=0.728 ms --- 144.234.30.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.728/1.776/3.692 ms 2025-01-02 22:57:48,088 - INFO - Ping to IP 144.234.30.195 from VM ctest-TestBasicPolicy-34608474-26229724 passed 2025-01-02 22:57:48,264 - DEBUG - Policy Update Response {"network-policy": {"uuid": "8fc7055b-815b-4f9d-9b69-c69e3dd9450f", "href": "http://10.0.0.31:8082/network-policy/8fc7055b-815b-4f9d-9b69-c69e3dd9450f"}} 2025-01-02 22:57:48,264 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-02 22:57:48,264 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 144.234.30.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2025-01-02 22:57:48,264 - DEBUG - ping -s 56 -c 3 -W 1 144.234.30.195 2025-01-02 22:57:51,472 - DEBUG - PING 144.234.30.195 (144.234.30.195): 56 data bytes 64 bytes from 144.234.30.195: seq=0 ttl=63 time=1.464 ms --- 144.234.30.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.464/1.464/1.464 ms 2025-01-02 22:57:51,472 - WARNING - Ping to IP 144.234.30.195 from VM ctest-TestBasicPolicy-34608474-26229724 failed 2025-01-02 22:57:51,472 - INFO - Deleting VM ctest-TestBasicPolicy-34608474-48575292 2025-01-02 22:57:51,538 - INFO - Deleting VM ctest-TestBasicPolicy-34608474-26229724 2025-01-02 22:57:51,918 - INFO - Deleted policy ctest-policy-allow-all-89450845 2025-01-02 22:57:51,918 - INFO - Deleting VN ctest-vn-70900731 2025-01-02 22:57:51,955 - DEBUG - VN af14a9e5-51eb-4fb6-ba8a-ae21d83dc9be still in use: Unable to complete operation on network af14a9e5-51eb-4fb6-ba8a-ae21d83dc9be. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-26a4a716-4719-4223-a0a4-fabb5ef65cda'] 2025-01-02 22:57:51,955 - WARNING - Deleting VN ctest-vn-70900731 failed..Will retry 2025-01-02 22:57:54,550 - DEBUG - Response for deleting network () 2025-01-02 22:57:54,550 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/82f9d6de-0c52-483d-807a-968b5d559e09 2025-01-02 22:57:54,555 - DEBUG - Response Code: 404 2025-01-02 22:57:54,555 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2025-01-02 22:57:54,561 - DEBUG - Requesting: http://10.0.0.31:8082/domain/1f57bba1-785a-49bc-8d17-76345d4db971 2025-01-02 22:57:54,613 - DEBUG - Requesting: http://10.0.0.31:8082/project/8b25f756-3b20-4d75-866b-fd2394af80bf 2025-01-02 22:57:54,697 - INFO - Validated that VN ctest-vn-70900731 is not found in API Server 2025-01-02 22:57:54,708 - DEBUG - VN ctest-vn-70900731 is not present in Agent 10.0.0.31 2025-01-02 22:57:54,708 - INFO - Validated that VN ctest-vn-70900731 is not in any agent 2025-01-02 22:57:54,726 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-70900731 info 2025-01-02 22:57:54,726 - INFO - Deleting VN ctest-vn-03166854 2025-01-02 22:57:54,842 - DEBUG - Response for deleting network () 2025-01-02 22:57:54,842 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/d157d78e-b3ec-431d-b572-c325d9a314a5 2025-01-02 22:57:54,849 - DEBUG - Response Code: 404 2025-01-02 22:57:54,849 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2025-01-02 22:57:54,859 - DEBUG - Requesting: http://10.0.0.31:8082/domain/1f57bba1-785a-49bc-8d17-76345d4db971 2025-01-02 22:57:54,914 - DEBUG - Requesting: http://10.0.0.31:8082/project/8b25f756-3b20-4d75-866b-fd2394af80bf 2025-01-02 22:57:54,988 - INFO - Validated that VN ctest-vn-03166854 is not found in API Server 2025-01-02 22:57:55,006 - DEBUG - VN ctest-vn-03166854 is not present in Agent 10.0.0.31 2025-01-02 22:57:55,006 - INFO - Validated that VN ctest-vn-03166854 is not in any agent 2025-01-02 22:57:55,031 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-03166854 info 2025-01-02 22:57:55,286 - DEBUG - No XMPP flaps were noticed during the test
2025-01-02 22:57:55,286 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-01-02 22:57:55,286 - INFO - -------------------------------------------------------------------------------- 2025-01-02 22:57:55,998 - INFO - Deleted project: ctest-TestBasicPolicy-34608474, ID : 8b25f756-3b20-4d75-866b-fd2394af80bf