2024-09-17 22:46:47,501 - INFO - Domain Default found not creating 2024-09-17 22:46:47,677 - INFO - Project ctest-TestBasicPolicy-61090045 not found, creating it 2024-09-17 22:46:48,186 - INFO - Created Project:ctest-TestBasicPolicy-61090045, ID : 8ddc3d22-8a37-41bf-b746-6fd815e9e5c9 2024-09-17 22:46:49,811 - INFO - ================================================================================ 2024-09-17 22:46:49,811 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-17 22:46:49,811 - 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-17 22:46:50,071 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.6': '0'}} with 2024-09-17 22:46:50,071 - INFO - Initial checks done. Running the testcase now 2024-09-17 22:46:50,071 - INFO - 2024-09-17 22:46:50,684 - DEBUG - Response for create_network : {'network': {'id': 'eee330b0-0247-48b2-a52b-92a15e25b44b', 'name': 'ctest-vn-83050709', 'tenant_id': '8ddc3d228a3741bfb7466fd815e9e5c9', 'project_id': '8ddc3d228a3741bfb7466fd815e9e5c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61090045', 'ctest-vn-83050709'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 22:46:50,868 - DEBUG - Response for create_subnet : {'subnet': {'id': '374ecbaa-5aa9-41b1-9114-54e8edff6428', 'name': '', 'tenant_id': '8ddc3d228a3741bfb7466fd815e9e5c9', 'network_id': 'eee330b0-0247-48b2-a52b-92a15e25b44b', 'ip_version': 4, 'cidr': '99.71.30.192/26', 'allocation_pools': [{'start': '99.71.30.194', 'end': '99.71.30.254'}], 'gateway_ip': '99.71.30.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.71.30.194', 'tags': [], 'project_id': '8ddc3d228a3741bfb7466fd815e9e5c9'}} 2024-09-17 22:46:50,890 - INFO - Created VN ctest-vn-83050709 2024-09-17 22:46:50,955 - DEBUG - VN ctest-vn-83050709 UUID is eee330b0-0247-48b2-a52b-92a15e25b44b 2024-09-17 22:46:51,285 - DEBUG - Response for create_network : {'network': {'id': '8656382b-379b-4865-83e6-268045efe3e2', 'name': 'ctest-vn-27127734', 'tenant_id': '8ddc3d228a3741bfb7466fd815e9e5c9', 'project_id': '8ddc3d228a3741bfb7466fd815e9e5c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61090045', 'ctest-vn-27127734'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 22:46:51,447 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bc742316-044d-4930-a875-f85ac8a78e1b', 'name': '', 'tenant_id': '8ddc3d228a3741bfb7466fd815e9e5c9', 'network_id': '8656382b-379b-4865-83e6-268045efe3e2', 'ip_version': 4, 'cidr': '15.208.22.64/26', 'allocation_pools': [{'start': '15.208.22.66', 'end': '15.208.22.126'}], 'gateway_ip': '15.208.22.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.208.22.66', 'tags': [], 'project_id': '8ddc3d228a3741bfb7466fd815e9e5c9'}} 2024-09-17 22:46:51,469 - INFO - Created VN ctest-vn-27127734 2024-09-17 22:46:51,527 - DEBUG - VN ctest-vn-27127734 UUID is 8656382b-379b-4865-83e6-268045efe3e2 2024-09-17 22:46:51,662 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61090045:ctest-vn-83050709, 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-61090045:ctest-vn-27127734, 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-17 22:46:51,993 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eee330b0-0247-48b2-a52b-92a15e25b44b', 'name': 'ctest-vn-83050709', 'tenant_id': '8ddc3d228a3741bfb7466fd815e9e5c9', 'project_id': '8ddc3d228a3741bfb7466fd815e9e5c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['374ecbaa-5aa9-41b1-9114-54e8edff6428'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61090045', 'ctest-vn-83050709'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61090045', 'ctest-policy-allow-all-40086560']], 'subnet_ipam': [{'subnet_cidr': '99.71.30.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-17 22:46:52,248 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8656382b-379b-4865-83e6-268045efe3e2', 'name': 'ctest-vn-27127734', 'tenant_id': '8ddc3d228a3741bfb7466fd815e9e5c9', 'project_id': '8ddc3d228a3741bfb7466fd815e9e5c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bc742316-044d-4930-a875-f85ac8a78e1b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61090045', 'ctest-vn-27127734'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61090045', 'ctest-policy-allow-all-40086560']], 'subnet_ipam': [{'subnet_cidr': '15.208.22.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-17 22:46:52,423 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-09-17 22:46:52,718 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-09-17 22:46:52,759 - DEBUG - Requesting: http://10.0.0.33:8082/domain/ebedd754-b6c3-4f84-8d1c-6c8da416e57e 2024-09-17 22:46:52,776 - DEBUG - Requesting: http://10.0.0.33:8082/project/8ddc3d22-8a37-41bf-b746-6fd815e9e5c9 2024-09-17 22:46:52,862 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/eee330b0-0247-48b2-a52b-92a15e25b44b 2024-09-17 22:46:52,879 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/eee330b0-0247-48b2-a52b-92a15e25b44b 2024-09-17 22:46:52,894 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5cdc0f72-3dd4-488e-a712-c797e51799b5 2024-09-17 22:46:52,905 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5cdc0f72-3dd4-488e-a712-c797e51799b5 2024-09-17 22:46:52,914 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/881af8f9-01a0-495f-ac0b-017a059996a8 2024-09-17 22:46:52,923 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-17 22:46:52,923 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/eee330b0-0247-48b2-a52b-92a15e25b44b 2024-09-17 22:46:52,939 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5cdc0f72-3dd4-488e-a712-c797e51799b5 2024-09-17 22:46:52,964 - INFO - Verified VN network id 9 for VN eee330b0-0247-48b2-a52b-92a15e25b44b 2024-09-17 22:46:52,964 - INFO - Verifications in API Server for VN ctest-vn-83050709 passed 2024-09-17 22:46:52,964 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/eee330b0-0247-48b2-a52b-92a15e25b44b 2024-09-17 22:46:52,978 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5cdc0f72-3dd4-488e-a712-c797e51799b5 2024-09-17 22:46:52,989 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5cdc0f72-3dd4-488e-a712-c797e51799b5 2024-09-17 22:46:52,999 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/881af8f9-01a0-495f-ac0b-017a059996a8 2024-09-17 22:46:53,014 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61090045:ctest-vn-83050709', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61090045', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17213655733250771122', 'uuid-lslong': '11901767662023586891'}, 'enable': 'true', 'created': '2024-09-17T22:46:50', 'last-modified': '2024-09-17T22:46:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.044396'} 2024-09-17 22:46:53,020 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-17 22:46:53,021 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83050709 passed 2024-09-17 22:46:53,021 - DEBUG - ====Verifying policy data for ctest-vn-83050709 in API_Server ====== 2024-09-17 22:46:53,021 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-09-17 22:46:53,027 - DEBUG - Requesting: http://10.0.0.33:8082/domain/ebedd754-b6c3-4f84-8d1c-6c8da416e57e 2024-09-17 22:46:53,041 - DEBUG - Requesting: http://10.0.0.33:8082/project/8ddc3d22-8a37-41bf-b746-6fd815e9e5c9 2024-09-17 22:46:53,121 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/eee330b0-0247-48b2-a52b-92a15e25b44b 2024-09-17 22:46:53,149 - DEBUG - ==>Verifying data for policy with id: 024cea9f-36e9-42aa-9b33-a1bac17b1ffa, fqn: ['default-domain', 'ctest-TestBasicPolicy-61090045', 'ctest-policy-allow-all-40086560'] 2024-09-17 22:46:53,149 - INFO - VN ctest-vn-83050709 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-17 22:46:53,149 - DEBUG - Verifying the vn in opserver 2024-09-17 22:46:53,149 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61090045:ctest-vn-83050709 virtual network link through opserver 10.0.0.33 2024-09-17 22:46:53,149 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2024-09-17 22:46:53,445 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2024-09-17 22:46:53,516 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61090045:ctest-vn-83050709', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61090045:ctest-vn-83050709?flat'} 2024-09-17 22:46:53,516 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61090045:ctest-vn-83050709 is found in opserver 2024-09-17 22:46:53,530 - DEBUG - Do not have enough data to verify VN in agent 2024-09-17 22:46:53,536 - DEBUG - VRF ids for VN ctest-vn-83050709: {} 2024-09-17 22:46:53,536 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-09-17 22:46:53,542 - DEBUG - Requesting: http://10.0.0.33:8082/domain/ebedd754-b6c3-4f84-8d1c-6c8da416e57e 2024-09-17 22:46:53,557 - DEBUG - Requesting: http://10.0.0.33:8082/project/8ddc3d22-8a37-41bf-b746-6fd815e9e5c9 2024-09-17 22:46:53,635 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8656382b-379b-4865-83e6-268045efe3e2 2024-09-17 22:46:53,652 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8656382b-379b-4865-83e6-268045efe3e2 2024-09-17 22:46:53,668 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/79bcfa3c-2a82-4b78-970b-2ef3622d43be 2024-09-17 22:46:53,677 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/79bcfa3c-2a82-4b78-970b-2ef3622d43be 2024-09-17 22:46:53,686 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/bbbe6975-c8a8-4128-9d96-acfd93a1a311 2024-09-17 22:46:53,693 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-17 22:46:53,693 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8656382b-379b-4865-83e6-268045efe3e2 2024-09-17 22:46:53,707 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/79bcfa3c-2a82-4b78-970b-2ef3622d43be 2024-09-17 22:46:53,727 - INFO - Verified VN network id 10 for VN 8656382b-379b-4865-83e6-268045efe3e2 2024-09-17 22:46:53,728 - INFO - Verifications in API Server for VN ctest-vn-27127734 passed 2024-09-17 22:46:53,728 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8656382b-379b-4865-83e6-268045efe3e2 2024-09-17 22:46:53,742 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/79bcfa3c-2a82-4b78-970b-2ef3622d43be 2024-09-17 22:46:53,753 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/79bcfa3c-2a82-4b78-970b-2ef3622d43be 2024-09-17 22:46:53,762 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/bbbe6975-c8a8-4128-9d96-acfd93a1a311 2024-09-17 22:46:53,776 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61090045:ctest-vn-27127734', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61090045', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9679986207347132517', 'uuid-lslong': '9504326395983029218'}, 'enable': 'true', 'created': '2024-09-17T22:46:51', 'last-modified': '2024-09-17T22:46:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.549634'} 2024-09-17 22:46:53,783 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-17 22:46:53,783 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27127734 passed 2024-09-17 22:46:53,783 - DEBUG - ====Verifying policy data for ctest-vn-27127734 in API_Server ====== 2024-09-17 22:46:53,783 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-09-17 22:46:53,790 - DEBUG - Requesting: http://10.0.0.33:8082/domain/ebedd754-b6c3-4f84-8d1c-6c8da416e57e 2024-09-17 22:46:53,805 - DEBUG - Requesting: http://10.0.0.33:8082/project/8ddc3d22-8a37-41bf-b746-6fd815e9e5c9 2024-09-17 22:46:53,886 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8656382b-379b-4865-83e6-268045efe3e2 2024-09-17 22:46:53,900 - DEBUG - ==>Verifying data for policy with id: 024cea9f-36e9-42aa-9b33-a1bac17b1ffa, fqn: ['default-domain', 'ctest-TestBasicPolicy-61090045', 'ctest-policy-allow-all-40086560'] 2024-09-17 22:46:53,900 - INFO - VN ctest-vn-27127734 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-17 22:46:53,901 - DEBUG - Verifying the vn in opserver 2024-09-17 22:46:53,901 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61090045:ctest-vn-27127734 virtual network link through opserver 10.0.0.33 2024-09-17 22:46:53,901 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2024-09-17 22:46:53,913 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61090045:ctest-vn-27127734', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61090045:ctest-vn-27127734?flat'} 2024-09-17 22:46:53,913 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61090045:ctest-vn-27127734 is found in opserver 2024-09-17 22:46:53,924 - DEBUG - Do not have enough data to verify VN in agent 2024-09-17 22:46:53,929 - DEBUG - VRF ids for VN ctest-vn-27127734: {} 2024-09-17 22:46:53,985 - DEBUG - Services list from nova: [, , ] 2024-09-17 22:46:55,033 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1975-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1975-1) 2024-09-17 22:46:56,482 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1975-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1975-1) 2024-09-17 22:46:56,482 - INFO - Waiting for VM ctest-TestBasicPolicy-61090045-75096408 to be up.. 2024-09-17 22:46:56,702 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-17 22:47:01,795 - DEBUG - VM is in ACTIVE state now 2024-09-17 22:47:01,796 - INFO - VM name : ctest-TestBasicPolicy-61090045-75096408 2024-09-17 22:47:01,884 - DEBUG - VM ctest-TestBasicPolicy-61090045-75096408 ID is 8b97a9a0-43df-4771-b13c-1ad36f1f9a8e 2024-09-17 22:47:01,912 - DEBUG - VM ctest-TestBasicPolicy-61090045-75096408 launched on Node cn-jenkins-deploy-platform-ansible-os-1975-1 2024-09-17 22:47:02,010 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/8b97a9a0-43df-4771-b13c-1ad36f1f9a8e 2024-09-17 22:47:02,024 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/e8210cea-c46d-49c8-ae7d-3ba63205dc0f 2024-09-17 22:47:05,318 - 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 1033ms') 2024-09-17 22:47:05,318 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-61090045-75096408 failed! 2024-09-17 22:47:05,379 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-61090045:ctest-vn-83050709 is 99.71.30.193 and allocation pool is NOT set 2024-09-17 22:47:07,439 - 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.59 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.421 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.421/1.506/2.592/1.085 ms') 2024-09-17 22:47:07,439 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-61090045-75096408 passed 2024-09-17 22:47:07,603 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 22:47:07,603 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-61090045-75096408, IP 99.71.30.195, Port 22 2024-09-17 22:47:07,759 - DEBUG - VM ctest-TestBasicPolicy-61090045-75096408 is ready for SSH connections 2024-09-17 22:47:07,759 - INFO - Waiting for VM ctest-TestBasicPolicy-61090045-23529401 to be up.. 2024-09-17 22:47:07,845 - DEBUG - VM is in ACTIVE state now 2024-09-17 22:47:07,845 - INFO - VM name : ctest-TestBasicPolicy-61090045-23529401 2024-09-17 22:47:07,930 - DEBUG - VM ctest-TestBasicPolicy-61090045-23529401 ID is cf20fabb-e3bd-4ac9-94bb-502492eb7a2a 2024-09-17 22:47:07,930 - DEBUG - VM ctest-TestBasicPolicy-61090045-23529401 launched on Node cn-jenkins-deploy-platform-ansible-os-1975-1 2024-09-17 22:47:08,012 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/cf20fabb-e3bd-4ac9-94bb-502492eb7a2a 2024-09-17 22:47:08,022 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/a4d524b1-b690-4ae0-8db3-2f31a3c4e64b 2024-09-17 22:47:09,286 - 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.22 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.418 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.418/1.820/3.222/1.402 ms') 2024-09-17 22:47:09,286 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-61090045-23529401 passed 2024-09-17 22:47:09,443 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 22:47:09,443 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-61090045-23529401, IP 15.208.22.67, Port 22 2024-09-17 22:47:09,599 - DEBUG - VM ctest-TestBasicPolicy-61090045-23529401 is ready for SSH connections 2024-09-17 22:47:09,599 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 22:47:09,599 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 15.208.22.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2024-09-17 22:47:09,599 - DEBUG - ping -s 56 -c 3 -W 1 15.208.22.67 2024-09-17 22:47:13,584 - DEBUG - PING 15.208.22.67 (15.208.22.67): 56 data bytes 64 bytes from 15.208.22.67: seq=0 ttl=63 time=3.227 ms 64 bytes from 15.208.22.67: seq=1 ttl=63 time=0.779 ms 64 bytes from 15.208.22.67: seq=2 ttl=63 time=0.817 ms --- 15.208.22.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.779/1.607/3.227 ms 2024-09-17 22:47:13,584 - INFO - Ping to IP 15.208.22.67 from VM ctest-TestBasicPolicy-61090045-75096408 passed 2024-09-17 22:47:13,783 - DEBUG - Policy Update Response {"network-policy": {"uuid": "024cea9f-36e9-42aa-9b33-a1bac17b1ffa", "href": "http://10.0.0.33:8082/network-policy/024cea9f-36e9-42aa-9b33-a1bac17b1ffa"}} 2024-09-17 22:47:13,783 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 22:47:13,783 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 15.208.22.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2024-09-17 22:47:13,783 - DEBUG - ping -s 56 -c 3 -W 1 15.208.22.67 2024-09-17 22:47:17,031 - DEBUG - PING 15.208.22.67 (15.208.22.67): 56 data bytes 64 bytes from 15.208.22.67: seq=0 ttl=63 time=1.726 ms --- 15.208.22.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.726/1.726/1.726 ms 2024-09-17 22:47:17,031 - WARNING - Ping to IP 15.208.22.67 from VM ctest-TestBasicPolicy-61090045-75096408 failed 2024-09-17 22:47:17,031 - INFO - Deleting VM ctest-TestBasicPolicy-61090045-23529401 2024-09-17 22:47:17,099 - INFO - Deleting VM ctest-TestBasicPolicy-61090045-75096408 2024-09-17 22:47:17,553 - INFO - Deleted policy ctest-policy-allow-all-40086560 2024-09-17 22:47:17,553 - INFO - Deleting VN ctest-vn-27127734 2024-09-17 22:47:17,610 - DEBUG - VN 8656382b-379b-4865-83e6-268045efe3e2 still in use: Unable to complete operation on network 8656382b-379b-4865-83e6-268045efe3e2. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e0dbb858-55d0-4375-b8e5-b38bcb79fb53'] 2024-09-17 22:47:17,610 - WARNING - Deleting VN ctest-vn-27127734 failed..Will retry 2024-09-17 22:47:19,752 - DEBUG - Response for deleting network () 2024-09-17 22:47:19,752 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/79bcfa3c-2a82-4b78-970b-2ef3622d43be 2024-09-17 22:47:19,772 - DEBUG - Response Code: 404 2024-09-17 22:47:19,772 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-09-17 22:47:19,779 - DEBUG - Requesting: http://10.0.0.33:8082/domain/ebedd754-b6c3-4f84-8d1c-6c8da416e57e 2024-09-17 22:47:19,802 - DEBUG - Requesting: http://10.0.0.33:8082/project/8ddc3d22-8a37-41bf-b746-6fd815e9e5c9 2024-09-17 22:47:19,895 - INFO - Validated that VN ctest-vn-27127734 is not found in API Server 2024-09-17 22:47:19,907 - DEBUG - VN ctest-vn-27127734 is not present in Agent 10.0.0.33 2024-09-17 22:47:19,907 - INFO - Validated that VN ctest-vn-27127734 is not in any agent 2024-09-17 22:47:19,926 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-27127734 info 2024-09-17 22:47:19,926 - INFO - Deleting VN ctest-vn-83050709 2024-09-17 22:47:20,038 - DEBUG - Response for deleting network () 2024-09-17 22:47:20,038 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5cdc0f72-3dd4-488e-a712-c797e51799b5 2024-09-17 22:47:20,044 - DEBUG - Response Code: 404 2024-09-17 22:47:20,044 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-09-17 22:47:20,050 - DEBUG - Requesting: http://10.0.0.33:8082/domain/ebedd754-b6c3-4f84-8d1c-6c8da416e57e 2024-09-17 22:47:20,113 - DEBUG - Requesting: http://10.0.0.33:8082/project/8ddc3d22-8a37-41bf-b746-6fd815e9e5c9 2024-09-17 22:47:20,197 - INFO - Validated that VN ctest-vn-83050709 is not found in API Server 2024-09-17 22:47:20,209 - DEBUG - VN ctest-vn-83050709 is not present in Agent 10.0.0.33 2024-09-17 22:47:20,209 - INFO - Validated that VN ctest-vn-83050709 is not in any agent 2024-09-17 22:47:20,229 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-83050709 info 2024-09-17 22:47:20,497 - DEBUG - No XMPP flaps were noticed during the test 2024-09-17 22:47:20,497 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31] 2024-09-17 22:47:20,497 - INFO - -------------------------------------------------------------------------------- 2024-09-17 22:47:21,221 - INFO - Deleted project: ctest-TestBasicPolicy-61090045, ID : 8ddc3d22-8a37-41bf-b746-6fd815e9e5c9