2025-05-03 09:13:32,803 - INFO - Domain Default found not creating 2025-05-03 09:13:33,004 - INFO - Project ctest-TestBasicPolicy-73589148 not found, creating it 2025-05-03 09:13:33,429 - INFO - Created Project:ctest-TestBasicPolicy-73589148, ID : 4e54a1bb-c944-41f8-af3d-afa5e889f386 2025-05-03 09:13:34,766 - INFO - ================================================================================ 2025-05-03 09:13:34,766 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-05-03 09:13:34,766 - 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-03 09:13:35,027 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.0.0.57': '0'}} with 2025-05-03 09:13:35,027 - INFO - Initial checks done. Running the testcase now 2025-05-03 09:13:35,027 - INFO - 2025-05-03 09:13:35,545 - DEBUG - Response for create_network : {'network': {'id': '4fd27f50-be0a-4016-94eb-fab7f1df3665', 'name': 'ctest-vn-31024809', 'tenant_id': '4e54a1bbc94441f8af3dafa5e889f386', 'project_id': '4e54a1bbc94441f8af3dafa5e889f386', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73589148', 'ctest-vn-31024809'], 'port_security_enabled': True, 'description': ''}} 2025-05-03 09:13:35,721 - DEBUG - Response for create_subnet : {'subnet': {'id': '6cfc62e1-44d4-4538-8a24-d3c5f7a8e4dc', 'name': '', 'tenant_id': '4e54a1bbc94441f8af3dafa5e889f386', 'network_id': '4fd27f50-be0a-4016-94eb-fab7f1df3665', 'ip_version': 4, 'cidr': '152.91.88.64/26', 'allocation_pools': [{'start': '152.91.88.66', 'end': '152.91.88.126'}], 'gateway_ip': '152.91.88.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '152.91.88.66', 'tags': [], 'project_id': '4e54a1bbc94441f8af3dafa5e889f386'}} 2025-05-03 09:13:35,741 - INFO - Created VN ctest-vn-31024809 2025-05-03 09:13:35,798 - DEBUG - VN ctest-vn-31024809 UUID is 4fd27f50-be0a-4016-94eb-fab7f1df3665 2025-05-03 09:13:36,151 - DEBUG - Response for create_network : {'network': {'id': '0be9d695-c405-406f-8937-d7eb459f5493', 'name': 'ctest-vn-83166066', 'tenant_id': '4e54a1bbc94441f8af3dafa5e889f386', 'project_id': '4e54a1bbc94441f8af3dafa5e889f386', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73589148', 'ctest-vn-83166066'], 'port_security_enabled': True, 'description': ''}} 2025-05-03 09:13:36,303 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e4465281-9a56-4c4c-b9a4-5a555c524815', 'name': '', 'tenant_id': '4e54a1bbc94441f8af3dafa5e889f386', 'network_id': '0be9d695-c405-406f-8937-d7eb459f5493', 'ip_version': 4, 'cidr': '18.250.70.64/26', 'allocation_pools': [{'start': '18.250.70.66', 'end': '18.250.70.126'}], 'gateway_ip': '18.250.70.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.250.70.66', 'tags': [], 'project_id': '4e54a1bbc94441f8af3dafa5e889f386'}} 2025-05-03 09:13:36,319 - INFO - Created VN ctest-vn-83166066 2025-05-03 09:13:36,374 - DEBUG - VN ctest-vn-83166066 UUID is 0be9d695-c405-406f-8937-d7eb459f5493 2025-05-03 09:13:36,526 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-73589148:ctest-vn-31024809, 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-73589148:ctest-vn-83166066, 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-03 09:13:36,801 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4fd27f50-be0a-4016-94eb-fab7f1df3665', 'name': 'ctest-vn-31024809', 'tenant_id': '4e54a1bbc94441f8af3dafa5e889f386', 'project_id': '4e54a1bbc94441f8af3dafa5e889f386', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6cfc62e1-44d4-4538-8a24-d3c5f7a8e4dc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73589148', 'ctest-vn-31024809'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73589148', 'ctest-policy-allow-all-82936978']], 'subnet_ipam': [{'subnet_cidr': '152.91.88.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-03 09:13:37,034 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0be9d695-c405-406f-8937-d7eb459f5493', 'name': 'ctest-vn-83166066', 'tenant_id': '4e54a1bbc94441f8af3dafa5e889f386', 'project_id': '4e54a1bbc94441f8af3dafa5e889f386', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e4465281-9a56-4c4c-b9a4-5a555c524815'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73589148', 'ctest-vn-83166066'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73589148', 'ctest-policy-allow-all-82936978']], 'subnet_ipam': [{'subnet_cidr': '18.250.70.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-03 09:13:37,203 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-05-03 09:13:37,500 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-05-03 09:13:37,524 - DEBUG - Requesting: http://10.0.0.57:8082/domain/99060a80-482b-401e-b3fc-aebb8828ae60 2025-05-03 09:13:37,534 - DEBUG - Requesting: http://10.0.0.57:8082/project/4e54a1bb-c944-41f8-af3d-afa5e889f386 2025-05-03 09:13:37,610 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/4fd27f50-be0a-4016-94eb-fab7f1df3665 2025-05-03 09:13:37,625 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/4fd27f50-be0a-4016-94eb-fab7f1df3665 2025-05-03 09:13:37,634 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f4aba5b3-6f15-4143-8d6c-7bdc83e0076c 2025-05-03 09:13:37,647 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f4aba5b3-6f15-4143-8d6c-7bdc83e0076c 2025-05-03 09:13:37,652 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/eb278140-b181-4fd8-aa3e-d32465c7dd11 2025-05-03 09:13:37,657 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-03 09:13:37,657 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/4fd27f50-be0a-4016-94eb-fab7f1df3665 2025-05-03 09:13:37,665 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f4aba5b3-6f15-4143-8d6c-7bdc83e0076c 2025-05-03 09:13:37,676 - INFO - Verified VN network id 8 for VN 4fd27f50-be0a-4016-94eb-fab7f1df3665 2025-05-03 09:13:37,676 - INFO - Verifications in API Server for VN ctest-vn-31024809 passed 2025-05-03 09:13:37,676 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/4fd27f50-be0a-4016-94eb-fab7f1df3665 2025-05-03 09:13:37,683 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f4aba5b3-6f15-4143-8d6c-7bdc83e0076c 2025-05-03 09:13:37,690 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f4aba5b3-6f15-4143-8d6c-7bdc83e0076c 2025-05-03 09:13:37,694 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/eb278140-b181-4fd8-aa3e-d32465c7dd11 2025-05-03 09:13:37,704 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73589148:ctest-vn-31024809', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73589148', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5751799658867998742', 'uuid-lslong': '10730946205084235365'}, 'enable': 'true', 'created': '2025-05-03T09:13:35', 'last-modified': '2025-05-03T09:13:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.922406'} 2025-05-03 09:13:37,709 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-03 09:13:37,709 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31024809 passed 2025-05-03 09:13:37,709 - DEBUG - ====Verifying policy data for ctest-vn-31024809 in API_Server ====== 2025-05-03 09:13:37,709 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-05-03 09:13:37,714 - DEBUG - Requesting: http://10.0.0.57:8082/domain/99060a80-482b-401e-b3fc-aebb8828ae60 2025-05-03 09:13:37,724 - DEBUG - Requesting: http://10.0.0.57:8082/project/4e54a1bb-c944-41f8-af3d-afa5e889f386 2025-05-03 09:13:37,794 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/4fd27f50-be0a-4016-94eb-fab7f1df3665 2025-05-03 09:13:37,801 - DEBUG - ==>Verifying data for policy with id: e2eb8315-e67c-46de-ab9d-429e53070df6, fqn: ['default-domain', 'ctest-TestBasicPolicy-73589148', 'ctest-policy-allow-all-82936978'] 2025-05-03 09:13:37,802 - INFO - VN ctest-vn-31024809 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-03 09:13:37,802 - DEBUG - Verifying the vn in opserver 2025-05-03 09:13:37,802 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73589148:ctest-vn-31024809 virtual network link through opserver 10.0.0.57 2025-05-03 09:13:37,802 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-05-03 09:13:38,090 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-05-03 09:13:38,136 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73589148:ctest-vn-31024809', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73589148:ctest-vn-31024809?flat'} 2025-05-03 09:13:38,136 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73589148:ctest-vn-31024809 is found in opserver 2025-05-03 09:13:38,144 - DEBUG - Do not have enough data to verify VN in agent 2025-05-03 09:13:38,147 - DEBUG - VRF ids for VN ctest-vn-31024809: {} 2025-05-03 09:13:38,147 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-05-03 09:13:38,152 - DEBUG - Requesting: http://10.0.0.57:8082/domain/99060a80-482b-401e-b3fc-aebb8828ae60 2025-05-03 09:13:38,212 - DEBUG - Requesting: http://10.0.0.57:8082/project/4e54a1bb-c944-41f8-af3d-afa5e889f386 2025-05-03 09:13:38,283 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/0be9d695-c405-406f-8937-d7eb459f5493 2025-05-03 09:13:38,292 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/0be9d695-c405-406f-8937-d7eb459f5493 2025-05-03 09:13:38,299 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d600ae34-7598-442d-a2ea-1e21a5a18811 2025-05-03 09:13:38,304 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d600ae34-7598-442d-a2ea-1e21a5a18811 2025-05-03 09:13:38,309 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/f7adcf56-f7ae-4631-88c4-3e88e92c416b 2025-05-03 09:13:38,313 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-03 09:13:38,313 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/0be9d695-c405-406f-8937-d7eb459f5493 2025-05-03 09:13:38,320 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d600ae34-7598-442d-a2ea-1e21a5a18811 2025-05-03 09:13:38,330 - INFO - Verified VN network id 9 for VN 0be9d695-c405-406f-8937-d7eb459f5493 2025-05-03 09:13:38,330 - INFO - Verifications in API Server for VN ctest-vn-83166066 passed 2025-05-03 09:13:38,330 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/0be9d695-c405-406f-8937-d7eb459f5493 2025-05-03 09:13:38,337 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d600ae34-7598-442d-a2ea-1e21a5a18811 2025-05-03 09:13:38,342 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d600ae34-7598-442d-a2ea-1e21a5a18811 2025-05-03 09:13:38,346 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/f7adcf56-f7ae-4631-88c4-3e88e92c416b 2025-05-03 09:13:38,355 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73589148:ctest-vn-83166066', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73589148', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '858453142717939823', 'uuid-lslong': '9887608912400569491'}, 'enable': 'true', 'created': '2025-05-03T09:13:36', 'last-modified': '2025-05-03T09:13:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.343905'} 2025-05-03 09:13:38,359 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-03 09:13:38,360 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83166066 passed 2025-05-03 09:13:38,360 - DEBUG - ====Verifying policy data for ctest-vn-83166066 in API_Server ====== 2025-05-03 09:13:38,360 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-05-03 09:13:38,363 - DEBUG - Requesting: http://10.0.0.57:8082/domain/99060a80-482b-401e-b3fc-aebb8828ae60 2025-05-03 09:13:38,371 - DEBUG - Requesting: http://10.0.0.57:8082/project/4e54a1bb-c944-41f8-af3d-afa5e889f386 2025-05-03 09:13:38,440 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/0be9d695-c405-406f-8937-d7eb459f5493 2025-05-03 09:13:38,447 - DEBUG - ==>Verifying data for policy with id: e2eb8315-e67c-46de-ab9d-429e53070df6, fqn: ['default-domain', 'ctest-TestBasicPolicy-73589148', 'ctest-policy-allow-all-82936978'] 2025-05-03 09:13:38,447 - INFO - VN ctest-vn-83166066 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-03 09:13:38,447 - DEBUG - Verifying the vn in opserver 2025-05-03 09:13:38,447 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73589148:ctest-vn-83166066 virtual network link through opserver 10.0.0.57 2025-05-03 09:13:38,447 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-05-03 09:13:38,455 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73589148:ctest-vn-83166066', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73589148:ctest-vn-83166066?flat'} 2025-05-03 09:13:38,455 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73589148:ctest-vn-83166066 is found in opserver 2025-05-03 09:13:38,462 - DEBUG - Do not have enough data to verify VN in agent 2025-05-03 09:13:38,466 - DEBUG - VRF ids for VN ctest-vn-83166066: {} 2025-05-03 09:13:38,513 - DEBUG - Services list from nova: [, , ] 2025-05-03 09:13:39,463 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3259-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3259-1) 2025-05-03 09:13:40,703 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3259-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3259-1) 2025-05-03 09:13:40,703 - INFO - Waiting for VM ctest-TestBasicPolicy-73589148-39000522 to be up.. 2025-05-03 09:13:40,781 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-05-03 09:13:45,870 - DEBUG - VM is in ACTIVE state now 2025-05-03 09:13:45,870 - INFO - VM name : ctest-TestBasicPolicy-73589148-39000522 2025-05-03 09:13:45,945 - DEBUG - VM ctest-TestBasicPolicy-73589148-39000522 ID is 70dd5042-3b56-4485-90f9-6d9a97c111f4 2025-05-03 09:13:45,963 - DEBUG - VM ctest-TestBasicPolicy-73589148-39000522 launched on Node cn-jenkins-deploy-platform-ansible-os-3259-1. 2025-05-03 09:13:46,046 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/70dd5042-3b56-4485-90f9-6d9a97c111f4 2025-05-03 09:13:46,054 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine-interface/603d182d-c346-4c08-8950-3478801b5af7 2025-05-03 09:13:49,306 - 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 1012ms') 2025-05-03 09:13:49,306 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-73589148-39000522 failed! 2025-05-03 09:13:49,362 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-73589148:ctest-vn-31024809 is 152.91.88.65 and allocation pool is NOT set 2025-05-03 09:13:51,425 - 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=2.78 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.399 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 = 0.399/1.589/2.780/1.190 ms') 2025-05-03 09:13:51,426 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-73589148-39000522 passed 2025-05-03 09:13:51,578 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-03 09:13:51,578 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-73589148-39000522, IP 152.91.88.67, Port 22 2025-05-03 09:13:51,733 - DEBUG - VM ctest-TestBasicPolicy-73589148-39000522 is ready for SSH connections 2025-05-03 09:13:51,733 - INFO - Waiting for VM ctest-TestBasicPolicy-73589148-23215568 to be up.. 2025-05-03 09:13:51,815 - DEBUG - VM is in ACTIVE state now 2025-05-03 09:13:51,815 - INFO - VM name : ctest-TestBasicPolicy-73589148-23215568 2025-05-03 09:13:51,884 - DEBUG - VM ctest-TestBasicPolicy-73589148-23215568 ID is 5b90728f-97a2-4b69-9c72-ba33f24e035b 2025-05-03 09:13:51,884 - DEBUG - VM ctest-TestBasicPolicy-73589148-23215568 launched on Node cn-jenkins-deploy-platform-ansible-os-3259-1. 2025-05-03 09:13:51,953 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/5b90728f-97a2-4b69-9c72-ba33f24e035b 2025-05-03 09:13:51,960 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine-interface/2b46cf7b-0cf1-42af-ad1a-30ba963d0cc1 2025-05-03 09:13:53,190 - 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.63 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.279 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.279/1.454/2.630/1.175 ms') 2025-05-03 09:13:53,190 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-73589148-23215568 passed 2025-05-03 09:13:53,338 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-03 09:13:53,338 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-73589148-23215568, IP 18.250.70.67, Port 22 2025-05-03 09:13:53,493 - DEBUG - VM ctest-TestBasicPolicy-73589148-23215568 is ready for SSH connections 2025-05-03 09:13:53,494 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-03 09:13:53,494 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 18.250.70.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2025-05-03 09:13:53,494 - DEBUG - ping -s 56 -c 3 -W 1 18.250.70.67 2025-05-03 09:13:57,466 - DEBUG - PING 18.250.70.67 (18.250.70.67): 56 data bytes 64 bytes from 18.250.70.67: seq=0 ttl=63 time=3.155 ms 64 bytes from 18.250.70.67: seq=1 ttl=63 time=0.764 ms 64 bytes from 18.250.70.67: seq=2 ttl=63 time=0.801 ms --- 18.250.70.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.764/1.573/3.155 ms 2025-05-03 09:13:57,466 - INFO - Ping to IP 18.250.70.67 from VM ctest-TestBasicPolicy-73589148-39000522 passed 2025-05-03 09:13:57,642 - DEBUG - Policy Update Response {"network-policy": {"uuid": "e2eb8315-e67c-46de-ab9d-429e53070df6", "href": "http://10.0.0.57:8082/network-policy/e2eb8315-e67c-46de-ab9d-429e53070df6"}} 2025-05-03 09:13:57,642 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-03 09:13:57,642 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 18.250.70.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2025-05-03 09:13:57,642 - DEBUG - ping -s 56 -c 3 -W 1 18.250.70.67 2025-05-03 09:14:00,833 - DEBUG - PING 18.250.70.67 (18.250.70.67): 56 data bytes --- 18.250.70.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-03 09:14:00,833 - WARNING - Ping to IP 18.250.70.67 from VM ctest-TestBasicPolicy-73589148-39000522 failed 2025-05-03 09:14:00,833 - INFO - Deleting VM ctest-TestBasicPolicy-73589148-23215568 2025-05-03 09:14:00,895 - INFO - Deleting VM ctest-TestBasicPolicy-73589148-39000522 2025-05-03 09:14:01,268 - INFO - Deleted policy ctest-policy-allow-all-82936978 2025-05-03 09:14:01,268 - INFO - Deleting VN ctest-vn-83166066 2025-05-03 09:14:01,299 - DEBUG - VN 0be9d695-c405-406f-8937-d7eb459f5493 still in use: Unable to complete operation on network 0be9d695-c405-406f-8937-d7eb459f5493. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ad107c67-e3be-4dc9-9093-09f1faef4f0d'] 2025-05-03 09:14:01,299 - WARNING - Deleting VN ctest-vn-83166066 failed..Will retry 2025-05-03 09:14:03,397 - DEBUG - Response for deleting network () 2025-05-03 09:14:03,397 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d600ae34-7598-442d-a2ea-1e21a5a18811 2025-05-03 09:14:03,402 - DEBUG - Response Code: 404 2025-05-03 09:14:03,402 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-05-03 09:14:03,406 - DEBUG - Requesting: http://10.0.0.57:8082/domain/99060a80-482b-401e-b3fc-aebb8828ae60 2025-05-03 09:14:03,458 - DEBUG - Requesting: http://10.0.0.57:8082/project/4e54a1bb-c944-41f8-af3d-afa5e889f386 2025-05-03 09:14:03,525 - INFO - Validated that VN ctest-vn-83166066 is not found in API Server 2025-05-03 09:14:03,534 - DEBUG - VN ctest-vn-83166066 is not present in Agent 10.0.0.57 2025-05-03 09:14:03,534 - INFO - Validated that VN ctest-vn-83166066 is not in any agent 2025-05-03 09:14:03,544 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-83166066 info 2025-05-03 09:14:03,545 - INFO - Deleting VN ctest-vn-31024809 2025-05-03 09:14:03,624 - DEBUG - Response for deleting network () 2025-05-03 09:14:03,624 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f4aba5b3-6f15-4143-8d6c-7bdc83e0076c 2025-05-03 09:14:03,628 - DEBUG - Response Code: 404 2025-05-03 09:14:03,628 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-05-03 09:14:03,639 - DEBUG - Requesting: http://10.0.0.57:8082/domain/99060a80-482b-401e-b3fc-aebb8828ae60 2025-05-03 09:14:03,690 - DEBUG - Requesting: http://10.0.0.57:8082/project/4e54a1bb-c944-41f8-af3d-afa5e889f386 2025-05-03 09:14:03,762 - INFO - Validated that VN ctest-vn-31024809 is not found in API Server 2025-05-03 09:14:03,771 - DEBUG - VN ctest-vn-31024809 is not present in Agent 10.0.0.57 2025-05-03 09:14:03,771 - INFO - Validated that VN ctest-vn-31024809 is not in any agent 2025-05-03 09:14:03,782 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-31024809 info 2025-05-03 09:14:04,038 - DEBUG - No XMPP flaps were noticed during the test
2025-05-03 09:14:04,038 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2025-05-03 09:14:04,038 - INFO - -------------------------------------------------------------------------------- 2025-05-03 09:14:04,669 - INFO - Deleted project: ctest-TestBasicPolicy-73589148, ID : 4e54a1bb-c944-41f8-af3d-afa5e889f386