2024-11-15 01:44:49,063 - INFO - Domain Default found not creating 2024-11-15 01:44:49,227 - INFO - Project ctest-TestBasicPolicy-92263399 not found, creating it 2024-11-15 01:44:49,722 - INFO - Created Project:ctest-TestBasicPolicy-92263399, ID : 47f181f5-b3a7-4b11-ac88-31501a44d636 2024-11-15 01:44:51,273 - INFO - ================================================================================ 2024-11-15 01:44:51,273 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-15 01:44:51,273 - 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-15 01:44:51,526 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.18': '0'}} with 2024-11-15 01:44:51,526 - INFO - Initial checks done. Running the testcase now 2024-11-15 01:44:51,527 - INFO - 2024-11-15 01:44:52,092 - DEBUG - Response for create_network : {'network': {'id': '5f89badc-6a8e-40fc-b49a-c316cd6038b2', 'name': 'ctest-vn-33131899', 'tenant_id': '47f181f5b3a74b11ac8831501a44d636', 'project_id': '47f181f5b3a74b11ac8831501a44d636', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92263399', 'ctest-vn-33131899'], 'port_security_enabled': True, 'description': ''}} 2024-11-15 01:44:52,258 - DEBUG - Response for create_subnet : {'subnet': {'id': '1dd0033f-7172-4762-83cf-1d344c3c0cdb', 'name': '', 'tenant_id': '47f181f5b3a74b11ac8831501a44d636', 'network_id': '5f89badc-6a8e-40fc-b49a-c316cd6038b2', 'ip_version': 4, 'cidr': '125.74.46.128/26', 'allocation_pools': [{'start': '125.74.46.130', 'end': '125.74.46.190'}], 'gateway_ip': '125.74.46.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.74.46.130', 'tags': [], 'project_id': '47f181f5b3a74b11ac8831501a44d636'}} 2024-11-15 01:44:52,276 - INFO - Created VN ctest-vn-33131899 2024-11-15 01:44:52,333 - DEBUG - VN ctest-vn-33131899 UUID is 5f89badc-6a8e-40fc-b49a-c316cd6038b2 2024-11-15 01:44:52,625 - DEBUG - Response for create_network : {'network': {'id': 'ac4565cb-5204-4f1d-af55-a9b3fe5f2bb7', 'name': 'ctest-vn-46662521', 'tenant_id': '47f181f5b3a74b11ac8831501a44d636', 'project_id': '47f181f5b3a74b11ac8831501a44d636', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92263399', 'ctest-vn-46662521'], 'port_security_enabled': True, 'description': ''}} 2024-11-15 01:44:52,833 - DEBUG - Response for create_subnet : {'subnet': {'id': '3619f695-9805-4f8a-ae67-ef3550ed4152', 'name': '', 'tenant_id': '47f181f5b3a74b11ac8831501a44d636', 'network_id': 'ac4565cb-5204-4f1d-af55-a9b3fe5f2bb7', 'ip_version': 4, 'cidr': '152.129.133.192/26', 'allocation_pools': [{'start': '152.129.133.194', 'end': '152.129.133.254'}], 'gateway_ip': '152.129.133.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '152.129.133.194', 'tags': [], 'project_id': '47f181f5b3a74b11ac8831501a44d636'}} 2024-11-15 01:44:52,854 - INFO - Created VN ctest-vn-46662521 2024-11-15 01:44:52,913 - DEBUG - VN ctest-vn-46662521 UUID is ac4565cb-5204-4f1d-af55-a9b3fe5f2bb7 2024-11-15 01:44:53,033 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-92263399:ctest-vn-33131899, 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-92263399:ctest-vn-46662521, 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-15 01:44:53,363 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5f89badc-6a8e-40fc-b49a-c316cd6038b2', 'name': 'ctest-vn-33131899', 'tenant_id': '47f181f5b3a74b11ac8831501a44d636', 'project_id': '47f181f5b3a74b11ac8831501a44d636', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1dd0033f-7172-4762-83cf-1d344c3c0cdb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92263399', 'ctest-vn-33131899'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92263399', 'ctest-policy-allow-all-95552824']], 'subnet_ipam': [{'subnet_cidr': '125.74.46.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-15 01:44:53,611 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ac4565cb-5204-4f1d-af55-a9b3fe5f2bb7', 'name': 'ctest-vn-46662521', 'tenant_id': '47f181f5b3a74b11ac8831501a44d636', 'project_id': '47f181f5b3a74b11ac8831501a44d636', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3619f695-9805-4f8a-ae67-ef3550ed4152'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92263399', 'ctest-vn-46662521'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92263399', 'ctest-policy-allow-all-95552824']], 'subnet_ipam': [{'subnet_cidr': '152.129.133.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-15 01:44:53,782 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-11-15 01:44:54,117 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-11-15 01:44:54,149 - DEBUG - Requesting: http://10.0.0.42:8082/domain/2fd3c138-6b6a-41e2-a6fd-e0da4fa5babb 2024-11-15 01:44:54,164 - DEBUG - Requesting: http://10.0.0.42:8082/project/47f181f5-b3a7-4b11-ac88-31501a44d636 2024-11-15 01:44:54,249 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/5f89badc-6a8e-40fc-b49a-c316cd6038b2 2024-11-15 01:44:54,265 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/5f89badc-6a8e-40fc-b49a-c316cd6038b2 2024-11-15 01:44:54,277 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/97b7bcf2-75c7-4978-9fee-0ae63cc46d33 2024-11-15 01:44:54,286 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/97b7bcf2-75c7-4978-9fee-0ae63cc46d33 2024-11-15 01:44:54,295 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/ee3570b7-57d0-467f-ae49-c1ee02c230e1 2024-11-15 01:44:54,302 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-15 01:44:54,302 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/5f89badc-6a8e-40fc-b49a-c316cd6038b2 2024-11-15 01:44:54,317 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/97b7bcf2-75c7-4978-9fee-0ae63cc46d33 2024-11-15 01:44:54,341 - INFO - Verified VN network id 9 for VN 5f89badc-6a8e-40fc-b49a-c316cd6038b2 2024-11-15 01:44:54,341 - INFO - Verifications in API Server for VN ctest-vn-33131899 passed 2024-11-15 01:44:54,341 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/5f89badc-6a8e-40fc-b49a-c316cd6038b2 2024-11-15 01:44:54,355 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/97b7bcf2-75c7-4978-9fee-0ae63cc46d33 2024-11-15 01:44:54,364 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/97b7bcf2-75c7-4978-9fee-0ae63cc46d33 2024-11-15 01:44:54,373 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/ee3570b7-57d0-467f-ae49-c1ee02c230e1 2024-11-15 01:44:54,386 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92263399:ctest-vn-33131899', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92263399', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6884238961255792892', 'uuid-lslong': '13013928575942801586'}, 'enable': 'true', 'created': '2024-11-15T01:44:52', 'last-modified': '2024-11-15T01:44:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.055999'} 2024-11-15 01:44:54,392 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-15 01:44:54,392 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33131899 passed 2024-11-15 01:44:54,392 - DEBUG - ====Verifying policy data for ctest-vn-33131899 in API_Server ====== 2024-11-15 01:44:54,393 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-11-15 01:44:54,398 - DEBUG - Requesting: http://10.0.0.42:8082/domain/2fd3c138-6b6a-41e2-a6fd-e0da4fa5babb 2024-11-15 01:44:54,412 - DEBUG - Requesting: http://10.0.0.42:8082/project/47f181f5-b3a7-4b11-ac88-31501a44d636 2024-11-15 01:44:54,493 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/5f89badc-6a8e-40fc-b49a-c316cd6038b2 2024-11-15 01:44:54,508 - DEBUG - ==>Verifying data for policy with id: 5b6fc509-bbd1-4a39-ba19-61ecf79c1b1f, fqn: ['default-domain', 'ctest-TestBasicPolicy-92263399', 'ctest-policy-allow-all-95552824'] 2024-11-15 01:44:54,508 - INFO - VN ctest-vn-33131899 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-15 01:44:54,508 - DEBUG - Verifying the vn in opserver 2024-11-15 01:44:54,508 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92263399:ctest-vn-33131899 virtual network link through opserver 10.0.0.42 2024-11-15 01:44:54,508 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-11-15 01:44:54,809 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-11-15 01:44:54,868 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92263399:ctest-vn-33131899', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92263399:ctest-vn-33131899?flat'} 2024-11-15 01:44:54,868 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92263399:ctest-vn-33131899 is found in opserver 2024-11-15 01:44:54,879 - DEBUG - Do not have enough data to verify VN in agent 2024-11-15 01:44:54,885 - DEBUG - VRF ids for VN ctest-vn-33131899: {} 2024-11-15 01:44:54,885 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-11-15 01:44:54,890 - DEBUG - Requesting: http://10.0.0.42:8082/domain/2fd3c138-6b6a-41e2-a6fd-e0da4fa5babb 2024-11-15 01:44:54,904 - DEBUG - Requesting: http://10.0.0.42:8082/project/47f181f5-b3a7-4b11-ac88-31501a44d636 2024-11-15 01:44:54,982 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/ac4565cb-5204-4f1d-af55-a9b3fe5f2bb7 2024-11-15 01:44:54,999 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/ac4565cb-5204-4f1d-af55-a9b3fe5f2bb7 2024-11-15 01:44:55,012 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/0b71139e-f4a2-499d-bb4d-d7c8b0e970b3 2024-11-15 01:44:55,022 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/0b71139e-f4a2-499d-bb4d-d7c8b0e970b3 2024-11-15 01:44:55,030 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/08499160-d7ab-4eee-b75d-345f8b92a8e2 2024-11-15 01:44:55,037 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-15 01:44:55,037 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/ac4565cb-5204-4f1d-af55-a9b3fe5f2bb7 2024-11-15 01:44:55,050 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/0b71139e-f4a2-499d-bb4d-d7c8b0e970b3 2024-11-15 01:44:55,070 - INFO - Verified VN network id 10 for VN ac4565cb-5204-4f1d-af55-a9b3fe5f2bb7 2024-11-15 01:44:55,070 - INFO - Verifications in API Server for VN ctest-vn-46662521 passed 2024-11-15 01:44:55,071 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/ac4565cb-5204-4f1d-af55-a9b3fe5f2bb7 2024-11-15 01:44:55,084 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/0b71139e-f4a2-499d-bb4d-d7c8b0e970b3 2024-11-15 01:44:55,092 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/0b71139e-f4a2-499d-bb4d-d7c8b0e970b3 2024-11-15 01:44:55,100 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/08499160-d7ab-4eee-b75d-345f8b92a8e2 2024-11-15 01:44:55,114 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92263399:ctest-vn-46662521', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92263399', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12413439871845420829', 'uuid-lslong': '12634190920189684663'}, 'enable': 'true', 'created': '2024-11-15T01:44:52', 'last-modified': '2024-11-15T01:44:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.530865'} 2024-11-15 01:44:55,120 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-15 01:44:55,120 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46662521 passed 2024-11-15 01:44:55,121 - DEBUG - ====Verifying policy data for ctest-vn-46662521 in API_Server ====== 2024-11-15 01:44:55,121 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-11-15 01:44:55,127 - DEBUG - Requesting: http://10.0.0.42:8082/domain/2fd3c138-6b6a-41e2-a6fd-e0da4fa5babb 2024-11-15 01:44:55,141 - DEBUG - Requesting: http://10.0.0.42:8082/project/47f181f5-b3a7-4b11-ac88-31501a44d636 2024-11-15 01:44:55,229 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/ac4565cb-5204-4f1d-af55-a9b3fe5f2bb7 2024-11-15 01:44:55,243 - DEBUG - ==>Verifying data for policy with id: 5b6fc509-bbd1-4a39-ba19-61ecf79c1b1f, fqn: ['default-domain', 'ctest-TestBasicPolicy-92263399', 'ctest-policy-allow-all-95552824'] 2024-11-15 01:44:55,243 - INFO - VN ctest-vn-46662521 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-15 01:44:55,243 - DEBUG - Verifying the vn in opserver 2024-11-15 01:44:55,244 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92263399:ctest-vn-46662521 virtual network link through opserver 10.0.0.42 2024-11-15 01:44:55,244 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-11-15 01:44:55,255 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92263399:ctest-vn-46662521', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92263399:ctest-vn-46662521?flat'} 2024-11-15 01:44:55,255 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92263399:ctest-vn-46662521 is found in opserver 2024-11-15 01:44:55,269 - DEBUG - Do not have enough data to verify VN in agent 2024-11-15 01:44:55,275 - DEBUG - VRF ids for VN ctest-vn-46662521: {} 2024-11-15 01:44:55,344 - DEBUG - Services list from nova: [, , ] 2024-11-15 01:44:56,536 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2308-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2308-1) 2024-11-15 01:44:57,945 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2308-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2308-1) 2024-11-15 01:44:57,945 - INFO - Waiting for VM ctest-TestBasicPolicy-92263399-66120185 to be up.. 2024-11-15 01:44:58,030 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-15 01:45:03,136 - DEBUG - VM is in ACTIVE state now 2024-11-15 01:45:03,136 - INFO - VM name : ctest-TestBasicPolicy-92263399-66120185 2024-11-15 01:45:03,228 - DEBUG - VM ctest-TestBasicPolicy-92263399-66120185 ID is 4193c65c-b194-4c2c-ad77-21ecd03c9285 2024-11-15 01:45:03,249 - DEBUG - VM ctest-TestBasicPolicy-92263399-66120185 launched on Node cn-jenkins-deploy-platform-ansible-os-2308-1 2024-11-15 01:45:03,341 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/4193c65c-b194-4c2c-ad77-21ecd03c9285 2024-11-15 01:45:03,355 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/6af155f4-c5dc-4f40-9d5b-6247d78c03a4 2024-11-15 01:45:06,583 - 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 1002ms') 2024-11-15 01:45:06,584 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-92263399-66120185 failed! 2024-11-15 01:45:06,645 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-92263399:ctest-vn-33131899 is 125.74.46.129 and allocation pool is NOT set 2024-11-15 01:45:08,716 - 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.9 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.60 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 2.600/6.742/10.885/4.142 ms') 2024-11-15 01:45:08,716 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-92263399-66120185 passed 2024-11-15 01:45:08,885 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-15 01:45:08,885 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-92263399-66120185, IP 125.74.46.131, Port 22 2024-11-15 01:45:09,041 - DEBUG - VM ctest-TestBasicPolicy-92263399-66120185 is ready for SSH connections 2024-11-15 01:45:09,041 - INFO - Waiting for VM ctest-TestBasicPolicy-92263399-27215584 to be up.. 2024-11-15 01:45:09,121 - DEBUG - VM is in ACTIVE state now 2024-11-15 01:45:09,121 - INFO - VM name : ctest-TestBasicPolicy-92263399-27215584 2024-11-15 01:45:09,195 - DEBUG - VM ctest-TestBasicPolicy-92263399-27215584 ID is 6a1f3547-40a9-408d-b532-84528d3a5a54 2024-11-15 01:45:09,195 - DEBUG - VM ctest-TestBasicPolicy-92263399-27215584 launched on Node cn-jenkins-deploy-platform-ansible-os-2308-1 2024-11-15 01:45:09,277 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/6a1f3547-40a9-408d-b532-84528d3a5a54 2024-11-15 01:45:09,287 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/fedc5d29-258d-4a1d-9e7a-ec28083144dc 2024-11-15 01:45:10,539 - 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.49 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.448 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.448/1.468/2.488/1.020 ms') 2024-11-15 01:45:10,539 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-92263399-27215584 passed 2024-11-15 01:45:10,697 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-15 01:45:10,697 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-92263399-27215584, IP 152.129.133.195, Port 22 2024-11-15 01:45:10,867 - DEBUG - VM ctest-TestBasicPolicy-92263399-27215584 is ready for SSH connections 2024-11-15 01:45:10,867 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-15 01:45:10,867 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 152.129.133.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2024-11-15 01:45:10,868 - DEBUG - ping -s 56 -c 3 -W 1 152.129.133.195 2024-11-15 01:45:14,913 - DEBUG - PING 152.129.133.195 (152.129.133.195): 56 data bytes 64 bytes from 152.129.133.195: seq=0 ttl=63 time=3.705 ms 64 bytes from 152.129.133.195: seq=1 ttl=63 time=0.807 ms 64 bytes from 152.129.133.195: seq=2 ttl=63 time=0.743 ms --- 152.129.133.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.743/1.751/3.705 ms 2024-11-15 01:45:14,914 - INFO - Ping to IP 152.129.133.195 from VM ctest-TestBasicPolicy-92263399-66120185 passed 2024-11-15 01:45:15,117 - DEBUG - Policy Update Response {"network-policy": {"uuid": "5b6fc509-bbd1-4a39-ba19-61ecf79c1b1f", "href": "http://10.0.0.42:8082/network-policy/5b6fc509-bbd1-4a39-ba19-61ecf79c1b1f"}} 2024-11-15 01:45:15,117 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-15 01:45:15,117 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 152.129.133.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2024-11-15 01:45:15,117 - DEBUG - ping -s 56 -c 3 -W 1 152.129.133.195 2024-11-15 01:45:18,324 - DEBUG - PING 152.129.133.195 (152.129.133.195): 56 data bytes --- 152.129.133.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-11-15 01:45:18,324 - WARNING - Ping to IP 152.129.133.195 from VM ctest-TestBasicPolicy-92263399-66120185 failed 2024-11-15 01:45:18,324 - INFO - Deleting VM ctest-TestBasicPolicy-92263399-27215584 2024-11-15 01:45:18,391 - INFO - Deleting VM ctest-TestBasicPolicy-92263399-66120185 2024-11-15 01:45:18,803 - INFO - Deleted policy ctest-policy-allow-all-95552824 2024-11-15 01:45:18,803 - INFO - Deleting VN ctest-vn-46662521 2024-11-15 01:45:18,858 - DEBUG - VN ac4565cb-5204-4f1d-af55-a9b3fe5f2bb7 still in use: Unable to complete operation on network ac4565cb-5204-4f1d-af55-a9b3fe5f2bb7. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9250b693-0387-4f0a-8804-b836fd0341d6'] 2024-11-15 01:45:18,859 - WARNING - Deleting VN ctest-vn-46662521 failed..Will retry 2024-11-15 01:45:21,005 - DEBUG - Response for deleting network () 2024-11-15 01:45:21,005 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/0b71139e-f4a2-499d-bb4d-d7c8b0e970b3 2024-11-15 01:45:21,011 - DEBUG - Response Code: 404 2024-11-15 01:45:21,012 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-11-15 01:45:21,018 - DEBUG - Requesting: http://10.0.0.42:8082/domain/2fd3c138-6b6a-41e2-a6fd-e0da4fa5babb 2024-11-15 01:45:21,080 - DEBUG - Requesting: http://10.0.0.42:8082/project/47f181f5-b3a7-4b11-ac88-31501a44d636 2024-11-15 01:45:21,180 - INFO - Validated that VN ctest-vn-46662521 is not found in API Server 2024-11-15 01:45:21,192 - DEBUG - VN ctest-vn-46662521 is not present in Agent 10.0.0.42 2024-11-15 01:45:21,192 - INFO - Validated that VN ctest-vn-46662521 is not in any agent 2024-11-15 01:45:21,209 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-46662521 info 2024-11-15 01:45:21,209 - INFO - Deleting VN ctest-vn-33131899 2024-11-15 01:45:21,335 - DEBUG - Response for deleting network () 2024-11-15 01:45:21,336 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/97b7bcf2-75c7-4978-9fee-0ae63cc46d33 2024-11-15 01:45:21,345 - DEBUG - Response Code: 404 2024-11-15 01:45:21,345 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-11-15 01:45:21,350 - DEBUG - Requesting: http://10.0.0.42:8082/domain/2fd3c138-6b6a-41e2-a6fd-e0da4fa5babb 2024-11-15 01:45:21,407 - DEBUG - Requesting: http://10.0.0.42:8082/project/47f181f5-b3a7-4b11-ac88-31501a44d636 2024-11-15 01:45:21,496 - INFO - Validated that VN ctest-vn-33131899 is not found in API Server 2024-11-15 01:45:21,507 - DEBUG - VN ctest-vn-33131899 is not present in Agent 10.0.0.42 2024-11-15 01:45:21,507 - INFO - Validated that VN ctest-vn-33131899 is not in any agent 2024-11-15 01:45:21,525 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-33131899 info 2024-11-15 01:45:21,778 - DEBUG - No XMPP flaps were noticed during the test 2024-11-15 01:45:21,779 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2024-11-15 01:45:21,779 - INFO - -------------------------------------------------------------------------------- 2024-11-15 01:45:22,476 - INFO - Deleted project: ctest-TestBasicPolicy-92263399, ID : 47f181f5-b3a7-4b11-ac88-31501a44d636