2024-10-28 11:55:25,744 - INFO - Domain Default found not creating 2024-10-28 11:55:25,964 - INFO - Project ctest-TestBasicPolicy-62656559 not found, creating it 2024-10-28 11:55:26,453 - INFO - Created Project:ctest-TestBasicPolicy-62656559, ID : cd58340a-11b4-4e85-b824-f4eaf235f052 2024-10-28 11:55:27,983 - INFO - ================================================================================ 2024-10-28 11:55:27,983 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-28 11:55:27,983 - 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-10-28 11:55:28,240 - DEBUG - Nothing to compare xmpp stats {'10.0.0.61': {'10.20.0.20': '0'}} with 2024-10-28 11:55:28,240 - INFO - Initial checks done. Running the testcase now 2024-10-28 11:55:28,240 - INFO - 2024-10-28 11:55:28,793 - DEBUG - Response for create_network : {'network': {'id': '6aebc2ac-dbd5-4db9-86e2-276521c765f7', 'name': 'ctest-vn-74454496', 'tenant_id': 'cd58340a11b44e85b824f4eaf235f052', 'project_id': 'cd58340a11b44e85b824f4eaf235f052', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62656559', 'ctest-vn-74454496'], 'port_security_enabled': True, 'description': ''}} 2024-10-28 11:55:28,994 - DEBUG - Response for create_subnet : {'subnet': {'id': '7889713b-37f0-4b3c-809b-9c2a10f6f6eb', 'name': '', 'tenant_id': 'cd58340a11b44e85b824f4eaf235f052', 'network_id': '6aebc2ac-dbd5-4db9-86e2-276521c765f7', 'ip_version': 4, 'cidr': '40.254.138.192/26', 'allocation_pools': [{'start': '40.254.138.194', 'end': '40.254.138.254'}], 'gateway_ip': '40.254.138.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.254.138.194', 'tags': [], 'project_id': 'cd58340a11b44e85b824f4eaf235f052'}} 2024-10-28 11:55:29,013 - INFO - Created VN ctest-vn-74454496 2024-10-28 11:55:29,070 - DEBUG - VN ctest-vn-74454496 UUID is 6aebc2ac-dbd5-4db9-86e2-276521c765f7 2024-10-28 11:55:29,392 - DEBUG - Response for create_network : {'network': {'id': '025c4abd-cb36-4d2d-aeb2-22d5f55a2580', 'name': 'ctest-vn-32461991', 'tenant_id': 'cd58340a11b44e85b824f4eaf235f052', 'project_id': 'cd58340a11b44e85b824f4eaf235f052', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62656559', 'ctest-vn-32461991'], 'port_security_enabled': True, 'description': ''}} 2024-10-28 11:55:29,593 - DEBUG - Response for create_subnet : {'subnet': {'id': '5653c461-72ee-4203-a5f9-69f9bf310cf0', 'name': '', 'tenant_id': 'cd58340a11b44e85b824f4eaf235f052', 'network_id': '025c4abd-cb36-4d2d-aeb2-22d5f55a2580', 'ip_version': 4, 'cidr': '173.40.25.0/26', 'allocation_pools': [{'start': '173.40.25.2', 'end': '173.40.25.62'}], 'gateway_ip': '173.40.25.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.40.25.2', 'tags': [], 'project_id': 'cd58340a11b44e85b824f4eaf235f052'}} 2024-10-28 11:55:29,616 - INFO - Created VN ctest-vn-32461991 2024-10-28 11:55:29,678 - DEBUG - VN ctest-vn-32461991 UUID is 025c4abd-cb36-4d2d-aeb2-22d5f55a2580 2024-10-28 11:55:29,807 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-62656559:ctest-vn-74454496, 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-62656559:ctest-vn-32461991, 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-10-28 11:55:30,134 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6aebc2ac-dbd5-4db9-86e2-276521c765f7', 'name': 'ctest-vn-74454496', 'tenant_id': 'cd58340a11b44e85b824f4eaf235f052', 'project_id': 'cd58340a11b44e85b824f4eaf235f052', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7889713b-37f0-4b3c-809b-9c2a10f6f6eb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62656559', 'ctest-vn-74454496'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62656559', 'ctest-policy-allow-all-34974600']], 'subnet_ipam': [{'subnet_cidr': '40.254.138.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-28 11:55:30,383 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '025c4abd-cb36-4d2d-aeb2-22d5f55a2580', 'name': 'ctest-vn-32461991', 'tenant_id': 'cd58340a11b44e85b824f4eaf235f052', 'project_id': 'cd58340a11b44e85b824f4eaf235f052', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5653c461-72ee-4203-a5f9-69f9bf310cf0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62656559', 'ctest-vn-32461991'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62656559', 'ctest-policy-allow-all-34974600']], 'subnet_ipam': [{'subnet_cidr': '173.40.25.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-28 11:55:30,542 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2024-10-28 11:55:30,844 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2024-10-28 11:55:30,880 - DEBUG - Requesting: http://10.0.0.61:8082/domain/bab1075b-5545-4969-a837-9bfe63a0f889 2024-10-28 11:55:30,895 - DEBUG - Requesting: http://10.0.0.61:8082/project/cd58340a-11b4-4e85-b824-f4eaf235f052 2024-10-28 11:55:30,980 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/6aebc2ac-dbd5-4db9-86e2-276521c765f7 2024-10-28 11:55:30,995 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/6aebc2ac-dbd5-4db9-86e2-276521c765f7 2024-10-28 11:55:31,011 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/441b671e-652f-4f08-80f3-24f0d409afd2 2024-10-28 11:55:31,021 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/441b671e-652f-4f08-80f3-24f0d409afd2 2024-10-28 11:55:31,031 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/8fc2e064-003c-4bc0-8b38-b664fb67c6f6 2024-10-28 11:55:31,038 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-28 11:55:31,038 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/6aebc2ac-dbd5-4db9-86e2-276521c765f7 2024-10-28 11:55:31,052 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/441b671e-652f-4f08-80f3-24f0d409afd2 2024-10-28 11:55:31,072 - INFO - Verified VN network id 8 for VN 6aebc2ac-dbd5-4db9-86e2-276521c765f7 2024-10-28 11:55:31,072 - INFO - Verifications in API Server for VN ctest-vn-74454496 passed 2024-10-28 11:55:31,073 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/6aebc2ac-dbd5-4db9-86e2-276521c765f7 2024-10-28 11:55:31,087 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/441b671e-652f-4f08-80f3-24f0d409afd2 2024-10-28 11:55:31,096 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/441b671e-652f-4f08-80f3-24f0d409afd2 2024-10-28 11:55:31,105 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/8fc2e064-003c-4bc0-8b38-b664fb67c6f6 2024-10-28 11:55:31,119 - DEBUG - Control-node 10.0.0.61 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62656559:ctest-vn-74454496', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62656559', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7704465635225718201', 'uuid-lslong': '9719374261130847735'}, 'enable': 'true', 'created': '2024-10-28T11:55:28', 'last-modified': '2024-10-28T11:55:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.013844'} 2024-10-28 11:55:31,126 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-28 11:55:31,126 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74454496 passed 2024-10-28 11:55:31,126 - DEBUG - ====Verifying policy data for ctest-vn-74454496 in API_Server ====== 2024-10-28 11:55:31,126 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2024-10-28 11:55:31,132 - DEBUG - Requesting: http://10.0.0.61:8082/domain/bab1075b-5545-4969-a837-9bfe63a0f889 2024-10-28 11:55:31,146 - DEBUG - Requesting: http://10.0.0.61:8082/project/cd58340a-11b4-4e85-b824-f4eaf235f052 2024-10-28 11:55:31,227 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/6aebc2ac-dbd5-4db9-86e2-276521c765f7 2024-10-28 11:55:31,241 - DEBUG - ==>Verifying data for policy with id: efd19e23-6146-4cc2-8e36-fc181622b02b, fqn: ['default-domain', 'ctest-TestBasicPolicy-62656559', 'ctest-policy-allow-all-34974600'] 2024-10-28 11:55:31,241 - INFO - VN ctest-vn-74454496 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-28 11:55:31,241 - DEBUG - Verifying the vn in opserver 2024-10-28 11:55:31,241 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62656559:ctest-vn-74454496 virtual network link through opserver 10.0.0.61 2024-10-28 11:55:31,241 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2024-10-28 11:55:31,537 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2024-10-28 11:55:31,608 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62656559:ctest-vn-74454496', 'href': 'http://10.0.0.61:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62656559:ctest-vn-74454496?flat'} 2024-10-28 11:55:31,609 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62656559:ctest-vn-74454496 is found in opserver 2024-10-28 11:55:31,623 - DEBUG - Do not have enough data to verify VN in agent 2024-10-28 11:55:31,629 - DEBUG - VRF ids for VN ctest-vn-74454496: {} 2024-10-28 11:55:31,629 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2024-10-28 11:55:31,637 - DEBUG - Requesting: http://10.0.0.61:8082/domain/bab1075b-5545-4969-a837-9bfe63a0f889 2024-10-28 11:55:31,654 - DEBUG - Requesting: http://10.0.0.61:8082/project/cd58340a-11b4-4e85-b824-f4eaf235f052 2024-10-28 11:55:31,742 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/025c4abd-cb36-4d2d-aeb2-22d5f55a2580 2024-10-28 11:55:31,760 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/025c4abd-cb36-4d2d-aeb2-22d5f55a2580 2024-10-28 11:55:31,777 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/9c8978a9-b158-44c5-b0b5-85bf555bc060 2024-10-28 11:55:31,789 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/9c8978a9-b158-44c5-b0b5-85bf555bc060 2024-10-28 11:55:31,801 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/db5f122d-8647-4d99-b785-0a1b6cd8cea9 2024-10-28 11:55:31,813 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-28 11:55:31,813 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/025c4abd-cb36-4d2d-aeb2-22d5f55a2580 2024-10-28 11:55:31,831 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/9c8978a9-b158-44c5-b0b5-85bf555bc060 2024-10-28 11:55:31,857 - INFO - Verified VN network id 9 for VN 025c4abd-cb36-4d2d-aeb2-22d5f55a2580 2024-10-28 11:55:31,858 - INFO - Verifications in API Server for VN ctest-vn-32461991 passed 2024-10-28 11:55:31,858 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/025c4abd-cb36-4d2d-aeb2-22d5f55a2580 2024-10-28 11:55:31,881 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/9c8978a9-b158-44c5-b0b5-85bf555bc060 2024-10-28 11:55:31,892 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/9c8978a9-b158-44c5-b0b5-85bf555bc060 2024-10-28 11:55:31,903 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/db5f122d-8647-4d99-b785-0a1b6cd8cea9 2024-10-28 11:55:31,920 - DEBUG - Control-node 10.0.0.61 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62656559:ctest-vn-32461991', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62656559', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '170093064951844141', 'uuid-lslong': '12588162210793661824'}, 'enable': 'true', 'created': '2024-10-28T11:55:29', 'last-modified': '2024-10-28T11:55:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.559968'} 2024-10-28 11:55:31,928 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-28 11:55:31,928 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32461991 passed 2024-10-28 11:55:31,928 - DEBUG - ====Verifying policy data for ctest-vn-32461991 in API_Server ====== 2024-10-28 11:55:31,928 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2024-10-28 11:55:31,937 - DEBUG - Requesting: http://10.0.0.61:8082/domain/bab1075b-5545-4969-a837-9bfe63a0f889 2024-10-28 11:55:31,951 - DEBUG - Requesting: http://10.0.0.61:8082/project/cd58340a-11b4-4e85-b824-f4eaf235f052 2024-10-28 11:55:32,037 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/025c4abd-cb36-4d2d-aeb2-22d5f55a2580 2024-10-28 11:55:32,051 - DEBUG - ==>Verifying data for policy with id: efd19e23-6146-4cc2-8e36-fc181622b02b, fqn: ['default-domain', 'ctest-TestBasicPolicy-62656559', 'ctest-policy-allow-all-34974600'] 2024-10-28 11:55:32,051 - INFO - VN ctest-vn-32461991 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-28 11:55:32,052 - DEBUG - Verifying the vn in opserver 2024-10-28 11:55:32,052 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62656559:ctest-vn-32461991 virtual network link through opserver 10.0.0.61 2024-10-28 11:55:32,052 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2024-10-28 11:55:32,063 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62656559:ctest-vn-32461991', 'href': 'http://10.0.0.61:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62656559:ctest-vn-32461991?flat'} 2024-10-28 11:55:32,063 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62656559:ctest-vn-32461991 is found in opserver 2024-10-28 11:55:32,074 - DEBUG - Do not have enough data to verify VN in agent 2024-10-28 11:55:32,080 - DEBUG - VRF ids for VN ctest-vn-32461991: {} 2024-10-28 11:55:32,137 - DEBUG - Services list from nova: [, , ] 2024-10-28 11:55:33,187 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2158-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2158-1) 2024-10-28 11:55:34,490 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2158-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2158-1) 2024-10-28 11:55:34,490 - INFO - Waiting for VM ctest-TestBasicPolicy-62656559-15701357 to be up.. 2024-10-28 11:55:34,586 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-28 11:55:39,688 - DEBUG - VM is in ACTIVE state now 2024-10-28 11:55:39,688 - INFO - VM name : ctest-TestBasicPolicy-62656559-15701357 2024-10-28 11:55:39,777 - DEBUG - VM ctest-TestBasicPolicy-62656559-15701357 ID is a88b3b70-0626-4c9c-a5e0-d7690e75397f 2024-10-28 11:55:39,797 - DEBUG - VM ctest-TestBasicPolicy-62656559-15701357 launched on Node cn-jenkins-deploy-platform-ansible-os-2158-1 2024-10-28 11:55:39,895 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine/a88b3b70-0626-4c9c-a5e0-d7690e75397f 2024-10-28 11:55:39,907 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine-interface/4d2f5a00-e466-4670-a921-61aea8472181 2024-10-28 11:55:43,192 - 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 1023ms') 2024-10-28 11:55:43,193 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-62656559-15701357 failed! 2024-10-28 11:55:43,258 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-62656559:ctest-vn-74454496 is 40.254.138.193 and allocation pool is NOT set 2024-10-28 11:55:45,318 - 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=5.81 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.420 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.420/3.115/5.810/2.695 ms') 2024-10-28 11:55:45,319 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-62656559-15701357 passed 2024-10-28 11:55:45,490 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 11:55:45,490 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-62656559-15701357, IP 40.254.138.195, Port 22 2024-10-28 11:55:45,645 - DEBUG - VM ctest-TestBasicPolicy-62656559-15701357 is ready for SSH connections 2024-10-28 11:55:45,645 - INFO - Waiting for VM ctest-TestBasicPolicy-62656559-78605710 to be up.. 2024-10-28 11:55:45,747 - DEBUG - VM is in ACTIVE state now 2024-10-28 11:55:45,747 - INFO - VM name : ctest-TestBasicPolicy-62656559-78605710 2024-10-28 11:55:45,827 - DEBUG - VM ctest-TestBasicPolicy-62656559-78605710 ID is 4024826a-6100-4088-ad5a-2a3e3191c606 2024-10-28 11:55:45,827 - DEBUG - VM ctest-TestBasicPolicy-62656559-78605710 launched on Node cn-jenkins-deploy-platform-ansible-os-2158-1 2024-10-28 11:55:45,910 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine/4024826a-6100-4088-ad5a-2a3e3191c606 2024-10-28 11:55:45,922 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine-interface/38e2ae4e-9ff4-4523-a32b-5aeeff27d435 2024-10-28 11:55:47,181 - 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.58 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.619 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.619/2.101/3.583/1.482 ms') 2024-10-28 11:55:47,181 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-62656559-78605710 passed 2024-10-28 11:55:47,338 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 11:55:47,338 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-62656559-78605710, IP 173.40.25.3, Port 22 2024-10-28 11:55:47,490 - DEBUG - VM ctest-TestBasicPolicy-62656559-78605710 is ready for SSH connections 2024-10-28 11:55:47,490 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 11:55:47,490 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 173.40.25.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.61, gateway password: c0ntrail123 2024-10-28 11:55:47,490 - DEBUG - ping -s 56 -c 3 -W 1 173.40.25.3 2024-10-28 11:55:51,188 - DEBUG - PING 173.40.25.3 (173.40.25.3): 56 data bytes 64 bytes from 173.40.25.3: seq=0 ttl=63 time=3.469 ms 64 bytes from 173.40.25.3: seq=1 ttl=63 time=0.823 ms 64 bytes from 173.40.25.3: seq=2 ttl=63 time=0.791 ms --- 173.40.25.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.791/1.694/3.469 ms 2024-10-28 11:55:51,189 - INFO - Ping to IP 173.40.25.3 from VM ctest-TestBasicPolicy-62656559-15701357 passed 2024-10-28 11:55:51,382 - DEBUG - Policy Update Response {"network-policy": {"uuid": "efd19e23-6146-4cc2-8e36-fc181622b02b", "href": "http://10.0.0.61:8082/network-policy/efd19e23-6146-4cc2-8e36-fc181622b02b"}} 2024-10-28 11:55:51,382 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 11:55:51,382 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 173.40.25.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.61, gateway password: c0ntrail123 2024-10-28 11:55:51,382 - DEBUG - ping -s 56 -c 3 -W 1 173.40.25.3 2024-10-28 11:55:54,586 - DEBUG - PING 173.40.25.3 (173.40.25.3): 56 data bytes 64 bytes from 173.40.25.3: seq=0 ttl=63 time=1.326 ms --- 173.40.25.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.326/1.326/1.326 ms 2024-10-28 11:55:54,586 - WARNING - Ping to IP 173.40.25.3 from VM ctest-TestBasicPolicy-62656559-15701357 failed 2024-10-28 11:55:54,587 - INFO - Deleting VM ctest-TestBasicPolicy-62656559-78605710 2024-10-28 11:55:54,650 - INFO - Deleting VM ctest-TestBasicPolicy-62656559-15701357 2024-10-28 11:55:55,089 - INFO - Deleted policy ctest-policy-allow-all-34974600 2024-10-28 11:55:55,089 - INFO - Deleting VN ctest-vn-32461991 2024-10-28 11:55:55,139 - DEBUG - VN 025c4abd-cb36-4d2d-aeb2-22d5f55a2580 still in use: Unable to complete operation on network 025c4abd-cb36-4d2d-aeb2-22d5f55a2580. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-10d769a9-ed42-44b1-a1c3-decd4a070941'] 2024-10-28 11:55:55,140 - WARNING - Deleting VN ctest-vn-32461991 failed..Will retry 2024-10-28 11:55:57,260 - DEBUG - Response for deleting network () 2024-10-28 11:55:57,260 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/9c8978a9-b158-44c5-b0b5-85bf555bc060 2024-10-28 11:55:57,267 - DEBUG - Response Code: 404 2024-10-28 11:55:57,268 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2024-10-28 11:55:57,273 - DEBUG - Requesting: http://10.0.0.61:8082/domain/bab1075b-5545-4969-a837-9bfe63a0f889 2024-10-28 11:55:57,328 - DEBUG - Requesting: http://10.0.0.61:8082/project/cd58340a-11b4-4e85-b824-f4eaf235f052 2024-10-28 11:55:57,416 - INFO - Validated that VN ctest-vn-32461991 is not found in API Server 2024-10-28 11:55:57,429 - DEBUG - VN ctest-vn-32461991 is not present in Agent 10.0.0.61 2024-10-28 11:55:57,429 - INFO - Validated that VN ctest-vn-32461991 is not in any agent 2024-10-28 11:55:57,447 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-32461991 info 2024-10-28 11:55:57,447 - INFO - Deleting VN ctest-vn-74454496 2024-10-28 11:55:57,572 - DEBUG - Response for deleting network () 2024-10-28 11:55:57,572 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/441b671e-652f-4f08-80f3-24f0d409afd2 2024-10-28 11:55:57,578 - DEBUG - Response Code: 404 2024-10-28 11:55:57,578 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2024-10-28 11:55:57,588 - DEBUG - Requesting: http://10.0.0.61:8082/domain/bab1075b-5545-4969-a837-9bfe63a0f889 2024-10-28 11:55:57,645 - DEBUG - Requesting: http://10.0.0.61:8082/project/cd58340a-11b4-4e85-b824-f4eaf235f052 2024-10-28 11:55:57,726 - INFO - Validated that VN ctest-vn-74454496 is not found in API Server 2024-10-28 11:55:57,737 - DEBUG - VN ctest-vn-74454496 is not present in Agent 10.0.0.61 2024-10-28 11:55:57,737 - INFO - Validated that VN ctest-vn-74454496 is not in any agent 2024-10-28 11:55:57,754 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-74454496 info 2024-10-28 11:55:58,008 - DEBUG - No XMPP flaps were noticed during the test 2024-10-28 11:55:58,008 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31] 2024-10-28 11:55:58,009 - INFO - -------------------------------------------------------------------------------- 2024-10-28 11:55:58,741 - INFO - Deleted project: ctest-TestBasicPolicy-62656559, ID : cd58340a-11b4-4e85-b824-f4eaf235f052