2024-10-24 14:44:01,194 - INFO - Domain Default found not creating 2024-10-24 14:44:01,394 - INFO - Project ctest-TestBasicPolicy-53928346 not found, creating it 2024-10-24 14:44:01,906 - INFO - Created Project:ctest-TestBasicPolicy-53928346, ID : 6a891e09-dfbe-4639-920b-2955e6b70e96 2024-10-24 14:44:03,664 - INFO - ================================================================================ 2024-10-24 14:44:03,664 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-24 14:44:03,665 - 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-24 14:44:03,926 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.8': '0'}} with 2024-10-24 14:44:03,926 - INFO - Initial checks done. Running the testcase now 2024-10-24 14:44:03,926 - INFO - 2024-10-24 14:44:04,618 - DEBUG - Response for create_network : {'network': {'id': 'de85490b-e20c-4707-be29-c08a8d58f16b', 'name': 'ctest-vn-24736312', 'tenant_id': '6a891e09dfbe4639920b2955e6b70e96', 'project_id': '6a891e09dfbe4639920b2955e6b70e96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53928346', 'ctest-vn-24736312'], 'port_security_enabled': True, 'description': ''}} 2024-10-24 14:44:04,828 - DEBUG - Response for create_subnet : {'subnet': {'id': '99f81d78-f475-4cb8-9ef3-41d402f8b2aa', 'name': '', 'tenant_id': '6a891e09dfbe4639920b2955e6b70e96', 'network_id': 'de85490b-e20c-4707-be29-c08a8d58f16b', 'ip_version': 4, 'cidr': '27.152.248.192/26', 'allocation_pools': [{'start': '27.152.248.194', 'end': '27.152.248.254'}], 'gateway_ip': '27.152.248.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.152.248.194', 'tags': [], 'project_id': '6a891e09dfbe4639920b2955e6b70e96'}} 2024-10-24 14:44:04,856 - INFO - Created VN ctest-vn-24736312 2024-10-24 14:44:04,922 - DEBUG - VN ctest-vn-24736312 UUID is de85490b-e20c-4707-be29-c08a8d58f16b 2024-10-24 14:44:05,269 - DEBUG - Response for create_network : {'network': {'id': 'e4147d5c-e6b2-41d7-af84-a7ee62d1b7b2', 'name': 'ctest-vn-08662855', 'tenant_id': '6a891e09dfbe4639920b2955e6b70e96', 'project_id': '6a891e09dfbe4639920b2955e6b70e96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53928346', 'ctest-vn-08662855'], 'port_security_enabled': True, 'description': ''}} 2024-10-24 14:44:05,521 - DEBUG - Response for create_subnet : {'subnet': {'id': '4194a29b-ada1-4f44-b67c-c7984cd023e7', 'name': '', 'tenant_id': '6a891e09dfbe4639920b2955e6b70e96', 'network_id': 'e4147d5c-e6b2-41d7-af84-a7ee62d1b7b2', 'ip_version': 4, 'cidr': '128.12.211.0/26', 'allocation_pools': [{'start': '128.12.211.2', 'end': '128.12.211.62'}], 'gateway_ip': '128.12.211.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '128.12.211.2', 'tags': [], 'project_id': '6a891e09dfbe4639920b2955e6b70e96'}} 2024-10-24 14:44:05,542 - INFO - Created VN ctest-vn-08662855 2024-10-24 14:44:05,606 - DEBUG - VN ctest-vn-08662855 UUID is e4147d5c-e6b2-41d7-af84-a7ee62d1b7b2 2024-10-24 14:44:05,741 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-53928346:ctest-vn-24736312, 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-53928346:ctest-vn-08662855, 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-24 14:44:06,087 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'de85490b-e20c-4707-be29-c08a8d58f16b', 'name': 'ctest-vn-24736312', 'tenant_id': '6a891e09dfbe4639920b2955e6b70e96', 'project_id': '6a891e09dfbe4639920b2955e6b70e96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['99f81d78-f475-4cb8-9ef3-41d402f8b2aa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53928346', 'ctest-vn-24736312'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53928346', 'ctest-policy-allow-all-20071703']], 'subnet_ipam': [{'subnet_cidr': '27.152.248.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-24 14:44:06,362 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e4147d5c-e6b2-41d7-af84-a7ee62d1b7b2', 'name': 'ctest-vn-08662855', 'tenant_id': '6a891e09dfbe4639920b2955e6b70e96', 'project_id': '6a891e09dfbe4639920b2955e6b70e96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4194a29b-ada1-4f44-b67c-c7984cd023e7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53928346', 'ctest-vn-08662855'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53928346', 'ctest-policy-allow-all-20071703']], 'subnet_ipam': [{'subnet_cidr': '128.12.211.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-24 14:44:06,545 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-10-24 14:44:06,891 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-10-24 14:44:06,930 - DEBUG - Requesting: http://10.0.0.12:8082/domain/9a75c930-0318-4427-8c89-47c31e9dcd1e 2024-10-24 14:44:06,947 - DEBUG - Requesting: http://10.0.0.12:8082/project/6a891e09-dfbe-4639-920b-2955e6b70e96 2024-10-24 14:44:07,040 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/de85490b-e20c-4707-be29-c08a8d58f16b 2024-10-24 14:44:07,057 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/de85490b-e20c-4707-be29-c08a8d58f16b 2024-10-24 14:44:07,075 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/be04fd96-0961-4aa6-b5ed-bb672d5faa06 2024-10-24 14:44:07,085 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/be04fd96-0961-4aa6-b5ed-bb672d5faa06 2024-10-24 14:44:07,097 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/f9efeb85-17a0-4232-ba54-28663d0b15ea 2024-10-24 14:44:07,106 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-24 14:44:07,106 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/de85490b-e20c-4707-be29-c08a8d58f16b 2024-10-24 14:44:07,121 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/be04fd96-0961-4aa6-b5ed-bb672d5faa06 2024-10-24 14:44:07,146 - INFO - Verified VN network id 8 for VN de85490b-e20c-4707-be29-c08a8d58f16b 2024-10-24 14:44:07,146 - INFO - Verifications in API Server for VN ctest-vn-24736312 passed 2024-10-24 14:44:07,147 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/de85490b-e20c-4707-be29-c08a8d58f16b 2024-10-24 14:44:07,163 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/be04fd96-0961-4aa6-b5ed-bb672d5faa06 2024-10-24 14:44:07,173 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/be04fd96-0961-4aa6-b5ed-bb672d5faa06 2024-10-24 14:44:07,184 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/f9efeb85-17a0-4232-ba54-28663d0b15ea 2024-10-24 14:44:07,200 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53928346:ctest-vn-24736312', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53928346', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16034302363708442375', 'uuid-lslong': '13702695042560881003'}, 'enable': 'true', 'created': '2024-10-24T14:44:04', 'last-modified': '2024-10-24T14:44:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.142147'} 2024-10-24 14:44:07,208 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-24 14:44:07,208 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24736312 passed 2024-10-24 14:44:07,208 - DEBUG - ====Verifying policy data for ctest-vn-24736312 in API_Server ====== 2024-10-24 14:44:07,208 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-10-24 14:44:07,215 - DEBUG - Requesting: http://10.0.0.12:8082/domain/9a75c930-0318-4427-8c89-47c31e9dcd1e 2024-10-24 14:44:07,231 - DEBUG - Requesting: http://10.0.0.12:8082/project/6a891e09-dfbe-4639-920b-2955e6b70e96 2024-10-24 14:44:07,325 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/de85490b-e20c-4707-be29-c08a8d58f16b 2024-10-24 14:44:07,343 - DEBUG - ==>Verifying data for policy with id: 7cd7dad7-c300-4916-a593-bd2233048cee, fqn: ['default-domain', 'ctest-TestBasicPolicy-53928346', 'ctest-policy-allow-all-20071703'] 2024-10-24 14:44:07,343 - INFO - VN ctest-vn-24736312 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-24 14:44:07,343 - DEBUG - Verifying the vn in opserver 2024-10-24 14:44:07,343 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53928346:ctest-vn-24736312 virtual network link through opserver 10.0.0.12 2024-10-24 14:44:07,343 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-10-24 14:44:07,694 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-10-24 14:44:07,772 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53928346:ctest-vn-24736312', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53928346:ctest-vn-24736312?flat'} 2024-10-24 14:44:07,772 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53928346:ctest-vn-24736312 is found in opserver 2024-10-24 14:44:07,784 - DEBUG - Do not have enough data to verify VN in agent 2024-10-24 14:44:07,791 - DEBUG - VRF ids for VN ctest-vn-24736312: {} 2024-10-24 14:44:07,791 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-10-24 14:44:07,797 - DEBUG - Requesting: http://10.0.0.12:8082/domain/9a75c930-0318-4427-8c89-47c31e9dcd1e 2024-10-24 14:44:07,814 - DEBUG - Requesting: http://10.0.0.12:8082/project/6a891e09-dfbe-4639-920b-2955e6b70e96 2024-10-24 14:44:07,903 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e4147d5c-e6b2-41d7-af84-a7ee62d1b7b2 2024-10-24 14:44:07,923 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e4147d5c-e6b2-41d7-af84-a7ee62d1b7b2 2024-10-24 14:44:07,939 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/225c3445-e23c-49ea-9ab0-734a4dbf9db5 2024-10-24 14:44:07,950 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/225c3445-e23c-49ea-9ab0-734a4dbf9db5 2024-10-24 14:44:07,960 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/740b139c-7e08-4a1d-83d7-ebb099157f81 2024-10-24 14:44:07,970 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-24 14:44:07,970 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e4147d5c-e6b2-41d7-af84-a7ee62d1b7b2 2024-10-24 14:44:07,985 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/225c3445-e23c-49ea-9ab0-734a4dbf9db5 2024-10-24 14:44:08,012 - INFO - Verified VN network id 9 for VN e4147d5c-e6b2-41d7-af84-a7ee62d1b7b2 2024-10-24 14:44:08,012 - INFO - Verifications in API Server for VN ctest-vn-08662855 passed 2024-10-24 14:44:08,012 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e4147d5c-e6b2-41d7-af84-a7ee62d1b7b2 2024-10-24 14:44:08,031 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/225c3445-e23c-49ea-9ab0-734a4dbf9db5 2024-10-24 14:44:08,042 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/225c3445-e23c-49ea-9ab0-734a4dbf9db5 2024-10-24 14:44:08,053 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/740b139c-7e08-4a1d-83d7-ebb099157f81 2024-10-24 14:44:08,071 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53928346:ctest-vn-08662855', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53928346', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16434898778142687703', 'uuid-lslong': '12647418295865161650'}, 'enable': 'true', 'created': '2024-10-24T14:44:05', 'last-modified': '2024-10-24T14:44:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.745707'} 2024-10-24 14:44:08,080 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-24 14:44:08,081 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08662855 passed 2024-10-24 14:44:08,081 - DEBUG - ====Verifying policy data for ctest-vn-08662855 in API_Server ====== 2024-10-24 14:44:08,081 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-10-24 14:44:08,089 - DEBUG - Requesting: http://10.0.0.12:8082/domain/9a75c930-0318-4427-8c89-47c31e9dcd1e 2024-10-24 14:44:08,106 - DEBUG - Requesting: http://10.0.0.12:8082/project/6a891e09-dfbe-4639-920b-2955e6b70e96 2024-10-24 14:44:08,193 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e4147d5c-e6b2-41d7-af84-a7ee62d1b7b2 2024-10-24 14:44:08,212 - DEBUG - ==>Verifying data for policy with id: 7cd7dad7-c300-4916-a593-bd2233048cee, fqn: ['default-domain', 'ctest-TestBasicPolicy-53928346', 'ctest-policy-allow-all-20071703'] 2024-10-24 14:44:08,212 - INFO - VN ctest-vn-08662855 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-24 14:44:08,212 - DEBUG - Verifying the vn in opserver 2024-10-24 14:44:08,212 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53928346:ctest-vn-08662855 virtual network link through opserver 10.0.0.12 2024-10-24 14:44:08,212 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-10-24 14:44:08,228 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53928346:ctest-vn-08662855', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53928346:ctest-vn-08662855?flat'} 2024-10-24 14:44:08,228 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53928346:ctest-vn-08662855 is found in opserver 2024-10-24 14:44:08,242 - DEBUG - Do not have enough data to verify VN in agent 2024-10-24 14:44:08,249 - DEBUG - VRF ids for VN ctest-vn-08662855: {} 2024-10-24 14:44:08,324 - DEBUG - Services list from nova: [, , ] 2024-10-24 14:44:09,643 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2142-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2142-1) 2024-10-24 14:44:10,999 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2142-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2142-1) 2024-10-24 14:44:10,999 - INFO - Waiting for VM ctest-TestBasicPolicy-53928346-65485739 to be up.. 2024-10-24 14:44:11,110 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-24 14:44:16,231 - DEBUG - VM is in ACTIVE state now 2024-10-24 14:44:16,231 - INFO - VM name : ctest-TestBasicPolicy-53928346-65485739 2024-10-24 14:44:16,328 - DEBUG - VM ctest-TestBasicPolicy-53928346-65485739 ID is 9180f9c4-1c6d-4392-ac1e-4d3608f087ee 2024-10-24 14:44:16,351 - DEBUG - VM ctest-TestBasicPolicy-53928346-65485739 launched on Node cn-jenkins-deploy-platform-ansible-os-2142-1 2024-10-24 14:44:16,453 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/9180f9c4-1c6d-4392-ac1e-4d3608f087ee 2024-10-24 14:44:16,465 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/ac37608e-4490-43cb-b971-b018126148b9 2024-10-24 14:44:19,734 - 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 1006ms') 2024-10-24 14:44:19,734 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-53928346-65485739 failed! 2024-10-24 14:44:19,797 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-53928346:ctest-vn-24736312 is 27.152.248.193 and allocation pool is NOT set 2024-10-24 14:44:21,863 - 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.1 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.21 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.210/6.143/10.077/3.933 ms') 2024-10-24 14:44:21,863 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-53928346-65485739 passed 2024-10-24 14:44:22,033 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 14:44:22,033 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-53928346-65485739, IP 27.152.248.195, Port 22 2024-10-24 14:44:22,103 - 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-24 14:44:22,205 - DEBUG - VM ctest-TestBasicPolicy-53928346-65485739 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-24 14:44:27,205 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 14:44:27,206 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-53928346-65485739, IP 27.152.248.195, Port 22 2024-10-24 14:44:27,369 - DEBUG - VM ctest-TestBasicPolicy-53928346-65485739 is ready for SSH connections 2024-10-24 14:44:27,369 - INFO - Waiting for VM ctest-TestBasicPolicy-53928346-39125177 to be up.. 2024-10-24 14:44:27,465 - DEBUG - VM is in ACTIVE state now 2024-10-24 14:44:27,465 - INFO - VM name : ctest-TestBasicPolicy-53928346-39125177 2024-10-24 14:44:27,557 - DEBUG - VM ctest-TestBasicPolicy-53928346-39125177 ID is 29396ca5-a734-4762-9f59-d7fa14fd0b0b 2024-10-24 14:44:27,558 - DEBUG - VM ctest-TestBasicPolicy-53928346-39125177 launched on Node cn-jenkins-deploy-platform-ansible-os-2142-1 2024-10-24 14:44:27,653 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/29396ca5-a734-4762-9f59-d7fa14fd0b0b 2024-10-24 14:44:27,666 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/95735723-51a6-4e8f-b5d5-e703e7f2d6ca 2024-10-24 14:44:28,928 - 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.71 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.478 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.478/2.095/3.713/1.617 ms') 2024-10-24 14:44:28,928 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-53928346-39125177 passed 2024-10-24 14:44:29,093 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 14:44:29,093 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-53928346-39125177, IP 128.12.211.3, Port 22 2024-10-24 14:44:29,259 - DEBUG - VM ctest-TestBasicPolicy-53928346-39125177 is ready for SSH connections 2024-10-24 14:44:29,259 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 14:44:29,259 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 128.12.211.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-10-24 14:44:29,260 - DEBUG - ping -s 56 -c 3 -W 1 128.12.211.3 2024-10-24 14:44:33,389 - DEBUG - PING 128.12.211.3 (128.12.211.3): 56 data bytes 64 bytes from 128.12.211.3: seq=0 ttl=63 time=5.233 ms 64 bytes from 128.12.211.3: seq=1 ttl=63 time=1.114 ms 64 bytes from 128.12.211.3: seq=2 ttl=63 time=1.192 ms --- 128.12.211.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.114/2.513/5.233 ms 2024-10-24 14:44:33,389 - INFO - Ping to IP 128.12.211.3 from VM ctest-TestBasicPolicy-53928346-65485739 passed 2024-10-24 14:44:33,589 - DEBUG - Policy Update Response {"network-policy": {"uuid": "7cd7dad7-c300-4916-a593-bd2233048cee", "href": "http://10.0.0.12:8082/network-policy/7cd7dad7-c300-4916-a593-bd2233048cee"}} 2024-10-24 14:44:33,589 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 14:44:33,589 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 128.12.211.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-10-24 14:44:33,589 - DEBUG - ping -s 56 -c 3 -W 1 128.12.211.3 2024-10-24 14:44:36,829 - DEBUG - PING 128.12.211.3 (128.12.211.3): 56 data bytes --- 128.12.211.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-24 14:44:36,830 - WARNING - Ping to IP 128.12.211.3 from VM ctest-TestBasicPolicy-53928346-65485739 failed 2024-10-24 14:44:36,830 - INFO - Deleting VM ctest-TestBasicPolicy-53928346-39125177 2024-10-24 14:44:36,915 - INFO - Deleting VM ctest-TestBasicPolicy-53928346-65485739 2024-10-24 14:44:37,438 - INFO - Deleted policy ctest-policy-allow-all-20071703 2024-10-24 14:44:37,438 - INFO - Deleting VN ctest-vn-08662855 2024-10-24 14:44:37,479 - DEBUG - VN e4147d5c-e6b2-41d7-af84-a7ee62d1b7b2 still in use: Unable to complete operation on network e4147d5c-e6b2-41d7-af84-a7ee62d1b7b2. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ed36e713-9b0c-41e0-abd3-6db90f247e61'] 2024-10-24 14:44:37,479 - WARNING - Deleting VN ctest-vn-08662855 failed..Will retry 2024-10-24 14:44:39,617 - DEBUG - Response for deleting network () 2024-10-24 14:44:39,618 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/225c3445-e23c-49ea-9ab0-734a4dbf9db5 2024-10-24 14:44:39,627 - DEBUG - Response Code: 404 2024-10-24 14:44:39,627 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-10-24 14:44:39,639 - DEBUG - Requesting: http://10.0.0.12:8082/domain/9a75c930-0318-4427-8c89-47c31e9dcd1e 2024-10-24 14:44:39,660 - DEBUG - Requesting: http://10.0.0.12:8082/project/6a891e09-dfbe-4639-920b-2955e6b70e96 2024-10-24 14:44:39,755 - INFO - Validated that VN ctest-vn-08662855 is not found in API Server 2024-10-24 14:44:39,770 - DEBUG - VN ctest-vn-08662855 is not present in Agent 10.0.0.12 2024-10-24 14:44:39,770 - INFO - Validated that VN ctest-vn-08662855 is not in any agent 2024-10-24 14:44:39,791 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-08662855 info 2024-10-24 14:44:39,792 - INFO - Deleting VN ctest-vn-24736312 2024-10-24 14:44:39,914 - DEBUG - Response for deleting network () 2024-10-24 14:44:39,915 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/be04fd96-0961-4aa6-b5ed-bb672d5faa06 2024-10-24 14:44:39,922 - DEBUG - Response Code: 404 2024-10-24 14:44:39,922 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-10-24 14:44:39,934 - DEBUG - Requesting: http://10.0.0.12:8082/domain/9a75c930-0318-4427-8c89-47c31e9dcd1e 2024-10-24 14:44:39,992 - DEBUG - Requesting: http://10.0.0.12:8082/project/6a891e09-dfbe-4639-920b-2955e6b70e96 2024-10-24 14:44:40,088 - INFO - Validated that VN ctest-vn-24736312 is not found in API Server 2024-10-24 14:44:40,102 - DEBUG - VN ctest-vn-24736312 is not present in Agent 10.0.0.12 2024-10-24 14:44:40,102 - INFO - Validated that VN ctest-vn-24736312 is not in any agent 2024-10-24 14:44:40,121 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-24736312 info 2024-10-24 14:44:40,384 - DEBUG - No XMPP flaps were noticed during the test 2024-10-24 14:44:40,385 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37] 2024-10-24 14:44:40,385 - INFO - -------------------------------------------------------------------------------- 2024-10-24 14:44:41,164 - INFO - Deleted project: ctest-TestBasicPolicy-53928346, ID : 6a891e09-dfbe-4639-920b-2955e6b70e96