2024-09-11 14:35:36,520 - INFO - Domain Default found not creating 2024-09-11 14:35:36,690 - INFO - Project ctest-TestBasicPolicy-17981740 not found, creating it 2024-09-11 14:35:37,157 - INFO - Created Project:ctest-TestBasicPolicy-17981740, ID : 48314e6c-e4ed-446a-9067-d03b330251b7 2024-09-11 14:35:38,664 - INFO - ================================================================================ 2024-09-11 14:35:38,665 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-11 14:35:38,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-09-11 14:35:38,920 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.6': '0'}} with 2024-09-11 14:35:38,920 - INFO - Initial checks done. Running the testcase now 2024-09-11 14:35:38,921 - INFO - 2024-09-11 14:35:39,850 - DEBUG - Response for create_network : {'network': {'id': 'bf912cc4-2b25-45a0-9ac0-79d88f236b36', 'name': 'ctest-vn-76849348', 'tenant_id': '48314e6ce4ed446a9067d03b330251b7', 'project_id': '48314e6ce4ed446a9067d03b330251b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17981740', 'ctest-vn-76849348'], 'port_security_enabled': True, 'description': ''}} 2024-09-11 14:35:40,033 - DEBUG - Response for create_subnet : {'subnet': {'id': '53ac2b6f-393a-4d04-8d5b-6f6911b52c99', 'name': '', 'tenant_id': '48314e6ce4ed446a9067d03b330251b7', 'network_id': 'bf912cc4-2b25-45a0-9ac0-79d88f236b36', 'ip_version': 4, 'cidr': '178.147.10.128/26', 'allocation_pools': [{'start': '178.147.10.130', 'end': '178.147.10.190'}], 'gateway_ip': '178.147.10.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '178.147.10.130', 'tags': [], 'project_id': '48314e6ce4ed446a9067d03b330251b7'}} 2024-09-11 14:35:40,054 - INFO - Created VN ctest-vn-76849348 2024-09-11 14:35:40,107 - DEBUG - VN ctest-vn-76849348 UUID is bf912cc4-2b25-45a0-9ac0-79d88f236b36 2024-09-11 14:35:40,407 - DEBUG - Response for create_network : {'network': {'id': 'c858a5ca-0425-4acb-a33b-d00ef5ba6fbe', 'name': 'ctest-vn-64369988', 'tenant_id': '48314e6ce4ed446a9067d03b330251b7', 'project_id': '48314e6ce4ed446a9067d03b330251b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17981740', 'ctest-vn-64369988'], 'port_security_enabled': True, 'description': ''}} 2024-09-11 14:35:40,604 - DEBUG - Response for create_subnet : {'subnet': {'id': '027fa42f-6168-4c85-9950-8a223c8749c9', 'name': '', 'tenant_id': '48314e6ce4ed446a9067d03b330251b7', 'network_id': 'c858a5ca-0425-4acb-a33b-d00ef5ba6fbe', 'ip_version': 4, 'cidr': '201.241.9.128/26', 'allocation_pools': [{'start': '201.241.9.130', 'end': '201.241.9.190'}], 'gateway_ip': '201.241.9.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.241.9.130', 'tags': [], 'project_id': '48314e6ce4ed446a9067d03b330251b7'}} 2024-09-11 14:35:40,624 - INFO - Created VN ctest-vn-64369988 2024-09-11 14:35:40,675 - DEBUG - VN ctest-vn-64369988 UUID is c858a5ca-0425-4acb-a33b-d00ef5ba6fbe 2024-09-11 14:35:40,793 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-17981740:ctest-vn-76849348, 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-17981740:ctest-vn-64369988, 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-09-11 14:35:41,154 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bf912cc4-2b25-45a0-9ac0-79d88f236b36', 'name': 'ctest-vn-76849348', 'tenant_id': '48314e6ce4ed446a9067d03b330251b7', 'project_id': '48314e6ce4ed446a9067d03b330251b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['53ac2b6f-393a-4d04-8d5b-6f6911b52c99'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17981740', 'ctest-vn-76849348'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17981740', 'ctest-policy-allow-all-94794372']], 'subnet_ipam': [{'subnet_cidr': '178.147.10.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-11 14:35:41,389 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c858a5ca-0425-4acb-a33b-d00ef5ba6fbe', 'name': 'ctest-vn-64369988', 'tenant_id': '48314e6ce4ed446a9067d03b330251b7', 'project_id': '48314e6ce4ed446a9067d03b330251b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['027fa42f-6168-4c85-9950-8a223c8749c9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17981740', 'ctest-vn-64369988'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17981740', 'ctest-policy-allow-all-94794372']], 'subnet_ipam': [{'subnet_cidr': '201.241.9.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-11 14:35:41,531 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2024-09-11 14:35:41,833 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2024-09-11 14:35:41,866 - DEBUG - Requesting: http://10.0.0.48:8082/domain/e71c24b4-798d-4930-a473-76c1207795b7 2024-09-11 14:35:41,880 - DEBUG - Requesting: http://10.0.0.48:8082/project/48314e6c-e4ed-446a-9067-d03b330251b7 2024-09-11 14:35:41,957 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/bf912cc4-2b25-45a0-9ac0-79d88f236b36 2024-09-11 14:35:41,968 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/bf912cc4-2b25-45a0-9ac0-79d88f236b36 2024-09-11 14:35:41,976 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d0c97d79-3551-4229-ae0c-70d92d88d92a 2024-09-11 14:35:41,983 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d0c97d79-3551-4229-ae0c-70d92d88d92a 2024-09-11 14:35:41,991 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/e2420181-d3c3-46e8-93ff-138086382a60 2024-09-11 14:35:41,998 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-11 14:35:41,998 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/bf912cc4-2b25-45a0-9ac0-79d88f236b36 2024-09-11 14:35:42,009 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d0c97d79-3551-4229-ae0c-70d92d88d92a 2024-09-11 14:35:42,023 - INFO - Verified VN network id 8 for VN bf912cc4-2b25-45a0-9ac0-79d88f236b36 2024-09-11 14:35:42,023 - INFO - Verifications in API Server for VN ctest-vn-76849348 passed 2024-09-11 14:35:42,023 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/bf912cc4-2b25-45a0-9ac0-79d88f236b36 2024-09-11 14:35:42,033 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d0c97d79-3551-4229-ae0c-70d92d88d92a 2024-09-11 14:35:42,040 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d0c97d79-3551-4229-ae0c-70d92d88d92a 2024-09-11 14:35:42,048 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/e2420181-d3c3-46e8-93ff-138086382a60 2024-09-11 14:35:42,062 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17981740:ctest-vn-76849348', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17981740', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13803863553916356000', 'uuid-lslong': '11151046648390708022'}, 'enable': 'true', 'created': '2024-09-11T14:35:39', 'last-modified': '2024-09-11T14:35:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.930472'} 2024-09-11 14:35:42,069 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-11 14:35:42,069 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76849348 passed 2024-09-11 14:35:42,069 - DEBUG - ====Verifying policy data for ctest-vn-76849348 in API_Server ====== 2024-09-11 14:35:42,069 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2024-09-11 14:35:42,075 - DEBUG - Requesting: http://10.0.0.48:8082/domain/e71c24b4-798d-4930-a473-76c1207795b7 2024-09-11 14:35:42,087 - DEBUG - Requesting: http://10.0.0.48:8082/project/48314e6c-e4ed-446a-9067-d03b330251b7 2024-09-11 14:35:42,153 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/bf912cc4-2b25-45a0-9ac0-79d88f236b36 2024-09-11 14:35:42,161 - DEBUG - ==>Verifying data for policy with id: 6fd9e033-543a-4e55-aa3d-a01ff92d50a8, fqn: ['default-domain', 'ctest-TestBasicPolicy-17981740', 'ctest-policy-allow-all-94794372'] 2024-09-11 14:35:42,161 - INFO - VN ctest-vn-76849348 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-11 14:35:42,161 - DEBUG - Verifying the vn in opserver 2024-09-11 14:35:42,161 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17981740:ctest-vn-76849348 virtual network link through opserver 10.0.0.48 2024-09-11 14:35:42,161 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2024-09-11 14:35:42,454 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2024-09-11 14:35:42,516 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17981740:ctest-vn-76849348', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17981740:ctest-vn-76849348?flat'} 2024-09-11 14:35:42,516 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17981740:ctest-vn-76849348 is found in opserver 2024-09-11 14:35:42,527 - DEBUG - Do not have enough data to verify VN in agent 2024-09-11 14:35:42,532 - DEBUG - VRF ids for VN ctest-vn-76849348: {} 2024-09-11 14:35:42,532 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2024-09-11 14:35:42,539 - DEBUG - Requesting: http://10.0.0.48:8082/domain/e71c24b4-798d-4930-a473-76c1207795b7 2024-09-11 14:35:42,552 - DEBUG - Requesting: http://10.0.0.48:8082/project/48314e6c-e4ed-446a-9067-d03b330251b7 2024-09-11 14:35:42,622 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c858a5ca-0425-4acb-a33b-d00ef5ba6fbe 2024-09-11 14:35:42,632 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c858a5ca-0425-4acb-a33b-d00ef5ba6fbe 2024-09-11 14:35:42,641 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/56eda2eb-215e-47dc-9d8c-62f2475528fe 2024-09-11 14:35:42,649 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/56eda2eb-215e-47dc-9d8c-62f2475528fe 2024-09-11 14:35:42,658 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/8191a454-f278-46bd-a273-ec987cd1c9ce 2024-09-11 14:35:42,666 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-11 14:35:42,666 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c858a5ca-0425-4acb-a33b-d00ef5ba6fbe 2024-09-11 14:35:42,675 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/56eda2eb-215e-47dc-9d8c-62f2475528fe 2024-09-11 14:35:42,689 - INFO - Verified VN network id 9 for VN c858a5ca-0425-4acb-a33b-d00ef5ba6fbe 2024-09-11 14:35:42,689 - INFO - Verifications in API Server for VN ctest-vn-64369988 passed 2024-09-11 14:35:42,689 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c858a5ca-0425-4acb-a33b-d00ef5ba6fbe 2024-09-11 14:35:42,699 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/56eda2eb-215e-47dc-9d8c-62f2475528fe 2024-09-11 14:35:42,707 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/56eda2eb-215e-47dc-9d8c-62f2475528fe 2024-09-11 14:35:42,714 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/8191a454-f278-46bd-a273-ec987cd1c9ce 2024-09-11 14:35:42,727 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17981740:ctest-vn-64369988', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17981740', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14436470892607654603', 'uuid-lslong': '11762223614478938046'}, 'enable': 'true', 'created': '2024-09-11T14:35:40', 'last-modified': '2024-09-11T14:35:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.361376'} 2024-09-11 14:35:42,734 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-11 14:35:42,734 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64369988 passed 2024-09-11 14:35:42,734 - DEBUG - ====Verifying policy data for ctest-vn-64369988 in API_Server ====== 2024-09-11 14:35:42,735 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2024-09-11 14:35:42,741 - DEBUG - Requesting: http://10.0.0.48:8082/domain/e71c24b4-798d-4930-a473-76c1207795b7 2024-09-11 14:35:42,755 - DEBUG - Requesting: http://10.0.0.48:8082/project/48314e6c-e4ed-446a-9067-d03b330251b7 2024-09-11 14:35:42,827 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c858a5ca-0425-4acb-a33b-d00ef5ba6fbe 2024-09-11 14:35:42,836 - DEBUG - ==>Verifying data for policy with id: 6fd9e033-543a-4e55-aa3d-a01ff92d50a8, fqn: ['default-domain', 'ctest-TestBasicPolicy-17981740', 'ctest-policy-allow-all-94794372'] 2024-09-11 14:35:42,836 - INFO - VN ctest-vn-64369988 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-11 14:35:42,836 - DEBUG - Verifying the vn in opserver 2024-09-11 14:35:42,836 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17981740:ctest-vn-64369988 virtual network link through opserver 10.0.0.48 2024-09-11 14:35:42,836 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2024-09-11 14:35:42,848 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17981740:ctest-vn-64369988', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17981740:ctest-vn-64369988?flat'} 2024-09-11 14:35:42,848 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17981740:ctest-vn-64369988 is found in opserver 2024-09-11 14:35:42,861 - DEBUG - Do not have enough data to verify VN in agent 2024-09-11 14:35:42,868 - DEBUG - VRF ids for VN ctest-vn-64369988: {} 2024-09-11 14:35:42,929 - DEBUG - Services list from nova: [, , ] 2024-09-11 14:35:43,972 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1894-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1894-1) 2024-09-11 14:35:45,228 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1894-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1894-1) 2024-09-11 14:35:45,228 - INFO - Waiting for VM ctest-TestBasicPolicy-17981740-90646199 to be up.. 2024-09-11 14:35:45,316 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-11 14:35:50,398 - DEBUG - VM is in ACTIVE state now 2024-09-11 14:35:50,398 - INFO - VM name : ctest-TestBasicPolicy-17981740-90646199 2024-09-11 14:35:50,475 - DEBUG - VM ctest-TestBasicPolicy-17981740-90646199 ID is 8a9528df-f271-4808-a563-383582ec4a4c 2024-09-11 14:35:50,501 - DEBUG - VM ctest-TestBasicPolicy-17981740-90646199 launched on Node cn-jenkins-deploy-platform-ansible-os-1894-1 2024-09-11 14:35:50,584 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/8a9528df-f271-4808-a563-383582ec4a4c 2024-09-11 14:35:50,592 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/45aff106-4721-4f08-8239-b4670e950038 2024-09-11 14:35:53,853 - 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-09-11 14:35:53,853 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-17981740-90646199 failed! 2024-09-11 14:35:53,907 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-17981740:ctest-vn-76849348 is 178.147.10.129 and allocation pool is NOT set 2024-09-11 14:35:55,971 - 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=3.11 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.525 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.525/1.818/3.112/1.293 ms') 2024-09-11 14:35:55,971 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-17981740-90646199 passed 2024-09-11 14:35:56,123 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 14:35:56,123 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-17981740-90646199, IP 178.147.10.131, Port 22 2024-09-11 14:35:56,289 - DEBUG - VM ctest-TestBasicPolicy-17981740-90646199 is ready for SSH connections 2024-09-11 14:35:56,289 - INFO - Waiting for VM ctest-TestBasicPolicy-17981740-10770300 to be up.. 2024-09-11 14:35:56,369 - DEBUG - VM is in ACTIVE state now 2024-09-11 14:35:56,369 - INFO - VM name : ctest-TestBasicPolicy-17981740-10770300 2024-09-11 14:35:56,445 - DEBUG - VM ctest-TestBasicPolicy-17981740-10770300 ID is a554d3d8-2740-4561-a7c9-31a255f77610 2024-09-11 14:35:56,445 - DEBUG - VM ctest-TestBasicPolicy-17981740-10770300 launched on Node cn-jenkins-deploy-platform-ansible-os-1894-1 2024-09-11 14:35:56,523 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/a554d3d8-2740-4561-a7c9-31a255f77610 2024-09-11 14:35:56,532 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/4976ec2a-7c4e-4299-8629-9bd648d67047 2024-09-11 14:35:57,781 - 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.86 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.839 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.839/2.351/3.864/1.512 ms') 2024-09-11 14:35:57,781 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-17981740-10770300 passed 2024-09-11 14:35:57,939 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 14:35:57,939 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-17981740-10770300, IP 201.241.9.131, Port 22 2024-09-11 14:35:58,098 - DEBUG - VM ctest-TestBasicPolicy-17981740-10770300 is ready for SSH connections 2024-09-11 14:35:58,098 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 14:35:58,098 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 201.241.9.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2024-09-11 14:35:58,099 - DEBUG - ping -s 56 -c 3 -W 1 201.241.9.131 2024-09-11 14:36:01,801 - DEBUG - PING 201.241.9.131 (201.241.9.131): 56 data bytes 64 bytes from 201.241.9.131: seq=0 ttl=63 time=3.791 ms 64 bytes from 201.241.9.131: seq=1 ttl=63 time=0.762 ms 64 bytes from 201.241.9.131: seq=2 ttl=63 time=0.769 ms --- 201.241.9.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.762/1.774/3.791 ms 2024-09-11 14:36:01,801 - INFO - Ping to IP 201.241.9.131 from VM ctest-TestBasicPolicy-17981740-90646199 passed 2024-09-11 14:36:01,986 - DEBUG - Policy Update Response {"network-policy": {"uuid": "6fd9e033-543a-4e55-aa3d-a01ff92d50a8", "href": "http://10.0.0.48:8082/network-policy/6fd9e033-543a-4e55-aa3d-a01ff92d50a8"}} 2024-09-11 14:36:01,987 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 14:36:01,987 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 201.241.9.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2024-09-11 14:36:01,987 - DEBUG - ping -s 56 -c 3 -W 1 201.241.9.131 2024-09-11 14:36:05,195 - DEBUG - PING 201.241.9.131 (201.241.9.131): 56 data bytes 64 bytes from 201.241.9.131: seq=0 ttl=63 time=1.343 ms --- 201.241.9.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.343/1.343/1.343 ms 2024-09-11 14:36:05,195 - WARNING - Ping to IP 201.241.9.131 from VM ctest-TestBasicPolicy-17981740-90646199 failed 2024-09-11 14:36:05,195 - INFO - Deleting VM ctest-TestBasicPolicy-17981740-10770300 2024-09-11 14:36:05,263 - INFO - Deleting VM ctest-TestBasicPolicy-17981740-90646199 2024-09-11 14:36:05,658 - INFO - Deleted policy ctest-policy-allow-all-94794372 2024-09-11 14:36:05,659 - INFO - Deleting VN ctest-vn-64369988 2024-09-11 14:36:05,699 - DEBUG - VN c858a5ca-0425-4acb-a33b-d00ef5ba6fbe still in use: Unable to complete operation on network c858a5ca-0425-4acb-a33b-d00ef5ba6fbe. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0bd34312-4c52-4bf8-a8ef-9202287f604d'] 2024-09-11 14:36:05,699 - WARNING - Deleting VN ctest-vn-64369988 failed..Will retry 2024-09-11 14:36:07,811 - DEBUG - Response for deleting network () 2024-09-11 14:36:07,811 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/56eda2eb-215e-47dc-9d8c-62f2475528fe 2024-09-11 14:36:07,818 - DEBUG - Response Code: 404 2024-09-11 14:36:07,818 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2024-09-11 14:36:07,823 - DEBUG - Requesting: http://10.0.0.48:8082/domain/e71c24b4-798d-4930-a473-76c1207795b7 2024-09-11 14:36:07,876 - DEBUG - Requesting: http://10.0.0.48:8082/project/48314e6c-e4ed-446a-9067-d03b330251b7 2024-09-11 14:36:07,948 - INFO - Validated that VN ctest-vn-64369988 is not found in API Server 2024-09-11 14:36:07,959 - DEBUG - VN ctest-vn-64369988 is not present in Agent 10.0.0.48 2024-09-11 14:36:07,959 - INFO - Validated that VN ctest-vn-64369988 is not in any agent 2024-09-11 14:36:07,976 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-64369988 info 2024-09-11 14:36:07,976 - INFO - Deleting VN ctest-vn-76849348 2024-09-11 14:36:08,092 - DEBUG - Response for deleting network () 2024-09-11 14:36:08,092 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d0c97d79-3551-4229-ae0c-70d92d88d92a 2024-09-11 14:36:08,107 - DEBUG - Response Code: 404 2024-09-11 14:36:08,107 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2024-09-11 14:36:08,114 - DEBUG - Requesting: http://10.0.0.48:8082/domain/e71c24b4-798d-4930-a473-76c1207795b7 2024-09-11 14:36:08,168 - DEBUG - Requesting: http://10.0.0.48:8082/project/48314e6c-e4ed-446a-9067-d03b330251b7 2024-09-11 14:36:08,241 - INFO - Validated that VN ctest-vn-76849348 is not found in API Server 2024-09-11 14:36:08,252 - DEBUG - VN ctest-vn-76849348 is not present in Agent 10.0.0.48 2024-09-11 14:36:08,252 - INFO - Validated that VN ctest-vn-76849348 is not in any agent 2024-09-11 14:36:08,268 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-76849348 info 2024-09-11 14:36:08,521 - DEBUG - No XMPP flaps were noticed during the test 2024-09-11 14:36:08,521 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2024-09-11 14:36:08,521 - INFO - -------------------------------------------------------------------------------- 2024-09-11 14:36:09,191 - INFO - Deleted project: ctest-TestBasicPolicy-17981740, ID : 48314e6c-e4ed-446a-9067-d03b330251b7