2024-08-21 12:11:07,955 - INFO - Domain Default found not creating 2024-08-21 12:11:08,114 - INFO - Project ctest-TestBasicPolicy-40656961 not found, creating it 2024-08-21 12:11:08,573 - INFO - Created Project:ctest-TestBasicPolicy-40656961, ID : 6b075826-386f-4b19-891c-f4026faf4c70 2024-08-21 12:11:10,070 - INFO - ================================================================================ 2024-08-21 12:11:10,070 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-21 12:11:10,070 - 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-08-21 12:11:10,325 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.10': '0'}} with 2024-08-21 12:11:10,325 - INFO - Initial checks done. Running the testcase now 2024-08-21 12:11:10,325 - INFO - 2024-08-21 12:11:10,921 - DEBUG - Response for create_network : {'network': {'id': 'f1851162-1027-4424-b62e-54a8f0ae95d9', 'name': 'ctest-vn-01637628', 'tenant_id': '6b075826386f4b19891cf4026faf4c70', 'project_id': '6b075826386f4b19891cf4026faf4c70', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40656961', 'ctest-vn-01637628'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 12:11:11,101 - DEBUG - Response for create_subnet : {'subnet': {'id': '47a260d4-582d-43b4-b8a9-a44a3388f008', 'name': '', 'tenant_id': '6b075826386f4b19891cf4026faf4c70', 'network_id': 'f1851162-1027-4424-b62e-54a8f0ae95d9', 'ip_version': 4, 'cidr': '187.144.80.0/26', 'allocation_pools': [{'start': '187.144.80.2', 'end': '187.144.80.62'}], 'gateway_ip': '187.144.80.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.144.80.2', 'tags': [], 'project_id': '6b075826386f4b19891cf4026faf4c70'}} 2024-08-21 12:11:11,121 - INFO - Created VN ctest-vn-01637628 2024-08-21 12:11:11,173 - DEBUG - VN ctest-vn-01637628 UUID is f1851162-1027-4424-b62e-54a8f0ae95d9 2024-08-21 12:11:12,618 - DEBUG - Response for create_network : {'network': {'id': '817409ed-ca5f-45ea-9ee8-007d319e15e3', 'name': 'ctest-vn-13703933', 'tenant_id': '6b075826386f4b19891cf4026faf4c70', 'project_id': '6b075826386f4b19891cf4026faf4c70', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40656961', 'ctest-vn-13703933'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 12:11:12,821 - DEBUG - Response for create_subnet : {'subnet': {'id': '261048d8-82e3-4ca1-9a74-7d17a438a484', 'name': '', 'tenant_id': '6b075826386f4b19891cf4026faf4c70', 'network_id': '817409ed-ca5f-45ea-9ee8-007d319e15e3', 'ip_version': 4, 'cidr': '104.12.214.192/26', 'allocation_pools': [{'start': '104.12.214.194', 'end': '104.12.214.254'}], 'gateway_ip': '104.12.214.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.12.214.194', 'tags': [], 'project_id': '6b075826386f4b19891cf4026faf4c70'}} 2024-08-21 12:11:12,842 - INFO - Created VN ctest-vn-13703933 2024-08-21 12:11:12,893 - DEBUG - VN ctest-vn-13703933 UUID is 817409ed-ca5f-45ea-9ee8-007d319e15e3 2024-08-21 12:11:13,023 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40656961:ctest-vn-01637628, 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-40656961:ctest-vn-13703933, 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-08-21 12:11:13,315 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f1851162-1027-4424-b62e-54a8f0ae95d9', 'name': 'ctest-vn-01637628', 'tenant_id': '6b075826386f4b19891cf4026faf4c70', 'project_id': '6b075826386f4b19891cf4026faf4c70', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['47a260d4-582d-43b4-b8a9-a44a3388f008'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40656961', 'ctest-vn-01637628'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40656961', 'ctest-policy-allow-all-19724218']], 'subnet_ipam': [{'subnet_cidr': '187.144.80.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-21 12:11:13,551 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '817409ed-ca5f-45ea-9ee8-007d319e15e3', 'name': 'ctest-vn-13703933', 'tenant_id': '6b075826386f4b19891cf4026faf4c70', 'project_id': '6b075826386f4b19891cf4026faf4c70', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['261048d8-82e3-4ca1-9a74-7d17a438a484'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40656961', 'ctest-vn-13703933'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40656961', 'ctest-policy-allow-all-19724218']], 'subnet_ipam': [{'subnet_cidr': '104.12.214.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-21 12:11:13,709 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-08-21 12:11:14,003 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-08-21 12:11:14,035 - DEBUG - Requesting: http://10.0.0.37:8082/domain/ffc734a5-5d7b-48d7-89ee-012dd3170410 2024-08-21 12:11:14,048 - DEBUG - Requesting: http://10.0.0.37:8082/project/6b075826-386f-4b19-891c-f4026faf4c70 2024-08-21 12:11:14,117 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/f1851162-1027-4424-b62e-54a8f0ae95d9 2024-08-21 12:11:14,127 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/f1851162-1027-4424-b62e-54a8f0ae95d9 2024-08-21 12:11:14,135 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/c5367210-4614-4c3f-9728-983bd7497cbf 2024-08-21 12:11:14,142 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/c5367210-4614-4c3f-9728-983bd7497cbf 2024-08-21 12:11:14,148 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/46778b63-be71-4aa8-9bfe-39ecb323d5eb 2024-08-21 12:11:14,156 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-21 12:11:14,156 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/f1851162-1027-4424-b62e-54a8f0ae95d9 2024-08-21 12:11:14,163 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/c5367210-4614-4c3f-9728-983bd7497cbf 2024-08-21 12:11:14,175 - INFO - Verified VN network id 8 for VN f1851162-1027-4424-b62e-54a8f0ae95d9 2024-08-21 12:11:14,175 - INFO - Verifications in API Server for VN ctest-vn-01637628 passed 2024-08-21 12:11:14,175 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/f1851162-1027-4424-b62e-54a8f0ae95d9 2024-08-21 12:11:14,186 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/c5367210-4614-4c3f-9728-983bd7497cbf 2024-08-21 12:11:14,193 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/c5367210-4614-4c3f-9728-983bd7497cbf 2024-08-21 12:11:14,201 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/46778b63-be71-4aa8-9bfe-39ecb323d5eb 2024-08-21 12:11:14,214 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40656961:ctest-vn-01637628', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40656961', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17403335447918625828', 'uuid-lslong': '13127523048400786905'}, 'enable': 'true', 'created': '2024-08-21T12:11:10', 'last-modified': '2024-08-21T12:11:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.920987'} 2024-08-21 12:11:14,220 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-21 12:11:14,220 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01637628 passed 2024-08-21 12:11:14,220 - DEBUG - ====Verifying policy data for ctest-vn-01637628 in API_Server ====== 2024-08-21 12:11:14,220 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-08-21 12:11:14,226 - DEBUG - Requesting: http://10.0.0.37:8082/domain/ffc734a5-5d7b-48d7-89ee-012dd3170410 2024-08-21 12:11:14,238 - DEBUG - Requesting: http://10.0.0.37:8082/project/6b075826-386f-4b19-891c-f4026faf4c70 2024-08-21 12:11:14,310 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/f1851162-1027-4424-b62e-54a8f0ae95d9 2024-08-21 12:11:14,318 - DEBUG - ==>Verifying data for policy with id: 8d616047-e9c7-401f-a474-1fd2056e17a9, fqn: ['default-domain', 'ctest-TestBasicPolicy-40656961', 'ctest-policy-allow-all-19724218'] 2024-08-21 12:11:14,318 - INFO - VN ctest-vn-01637628 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-21 12:11:14,318 - DEBUG - Verifying the vn in opserver 2024-08-21 12:11:14,318 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40656961:ctest-vn-01637628 virtual network link through opserver 10.0.0.37 2024-08-21 12:11:14,318 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks 2024-08-21 12:11:14,887 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks 2024-08-21 12:11:14,971 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40656961:ctest-vn-01637628', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40656961:ctest-vn-01637628?flat'} 2024-08-21 12:11:14,971 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40656961:ctest-vn-01637628 is found in opserver 2024-08-21 12:11:14,983 - DEBUG - Do not have enough data to verify VN in agent 2024-08-21 12:11:14,988 - DEBUG - VRF ids for VN ctest-vn-01637628: {} 2024-08-21 12:11:14,988 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-08-21 12:11:14,994 - DEBUG - Requesting: http://10.0.0.37:8082/domain/ffc734a5-5d7b-48d7-89ee-012dd3170410 2024-08-21 12:11:15,006 - DEBUG - Requesting: http://10.0.0.37:8082/project/6b075826-386f-4b19-891c-f4026faf4c70 2024-08-21 12:11:15,076 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/817409ed-ca5f-45ea-9ee8-007d319e15e3 2024-08-21 12:11:15,086 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/817409ed-ca5f-45ea-9ee8-007d319e15e3 2024-08-21 12:11:15,094 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/b89d4467-99f0-4ac0-9795-9c7543297583 2024-08-21 12:11:15,101 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/b89d4467-99f0-4ac0-9795-9c7543297583 2024-08-21 12:11:15,107 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/ce5972ba-bb10-467f-a097-3b77a22aacff 2024-08-21 12:11:15,114 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-21 12:11:15,114 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/817409ed-ca5f-45ea-9ee8-007d319e15e3 2024-08-21 12:11:15,122 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/b89d4467-99f0-4ac0-9795-9c7543297583 2024-08-21 12:11:15,133 - INFO - Verified VN network id 9 for VN 817409ed-ca5f-45ea-9ee8-007d319e15e3 2024-08-21 12:11:15,133 - INFO - Verifications in API Server for VN ctest-vn-13703933 passed 2024-08-21 12:11:15,133 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/817409ed-ca5f-45ea-9ee8-007d319e15e3 2024-08-21 12:11:15,141 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/b89d4467-99f0-4ac0-9795-9c7543297583 2024-08-21 12:11:15,147 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/b89d4467-99f0-4ac0-9795-9c7543297583 2024-08-21 12:11:15,155 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/ce5972ba-bb10-467f-a097-3b77a22aacff 2024-08-21 12:11:15,167 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40656961:ctest-vn-13703933', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40656961', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9328091645098280426', 'uuid-lslong': '11450402590292841955'}, 'enable': 'true', 'created': '2024-08-21T12:11:12', 'last-modified': '2024-08-21T12:11:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.643072'} 2024-08-21 12:11:15,174 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-21 12:11:15,174 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13703933 passed 2024-08-21 12:11:15,174 - DEBUG - ====Verifying policy data for ctest-vn-13703933 in API_Server ====== 2024-08-21 12:11:15,174 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-08-21 12:11:15,180 - DEBUG - Requesting: http://10.0.0.37:8082/domain/ffc734a5-5d7b-48d7-89ee-012dd3170410 2024-08-21 12:11:15,193 - DEBUG - Requesting: http://10.0.0.37:8082/project/6b075826-386f-4b19-891c-f4026faf4c70 2024-08-21 12:11:15,258 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/817409ed-ca5f-45ea-9ee8-007d319e15e3 2024-08-21 12:11:15,270 - DEBUG - ==>Verifying data for policy with id: 8d616047-e9c7-401f-a474-1fd2056e17a9, fqn: ['default-domain', 'ctest-TestBasicPolicy-40656961', 'ctest-policy-allow-all-19724218'] 2024-08-21 12:11:15,270 - INFO - VN ctest-vn-13703933 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-21 12:11:15,270 - DEBUG - Verifying the vn in opserver 2024-08-21 12:11:15,270 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40656961:ctest-vn-13703933 virtual network link through opserver 10.0.0.37 2024-08-21 12:11:15,270 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks 2024-08-21 12:11:15,281 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40656961:ctest-vn-13703933', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40656961:ctest-vn-13703933?flat'} 2024-08-21 12:11:15,281 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40656961:ctest-vn-13703933 is found in opserver 2024-08-21 12:11:15,292 - DEBUG - Do not have enough data to verify VN in agent 2024-08-21 12:11:15,298 - DEBUG - VRF ids for VN ctest-vn-13703933: {} 2024-08-21 12:11:15,354 - DEBUG - Services list from nova: [, , ] 2024-08-21 12:11:16,389 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1682-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1682-1) 2024-08-21 12:11:17,672 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1682-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1682-1) 2024-08-21 12:11:17,672 - INFO - Waiting for VM ctest-TestBasicPolicy-40656961-95019975 to be up.. 2024-08-21 12:11:17,753 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-21 12:11:25,450 - DEBUG - VM is in ACTIVE state now 2024-08-21 12:11:25,451 - INFO - VM name : ctest-TestBasicPolicy-40656961-95019975 2024-08-21 12:11:25,553 - DEBUG - VM ctest-TestBasicPolicy-40656961-95019975 ID is 36f40904-bef0-4f9b-976d-9aa57c784617 2024-08-21 12:11:25,576 - DEBUG - VM ctest-TestBasicPolicy-40656961-95019975 launched on Node cn-jenkins-deploy-platform-ansible-os-1682-1 2024-08-21 12:11:25,664 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/36f40904-bef0-4f9b-976d-9aa57c784617 2024-08-21 12:11:25,675 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/6d032f32-4b55-43af-82ca-b8630a352f0b 2024-08-21 12:11:28,944 - 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-08-21 12:11:28,944 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40656961-95019975 failed! 2024-08-21 12:11:28,997 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-40656961:ctest-vn-01637628 is 187.144.80.1 and allocation pool is NOT set 2024-08-21 12:11:33,068 - 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-08-21 12:11:33,069 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40656961-95019975 failed! 2024-08-21 12:11:33,121 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-40656961:ctest-vn-01637628 is 187.144.80.1 and allocation pool is NOT set 2024-08-21 12:11:35,179 - 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=2.83 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.327 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.327/1.578/2.829/1.251 ms') 2024-08-21 12:11:35,179 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40656961-95019975 passed 2024-08-21 12:11:35,329 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 12:11:35,329 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-40656961-95019975, IP 187.144.80.3, Port 22 2024-08-21 12:11:35,386 - 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-08-21 12:11:35,478 - DEBUG - VM ctest-TestBasicPolicy-40656961-95019975 is NOT ready for SSH connections, VM status: ACTIVE 2024-08-21 12:11:40,479 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 12:11:40,479 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-40656961-95019975, IP 187.144.80.3, Port 22 2024-08-21 12:11:40,636 - DEBUG - VM ctest-TestBasicPolicy-40656961-95019975 is ready for SSH connections 2024-08-21 12:11:40,637 - INFO - Waiting for VM ctest-TestBasicPolicy-40656961-45905767 to be up.. 2024-08-21 12:11:40,715 - DEBUG - VM is in ACTIVE state now 2024-08-21 12:11:40,715 - INFO - VM name : ctest-TestBasicPolicy-40656961-45905767 2024-08-21 12:11:40,798 - DEBUG - VM ctest-TestBasicPolicy-40656961-45905767 ID is 88c0a4da-6dd9-47fe-8352-2da7dd585a89 2024-08-21 12:11:40,798 - DEBUG - VM ctest-TestBasicPolicy-40656961-45905767 launched on Node cn-jenkins-deploy-platform-ansible-os-1682-1 2024-08-21 12:11:40,887 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/88c0a4da-6dd9-47fe-8352-2da7dd585a89 2024-08-21 12:11:40,898 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/ff447c5f-09ad-44bb-929e-ca38571d96ea 2024-08-21 12:11:42,141 - 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.06 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.402 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.402/1.733/3.064/1.331 ms') 2024-08-21 12:11:42,141 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-40656961-45905767 passed 2024-08-21 12:11:42,290 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 12:11:42,290 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-40656961-45905767, IP 104.12.214.195, Port 22 2024-08-21 12:11:42,445 - DEBUG - VM ctest-TestBasicPolicy-40656961-45905767 is ready for SSH connections 2024-08-21 12:11:42,445 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 12:11:42,446 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 104.12.214.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.37, gateway password: c0ntrail123 2024-08-21 12:11:42,446 - DEBUG - ping -s 56 -c 3 -W 1 104.12.214.195 2024-08-21 12:11:46,130 - DEBUG - PING 104.12.214.195 (104.12.214.195): 56 data bytes 64 bytes from 104.12.214.195: seq=0 ttl=63 time=3.351 ms 64 bytes from 104.12.214.195: seq=1 ttl=63 time=0.838 ms 64 bytes from 104.12.214.195: seq=2 ttl=63 time=0.943 ms --- 104.12.214.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.838/1.710/3.351 ms 2024-08-21 12:11:46,130 - INFO - Ping to IP 104.12.214.195 from VM ctest-TestBasicPolicy-40656961-95019975 passed 2024-08-21 12:11:46,305 - DEBUG - Policy Update Response {"network-policy": {"uuid": "8d616047-e9c7-401f-a474-1fd2056e17a9", "href": "http://10.0.0.37:8082/network-policy/8d616047-e9c7-401f-a474-1fd2056e17a9"}} 2024-08-21 12:11:46,305 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 12:11:46,305 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 104.12.214.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.37, gateway password: c0ntrail123 2024-08-21 12:11:46,306 - DEBUG - ping -s 56 -c 3 -W 1 104.12.214.195 2024-08-21 12:11:49,510 - DEBUG - PING 104.12.214.195 (104.12.214.195): 56 data bytes --- 104.12.214.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-08-21 12:11:49,510 - WARNING - Ping to IP 104.12.214.195 from VM ctest-TestBasicPolicy-40656961-95019975 failed 2024-08-21 12:11:49,510 - INFO - Deleting VM ctest-TestBasicPolicy-40656961-45905767 2024-08-21 12:11:50,738 - INFO - Deleting VM ctest-TestBasicPolicy-40656961-95019975 2024-08-21 12:11:51,144 - INFO - Deleted policy ctest-policy-allow-all-19724218 2024-08-21 12:11:51,144 - INFO - Deleting VN ctest-vn-13703933 2024-08-21 12:11:51,181 - DEBUG - VN 817409ed-ca5f-45ea-9ee8-007d319e15e3 still in use: Unable to complete operation on network 817409ed-ca5f-45ea-9ee8-007d319e15e3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7698b4a4-c77e-4b1f-a1f8-019c478c3fbd'] 2024-08-21 12:11:51,181 - WARNING - Deleting VN ctest-vn-13703933 failed..Will retry 2024-08-21 12:11:53,929 - DEBUG - Response for deleting network () 2024-08-21 12:11:53,930 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/b89d4467-99f0-4ac0-9795-9c7543297583 2024-08-21 12:11:53,940 - DEBUG - Response Code: 404 2024-08-21 12:11:53,940 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-08-21 12:11:53,946 - DEBUG - Requesting: http://10.0.0.37:8082/domain/ffc734a5-5d7b-48d7-89ee-012dd3170410 2024-08-21 12:11:54,004 - DEBUG - Requesting: http://10.0.0.37:8082/project/6b075826-386f-4b19-891c-f4026faf4c70 2024-08-21 12:11:54,080 - INFO - Validated that VN ctest-vn-13703933 is not found in API Server 2024-08-21 12:11:54,093 - DEBUG - VN ctest-vn-13703933 is not present in Agent 10.0.0.37 2024-08-21 12:11:54,094 - INFO - Validated that VN ctest-vn-13703933 is not in any agent 2024-08-21 12:11:54,112 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-13703933 info 2024-08-21 12:11:54,112 - INFO - Deleting VN ctest-vn-01637628 2024-08-21 12:11:54,233 - DEBUG - Response for deleting network () 2024-08-21 12:11:54,233 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/c5367210-4614-4c3f-9728-983bd7497cbf 2024-08-21 12:11:54,239 - DEBUG - Response Code: 404 2024-08-21 12:11:54,239 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-08-21 12:11:54,246 - DEBUG - Requesting: http://10.0.0.37:8082/domain/ffc734a5-5d7b-48d7-89ee-012dd3170410 2024-08-21 12:11:54,303 - DEBUG - Requesting: http://10.0.0.37:8082/project/6b075826-386f-4b19-891c-f4026faf4c70 2024-08-21 12:11:54,376 - INFO - Validated that VN ctest-vn-01637628 is not found in API Server 2024-08-21 12:11:54,387 - DEBUG - VN ctest-vn-01637628 is not present in Agent 10.0.0.37 2024-08-21 12:11:54,387 - INFO - Validated that VN ctest-vn-01637628 is not in any agent 2024-08-21 12:11:54,403 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-01637628 info 2024-08-21 12:11:54,663 - DEBUG - No XMPP flaps were noticed during the test
2024-08-21 12:11:54,663 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:44]
2024-08-21 12:11:54,663 - INFO - -------------------------------------------------------------------------------- 2024-08-21 12:11:57,026 - INFO - Deleted project: ctest-TestBasicPolicy-40656961, ID : 6b075826-386f-4b19-891c-f4026faf4c70