2024-09-12 13:34:10,662 - INFO - Domain Default found not creating 2024-09-12 13:34:10,893 - INFO - Project ctest-TestBasicPolicy-66690045 not found, creating it 2024-09-12 13:34:11,393 - INFO - Created Project:ctest-TestBasicPolicy-66690045, ID : ef94f91d-5503-4675-81a8-97f5717d9d05 2024-09-12 13:34:13,054 - INFO - ================================================================================ 2024-09-12 13:34:13,054 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-12 13:34:13,054 - 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-12 13:34:13,309 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.10': '0'}} with 2024-09-12 13:34:13,309 - INFO - Initial checks done. Running the testcase now 2024-09-12 13:34:13,309 - INFO - 2024-09-12 13:34:13,936 - DEBUG - Response for create_network : {'network': {'id': 'a8ab9acb-ca57-4b77-89a3-5bb212bdfc51', 'name': 'ctest-vn-03100993', 'tenant_id': 'ef94f91d5503467581a897f5717d9d05', 'project_id': 'ef94f91d5503467581a897f5717d9d05', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66690045', 'ctest-vn-03100993'], 'port_security_enabled': True, 'description': ''}} 2024-09-12 13:34:14,178 - DEBUG - Response for create_subnet : {'subnet': {'id': '63daddb6-7424-49c8-a111-c3c8f15c6317', 'name': '', 'tenant_id': 'ef94f91d5503467581a897f5717d9d05', 'network_id': 'a8ab9acb-ca57-4b77-89a3-5bb212bdfc51', 'ip_version': 4, 'cidr': '103.71.101.192/26', 'allocation_pools': [{'start': '103.71.101.194', 'end': '103.71.101.254'}], 'gateway_ip': '103.71.101.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '103.71.101.194', 'tags': [], 'project_id': 'ef94f91d5503467581a897f5717d9d05'}} 2024-09-12 13:34:14,201 - INFO - Created VN ctest-vn-03100993 2024-09-12 13:34:14,261 - DEBUG - VN ctest-vn-03100993 UUID is a8ab9acb-ca57-4b77-89a3-5bb212bdfc51 2024-09-12 13:34:14,621 - DEBUG - Response for create_network : {'network': {'id': 'fd42e149-dd50-47bd-a566-ec4fe17ad043', 'name': 'ctest-vn-45981226', 'tenant_id': 'ef94f91d5503467581a897f5717d9d05', 'project_id': 'ef94f91d5503467581a897f5717d9d05', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66690045', 'ctest-vn-45981226'], 'port_security_enabled': True, 'description': ''}} 2024-09-12 13:34:14,806 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cc1ed51d-c07c-4b2e-aa9b-a9e0013aa1f0', 'name': '', 'tenant_id': 'ef94f91d5503467581a897f5717d9d05', 'network_id': 'fd42e149-dd50-47bd-a566-ec4fe17ad043', 'ip_version': 4, 'cidr': '29.245.135.64/26', 'allocation_pools': [{'start': '29.245.135.66', 'end': '29.245.135.126'}], 'gateway_ip': '29.245.135.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29.245.135.66', 'tags': [], 'project_id': 'ef94f91d5503467581a897f5717d9d05'}} 2024-09-12 13:34:14,830 - INFO - Created VN ctest-vn-45981226 2024-09-12 13:34:14,893 - DEBUG - VN ctest-vn-45981226 UUID is fd42e149-dd50-47bd-a566-ec4fe17ad043 2024-09-12 13:34:15,032 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-66690045:ctest-vn-03100993, 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-66690045:ctest-vn-45981226, 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-12 13:34:15,383 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a8ab9acb-ca57-4b77-89a3-5bb212bdfc51', 'name': 'ctest-vn-03100993', 'tenant_id': 'ef94f91d5503467581a897f5717d9d05', 'project_id': 'ef94f91d5503467581a897f5717d9d05', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['63daddb6-7424-49c8-a111-c3c8f15c6317'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66690045', 'ctest-vn-03100993'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66690045', 'ctest-policy-allow-all-02818154']], 'subnet_ipam': [{'subnet_cidr': '103.71.101.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-12 13:34:15,659 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fd42e149-dd50-47bd-a566-ec4fe17ad043', 'name': 'ctest-vn-45981226', 'tenant_id': 'ef94f91d5503467581a897f5717d9d05', 'project_id': 'ef94f91d5503467581a897f5717d9d05', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cc1ed51d-c07c-4b2e-aa9b-a9e0013aa1f0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66690045', 'ctest-vn-45981226'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66690045', 'ctest-policy-allow-all-02818154']], 'subnet_ipam': [{'subnet_cidr': '29.245.135.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-12 13:34:15,838 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-09-12 13:34:16,160 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-09-12 13:34:16,205 - DEBUG - Requesting: http://10.0.0.22:8082/domain/73bbad78-0942-463c-b05f-6e98a0106066 2024-09-12 13:34:16,224 - DEBUG - Requesting: http://10.0.0.22:8082/project/ef94f91d-5503-4675-81a8-97f5717d9d05 2024-09-12 13:34:16,317 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a8ab9acb-ca57-4b77-89a3-5bb212bdfc51 2024-09-12 13:34:16,335 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a8ab9acb-ca57-4b77-89a3-5bb212bdfc51 2024-09-12 13:34:16,352 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/08db9dfb-1ea8-416c-8fa6-0096c5c711b8 2024-09-12 13:34:16,363 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/08db9dfb-1ea8-416c-8fa6-0096c5c711b8 2024-09-12 13:34:16,373 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/360607f4-d7f9-478c-be1c-6d906bad5c8b 2024-09-12 13:34:16,383 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-12 13:34:16,383 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a8ab9acb-ca57-4b77-89a3-5bb212bdfc51 2024-09-12 13:34:16,399 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/08db9dfb-1ea8-416c-8fa6-0096c5c711b8 2024-09-12 13:34:16,424 - INFO - Verified VN network id 9 for VN a8ab9acb-ca57-4b77-89a3-5bb212bdfc51 2024-09-12 13:34:16,425 - INFO - Verifications in API Server for VN ctest-vn-03100993 passed 2024-09-12 13:34:16,425 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a8ab9acb-ca57-4b77-89a3-5bb212bdfc51 2024-09-12 13:34:16,442 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/08db9dfb-1ea8-416c-8fa6-0096c5c711b8 2024-09-12 13:34:16,453 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/08db9dfb-1ea8-416c-8fa6-0096c5c711b8 2024-09-12 13:34:16,464 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/360607f4-d7f9-478c-be1c-6d906bad5c8b 2024-09-12 13:34:16,482 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66690045:ctest-vn-03100993', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66690045', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12153978219453172599', 'uuid-lslong': '9917871624776711249'}, 'enable': 'true', 'created': '2024-09-12T13:34:13', 'last-modified': '2024-09-12T13:34:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.141790'} 2024-09-12 13:34:16,490 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-12 13:34:16,490 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03100993 passed 2024-09-12 13:34:16,491 - DEBUG - ====Verifying policy data for ctest-vn-03100993 in API_Server ====== 2024-09-12 13:34:16,491 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-09-12 13:34:16,498 - DEBUG - Requesting: http://10.0.0.22:8082/domain/73bbad78-0942-463c-b05f-6e98a0106066 2024-09-12 13:34:16,514 - DEBUG - Requesting: http://10.0.0.22:8082/project/ef94f91d-5503-4675-81a8-97f5717d9d05 2024-09-12 13:34:16,599 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a8ab9acb-ca57-4b77-89a3-5bb212bdfc51 2024-09-12 13:34:16,615 - DEBUG - ==>Verifying data for policy with id: 887278f9-e688-43b4-8fe5-53bef2f842b9, fqn: ['default-domain', 'ctest-TestBasicPolicy-66690045', 'ctest-policy-allow-all-02818154'] 2024-09-12 13:34:16,615 - INFO - VN ctest-vn-03100993 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-12 13:34:16,615 - DEBUG - Verifying the vn in opserver 2024-09-12 13:34:16,615 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66690045:ctest-vn-03100993 virtual network link through opserver 10.0.0.22 2024-09-12 13:34:16,616 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2024-09-12 13:34:16,921 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2024-09-12 13:34:16,997 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66690045:ctest-vn-03100993', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66690045:ctest-vn-03100993?flat'} 2024-09-12 13:34:16,997 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66690045:ctest-vn-03100993 is found in opserver 2024-09-12 13:34:17,012 - DEBUG - Do not have enough data to verify VN in agent 2024-09-12 13:34:17,018 - DEBUG - VRF ids for VN ctest-vn-03100993: {} 2024-09-12 13:34:17,018 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-09-12 13:34:17,025 - DEBUG - Requesting: http://10.0.0.22:8082/domain/73bbad78-0942-463c-b05f-6e98a0106066 2024-09-12 13:34:17,043 - DEBUG - Requesting: http://10.0.0.22:8082/project/ef94f91d-5503-4675-81a8-97f5717d9d05 2024-09-12 13:34:17,142 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fd42e149-dd50-47bd-a566-ec4fe17ad043 2024-09-12 13:34:17,166 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fd42e149-dd50-47bd-a566-ec4fe17ad043 2024-09-12 13:34:17,182 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f1f2208b-4120-41a9-ad43-18f879d74721 2024-09-12 13:34:17,193 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f1f2208b-4120-41a9-ad43-18f879d74721 2024-09-12 13:34:17,206 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/bcf1902e-e87d-4fd1-a9b4-5764ba412fb3 2024-09-12 13:34:17,217 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-12 13:34:17,217 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fd42e149-dd50-47bd-a566-ec4fe17ad043 2024-09-12 13:34:17,235 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f1f2208b-4120-41a9-ad43-18f879d74721 2024-09-12 13:34:17,263 - INFO - Verified VN network id 10 for VN fd42e149-dd50-47bd-a566-ec4fe17ad043 2024-09-12 13:34:17,263 - INFO - Verifications in API Server for VN ctest-vn-45981226 passed 2024-09-12 13:34:17,263 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fd42e149-dd50-47bd-a566-ec4fe17ad043 2024-09-12 13:34:17,280 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f1f2208b-4120-41a9-ad43-18f879d74721 2024-09-12 13:34:17,293 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f1f2208b-4120-41a9-ad43-18f879d74721 2024-09-12 13:34:17,304 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/bcf1902e-e87d-4fd1-a9b4-5764ba412fb3 2024-09-12 13:34:17,322 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66690045:ctest-vn-45981226', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66690045', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18249396347420559293', 'uuid-lslong': '11918473291712090179'}, 'enable': 'true', 'created': '2024-09-12T13:34:14', 'last-modified': '2024-09-12T13:34:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.700121'} 2024-09-12 13:34:17,330 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-12 13:34:17,330 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45981226 passed 2024-09-12 13:34:17,331 - DEBUG - ====Verifying policy data for ctest-vn-45981226 in API_Server ====== 2024-09-12 13:34:17,331 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-09-12 13:34:17,338 - DEBUG - Requesting: http://10.0.0.22:8082/domain/73bbad78-0942-463c-b05f-6e98a0106066 2024-09-12 13:34:17,361 - DEBUG - Requesting: http://10.0.0.22:8082/project/ef94f91d-5503-4675-81a8-97f5717d9d05 2024-09-12 13:34:17,450 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fd42e149-dd50-47bd-a566-ec4fe17ad043 2024-09-12 13:34:17,465 - DEBUG - ==>Verifying data for policy with id: 887278f9-e688-43b4-8fe5-53bef2f842b9, fqn: ['default-domain', 'ctest-TestBasicPolicy-66690045', 'ctest-policy-allow-all-02818154'] 2024-09-12 13:34:17,465 - INFO - VN ctest-vn-45981226 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-12 13:34:17,465 - DEBUG - Verifying the vn in opserver 2024-09-12 13:34:17,465 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66690045:ctest-vn-45981226 virtual network link through opserver 10.0.0.22 2024-09-12 13:34:17,465 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2024-09-12 13:34:17,480 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66690045:ctest-vn-45981226', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66690045:ctest-vn-45981226?flat'} 2024-09-12 13:34:17,480 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66690045:ctest-vn-45981226 is found in opserver 2024-09-12 13:34:17,494 - DEBUG - Do not have enough data to verify VN in agent 2024-09-12 13:34:17,501 - DEBUG - VRF ids for VN ctest-vn-45981226: {} 2024-09-12 13:34:17,570 - DEBUG - Services list from nova: [, , ] 2024-09-12 13:34:18,711 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1908-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1908-1) 2024-09-12 13:34:20,159 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1908-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1908-1) 2024-09-12 13:34:20,159 - INFO - Waiting for VM ctest-TestBasicPolicy-66690045-81597212 to be up.. 2024-09-12 13:34:20,272 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-12 13:34:25,468 - DEBUG - VM is in ACTIVE state now 2024-09-12 13:34:25,468 - INFO - VM name : ctest-TestBasicPolicy-66690045-81597212 2024-09-12 13:34:25,668 - DEBUG - VM ctest-TestBasicPolicy-66690045-81597212 ID is 735bff73-2c57-434e-836d-31d097a0d028 2024-09-12 13:34:25,695 - DEBUG - VM ctest-TestBasicPolicy-66690045-81597212 launched on Node cn-jenkins-deploy-platform-ansible-os-1908-1 2024-09-12 13:34:25,806 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/735bff73-2c57-434e-836d-31d097a0d028 2024-09-12 13:34:25,818 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/1dd9254f-3b06-4fd1-bf6f-bb90f333fb12 2024-09-12 13:34:29,096 - 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 1006ms') 2024-09-12 13:34:29,096 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-66690045-81597212 failed! 2024-09-12 13:34:29,158 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-66690045:ctest-vn-03100993 is 103.71.101.193 and allocation pool is NOT set 2024-09-12 13:34:31,227 - 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=13.9 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.57 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.574/8.255/13.936/5.681 ms') 2024-09-12 13:34:31,228 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-66690045-81597212 passed 2024-09-12 13:34:31,402 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-12 13:34:31,402 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-66690045-81597212, IP 103.71.101.195, Port 22 2024-09-12 13:34:31,468 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-09-12 13:34:31,593 - DEBUG - VM ctest-TestBasicPolicy-66690045-81597212 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-12 13:34:36,594 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-12 13:34:36,594 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-66690045-81597212, IP 103.71.101.195, Port 22 2024-09-12 13:34:36,768 - DEBUG - VM ctest-TestBasicPolicy-66690045-81597212 is ready for SSH connections 2024-09-12 13:34:36,768 - INFO - Waiting for VM ctest-TestBasicPolicy-66690045-00382462 to be up.. 2024-09-12 13:34:36,869 - DEBUG - VM is in ACTIVE state now 2024-09-12 13:34:36,869 - INFO - VM name : ctest-TestBasicPolicy-66690045-00382462 2024-09-12 13:34:36,969 - DEBUG - VM ctest-TestBasicPolicy-66690045-00382462 ID is 4b2a6c19-17cc-4e11-a080-bac7c0007070 2024-09-12 13:34:36,969 - DEBUG - VM ctest-TestBasicPolicy-66690045-00382462 launched on Node cn-jenkins-deploy-platform-ansible-os-1908-1 2024-09-12 13:34:37,068 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/4b2a6c19-17cc-4e11-a080-bac7c0007070 2024-09-12 13:34:37,080 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/bc2c2bc0-163d-4473-b8e2-ac7c140bbc9d 2024-09-12 13:34:38,344 - 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.55 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.540 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.540/2.043/3.546/1.503 ms') 2024-09-12 13:34:38,344 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-66690045-00382462 passed 2024-09-12 13:34:38,510 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-12 13:34:38,510 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-66690045-00382462, IP 29.245.135.67, Port 22 2024-09-12 13:34:38,685 - DEBUG - VM ctest-TestBasicPolicy-66690045-00382462 is ready for SSH connections 2024-09-12 13:34:38,685 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-12 13:34:38,686 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 29.245.135.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2024-09-12 13:34:38,686 - DEBUG - ping -s 56 -c 3 -W 1 29.245.135.67 2024-09-12 13:34:42,755 - DEBUG - PING 29.245.135.67 (29.245.135.67): 56 data bytes 64 bytes from 29.245.135.67: seq=0 ttl=63 time=4.128 ms 64 bytes from 29.245.135.67: seq=1 ttl=63 time=0.942 ms 64 bytes from 29.245.135.67: seq=2 ttl=63 time=1.231 ms --- 29.245.135.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.942/2.100/4.128 ms 2024-09-12 13:34:42,756 - INFO - Ping to IP 29.245.135.67 from VM ctest-TestBasicPolicy-66690045-81597212 passed 2024-09-12 13:34:42,969 - DEBUG - Policy Update Response {"network-policy": {"uuid": "887278f9-e688-43b4-8fe5-53bef2f842b9", "href": "http://10.0.0.22:8082/network-policy/887278f9-e688-43b4-8fe5-53bef2f842b9"}} 2024-09-12 13:34:42,970 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-12 13:34:42,970 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 29.245.135.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2024-09-12 13:34:42,970 - DEBUG - ping -s 56 -c 3 -W 1 29.245.135.67 2024-09-12 13:34:46,216 - DEBUG - PING 29.245.135.67 (29.245.135.67): 56 data bytes 64 bytes from 29.245.135.67: seq=0 ttl=63 time=1.582 ms --- 29.245.135.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.582/1.582/1.582 ms 2024-09-12 13:34:46,216 - WARNING - Ping to IP 29.245.135.67 from VM ctest-TestBasicPolicy-66690045-81597212 failed 2024-09-12 13:34:46,216 - INFO - Deleting VM ctest-TestBasicPolicy-66690045-00382462 2024-09-12 13:34:46,301 - INFO - Deleting VM ctest-TestBasicPolicy-66690045-81597212 2024-09-12 13:34:46,871 - INFO - Deleted policy ctest-policy-allow-all-02818154 2024-09-12 13:34:46,872 - INFO - Deleting VN ctest-vn-45981226 2024-09-12 13:34:46,925 - DEBUG - VN fd42e149-dd50-47bd-a566-ec4fe17ad043 still in use: Unable to complete operation on network fd42e149-dd50-47bd-a566-ec4fe17ad043. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-99b4d072-d53a-43b0-a23b-8282e614ce45'] 2024-09-12 13:34:46,925 - WARNING - Deleting VN ctest-vn-45981226 failed..Will retry 2024-09-12 13:34:49,050 - DEBUG - Response for deleting network () 2024-09-12 13:34:49,050 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f1f2208b-4120-41a9-ad43-18f879d74721 2024-09-12 13:34:49,059 - DEBUG - Response Code: 404 2024-09-12 13:34:49,060 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-09-12 13:34:49,067 - DEBUG - Requesting: http://10.0.0.22:8082/domain/73bbad78-0942-463c-b05f-6e98a0106066 2024-09-12 13:34:49,132 - DEBUG - Requesting: http://10.0.0.22:8082/project/ef94f91d-5503-4675-81a8-97f5717d9d05 2024-09-12 13:34:49,223 - INFO - Validated that VN ctest-vn-45981226 is not found in API Server 2024-09-12 13:34:49,238 - DEBUG - VN ctest-vn-45981226 is not present in Agent 10.0.0.22 2024-09-12 13:34:49,238 - INFO - Validated that VN ctest-vn-45981226 is not in any agent 2024-09-12 13:34:49,259 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-45981226 info 2024-09-12 13:34:49,259 - INFO - Deleting VN ctest-vn-03100993 2024-09-12 13:34:49,413 - DEBUG - Response for deleting network () 2024-09-12 13:34:49,413 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/08db9dfb-1ea8-416c-8fa6-0096c5c711b8 2024-09-12 13:34:49,424 - DEBUG - Response Code: 404 2024-09-12 13:34:49,424 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-09-12 13:34:49,433 - DEBUG - Requesting: http://10.0.0.22:8082/domain/73bbad78-0942-463c-b05f-6e98a0106066 2024-09-12 13:34:49,494 - DEBUG - Requesting: http://10.0.0.22:8082/project/ef94f91d-5503-4675-81a8-97f5717d9d05 2024-09-12 13:34:49,586 - INFO - Validated that VN ctest-vn-03100993 is not found in API Server 2024-09-12 13:34:49,598 - DEBUG - VN ctest-vn-03100993 is not present in Agent 10.0.0.22 2024-09-12 13:34:49,598 - INFO - Validated that VN ctest-vn-03100993 is not in any agent 2024-09-12 13:34:49,617 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-03100993 info 2024-09-12 13:34:49,874 - DEBUG - No XMPP flaps were noticed during the test 2024-09-12 13:34:49,874 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2024-09-12 13:34:49,874 - INFO - -------------------------------------------------------------------------------- 2024-09-12 13:34:50,634 - INFO - Deleted project: ctest-TestBasicPolicy-66690045, ID : ef94f91d-5503-4675-81a8-97f5717d9d05