2024-09-18 05:37:04,201 - INFO - Domain Default found not creating 2024-09-18 05:37:04,394 - INFO - Project ctest-TestBasicPolicy-85651742 not found, creating it 2024-09-18 05:37:04,889 - INFO - Created Project:ctest-TestBasicPolicy-85651742, ID : f39fb73e-b1cb-4db0-a5f4-8be57fb39d57 2024-09-18 05:37:06,388 - INFO - ================================================================================ 2024-09-18 05:37:06,388 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-18 05:37:06,388 - 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-18 05:37:06,642 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.7': '0'}} with 2024-09-18 05:37:06,643 - INFO - Initial checks done. Running the testcase now 2024-09-18 05:37:06,643 - INFO - 2024-09-18 05:37:07,222 - DEBUG - Response for create_network : {'network': {'id': '6edcf9ac-4ead-4ba6-9730-6526e0d8e509', 'name': 'ctest-vn-59332542', 'tenant_id': 'f39fb73eb1cb4db0a5f48be57fb39d57', 'project_id': 'f39fb73eb1cb4db0a5f48be57fb39d57', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85651742', 'ctest-vn-59332542'], 'port_security_enabled': True, 'description': ''}} 2024-09-18 05:37:07,420 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a671a517-76f6-482d-af03-da1e16191541', 'name': '', 'tenant_id': 'f39fb73eb1cb4db0a5f48be57fb39d57', 'network_id': '6edcf9ac-4ead-4ba6-9730-6526e0d8e509', 'ip_version': 4, 'cidr': '80.176.57.128/26', 'allocation_pools': [{'start': '80.176.57.130', 'end': '80.176.57.190'}], 'gateway_ip': '80.176.57.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '80.176.57.130', 'tags': [], 'project_id': 'f39fb73eb1cb4db0a5f48be57fb39d57'}} 2024-09-18 05:37:07,439 - INFO - Created VN ctest-vn-59332542 2024-09-18 05:37:07,497 - DEBUG - VN ctest-vn-59332542 UUID is 6edcf9ac-4ead-4ba6-9730-6526e0d8e509 2024-09-18 05:37:07,814 - DEBUG - Response for create_network : {'network': {'id': '8648d2b0-346f-45e0-b068-1a7178fdd50b', 'name': 'ctest-vn-82059481', 'tenant_id': 'f39fb73eb1cb4db0a5f48be57fb39d57', 'project_id': 'f39fb73eb1cb4db0a5f48be57fb39d57', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85651742', 'ctest-vn-82059481'], 'port_security_enabled': True, 'description': ''}} 2024-09-18 05:37:08,061 - DEBUG - Response for create_subnet : {'subnet': {'id': '0eda24f5-e741-4c8e-b10c-0f3eacb1585a', 'name': '', 'tenant_id': 'f39fb73eb1cb4db0a5f48be57fb39d57', 'network_id': '8648d2b0-346f-45e0-b068-1a7178fdd50b', 'ip_version': 4, 'cidr': '15.220.220.128/26', 'allocation_pools': [{'start': '15.220.220.130', 'end': '15.220.220.190'}], 'gateway_ip': '15.220.220.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.220.220.130', 'tags': [], 'project_id': 'f39fb73eb1cb4db0a5f48be57fb39d57'}} 2024-09-18 05:37:08,080 - INFO - Created VN ctest-vn-82059481 2024-09-18 05:37:08,141 - DEBUG - VN ctest-vn-82059481 UUID is 8648d2b0-346f-45e0-b068-1a7178fdd50b 2024-09-18 05:37:08,263 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-85651742:ctest-vn-59332542, 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-85651742:ctest-vn-82059481, 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-18 05:37:08,575 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6edcf9ac-4ead-4ba6-9730-6526e0d8e509', 'name': 'ctest-vn-59332542', 'tenant_id': 'f39fb73eb1cb4db0a5f48be57fb39d57', 'project_id': 'f39fb73eb1cb4db0a5f48be57fb39d57', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a671a517-76f6-482d-af03-da1e16191541'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85651742', 'ctest-vn-59332542'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85651742', 'ctest-policy-allow-all-73531294']], 'subnet_ipam': [{'subnet_cidr': '80.176.57.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-18 05:37:08,820 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8648d2b0-346f-45e0-b068-1a7178fdd50b', 'name': 'ctest-vn-82059481', 'tenant_id': 'f39fb73eb1cb4db0a5f48be57fb39d57', 'project_id': 'f39fb73eb1cb4db0a5f48be57fb39d57', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0eda24f5-e741-4c8e-b10c-0f3eacb1585a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85651742', 'ctest-vn-82059481'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85651742', 'ctest-policy-allow-all-73531294']], 'subnet_ipam': [{'subnet_cidr': '15.220.220.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-18 05:37:08,989 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-09-18 05:37:09,289 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-09-18 05:37:09,323 - DEBUG - Requesting: http://10.0.0.40:8082/domain/098931bf-0803-4201-9742-7d89cf278f7b 2024-09-18 05:37:09,343 - DEBUG - Requesting: http://10.0.0.40:8082/project/f39fb73e-b1cb-4db0-a5f4-8be57fb39d57 2024-09-18 05:37:09,431 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/6edcf9ac-4ead-4ba6-9730-6526e0d8e509 2024-09-18 05:37:09,446 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/6edcf9ac-4ead-4ba6-9730-6526e0d8e509 2024-09-18 05:37:09,458 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/3eed2b21-6dc1-4b33-b7a6-76ce728835cd 2024-09-18 05:37:09,467 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/3eed2b21-6dc1-4b33-b7a6-76ce728835cd 2024-09-18 05:37:09,474 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/40ba0fdc-3335-4e73-a613-8b6aeef74cee 2024-09-18 05:37:09,481 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-18 05:37:09,481 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/6edcf9ac-4ead-4ba6-9730-6526e0d8e509 2024-09-18 05:37:09,493 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/3eed2b21-6dc1-4b33-b7a6-76ce728835cd 2024-09-18 05:37:09,511 - INFO - Verified VN network id 8 for VN 6edcf9ac-4ead-4ba6-9730-6526e0d8e509 2024-09-18 05:37:09,511 - INFO - Verifications in API Server for VN ctest-vn-59332542 passed 2024-09-18 05:37:09,511 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/6edcf9ac-4ead-4ba6-9730-6526e0d8e509 2024-09-18 05:37:09,526 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/3eed2b21-6dc1-4b33-b7a6-76ce728835cd 2024-09-18 05:37:09,537 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/3eed2b21-6dc1-4b33-b7a6-76ce728835cd 2024-09-18 05:37:09,547 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/40ba0fdc-3335-4e73-a613-8b6aeef74cee 2024-09-18 05:37:09,564 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85651742:ctest-vn-59332542', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85651742', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7988534357498088358', 'uuid-lslong': '10894318716264703241'}, 'enable': 'true', 'created': '2024-09-18T05:37:07', 'last-modified': '2024-09-18T05:37:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.012203'} 2024-09-18 05:37:09,573 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-18 05:37:09,573 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59332542 passed 2024-09-18 05:37:09,573 - DEBUG - ====Verifying policy data for ctest-vn-59332542 in API_Server ====== 2024-09-18 05:37:09,573 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-09-18 05:37:09,580 - DEBUG - Requesting: http://10.0.0.40:8082/domain/098931bf-0803-4201-9742-7d89cf278f7b 2024-09-18 05:37:09,597 - DEBUG - Requesting: http://10.0.0.40:8082/project/f39fb73e-b1cb-4db0-a5f4-8be57fb39d57 2024-09-18 05:37:09,681 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/6edcf9ac-4ead-4ba6-9730-6526e0d8e509 2024-09-18 05:37:09,696 - DEBUG - ==>Verifying data for policy with id: 122aeebf-65b1-41eb-b0ca-45954cc1cbc4, fqn: ['default-domain', 'ctest-TestBasicPolicy-85651742', 'ctest-policy-allow-all-73531294'] 2024-09-18 05:37:09,696 - INFO - VN ctest-vn-59332542 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-18 05:37:09,696 - DEBUG - Verifying the vn in opserver 2024-09-18 05:37:09,696 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85651742:ctest-vn-59332542 virtual network link through opserver 10.0.0.40 2024-09-18 05:37:09,697 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2024-09-18 05:37:09,991 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2024-09-18 05:37:10,049 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85651742:ctest-vn-59332542', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85651742:ctest-vn-59332542?flat'} 2024-09-18 05:37:10,049 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85651742:ctest-vn-59332542 is found in opserver 2024-09-18 05:37:10,060 - DEBUG - Do not have enough data to verify VN in agent 2024-09-18 05:37:10,065 - DEBUG - VRF ids for VN ctest-vn-59332542: {} 2024-09-18 05:37:10,065 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-09-18 05:37:10,071 - DEBUG - Requesting: http://10.0.0.40:8082/domain/098931bf-0803-4201-9742-7d89cf278f7b 2024-09-18 05:37:10,083 - DEBUG - Requesting: http://10.0.0.40:8082/project/f39fb73e-b1cb-4db0-a5f4-8be57fb39d57 2024-09-18 05:37:10,166 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/8648d2b0-346f-45e0-b068-1a7178fdd50b 2024-09-18 05:37:10,182 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/8648d2b0-346f-45e0-b068-1a7178fdd50b 2024-09-18 05:37:10,195 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/5bbeae10-9af7-4780-8740-1f2eeae97cbc 2024-09-18 05:37:10,204 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/5bbeae10-9af7-4780-8740-1f2eeae97cbc 2024-09-18 05:37:10,212 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/6d1948f1-069f-4551-9ce6-d05298f5ca28 2024-09-18 05:37:10,219 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-18 05:37:10,219 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/8648d2b0-346f-45e0-b068-1a7178fdd50b 2024-09-18 05:37:10,232 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/5bbeae10-9af7-4780-8740-1f2eeae97cbc 2024-09-18 05:37:10,250 - INFO - Verified VN network id 9 for VN 8648d2b0-346f-45e0-b068-1a7178fdd50b 2024-09-18 05:37:10,250 - INFO - Verifications in API Server for VN ctest-vn-82059481 passed 2024-09-18 05:37:10,250 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/8648d2b0-346f-45e0-b068-1a7178fdd50b 2024-09-18 05:37:10,264 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/5bbeae10-9af7-4780-8740-1f2eeae97cbc 2024-09-18 05:37:10,272 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/5bbeae10-9af7-4780-8740-1f2eeae97cbc 2024-09-18 05:37:10,280 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/6d1948f1-069f-4551-9ce6-d05298f5ca28 2024-09-18 05:37:10,293 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85651742:ctest-vn-82059481', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85651742', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9676215453641295328', 'uuid-lslong': '12711439022916752651'}, 'enable': 'true', 'created': '2024-09-18T05:37:07', 'last-modified': '2024-09-18T05:37:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.498396'} 2024-09-18 05:37:10,299 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-18 05:37:10,299 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82059481 passed 2024-09-18 05:37:10,299 - DEBUG - ====Verifying policy data for ctest-vn-82059481 in API_Server ====== 2024-09-18 05:37:10,299 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-09-18 05:37:10,305 - DEBUG - Requesting: http://10.0.0.40:8082/domain/098931bf-0803-4201-9742-7d89cf278f7b 2024-09-18 05:37:10,318 - DEBUG - Requesting: http://10.0.0.40:8082/project/f39fb73e-b1cb-4db0-a5f4-8be57fb39d57 2024-09-18 05:37:10,405 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/8648d2b0-346f-45e0-b068-1a7178fdd50b 2024-09-18 05:37:10,419 - DEBUG - ==>Verifying data for policy with id: 122aeebf-65b1-41eb-b0ca-45954cc1cbc4, fqn: ['default-domain', 'ctest-TestBasicPolicy-85651742', 'ctest-policy-allow-all-73531294'] 2024-09-18 05:37:10,419 - INFO - VN ctest-vn-82059481 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-18 05:37:10,419 - DEBUG - Verifying the vn in opserver 2024-09-18 05:37:10,419 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85651742:ctest-vn-82059481 virtual network link through opserver 10.0.0.40 2024-09-18 05:37:10,419 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2024-09-18 05:37:10,430 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85651742:ctest-vn-82059481', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85651742:ctest-vn-82059481?flat'} 2024-09-18 05:37:10,430 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85651742:ctest-vn-82059481 is found in opserver 2024-09-18 05:37:10,440 - DEBUG - Do not have enough data to verify VN in agent 2024-09-18 05:37:10,445 - DEBUG - VRF ids for VN ctest-vn-82059481: {} 2024-09-18 05:37:10,495 - DEBUG - Services list from nova: [, , ] 2024-09-18 05:37:11,507 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1984-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1984-1) 2024-09-18 05:37:12,783 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1984-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1984-1) 2024-09-18 05:37:12,783 - INFO - Waiting for VM ctest-TestBasicPolicy-85651742-86847673 to be up.. 2024-09-18 05:37:12,872 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-18 05:37:17,953 - DEBUG - VM is in ACTIVE state now 2024-09-18 05:37:17,953 - INFO - VM name : ctest-TestBasicPolicy-85651742-86847673 2024-09-18 05:37:18,033 - DEBUG - VM ctest-TestBasicPolicy-85651742-86847673 ID is 75fd398e-f402-4bd5-9faf-8c538c921512 2024-09-18 05:37:18,050 - DEBUG - VM ctest-TestBasicPolicy-85651742-86847673 launched on Node cn-jenkins-deploy-platform-ansible-os-1984-1 2024-09-18 05:37:18,126 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/75fd398e-f402-4bd5-9faf-8c538c921512 2024-09-18 05:37:18,136 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/52321714-f658-4c33-b935-e669ae7aa454 2024-09-18 05:37:21,396 - 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-18 05:37:21,396 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-85651742-86847673 failed! 2024-09-18 05:37:21,457 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-85651742:ctest-vn-59332542 is 80.176.57.129 and allocation pool is NOT set 2024-09-18 05:37:23,518 - 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=2.70 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.523 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.523/1.610/2.698/1.087 ms') 2024-09-18 05:37:23,518 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-85651742-86847673 passed 2024-09-18 05:37:23,677 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-18 05:37:23,677 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-85651742-86847673, IP 80.176.57.131, Port 22 2024-09-18 05:37:23,843 - DEBUG - VM ctest-TestBasicPolicy-85651742-86847673 is ready for SSH connections 2024-09-18 05:37:23,843 - INFO - Waiting for VM ctest-TestBasicPolicy-85651742-35348342 to be up.. 2024-09-18 05:37:23,932 - DEBUG - VM is in ACTIVE state now 2024-09-18 05:37:23,932 - INFO - VM name : ctest-TestBasicPolicy-85651742-35348342 2024-09-18 05:37:24,014 - DEBUG - VM ctest-TestBasicPolicy-85651742-35348342 ID is a8579516-c567-4903-8b32-77b60dc23ed2 2024-09-18 05:37:24,014 - DEBUG - VM ctest-TestBasicPolicy-85651742-35348342 launched on Node cn-jenkins-deploy-platform-ansible-os-1984-1 2024-09-18 05:37:24,097 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/a8579516-c567-4903-8b32-77b60dc23ed2 2024-09-18 05:37:24,108 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/3fb8764f-34b8-4b8a-a13f-bd43657a1448 2024-09-18 05:37:25,371 - 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.76 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.764 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.764/2.763/4.763/1.999 ms') 2024-09-18 05:37:25,372 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-85651742-35348342 passed 2024-09-18 05:37:25,533 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-18 05:37:25,533 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-85651742-35348342, IP 15.220.220.131, Port 22 2024-09-18 05:37:25,689 - DEBUG - VM ctest-TestBasicPolicy-85651742-35348342 is ready for SSH connections 2024-09-18 05:37:25,689 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-18 05:37:25,689 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 15.220.220.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2024-09-18 05:37:25,689 - DEBUG - ping -s 56 -c 3 -W 1 15.220.220.131 2024-09-18 05:37:29,424 - DEBUG - PING 15.220.220.131 (15.220.220.131): 56 data bytes 64 bytes from 15.220.220.131: seq=0 ttl=63 time=3.870 ms 64 bytes from 15.220.220.131: seq=1 ttl=63 time=0.803 ms 64 bytes from 15.220.220.131: seq=2 ttl=63 time=0.770 ms --- 15.220.220.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.770/1.814/3.870 ms 2024-09-18 05:37:29,424 - INFO - Ping to IP 15.220.220.131 from VM ctest-TestBasicPolicy-85651742-86847673 passed 2024-09-18 05:37:29,617 - DEBUG - Policy Update Response {"network-policy": {"uuid": "122aeebf-65b1-41eb-b0ca-45954cc1cbc4", "href": "http://10.0.0.40:8082/network-policy/122aeebf-65b1-41eb-b0ca-45954cc1cbc4"}} 2024-09-18 05:37:29,617 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-18 05:37:29,617 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 15.220.220.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2024-09-18 05:37:29,617 - DEBUG - ping -s 56 -c 3 -W 1 15.220.220.131 2024-09-18 05:37:32,820 - DEBUG - PING 15.220.220.131 (15.220.220.131): 56 data bytes 64 bytes from 15.220.220.131: seq=0 ttl=63 time=1.420 ms --- 15.220.220.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.420/1.420/1.420 ms 2024-09-18 05:37:32,820 - WARNING - Ping to IP 15.220.220.131 from VM ctest-TestBasicPolicy-85651742-86847673 failed 2024-09-18 05:37:32,821 - INFO - Deleting VM ctest-TestBasicPolicy-85651742-35348342 2024-09-18 05:37:32,886 - INFO - Deleting VM ctest-TestBasicPolicy-85651742-86847673 2024-09-18 05:37:33,310 - INFO - Deleted policy ctest-policy-allow-all-73531294 2024-09-18 05:37:33,311 - INFO - Deleting VN ctest-vn-82059481 2024-09-18 05:37:33,366 - DEBUG - VN 8648d2b0-346f-45e0-b068-1a7178fdd50b still in use: Unable to complete operation on network 8648d2b0-346f-45e0-b068-1a7178fdd50b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-1820cdf3-955d-4cd7-9520-9396f8750154'] 2024-09-18 05:37:33,366 - WARNING - Deleting VN ctest-vn-82059481 failed..Will retry 2024-09-18 05:37:35,467 - DEBUG - Response for deleting network () 2024-09-18 05:37:35,467 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/5bbeae10-9af7-4780-8740-1f2eeae97cbc 2024-09-18 05:37:35,473 - DEBUG - Response Code: 404 2024-09-18 05:37:35,473 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-09-18 05:37:35,479 - DEBUG - Requesting: http://10.0.0.40:8082/domain/098931bf-0803-4201-9742-7d89cf278f7b 2024-09-18 05:37:35,539 - DEBUG - Requesting: http://10.0.0.40:8082/project/f39fb73e-b1cb-4db0-a5f4-8be57fb39d57 2024-09-18 05:37:35,615 - INFO - Validated that VN ctest-vn-82059481 is not found in API Server 2024-09-18 05:37:35,626 - DEBUG - VN ctest-vn-82059481 is not present in Agent 10.0.0.40 2024-09-18 05:37:35,626 - INFO - Validated that VN ctest-vn-82059481 is not in any agent 2024-09-18 05:37:35,641 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-82059481 info 2024-09-18 05:37:35,641 - INFO - Deleting VN ctest-vn-59332542 2024-09-18 05:37:35,739 - DEBUG - Response for deleting network () 2024-09-18 05:37:35,739 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/3eed2b21-6dc1-4b33-b7a6-76ce728835cd 2024-09-18 05:37:35,744 - DEBUG - Response Code: 404 2024-09-18 05:37:35,745 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-09-18 05:37:35,755 - DEBUG - Requesting: http://10.0.0.40:8082/domain/098931bf-0803-4201-9742-7d89cf278f7b 2024-09-18 05:37:35,816 - DEBUG - Requesting: http://10.0.0.40:8082/project/f39fb73e-b1cb-4db0-a5f4-8be57fb39d57 2024-09-18 05:37:35,896 - INFO - Validated that VN ctest-vn-59332542 is not found in API Server 2024-09-18 05:37:35,907 - DEBUG - VN ctest-vn-59332542 is not present in Agent 10.0.0.40 2024-09-18 05:37:35,907 - INFO - Validated that VN ctest-vn-59332542 is not in any agent 2024-09-18 05:37:35,922 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-59332542 info 2024-09-18 05:37:36,174 - DEBUG - No XMPP flaps were noticed during the test 2024-09-18 05:37:36,174 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2024-09-18 05:37:36,174 - INFO - -------------------------------------------------------------------------------- 2024-09-18 05:37:36,873 - INFO - Deleted project: ctest-TestBasicPolicy-85651742, ID : f39fb73e-b1cb-4db0-a5f4-8be57fb39d57