2024-11-10 00:39:48,721 - INFO - Domain Default found not creating 2024-11-10 00:39:48,877 - INFO - Project ctest-TestBasicPolicy-39971057 not found, creating it 2024-11-10 00:39:49,376 - INFO - Created Project:ctest-TestBasicPolicy-39971057, ID : 8a0d6d4c-708d-438d-910d-5a7df18b5018 2024-11-10 00:39:50,870 - INFO - ================================================================================ 2024-11-10 00:39:50,870 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-10 00:39:50,870 - 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-11-10 00:39:51,140 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.25': '0'}} with 2024-11-10 00:39:51,140 - INFO - Initial checks done. Running the testcase now 2024-11-10 00:39:51,140 - INFO - 2024-11-10 00:39:51,713 - DEBUG - Response for create_network : {'network': {'id': '720b840d-9074-42f5-84d2-12d95615e5f5', 'name': 'ctest-vn-94755217', 'tenant_id': '8a0d6d4c708d438d910d5a7df18b5018', 'project_id': '8a0d6d4c708d438d910d5a7df18b5018', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39971057', 'ctest-vn-94755217'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 00:39:51,866 - DEBUG - Response for create_subnet : {'subnet': {'id': '1e9ff8a6-e1b4-4744-95fb-d9861c5edd57', 'name': '', 'tenant_id': '8a0d6d4c708d438d910d5a7df18b5018', 'network_id': '720b840d-9074-42f5-84d2-12d95615e5f5', 'ip_version': 4, 'cidr': '212.188.83.192/26', 'allocation_pools': [{'start': '212.188.83.194', 'end': '212.188.83.254'}], 'gateway_ip': '212.188.83.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212.188.83.194', 'tags': [], 'project_id': '8a0d6d4c708d438d910d5a7df18b5018'}} 2024-11-10 00:39:51,884 - INFO - Created VN ctest-vn-94755217 2024-11-10 00:39:51,943 - DEBUG - VN ctest-vn-94755217 UUID is 720b840d-9074-42f5-84d2-12d95615e5f5 2024-11-10 00:39:52,239 - DEBUG - Response for create_network : {'network': {'id': '568107c7-ff03-402e-a3fd-c932f16c02a9', 'name': 'ctest-vn-54378935', 'tenant_id': '8a0d6d4c708d438d910d5a7df18b5018', 'project_id': '8a0d6d4c708d438d910d5a7df18b5018', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39971057', 'ctest-vn-54378935'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 00:39:52,443 - DEBUG - Response for create_subnet : {'subnet': {'id': '580114fb-5991-47eb-a3bb-5932cf17b400', 'name': '', 'tenant_id': '8a0d6d4c708d438d910d5a7df18b5018', 'network_id': '568107c7-ff03-402e-a3fd-c932f16c02a9', 'ip_version': 4, 'cidr': '22.235.48.64/26', 'allocation_pools': [{'start': '22.235.48.66', 'end': '22.235.48.126'}], 'gateway_ip': '22.235.48.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.235.48.66', 'tags': [], 'project_id': '8a0d6d4c708d438d910d5a7df18b5018'}} 2024-11-10 00:39:52,464 - INFO - Created VN ctest-vn-54378935 2024-11-10 00:39:52,523 - DEBUG - VN ctest-vn-54378935 UUID is 568107c7-ff03-402e-a3fd-c932f16c02a9 2024-11-10 00:39:52,656 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-39971057:ctest-vn-94755217, 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-39971057:ctest-vn-54378935, 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-11-10 00:39:53,024 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '720b840d-9074-42f5-84d2-12d95615e5f5', 'name': 'ctest-vn-94755217', 'tenant_id': '8a0d6d4c708d438d910d5a7df18b5018', 'project_id': '8a0d6d4c708d438d910d5a7df18b5018', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1e9ff8a6-e1b4-4744-95fb-d9861c5edd57'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39971057', 'ctest-vn-94755217'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39971057', 'ctest-policy-allow-all-20483392']], 'subnet_ipam': [{'subnet_cidr': '212.188.83.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-10 00:39:53,294 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '568107c7-ff03-402e-a3fd-c932f16c02a9', 'name': 'ctest-vn-54378935', 'tenant_id': '8a0d6d4c708d438d910d5a7df18b5018', 'project_id': '8a0d6d4c708d438d910d5a7df18b5018', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['580114fb-5991-47eb-a3bb-5932cf17b400'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39971057', 'ctest-vn-54378935'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39971057', 'ctest-policy-allow-all-20483392']], 'subnet_ipam': [{'subnet_cidr': '22.235.48.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-10 00:39:53,467 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-11-10 00:39:53,773 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-11-10 00:39:53,808 - DEBUG - Requesting: http://10.0.0.29:8082/domain/e70409f1-e19f-4af2-a675-314a546d1614 2024-11-10 00:39:53,823 - DEBUG - Requesting: http://10.0.0.29:8082/project/8a0d6d4c-708d-438d-910d-5a7df18b5018 2024-11-10 00:39:53,906 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/720b840d-9074-42f5-84d2-12d95615e5f5 2024-11-10 00:39:53,922 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/720b840d-9074-42f5-84d2-12d95615e5f5 2024-11-10 00:39:53,936 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/87b86880-b66f-404c-94b6-36948f5fbc84 2024-11-10 00:39:53,946 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/87b86880-b66f-404c-94b6-36948f5fbc84 2024-11-10 00:39:53,956 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/b6ca70db-c023-4bc9-81f6-89fe745c1a27 2024-11-10 00:39:53,966 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-10 00:39:53,966 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/720b840d-9074-42f5-84d2-12d95615e5f5 2024-11-10 00:39:53,981 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/87b86880-b66f-404c-94b6-36948f5fbc84 2024-11-10 00:39:54,005 - INFO - Verified VN network id 8 for VN 720b840d-9074-42f5-84d2-12d95615e5f5 2024-11-10 00:39:54,005 - INFO - Verifications in API Server for VN ctest-vn-94755217 passed 2024-11-10 00:39:54,005 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/720b840d-9074-42f5-84d2-12d95615e5f5 2024-11-10 00:39:54,019 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/87b86880-b66f-404c-94b6-36948f5fbc84 2024-11-10 00:39:54,029 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/87b86880-b66f-404c-94b6-36948f5fbc84 2024-11-10 00:39:54,041 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/b6ca70db-c023-4bc9-81f6-89fe745c1a27 2024-11-10 00:39:54,056 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39971057:ctest-vn-94755217', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39971057', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8217807138860581621', 'uuid-lslong': '9570732882777204213'}, 'enable': 'true', 'created': '2024-11-10T00:39:51', 'last-modified': '2024-11-10T00:39:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.066531'} 2024-11-10 00:39:54,065 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-10 00:39:54,065 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94755217 passed 2024-11-10 00:39:54,065 - DEBUG - ====Verifying policy data for ctest-vn-94755217 in API_Server ====== 2024-11-10 00:39:54,065 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-11-10 00:39:54,074 - DEBUG - Requesting: http://10.0.0.29:8082/domain/e70409f1-e19f-4af2-a675-314a546d1614 2024-11-10 00:39:54,090 - DEBUG - Requesting: http://10.0.0.29:8082/project/8a0d6d4c-708d-438d-910d-5a7df18b5018 2024-11-10 00:39:54,172 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/720b840d-9074-42f5-84d2-12d95615e5f5 2024-11-10 00:39:54,188 - DEBUG - ==>Verifying data for policy with id: 4d98e3dc-90ab-4b3e-ae50-5dda211f4c34, fqn: ['default-domain', 'ctest-TestBasicPolicy-39971057', 'ctest-policy-allow-all-20483392'] 2024-11-10 00:39:54,188 - INFO - VN ctest-vn-94755217 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-10 00:39:54,188 - DEBUG - Verifying the vn in opserver 2024-11-10 00:39:54,188 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39971057:ctest-vn-94755217 virtual network link through opserver 10.0.0.29 2024-11-10 00:39:54,189 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-11-10 00:39:54,492 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-11-10 00:39:54,560 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39971057:ctest-vn-94755217', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39971057:ctest-vn-94755217?flat'} 2024-11-10 00:39:54,560 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39971057:ctest-vn-94755217 is found in opserver 2024-11-10 00:39:54,571 - DEBUG - Do not have enough data to verify VN in agent 2024-11-10 00:39:54,577 - DEBUG - VRF ids for VN ctest-vn-94755217: {} 2024-11-10 00:39:54,577 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-11-10 00:39:54,583 - DEBUG - Requesting: http://10.0.0.29:8082/domain/e70409f1-e19f-4af2-a675-314a546d1614 2024-11-10 00:39:54,597 - DEBUG - Requesting: http://10.0.0.29:8082/project/8a0d6d4c-708d-438d-910d-5a7df18b5018 2024-11-10 00:39:54,703 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/568107c7-ff03-402e-a3fd-c932f16c02a9 2024-11-10 00:39:54,723 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/568107c7-ff03-402e-a3fd-c932f16c02a9 2024-11-10 00:39:54,738 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/b5a1b91d-6e9f-426d-8d49-7c8958443d71 2024-11-10 00:39:54,748 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/b5a1b91d-6e9f-426d-8d49-7c8958443d71 2024-11-10 00:39:54,756 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/63b37841-3412-466c-a65f-c92930d6b911 2024-11-10 00:39:54,764 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-10 00:39:54,764 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/568107c7-ff03-402e-a3fd-c932f16c02a9 2024-11-10 00:39:54,777 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/b5a1b91d-6e9f-426d-8d49-7c8958443d71 2024-11-10 00:39:54,797 - INFO - Verified VN network id 9 for VN 568107c7-ff03-402e-a3fd-c932f16c02a9 2024-11-10 00:39:54,798 - INFO - Verifications in API Server for VN ctest-vn-54378935 passed 2024-11-10 00:39:54,798 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/568107c7-ff03-402e-a3fd-c932f16c02a9 2024-11-10 00:39:54,812 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/b5a1b91d-6e9f-426d-8d49-7c8958443d71 2024-11-10 00:39:54,821 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/b5a1b91d-6e9f-426d-8d49-7c8958443d71 2024-11-10 00:39:54,832 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/63b37841-3412-466c-a65f-c92930d6b911 2024-11-10 00:39:54,850 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39971057:ctest-vn-54378935', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39971057', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6233271914815766574', 'uuid-lslong': '11816822217925984937'}, 'enable': 'true', 'created': '2024-11-10T00:39:52', 'last-modified': '2024-11-10T00:39:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.581561'} 2024-11-10 00:39:54,858 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-10 00:39:54,858 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54378935 passed 2024-11-10 00:39:54,859 - DEBUG - ====Verifying policy data for ctest-vn-54378935 in API_Server ====== 2024-11-10 00:39:54,859 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-11-10 00:39:54,865 - DEBUG - Requesting: http://10.0.0.29:8082/domain/e70409f1-e19f-4af2-a675-314a546d1614 2024-11-10 00:39:54,883 - DEBUG - Requesting: http://10.0.0.29:8082/project/8a0d6d4c-708d-438d-910d-5a7df18b5018 2024-11-10 00:39:54,964 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/568107c7-ff03-402e-a3fd-c932f16c02a9 2024-11-10 00:39:54,980 - DEBUG - ==>Verifying data for policy with id: 4d98e3dc-90ab-4b3e-ae50-5dda211f4c34, fqn: ['default-domain', 'ctest-TestBasicPolicy-39971057', 'ctest-policy-allow-all-20483392'] 2024-11-10 00:39:54,980 - INFO - VN ctest-vn-54378935 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-10 00:39:54,980 - DEBUG - Verifying the vn in opserver 2024-11-10 00:39:54,980 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39971057:ctest-vn-54378935 virtual network link through opserver 10.0.0.29 2024-11-10 00:39:54,981 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-11-10 00:39:54,997 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39971057:ctest-vn-54378935', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39971057:ctest-vn-54378935?flat'} 2024-11-10 00:39:54,997 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39971057:ctest-vn-54378935 is found in opserver 2024-11-10 00:39:55,013 - DEBUG - Do not have enough data to verify VN in agent 2024-11-10 00:39:55,019 - DEBUG - VRF ids for VN ctest-vn-54378935: {} 2024-11-10 00:39:55,075 - DEBUG - Services list from nova: [, , ] 2024-11-10 00:39:56,127 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2247-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2247-1) 2024-11-10 00:39:57,432 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2247-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2247-1) 2024-11-10 00:39:57,432 - INFO - Waiting for VM ctest-TestBasicPolicy-39971057-49231863 to be up.. 2024-11-10 00:39:57,526 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-10 00:40:02,610 - DEBUG - VM is in ACTIVE state now 2024-11-10 00:40:02,611 - INFO - VM name : ctest-TestBasicPolicy-39971057-49231863 2024-11-10 00:40:02,701 - DEBUG - VM ctest-TestBasicPolicy-39971057-49231863 ID is bdbb4c2a-eb5f-4cb5-bbee-a6b7ec485cdb 2024-11-10 00:40:02,720 - DEBUG - VM ctest-TestBasicPolicy-39971057-49231863 launched on Node cn-jenkins-deploy-platform-ansible-os-2247-1 2024-11-10 00:40:02,820 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/bdbb4c2a-eb5f-4cb5-bbee-a6b7ec485cdb 2024-11-10 00:40:02,841 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/d0dc688d-4bfd-4696-9e87-833cdc308a9a 2024-11-10 00:40:06,111 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1015ms') 2024-11-10 00:40:06,111 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-39971057-49231863 failed! 2024-11-10 00:40:06,171 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-39971057:ctest-vn-94755217 is 212.188.83.193 and allocation pool is NOT set 2024-11-10 00:40:08,232 - 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.37 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.469 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.469/2.420/4.371/1.951 ms') 2024-11-10 00:40:08,232 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-39971057-49231863 passed 2024-11-10 00:40:08,391 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 00:40:08,391 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-39971057-49231863, IP 212.188.83.195, Port 22 2024-11-10 00:40:08,553 - DEBUG - VM ctest-TestBasicPolicy-39971057-49231863 is ready for SSH connections 2024-11-10 00:40:08,553 - INFO - Waiting for VM ctest-TestBasicPolicy-39971057-76082626 to be up.. 2024-11-10 00:40:08,647 - DEBUG - VM is in ACTIVE state now 2024-11-10 00:40:08,647 - INFO - VM name : ctest-TestBasicPolicy-39971057-76082626 2024-11-10 00:40:08,734 - DEBUG - VM ctest-TestBasicPolicy-39971057-76082626 ID is 07e35c44-b64d-47c3-bad6-54fe9bd1abc7 2024-11-10 00:40:08,734 - DEBUG - VM ctest-TestBasicPolicy-39971057-76082626 launched on Node cn-jenkins-deploy-platform-ansible-os-2247-1 2024-11-10 00:40:08,835 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/07e35c44-b64d-47c3-bad6-54fe9bd1abc7 2024-11-10 00:40:08,877 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/b0933483-0661-4924-af50-dd4619e6bb6f 2024-11-10 00:40:10,159 - 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=2.79 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.447 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.447/1.617/2.788/1.170 ms') 2024-11-10 00:40:10,159 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-39971057-76082626 passed 2024-11-10 00:40:10,319 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 00:40:10,319 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-39971057-76082626, IP 22.235.48.67, Port 22 2024-11-10 00:40:10,475 - DEBUG - VM ctest-TestBasicPolicy-39971057-76082626 is ready for SSH connections 2024-11-10 00:40:10,475 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 00:40:10,475 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 22.235.48.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-11-10 00:40:10,475 - DEBUG - ping -s 56 -c 3 -W 1 22.235.48.67 2024-11-10 00:40:14,423 - DEBUG - PING 22.235.48.67 (22.235.48.67): 56 data bytes 64 bytes from 22.235.48.67: seq=0 ttl=63 time=4.883 ms 64 bytes from 22.235.48.67: seq=1 ttl=63 time=1.142 ms 64 bytes from 22.235.48.67: seq=2 ttl=63 time=0.931 ms --- 22.235.48.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.931/2.318/4.883 ms 2024-11-10 00:40:14,424 - INFO - Ping to IP 22.235.48.67 from VM ctest-TestBasicPolicy-39971057-49231863 passed 2024-11-10 00:40:14,623 - DEBUG - Policy Update Response {"network-policy": {"uuid": "4d98e3dc-90ab-4b3e-ae50-5dda211f4c34", "href": "http://10.0.0.29:8082/network-policy/4d98e3dc-90ab-4b3e-ae50-5dda211f4c34"}} 2024-11-10 00:40:14,623 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 00:40:14,623 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 22.235.48.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-11-10 00:40:14,623 - DEBUG - ping -s 56 -c 3 -W 1 22.235.48.67 2024-11-10 00:40:17,827 - DEBUG - PING 22.235.48.67 (22.235.48.67): 56 data bytes 64 bytes from 22.235.48.67: seq=0 ttl=63 time=1.508 ms --- 22.235.48.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.508/1.508/1.508 ms 2024-11-10 00:40:17,827 - WARNING - Ping to IP 22.235.48.67 from VM ctest-TestBasicPolicy-39971057-49231863 failed 2024-11-10 00:40:17,827 - INFO - Deleting VM ctest-TestBasicPolicy-39971057-76082626 2024-11-10 00:40:17,890 - INFO - Deleting VM ctest-TestBasicPolicy-39971057-49231863 2024-11-10 00:40:18,293 - INFO - Deleted policy ctest-policy-allow-all-20483392 2024-11-10 00:40:18,294 - INFO - Deleting VN ctest-vn-54378935 2024-11-10 00:40:18,329 - DEBUG - VN 568107c7-ff03-402e-a3fd-c932f16c02a9 still in use: Unable to complete operation on network 568107c7-ff03-402e-a3fd-c932f16c02a9. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c7fe1c36-5c69-44c0-b0d3-3e393308231d'] 2024-11-10 00:40:18,329 - WARNING - Deleting VN ctest-vn-54378935 failed..Will retry 2024-11-10 00:40:20,455 - DEBUG - Response for deleting network () 2024-11-10 00:40:20,455 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/b5a1b91d-6e9f-426d-8d49-7c8958443d71 2024-11-10 00:40:20,463 - DEBUG - Response Code: 404 2024-11-10 00:40:20,463 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-11-10 00:40:20,470 - DEBUG - Requesting: http://10.0.0.29:8082/domain/e70409f1-e19f-4af2-a675-314a546d1614 2024-11-10 00:40:20,529 - DEBUG - Requesting: http://10.0.0.29:8082/project/8a0d6d4c-708d-438d-910d-5a7df18b5018 2024-11-10 00:40:20,608 - INFO - Validated that VN ctest-vn-54378935 is not found in API Server 2024-11-10 00:40:20,621 - DEBUG - VN ctest-vn-54378935 is not present in Agent 10.0.0.29 2024-11-10 00:40:20,621 - INFO - Validated that VN ctest-vn-54378935 is not in any agent 2024-11-10 00:40:20,637 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-54378935 info 2024-11-10 00:40:20,638 - INFO - Deleting VN ctest-vn-94755217 2024-11-10 00:40:20,746 - DEBUG - Response for deleting network () 2024-11-10 00:40:20,746 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/87b86880-b66f-404c-94b6-36948f5fbc84 2024-11-10 00:40:20,754 - DEBUG - Response Code: 404 2024-11-10 00:40:20,754 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-11-10 00:40:20,759 - DEBUG - Requesting: http://10.0.0.29:8082/domain/e70409f1-e19f-4af2-a675-314a546d1614 2024-11-10 00:40:20,817 - DEBUG - Requesting: http://10.0.0.29:8082/project/8a0d6d4c-708d-438d-910d-5a7df18b5018 2024-11-10 00:40:20,900 - INFO - Validated that VN ctest-vn-94755217 is not found in API Server 2024-11-10 00:40:20,912 - DEBUG - VN ctest-vn-94755217 is not present in Agent 10.0.0.29 2024-11-10 00:40:20,912 - INFO - Validated that VN ctest-vn-94755217 is not in any agent 2024-11-10 00:40:20,927 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-94755217 info 2024-11-10 00:40:21,181 - DEBUG - No XMPP flaps were noticed during the test 2024-11-10 00:40:21,181 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31] 2024-11-10 00:40:21,181 - INFO - -------------------------------------------------------------------------------- 2024-11-10 00:40:21,896 - INFO - Deleted project: ctest-TestBasicPolicy-39971057, ID : 8a0d6d4c-708d-438d-910d-5a7df18b5018