2025-05-26 18:18:26,255 - INFO - Domain Default found not creating 2025-05-26 18:18:26,423 - INFO - Project ctest-TestBasicPolicy-13357485 not found, creating it 2025-05-26 18:18:26,966 - INFO - Created Project:ctest-TestBasicPolicy-13357485, ID : 1b9dbb45-eee9-44ed-8710-a15b15b2f168 2025-05-26 18:18:29,030 - INFO - ================================================================================ 2025-05-26 18:18:29,030 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-05-26 18:18:29,030 - 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 2025-05-26 18:18:29,358 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-05-26 18:18:29,360 - INFO - Initial checks done. Running the testcase now 2025-05-26 18:18:29,360 - INFO - 2025-05-26 18:18:30,164 - DEBUG - Response for create_network : {'network': {'id': '5869f2a6-ad89-4f82-9a54-f5f6d58d94ed', 'name': 'ctest-vn-94196068', 'tenant_id': '1b9dbb45eee944ed8710a15b15b2f168', 'project_id': '1b9dbb45eee944ed8710a15b15b2f168', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13357485', 'ctest-vn-94196068'], 'port_security_enabled': True, 'description': ''}} 2025-05-26 18:18:30,427 - DEBUG - Response for create_subnet : {'subnet': {'id': '0538ad6f-9fae-41af-aa28-6cb2146e54ba', 'name': '', 'tenant_id': '1b9dbb45eee944ed8710a15b15b2f168', 'network_id': '5869f2a6-ad89-4f82-9a54-f5f6d58d94ed', 'ip_version': 4, 'cidr': '222.196.37.192/26', 'allocation_pools': [{'start': '222.196.37.194', 'end': '222.196.37.254'}], 'gateway_ip': '222.196.37.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.196.37.194', 'tags': [], 'project_id': '1b9dbb45eee944ed8710a15b15b2f168'}} 2025-05-26 18:18:30,450 - INFO - Created VN ctest-vn-94196068 2025-05-26 18:18:30,504 - DEBUG - VN ctest-vn-94196068 UUID is 5869f2a6-ad89-4f82-9a54-f5f6d58d94ed 2025-05-26 18:18:30,989 - DEBUG - Response for create_network : {'network': {'id': 'a77de82e-9dbf-4e59-85e0-b550e47d3f56', 'name': 'ctest-vn-08887578', 'tenant_id': '1b9dbb45eee944ed8710a15b15b2f168', 'project_id': '1b9dbb45eee944ed8710a15b15b2f168', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13357485', 'ctest-vn-08887578'], 'port_security_enabled': True, 'description': ''}} 2025-05-26 18:18:31,185 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b262acac-11a3-4d60-a565-8f6980bcbf1d', 'name': '', 'tenant_id': '1b9dbb45eee944ed8710a15b15b2f168', 'network_id': 'a77de82e-9dbf-4e59-85e0-b550e47d3f56', 'ip_version': 4, 'cidr': '57.40.140.64/26', 'allocation_pools': [{'start': '57.40.140.66', 'end': '57.40.140.126'}], 'gateway_ip': '57.40.140.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '57.40.140.66', 'tags': [], 'project_id': '1b9dbb45eee944ed8710a15b15b2f168'}} 2025-05-26 18:18:31,212 - INFO - Created VN ctest-vn-08887578 2025-05-26 18:18:31,272 - DEBUG - VN ctest-vn-08887578 UUID is a77de82e-9dbf-4e59-85e0-b550e47d3f56 2025-05-26 18:18:31,456 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-13357485:ctest-vn-94196068, 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-13357485:ctest-vn-08887578, 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] 2025-05-26 18:18:31,906 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5869f2a6-ad89-4f82-9a54-f5f6d58d94ed', 'name': 'ctest-vn-94196068', 'tenant_id': '1b9dbb45eee944ed8710a15b15b2f168', 'project_id': '1b9dbb45eee944ed8710a15b15b2f168', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0538ad6f-9fae-41af-aa28-6cb2146e54ba'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13357485', 'ctest-vn-94196068'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13357485', 'ctest-policy-allow-all-42645823']], 'subnet_ipam': [{'subnet_cidr': '222.196.37.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-26 18:18:32,207 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a77de82e-9dbf-4e59-85e0-b550e47d3f56', 'name': 'ctest-vn-08887578', 'tenant_id': '1b9dbb45eee944ed8710a15b15b2f168', 'project_id': '1b9dbb45eee944ed8710a15b15b2f168', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b262acac-11a3-4d60-a565-8f6980bcbf1d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13357485', 'ctest-vn-08887578'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13357485', 'ctest-policy-allow-all-42645823']], 'subnet_ipam': [{'subnet_cidr': '57.40.140.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-26 18:18:32,400 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-26 18:18:32,715 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-26 18:18:32,774 - DEBUG - Requesting: http://10.0.0.254:8082/domain/dbcd54bb-3f07-4f63-8045-38b4ff870d13 2025-05-26 18:18:32,801 - DEBUG - Requesting: http://10.0.0.254:8082/project/1b9dbb45-eee9-44ed-8710-a15b15b2f168 2025-05-26 18:18:32,915 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5869f2a6-ad89-4f82-9a54-f5f6d58d94ed 2025-05-26 18:18:32,943 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5869f2a6-ad89-4f82-9a54-f5f6d58d94ed 2025-05-26 18:18:32,972 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/87e8e747-50ea-4758-b778-fb6ce9c8a781 2025-05-26 18:18:32,993 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/87e8e747-50ea-4758-b778-fb6ce9c8a781 2025-05-26 18:18:33,009 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0f90f417-1864-4347-a3cb-5a9cb688e1e7 2025-05-26 18:18:33,023 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-26 18:18:33,023 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5869f2a6-ad89-4f82-9a54-f5f6d58d94ed 2025-05-26 18:18:33,042 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/87e8e747-50ea-4758-b778-fb6ce9c8a781 2025-05-26 18:18:33,065 - INFO - Verified VN network id 8 for VN 5869f2a6-ad89-4f82-9a54-f5f6d58d94ed 2025-05-26 18:18:33,065 - INFO - Verifications in API Server for VN ctest-vn-94196068 passed 2025-05-26 18:18:33,065 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5869f2a6-ad89-4f82-9a54-f5f6d58d94ed 2025-05-26 18:18:33,080 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/87e8e747-50ea-4758-b778-fb6ce9c8a781 2025-05-26 18:18:33,090 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/87e8e747-50ea-4758-b778-fb6ce9c8a781 2025-05-26 18:18:33,103 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0f90f417-1864-4347-a3cb-5a9cb688e1e7 2025-05-26 18:18:33,122 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13357485:ctest-vn-94196068', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13357485', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6370889945582227330', 'uuid-lslong': '11120783820378182893'}, 'enable': 'true', 'created': '2025-05-26T18:18:30', 'last-modified': '2025-05-26T18:18:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.261187'} 2025-05-26 18:18:33,131 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-26 18:18:33,131 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94196068 passed 2025-05-26 18:18:33,131 - DEBUG - ====Verifying policy data for ctest-vn-94196068 in API_Server ====== 2025-05-26 18:18:33,131 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-26 18:18:33,140 - DEBUG - Requesting: http://10.0.0.254:8082/domain/dbcd54bb-3f07-4f63-8045-38b4ff870d13 2025-05-26 18:18:33,161 - DEBUG - Requesting: http://10.0.0.254:8082/project/1b9dbb45-eee9-44ed-8710-a15b15b2f168 2025-05-26 18:18:33,262 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5869f2a6-ad89-4f82-9a54-f5f6d58d94ed 2025-05-26 18:18:33,287 - DEBUG - ==>Verifying data for policy with id: d5c77cbb-23b5-486b-9aa8-f8bd35ff4a8d, fqn: ['default-domain', 'ctest-TestBasicPolicy-13357485', 'ctest-policy-allow-all-42645823'] 2025-05-26 18:18:33,288 - INFO - VN ctest-vn-94196068 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-26 18:18:33,288 - DEBUG - Verifying the vn in opserver 2025-05-26 18:18:33,288 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13357485:ctest-vn-94196068 virtual network link through opserver 10.0.0.254 2025-05-26 18:18:33,288 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-05-26 18:18:33,600 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-05-26 18:18:33,677 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13357485:ctest-vn-94196068', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13357485:ctest-vn-94196068?flat'} 2025-05-26 18:18:33,677 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13357485:ctest-vn-94196068 is found in opserver 2025-05-26 18:18:33,720 - DEBUG - Do not have enough data to verify VN in agent 2025-05-26 18:18:33,741 - DEBUG - VRF ids for VN ctest-vn-94196068: {} 2025-05-26 18:18:33,741 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-26 18:18:33,756 - DEBUG - Requesting: http://10.0.0.254:8082/domain/dbcd54bb-3f07-4f63-8045-38b4ff870d13 2025-05-26 18:18:33,796 - DEBUG - Requesting: http://10.0.0.254:8082/project/1b9dbb45-eee9-44ed-8710-a15b15b2f168 2025-05-26 18:18:33,904 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a77de82e-9dbf-4e59-85e0-b550e47d3f56 2025-05-26 18:18:33,933 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a77de82e-9dbf-4e59-85e0-b550e47d3f56 2025-05-26 18:18:33,961 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/99bc7db4-2938-4b50-8f5e-ba1e2847e3c6 2025-05-26 18:18:33,982 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/99bc7db4-2938-4b50-8f5e-ba1e2847e3c6 2025-05-26 18:18:34,001 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1a30f848-ef4c-491c-a876-15a2a1c00eaa 2025-05-26 18:18:34,021 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-26 18:18:34,021 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a77de82e-9dbf-4e59-85e0-b550e47d3f56 2025-05-26 18:18:34,051 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/99bc7db4-2938-4b50-8f5e-ba1e2847e3c6 2025-05-26 18:18:34,101 - INFO - Verified VN network id 9 for VN a77de82e-9dbf-4e59-85e0-b550e47d3f56 2025-05-26 18:18:34,102 - INFO - Verifications in API Server for VN ctest-vn-08887578 passed 2025-05-26 18:18:34,102 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a77de82e-9dbf-4e59-85e0-b550e47d3f56 2025-05-26 18:18:34,137 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/99bc7db4-2938-4b50-8f5e-ba1e2847e3c6 2025-05-26 18:18:34,156 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/99bc7db4-2938-4b50-8f5e-ba1e2847e3c6 2025-05-26 18:18:34,177 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1a30f848-ef4c-491c-a876-15a2a1c00eaa 2025-05-26 18:18:34,216 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13357485:ctest-vn-08887578', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13357485', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12069057863335497305', 'uuid-lslong': '9646909760863027030'}, 'enable': 'true', 'created': '2025-05-26T18:18:30', 'last-modified': '2025-05-26T18:18:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.057416'} 2025-05-26 18:18:34,235 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-26 18:18:34,235 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08887578 passed 2025-05-26 18:18:34,236 - DEBUG - ====Verifying policy data for ctest-vn-08887578 in API_Server ====== 2025-05-26 18:18:34,236 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-26 18:18:34,249 - DEBUG - Requesting: http://10.0.0.254:8082/domain/dbcd54bb-3f07-4f63-8045-38b4ff870d13 2025-05-26 18:18:34,287 - DEBUG - Requesting: http://10.0.0.254:8082/project/1b9dbb45-eee9-44ed-8710-a15b15b2f168 2025-05-26 18:18:34,408 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a77de82e-9dbf-4e59-85e0-b550e47d3f56 2025-05-26 18:18:34,437 - DEBUG - ==>Verifying data for policy with id: d5c77cbb-23b5-486b-9aa8-f8bd35ff4a8d, fqn: ['default-domain', 'ctest-TestBasicPolicy-13357485', 'ctest-policy-allow-all-42645823'] 2025-05-26 18:18:34,437 - INFO - VN ctest-vn-08887578 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-26 18:18:34,437 - DEBUG - Verifying the vn in opserver 2025-05-26 18:18:34,437 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13357485:ctest-vn-08887578 virtual network link through opserver 10.0.0.254 2025-05-26 18:18:34,437 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-05-26 18:18:34,458 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13357485:ctest-vn-08887578', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13357485:ctest-vn-08887578?flat'} 2025-05-26 18:18:34,458 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13357485:ctest-vn-08887578 is found in opserver 2025-05-26 18:18:34,474 - DEBUG - Do not have enough data to verify VN in agent 2025-05-26 18:18:34,482 - DEBUG - VRF ids for VN ctest-vn-08887578: {} 2025-05-26 18:18:34,561 - DEBUG - Services list from nova: [, , ] 2025-05-26 18:18:36,055 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3340-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3340-1) 2025-05-26 18:18:37,613 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3340-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3340-1) 2025-05-26 18:18:37,614 - INFO - Waiting for VM ctest-TestBasicPolicy-13357485-00796342 to be up.. 2025-05-26 18:18:37,729 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-05-26 18:18:42,912 - DEBUG - VM is in ACTIVE state now 2025-05-26 18:18:42,913 - INFO - VM name : ctest-TestBasicPolicy-13357485-00796342 2025-05-26 18:18:43,078 - DEBUG - VM ctest-TestBasicPolicy-13357485-00796342 ID is 67879471-e2d0-450a-9bfc-f20e9dce3795 2025-05-26 18:18:43,105 - DEBUG - VM ctest-TestBasicPolicy-13357485-00796342 launched on Node cn-jenkins-deploy-platform-ansible-os-3340-1 2025-05-26 18:18:43,307 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/67879471-e2d0-450a-9bfc-f20e9dce3795 2025-05-26 18:18:43,329 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/f4b79019-2153-41b2-933e-9e735b750659 2025-05-26 18:18:46,664 - 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 1027ms') 2025-05-26 18:18:46,665 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-13357485-00796342 failed! 2025-05-26 18:18:46,733 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-13357485:ctest-vn-94196068 is 222.196.37.193 and allocation pool is NOT set 2025-05-26 18:18:48,801 - 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=6.09 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.67 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 = 1.674/3.883/6.092/2.209 ms') 2025-05-26 18:18:48,802 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-13357485-00796342 passed 2025-05-26 18:18:48,992 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-26 18:18:48,992 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-13357485-00796342, IP 222.196.37.195, Port 22 2025-05-26 18:18:49,075 - 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': ''} 2025-05-26 18:18:49,257 - DEBUG - VM ctest-TestBasicPolicy-13357485-00796342 is NOT ready for SSH connections, VM status: ACTIVE 2025-05-26 18:18:54,258 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-26 18:18:54,258 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-13357485-00796342, IP 222.196.37.195, Port 22 2025-05-26 18:18:54,455 - DEBUG - VM ctest-TestBasicPolicy-13357485-00796342 is ready for SSH connections 2025-05-26 18:18:54,455 - INFO - Waiting for VM ctest-TestBasicPolicy-13357485-32632013 to be up.. 2025-05-26 18:18:54,597 - DEBUG - VM is in ACTIVE state now 2025-05-26 18:18:54,598 - INFO - VM name : ctest-TestBasicPolicy-13357485-32632013 2025-05-26 18:18:54,748 - DEBUG - VM ctest-TestBasicPolicy-13357485-32632013 ID is e925223e-0883-419b-acc9-5b4af931e95b 2025-05-26 18:18:54,748 - DEBUG - VM ctest-TestBasicPolicy-13357485-32632013 launched on Node cn-jenkins-deploy-platform-ansible-os-3340-1 2025-05-26 18:18:54,870 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/e925223e-0883-419b-acc9-5b4af931e95b 2025-05-26 18:18:54,882 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/e4282663-4285-4e1c-8417-d73574d8993a 2025-05-26 18:18:56,170 - 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=9.72 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.659 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.659/5.188/9.718/4.529 ms') 2025-05-26 18:18:56,171 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-13357485-32632013 passed 2025-05-26 18:18:56,332 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-26 18:18:56,332 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-13357485-32632013, IP 57.40.140.67, Port 22 2025-05-26 18:18:56,516 - DEBUG - VM ctest-TestBasicPolicy-13357485-32632013 is ready for SSH connections 2025-05-26 18:18:56,517 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-26 18:18:56,517 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 57.40.140.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-05-26 18:18:56,518 - DEBUG - ping -s 56 -c 3 -W 1 57.40.140.67 2025-05-26 18:19:00,933 - DEBUG - PING 57.40.140.67 (57.40.140.67): 56 data bytes 64 bytes from 57.40.140.67: seq=0 ttl=63 time=4.371 ms 64 bytes from 57.40.140.67: seq=1 ttl=63 time=1.119 ms 64 bytes from 57.40.140.67: seq=2 ttl=63 time=1.942 ms --- 57.40.140.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.119/2.477/4.371 ms 2025-05-26 18:19:00,934 - INFO - Ping to IP 57.40.140.67 from VM ctest-TestBasicPolicy-13357485-00796342 passed 2025-05-26 18:19:01,187 - DEBUG - Policy Update Response {"network-policy": {"uuid": "d5c77cbb-23b5-486b-9aa8-f8bd35ff4a8d", "href": "http://10.0.0.254:8082/network-policy/d5c77cbb-23b5-486b-9aa8-f8bd35ff4a8d"}} 2025-05-26 18:19:01,187 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-26 18:19:01,187 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 57.40.140.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-05-26 18:19:01,188 - DEBUG - ping -s 56 -c 3 -W 1 57.40.140.67 2025-05-26 18:19:04,487 - DEBUG - PING 57.40.140.67 (57.40.140.67): 56 data bytes --- 57.40.140.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-26 18:19:04,488 - WARNING - Ping to IP 57.40.140.67 from VM ctest-TestBasicPolicy-13357485-00796342 failed 2025-05-26 18:19:04,488 - INFO - Deleting VM ctest-TestBasicPolicy-13357485-32632013 2025-05-26 18:19:04,696 - INFO - Deleting VM ctest-TestBasicPolicy-13357485-00796342 2025-05-26 18:19:05,341 - INFO - Deleted policy ctest-policy-allow-all-42645823 2025-05-26 18:19:05,342 - INFO - Deleting VN ctest-vn-08887578 2025-05-26 18:19:05,394 - DEBUG - VN a77de82e-9dbf-4e59-85e0-b550e47d3f56 still in use: Unable to complete operation on network a77de82e-9dbf-4e59-85e0-b550e47d3f56. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b66d45ab-c2ec-46c6-9e16-c88a043c9f4f'] 2025-05-26 18:19:05,394 - WARNING - Deleting VN ctest-vn-08887578 failed..Will retry 2025-05-26 18:19:07,589 - DEBUG - Response for deleting network () 2025-05-26 18:19:07,589 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/99bc7db4-2938-4b50-8f5e-ba1e2847e3c6 2025-05-26 18:19:07,596 - DEBUG - Response Code: 404 2025-05-26 18:19:07,596 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-26 18:19:07,604 - DEBUG - Requesting: http://10.0.0.254:8082/domain/dbcd54bb-3f07-4f63-8045-38b4ff870d13 2025-05-26 18:19:07,679 - DEBUG - Requesting: http://10.0.0.254:8082/project/1b9dbb45-eee9-44ed-8710-a15b15b2f168 2025-05-26 18:19:07,785 - INFO - Validated that VN ctest-vn-08887578 is not found in API Server 2025-05-26 18:19:07,811 - DEBUG - VN ctest-vn-08887578 is not present in Agent 10.0.0.254 2025-05-26 18:19:07,812 - INFO - Validated that VN ctest-vn-08887578 is not in any agent 2025-05-26 18:19:07,843 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-08887578 info 2025-05-26 18:19:07,843 - INFO - Deleting VN ctest-vn-94196068 2025-05-26 18:19:08,060 - DEBUG - Response for deleting network () 2025-05-26 18:19:08,060 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/87e8e747-50ea-4758-b778-fb6ce9c8a781 2025-05-26 18:19:08,072 - DEBUG - Response Code: 404 2025-05-26 18:19:08,072 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-26 18:19:08,080 - DEBUG - Requesting: http://10.0.0.254:8082/domain/dbcd54bb-3f07-4f63-8045-38b4ff870d13 2025-05-26 18:19:08,143 - DEBUG - Requesting: http://10.0.0.254:8082/project/1b9dbb45-eee9-44ed-8710-a15b15b2f168 2025-05-26 18:19:08,268 - INFO - Validated that VN ctest-vn-94196068 is not found in API Server 2025-05-26 18:19:08,292 - DEBUG - VN ctest-vn-94196068 is not present in Agent 10.0.0.254 2025-05-26 18:19:08,292 - INFO - Validated that VN ctest-vn-94196068 is not in any agent 2025-05-26 18:19:08,339 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-94196068 info 2025-05-26 18:19:08,654 - DEBUG - No XMPP flaps were noticed during the test
2025-05-26 18:19:08,654 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:39]
2025-05-26 18:19:08,655 - INFO - -------------------------------------------------------------------------------- 2025-05-26 18:19:09,659 - INFO - Deleted project: ctest-TestBasicPolicy-13357485, ID : 1b9dbb45-eee9-44ed-8710-a15b15b2f168