2024-10-31 02:35:02,572 - INFO - Domain Default found not creating 2024-10-31 02:35:02,799 - INFO - Project ctest-TestBasicPolicy-74550052 not found, creating it 2024-10-31 02:35:03,358 - INFO - Created Project:ctest-TestBasicPolicy-74550052, ID : c6f5ed20-df1f-42b5-be53-28c232a5c558 2024-10-31 02:35:05,326 - INFO - ================================================================================ 2024-10-31 02:35:05,326 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-31 02:35:05,327 - 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-31 02:35:05,604 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.5': '0'}} with 2024-10-31 02:35:05,604 - INFO - Initial checks done. Running the testcase now 2024-10-31 02:35:05,604 - INFO - 2024-10-31 02:35:06,430 - DEBUG - Response for create_network : {'network': {'id': '302556f3-3940-4d30-90a9-32cf7ff942f2', 'name': 'ctest-vn-71693501', 'tenant_id': 'c6f5ed20df1f42b5be5328c232a5c558', 'project_id': 'c6f5ed20df1f42b5be5328c232a5c558', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74550052', 'ctest-vn-71693501'], 'port_security_enabled': True, 'description': ''}} 2024-10-31 02:35:06,620 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e6836138-393f-41fa-b487-084f6e9a711a', 'name': '', 'tenant_id': 'c6f5ed20df1f42b5be5328c232a5c558', 'network_id': '302556f3-3940-4d30-90a9-32cf7ff942f2', 'ip_version': 4, 'cidr': '78.14.23.192/26', 'allocation_pools': [{'start': '78.14.23.194', 'end': '78.14.23.254'}], 'gateway_ip': '78.14.23.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '78.14.23.194', 'tags': [], 'project_id': 'c6f5ed20df1f42b5be5328c232a5c558'}} 2024-10-31 02:35:06,651 - INFO - Created VN ctest-vn-71693501 2024-10-31 02:35:06,732 - DEBUG - VN ctest-vn-71693501 UUID is 302556f3-3940-4d30-90a9-32cf7ff942f2 2024-10-31 02:35:07,151 - DEBUG - Response for create_network : {'network': {'id': '1bfaa85b-8813-4fae-a413-47dc0e4b0ebc', 'name': 'ctest-vn-23383127', 'tenant_id': 'c6f5ed20df1f42b5be5328c232a5c558', 'project_id': 'c6f5ed20df1f42b5be5328c232a5c558', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74550052', 'ctest-vn-23383127'], 'port_security_enabled': True, 'description': ''}} 2024-10-31 02:35:07,436 - DEBUG - Response for create_subnet : {'subnet': {'id': '2c05e2db-689a-40dd-8984-ec1fb69bbe06', 'name': '', 'tenant_id': 'c6f5ed20df1f42b5be5328c232a5c558', 'network_id': '1bfaa85b-8813-4fae-a413-47dc0e4b0ebc', 'ip_version': 4, 'cidr': '91.32.142.192/26', 'allocation_pools': [{'start': '91.32.142.194', 'end': '91.32.142.254'}], 'gateway_ip': '91.32.142.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '91.32.142.194', 'tags': [], 'project_id': 'c6f5ed20df1f42b5be5328c232a5c558'}} 2024-10-31 02:35:07,468 - INFO - Created VN ctest-vn-23383127 2024-10-31 02:35:07,532 - DEBUG - VN ctest-vn-23383127 UUID is 1bfaa85b-8813-4fae-a413-47dc0e4b0ebc 2024-10-31 02:35:07,693 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-74550052:ctest-vn-71693501, 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-74550052:ctest-vn-23383127, 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-31 02:35:08,077 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '302556f3-3940-4d30-90a9-32cf7ff942f2', 'name': 'ctest-vn-71693501', 'tenant_id': 'c6f5ed20df1f42b5be5328c232a5c558', 'project_id': 'c6f5ed20df1f42b5be5328c232a5c558', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e6836138-393f-41fa-b487-084f6e9a711a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74550052', 'ctest-vn-71693501'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74550052', 'ctest-policy-allow-all-41358465']], 'subnet_ipam': [{'subnet_cidr': '78.14.23.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-31 02:35:08,389 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1bfaa85b-8813-4fae-a413-47dc0e4b0ebc', 'name': 'ctest-vn-23383127', 'tenant_id': 'c6f5ed20df1f42b5be5328c232a5c558', 'project_id': 'c6f5ed20df1f42b5be5328c232a5c558', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2c05e2db-689a-40dd-8984-ec1fb69bbe06'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74550052', 'ctest-vn-23383127'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74550052', 'ctest-policy-allow-all-41358465']], 'subnet_ipam': [{'subnet_cidr': '91.32.142.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-31 02:35:08,572 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-10-31 02:35:08,927 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-10-31 02:35:08,972 - DEBUG - Requesting: http://10.0.0.34:8082/domain/8c113549-a182-4912-a71e-a025c3af72d4 2024-10-31 02:35:08,992 - DEBUG - Requesting: http://10.0.0.34:8082/project/c6f5ed20-df1f-42b5-be53-28c232a5c558 2024-10-31 02:35:09,083 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/302556f3-3940-4d30-90a9-32cf7ff942f2 2024-10-31 02:35:09,105 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/302556f3-3940-4d30-90a9-32cf7ff942f2 2024-10-31 02:35:09,126 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/6b5675ce-940b-4f0c-9423-ee1e31b67030 2024-10-31 02:35:09,142 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/6b5675ce-940b-4f0c-9423-ee1e31b67030 2024-10-31 02:35:09,155 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/9f19fdcf-8a99-44d9-a9d1-f194d5998dfd 2024-10-31 02:35:09,167 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-31 02:35:09,167 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/302556f3-3940-4d30-90a9-32cf7ff942f2 2024-10-31 02:35:09,187 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/6b5675ce-940b-4f0c-9423-ee1e31b67030 2024-10-31 02:35:09,219 - INFO - Verified VN network id 8 for VN 302556f3-3940-4d30-90a9-32cf7ff942f2 2024-10-31 02:35:09,219 - INFO - Verifications in API Server for VN ctest-vn-71693501 passed 2024-10-31 02:35:09,220 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/302556f3-3940-4d30-90a9-32cf7ff942f2 2024-10-31 02:35:09,239 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/6b5675ce-940b-4f0c-9423-ee1e31b67030 2024-10-31 02:35:09,251 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/6b5675ce-940b-4f0c-9423-ee1e31b67030 2024-10-31 02:35:09,264 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/9f19fdcf-8a99-44d9-a9d1-f194d5998dfd 2024-10-31 02:35:09,289 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74550052:ctest-vn-71693501', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74550052', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3469274690596392240', 'uuid-lslong': '10423918679312384754'}, 'enable': 'true', 'created': '2024-10-31T02:35:06', 'last-modified': '2024-10-31T02:35:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.247420'} 2024-10-31 02:35:09,300 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-31 02:35:09,300 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71693501 passed 2024-10-31 02:35:09,300 - DEBUG - ====Verifying policy data for ctest-vn-71693501 in API_Server ====== 2024-10-31 02:35:09,300 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-10-31 02:35:09,310 - DEBUG - Requesting: http://10.0.0.34:8082/domain/8c113549-a182-4912-a71e-a025c3af72d4 2024-10-31 02:35:09,328 - DEBUG - Requesting: http://10.0.0.34:8082/project/c6f5ed20-df1f-42b5-be53-28c232a5c558 2024-10-31 02:35:09,430 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/302556f3-3940-4d30-90a9-32cf7ff942f2 2024-10-31 02:35:09,450 - DEBUG - ==>Verifying data for policy with id: 10b54c0f-0931-479f-9bf3-cdcaec22d3b6, fqn: ['default-domain', 'ctest-TestBasicPolicy-74550052', 'ctest-policy-allow-all-41358465'] 2024-10-31 02:35:09,450 - INFO - VN ctest-vn-71693501 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-31 02:35:09,450 - DEBUG - Verifying the vn in opserver 2024-10-31 02:35:09,450 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74550052:ctest-vn-71693501 virtual network link through opserver 10.0.0.34 2024-10-31 02:35:09,450 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks 2024-10-31 02:35:09,804 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks 2024-10-31 02:35:09,895 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74550052:ctest-vn-71693501', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74550052:ctest-vn-71693501?flat'} 2024-10-31 02:35:09,895 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74550052:ctest-vn-71693501 is found in opserver 2024-10-31 02:35:09,911 - DEBUG - Do not have enough data to verify VN in agent 2024-10-31 02:35:09,919 - DEBUG - VRF ids for VN ctest-vn-71693501: {} 2024-10-31 02:35:09,919 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-10-31 02:35:09,927 - DEBUG - Requesting: http://10.0.0.34:8082/domain/8c113549-a182-4912-a71e-a025c3af72d4 2024-10-31 02:35:09,944 - DEBUG - Requesting: http://10.0.0.34:8082/project/c6f5ed20-df1f-42b5-be53-28c232a5c558 2024-10-31 02:35:10,038 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/1bfaa85b-8813-4fae-a413-47dc0e4b0ebc 2024-10-31 02:35:10,062 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/1bfaa85b-8813-4fae-a413-47dc0e4b0ebc 2024-10-31 02:35:10,082 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/970138ee-8b41-4dc2-9d93-5a35a7ca0ac1 2024-10-31 02:35:10,098 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/970138ee-8b41-4dc2-9d93-5a35a7ca0ac1 2024-10-31 02:35:10,114 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/ed3c5c48-aa6e-4e41-ab73-c59e4d876e4c 2024-10-31 02:35:10,127 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-31 02:35:10,127 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/1bfaa85b-8813-4fae-a413-47dc0e4b0ebc 2024-10-31 02:35:10,147 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/970138ee-8b41-4dc2-9d93-5a35a7ca0ac1 2024-10-31 02:35:10,180 - INFO - Verified VN network id 9 for VN 1bfaa85b-8813-4fae-a413-47dc0e4b0ebc 2024-10-31 02:35:10,180 - INFO - Verifications in API Server for VN ctest-vn-23383127 passed 2024-10-31 02:35:10,180 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/1bfaa85b-8813-4fae-a413-47dc0e4b0ebc 2024-10-31 02:35:10,199 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/970138ee-8b41-4dc2-9d93-5a35a7ca0ac1 2024-10-31 02:35:10,212 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/970138ee-8b41-4dc2-9d93-5a35a7ca0ac1 2024-10-31 02:35:10,223 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/ed3c5c48-aa6e-4e41-ab73-c59e4d876e4c 2024-10-31 02:35:10,241 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74550052:ctest-vn-23383127', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74550052', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2016108894280175534', 'uuid-lslong': '11822872457235861180'}, 'enable': 'true', 'created': '2024-10-31T02:35:07', 'last-modified': '2024-10-31T02:35:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.896972'} 2024-10-31 02:35:10,250 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-31 02:35:10,250 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23383127 passed 2024-10-31 02:35:10,250 - DEBUG - ====Verifying policy data for ctest-vn-23383127 in API_Server ====== 2024-10-31 02:35:10,251 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-10-31 02:35:10,259 - DEBUG - Requesting: http://10.0.0.34:8082/domain/8c113549-a182-4912-a71e-a025c3af72d4 2024-10-31 02:35:10,280 - DEBUG - Requesting: http://10.0.0.34:8082/project/c6f5ed20-df1f-42b5-be53-28c232a5c558 2024-10-31 02:35:10,374 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/1bfaa85b-8813-4fae-a413-47dc0e4b0ebc 2024-10-31 02:35:10,394 - DEBUG - ==>Verifying data for policy with id: 10b54c0f-0931-479f-9bf3-cdcaec22d3b6, fqn: ['default-domain', 'ctest-TestBasicPolicy-74550052', 'ctest-policy-allow-all-41358465'] 2024-10-31 02:35:10,395 - INFO - VN ctest-vn-23383127 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-31 02:35:10,395 - DEBUG - Verifying the vn in opserver 2024-10-31 02:35:10,395 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74550052:ctest-vn-23383127 virtual network link through opserver 10.0.0.34 2024-10-31 02:35:10,395 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks 2024-10-31 02:35:10,411 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74550052:ctest-vn-23383127', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74550052:ctest-vn-23383127?flat'} 2024-10-31 02:35:10,411 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74550052:ctest-vn-23383127 is found in opserver 2024-10-31 02:35:10,425 - DEBUG - Do not have enough data to verify VN in agent 2024-10-31 02:35:10,432 - DEBUG - VRF ids for VN ctest-vn-23383127: {} 2024-10-31 02:35:10,517 - DEBUG - Services list from nova: [, , ] 2024-10-31 02:35:11,981 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2182-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2182-1) 2024-10-31 02:35:13,521 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2182-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2182-1) 2024-10-31 02:35:13,521 - INFO - Waiting for VM ctest-TestBasicPolicy-74550052-72984530 to be up.. 2024-10-31 02:35:13,660 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-31 02:35:18,786 - DEBUG - VM is in ACTIVE state now 2024-10-31 02:35:18,786 - INFO - VM name : ctest-TestBasicPolicy-74550052-72984530 2024-10-31 02:35:18,899 - DEBUG - VM ctest-TestBasicPolicy-74550052-72984530 ID is bff8b0ab-03e9-4c9d-84b4-d947fd963acd 2024-10-31 02:35:18,925 - DEBUG - VM ctest-TestBasicPolicy-74550052-72984530 launched on Node cn-jenkins-deploy-platform-ansible-os-2182-1 2024-10-31 02:35:19,029 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/bff8b0ab-03e9-4c9d-84b4-d947fd963acd 2024-10-31 02:35:19,043 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/93cde59e-03c2-416e-9cda-34dc063f8238 2024-10-31 02:35:22,297 - 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 1013ms') 2024-10-31 02:35:22,297 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-74550052-72984530 failed! 2024-10-31 02:35:22,368 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-74550052:ctest-vn-71693501 is 78.14.23.193 and allocation pool is NOT set 2024-10-31 02:35:26,463 - 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=2 ttl=63 time=3.48 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1023ms\r\nrtt min/avg/max/mdev = 3.480/3.480/3.480/0.000 ms') 2024-10-31 02:35:26,463 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-74550052-72984530 passed 2024-10-31 02:35:26,637 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-31 02:35:26,637 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-74550052-72984530, IP 78.14.23.195, Port 22 2024-10-31 02:35:26,712 - 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-31 02:35:26,838 - DEBUG - VM ctest-TestBasicPolicy-74550052-72984530 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-31 02:35:31,840 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-31 02:35:31,840 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-74550052-72984530, IP 78.14.23.195, Port 22 2024-10-31 02:35:32,014 - DEBUG - VM ctest-TestBasicPolicy-74550052-72984530 is ready for SSH connections 2024-10-31 02:35:32,014 - INFO - Waiting for VM ctest-TestBasicPolicy-74550052-92854188 to be up.. 2024-10-31 02:35:32,138 - DEBUG - VM is in ACTIVE state now 2024-10-31 02:35:32,139 - INFO - VM name : ctest-TestBasicPolicy-74550052-92854188 2024-10-31 02:35:32,248 - DEBUG - VM ctest-TestBasicPolicy-74550052-92854188 ID is ae9eee4a-df2c-4bfd-a49b-266a1ff54317 2024-10-31 02:35:32,248 - DEBUG - VM ctest-TestBasicPolicy-74550052-92854188 launched on Node cn-jenkins-deploy-platform-ansible-os-2182-1 2024-10-31 02:35:32,359 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/ae9eee4a-df2c-4bfd-a49b-266a1ff54317 2024-10-31 02:35:32,374 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/1b46d97e-33b0-49ff-a098-95968980ee8c 2024-10-31 02:35:33,636 - 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=4.31 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.629 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.629/2.470/4.312/1.841 ms') 2024-10-31 02:35:33,637 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-74550052-92854188 passed 2024-10-31 02:35:33,808 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-31 02:35:33,808 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-74550052-92854188, IP 91.32.142.195, Port 22 2024-10-31 02:35:33,982 - DEBUG - VM ctest-TestBasicPolicy-74550052-92854188 is ready for SSH connections 2024-10-31 02:35:33,983 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-31 02:35:33,983 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 91.32.142.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.34, gateway password: c0ntrail123 2024-10-31 02:35:33,983 - DEBUG - ping -s 56 -c 3 -W 1 91.32.142.195 2024-10-31 02:35:37,733 - DEBUG - PING 91.32.142.195 (91.32.142.195): 56 data bytes 64 bytes from 91.32.142.195: seq=0 ttl=63 time=4.638 ms 64 bytes from 91.32.142.195: seq=1 ttl=63 time=1.230 ms 64 bytes from 91.32.142.195: seq=2 ttl=63 time=1.267 ms --- 91.32.142.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.230/2.378/4.638 ms 2024-10-31 02:35:37,733 - INFO - Ping to IP 91.32.142.195 from VM ctest-TestBasicPolicy-74550052-72984530 passed 2024-10-31 02:35:37,951 - DEBUG - Policy Update Response {"network-policy": {"uuid": "10b54c0f-0931-479f-9bf3-cdcaec22d3b6", "href": "http://10.0.0.34:8082/network-policy/10b54c0f-0931-479f-9bf3-cdcaec22d3b6"}} 2024-10-31 02:35:37,952 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-31 02:35:37,952 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 91.32.142.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.34, gateway password: c0ntrail123 2024-10-31 02:35:37,952 - DEBUG - ping -s 56 -c 3 -W 1 91.32.142.195 2024-10-31 02:35:41,195 - DEBUG - PING 91.32.142.195 (91.32.142.195): 56 data bytes --- 91.32.142.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-31 02:35:41,196 - WARNING - Ping to IP 91.32.142.195 from VM ctest-TestBasicPolicy-74550052-72984530 failed 2024-10-31 02:35:41,196 - INFO - Deleting VM ctest-TestBasicPolicy-74550052-92854188 2024-10-31 02:35:41,291 - INFO - Deleting VM ctest-TestBasicPolicy-74550052-72984530 2024-10-31 02:35:41,855 - INFO - Deleted policy ctest-policy-allow-all-41358465 2024-10-31 02:35:41,855 - INFO - Deleting VN ctest-vn-23383127 2024-10-31 02:35:41,929 - DEBUG - VN 1bfaa85b-8813-4fae-a413-47dc0e4b0ebc still in use: Unable to complete operation on network 1bfaa85b-8813-4fae-a413-47dc0e4b0ebc. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-3ad6795b-8912-4629-af99-283705c327b4'] 2024-10-31 02:35:41,930 - WARNING - Deleting VN ctest-vn-23383127 failed..Will retry 2024-10-31 02:35:44,079 - DEBUG - Response for deleting network () 2024-10-31 02:35:44,079 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/970138ee-8b41-4dc2-9d93-5a35a7ca0ac1 2024-10-31 02:35:44,086 - DEBUG - Response Code: 404 2024-10-31 02:35:44,086 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-10-31 02:35:44,094 - DEBUG - Requesting: http://10.0.0.34:8082/domain/8c113549-a182-4912-a71e-a025c3af72d4 2024-10-31 02:35:44,156 - DEBUG - Requesting: http://10.0.0.34:8082/project/c6f5ed20-df1f-42b5-be53-28c232a5c558 2024-10-31 02:35:44,251 - INFO - Validated that VN ctest-vn-23383127 is not found in API Server 2024-10-31 02:35:44,266 - DEBUG - VN ctest-vn-23383127 is not present in Agent 10.0.0.34 2024-10-31 02:35:44,266 - INFO - Validated that VN ctest-vn-23383127 is not in any agent 2024-10-31 02:35:44,286 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-23383127 info 2024-10-31 02:35:44,286 - INFO - Deleting VN ctest-vn-71693501 2024-10-31 02:35:44,427 - DEBUG - Response for deleting network () 2024-10-31 02:35:44,427 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/6b5675ce-940b-4f0c-9423-ee1e31b67030 2024-10-31 02:35:44,435 - DEBUG - Response Code: 404 2024-10-31 02:35:44,436 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-10-31 02:35:44,445 - DEBUG - Requesting: http://10.0.0.34:8082/domain/8c113549-a182-4912-a71e-a025c3af72d4 2024-10-31 02:35:44,508 - DEBUG - Requesting: http://10.0.0.34:8082/project/c6f5ed20-df1f-42b5-be53-28c232a5c558 2024-10-31 02:35:44,613 - INFO - Validated that VN ctest-vn-71693501 is not found in API Server 2024-10-31 02:35:44,629 - DEBUG - VN ctest-vn-71693501 is not present in Agent 10.0.0.34 2024-10-31 02:35:44,629 - INFO - Validated that VN ctest-vn-71693501 is not in any agent 2024-10-31 02:35:44,650 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-71693501 info 2024-10-31 02:35:44,926 - DEBUG - No XMPP flaps were noticed during the test 2024-10-31 02:35:44,926 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:39] 2024-10-31 02:35:44,926 - INFO - -------------------------------------------------------------------------------- 2024-10-31 02:35:45,724 - INFO - Deleted project: ctest-TestBasicPolicy-74550052, ID : c6f5ed20-df1f-42b5-be53-28c232a5c558