2024-10-17 02:41:01,534 - INFO - Domain Default found not creating 2024-10-17 02:41:01,688 - INFO - Project ctest-TestBasicPolicy-37517131 not found, creating it 2024-10-17 02:41:02,181 - INFO - Created Project:ctest-TestBasicPolicy-37517131, ID : 888ca52b-febc-4cf6-984c-afb21eb43950 2024-10-17 02:41:03,700 - INFO - ================================================================================ 2024-10-17 02:41:03,701 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-17 02:41:03,701 - 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-17 02:41:03,955 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.8': '0'}} with 2024-10-17 02:41:03,955 - INFO - Initial checks done. Running the testcase now 2024-10-17 02:41:03,955 - INFO - 2024-10-17 02:41:04,521 - DEBUG - Response for create_network : {'network': {'id': '36933e01-3450-4811-9fb2-f166b2d1be17', 'name': 'ctest-vn-60506804', 'tenant_id': '888ca52bfebc4cf6984cafb21eb43950', 'project_id': '888ca52bfebc4cf6984cafb21eb43950', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37517131', 'ctest-vn-60506804'], 'port_security_enabled': True, 'description': ''}} 2024-10-17 02:41:04,754 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f40d884a-f84c-4984-b05f-b61be7df41fe', 'name': '', 'tenant_id': '888ca52bfebc4cf6984cafb21eb43950', 'network_id': '36933e01-3450-4811-9fb2-f166b2d1be17', 'ip_version': 4, 'cidr': '121.59.67.192/26', 'allocation_pools': [{'start': '121.59.67.194', 'end': '121.59.67.254'}], 'gateway_ip': '121.59.67.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.59.67.194', 'tags': [], 'project_id': '888ca52bfebc4cf6984cafb21eb43950'}} 2024-10-17 02:41:04,773 - INFO - Created VN ctest-vn-60506804 2024-10-17 02:41:04,828 - DEBUG - VN ctest-vn-60506804 UUID is 36933e01-3450-4811-9fb2-f166b2d1be17 2024-10-17 02:41:05,130 - DEBUG - Response for create_network : {'network': {'id': '36d84d4d-9b0d-4708-9b78-3bf2a9fd1c22', 'name': 'ctest-vn-36502581', 'tenant_id': '888ca52bfebc4cf6984cafb21eb43950', 'project_id': '888ca52bfebc4cf6984cafb21eb43950', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37517131', 'ctest-vn-36502581'], 'port_security_enabled': True, 'description': ''}} 2024-10-17 02:41:05,368 - DEBUG - Response for create_subnet : {'subnet': {'id': '5b6c73f2-9a94-4856-b0d2-1766919171c4', 'name': '', 'tenant_id': '888ca52bfebc4cf6984cafb21eb43950', 'network_id': '36d84d4d-9b0d-4708-9b78-3bf2a9fd1c22', 'ip_version': 4, 'cidr': '116.221.246.64/26', 'allocation_pools': [{'start': '116.221.246.66', 'end': '116.221.246.126'}], 'gateway_ip': '116.221.246.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '116.221.246.66', 'tags': [], 'project_id': '888ca52bfebc4cf6984cafb21eb43950'}} 2024-10-17 02:41:05,387 - INFO - Created VN ctest-vn-36502581 2024-10-17 02:41:05,444 - DEBUG - VN ctest-vn-36502581 UUID is 36d84d4d-9b0d-4708-9b78-3bf2a9fd1c22 2024-10-17 02:41:05,564 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-37517131:ctest-vn-60506804, 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-37517131:ctest-vn-36502581, 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-17 02:41:05,897 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '36933e01-3450-4811-9fb2-f166b2d1be17', 'name': 'ctest-vn-60506804', 'tenant_id': '888ca52bfebc4cf6984cafb21eb43950', 'project_id': '888ca52bfebc4cf6984cafb21eb43950', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f40d884a-f84c-4984-b05f-b61be7df41fe'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37517131', 'ctest-vn-60506804'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37517131', 'ctest-policy-allow-all-06356822']], 'subnet_ipam': [{'subnet_cidr': '121.59.67.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-17 02:41:06,139 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '36d84d4d-9b0d-4708-9b78-3bf2a9fd1c22', 'name': 'ctest-vn-36502581', 'tenant_id': '888ca52bfebc4cf6984cafb21eb43950', 'project_id': '888ca52bfebc4cf6984cafb21eb43950', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5b6c73f2-9a94-4856-b0d2-1766919171c4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37517131', 'ctest-vn-36502581'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37517131', 'ctest-policy-allow-all-06356822']], 'subnet_ipam': [{'subnet_cidr': '116.221.246.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-17 02:41:06,320 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2024-10-17 02:41:06,617 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2024-10-17 02:41:06,646 - DEBUG - Requesting: http://10.0.0.49:8082/domain/b9d451c2-5cff-4664-905c-4c82b7dd1a1a 2024-10-17 02:41:06,660 - DEBUG - Requesting: http://10.0.0.49:8082/project/888ca52b-febc-4cf6-984c-afb21eb43950 2024-10-17 02:41:06,745 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/36933e01-3450-4811-9fb2-f166b2d1be17 2024-10-17 02:41:06,762 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/36933e01-3450-4811-9fb2-f166b2d1be17 2024-10-17 02:41:06,777 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/12397df9-e2ff-447e-be1e-684c2d50177d 2024-10-17 02:41:06,788 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/12397df9-e2ff-447e-be1e-684c2d50177d 2024-10-17 02:41:06,798 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/cbbe5e7d-9116-43d1-9d95-7421f08b90bb 2024-10-17 02:41:06,806 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-17 02:41:06,806 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/36933e01-3450-4811-9fb2-f166b2d1be17 2024-10-17 02:41:06,820 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/12397df9-e2ff-447e-be1e-684c2d50177d 2024-10-17 02:41:06,841 - INFO - Verified VN network id 7 for VN 36933e01-3450-4811-9fb2-f166b2d1be17 2024-10-17 02:41:06,841 - INFO - Verifications in API Server for VN ctest-vn-60506804 passed 2024-10-17 02:41:06,841 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/36933e01-3450-4811-9fb2-f166b2d1be17 2024-10-17 02:41:06,855 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/12397df9-e2ff-447e-be1e-684c2d50177d 2024-10-17 02:41:06,865 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/12397df9-e2ff-447e-be1e-684c2d50177d 2024-10-17 02:41:06,875 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/cbbe5e7d-9116-43d1-9d95-7421f08b90bb 2024-10-17 02:41:06,890 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37517131:ctest-vn-60506804', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37517131', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3932555074518140945', 'uuid-lslong': '11507525421274086935'}, 'enable': 'true', 'created': '2024-10-17T02:41:04', 'last-modified': '2024-10-17T02:41:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.030638'} 2024-10-17 02:41:06,897 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-17 02:41:06,898 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60506804 passed 2024-10-17 02:41:06,898 - DEBUG - ====Verifying policy data for ctest-vn-60506804 in API_Server ====== 2024-10-17 02:41:06,898 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2024-10-17 02:41:06,904 - DEBUG - Requesting: http://10.0.0.49:8082/domain/b9d451c2-5cff-4664-905c-4c82b7dd1a1a 2024-10-17 02:41:06,917 - DEBUG - Requesting: http://10.0.0.49:8082/project/888ca52b-febc-4cf6-984c-afb21eb43950 2024-10-17 02:41:07,018 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/36933e01-3450-4811-9fb2-f166b2d1be17 2024-10-17 02:41:07,035 - DEBUG - ==>Verifying data for policy with id: 88e15f03-ebc3-4941-b380-1cc2cab52907, fqn: ['default-domain', 'ctest-TestBasicPolicy-37517131', 'ctest-policy-allow-all-06356822'] 2024-10-17 02:41:07,035 - INFO - VN ctest-vn-60506804 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-17 02:41:07,036 - DEBUG - Verifying the vn in opserver 2024-10-17 02:41:07,036 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37517131:ctest-vn-60506804 virtual network link through opserver 10.0.0.49 2024-10-17 02:41:07,036 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2024-10-17 02:41:07,345 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2024-10-17 02:41:07,405 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37517131:ctest-vn-60506804', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37517131:ctest-vn-60506804?flat'} 2024-10-17 02:41:07,405 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37517131:ctest-vn-60506804 is found in opserver 2024-10-17 02:41:07,418 - DEBUG - Do not have enough data to verify VN in agent 2024-10-17 02:41:07,424 - DEBUG - VRF ids for VN ctest-vn-60506804: {} 2024-10-17 02:41:07,424 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2024-10-17 02:41:07,431 - DEBUG - Requesting: http://10.0.0.49:8082/domain/b9d451c2-5cff-4664-905c-4c82b7dd1a1a 2024-10-17 02:41:07,446 - DEBUG - Requesting: http://10.0.0.49:8082/project/888ca52b-febc-4cf6-984c-afb21eb43950 2024-10-17 02:41:07,532 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/36d84d4d-9b0d-4708-9b78-3bf2a9fd1c22 2024-10-17 02:41:07,547 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/36d84d4d-9b0d-4708-9b78-3bf2a9fd1c22 2024-10-17 02:41:07,562 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/dae36535-d5fc-4068-89fa-045343a8468d 2024-10-17 02:41:07,574 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/dae36535-d5fc-4068-89fa-045343a8468d 2024-10-17 02:41:07,583 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/38b1b072-5830-428b-b572-098f0460a7ad 2024-10-17 02:41:07,591 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-17 02:41:07,591 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/36d84d4d-9b0d-4708-9b78-3bf2a9fd1c22 2024-10-17 02:41:07,605 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/dae36535-d5fc-4068-89fa-045343a8468d 2024-10-17 02:41:07,626 - INFO - Verified VN network id 8 for VN 36d84d4d-9b0d-4708-9b78-3bf2a9fd1c22 2024-10-17 02:41:07,626 - INFO - Verifications in API Server for VN ctest-vn-36502581 passed 2024-10-17 02:41:07,626 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/36d84d4d-9b0d-4708-9b78-3bf2a9fd1c22 2024-10-17 02:41:07,641 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/dae36535-d5fc-4068-89fa-045343a8468d 2024-10-17 02:41:07,654 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/dae36535-d5fc-4068-89fa-045343a8468d 2024-10-17 02:41:07,664 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/38b1b072-5830-428b-b572-098f0460a7ad 2024-10-17 02:41:07,678 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37517131:ctest-vn-36502581', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37517131', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3951993668726769416', 'uuid-lslong': '11202769986504170530'}, 'enable': 'true', 'created': '2024-10-17T02:41:05', 'last-modified': '2024-10-17T02:41:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.575192'} 2024-10-17 02:41:07,684 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-17 02:41:07,684 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36502581 passed 2024-10-17 02:41:07,684 - DEBUG - ====Verifying policy data for ctest-vn-36502581 in API_Server ====== 2024-10-17 02:41:07,684 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2024-10-17 02:41:07,690 - DEBUG - Requesting: http://10.0.0.49:8082/domain/b9d451c2-5cff-4664-905c-4c82b7dd1a1a 2024-10-17 02:41:07,706 - DEBUG - Requesting: http://10.0.0.49:8082/project/888ca52b-febc-4cf6-984c-afb21eb43950 2024-10-17 02:41:07,786 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/36d84d4d-9b0d-4708-9b78-3bf2a9fd1c22 2024-10-17 02:41:07,802 - DEBUG - ==>Verifying data for policy with id: 88e15f03-ebc3-4941-b380-1cc2cab52907, fqn: ['default-domain', 'ctest-TestBasicPolicy-37517131', 'ctest-policy-allow-all-06356822'] 2024-10-17 02:41:07,802 - INFO - VN ctest-vn-36502581 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-17 02:41:07,802 - DEBUG - Verifying the vn in opserver 2024-10-17 02:41:07,802 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37517131:ctest-vn-36502581 virtual network link through opserver 10.0.0.49 2024-10-17 02:41:07,802 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2024-10-17 02:41:07,813 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37517131:ctest-vn-36502581', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37517131:ctest-vn-36502581?flat'} 2024-10-17 02:41:07,813 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37517131:ctest-vn-36502581 is found in opserver 2024-10-17 02:41:07,823 - DEBUG - Do not have enough data to verify VN in agent 2024-10-17 02:41:07,828 - DEBUG - VRF ids for VN ctest-vn-36502581: {} 2024-10-17 02:41:07,883 - DEBUG - Services list from nova: [, , ] 2024-10-17 02:41:08,909 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2109-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2109-1) 2024-10-17 02:41:10,178 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2109-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2109-1) 2024-10-17 02:41:10,179 - INFO - Waiting for VM ctest-TestBasicPolicy-37517131-05644733 to be up.. 2024-10-17 02:41:10,268 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-17 02:41:15,367 - DEBUG - VM is in ACTIVE state now 2024-10-17 02:41:15,368 - INFO - VM name : ctest-TestBasicPolicy-37517131-05644733 2024-10-17 02:41:15,444 - DEBUG - VM ctest-TestBasicPolicy-37517131-05644733 ID is db4eebfb-1d4f-455c-9ae3-713a0c41457a 2024-10-17 02:41:15,462 - DEBUG - VM ctest-TestBasicPolicy-37517131-05644733 launched on Node cn-jenkins-deploy-platform-ansible-os-2109-1 2024-10-17 02:41:15,541 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/db4eebfb-1d4f-455c-9ae3-713a0c41457a 2024-10-17 02:41:15,551 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/e07f50e5-2b48-45f3-bf1c-399d77df2514 2024-10-17 02:41:18,819 - 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-17 02:41:18,819 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-37517131-05644733 failed! 2024-10-17 02:41:18,876 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-37517131:ctest-vn-60506804 is 121.59.67.193 and allocation pool is NOT set 2024-10-17 02:41:20,945 - 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=4.23 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.436 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.436/2.333/4.230/1.897 ms') 2024-10-17 02:41:20,945 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-37517131-05644733 passed 2024-10-17 02:41:21,100 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-17 02:41:21,101 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-37517131-05644733, IP 121.59.67.195, Port 22 2024-10-17 02:41:21,256 - DEBUG - VM ctest-TestBasicPolicy-37517131-05644733 is ready for SSH connections 2024-10-17 02:41:21,256 - INFO - Waiting for VM ctest-TestBasicPolicy-37517131-09769814 to be up.. 2024-10-17 02:41:21,335 - DEBUG - VM is in ACTIVE state now 2024-10-17 02:41:21,335 - INFO - VM name : ctest-TestBasicPolicy-37517131-09769814 2024-10-17 02:41:21,411 - DEBUG - VM ctest-TestBasicPolicy-37517131-09769814 ID is 58bfe676-ea0b-4a3e-9c9e-8cab942e4290 2024-10-17 02:41:21,411 - DEBUG - VM ctest-TestBasicPolicy-37517131-09769814 launched on Node cn-jenkins-deploy-platform-ansible-os-2109-1 2024-10-17 02:41:21,495 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/58bfe676-ea0b-4a3e-9c9e-8cab942e4290 2024-10-17 02:41:21,506 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/12bd0af3-a660-4ec4-a493-d7c6915321ed 2024-10-17 02:41:22,758 - 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.19 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.451 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.451/2.322/4.193/1.871 ms') 2024-10-17 02:41:22,758 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-37517131-09769814 passed 2024-10-17 02:41:22,916 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-17 02:41:22,916 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-37517131-09769814, IP 116.221.246.67, Port 22 2024-10-17 02:41:23,072 - DEBUG - VM ctest-TestBasicPolicy-37517131-09769814 is ready for SSH connections 2024-10-17 02:41:23,072 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-17 02:41:23,072 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 116.221.246.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.49, gateway password: c0ntrail123 2024-10-17 02:41:23,072 - DEBUG - ping -s 56 -c 3 -W 1 116.221.246.67 2024-10-17 02:41:27,056 - DEBUG - PING 116.221.246.67 (116.221.246.67): 56 data bytes 64 bytes from 116.221.246.67: seq=0 ttl=63 time=3.453 ms 64 bytes from 116.221.246.67: seq=1 ttl=63 time=0.961 ms 64 bytes from 116.221.246.67: seq=2 ttl=63 time=0.780 ms --- 116.221.246.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.780/1.731/3.453 ms 2024-10-17 02:41:27,056 - INFO - Ping to IP 116.221.246.67 from VM ctest-TestBasicPolicy-37517131-05644733 passed 2024-10-17 02:41:27,244 - DEBUG - Policy Update Response {"network-policy": {"uuid": "88e15f03-ebc3-4941-b380-1cc2cab52907", "href": "http://10.0.0.49:8082/network-policy/88e15f03-ebc3-4941-b380-1cc2cab52907"}} 2024-10-17 02:41:27,244 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-17 02:41:27,244 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 116.221.246.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.49, gateway password: c0ntrail123 2024-10-17 02:41:27,245 - DEBUG - ping -s 56 -c 3 -W 1 116.221.246.67 2024-10-17 02:41:30,440 - DEBUG - PING 116.221.246.67 (116.221.246.67): 56 data bytes 64 bytes from 116.221.246.67: seq=0 ttl=63 time=1.264 ms --- 116.221.246.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.264/1.264/1.264 ms 2024-10-17 02:41:30,440 - WARNING - Ping to IP 116.221.246.67 from VM ctest-TestBasicPolicy-37517131-05644733 failed 2024-10-17 02:41:30,441 - INFO - Deleting VM ctest-TestBasicPolicy-37517131-09769814 2024-10-17 02:41:30,518 - INFO - Deleting VM ctest-TestBasicPolicy-37517131-05644733 2024-10-17 02:41:30,921 - INFO - Deleted policy ctest-policy-allow-all-06356822 2024-10-17 02:41:30,921 - INFO - Deleting VN ctest-vn-36502581 2024-10-17 02:41:30,958 - DEBUG - VN 36d84d4d-9b0d-4708-9b78-3bf2a9fd1c22 still in use: Unable to complete operation on network 36d84d4d-9b0d-4708-9b78-3bf2a9fd1c22. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ea87ac55-d6f4-4c8c-bb7c-fef23ca082d7'] 2024-10-17 02:41:30,958 - WARNING - Deleting VN ctest-vn-36502581 failed..Will retry 2024-10-17 02:41:33,057 - DEBUG - Response for deleting network () 2024-10-17 02:41:33,057 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/dae36535-d5fc-4068-89fa-045343a8468d 2024-10-17 02:41:33,062 - DEBUG - Response Code: 404 2024-10-17 02:41:33,062 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2024-10-17 02:41:33,072 - DEBUG - Requesting: http://10.0.0.49:8082/domain/b9d451c2-5cff-4664-905c-4c82b7dd1a1a 2024-10-17 02:41:33,126 - DEBUG - Requesting: http://10.0.0.49:8082/project/888ca52b-febc-4cf6-984c-afb21eb43950 2024-10-17 02:41:33,203 - INFO - Validated that VN ctest-vn-36502581 is not found in API Server 2024-10-17 02:41:33,217 - DEBUG - VN ctest-vn-36502581 is not present in Agent 10.0.0.49 2024-10-17 02:41:33,217 - INFO - Validated that VN ctest-vn-36502581 is not in any agent 2024-10-17 02:41:33,232 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-36502581 info 2024-10-17 02:41:33,232 - INFO - Deleting VN ctest-vn-60506804 2024-10-17 02:41:33,346 - DEBUG - Response for deleting network () 2024-10-17 02:41:33,346 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/12397df9-e2ff-447e-be1e-684c2d50177d 2024-10-17 02:41:33,352 - DEBUG - Response Code: 404 2024-10-17 02:41:33,352 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2024-10-17 02:41:33,360 - DEBUG - Requesting: http://10.0.0.49:8082/domain/b9d451c2-5cff-4664-905c-4c82b7dd1a1a 2024-10-17 02:41:33,415 - DEBUG - Requesting: http://10.0.0.49:8082/project/888ca52b-febc-4cf6-984c-afb21eb43950 2024-10-17 02:41:33,495 - INFO - Validated that VN ctest-vn-60506804 is not found in API Server 2024-10-17 02:41:33,506 - DEBUG - VN ctest-vn-60506804 is not present in Agent 10.0.0.49 2024-10-17 02:41:33,506 - INFO - Validated that VN ctest-vn-60506804 is not in any agent 2024-10-17 02:41:33,522 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-60506804 info 2024-10-17 02:41:33,774 - DEBUG - No XMPP flaps were noticed during the test 2024-10-17 02:41:33,774 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2024-10-17 02:41:33,774 - INFO - -------------------------------------------------------------------------------- 2024-10-17 02:41:34,514 - INFO - Deleted project: ctest-TestBasicPolicy-37517131, ID : 888ca52b-febc-4cf6-984c-afb21eb43950