2025-05-15 14:27:20,253 - INFO - Domain Default found not creating 2025-05-15 14:27:20,419 - INFO - Project ctest-TestBasicPolicy-46805391 not found, creating it 2025-05-15 14:27:20,898 - INFO - Created Project:ctest-TestBasicPolicy-46805391, ID : 6ee71507-904b-40d0-aaf9-5b5de95277a1 2025-05-15 14:27:22,515 - INFO - ================================================================================ 2025-05-15 14:27:22,515 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-05-15 14:27:22,515 - 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-15 14:27:22,774 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-05-15 14:27:22,774 - INFO - Initial checks done. Running the testcase now 2025-05-15 14:27:22,774 - INFO - 2025-05-15 14:27:23,402 - DEBUG - Response for create_network : {'network': {'id': 'bfaa19e9-88c4-438e-9b45-9b98d05468a1', 'name': 'ctest-vn-53986673', 'tenant_id': '6ee71507904b40d0aaf95b5de95277a1', 'project_id': '6ee71507904b40d0aaf95b5de95277a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46805391', 'ctest-vn-53986673'], 'port_security_enabled': True, 'description': ''}} 2025-05-15 14:27:23,603 - DEBUG - Response for create_subnet : {'subnet': {'id': '71f2dc70-b93b-4895-b169-aa742dfeed55', 'name': '', 'tenant_id': '6ee71507904b40d0aaf95b5de95277a1', 'network_id': 'bfaa19e9-88c4-438e-9b45-9b98d05468a1', 'ip_version': 4, 'cidr': '86.221.145.64/26', 'allocation_pools': [{'start': '86.221.145.66', 'end': '86.221.145.126'}], 'gateway_ip': '86.221.145.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '86.221.145.66', 'tags': [], 'project_id': '6ee71507904b40d0aaf95b5de95277a1'}} 2025-05-15 14:27:23,623 - INFO - Created VN ctest-vn-53986673 2025-05-15 14:27:23,679 - DEBUG - VN ctest-vn-53986673 UUID is bfaa19e9-88c4-438e-9b45-9b98d05468a1 2025-05-15 14:27:24,028 - DEBUG - Response for create_network : {'network': {'id': '143c55a5-48f9-48a0-bef8-fafecf19373f', 'name': 'ctest-vn-95337800', 'tenant_id': '6ee71507904b40d0aaf95b5de95277a1', 'project_id': '6ee71507904b40d0aaf95b5de95277a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46805391', 'ctest-vn-95337800'], 'port_security_enabled': True, 'description': ''}} 2025-05-15 14:27:24,267 - DEBUG - Response for create_subnet : {'subnet': {'id': '1ceb54cf-862b-43a1-aabf-c56c7b87d8c4', 'name': '', 'tenant_id': '6ee71507904b40d0aaf95b5de95277a1', 'network_id': '143c55a5-48f9-48a0-bef8-fafecf19373f', 'ip_version': 4, 'cidr': '38.229.118.192/26', 'allocation_pools': [{'start': '38.229.118.194', 'end': '38.229.118.254'}], 'gateway_ip': '38.229.118.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.229.118.194', 'tags': [], 'project_id': '6ee71507904b40d0aaf95b5de95277a1'}} 2025-05-15 14:27:24,288 - INFO - Created VN ctest-vn-95337800 2025-05-15 14:27:24,343 - DEBUG - VN ctest-vn-95337800 UUID is 143c55a5-48f9-48a0-bef8-fafecf19373f 2025-05-15 14:27:24,466 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-46805391:ctest-vn-53986673, 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-46805391:ctest-vn-95337800, 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-15 14:27:24,825 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bfaa19e9-88c4-438e-9b45-9b98d05468a1', 'name': 'ctest-vn-53986673', 'tenant_id': '6ee71507904b40d0aaf95b5de95277a1', 'project_id': '6ee71507904b40d0aaf95b5de95277a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['71f2dc70-b93b-4895-b169-aa742dfeed55'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46805391', 'ctest-vn-53986673'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46805391', 'ctest-policy-allow-all-14643905']], 'subnet_ipam': [{'subnet_cidr': '86.221.145.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-15 14:27:25,077 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '143c55a5-48f9-48a0-bef8-fafecf19373f', 'name': 'ctest-vn-95337800', 'tenant_id': '6ee71507904b40d0aaf95b5de95277a1', 'project_id': '6ee71507904b40d0aaf95b5de95277a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1ceb54cf-862b-43a1-aabf-c56c7b87d8c4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46805391', 'ctest-vn-95337800'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46805391', 'ctest-policy-allow-all-14643905']], 'subnet_ipam': [{'subnet_cidr': '38.229.118.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-15 14:27:25,247 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-15 14:27:25,588 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-15 14:27:25,621 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fd1687cc-90ba-4a5a-b088-e233b10cff42 2025-05-15 14:27:25,637 - DEBUG - Requesting: http://10.0.0.50:8082/project/6ee71507-904b-40d0-aaf9-5b5de95277a1 2025-05-15 14:27:25,715 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bfaa19e9-88c4-438e-9b45-9b98d05468a1 2025-05-15 14:27:25,729 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bfaa19e9-88c4-438e-9b45-9b98d05468a1 2025-05-15 14:27:25,740 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fcc63e86-74dd-4560-ae69-e48f10332fe5 2025-05-15 14:27:25,749 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fcc63e86-74dd-4560-ae69-e48f10332fe5 2025-05-15 14:27:25,759 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5111e669-45b0-476f-a5f3-0c0e5b15e50f 2025-05-15 14:27:25,767 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-15 14:27:25,767 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bfaa19e9-88c4-438e-9b45-9b98d05468a1 2025-05-15 14:27:25,779 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fcc63e86-74dd-4560-ae69-e48f10332fe5 2025-05-15 14:27:25,799 - INFO - Verified VN network id 9 for VN bfaa19e9-88c4-438e-9b45-9b98d05468a1 2025-05-15 14:27:25,799 - INFO - Verifications in API Server for VN ctest-vn-53986673 passed 2025-05-15 14:27:25,799 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bfaa19e9-88c4-438e-9b45-9b98d05468a1 2025-05-15 14:27:25,812 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fcc63e86-74dd-4560-ae69-e48f10332fe5 2025-05-15 14:27:25,823 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fcc63e86-74dd-4560-ae69-e48f10332fe5 2025-05-15 14:27:25,832 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5111e669-45b0-476f-a5f3-0c0e5b15e50f 2025-05-15 14:27:25,849 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46805391:ctest-vn-53986673', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46805391', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13810879698097685390', 'uuid-lslong': '11188519929904392353'}, 'enable': 'true', 'created': '2025-05-15T14:27:23', 'last-modified': '2025-05-15T14:27:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.068332'} 2025-05-15 14:27:25,857 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-15 14:27:25,857 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53986673 passed 2025-05-15 14:27:25,858 - DEBUG - ====Verifying policy data for ctest-vn-53986673 in API_Server ====== 2025-05-15 14:27:25,858 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-15 14:27:25,865 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fd1687cc-90ba-4a5a-b088-e233b10cff42 2025-05-15 14:27:25,878 - DEBUG - Requesting: http://10.0.0.50:8082/project/6ee71507-904b-40d0-aaf9-5b5de95277a1 2025-05-15 14:27:26,024 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bfaa19e9-88c4-438e-9b45-9b98d05468a1 2025-05-15 14:27:26,037 - DEBUG - ==>Verifying data for policy with id: 023227ca-ae0f-4e31-81b3-79fce558538c, fqn: ['default-domain', 'ctest-TestBasicPolicy-46805391', 'ctest-policy-allow-all-14643905'] 2025-05-15 14:27:26,037 - INFO - VN ctest-vn-53986673 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-15 14:27:26,037 - DEBUG - Verifying the vn in opserver 2025-05-15 14:27:26,037 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46805391:ctest-vn-53986673 virtual network link through opserver 10.0.0.50 2025-05-15 14:27:26,037 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-05-15 14:27:26,372 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-05-15 14:27:26,434 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46805391:ctest-vn-53986673', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46805391:ctest-vn-53986673?flat'} 2025-05-15 14:27:26,434 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46805391:ctest-vn-53986673 is found in opserver 2025-05-15 14:27:26,447 - DEBUG - Do not have enough data to verify VN in agent 2025-05-15 14:27:26,454 - DEBUG - VRF ids for VN ctest-vn-53986673: {} 2025-05-15 14:27:26,454 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-15 14:27:26,462 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fd1687cc-90ba-4a5a-b088-e233b10cff42 2025-05-15 14:27:26,478 - DEBUG - Requesting: http://10.0.0.50:8082/project/6ee71507-904b-40d0-aaf9-5b5de95277a1 2025-05-15 14:27:26,560 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/143c55a5-48f9-48a0-bef8-fafecf19373f 2025-05-15 14:27:26,577 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/143c55a5-48f9-48a0-bef8-fafecf19373f 2025-05-15 14:27:26,591 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/05aefb87-0bb1-4922-80f4-3fb74501e4ae 2025-05-15 14:27:26,602 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/05aefb87-0bb1-4922-80f4-3fb74501e4ae 2025-05-15 14:27:26,613 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/63ce946d-0874-4fa7-80f4-797396f4328c 2025-05-15 14:27:26,625 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-15 14:27:26,626 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/143c55a5-48f9-48a0-bef8-fafecf19373f 2025-05-15 14:27:26,639 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/05aefb87-0bb1-4922-80f4-3fb74501e4ae 2025-05-15 14:27:26,658 - INFO - Verified VN network id 10 for VN 143c55a5-48f9-48a0-bef8-fafecf19373f 2025-05-15 14:27:26,658 - INFO - Verifications in API Server for VN ctest-vn-95337800 passed 2025-05-15 14:27:26,658 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/143c55a5-48f9-48a0-bef8-fafecf19373f 2025-05-15 14:27:26,670 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/05aefb87-0bb1-4922-80f4-3fb74501e4ae 2025-05-15 14:27:26,680 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/05aefb87-0bb1-4922-80f4-3fb74501e4ae 2025-05-15 14:27:26,689 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/63ce946d-0874-4fa7-80f4-797396f4328c 2025-05-15 14:27:26,705 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46805391:ctest-vn-95337800', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46805391', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1458134547743459488', 'uuid-lslong': '13761024633733723967'}, 'enable': 'true', 'created': '2025-05-15T14:27:23', 'last-modified': '2025-05-15T14:27:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.656819'} 2025-05-15 14:27:26,713 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-15 14:27:26,713 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95337800 passed 2025-05-15 14:27:26,713 - DEBUG - ====Verifying policy data for ctest-vn-95337800 in API_Server ====== 2025-05-15 14:27:26,713 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-15 14:27:26,720 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fd1687cc-90ba-4a5a-b088-e233b10cff42 2025-05-15 14:27:26,734 - DEBUG - Requesting: http://10.0.0.50:8082/project/6ee71507-904b-40d0-aaf9-5b5de95277a1 2025-05-15 14:27:26,811 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/143c55a5-48f9-48a0-bef8-fafecf19373f 2025-05-15 14:27:26,825 - DEBUG - ==>Verifying data for policy with id: 023227ca-ae0f-4e31-81b3-79fce558538c, fqn: ['default-domain', 'ctest-TestBasicPolicy-46805391', 'ctest-policy-allow-all-14643905'] 2025-05-15 14:27:26,825 - INFO - VN ctest-vn-95337800 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-15 14:27:26,825 - DEBUG - Verifying the vn in opserver 2025-05-15 14:27:26,825 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46805391:ctest-vn-95337800 virtual network link through opserver 10.0.0.50 2025-05-15 14:27:26,825 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-05-15 14:27:26,846 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46805391:ctest-vn-95337800', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46805391:ctest-vn-95337800?flat'} 2025-05-15 14:27:26,846 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46805391:ctest-vn-95337800 is found in opserver 2025-05-15 14:27:26,859 - DEBUG - Do not have enough data to verify VN in agent 2025-05-15 14:27:26,865 - DEBUG - VRF ids for VN ctest-vn-95337800: {} 2025-05-15 14:27:26,926 - DEBUG - Services list from nova: [, , ] 2025-05-15 14:27:28,133 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3319-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3319-1) 2025-05-15 14:27:29,745 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3319-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3319-1) 2025-05-15 14:27:29,745 - INFO - Waiting for VM ctest-TestBasicPolicy-46805391-09242596 to be up.. 2025-05-15 14:27:29,834 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-05-15 14:27:34,927 - DEBUG - VM is in ACTIVE state now 2025-05-15 14:27:34,927 - INFO - VM name : ctest-TestBasicPolicy-46805391-09242596 2025-05-15 14:27:35,024 - DEBUG - VM ctest-TestBasicPolicy-46805391-09242596 ID is 5ceffbb5-b33d-4e9b-b12e-54ac6428eeec 2025-05-15 14:27:35,057 - DEBUG - VM ctest-TestBasicPolicy-46805391-09242596 launched on Node cn-jenkins-deploy-platform-ansible-os-3319-1 2025-05-15 14:27:35,164 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/5ceffbb5-b33d-4e9b-b12e-54ac6428eeec 2025-05-15 14:27:35,173 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/0fff2a2e-1eff-431b-8fe9-509d341d8612 2025-05-15 14:27:38,456 - 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 1029ms') 2025-05-15 14:27:38,456 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-46805391-09242596 failed! 2025-05-15 14:27:38,516 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-46805391:ctest-vn-53986673 is 86.221.145.65 and allocation pool is NOT set 2025-05-15 14:27:40,584 - 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.75 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.33 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.328/4.541/7.754/3.213 ms') 2025-05-15 14:27:40,584 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-46805391-09242596 passed 2025-05-15 14:27:40,743 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-15 14:27:40,743 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-46805391-09242596, IP 86.221.145.67, Port 22 2025-05-15 14:27:40,808 - 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-15 14:27:40,896 - DEBUG - VM ctest-TestBasicPolicy-46805391-09242596 is NOT ready for SSH connections, VM status: ACTIVE 2025-05-15 14:27:45,896 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-15 14:27:45,897 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-46805391-09242596, IP 86.221.145.67, Port 22 2025-05-15 14:27:46,055 - DEBUG - VM ctest-TestBasicPolicy-46805391-09242596 is ready for SSH connections 2025-05-15 14:27:46,055 - INFO - Waiting for VM ctest-TestBasicPolicy-46805391-96708916 to be up.. 2025-05-15 14:27:46,167 - DEBUG - VM is in ACTIVE state now 2025-05-15 14:27:46,167 - INFO - VM name : ctest-TestBasicPolicy-46805391-96708916 2025-05-15 14:27:46,281 - DEBUG - VM ctest-TestBasicPolicy-46805391-96708916 ID is 169a17e7-8de3-4385-96f2-1352f020b2bb 2025-05-15 14:27:46,281 - DEBUG - VM ctest-TestBasicPolicy-46805391-96708916 launched on Node cn-jenkins-deploy-platform-ansible-os-3319-1 2025-05-15 14:27:46,375 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/169a17e7-8de3-4385-96f2-1352f020b2bb 2025-05-15 14:27:46,387 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/29e3e493-e521-4b3e-90a7-d074dd558a44 2025-05-15 14:27:47,634 - 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.21 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.445 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.445/2.325/4.205/1.880 ms') 2025-05-15 14:27:47,634 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-46805391-96708916 passed 2025-05-15 14:27:47,791 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-15 14:27:47,791 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-46805391-96708916, IP 38.229.118.195, Port 22 2025-05-15 14:27:47,946 - DEBUG - VM ctest-TestBasicPolicy-46805391-96708916 is ready for SSH connections 2025-05-15 14:27:47,946 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-15 14:27:47,946 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 38.229.118.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-05-15 14:27:47,946 - DEBUG - ping -s 56 -c 3 -W 1 38.229.118.195 2025-05-15 14:27:52,033 - DEBUG - PING 38.229.118.195 (38.229.118.195): 56 data bytes 64 bytes from 38.229.118.195: seq=0 ttl=63 time=4.318 ms 64 bytes from 38.229.118.195: seq=1 ttl=63 time=0.911 ms 64 bytes from 38.229.118.195: seq=2 ttl=63 time=1.119 ms --- 38.229.118.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.911/2.116/4.318 ms 2025-05-15 14:27:52,033 - INFO - Ping to IP 38.229.118.195 from VM ctest-TestBasicPolicy-46805391-09242596 passed 2025-05-15 14:27:52,223 - DEBUG - Policy Update Response {"network-policy": {"uuid": "023227ca-ae0f-4e31-81b3-79fce558538c", "href": "http://10.0.0.50:8082/network-policy/023227ca-ae0f-4e31-81b3-79fce558538c"}} 2025-05-15 14:27:52,223 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-15 14:27:52,223 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 38.229.118.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-05-15 14:27:52,223 - DEBUG - ping -s 56 -c 3 -W 1 38.229.118.195 2025-05-15 14:27:55,437 - DEBUG - PING 38.229.118.195 (38.229.118.195): 56 data bytes 64 bytes from 38.229.118.195: seq=0 ttl=63 time=1.574 ms --- 38.229.118.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.574/1.574/1.574 ms 2025-05-15 14:27:55,437 - WARNING - Ping to IP 38.229.118.195 from VM ctest-TestBasicPolicy-46805391-09242596 failed 2025-05-15 14:27:55,437 - INFO - Deleting VM ctest-TestBasicPolicy-46805391-96708916 2025-05-15 14:27:55,521 - INFO - Deleting VM ctest-TestBasicPolicy-46805391-09242596 2025-05-15 14:27:55,959 - INFO - Deleted policy ctest-policy-allow-all-14643905 2025-05-15 14:27:55,959 - INFO - Deleting VN ctest-vn-95337800 2025-05-15 14:27:56,005 - DEBUG - VN 143c55a5-48f9-48a0-bef8-fafecf19373f still in use: Unable to complete operation on network 143c55a5-48f9-48a0-bef8-fafecf19373f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-33339f38-ad93-4128-ab48-8f665c1510ce'] 2025-05-15 14:27:56,006 - WARNING - Deleting VN ctest-vn-95337800 failed..Will retry 2025-05-15 14:27:58,125 - DEBUG - Response for deleting network () 2025-05-15 14:27:58,126 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/05aefb87-0bb1-4922-80f4-3fb74501e4ae 2025-05-15 14:27:58,133 - DEBUG - Response Code: 404 2025-05-15 14:27:58,133 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-15 14:27:58,141 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fd1687cc-90ba-4a5a-b088-e233b10cff42 2025-05-15 14:27:58,198 - DEBUG - Requesting: http://10.0.0.50:8082/project/6ee71507-904b-40d0-aaf9-5b5de95277a1 2025-05-15 14:27:58,279 - INFO - Validated that VN ctest-vn-95337800 is not found in API Server 2025-05-15 14:27:58,291 - DEBUG - VN ctest-vn-95337800 is not present in Agent 10.0.0.50 2025-05-15 14:27:58,291 - INFO - Validated that VN ctest-vn-95337800 is not in any agent 2025-05-15 14:27:58,309 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-95337800 info 2025-05-15 14:27:58,309 - INFO - Deleting VN ctest-vn-53986673 2025-05-15 14:27:58,427 - DEBUG - Response for deleting network () 2025-05-15 14:27:58,427 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fcc63e86-74dd-4560-ae69-e48f10332fe5 2025-05-15 14:27:58,437 - DEBUG - Response Code: 404 2025-05-15 14:27:58,437 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-15 14:27:58,444 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fd1687cc-90ba-4a5a-b088-e233b10cff42 2025-05-15 14:27:58,501 - DEBUG - Requesting: http://10.0.0.50:8082/project/6ee71507-904b-40d0-aaf9-5b5de95277a1 2025-05-15 14:27:58,578 - INFO - Validated that VN ctest-vn-53986673 is not found in API Server 2025-05-15 14:27:58,591 - DEBUG - VN ctest-vn-53986673 is not present in Agent 10.0.0.50 2025-05-15 14:27:58,591 - INFO - Validated that VN ctest-vn-53986673 is not in any agent 2025-05-15 14:27:58,609 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-53986673 info 2025-05-15 14:27:58,866 - DEBUG - No XMPP flaps were noticed during the test
2025-05-15 14:27:58,866 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-05-15 14:27:58,866 - INFO - -------------------------------------------------------------------------------- 2025-05-15 14:27:59,606 - INFO - Deleted project: ctest-TestBasicPolicy-46805391, ID : 6ee71507-904b-40d0-aaf9-5b5de95277a1