2024-08-24 16:04:58,055 - INFO - Domain Default found not creating 2024-08-24 16:04:58,214 - INFO - Project ctest-TestBasicPolicy-02920311 not found, creating it 2024-08-24 16:04:58,681 - INFO - Created Project:ctest-TestBasicPolicy-02920311, ID : 5bb4ddde-d0df-4969-bd17-7460407e088f 2024-08-24 16:05:00,163 - INFO - ================================================================================ 2024-08-24 16:05:00,163 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-24 16:05:00,163 - 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-08-24 16:05:00,418 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.5': '0'}} with 2024-08-24 16:05:00,418 - INFO - Initial checks done. Running the testcase now 2024-08-24 16:05:00,418 - INFO - 2024-08-24 16:05:00,983 - DEBUG - Response for create_network : {'network': {'id': 'f42d2180-b355-487e-86d0-243377def9cf', 'name': 'ctest-vn-30835085', 'tenant_id': '5bb4ddded0df4969bd177460407e088f', 'project_id': '5bb4ddded0df4969bd177460407e088f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02920311', 'ctest-vn-30835085'], 'port_security_enabled': True, 'description': ''}} 2024-08-24 16:05:01,157 - DEBUG - Response for create_subnet : {'subnet': {'id': '1c37e04d-6285-4d94-b097-f90fa0cc8742', 'name': '', 'tenant_id': '5bb4ddded0df4969bd177460407e088f', 'network_id': 'f42d2180-b355-487e-86d0-243377def9cf', 'ip_version': 4, 'cidr': '75.133.243.0/26', 'allocation_pools': [{'start': '75.133.243.2', 'end': '75.133.243.62'}], 'gateway_ip': '75.133.243.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '75.133.243.2', 'tags': [], 'project_id': '5bb4ddded0df4969bd177460407e088f'}} 2024-08-24 16:05:01,177 - INFO - Created VN ctest-vn-30835085 2024-08-24 16:05:01,229 - DEBUG - VN ctest-vn-30835085 UUID is f42d2180-b355-487e-86d0-243377def9cf 2024-08-24 16:05:01,548 - DEBUG - Response for create_network : {'network': {'id': '63b985f3-5ce2-42d3-a00d-961c0a46ed51', 'name': 'ctest-vn-72870984', 'tenant_id': '5bb4ddded0df4969bd177460407e088f', 'project_id': '5bb4ddded0df4969bd177460407e088f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02920311', 'ctest-vn-72870984'], 'port_security_enabled': True, 'description': ''}} 2024-08-24 16:05:01,760 - DEBUG - Response for create_subnet : {'subnet': {'id': '16f99d38-4ce9-450b-bc63-933cc12bcc62', 'name': '', 'tenant_id': '5bb4ddded0df4969bd177460407e088f', 'network_id': '63b985f3-5ce2-42d3-a00d-961c0a46ed51', 'ip_version': 4, 'cidr': '118.197.85.128/26', 'allocation_pools': [{'start': '118.197.85.130', 'end': '118.197.85.190'}], 'gateway_ip': '118.197.85.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '118.197.85.130', 'tags': [], 'project_id': '5bb4ddded0df4969bd177460407e088f'}} 2024-08-24 16:05:01,782 - INFO - Created VN ctest-vn-72870984 2024-08-24 16:05:01,833 - DEBUG - VN ctest-vn-72870984 UUID is 63b985f3-5ce2-42d3-a00d-961c0a46ed51 2024-08-24 16:05:01,947 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-02920311:ctest-vn-30835085, 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-02920311:ctest-vn-72870984, 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-08-24 16:05:02,256 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f42d2180-b355-487e-86d0-243377def9cf', 'name': 'ctest-vn-30835085', 'tenant_id': '5bb4ddded0df4969bd177460407e088f', 'project_id': '5bb4ddded0df4969bd177460407e088f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1c37e04d-6285-4d94-b097-f90fa0cc8742'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02920311', 'ctest-vn-30835085'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02920311', 'ctest-policy-allow-all-13065362']], 'subnet_ipam': [{'subnet_cidr': '75.133.243.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-24 16:05:02,499 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '63b985f3-5ce2-42d3-a00d-961c0a46ed51', 'name': 'ctest-vn-72870984', 'tenant_id': '5bb4ddded0df4969bd177460407e088f', 'project_id': '5bb4ddded0df4969bd177460407e088f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['16f99d38-4ce9-450b-bc63-933cc12bcc62'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02920311', 'ctest-vn-72870984'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02920311', 'ctest-policy-allow-all-13065362']], 'subnet_ipam': [{'subnet_cidr': '118.197.85.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-24 16:05:02,653 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-08-24 16:05:02,963 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-08-24 16:05:02,994 - DEBUG - Requesting: http://10.0.0.36:8082/domain/e3c78fce-7b43-4ca2-af65-256fa7b87b32 2024-08-24 16:05:03,008 - DEBUG - Requesting: http://10.0.0.36:8082/project/5bb4ddde-d0df-4969-bd17-7460407e088f 2024-08-24 16:05:03,078 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/f42d2180-b355-487e-86d0-243377def9cf 2024-08-24 16:05:03,088 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/f42d2180-b355-487e-86d0-243377def9cf 2024-08-24 16:05:03,096 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/4a27c3a6-54fc-4ed1-b2b3-7281375984d2 2024-08-24 16:05:03,103 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/4a27c3a6-54fc-4ed1-b2b3-7281375984d2 2024-08-24 16:05:03,110 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/f35b7a7a-56b8-420c-9771-6ed401d8e6d3 2024-08-24 16:05:03,116 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-24 16:05:03,116 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/f42d2180-b355-487e-86d0-243377def9cf 2024-08-24 16:05:03,124 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/4a27c3a6-54fc-4ed1-b2b3-7281375984d2 2024-08-24 16:05:03,138 - INFO - Verified VN network id 9 for VN f42d2180-b355-487e-86d0-243377def9cf 2024-08-24 16:05:03,138 - INFO - Verifications in API Server for VN ctest-vn-30835085 passed 2024-08-24 16:05:03,138 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/f42d2180-b355-487e-86d0-243377def9cf 2024-08-24 16:05:03,147 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/4a27c3a6-54fc-4ed1-b2b3-7281375984d2 2024-08-24 16:05:03,154 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/4a27c3a6-54fc-4ed1-b2b3-7281375984d2 2024-08-24 16:05:03,160 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/f35b7a7a-56b8-420c-9771-6ed401d8e6d3 2024-08-24 16:05:03,173 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02920311:ctest-vn-30835085', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02920311', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17594756155854637182', 'uuid-lslong': '9714304199711193551'}, 'enable': 'true', 'created': '2024-08-24T16:05:00', 'last-modified': '2024-08-24T16:05:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.939529'} 2024-08-24 16:05:03,181 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-24 16:05:03,182 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30835085 passed 2024-08-24 16:05:03,182 - DEBUG - ====Verifying policy data for ctest-vn-30835085 in API_Server ====== 2024-08-24 16:05:03,182 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-08-24 16:05:03,188 - DEBUG - Requesting: http://10.0.0.36:8082/domain/e3c78fce-7b43-4ca2-af65-256fa7b87b32 2024-08-24 16:05:03,201 - DEBUG - Requesting: http://10.0.0.36:8082/project/5bb4ddde-d0df-4969-bd17-7460407e088f 2024-08-24 16:05:03,275 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/f42d2180-b355-487e-86d0-243377def9cf 2024-08-24 16:05:03,283 - DEBUG - ==>Verifying data for policy with id: 826f6106-c7eb-44a6-8fbc-abcc11c20fba, fqn: ['default-domain', 'ctest-TestBasicPolicy-02920311', 'ctest-policy-allow-all-13065362'] 2024-08-24 16:05:03,283 - INFO - VN ctest-vn-30835085 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-24 16:05:03,283 - DEBUG - Verifying the vn in opserver 2024-08-24 16:05:03,283 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02920311:ctest-vn-30835085 virtual network link through opserver 10.0.0.36 2024-08-24 16:05:03,284 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2024-08-24 16:05:03,578 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2024-08-24 16:05:03,641 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02920311:ctest-vn-30835085', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02920311:ctest-vn-30835085?flat'} 2024-08-24 16:05:03,641 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02920311:ctest-vn-30835085 is found in opserver 2024-08-24 16:05:03,654 - DEBUG - Do not have enough data to verify VN in agent 2024-08-24 16:05:03,662 - DEBUG - VRF ids for VN ctest-vn-30835085: {} 2024-08-24 16:05:03,662 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-08-24 16:05:03,673 - DEBUG - Requesting: http://10.0.0.36:8082/domain/e3c78fce-7b43-4ca2-af65-256fa7b87b32 2024-08-24 16:05:03,687 - DEBUG - Requesting: http://10.0.0.36:8082/project/5bb4ddde-d0df-4969-bd17-7460407e088f 2024-08-24 16:05:03,756 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/63b985f3-5ce2-42d3-a00d-961c0a46ed51 2024-08-24 16:05:03,768 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/63b985f3-5ce2-42d3-a00d-961c0a46ed51 2024-08-24 16:05:03,776 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d9c533d2-6fc8-4063-a6f6-aa68a670e81c 2024-08-24 16:05:03,783 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d9c533d2-6fc8-4063-a6f6-aa68a670e81c 2024-08-24 16:05:03,789 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/0366ab0c-2605-4a2f-aba0-d23e5384802f 2024-08-24 16:05:03,796 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-24 16:05:03,796 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/63b985f3-5ce2-42d3-a00d-961c0a46ed51 2024-08-24 16:05:03,803 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d9c533d2-6fc8-4063-a6f6-aa68a670e81c 2024-08-24 16:05:03,815 - INFO - Verified VN network id 10 for VN 63b985f3-5ce2-42d3-a00d-961c0a46ed51 2024-08-24 16:05:03,815 - INFO - Verifications in API Server for VN ctest-vn-72870984 passed 2024-08-24 16:05:03,815 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/63b985f3-5ce2-42d3-a00d-961c0a46ed51 2024-08-24 16:05:03,827 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d9c533d2-6fc8-4063-a6f6-aa68a670e81c 2024-08-24 16:05:03,834 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d9c533d2-6fc8-4063-a6f6-aa68a670e81c 2024-08-24 16:05:03,841 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/0366ab0c-2605-4a2f-aba0-d23e5384802f 2024-08-24 16:05:03,855 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02920311:ctest-vn-72870984', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02920311', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7185921960728216275', 'uuid-lslong': '11533039267941379409'}, 'enable': 'true', 'created': '2024-08-24T16:05:01', 'last-modified': '2024-08-24T16:05:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.379396'} 2024-08-24 16:05:03,862 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-24 16:05:03,863 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72870984 passed 2024-08-24 16:05:03,863 - DEBUG - ====Verifying policy data for ctest-vn-72870984 in API_Server ====== 2024-08-24 16:05:03,863 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-08-24 16:05:03,869 - DEBUG - Requesting: http://10.0.0.36:8082/domain/e3c78fce-7b43-4ca2-af65-256fa7b87b32 2024-08-24 16:05:03,882 - DEBUG - Requesting: http://10.0.0.36:8082/project/5bb4ddde-d0df-4969-bd17-7460407e088f 2024-08-24 16:05:03,952 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/63b985f3-5ce2-42d3-a00d-961c0a46ed51 2024-08-24 16:05:03,960 - DEBUG - ==>Verifying data for policy with id: 826f6106-c7eb-44a6-8fbc-abcc11c20fba, fqn: ['default-domain', 'ctest-TestBasicPolicy-02920311', 'ctest-policy-allow-all-13065362'] 2024-08-24 16:05:03,960 - INFO - VN ctest-vn-72870984 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-24 16:05:03,960 - DEBUG - Verifying the vn in opserver 2024-08-24 16:05:03,960 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02920311:ctest-vn-72870984 virtual network link through opserver 10.0.0.36 2024-08-24 16:05:03,960 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2024-08-24 16:05:03,970 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02920311:ctest-vn-72870984', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02920311:ctest-vn-72870984?flat'} 2024-08-24 16:05:03,970 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02920311:ctest-vn-72870984 is found in opserver 2024-08-24 16:05:03,981 - DEBUG - Do not have enough data to verify VN in agent 2024-08-24 16:05:03,986 - DEBUG - VRF ids for VN ctest-vn-72870984: {} 2024-08-24 16:05:04,048 - DEBUG - Services list from nova: [, , ] 2024-08-24 16:05:05,055 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1756-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1756-1) 2024-08-24 16:05:06,424 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1756-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1756-1) 2024-08-24 16:05:06,424 - INFO - Waiting for VM ctest-TestBasicPolicy-02920311-48416817 to be up.. 2024-08-24 16:05:06,581 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-24 16:05:11,686 - DEBUG - VM is in ACTIVE state now 2024-08-24 16:05:11,686 - INFO - VM name : ctest-TestBasicPolicy-02920311-48416817 2024-08-24 16:05:11,777 - DEBUG - VM ctest-TestBasicPolicy-02920311-48416817 ID is 42405493-f616-48ec-93a9-ff6682090ba6 2024-08-24 16:05:11,798 - DEBUG - VM ctest-TestBasicPolicy-02920311-48416817 launched on Node cn-jenkins-deploy-platform-ansible-os-1756-1 2024-08-24 16:05:11,891 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/42405493-f616-48ec-93a9-ff6682090ba6 2024-08-24 16:05:11,904 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/1cbc37a0-2915-4cd5-8243-a97d338a21b7 2024-08-24 16:05:15,151 - 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 1007ms') 2024-08-24 16:05:15,152 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-02920311-48416817 failed! 2024-08-24 16:05:15,209 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-02920311:ctest-vn-30835085 is 75.133.243.1 and allocation pool is NOT set 2024-08-24 16:05:17,272 - 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=7.44 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/3.931/7.442/3.510 ms') 2024-08-24 16:05:17,272 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-02920311-48416817 passed 2024-08-24 16:05:17,425 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-24 16:05:17,425 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-02920311-48416817, IP 75.133.243.3, Port 22 2024-08-24 16:05:17,591 - DEBUG - VM ctest-TestBasicPolicy-02920311-48416817 is ready for SSH connections 2024-08-24 16:05:17,591 - INFO - Waiting for VM ctest-TestBasicPolicy-02920311-84947703 to be up.. 2024-08-24 16:05:17,683 - DEBUG - VM is in ACTIVE state now 2024-08-24 16:05:17,683 - INFO - VM name : ctest-TestBasicPolicy-02920311-84947703 2024-08-24 16:05:17,772 - DEBUG - VM ctest-TestBasicPolicy-02920311-84947703 ID is cc04f8a8-d76d-408d-81c2-46ad8beea509 2024-08-24 16:05:17,772 - DEBUG - VM ctest-TestBasicPolicy-02920311-84947703 launched on Node cn-jenkins-deploy-platform-ansible-os-1756-1 2024-08-24 16:05:17,856 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/cc04f8a8-d76d-408d-81c2-46ad8beea509 2024-08-24 16:05:17,868 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/0c1ec64f-2b1c-4e3a-a795-f8b300a319fe 2024-08-24 16:05:19,122 - 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.76 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.382 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.382/1.571/2.760/1.189 ms') 2024-08-24 16:05:19,122 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-02920311-84947703 passed 2024-08-24 16:05:19,273 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-24 16:05:19,273 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-02920311-84947703, IP 118.197.85.131, Port 22 2024-08-24 16:05:19,428 - DEBUG - VM ctest-TestBasicPolicy-02920311-84947703 is ready for SSH connections 2024-08-24 16:05:19,429 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-24 16:05:19,429 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 118.197.85.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-08-24 16:05:19,429 - DEBUG - ping -s 56 -c 3 -W 1 118.197.85.131 2024-08-24 16:05:23,138 - DEBUG - PING 118.197.85.131 (118.197.85.131): 56 data bytes 64 bytes from 118.197.85.131: seq=0 ttl=63 time=3.403 ms 64 bytes from 118.197.85.131: seq=1 ttl=63 time=0.872 ms 64 bytes from 118.197.85.131: seq=2 ttl=63 time=0.892 ms --- 118.197.85.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.872/1.722/3.403 ms 2024-08-24 16:05:23,138 - INFO - Ping to IP 118.197.85.131 from VM ctest-TestBasicPolicy-02920311-48416817 passed 2024-08-24 16:05:23,317 - DEBUG - Policy Update Response {"network-policy": {"uuid": "826f6106-c7eb-44a6-8fbc-abcc11c20fba", "href": "http://10.0.0.36:8082/network-policy/826f6106-c7eb-44a6-8fbc-abcc11c20fba"}} 2024-08-24 16:05:23,317 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-24 16:05:23,317 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 118.197.85.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-08-24 16:05:23,317 - DEBUG - ping -s 56 -c 3 -W 1 118.197.85.131 2024-08-24 16:05:26,522 - DEBUG - PING 118.197.85.131 (118.197.85.131): 56 data bytes 64 bytes from 118.197.85.131: seq=0 ttl=63 time=2.095 ms --- 118.197.85.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.095/2.095/2.095 ms 2024-08-24 16:05:26,522 - WARNING - Ping to IP 118.197.85.131 from VM ctest-TestBasicPolicy-02920311-48416817 failed 2024-08-24 16:05:26,522 - INFO - Deleting VM ctest-TestBasicPolicy-02920311-84947703 2024-08-24 16:05:26,594 - INFO - Deleting VM ctest-TestBasicPolicy-02920311-48416817 2024-08-24 16:05:27,002 - INFO - Deleted policy ctest-policy-allow-all-13065362 2024-08-24 16:05:27,002 - INFO - Deleting VN ctest-vn-72870984 2024-08-24 16:05:27,042 - DEBUG - VN 63b985f3-5ce2-42d3-a00d-961c0a46ed51 still in use: Unable to complete operation on network 63b985f3-5ce2-42d3-a00d-961c0a46ed51. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-81762f6d-4877-4d8e-8495-fbf7fdc2f4b8'] 2024-08-24 16:05:27,042 - WARNING - Deleting VN ctest-vn-72870984 failed..Will retry 2024-08-24 16:05:29,154 - DEBUG - Response for deleting network () 2024-08-24 16:05:29,154 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d9c533d2-6fc8-4063-a6f6-aa68a670e81c 2024-08-24 16:05:29,162 - DEBUG - Response Code: 404 2024-08-24 16:05:29,162 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-08-24 16:05:29,168 - DEBUG - Requesting: http://10.0.0.36:8082/domain/e3c78fce-7b43-4ca2-af65-256fa7b87b32 2024-08-24 16:05:29,225 - DEBUG - Requesting: http://10.0.0.36:8082/project/5bb4ddde-d0df-4969-bd17-7460407e088f 2024-08-24 16:05:29,299 - INFO - Validated that VN ctest-vn-72870984 is not found in API Server 2024-08-24 16:05:29,310 - DEBUG - VN ctest-vn-72870984 is not present in Agent 10.0.0.36 2024-08-24 16:05:29,310 - INFO - Validated that VN ctest-vn-72870984 is not in any agent 2024-08-24 16:05:29,326 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-72870984 info 2024-08-24 16:05:29,326 - INFO - Deleting VN ctest-vn-30835085 2024-08-24 16:05:29,434 - DEBUG - Response for deleting network () 2024-08-24 16:05:29,434 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/4a27c3a6-54fc-4ed1-b2b3-7281375984d2 2024-08-24 16:05:29,440 - DEBUG - Response Code: 404 2024-08-24 16:05:29,440 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-08-24 16:05:29,449 - DEBUG - Requesting: http://10.0.0.36:8082/domain/e3c78fce-7b43-4ca2-af65-256fa7b87b32 2024-08-24 16:05:29,506 - DEBUG - Requesting: http://10.0.0.36:8082/project/5bb4ddde-d0df-4969-bd17-7460407e088f 2024-08-24 16:05:29,583 - INFO - Validated that VN ctest-vn-30835085 is not found in API Server 2024-08-24 16:05:29,593 - DEBUG - VN ctest-vn-30835085 is not present in Agent 10.0.0.36 2024-08-24 16:05:29,593 - INFO - Validated that VN ctest-vn-30835085 is not in any agent 2024-08-24 16:05:29,613 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-30835085 info 2024-08-24 16:05:29,872 - DEBUG - No XMPP flaps were noticed during the test 2024-08-24 16:05:29,872 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:29] 2024-08-24 16:05:29,872 - INFO - -------------------------------------------------------------------------------- 2024-08-24 16:05:30,554 - INFO - Deleted project: ctest-TestBasicPolicy-02920311, ID : 5bb4ddde-d0df-4969-bd17-7460407e088f