2025-01-11 21:53:59,416 - INFO - Domain Default found not creating 2025-01-11 21:53:59,559 - INFO - Project ctest-TestBasicPolicy-31543938 not found, creating it 2025-01-11 21:54:00,100 - INFO - Created Project:ctest-TestBasicPolicy-31543938, ID : aa70ec6f-9e60-4408-895d-f232d703c647 2025-01-11 21:54:01,582 - INFO - ================================================================================ 2025-01-11 21:54:01,582 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-11 21:54:01,582 - 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-01-11 21:54:01,840 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.33': '0'}} with 2025-01-11 21:54:01,840 - INFO - Initial checks done. Running the testcase now 2025-01-11 21:54:01,840 - INFO - 2025-01-11 21:54:02,408 - DEBUG - Response for create_network : {'network': {'id': 'd6b20f6e-7798-4ed8-a05a-e52a6a564492', 'name': 'ctest-vn-76005562', 'tenant_id': 'aa70ec6f9e604408895df232d703c647', 'project_id': 'aa70ec6f9e604408895df232d703c647', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31543938', 'ctest-vn-76005562'], 'port_security_enabled': True, 'description': ''}} 2025-01-11 21:54:02,560 - DEBUG - Response for create_subnet : {'subnet': {'id': '6f90d298-9bd4-4ed1-b44d-769bc184eccb', 'name': '', 'tenant_id': 'aa70ec6f9e604408895df232d703c647', 'network_id': 'd6b20f6e-7798-4ed8-a05a-e52a6a564492', 'ip_version': 4, 'cidr': '62.31.196.192/26', 'allocation_pools': [{'start': '62.31.196.194', 'end': '62.31.196.254'}], 'gateway_ip': '62.31.196.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.31.196.194', 'tags': [], 'project_id': 'aa70ec6f9e604408895df232d703c647'}} 2025-01-11 21:54:02,577 - INFO - Created VN ctest-vn-76005562 2025-01-11 21:54:02,629 - DEBUG - VN ctest-vn-76005562 UUID is d6b20f6e-7798-4ed8-a05a-e52a6a564492 2025-01-11 21:54:02,922 - DEBUG - Response for create_network : {'network': {'id': 'dffd1c6c-62ed-48ac-8fb9-7d7198ae58c5', 'name': 'ctest-vn-94021626', 'tenant_id': 'aa70ec6f9e604408895df232d703c647', 'project_id': 'aa70ec6f9e604408895df232d703c647', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31543938', 'ctest-vn-94021626'], 'port_security_enabled': True, 'description': ''}} 2025-01-11 21:54:03,149 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bf7d1bfc-821a-4a95-9cc8-cf12ddfce431', 'name': '', 'tenant_id': 'aa70ec6f9e604408895df232d703c647', 'network_id': 'dffd1c6c-62ed-48ac-8fb9-7d7198ae58c5', 'ip_version': 4, 'cidr': '152.105.7.128/26', 'allocation_pools': [{'start': '152.105.7.130', 'end': '152.105.7.190'}], 'gateway_ip': '152.105.7.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '152.105.7.130', 'tags': [], 'project_id': 'aa70ec6f9e604408895df232d703c647'}} 2025-01-11 21:54:03,168 - INFO - Created VN ctest-vn-94021626 2025-01-11 21:54:03,221 - DEBUG - VN ctest-vn-94021626 UUID is dffd1c6c-62ed-48ac-8fb9-7d7198ae58c5 2025-01-11 21:54:03,335 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-31543938:ctest-vn-76005562, 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-31543938:ctest-vn-94021626, 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-01-11 21:54:03,662 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd6b20f6e-7798-4ed8-a05a-e52a6a564492', 'name': 'ctest-vn-76005562', 'tenant_id': 'aa70ec6f9e604408895df232d703c647', 'project_id': 'aa70ec6f9e604408895df232d703c647', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6f90d298-9bd4-4ed1-b44d-769bc184eccb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31543938', 'ctest-vn-76005562'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31543938', 'ctest-policy-allow-all-82212252']], 'subnet_ipam': [{'subnet_cidr': '62.31.196.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-11 21:54:03,890 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dffd1c6c-62ed-48ac-8fb9-7d7198ae58c5', 'name': 'ctest-vn-94021626', 'tenant_id': 'aa70ec6f9e604408895df232d703c647', 'project_id': 'aa70ec6f9e604408895df232d703c647', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bf7d1bfc-821a-4a95-9cc8-cf12ddfce431'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31543938', 'ctest-vn-94021626'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31543938', 'ctest-policy-allow-all-82212252']], 'subnet_ipam': [{'subnet_cidr': '152.105.7.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-11 21:54:04,053 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-01-11 21:54:04,350 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-01-11 21:54:04,380 - DEBUG - Requesting: http://10.0.0.23:8082/domain/288e845b-53e6-4945-9c49-0890dba5d0d6 2025-01-11 21:54:04,394 - DEBUG - Requesting: http://10.0.0.23:8082/project/aa70ec6f-9e60-4408-895d-f232d703c647 2025-01-11 21:54:04,472 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/d6b20f6e-7798-4ed8-a05a-e52a6a564492 2025-01-11 21:54:04,484 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/d6b20f6e-7798-4ed8-a05a-e52a6a564492 2025-01-11 21:54:04,495 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/98866af9-3345-4d57-ad44-69bdee1a18f9 2025-01-11 21:54:04,504 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/98866af9-3345-4d57-ad44-69bdee1a18f9 2025-01-11 21:54:04,513 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/6a9a48a4-1da6-4326-b148-1c9711f9c810 2025-01-11 21:54:04,523 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-11 21:54:04,523 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/d6b20f6e-7798-4ed8-a05a-e52a6a564492 2025-01-11 21:54:04,534 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/98866af9-3345-4d57-ad44-69bdee1a18f9 2025-01-11 21:54:04,551 - INFO - Verified VN network id 8 for VN d6b20f6e-7798-4ed8-a05a-e52a6a564492 2025-01-11 21:54:04,551 - INFO - Verifications in API Server for VN ctest-vn-76005562 passed 2025-01-11 21:54:04,552 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/d6b20f6e-7798-4ed8-a05a-e52a6a564492 2025-01-11 21:54:04,561 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/98866af9-3345-4d57-ad44-69bdee1a18f9 2025-01-11 21:54:04,570 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/98866af9-3345-4d57-ad44-69bdee1a18f9 2025-01-11 21:54:04,578 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/6a9a48a4-1da6-4326-b148-1c9711f9c810 2025-01-11 21:54:04,590 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31543938:ctest-vn-76005562', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31543938', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15470444637098364632', 'uuid-lslong': '11554799764307854482'}, 'enable': 'true', 'created': '2025-01-11T21:54:02', 'last-modified': '2025-01-11T21:54:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.950021'} 2025-01-11 21:54:04,597 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-11 21:54:04,597 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76005562 passed 2025-01-11 21:54:04,597 - DEBUG - ====Verifying policy data for ctest-vn-76005562 in API_Server ====== 2025-01-11 21:54:04,597 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-01-11 21:54:04,604 - DEBUG - Requesting: http://10.0.0.23:8082/domain/288e845b-53e6-4945-9c49-0890dba5d0d6 2025-01-11 21:54:04,616 - DEBUG - Requesting: http://10.0.0.23:8082/project/aa70ec6f-9e60-4408-895d-f232d703c647 2025-01-11 21:54:04,692 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/d6b20f6e-7798-4ed8-a05a-e52a6a564492 2025-01-11 21:54:04,705 - DEBUG - ==>Verifying data for policy with id: 27b583c6-0a1a-42a8-aaae-377ef655769f, fqn: ['default-domain', 'ctest-TestBasicPolicy-31543938', 'ctest-policy-allow-all-82212252'] 2025-01-11 21:54:04,705 - INFO - VN ctest-vn-76005562 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-11 21:54:04,705 - DEBUG - Verifying the vn in opserver 2025-01-11 21:54:04,705 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31543938:ctest-vn-76005562 virtual network link through opserver 10.0.0.23 2025-01-11 21:54:04,705 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-01-11 21:54:04,999 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-01-11 21:54:05,061 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31543938:ctest-vn-76005562', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31543938:ctest-vn-76005562?flat'} 2025-01-11 21:54:05,061 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31543938:ctest-vn-76005562 is found in opserver 2025-01-11 21:54:05,073 - DEBUG - Do not have enough data to verify VN in agent 2025-01-11 21:54:05,079 - DEBUG - VRF ids for VN ctest-vn-76005562: {} 2025-01-11 21:54:05,079 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-01-11 21:54:05,085 - DEBUG - Requesting: http://10.0.0.23:8082/domain/288e845b-53e6-4945-9c49-0890dba5d0d6 2025-01-11 21:54:05,099 - DEBUG - Requesting: http://10.0.0.23:8082/project/aa70ec6f-9e60-4408-895d-f232d703c647 2025-01-11 21:54:05,174 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/dffd1c6c-62ed-48ac-8fb9-7d7198ae58c5 2025-01-11 21:54:05,187 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/dffd1c6c-62ed-48ac-8fb9-7d7198ae58c5 2025-01-11 21:54:05,199 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1253a647-bc1d-463b-8c56-84c77842aa64 2025-01-11 21:54:05,207 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1253a647-bc1d-463b-8c56-84c77842aa64 2025-01-11 21:54:05,214 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/fd3c375a-3d9b-4451-abe7-2e141ab80338 2025-01-11 21:54:05,221 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-11 21:54:05,221 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/dffd1c6c-62ed-48ac-8fb9-7d7198ae58c5 2025-01-11 21:54:05,232 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1253a647-bc1d-463b-8c56-84c77842aa64 2025-01-11 21:54:05,247 - INFO - Verified VN network id 9 for VN dffd1c6c-62ed-48ac-8fb9-7d7198ae58c5 2025-01-11 21:54:05,247 - INFO - Verifications in API Server for VN ctest-vn-94021626 passed 2025-01-11 21:54:05,247 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/dffd1c6c-62ed-48ac-8fb9-7d7198ae58c5 2025-01-11 21:54:05,258 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1253a647-bc1d-463b-8c56-84c77842aa64 2025-01-11 21:54:05,265 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1253a647-bc1d-463b-8c56-84c77842aa64 2025-01-11 21:54:05,272 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/fd3c375a-3d9b-4451-abe7-2e141ab80338 2025-01-11 21:54:05,286 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31543938:ctest-vn-94021626', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31543938', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16140087891407489196', 'uuid-lslong': '10356446744961505477'}, 'enable': 'true', 'created': '2025-01-11T21:54:02', 'last-modified': '2025-01-11T21:54:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.408608'} 2025-01-11 21:54:05,292 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-11 21:54:05,292 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94021626 passed 2025-01-11 21:54:05,292 - DEBUG - ====Verifying policy data for ctest-vn-94021626 in API_Server ====== 2025-01-11 21:54:05,292 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-01-11 21:54:05,299 - DEBUG - Requesting: http://10.0.0.23:8082/domain/288e845b-53e6-4945-9c49-0890dba5d0d6 2025-01-11 21:54:05,310 - DEBUG - Requesting: http://10.0.0.23:8082/project/aa70ec6f-9e60-4408-895d-f232d703c647 2025-01-11 21:54:05,385 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/dffd1c6c-62ed-48ac-8fb9-7d7198ae58c5 2025-01-11 21:54:05,395 - DEBUG - ==>Verifying data for policy with id: 27b583c6-0a1a-42a8-aaae-377ef655769f, fqn: ['default-domain', 'ctest-TestBasicPolicy-31543938', 'ctest-policy-allow-all-82212252'] 2025-01-11 21:54:05,395 - INFO - VN ctest-vn-94021626 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-11 21:54:05,395 - DEBUG - Verifying the vn in opserver 2025-01-11 21:54:05,395 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31543938:ctest-vn-94021626 virtual network link through opserver 10.0.0.23 2025-01-11 21:54:05,395 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-01-11 21:54:05,407 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31543938:ctest-vn-94021626', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31543938:ctest-vn-94021626?flat'} 2025-01-11 21:54:05,407 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31543938:ctest-vn-94021626 is found in opserver 2025-01-11 21:54:05,417 - DEBUG - Do not have enough data to verify VN in agent 2025-01-11 21:54:05,422 - DEBUG - VRF ids for VN ctest-vn-94021626: {} 2025-01-11 21:54:05,481 - DEBUG - Services list from nova: [, , ] 2025-01-11 21:54:06,613 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2601-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2601-1) 2025-01-11 21:54:07,800 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2601-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2601-1) 2025-01-11 21:54:07,801 - INFO - Waiting for VM ctest-TestBasicPolicy-31543938-39738783 to be up.. 2025-01-11 21:54:07,896 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-11 21:54:12,986 - DEBUG - VM is in ACTIVE state now 2025-01-11 21:54:12,986 - INFO - VM name : ctest-TestBasicPolicy-31543938-39738783 2025-01-11 21:54:13,064 - DEBUG - VM ctest-TestBasicPolicy-31543938-39738783 ID is a1cfc1e4-8a11-48d8-b6e8-f52df5f40b41 2025-01-11 21:54:13,092 - DEBUG - VM ctest-TestBasicPolicy-31543938-39738783 launched on Node cn-jenkins-deploy-platform-ansible-os-2601-1 2025-01-11 21:54:13,181 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/a1cfc1e4-8a11-48d8-b6e8-f52df5f40b41 2025-01-11 21:54:13,192 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/cf29d541-686c-41c7-b14a-a32e95dac6d9 2025-01-11 21:54:16,407 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1007ms') 2025-01-11 21:54:16,407 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-31543938-39738783 failed! 2025-01-11 21:54:16,465 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-31543938:ctest-vn-76005562 is 62.31.196.193 and allocation pool is NOT set 2025-01-11 21:54:18,522 - 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.63 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.853 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.853/4.239/7.626/3.386 ms') 2025-01-11 21:54:18,522 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-31543938-39738783 passed 2025-01-11 21:54:18,673 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-11 21:54:18,673 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-31543938-39738783, IP 62.31.196.195, Port 22 2025-01-11 21:54:18,740 - 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-01-11 21:54:18,825 - DEBUG - VM ctest-TestBasicPolicy-31543938-39738783 is NOT ready for SSH connections, VM status: ACTIVE 2025-01-11 21:54:23,826 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-11 21:54:23,826 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-31543938-39738783, IP 62.31.196.195, Port 22 2025-01-11 21:54:23,997 - DEBUG - VM ctest-TestBasicPolicy-31543938-39738783 is ready for SSH connections 2025-01-11 21:54:23,998 - INFO - Waiting for VM ctest-TestBasicPolicy-31543938-57216023 to be up.. 2025-01-11 21:54:24,079 - DEBUG - VM is in ACTIVE state now 2025-01-11 21:54:24,079 - INFO - VM name : ctest-TestBasicPolicy-31543938-57216023 2025-01-11 21:54:24,166 - DEBUG - VM ctest-TestBasicPolicy-31543938-57216023 ID is 36c1ee3d-cd66-43e4-901c-d01e73a990e7 2025-01-11 21:54:24,166 - DEBUG - VM ctest-TestBasicPolicy-31543938-57216023 launched on Node cn-jenkins-deploy-platform-ansible-os-2601-1 2025-01-11 21:54:24,241 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/36c1ee3d-cd66-43e4-901c-d01e73a990e7 2025-01-11 21:54:24,251 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/1a515c92-f954-4320-8b59-57db67055ea3 2025-01-11 21:54:25,489 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=2.91 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.427 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.427/1.669/2.912/1.242 ms') 2025-01-11 21:54:25,489 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-31543938-57216023 passed 2025-01-11 21:54:25,645 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-11 21:54:25,646 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-31543938-57216023, IP 152.105.7.131, Port 22 2025-01-11 21:54:25,801 - DEBUG - VM ctest-TestBasicPolicy-31543938-57216023 is ready for SSH connections 2025-01-11 21:54:25,801 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-11 21:54:25,801 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 152.105.7.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2025-01-11 21:54:25,801 - DEBUG - ping -s 56 -c 3 -W 1 152.105.7.131 2025-01-11 21:54:29,490 - DEBUG - PING 152.105.7.131 (152.105.7.131): 56 data bytes 64 bytes from 152.105.7.131: seq=0 ttl=63 time=3.274 ms 64 bytes from 152.105.7.131: seq=1 ttl=63 time=0.845 ms 64 bytes from 152.105.7.131: seq=2 ttl=63 time=0.874 ms --- 152.105.7.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.845/1.664/3.274 ms 2025-01-11 21:54:29,490 - INFO - Ping to IP 152.105.7.131 from VM ctest-TestBasicPolicy-31543938-39738783 passed 2025-01-11 21:54:29,673 - DEBUG - Policy Update Response {"network-policy": {"uuid": "27b583c6-0a1a-42a8-aaae-377ef655769f", "href": "http://10.0.0.23:8082/network-policy/27b583c6-0a1a-42a8-aaae-377ef655769f"}} 2025-01-11 21:54:29,673 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-11 21:54:29,673 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 152.105.7.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2025-01-11 21:54:29,674 - DEBUG - ping -s 56 -c 3 -W 1 152.105.7.131 2025-01-11 21:54:32,877 - DEBUG - PING 152.105.7.131 (152.105.7.131): 56 data bytes 64 bytes from 152.105.7.131: seq=0 ttl=63 time=1.626 ms --- 152.105.7.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.626/1.626/1.626 ms 2025-01-11 21:54:32,877 - WARNING - Ping to IP 152.105.7.131 from VM ctest-TestBasicPolicy-31543938-39738783 failed 2025-01-11 21:54:32,877 - INFO - Deleting VM ctest-TestBasicPolicy-31543938-57216023 2025-01-11 21:54:32,948 - INFO - Deleting VM ctest-TestBasicPolicy-31543938-39738783 2025-01-11 21:54:33,331 - INFO - Deleted policy ctest-policy-allow-all-82212252 2025-01-11 21:54:33,331 - INFO - Deleting VN ctest-vn-94021626 2025-01-11 21:54:33,378 - DEBUG - VN dffd1c6c-62ed-48ac-8fb9-7d7198ae58c5 still in use: Unable to complete operation on network dffd1c6c-62ed-48ac-8fb9-7d7198ae58c5. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-cae24539-fdf9-459d-987d-4dc7a28ebde3'] 2025-01-11 21:54:33,378 - WARNING - Deleting VN ctest-vn-94021626 failed..Will retry 2025-01-11 21:54:35,491 - DEBUG - Response for deleting network () 2025-01-11 21:54:35,491 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1253a647-bc1d-463b-8c56-84c77842aa64 2025-01-11 21:54:35,497 - DEBUG - Response Code: 404 2025-01-11 21:54:35,497 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-01-11 21:54:35,503 - DEBUG - Requesting: http://10.0.0.23:8082/domain/288e845b-53e6-4945-9c49-0890dba5d0d6 2025-01-11 21:54:35,560 - DEBUG - Requesting: http://10.0.0.23:8082/project/aa70ec6f-9e60-4408-895d-f232d703c647 2025-01-11 21:54:35,641 - INFO - Validated that VN ctest-vn-94021626 is not found in API Server 2025-01-11 21:54:35,652 - DEBUG - VN ctest-vn-94021626 is not present in Agent 10.0.0.23 2025-01-11 21:54:35,652 - INFO - Validated that VN ctest-vn-94021626 is not in any agent 2025-01-11 21:54:35,667 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-94021626 info 2025-01-11 21:54:35,667 - INFO - Deleting VN ctest-vn-76005562 2025-01-11 21:54:35,775 - DEBUG - Response for deleting network () 2025-01-11 21:54:35,775 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/98866af9-3345-4d57-ad44-69bdee1a18f9 2025-01-11 21:54:35,784 - DEBUG - Response Code: 404 2025-01-11 21:54:35,785 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-01-11 21:54:35,790 - DEBUG - Requesting: http://10.0.0.23:8082/domain/288e845b-53e6-4945-9c49-0890dba5d0d6 2025-01-11 21:54:35,843 - DEBUG - Requesting: http://10.0.0.23:8082/project/aa70ec6f-9e60-4408-895d-f232d703c647 2025-01-11 21:54:35,915 - INFO - Validated that VN ctest-vn-76005562 is not found in API Server 2025-01-11 21:54:35,926 - DEBUG - VN ctest-vn-76005562 is not present in Agent 10.0.0.23 2025-01-11 21:54:35,926 - INFO - Validated that VN ctest-vn-76005562 is not in any agent 2025-01-11 21:54:35,942 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-76005562 info 2025-01-11 21:54:36,195 - DEBUG - No XMPP flaps were noticed during the test
2025-01-11 21:54:36,195 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-01-11 21:54:36,195 - INFO - -------------------------------------------------------------------------------- 2025-01-11 21:54:36,886 - INFO - Deleted project: ctest-TestBasicPolicy-31543938, ID : aa70ec6f-9e60-4408-895d-f232d703c647