2024-10-29 11:30:43,675 - INFO - Domain Default found not creating 2024-10-29 11:30:43,875 - INFO - Project ctest-TestBasicPolicy-45722056 not found, creating it 2024-10-29 11:30:44,436 - INFO - Created Project:ctest-TestBasicPolicy-45722056, ID : 04f54a8f-30fa-4cee-9bce-6e845a4ad1cb 2024-10-29 11:30:46,257 - INFO - ================================================================================ 2024-10-29 11:30:46,258 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-29 11:30:46,258 - 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-10-29 11:30:46,528 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.12': '0'}} with 2024-10-29 11:30:46,528 - INFO - Initial checks done. Running the testcase now 2024-10-29 11:30:46,529 - INFO - 2024-10-29 11:30:47,221 - DEBUG - Response for create_network : {'network': {'id': 'b29ffa36-3539-49af-8156-4bc1c923de20', 'name': 'ctest-vn-11041376', 'tenant_id': '04f54a8f30fa4cee9bce6e845a4ad1cb', 'project_id': '04f54a8f30fa4cee9bce6e845a4ad1cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45722056', 'ctest-vn-11041376'], 'port_security_enabled': True, 'description': ''}} 2024-10-29 11:30:47,463 - DEBUG - Response for create_subnet : {'subnet': {'id': '2d31267b-e180-4fd4-96fa-f83636f2e7bb', 'name': '', 'tenant_id': '04f54a8f30fa4cee9bce6e845a4ad1cb', 'network_id': 'b29ffa36-3539-49af-8156-4bc1c923de20', 'ip_version': 4, 'cidr': '183.84.190.128/26', 'allocation_pools': [{'start': '183.84.190.130', 'end': '183.84.190.190'}], 'gateway_ip': '183.84.190.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '183.84.190.130', 'tags': [], 'project_id': '04f54a8f30fa4cee9bce6e845a4ad1cb'}} 2024-10-29 11:30:47,491 - INFO - Created VN ctest-vn-11041376 2024-10-29 11:30:47,555 - DEBUG - VN ctest-vn-11041376 UUID is b29ffa36-3539-49af-8156-4bc1c923de20 2024-10-29 11:30:47,958 - DEBUG - Response for create_network : {'network': {'id': '43c0f0d6-ef42-479d-b359-9bb2d2b6edc1', 'name': 'ctest-vn-23079365', 'tenant_id': '04f54a8f30fa4cee9bce6e845a4ad1cb', 'project_id': '04f54a8f30fa4cee9bce6e845a4ad1cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45722056', 'ctest-vn-23079365'], 'port_security_enabled': True, 'description': ''}} 2024-10-29 11:30:48,180 - DEBUG - Response for create_subnet : {'subnet': {'id': '694f5cd9-7c71-4d97-a9e5-5147c68e35bc', 'name': '', 'tenant_id': '04f54a8f30fa4cee9bce6e845a4ad1cb', 'network_id': '43c0f0d6-ef42-479d-b359-9bb2d2b6edc1', 'ip_version': 4, 'cidr': '168.88.240.128/26', 'allocation_pools': [{'start': '168.88.240.130', 'end': '168.88.240.190'}], 'gateway_ip': '168.88.240.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.88.240.130', 'tags': [], 'project_id': '04f54a8f30fa4cee9bce6e845a4ad1cb'}} 2024-10-29 11:30:48,203 - INFO - Created VN ctest-vn-23079365 2024-10-29 11:30:48,262 - DEBUG - VN ctest-vn-23079365 UUID is 43c0f0d6-ef42-479d-b359-9bb2d2b6edc1 2024-10-29 11:30:48,410 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-45722056:ctest-vn-11041376, 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-45722056:ctest-vn-23079365, 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-10-29 11:30:48,760 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b29ffa36-3539-49af-8156-4bc1c923de20', 'name': 'ctest-vn-11041376', 'tenant_id': '04f54a8f30fa4cee9bce6e845a4ad1cb', 'project_id': '04f54a8f30fa4cee9bce6e845a4ad1cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2d31267b-e180-4fd4-96fa-f83636f2e7bb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45722056', 'ctest-vn-11041376'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45722056', 'ctest-policy-allow-all-89606652']], 'subnet_ipam': [{'subnet_cidr': '183.84.190.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-29 11:30:49,035 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '43c0f0d6-ef42-479d-b359-9bb2d2b6edc1', 'name': 'ctest-vn-23079365', 'tenant_id': '04f54a8f30fa4cee9bce6e845a4ad1cb', 'project_id': '04f54a8f30fa4cee9bce6e845a4ad1cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['694f5cd9-7c71-4d97-a9e5-5147c68e35bc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45722056', 'ctest-vn-23079365'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45722056', 'ctest-policy-allow-all-89606652']], 'subnet_ipam': [{'subnet_cidr': '168.88.240.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-29 11:30:49,218 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-10-29 11:30:49,580 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-10-29 11:30:49,623 - DEBUG - Requesting: http://10.0.0.29:8082/domain/8562647d-817f-43f9-bca9-6c1ffa94e7d7 2024-10-29 11:30:49,642 - DEBUG - Requesting: http://10.0.0.29:8082/project/04f54a8f-30fa-4cee-9bce-6e845a4ad1cb 2024-10-29 11:30:49,739 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/b29ffa36-3539-49af-8156-4bc1c923de20 2024-10-29 11:30:49,762 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/b29ffa36-3539-49af-8156-4bc1c923de20 2024-10-29 11:30:49,784 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/70bfe923-933f-4d86-a3fc-29db302f42ed 2024-10-29 11:30:49,798 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/70bfe923-933f-4d86-a3fc-29db302f42ed 2024-10-29 11:30:49,809 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/43218b1e-abaa-4d42-905c-ab5a0f57f58d 2024-10-29 11:30:49,821 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-29 11:30:49,821 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/b29ffa36-3539-49af-8156-4bc1c923de20 2024-10-29 11:30:49,841 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/70bfe923-933f-4d86-a3fc-29db302f42ed 2024-10-29 11:30:49,867 - INFO - Verified VN network id 7 for VN b29ffa36-3539-49af-8156-4bc1c923de20 2024-10-29 11:30:49,867 - INFO - Verifications in API Server for VN ctest-vn-11041376 passed 2024-10-29 11:30:49,867 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/b29ffa36-3539-49af-8156-4bc1c923de20 2024-10-29 11:30:49,885 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/70bfe923-933f-4d86-a3fc-29db302f42ed 2024-10-29 11:30:49,899 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/70bfe923-933f-4d86-a3fc-29db302f42ed 2024-10-29 11:30:49,910 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/43218b1e-abaa-4d42-905c-ab5a0f57f58d 2024-10-29 11:30:49,928 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45722056:ctest-vn-11041376', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45722056', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12871281370776291759', 'uuid-lslong': '9319719774565162528'}, 'enable': 'true', 'created': '2024-10-29T11:30:47', 'last-modified': '2024-10-29T11:30:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.203090'} 2024-10-29 11:30:49,936 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-29 11:30:49,936 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11041376 passed 2024-10-29 11:30:49,937 - DEBUG - ====Verifying policy data for ctest-vn-11041376 in API_Server ====== 2024-10-29 11:30:49,937 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-10-29 11:30:49,945 - DEBUG - Requesting: http://10.0.0.29:8082/domain/8562647d-817f-43f9-bca9-6c1ffa94e7d7 2024-10-29 11:30:49,962 - DEBUG - Requesting: http://10.0.0.29:8082/project/04f54a8f-30fa-4cee-9bce-6e845a4ad1cb 2024-10-29 11:30:50,064 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/b29ffa36-3539-49af-8156-4bc1c923de20 2024-10-29 11:30:50,082 - DEBUG - ==>Verifying data for policy with id: 798ce7cb-0dac-4463-a7da-24995a5b91de, fqn: ['default-domain', 'ctest-TestBasicPolicy-45722056', 'ctest-policy-allow-all-89606652'] 2024-10-29 11:30:50,082 - INFO - VN ctest-vn-11041376 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-29 11:30:50,082 - DEBUG - Verifying the vn in opserver 2024-10-29 11:30:50,082 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45722056:ctest-vn-11041376 virtual network link through opserver 10.0.0.29 2024-10-29 11:30:50,082 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-10-29 11:30:50,421 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-10-29 11:30:50,496 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45722056:ctest-vn-11041376', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45722056:ctest-vn-11041376?flat'} 2024-10-29 11:30:50,496 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45722056:ctest-vn-11041376 is found in opserver 2024-10-29 11:30:50,509 - DEBUG - Do not have enough data to verify VN in agent 2024-10-29 11:30:50,515 - DEBUG - VRF ids for VN ctest-vn-11041376: {} 2024-10-29 11:30:50,515 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-10-29 11:30:50,522 - DEBUG - Requesting: http://10.0.0.29:8082/domain/8562647d-817f-43f9-bca9-6c1ffa94e7d7 2024-10-29 11:30:50,538 - DEBUG - Requesting: http://10.0.0.29:8082/project/04f54a8f-30fa-4cee-9bce-6e845a4ad1cb 2024-10-29 11:30:50,623 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/43c0f0d6-ef42-479d-b359-9bb2d2b6edc1 2024-10-29 11:30:50,642 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/43c0f0d6-ef42-479d-b359-9bb2d2b6edc1 2024-10-29 11:30:50,660 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/9a0a0077-9081-46c8-9ebe-f0b28d5f6b3e 2024-10-29 11:30:50,672 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/9a0a0077-9081-46c8-9ebe-f0b28d5f6b3e 2024-10-29 11:30:50,683 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/a414f237-e8bf-4b1b-bdb8-98e66ae7bc2e 2024-10-29 11:30:50,693 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-29 11:30:50,693 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/43c0f0d6-ef42-479d-b359-9bb2d2b6edc1 2024-10-29 11:30:50,710 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/9a0a0077-9081-46c8-9ebe-f0b28d5f6b3e 2024-10-29 11:30:50,735 - INFO - Verified VN network id 8 for VN 43c0f0d6-ef42-479d-b359-9bb2d2b6edc1 2024-10-29 11:30:50,735 - INFO - Verifications in API Server for VN ctest-vn-23079365 passed 2024-10-29 11:30:50,735 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/43c0f0d6-ef42-479d-b359-9bb2d2b6edc1 2024-10-29 11:30:50,751 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/9a0a0077-9081-46c8-9ebe-f0b28d5f6b3e 2024-10-29 11:30:50,763 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/9a0a0077-9081-46c8-9ebe-f0b28d5f6b3e 2024-10-29 11:30:50,774 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/a414f237-e8bf-4b1b-bdb8-98e66ae7bc2e 2024-10-29 11:30:50,790 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45722056:ctest-vn-23079365', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45722056', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4882166801997383581', 'uuid-lslong': '12923531798058036673'}, 'enable': 'true', 'created': '2024-10-29T11:30:47', 'last-modified': '2024-10-29T11:30:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.782768'} 2024-10-29 11:30:50,797 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-29 11:30:50,797 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23079365 passed 2024-10-29 11:30:50,798 - DEBUG - ====Verifying policy data for ctest-vn-23079365 in API_Server ====== 2024-10-29 11:30:50,798 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-10-29 11:30:50,805 - DEBUG - Requesting: http://10.0.0.29:8082/domain/8562647d-817f-43f9-bca9-6c1ffa94e7d7 2024-10-29 11:30:50,820 - DEBUG - Requesting: http://10.0.0.29:8082/project/04f54a8f-30fa-4cee-9bce-6e845a4ad1cb 2024-10-29 11:30:50,912 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/43c0f0d6-ef42-479d-b359-9bb2d2b6edc1 2024-10-29 11:30:50,930 - DEBUG - ==>Verifying data for policy with id: 798ce7cb-0dac-4463-a7da-24995a5b91de, fqn: ['default-domain', 'ctest-TestBasicPolicy-45722056', 'ctest-policy-allow-all-89606652'] 2024-10-29 11:30:50,930 - INFO - VN ctest-vn-23079365 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-29 11:30:50,930 - DEBUG - Verifying the vn in opserver 2024-10-29 11:30:50,930 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45722056:ctest-vn-23079365 virtual network link through opserver 10.0.0.29 2024-10-29 11:30:50,930 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-10-29 11:30:50,945 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45722056:ctest-vn-23079365', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45722056:ctest-vn-23079365?flat'} 2024-10-29 11:30:50,945 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45722056:ctest-vn-23079365 is found in opserver 2024-10-29 11:30:50,960 - DEBUG - Do not have enough data to verify VN in agent 2024-10-29 11:30:50,968 - DEBUG - VRF ids for VN ctest-vn-23079365: {} 2024-10-29 11:30:51,041 - DEBUG - Services list from nova: [, , ] 2024-10-29 11:30:52,283 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2175-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2175-1) 2024-10-29 11:30:53,817 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2175-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2175-1) 2024-10-29 11:30:53,817 - INFO - Waiting for VM ctest-TestBasicPolicy-45722056-06045004 to be up.. 2024-10-29 11:30:53,941 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-29 11:30:59,054 - DEBUG - VM is in ACTIVE state now 2024-10-29 11:30:59,055 - INFO - VM name : ctest-TestBasicPolicy-45722056-06045004 2024-10-29 11:30:59,170 - DEBUG - VM ctest-TestBasicPolicy-45722056-06045004 ID is 1677ca27-028e-4acf-b809-1a754e2616b7 2024-10-29 11:30:59,202 - DEBUG - VM ctest-TestBasicPolicy-45722056-06045004 launched on Node cn-jenkins-deploy-platform-ansible-os-2175-1 2024-10-29 11:30:59,306 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/1677ca27-028e-4acf-b809-1a754e2616b7 2024-10-29 11:30:59,318 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/3c67a910-9cd8-4d44-8694-874481b5fde0 2024-10-29 11:31:02,615 - 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') 2024-10-29 11:31:02,616 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-45722056-06045004 failed! 2024-10-29 11:31:02,682 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-45722056:ctest-vn-11041376 is 183.84.190.129 and allocation pool is NOT set 2024-10-29 11:31:04,753 - 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=10.7 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.52 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 = 2.518/6.629/10.740/4.111 ms') 2024-10-29 11:31:04,753 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-45722056-06045004 passed 2024-10-29 11:31:04,918 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-29 11:31:04,919 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-45722056-06045004, IP 183.84.190.131, Port 22 2024-10-29 11:31:04,991 - 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-10-29 11:31:05,111 - DEBUG - VM ctest-TestBasicPolicy-45722056-06045004 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-29 11:31:10,112 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-29 11:31:10,112 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-45722056-06045004, IP 183.84.190.131, Port 22 2024-10-29 11:31:10,271 - DEBUG - VM ctest-TestBasicPolicy-45722056-06045004 is ready for SSH connections 2024-10-29 11:31:10,271 - INFO - Waiting for VM ctest-TestBasicPolicy-45722056-33142972 to be up.. 2024-10-29 11:31:10,374 - DEBUG - VM is in ACTIVE state now 2024-10-29 11:31:10,374 - INFO - VM name : ctest-TestBasicPolicy-45722056-33142972 2024-10-29 11:31:10,467 - DEBUG - VM ctest-TestBasicPolicy-45722056-33142972 ID is e3336b0f-1a7c-4097-ad74-75cafff23886 2024-10-29 11:31:10,467 - DEBUG - VM ctest-TestBasicPolicy-45722056-33142972 launched on Node cn-jenkins-deploy-platform-ansible-os-2175-1 2024-10-29 11:31:10,564 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/e3336b0f-1a7c-4097-ad74-75cafff23886 2024-10-29 11:31:10,575 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/9ac46d71-40ab-4235-9b29-ab36aaa65f79 2024-10-29 11:31:11,839 - 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.22 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.582 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.582/1.901/3.221/1.319 ms') 2024-10-29 11:31:11,839 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-45722056-33142972 passed 2024-10-29 11:31:12,007 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-29 11:31:12,007 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-45722056-33142972, IP 168.88.240.131, Port 22 2024-10-29 11:31:12,163 - DEBUG - VM ctest-TestBasicPolicy-45722056-33142972 is ready for SSH connections 2024-10-29 11:31:12,163 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-29 11:31:12,163 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 168.88.240.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-10-29 11:31:12,163 - DEBUG - ping -s 56 -c 3 -W 1 168.88.240.131 2024-10-29 11:31:16,340 - DEBUG - PING 168.88.240.131 (168.88.240.131): 56 data bytes 64 bytes from 168.88.240.131: seq=0 ttl=63 time=4.368 ms 64 bytes from 168.88.240.131: seq=1 ttl=63 time=1.017 ms 64 bytes from 168.88.240.131: seq=2 ttl=63 time=0.958 ms --- 168.88.240.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.958/2.114/4.368 ms 2024-10-29 11:31:16,340 - INFO - Ping to IP 168.88.240.131 from VM ctest-TestBasicPolicy-45722056-06045004 passed 2024-10-29 11:31:16,550 - DEBUG - Policy Update Response {"network-policy": {"uuid": "798ce7cb-0dac-4463-a7da-24995a5b91de", "href": "http://10.0.0.29:8082/network-policy/798ce7cb-0dac-4463-a7da-24995a5b91de"}} 2024-10-29 11:31:16,550 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-29 11:31:16,551 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 168.88.240.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-10-29 11:31:16,551 - DEBUG - ping -s 56 -c 3 -W 1 168.88.240.131 2024-10-29 11:31:19,804 - DEBUG - PING 168.88.240.131 (168.88.240.131): 56 data bytes --- 168.88.240.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-29 11:31:19,805 - WARNING - Ping to IP 168.88.240.131 from VM ctest-TestBasicPolicy-45722056-06045004 failed 2024-10-29 11:31:19,805 - INFO - Deleting VM ctest-TestBasicPolicy-45722056-33142972 2024-10-29 11:31:19,902 - INFO - Deleting VM ctest-TestBasicPolicy-45722056-06045004 2024-10-29 11:31:20,473 - INFO - Deleted policy ctest-policy-allow-all-89606652 2024-10-29 11:31:20,473 - INFO - Deleting VN ctest-vn-23079365 2024-10-29 11:31:20,553 - DEBUG - VN 43c0f0d6-ef42-479d-b359-9bb2d2b6edc1 still in use: Unable to complete operation on network 43c0f0d6-ef42-479d-b359-9bb2d2b6edc1. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b6db136e-d5cf-4f64-9a1a-35b4ed58e57e'] 2024-10-29 11:31:20,553 - WARNING - Deleting VN ctest-vn-23079365 failed..Will retry 2024-10-29 11:31:22,694 - DEBUG - Response for deleting network () 2024-10-29 11:31:22,694 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/9a0a0077-9081-46c8-9ebe-f0b28d5f6b3e 2024-10-29 11:31:22,704 - DEBUG - Response Code: 404 2024-10-29 11:31:22,704 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-10-29 11:31:22,716 - DEBUG - Requesting: http://10.0.0.29:8082/domain/8562647d-817f-43f9-bca9-6c1ffa94e7d7 2024-10-29 11:31:22,774 - DEBUG - Requesting: http://10.0.0.29:8082/project/04f54a8f-30fa-4cee-9bce-6e845a4ad1cb 2024-10-29 11:31:22,867 - INFO - Validated that VN ctest-vn-23079365 is not found in API Server 2024-10-29 11:31:22,883 - DEBUG - VN ctest-vn-23079365 is not present in Agent 10.0.0.29 2024-10-29 11:31:22,883 - INFO - Validated that VN ctest-vn-23079365 is not in any agent 2024-10-29 11:31:22,904 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-23079365 info 2024-10-29 11:31:22,904 - INFO - Deleting VN ctest-vn-11041376 2024-10-29 11:31:23,065 - DEBUG - Response for deleting network () 2024-10-29 11:31:23,065 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/70bfe923-933f-4d86-a3fc-29db302f42ed 2024-10-29 11:31:23,077 - DEBUG - Response Code: 404 2024-10-29 11:31:23,077 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-10-29 11:31:23,088 - DEBUG - Requesting: http://10.0.0.29:8082/domain/8562647d-817f-43f9-bca9-6c1ffa94e7d7 2024-10-29 11:31:23,109 - DEBUG - Requesting: http://10.0.0.29:8082/project/04f54a8f-30fa-4cee-9bce-6e845a4ad1cb 2024-10-29 11:31:23,200 - INFO - Validated that VN ctest-vn-11041376 is not found in API Server 2024-10-29 11:31:23,215 - DEBUG - VN ctest-vn-11041376 is not present in Agent 10.0.0.29 2024-10-29 11:31:23,215 - INFO - Validated that VN ctest-vn-11041376 is not in any agent 2024-10-29 11:31:23,238 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-11041376 info 2024-10-29 11:31:23,504 - DEBUG - No XMPP flaps were noticed during the test
2024-10-29 11:31:23,505 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37]
2024-10-29 11:31:23,505 - INFO - -------------------------------------------------------------------------------- 2024-10-29 11:31:24,301 - INFO - Deleted project: ctest-TestBasicPolicy-45722056, ID : 04f54a8f-30fa-4cee-9bce-6e845a4ad1cb