2024-10-23 15:03:33,623 - INFO - Domain Default found not creating 2024-10-23 15:03:33,797 - INFO - Project ctest-TestBasicPolicy-59314343 not found, creating it 2024-10-23 15:03:34,315 - INFO - Created Project:ctest-TestBasicPolicy-59314343, ID : c6f49c8e-817d-46ce-baf3-d0ba88ffbee0 2024-10-23 15:03:36,032 - INFO - ================================================================================ 2024-10-23 15:03:36,032 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-23 15:03:36,032 - 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-23 15:03:36,287 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.11': '0'}} with 2024-10-23 15:03:36,287 - INFO - Initial checks done. Running the testcase now 2024-10-23 15:03:36,287 - INFO - 2024-10-23 15:03:36,965 - DEBUG - Response for create_network : {'network': {'id': '865a4241-cfb9-45c1-913f-d5aa10b8c4ae', 'name': 'ctest-vn-74408307', 'tenant_id': 'c6f49c8e817d46cebaf3d0ba88ffbee0', 'project_id': 'c6f49c8e817d46cebaf3d0ba88ffbee0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59314343', 'ctest-vn-74408307'], 'port_security_enabled': True, 'description': ''}} 2024-10-23 15:03:37,168 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd9394e57-bb1c-4bff-b4bc-614fbf9d2724', 'name': '', 'tenant_id': 'c6f49c8e817d46cebaf3d0ba88ffbee0', 'network_id': '865a4241-cfb9-45c1-913f-d5aa10b8c4ae', 'ip_version': 4, 'cidr': '112.153.114.0/26', 'allocation_pools': [{'start': '112.153.114.2', 'end': '112.153.114.62'}], 'gateway_ip': '112.153.114.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.153.114.2', 'tags': [], 'project_id': 'c6f49c8e817d46cebaf3d0ba88ffbee0'}} 2024-10-23 15:03:37,189 - INFO - Created VN ctest-vn-74408307 2024-10-23 15:03:37,249 - DEBUG - VN ctest-vn-74408307 UUID is 865a4241-cfb9-45c1-913f-d5aa10b8c4ae 2024-10-23 15:03:37,587 - DEBUG - Response for create_network : {'network': {'id': 'b0c7afe4-e644-4bab-90ab-b2285ab0ff49', 'name': 'ctest-vn-04328114', 'tenant_id': 'c6f49c8e817d46cebaf3d0ba88ffbee0', 'project_id': 'c6f49c8e817d46cebaf3d0ba88ffbee0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59314343', 'ctest-vn-04328114'], 'port_security_enabled': True, 'description': ''}} 2024-10-23 15:03:37,813 - DEBUG - Response for create_subnet : {'subnet': {'id': '6ecbe237-21e2-46f9-b1aa-55c318e2f5d2', 'name': '', 'tenant_id': 'c6f49c8e817d46cebaf3d0ba88ffbee0', 'network_id': 'b0c7afe4-e644-4bab-90ab-b2285ab0ff49', 'ip_version': 4, 'cidr': '60.44.16.64/26', 'allocation_pools': [{'start': '60.44.16.66', 'end': '60.44.16.126'}], 'gateway_ip': '60.44.16.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.44.16.66', 'tags': [], 'project_id': 'c6f49c8e817d46cebaf3d0ba88ffbee0'}} 2024-10-23 15:03:37,833 - INFO - Created VN ctest-vn-04328114 2024-10-23 15:03:37,893 - DEBUG - VN ctest-vn-04328114 UUID is b0c7afe4-e644-4bab-90ab-b2285ab0ff49 2024-10-23 15:03:38,022 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-59314343:ctest-vn-74408307, 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-59314343:ctest-vn-04328114, 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-23 15:03:38,345 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '865a4241-cfb9-45c1-913f-d5aa10b8c4ae', 'name': 'ctest-vn-74408307', 'tenant_id': 'c6f49c8e817d46cebaf3d0ba88ffbee0', 'project_id': 'c6f49c8e817d46cebaf3d0ba88ffbee0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d9394e57-bb1c-4bff-b4bc-614fbf9d2724'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59314343', 'ctest-vn-74408307'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59314343', 'ctest-policy-allow-all-51327380']], 'subnet_ipam': [{'subnet_cidr': '112.153.114.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-23 15:03:38,580 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b0c7afe4-e644-4bab-90ab-b2285ab0ff49', 'name': 'ctest-vn-04328114', 'tenant_id': 'c6f49c8e817d46cebaf3d0ba88ffbee0', 'project_id': 'c6f49c8e817d46cebaf3d0ba88ffbee0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6ecbe237-21e2-46f9-b1aa-55c318e2f5d2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59314343', 'ctest-vn-04328114'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59314343', 'ctest-policy-allow-all-51327380']], 'subnet_ipam': [{'subnet_cidr': '60.44.16.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-23 15:03:38,749 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-10-23 15:03:39,098 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-10-23 15:03:39,132 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4471600d-de52-4ec1-a908-4c59bff90bb8 2024-10-23 15:03:39,154 - DEBUG - Requesting: http://10.0.0.33:8082/project/c6f49c8e-817d-46ce-baf3-d0ba88ffbee0 2024-10-23 15:03:39,244 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/865a4241-cfb9-45c1-913f-d5aa10b8c4ae 2024-10-23 15:03:39,260 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/865a4241-cfb9-45c1-913f-d5aa10b8c4ae 2024-10-23 15:03:39,275 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e3a9dff2-1320-4633-97f9-efcc6755ebd3 2024-10-23 15:03:39,284 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e3a9dff2-1320-4633-97f9-efcc6755ebd3 2024-10-23 15:03:39,292 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/e04137bb-62c6-4254-a770-42b42e0a24bc 2024-10-23 15:03:39,299 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-23 15:03:39,299 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/865a4241-cfb9-45c1-913f-d5aa10b8c4ae 2024-10-23 15:03:39,313 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e3a9dff2-1320-4633-97f9-efcc6755ebd3 2024-10-23 15:03:39,335 - INFO - Verified VN network id 8 for VN 865a4241-cfb9-45c1-913f-d5aa10b8c4ae 2024-10-23 15:03:39,335 - INFO - Verifications in API Server for VN ctest-vn-74408307 passed 2024-10-23 15:03:39,336 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/865a4241-cfb9-45c1-913f-d5aa10b8c4ae 2024-10-23 15:03:39,354 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e3a9dff2-1320-4633-97f9-efcc6755ebd3 2024-10-23 15:03:39,362 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e3a9dff2-1320-4633-97f9-efcc6755ebd3 2024-10-23 15:03:39,371 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/e04137bb-62c6-4254-a770-42b42e0a24bc 2024-10-23 15:03:39,384 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59314343:ctest-vn-74408307', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59314343', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9681123199411635649', 'uuid-lslong': '10466318985434023086'}, 'enable': 'true', 'created': '2024-10-23T15:03:36', 'last-modified': '2024-10-23T15:03:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.065120'} 2024-10-23 15:03:39,391 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-23 15:03:39,392 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74408307 passed 2024-10-23 15:03:39,392 - DEBUG - ====Verifying policy data for ctest-vn-74408307 in API_Server ====== 2024-10-23 15:03:39,392 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-10-23 15:03:39,398 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4471600d-de52-4ec1-a908-4c59bff90bb8 2024-10-23 15:03:39,412 - DEBUG - Requesting: http://10.0.0.33:8082/project/c6f49c8e-817d-46ce-baf3-d0ba88ffbee0 2024-10-23 15:03:39,498 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/865a4241-cfb9-45c1-913f-d5aa10b8c4ae 2024-10-23 15:03:39,516 - DEBUG - ==>Verifying data for policy with id: 594e58e8-7915-42a8-a498-b4036a2e58a4, fqn: ['default-domain', 'ctest-TestBasicPolicy-59314343', 'ctest-policy-allow-all-51327380'] 2024-10-23 15:03:39,516 - INFO - VN ctest-vn-74408307 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-23 15:03:39,516 - DEBUG - Verifying the vn in opserver 2024-10-23 15:03:39,516 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59314343:ctest-vn-74408307 virtual network link through opserver 10.0.0.33 2024-10-23 15:03:39,516 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2024-10-23 15:03:39,865 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2024-10-23 15:03:39,942 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59314343:ctest-vn-74408307', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59314343:ctest-vn-74408307?flat'} 2024-10-23 15:03:39,942 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59314343:ctest-vn-74408307 is found in opserver 2024-10-23 15:03:39,954 - DEBUG - Do not have enough data to verify VN in agent 2024-10-23 15:03:39,960 - DEBUG - VRF ids for VN ctest-vn-74408307: {} 2024-10-23 15:03:39,960 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-10-23 15:03:39,967 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4471600d-de52-4ec1-a908-4c59bff90bb8 2024-10-23 15:03:39,984 - DEBUG - Requesting: http://10.0.0.33:8082/project/c6f49c8e-817d-46ce-baf3-d0ba88ffbee0 2024-10-23 15:03:40,066 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b0c7afe4-e644-4bab-90ab-b2285ab0ff49 2024-10-23 15:03:40,084 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b0c7afe4-e644-4bab-90ab-b2285ab0ff49 2024-10-23 15:03:40,098 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/61eaf363-cfd1-451e-8d1e-d19d6b55245d 2024-10-23 15:03:40,108 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/61eaf363-cfd1-451e-8d1e-d19d6b55245d 2024-10-23 15:03:40,117 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c002736c-0c00-4456-8122-8a0fbe2fbe12 2024-10-23 15:03:40,124 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-23 15:03:40,124 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b0c7afe4-e644-4bab-90ab-b2285ab0ff49 2024-10-23 15:03:40,139 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/61eaf363-cfd1-451e-8d1e-d19d6b55245d 2024-10-23 15:03:40,159 - INFO - Verified VN network id 9 for VN b0c7afe4-e644-4bab-90ab-b2285ab0ff49 2024-10-23 15:03:40,159 - INFO - Verifications in API Server for VN ctest-vn-04328114 passed 2024-10-23 15:03:40,159 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b0c7afe4-e644-4bab-90ab-b2285ab0ff49 2024-10-23 15:03:40,175 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/61eaf363-cfd1-451e-8d1e-d19d6b55245d 2024-10-23 15:03:40,184 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/61eaf363-cfd1-451e-8d1e-d19d6b55245d 2024-10-23 15:03:40,192 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c002736c-0c00-4456-8122-8a0fbe2fbe12 2024-10-23 15:03:40,206 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59314343:ctest-vn-04328114', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59314343', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12738343468691377067', 'uuid-lslong': '10424621648869130057'}, 'enable': 'true', 'created': '2024-10-23T15:03:37', 'last-modified': '2024-10-23T15:03:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.649073'} 2024-10-23 15:03:40,213 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-23 15:03:40,213 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04328114 passed 2024-10-23 15:03:40,214 - DEBUG - ====Verifying policy data for ctest-vn-04328114 in API_Server ====== 2024-10-23 15:03:40,214 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-10-23 15:03:40,219 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4471600d-de52-4ec1-a908-4c59bff90bb8 2024-10-23 15:03:40,234 - DEBUG - Requesting: http://10.0.0.33:8082/project/c6f49c8e-817d-46ce-baf3-d0ba88ffbee0 2024-10-23 15:03:40,320 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b0c7afe4-e644-4bab-90ab-b2285ab0ff49 2024-10-23 15:03:40,335 - DEBUG - ==>Verifying data for policy with id: 594e58e8-7915-42a8-a498-b4036a2e58a4, fqn: ['default-domain', 'ctest-TestBasicPolicy-59314343', 'ctest-policy-allow-all-51327380'] 2024-10-23 15:03:40,335 - INFO - VN ctest-vn-04328114 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-23 15:03:40,335 - DEBUG - Verifying the vn in opserver 2024-10-23 15:03:40,335 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59314343:ctest-vn-04328114 virtual network link through opserver 10.0.0.33 2024-10-23 15:03:40,335 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2024-10-23 15:03:40,347 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59314343:ctest-vn-04328114', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59314343:ctest-vn-04328114?flat'} 2024-10-23 15:03:40,347 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59314343:ctest-vn-04328114 is found in opserver 2024-10-23 15:03:40,359 - DEBUG - Do not have enough data to verify VN in agent 2024-10-23 15:03:40,364 - DEBUG - VRF ids for VN ctest-vn-04328114: {} 2024-10-23 15:03:40,426 - DEBUG - Services list from nova: [, , ] 2024-10-23 15:03:41,725 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2130-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2130-1) 2024-10-23 15:03:43,068 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2130-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2130-1) 2024-10-23 15:03:43,068 - INFO - Waiting for VM ctest-TestBasicPolicy-59314343-74645120 to be up.. 2024-10-23 15:03:43,173 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-23 15:03:48,276 - DEBUG - VM is in ACTIVE state now 2024-10-23 15:03:48,276 - INFO - VM name : ctest-TestBasicPolicy-59314343-74645120 2024-10-23 15:03:48,383 - DEBUG - VM ctest-TestBasicPolicy-59314343-74645120 ID is f52adc93-5fee-4b50-9333-9817f7a5452d 2024-10-23 15:03:48,411 - DEBUG - VM ctest-TestBasicPolicy-59314343-74645120 launched on Node cn-jenkins-deploy-platform-ansible-os-2130-1 2024-10-23 15:03:48,503 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/f52adc93-5fee-4b50-9333-9817f7a5452d 2024-10-23 15:03:48,516 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/3193525b-c056-4bb9-9050-2ca257cec65d 2024-10-23 15:03:51,823 - 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 1022ms') 2024-10-23 15:03:51,823 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-59314343-74645120 failed! 2024-10-23 15:03:51,884 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-59314343:ctest-vn-74408307 is 112.153.114.1 and allocation pool is NOT set 2024-10-23 15:03:53,950 - 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=11.9 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.44 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.437/7.144/11.852/4.707 ms') 2024-10-23 15:03:53,950 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-59314343-74645120 passed 2024-10-23 15:03:54,113 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-23 15:03:54,113 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-59314343-74645120, IP 112.153.114.3, Port 22 2024-10-23 15:03:54,179 - 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-23 15:03:54,280 - DEBUG - VM ctest-TestBasicPolicy-59314343-74645120 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-23 15:03:59,280 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-23 15:03:59,281 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-59314343-74645120, IP 112.153.114.3, Port 22 2024-10-23 15:03:59,436 - DEBUG - VM ctest-TestBasicPolicy-59314343-74645120 is ready for SSH connections 2024-10-23 15:03:59,437 - INFO - Waiting for VM ctest-TestBasicPolicy-59314343-29181848 to be up.. 2024-10-23 15:03:59,521 - DEBUG - VM is in ACTIVE state now 2024-10-23 15:03:59,521 - INFO - VM name : ctest-TestBasicPolicy-59314343-29181848 2024-10-23 15:03:59,602 - DEBUG - VM ctest-TestBasicPolicy-59314343-29181848 ID is da2835d8-b998-411b-a8d6-84836c505b74 2024-10-23 15:03:59,602 - DEBUG - VM ctest-TestBasicPolicy-59314343-29181848 launched on Node cn-jenkins-deploy-platform-ansible-os-2130-1 2024-10-23 15:03:59,687 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/da2835d8-b998-411b-a8d6-84836c505b74 2024-10-23 15:03:59,699 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/ea44157f-1584-4735-a3a5-7130ac913a52 2024-10-23 15:04:00,964 - 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=261 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.407 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.407/130.863/261.320/130.456 ms') 2024-10-23 15:04:00,964 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-59314343-29181848 passed 2024-10-23 15:04:01,129 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-23 15:04:01,129 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-59314343-29181848, IP 60.44.16.67, Port 22 2024-10-23 15:04:01,293 - DEBUG - VM ctest-TestBasicPolicy-59314343-29181848 is ready for SSH connections 2024-10-23 15:04:01,293 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-23 15:04:01,293 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 60.44.16.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2024-10-23 15:04:01,293 - DEBUG - ping -s 56 -c 3 -W 1 60.44.16.67 2024-10-23 15:04:06,672 - DEBUG - PING 60.44.16.67 (60.44.16.67): 56 data bytes 64 bytes from 60.44.16.67: seq=0 ttl=63 time=4.273 ms 64 bytes from 60.44.16.67: seq=1 ttl=63 time=1.464 ms 64 bytes from 60.44.16.67: seq=2 ttl=63 time=0.980 ms --- 60.44.16.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.980/2.239/4.273 ms 2024-10-23 15:04:06,672 - INFO - Ping to IP 60.44.16.67 from VM ctest-TestBasicPolicy-59314343-74645120 passed 2024-10-23 15:04:06,868 - DEBUG - Policy Update Response {"network-policy": {"uuid": "594e58e8-7915-42a8-a498-b4036a2e58a4", "href": "http://10.0.0.33:8082/network-policy/594e58e8-7915-42a8-a498-b4036a2e58a4"}} 2024-10-23 15:04:06,868 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-23 15:04:06,868 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 60.44.16.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2024-10-23 15:04:06,869 - DEBUG - ping -s 56 -c 3 -W 1 60.44.16.67 2024-10-23 15:04:10,112 - DEBUG - PING 60.44.16.67 (60.44.16.67): 56 data bytes --- 60.44.16.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-23 15:04:10,112 - WARNING - Ping to IP 60.44.16.67 from VM ctest-TestBasicPolicy-59314343-74645120 failed 2024-10-23 15:04:10,112 - INFO - Deleting VM ctest-TestBasicPolicy-59314343-29181848 2024-10-23 15:04:10,623 - INFO - Deleting VM ctest-TestBasicPolicy-59314343-74645120 2024-10-23 15:04:11,048 - INFO - Deleted policy ctest-policy-allow-all-51327380 2024-10-23 15:04:11,048 - INFO - Deleting VN ctest-vn-04328114 2024-10-23 15:04:11,098 - DEBUG - VN b0c7afe4-e644-4bab-90ab-b2285ab0ff49 still in use: Unable to complete operation on network b0c7afe4-e644-4bab-90ab-b2285ab0ff49. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7dfbb255-a8f9-4311-b7c8-119bb78475b9'] 2024-10-23 15:04:11,098 - WARNING - Deleting VN ctest-vn-04328114 failed..Will retry 2024-10-23 15:04:13,227 - DEBUG - Response for deleting network () 2024-10-23 15:04:13,227 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/61eaf363-cfd1-451e-8d1e-d19d6b55245d 2024-10-23 15:04:13,239 - DEBUG - Response Code: 404 2024-10-23 15:04:13,239 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-10-23 15:04:13,247 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4471600d-de52-4ec1-a908-4c59bff90bb8 2024-10-23 15:04:13,305 - DEBUG - Requesting: http://10.0.0.33:8082/project/c6f49c8e-817d-46ce-baf3-d0ba88ffbee0 2024-10-23 15:04:13,390 - INFO - Validated that VN ctest-vn-04328114 is not found in API Server 2024-10-23 15:04:13,402 - DEBUG - VN ctest-vn-04328114 is not present in Agent 10.0.0.33 2024-10-23 15:04:13,402 - INFO - Validated that VN ctest-vn-04328114 is not in any agent 2024-10-23 15:04:13,419 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-04328114 info 2024-10-23 15:04:13,419 - INFO - Deleting VN ctest-vn-74408307 2024-10-23 15:04:14,824 - DEBUG - Response for deleting network () 2024-10-23 15:04:14,825 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e3a9dff2-1320-4633-97f9-efcc6755ebd3 2024-10-23 15:04:14,836 - DEBUG - Response Code: 404 2024-10-23 15:04:14,836 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-10-23 15:04:14,843 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4471600d-de52-4ec1-a908-4c59bff90bb8 2024-10-23 15:04:14,900 - DEBUG - Requesting: http://10.0.0.33:8082/project/c6f49c8e-817d-46ce-baf3-d0ba88ffbee0 2024-10-23 15:04:14,986 - INFO - Validated that VN ctest-vn-74408307 is not found in API Server 2024-10-23 15:04:14,999 - DEBUG - VN ctest-vn-74408307 is not present in Agent 10.0.0.33 2024-10-23 15:04:14,999 - INFO - Validated that VN ctest-vn-74408307 is not in any agent 2024-10-23 15:04:15,018 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-74408307 info 2024-10-23 15:04:15,275 - DEBUG - No XMPP flaps were noticed during the test 2024-10-23 15:04:15,275 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:39] 2024-10-23 15:04:15,275 - INFO - -------------------------------------------------------------------------------- 2024-10-23 15:04:16,017 - INFO - Deleted project: ctest-TestBasicPolicy-59314343, ID : c6f49c8e-817d-46ce-baf3-d0ba88ffbee0