2024-10-18 22:14:22,379 - INFO - Domain Default found not creating 2024-10-18 22:14:22,590 - INFO - Project ctest-TestBasicPolicy-14881610 not found, creating it 2024-10-18 22:14:23,113 - INFO - Created Project:ctest-TestBasicPolicy-14881610, ID : 05514028-d5df-4e74-8ada-51a72be65226 2024-10-18 22:14:24,854 - INFO - ================================================================================ 2024-10-18 22:14:24,854 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-18 22:14:24,854 - 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-18 22:14:25,118 - DEBUG - Nothing to compare xmpp stats {'10.0.0.44': {'10.20.0.6': '0'}} with 2024-10-18 22:14:25,118 - INFO - Initial checks done. Running the testcase now 2024-10-18 22:14:25,118 - INFO - 2024-10-18 22:14:25,768 - DEBUG - Response for create_network : {'network': {'id': 'ec4f7135-7f88-4b50-82bb-549a061e0a2f', 'name': 'ctest-vn-02562612', 'tenant_id': '05514028d5df4e748ada51a72be65226', 'project_id': '05514028d5df4e748ada51a72be65226', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14881610', 'ctest-vn-02562612'], 'port_security_enabled': True, 'description': ''}} 2024-10-18 22:14:25,971 - DEBUG - Response for create_subnet : {'subnet': {'id': '1ae7ac23-2358-45d7-9351-5e6edc5e616e', 'name': '', 'tenant_id': '05514028d5df4e748ada51a72be65226', 'network_id': 'ec4f7135-7f88-4b50-82bb-549a061e0a2f', 'ip_version': 4, 'cidr': '102.241.135.64/26', 'allocation_pools': [{'start': '102.241.135.66', 'end': '102.241.135.126'}], 'gateway_ip': '102.241.135.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '102.241.135.66', 'tags': [], 'project_id': '05514028d5df4e748ada51a72be65226'}} 2024-10-18 22:14:25,994 - INFO - Created VN ctest-vn-02562612 2024-10-18 22:14:26,055 - DEBUG - VN ctest-vn-02562612 UUID is ec4f7135-7f88-4b50-82bb-549a061e0a2f 2024-10-18 22:14:26,440 - DEBUG - Response for create_network : {'network': {'id': '5be498ac-9de1-40ab-8c2d-64ebc70826ad', 'name': 'ctest-vn-37488782', 'tenant_id': '05514028d5df4e748ada51a72be65226', 'project_id': '05514028d5df4e748ada51a72be65226', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14881610', 'ctest-vn-37488782'], 'port_security_enabled': True, 'description': ''}} 2024-10-18 22:14:26,688 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f738b557-b71f-49ad-a7c1-481f12ac33ee', 'name': '', 'tenant_id': '05514028d5df4e748ada51a72be65226', 'network_id': '5be498ac-9de1-40ab-8c2d-64ebc70826ad', 'ip_version': 4, 'cidr': '117.156.200.192/26', 'allocation_pools': [{'start': '117.156.200.194', 'end': '117.156.200.254'}], 'gateway_ip': '117.156.200.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.156.200.194', 'tags': [], 'project_id': '05514028d5df4e748ada51a72be65226'}} 2024-10-18 22:14:26,711 - INFO - Created VN ctest-vn-37488782 2024-10-18 22:14:26,770 - DEBUG - VN ctest-vn-37488782 UUID is 5be498ac-9de1-40ab-8c2d-64ebc70826ad 2024-10-18 22:14:26,908 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-14881610:ctest-vn-02562612, 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-14881610:ctest-vn-37488782, 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-18 22:14:27,301 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ec4f7135-7f88-4b50-82bb-549a061e0a2f', 'name': 'ctest-vn-02562612', 'tenant_id': '05514028d5df4e748ada51a72be65226', 'project_id': '05514028d5df4e748ada51a72be65226', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1ae7ac23-2358-45d7-9351-5e6edc5e616e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14881610', 'ctest-vn-02562612'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14881610', 'ctest-policy-allow-all-40723762']], 'subnet_ipam': [{'subnet_cidr': '102.241.135.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-18 22:14:27,595 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5be498ac-9de1-40ab-8c2d-64ebc70826ad', 'name': 'ctest-vn-37488782', 'tenant_id': '05514028d5df4e748ada51a72be65226', 'project_id': '05514028d5df4e748ada51a72be65226', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f738b557-b71f-49ad-a7c1-481f12ac33ee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14881610', 'ctest-vn-37488782'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14881610', 'ctest-policy-allow-all-40723762']], 'subnet_ipam': [{'subnet_cidr': '117.156.200.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-18 22:14:27,730 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-10-18 22:14:28,040 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-10-18 22:14:28,079 - DEBUG - Requesting: http://10.0.0.44:8082/domain/f273aad4-7119-4a9a-9d26-55c97af5048b 2024-10-18 22:14:28,097 - DEBUG - Requesting: http://10.0.0.44:8082/project/05514028-d5df-4e74-8ada-51a72be65226 2024-10-18 22:14:28,183 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/ec4f7135-7f88-4b50-82bb-549a061e0a2f 2024-10-18 22:14:28,201 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/ec4f7135-7f88-4b50-82bb-549a061e0a2f 2024-10-18 22:14:28,217 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/de186b9e-3043-4f8d-80bf-dc2af6083753 2024-10-18 22:14:28,230 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/de186b9e-3043-4f8d-80bf-dc2af6083753 2024-10-18 22:14:28,241 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/7e4d5b50-2dfd-446d-a609-e7134d3bb56c 2024-10-18 22:14:28,251 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-18 22:14:28,251 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/ec4f7135-7f88-4b50-82bb-549a061e0a2f 2024-10-18 22:14:28,268 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/de186b9e-3043-4f8d-80bf-dc2af6083753 2024-10-18 22:14:28,293 - INFO - Verified VN network id 9 for VN ec4f7135-7f88-4b50-82bb-549a061e0a2f 2024-10-18 22:14:28,293 - INFO - Verifications in API Server for VN ctest-vn-02562612 passed 2024-10-18 22:14:28,293 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/ec4f7135-7f88-4b50-82bb-549a061e0a2f 2024-10-18 22:14:28,312 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/de186b9e-3043-4f8d-80bf-dc2af6083753 2024-10-18 22:14:28,324 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/de186b9e-3043-4f8d-80bf-dc2af6083753 2024-10-18 22:14:28,343 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/7e4d5b50-2dfd-446d-a609-e7134d3bb56c 2024-10-18 22:14:28,361 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14881610:ctest-vn-02562612', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14881610', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17027953190697978704', 'uuid-lslong': '9420216066079853103'}, 'enable': 'true', 'created': '2024-10-18T22:14:25', 'last-modified': '2024-10-18T22:14:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.104107'} 2024-10-18 22:14:28,371 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-18 22:14:28,371 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02562612 passed 2024-10-18 22:14:28,371 - DEBUG - ====Verifying policy data for ctest-vn-02562612 in API_Server ====== 2024-10-18 22:14:28,371 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-10-18 22:14:28,379 - DEBUG - Requesting: http://10.0.0.44:8082/domain/f273aad4-7119-4a9a-9d26-55c97af5048b 2024-10-18 22:14:28,396 - DEBUG - Requesting: http://10.0.0.44:8082/project/05514028-d5df-4e74-8ada-51a72be65226 2024-10-18 22:14:28,492 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/ec4f7135-7f88-4b50-82bb-549a061e0a2f 2024-10-18 22:14:28,519 - DEBUG - ==>Verifying data for policy with id: 8c537d21-d4e3-4aaa-a445-c51e4d85e0e9, fqn: ['default-domain', 'ctest-TestBasicPolicy-14881610', 'ctest-policy-allow-all-40723762'] 2024-10-18 22:14:28,519 - INFO - VN ctest-vn-02562612 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-18 22:14:28,519 - DEBUG - Verifying the vn in opserver 2024-10-18 22:14:28,519 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14881610:ctest-vn-02562612 virtual network link through opserver 10.0.0.44 2024-10-18 22:14:28,519 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks 2024-10-18 22:14:28,823 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks 2024-10-18 22:14:28,909 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14881610:ctest-vn-02562612', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14881610:ctest-vn-02562612?flat'} 2024-10-18 22:14:28,909 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14881610:ctest-vn-02562612 is found in opserver 2024-10-18 22:14:28,921 - DEBUG - Do not have enough data to verify VN in agent 2024-10-18 22:14:28,930 - DEBUG - VRF ids for VN ctest-vn-02562612: {} 2024-10-18 22:14:28,930 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-10-18 22:14:28,939 - DEBUG - Requesting: http://10.0.0.44:8082/domain/f273aad4-7119-4a9a-9d26-55c97af5048b 2024-10-18 22:14:28,957 - DEBUG - Requesting: http://10.0.0.44:8082/project/05514028-d5df-4e74-8ada-51a72be65226 2024-10-18 22:14:29,067 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/5be498ac-9de1-40ab-8c2d-64ebc70826ad 2024-10-18 22:14:29,085 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/5be498ac-9de1-40ab-8c2d-64ebc70826ad 2024-10-18 22:14:29,106 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/768fef4a-f072-40bc-9d06-825644b0ed18 2024-10-18 22:14:29,117 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/768fef4a-f072-40bc-9d06-825644b0ed18 2024-10-18 22:14:29,127 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/588652f7-e8a8-44ab-b2df-64f57b0a6742 2024-10-18 22:14:29,139 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-18 22:14:29,139 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/5be498ac-9de1-40ab-8c2d-64ebc70826ad 2024-10-18 22:14:29,158 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/768fef4a-f072-40bc-9d06-825644b0ed18 2024-10-18 22:14:29,184 - INFO - Verified VN network id 10 for VN 5be498ac-9de1-40ab-8c2d-64ebc70826ad 2024-10-18 22:14:29,184 - INFO - Verifications in API Server for VN ctest-vn-37488782 passed 2024-10-18 22:14:29,185 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/5be498ac-9de1-40ab-8c2d-64ebc70826ad 2024-10-18 22:14:29,203 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/768fef4a-f072-40bc-9d06-825644b0ed18 2024-10-18 22:14:29,216 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/768fef4a-f072-40bc-9d06-825644b0ed18 2024-10-18 22:14:29,227 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/588652f7-e8a8-44ab-b2df-64f57b0a6742 2024-10-18 22:14:29,245 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14881610:ctest-vn-37488782', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14881610', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6621585219292053675', 'uuid-lslong': '10100840503081182893'}, 'enable': 'true', 'created': '2024-10-18T22:14:26', 'last-modified': '2024-10-18T22:14:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.673844'} 2024-10-18 22:14:29,253 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-18 22:14:29,253 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37488782 passed 2024-10-18 22:14:29,253 - DEBUG - ====Verifying policy data for ctest-vn-37488782 in API_Server ====== 2024-10-18 22:14:29,253 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-10-18 22:14:29,261 - DEBUG - Requesting: http://10.0.0.44:8082/domain/f273aad4-7119-4a9a-9d26-55c97af5048b 2024-10-18 22:14:29,281 - DEBUG - Requesting: http://10.0.0.44:8082/project/05514028-d5df-4e74-8ada-51a72be65226 2024-10-18 22:14:29,367 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/5be498ac-9de1-40ab-8c2d-64ebc70826ad 2024-10-18 22:14:29,385 - DEBUG - ==>Verifying data for policy with id: 8c537d21-d4e3-4aaa-a445-c51e4d85e0e9, fqn: ['default-domain', 'ctest-TestBasicPolicy-14881610', 'ctest-policy-allow-all-40723762'] 2024-10-18 22:14:29,385 - INFO - VN ctest-vn-37488782 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-18 22:14:29,385 - DEBUG - Verifying the vn in opserver 2024-10-18 22:14:29,385 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14881610:ctest-vn-37488782 virtual network link through opserver 10.0.0.44 2024-10-18 22:14:29,385 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks 2024-10-18 22:14:29,401 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14881610:ctest-vn-37488782', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14881610:ctest-vn-37488782?flat'} 2024-10-18 22:14:29,401 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14881610:ctest-vn-37488782 is found in opserver 2024-10-18 22:14:29,414 - DEBUG - Do not have enough data to verify VN in agent 2024-10-18 22:14:29,420 - DEBUG - VRF ids for VN ctest-vn-37488782: {} 2024-10-18 22:14:29,507 - DEBUG - Services list from nova: [, , ] 2024-10-18 22:14:30,829 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2114-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2114-1) 2024-10-18 22:14:32,150 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2114-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2114-1) 2024-10-18 22:14:32,150 - INFO - Waiting for VM ctest-TestBasicPolicy-14881610-94586622 to be up.. 2024-10-18 22:14:32,250 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-18 22:14:37,355 - DEBUG - VM is in ACTIVE state now 2024-10-18 22:14:37,355 - INFO - VM name : ctest-TestBasicPolicy-14881610-94586622 2024-10-18 22:14:37,465 - DEBUG - VM ctest-TestBasicPolicy-14881610-94586622 ID is 0c549c11-444d-4d4d-9032-7a14b157bf1d 2024-10-18 22:14:37,493 - DEBUG - VM ctest-TestBasicPolicy-14881610-94586622 launched on Node cn-jenkins-deploy-platform-ansible-os-2114-1 2024-10-18 22:14:37,600 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/0c549c11-444d-4d4d-9032-7a14b157bf1d 2024-10-18 22:14:37,614 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine-interface/3c5969c2-0331-4868-9154-b3f01a03bd6b 2024-10-18 22:14:40,890 - 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 1013ms') 2024-10-18 22:14:40,890 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14881610-94586622 failed! 2024-10-18 22:14:40,954 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-14881610:ctest-vn-02562612 is 102.241.135.65 and allocation pool is NOT set 2024-10-18 22:14:43,013 - 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=9.26 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.37 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 = 2.373/5.816/9.260/3.443 ms') 2024-10-18 22:14:43,013 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14881610-94586622 passed 2024-10-18 22:14:43,182 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-18 22:14:43,182 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14881610-94586622, IP 102.241.135.67, Port 22 2024-10-18 22:14:43,344 - DEBUG - VM ctest-TestBasicPolicy-14881610-94586622 is ready for SSH connections 2024-10-18 22:14:43,344 - INFO - Waiting for VM ctest-TestBasicPolicy-14881610-56543109 to be up.. 2024-10-18 22:14:43,465 - DEBUG - VM is in ACTIVE state now 2024-10-18 22:14:43,466 - INFO - VM name : ctest-TestBasicPolicy-14881610-56543109 2024-10-18 22:14:43,579 - DEBUG - VM ctest-TestBasicPolicy-14881610-56543109 ID is 50f03748-6616-4bb6-b4a8-72e9e42a5286 2024-10-18 22:14:43,579 - DEBUG - VM ctest-TestBasicPolicy-14881610-56543109 launched on Node cn-jenkins-deploy-platform-ansible-os-2114-1 2024-10-18 22:14:43,698 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/50f03748-6616-4bb6-b4a8-72e9e42a5286 2024-10-18 22:14:43,712 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine-interface/a3fdc9f1-0b90-4aac-aa72-455585a1a6f4 2024-10-18 22:14:44,985 - 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.03 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.01 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 = 1.011/2.521/4.031/1.510 ms') 2024-10-18 22:14:44,986 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-14881610-56543109 passed 2024-10-18 22:14:45,158 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-18 22:14:45,159 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14881610-56543109, IP 117.156.200.195, Port 22 2024-10-18 22:14:45,314 - DEBUG - VM ctest-TestBasicPolicy-14881610-56543109 is ready for SSH connections 2024-10-18 22:14:45,314 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-18 22:14:45,314 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 117.156.200.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.44, gateway password: c0ntrail123 2024-10-18 22:14:45,315 - DEBUG - ping -s 56 -c 3 -W 1 117.156.200.195 2024-10-18 22:14:49,396 - DEBUG - PING 117.156.200.195 (117.156.200.195): 56 data bytes 64 bytes from 117.156.200.195: seq=0 ttl=63 time=4.379 ms 64 bytes from 117.156.200.195: seq=1 ttl=63 time=1.308 ms 64 bytes from 117.156.200.195: seq=2 ttl=63 time=1.084 ms --- 117.156.200.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.084/2.257/4.379 ms 2024-10-18 22:14:49,396 - INFO - Ping to IP 117.156.200.195 from VM ctest-TestBasicPolicy-14881610-94586622 passed 2024-10-18 22:14:49,594 - DEBUG - Policy Update Response {"network-policy": {"uuid": "8c537d21-d4e3-4aaa-a445-c51e4d85e0e9", "href": "http://10.0.0.44:8082/network-policy/8c537d21-d4e3-4aaa-a445-c51e4d85e0e9"}} 2024-10-18 22:14:49,594 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-18 22:14:49,594 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 117.156.200.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.44, gateway password: c0ntrail123 2024-10-18 22:14:49,595 - DEBUG - ping -s 56 -c 3 -W 1 117.156.200.195 2024-10-18 22:14:52,823 - DEBUG - PING 117.156.200.195 (117.156.200.195): 56 data bytes --- 117.156.200.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-18 22:14:52,823 - WARNING - Ping to IP 117.156.200.195 from VM ctest-TestBasicPolicy-14881610-94586622 failed 2024-10-18 22:14:52,823 - INFO - Deleting VM ctest-TestBasicPolicy-14881610-56543109 2024-10-18 22:14:52,920 - INFO - Deleting VM ctest-TestBasicPolicy-14881610-94586622 2024-10-18 22:14:53,461 - INFO - Deleted policy ctest-policy-allow-all-40723762 2024-10-18 22:14:53,461 - INFO - Deleting VN ctest-vn-37488782 2024-10-18 22:14:53,509 - DEBUG - VN 5be498ac-9de1-40ab-8c2d-64ebc70826ad still in use: Unable to complete operation on network 5be498ac-9de1-40ab-8c2d-64ebc70826ad. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-345bb6d2-eda0-41b7-9ec5-17b3d4872c0d'] 2024-10-18 22:14:53,509 - WARNING - Deleting VN ctest-vn-37488782 failed..Will retry 2024-10-18 22:14:55,703 - DEBUG - Response for deleting network () 2024-10-18 22:14:55,703 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/768fef4a-f072-40bc-9d06-825644b0ed18 2024-10-18 22:14:55,715 - DEBUG - Response Code: 404 2024-10-18 22:14:55,715 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-10-18 22:14:55,723 - DEBUG - Requesting: http://10.0.0.44:8082/domain/f273aad4-7119-4a9a-9d26-55c97af5048b 2024-10-18 22:14:55,744 - DEBUG - Requesting: http://10.0.0.44:8082/project/05514028-d5df-4e74-8ada-51a72be65226 2024-10-18 22:14:55,848 - INFO - Validated that VN ctest-vn-37488782 is not found in API Server 2024-10-18 22:14:55,869 - DEBUG - VN ctest-vn-37488782 is not present in Agent 10.0.0.44 2024-10-18 22:14:55,869 - INFO - Validated that VN ctest-vn-37488782 is not in any agent 2024-10-18 22:14:55,890 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-37488782 info 2024-10-18 22:14:55,890 - INFO - Deleting VN ctest-vn-02562612 2024-10-18 22:14:56,042 - DEBUG - Response for deleting network () 2024-10-18 22:14:56,042 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/de186b9e-3043-4f8d-80bf-dc2af6083753 2024-10-18 22:14:56,050 - DEBUG - Response Code: 404 2024-10-18 22:14:56,050 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-10-18 22:14:56,060 - DEBUG - Requesting: http://10.0.0.44:8082/domain/f273aad4-7119-4a9a-9d26-55c97af5048b 2024-10-18 22:14:56,118 - DEBUG - Requesting: http://10.0.0.44:8082/project/05514028-d5df-4e74-8ada-51a72be65226 2024-10-18 22:14:56,211 - INFO - Validated that VN ctest-vn-02562612 is not found in API Server 2024-10-18 22:14:56,224 - DEBUG - VN ctest-vn-02562612 is not present in Agent 10.0.0.44 2024-10-18 22:14:56,224 - INFO - Validated that VN ctest-vn-02562612 is not in any agent 2024-10-18 22:14:56,248 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-02562612 info 2024-10-18 22:14:56,511 - DEBUG - No XMPP flaps were noticed during the test
2024-10-18 22:14:56,511 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:32]
2024-10-18 22:14:56,511 - INFO - -------------------------------------------------------------------------------- 2024-10-18 22:14:57,284 - INFO - Deleted project: ctest-TestBasicPolicy-14881610, ID : 05514028-d5df-4e74-8ada-51a72be65226