2024-09-16 02:17:42,849 - INFO - Domain Default found not creating 2024-09-16 02:17:42,994 - INFO - Project ctest-TestBasicPolicy-20916230 not found, creating it 2024-09-16 02:17:43,476 - INFO - Created Project:ctest-TestBasicPolicy-20916230, ID : 876db219-797f-4d06-8b8b-03eb0cd98305 2024-09-16 02:17:44,944 - INFO - ================================================================================ 2024-09-16 02:17:44,944 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-16 02:17:44,944 - 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 2024-09-16 02:17:45,204 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.8': '0'}} with 2024-09-16 02:17:45,204 - INFO - Initial checks done. Running the testcase now 2024-09-16 02:17:45,204 - INFO - 2024-09-16 02:17:45,784 - DEBUG - Response for create_network : {'network': {'id': 'abca78e5-b6d8-4620-9803-2950029f8227', 'name': 'ctest-vn-02489448', 'tenant_id': '876db219797f4d068b8b03eb0cd98305', 'project_id': '876db219797f4d068b8b03eb0cd98305', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20916230', 'ctest-vn-02489448'], 'port_security_enabled': True, 'description': ''}} 2024-09-16 02:17:45,988 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fd05ec83-4b44-48c2-8385-0a218a7491b1', 'name': '', 'tenant_id': '876db219797f4d068b8b03eb0cd98305', 'network_id': 'abca78e5-b6d8-4620-9803-2950029f8227', 'ip_version': 4, 'cidr': '55.35.40.192/26', 'allocation_pools': [{'start': '55.35.40.194', 'end': '55.35.40.254'}], 'gateway_ip': '55.35.40.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '55.35.40.194', 'tags': [], 'project_id': '876db219797f4d068b8b03eb0cd98305'}} 2024-09-16 02:17:46,009 - INFO - Created VN ctest-vn-02489448 2024-09-16 02:17:46,066 - DEBUG - VN ctest-vn-02489448 UUID is abca78e5-b6d8-4620-9803-2950029f8227 2024-09-16 02:17:46,367 - DEBUG - Response for create_network : {'network': {'id': 'e497be1c-95bd-4dd4-a2eb-87c38b664b85', 'name': 'ctest-vn-43119918', 'tenant_id': '876db219797f4d068b8b03eb0cd98305', 'project_id': '876db219797f4d068b8b03eb0cd98305', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20916230', 'ctest-vn-43119918'], 'port_security_enabled': True, 'description': ''}} 2024-09-16 02:17:46,536 - DEBUG - Response for create_subnet : {'subnet': {'id': '527064a2-ab98-4a21-a68b-5859eafa27d0', 'name': '', 'tenant_id': '876db219797f4d068b8b03eb0cd98305', 'network_id': 'e497be1c-95bd-4dd4-a2eb-87c38b664b85', 'ip_version': 4, 'cidr': '14.233.165.128/26', 'allocation_pools': [{'start': '14.233.165.130', 'end': '14.233.165.190'}], 'gateway_ip': '14.233.165.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.233.165.130', 'tags': [], 'project_id': '876db219797f4d068b8b03eb0cd98305'}} 2024-09-16 02:17:46,554 - INFO - Created VN ctest-vn-43119918 2024-09-16 02:17:46,610 - DEBUG - VN ctest-vn-43119918 UUID is e497be1c-95bd-4dd4-a2eb-87c38b664b85 2024-09-16 02:17:46,729 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-20916230:ctest-vn-02489448, 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-20916230:ctest-vn-43119918, 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] 2024-09-16 02:17:47,026 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'abca78e5-b6d8-4620-9803-2950029f8227', 'name': 'ctest-vn-02489448', 'tenant_id': '876db219797f4d068b8b03eb0cd98305', 'project_id': '876db219797f4d068b8b03eb0cd98305', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fd05ec83-4b44-48c2-8385-0a218a7491b1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20916230', 'ctest-vn-02489448'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20916230', 'ctest-policy-allow-all-75935478']], 'subnet_ipam': [{'subnet_cidr': '55.35.40.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-16 02:17:47,313 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e497be1c-95bd-4dd4-a2eb-87c38b664b85', 'name': 'ctest-vn-43119918', 'tenant_id': '876db219797f4d068b8b03eb0cd98305', 'project_id': '876db219797f4d068b8b03eb0cd98305', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['527064a2-ab98-4a21-a68b-5859eafa27d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20916230', 'ctest-vn-43119918'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20916230', 'ctest-policy-allow-all-75935478']], 'subnet_ipam': [{'subnet_cidr': '14.233.165.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-16 02:17:47,462 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-09-16 02:17:47,759 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-09-16 02:17:47,788 - DEBUG - Requesting: http://10.0.0.23:8082/domain/fbd942a6-49fb-4148-ad1f-4c0f3317ac61 2024-09-16 02:17:47,803 - DEBUG - Requesting: http://10.0.0.23:8082/project/876db219-797f-4d06-8b8b-03eb0cd98305 2024-09-16 02:17:47,885 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/abca78e5-b6d8-4620-9803-2950029f8227 2024-09-16 02:17:47,900 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/abca78e5-b6d8-4620-9803-2950029f8227 2024-09-16 02:17:47,914 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/bfe7b2c3-b13f-40ca-8490-08e4ee6928cf 2024-09-16 02:17:47,922 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/bfe7b2c3-b13f-40ca-8490-08e4ee6928cf 2024-09-16 02:17:47,931 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/16ae2658-866b-45af-bf52-9189b3c15811 2024-09-16 02:17:47,939 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-16 02:17:47,939 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/abca78e5-b6d8-4620-9803-2950029f8227 2024-09-16 02:17:47,954 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/bfe7b2c3-b13f-40ca-8490-08e4ee6928cf 2024-09-16 02:17:47,975 - INFO - Verified VN network id 8 for VN abca78e5-b6d8-4620-9803-2950029f8227 2024-09-16 02:17:47,975 - INFO - Verifications in API Server for VN ctest-vn-02489448 passed 2024-09-16 02:17:47,975 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/abca78e5-b6d8-4620-9803-2950029f8227 2024-09-16 02:17:47,990 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/bfe7b2c3-b13f-40ca-8490-08e4ee6928cf 2024-09-16 02:17:47,999 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/bfe7b2c3-b13f-40ca-8490-08e4ee6928cf 2024-09-16 02:17:48,007 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/16ae2658-866b-45af-bf52-9189b3c15811 2024-09-16 02:17:48,022 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20916230:ctest-vn-02489448', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20916230', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12378839453791700512', 'uuid-lslong': '10953644142313308711'}, 'enable': 'true', 'created': '2024-09-16T02:17:45', 'last-modified': '2024-09-16T02:17:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.019489'} 2024-09-16 02:17:48,028 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-16 02:17:48,029 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02489448 passed 2024-09-16 02:17:48,029 - DEBUG - ====Verifying policy data for ctest-vn-02489448 in API_Server ====== 2024-09-16 02:17:48,029 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-09-16 02:17:48,035 - DEBUG - Requesting: http://10.0.0.23:8082/domain/fbd942a6-49fb-4148-ad1f-4c0f3317ac61 2024-09-16 02:17:48,051 - DEBUG - Requesting: http://10.0.0.23:8082/project/876db219-797f-4d06-8b8b-03eb0cd98305 2024-09-16 02:17:48,125 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/abca78e5-b6d8-4620-9803-2950029f8227 2024-09-16 02:17:48,139 - DEBUG - ==>Verifying data for policy with id: 129fccac-063d-44cb-a09b-40007376d62a, fqn: ['default-domain', 'ctest-TestBasicPolicy-20916230', 'ctest-policy-allow-all-75935478'] 2024-09-16 02:17:48,139 - INFO - VN ctest-vn-02489448 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-16 02:17:48,139 - DEBUG - Verifying the vn in opserver 2024-09-16 02:17:48,139 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20916230:ctest-vn-02489448 virtual network link through opserver 10.0.0.23 2024-09-16 02:17:48,140 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-09-16 02:17:48,431 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-09-16 02:17:48,491 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20916230:ctest-vn-02489448', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20916230:ctest-vn-02489448?flat'} 2024-09-16 02:17:48,491 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20916230:ctest-vn-02489448 is found in opserver 2024-09-16 02:17:48,501 - DEBUG - Do not have enough data to verify VN in agent 2024-09-16 02:17:48,506 - DEBUG - VRF ids for VN ctest-vn-02489448: {} 2024-09-16 02:17:48,506 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-09-16 02:17:48,512 - DEBUG - Requesting: http://10.0.0.23:8082/domain/fbd942a6-49fb-4148-ad1f-4c0f3317ac61 2024-09-16 02:17:48,525 - DEBUG - Requesting: http://10.0.0.23:8082/project/876db219-797f-4d06-8b8b-03eb0cd98305 2024-09-16 02:17:48,605 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e497be1c-95bd-4dd4-a2eb-87c38b664b85 2024-09-16 02:17:48,621 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e497be1c-95bd-4dd4-a2eb-87c38b664b85 2024-09-16 02:17:48,634 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/bda765bc-8342-4883-b8a7-f5d0027ad1d4 2024-09-16 02:17:48,644 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/bda765bc-8342-4883-b8a7-f5d0027ad1d4 2024-09-16 02:17:48,652 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/7310a781-0d4b-47e3-b597-4b13bd35b36f 2024-09-16 02:17:48,660 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-16 02:17:48,660 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e497be1c-95bd-4dd4-a2eb-87c38b664b85 2024-09-16 02:17:48,673 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/bda765bc-8342-4883-b8a7-f5d0027ad1d4 2024-09-16 02:17:48,694 - INFO - Verified VN network id 9 for VN e497be1c-95bd-4dd4-a2eb-87c38b664b85 2024-09-16 02:17:48,694 - INFO - Verifications in API Server for VN ctest-vn-43119918 passed 2024-09-16 02:17:48,694 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e497be1c-95bd-4dd4-a2eb-87c38b664b85 2024-09-16 02:17:48,709 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/bda765bc-8342-4883-b8a7-f5d0027ad1d4 2024-09-16 02:17:48,717 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/bda765bc-8342-4883-b8a7-f5d0027ad1d4 2024-09-16 02:17:48,725 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/7310a781-0d4b-47e3-b597-4b13bd35b36f 2024-09-16 02:17:48,739 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20916230:ctest-vn-43119918', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20916230', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16471843192111451604', 'uuid-lslong': '11739626127598439301'}, 'enable': 'true', 'created': '2024-09-16T02:17:46', 'last-modified': '2024-09-16T02:17:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.493500'} 2024-09-16 02:17:48,746 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-16 02:17:48,746 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43119918 passed 2024-09-16 02:17:48,746 - DEBUG - ====Verifying policy data for ctest-vn-43119918 in API_Server ====== 2024-09-16 02:17:48,746 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-09-16 02:17:48,751 - DEBUG - Requesting: http://10.0.0.23:8082/domain/fbd942a6-49fb-4148-ad1f-4c0f3317ac61 2024-09-16 02:17:48,765 - DEBUG - Requesting: http://10.0.0.23:8082/project/876db219-797f-4d06-8b8b-03eb0cd98305 2024-09-16 02:17:48,846 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e497be1c-95bd-4dd4-a2eb-87c38b664b85 2024-09-16 02:17:48,860 - DEBUG - ==>Verifying data for policy with id: 129fccac-063d-44cb-a09b-40007376d62a, fqn: ['default-domain', 'ctest-TestBasicPolicy-20916230', 'ctest-policy-allow-all-75935478'] 2024-09-16 02:17:48,860 - INFO - VN ctest-vn-43119918 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-16 02:17:48,860 - DEBUG - Verifying the vn in opserver 2024-09-16 02:17:48,860 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20916230:ctest-vn-43119918 virtual network link through opserver 10.0.0.23 2024-09-16 02:17:48,860 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-09-16 02:17:48,871 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20916230:ctest-vn-43119918', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20916230:ctest-vn-43119918?flat'} 2024-09-16 02:17:48,871 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20916230:ctest-vn-43119918 is found in opserver 2024-09-16 02:17:48,882 - DEBUG - Do not have enough data to verify VN in agent 2024-09-16 02:17:48,887 - DEBUG - VRF ids for VN ctest-vn-43119918: {} 2024-09-16 02:17:48,939 - DEBUG - Services list from nova: [, , ] 2024-09-16 02:17:49,972 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1943-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1943-1) 2024-09-16 02:17:51,401 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1943-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1943-1) 2024-09-16 02:17:51,401 - INFO - Waiting for VM ctest-TestBasicPolicy-20916230-88739424 to be up.. 2024-09-16 02:17:51,499 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-16 02:17:56,584 - DEBUG - VM is in ACTIVE state now 2024-09-16 02:17:56,584 - INFO - VM name : ctest-TestBasicPolicy-20916230-88739424 2024-09-16 02:17:56,667 - DEBUG - VM ctest-TestBasicPolicy-20916230-88739424 ID is 5c1d734a-fe24-4c33-8eca-a07ceb08323c 2024-09-16 02:17:56,685 - DEBUG - VM ctest-TestBasicPolicy-20916230-88739424 launched on Node cn-jenkins-deploy-platform-ansible-os-1943-1 2024-09-16 02:17:56,763 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/5c1d734a-fe24-4c33-8eca-a07ceb08323c 2024-09-16 02:17:56,774 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/5eec95ec-f54c-4736-9858-b5e280a58995 2024-09-16 02:18:00,039 - 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 1015ms') 2024-09-16 02:18:00,040 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-20916230-88739424 failed! 2024-09-16 02:18:00,099 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-20916230:ctest-vn-02489448 is 55.35.40.193 and allocation pool is NOT set 2024-09-16 02:18:02,163 - 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=3.83 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.699 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.699/2.263/3.827/1.564 ms') 2024-09-16 02:18:02,163 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-20916230-88739424 passed 2024-09-16 02:18:02,323 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-16 02:18:02,323 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-20916230-88739424, IP 55.35.40.195, Port 22 2024-09-16 02:18:02,378 - 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': ''} 2024-09-16 02:18:02,460 - DEBUG - VM ctest-TestBasicPolicy-20916230-88739424 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-16 02:18:07,461 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-16 02:18:07,462 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-20916230-88739424, IP 55.35.40.195, Port 22 2024-09-16 02:18:07,614 - DEBUG - VM ctest-TestBasicPolicy-20916230-88739424 is ready for SSH connections 2024-09-16 02:18:07,615 - INFO - Waiting for VM ctest-TestBasicPolicy-20916230-05783958 to be up.. 2024-09-16 02:18:07,694 - DEBUG - VM is in ACTIVE state now 2024-09-16 02:18:07,694 - INFO - VM name : ctest-TestBasicPolicy-20916230-05783958 2024-09-16 02:18:07,770 - DEBUG - VM ctest-TestBasicPolicy-20916230-05783958 ID is 5308771d-4995-4fdf-bc12-e34642dee336 2024-09-16 02:18:07,770 - DEBUG - VM ctest-TestBasicPolicy-20916230-05783958 launched on Node cn-jenkins-deploy-platform-ansible-os-1943-1 2024-09-16 02:18:07,852 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/5308771d-4995-4fdf-bc12-e34642dee336 2024-09-16 02:18:07,862 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/0e77ecfe-816d-4b78-9085-be7fe4853c2d 2024-09-16 02:18:09,110 - 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=2.89 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.423 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.423/1.657/2.891/1.234 ms') 2024-09-16 02:18:09,111 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-20916230-05783958 passed 2024-09-16 02:18:09,270 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-16 02:18:09,271 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-20916230-05783958, IP 14.233.165.131, Port 22 2024-09-16 02:18:09,437 - DEBUG - VM ctest-TestBasicPolicy-20916230-05783958 is ready for SSH connections 2024-09-16 02:18:09,437 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-16 02:18:09,437 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 14.233.165.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-09-16 02:18:09,437 - DEBUG - ping -s 56 -c 3 -W 1 14.233.165.131 2024-09-16 02:18:13,111 - DEBUG - PING 14.233.165.131 (14.233.165.131): 56 data bytes 64 bytes from 14.233.165.131: seq=0 ttl=63 time=3.651 ms 64 bytes from 14.233.165.131: seq=1 ttl=63 time=0.786 ms 64 bytes from 14.233.165.131: seq=2 ttl=63 time=1.013 ms --- 14.233.165.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.786/1.816/3.651 ms 2024-09-16 02:18:13,112 - INFO - Ping to IP 14.233.165.131 from VM ctest-TestBasicPolicy-20916230-88739424 passed 2024-09-16 02:18:13,310 - DEBUG - Policy Update Response {"network-policy": {"uuid": "129fccac-063d-44cb-a09b-40007376d62a", "href": "http://10.0.0.23:8082/network-policy/129fccac-063d-44cb-a09b-40007376d62a"}} 2024-09-16 02:18:13,310 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-16 02:18:13,311 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 14.233.165.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-09-16 02:18:13,311 - DEBUG - ping -s 56 -c 3 -W 1 14.233.165.131 2024-09-16 02:18:16,513 - DEBUG - PING 14.233.165.131 (14.233.165.131): 56 data bytes 64 bytes from 14.233.165.131: seq=0 ttl=63 time=1.240 ms --- 14.233.165.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.240/1.240/1.240 ms 2024-09-16 02:18:16,513 - WARNING - Ping to IP 14.233.165.131 from VM ctest-TestBasicPolicy-20916230-88739424 failed 2024-09-16 02:18:16,513 - INFO - Deleting VM ctest-TestBasicPolicy-20916230-05783958 2024-09-16 02:18:16,576 - INFO - Deleting VM ctest-TestBasicPolicy-20916230-88739424 2024-09-16 02:18:16,989 - INFO - Deleted policy ctest-policy-allow-all-75935478 2024-09-16 02:18:16,989 - INFO - Deleting VN ctest-vn-43119918 2024-09-16 02:18:17,031 - DEBUG - VN e497be1c-95bd-4dd4-a2eb-87c38b664b85 still in use: Unable to complete operation on network e497be1c-95bd-4dd4-a2eb-87c38b664b85. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-1a30c4bd-8e7a-483b-a683-4bed4c67e391'] 2024-09-16 02:18:17,031 - WARNING - Deleting VN ctest-vn-43119918 failed..Will retry 2024-09-16 02:18:19,157 - DEBUG - Response for deleting network () 2024-09-16 02:18:19,157 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/bda765bc-8342-4883-b8a7-f5d0027ad1d4 2024-09-16 02:18:19,162 - DEBUG - Response Code: 404 2024-09-16 02:18:19,162 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-09-16 02:18:19,167 - DEBUG - Requesting: http://10.0.0.23:8082/domain/fbd942a6-49fb-4148-ad1f-4c0f3317ac61 2024-09-16 02:18:19,221 - DEBUG - Requesting: http://10.0.0.23:8082/project/876db219-797f-4d06-8b8b-03eb0cd98305 2024-09-16 02:18:19,302 - INFO - Validated that VN ctest-vn-43119918 is not found in API Server 2024-09-16 02:18:19,313 - DEBUG - VN ctest-vn-43119918 is not present in Agent 10.0.0.23 2024-09-16 02:18:19,313 - INFO - Validated that VN ctest-vn-43119918 is not in any agent 2024-09-16 02:18:19,328 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-43119918 info 2024-09-16 02:18:19,328 - INFO - Deleting VN ctest-vn-02489448 2024-09-16 02:18:19,426 - DEBUG - Response for deleting network () 2024-09-16 02:18:19,426 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/bfe7b2c3-b13f-40ca-8490-08e4ee6928cf 2024-09-16 02:18:19,433 - DEBUG - Response Code: 404 2024-09-16 02:18:19,433 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-09-16 02:18:19,439 - DEBUG - Requesting: http://10.0.0.23:8082/domain/fbd942a6-49fb-4148-ad1f-4c0f3317ac61 2024-09-16 02:18:19,493 - DEBUG - Requesting: http://10.0.0.23:8082/project/876db219-797f-4d06-8b8b-03eb0cd98305 2024-09-16 02:18:19,580 - INFO - Validated that VN ctest-vn-02489448 is not found in API Server 2024-09-16 02:18:19,591 - DEBUG - VN ctest-vn-02489448 is not present in Agent 10.0.0.23 2024-09-16 02:18:19,591 - INFO - Validated that VN ctest-vn-02489448 is not in any agent 2024-09-16 02:18:19,606 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-02489448 info 2024-09-16 02:18:19,860 - DEBUG - No XMPP flaps were noticed during the test 2024-09-16 02:18:19,860 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2024-09-16 02:18:19,860 - INFO - -------------------------------------------------------------------------------- 2024-09-16 02:18:20,568 - INFO - Deleted project: ctest-TestBasicPolicy-20916230, ID : 876db219-797f-4d06-8b8b-03eb0cd98305