2025-11-05 18:45:30,763 - INFO - Domain Default found not creating 2025-11-05 18:45:30,901 - INFO - Project ctest-TestBasicPolicy-38498225 not found, creating it 2025-11-05 18:45:31,327 - INFO - Created Project:ctest-TestBasicPolicy-38498225, ID : 83270b0c-d2d6-4da1-b59f-85224e5e9d66 2025-11-05 18:45:32,686 - INFO - ================================================================================ 2025-11-05 18:45:32,686 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-11-05 18:45:32,686 - 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-11-05 18:45:32,943 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.18': '0'}} with 2025-11-05 18:45:32,943 - INFO - Initial checks done. Running the testcase now 2025-11-05 18:45:32,943 - INFO - 2025-11-05 18:45:33,468 - DEBUG - Response for create_network : {'network': {'id': '1a17f48e-6290-4a39-8bf2-84991ceee620', 'name': 'ctest-vn-20385486', 'tenant_id': '83270b0cd2d64da1b59f85224e5e9d66', 'project_id': '83270b0cd2d64da1b59f85224e5e9d66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38498225', 'ctest-vn-20385486'], 'port_security_enabled': True, 'description': ''}} 2025-11-05 18:45:33,612 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ee185d16-ea2d-4b68-aa17-3d99ea3e26d5', 'name': '', 'tenant_id': '83270b0cd2d64da1b59f85224e5e9d66', 'network_id': '1a17f48e-6290-4a39-8bf2-84991ceee620', 'ip_version': 4, 'cidr': '177.90.245.192/26', 'allocation_pools': [{'start': '177.90.245.194', 'end': '177.90.245.254'}], 'gateway_ip': '177.90.245.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.90.245.194', 'tags': [], 'project_id': '83270b0cd2d64da1b59f85224e5e9d66'}} 2025-11-05 18:45:33,628 - INFO - Created VN ctest-vn-20385486 2025-11-05 18:45:33,678 - DEBUG - VN ctest-vn-20385486 UUID is 1a17f48e-6290-4a39-8bf2-84991ceee620 2025-11-05 18:45:34,027 - DEBUG - Response for create_network : {'network': {'id': 'ca0b0c07-c158-4200-bc6a-0029a1e7db60', 'name': 'ctest-vn-18792396', 'tenant_id': '83270b0cd2d64da1b59f85224e5e9d66', 'project_id': '83270b0cd2d64da1b59f85224e5e9d66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38498225', 'ctest-vn-18792396'], 'port_security_enabled': True, 'description': ''}} 2025-11-05 18:45:34,205 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aa224156-c510-4543-ba33-769a8466c8da', 'name': '', 'tenant_id': '83270b0cd2d64da1b59f85224e5e9d66', 'network_id': 'ca0b0c07-c158-4200-bc6a-0029a1e7db60', 'ip_version': 4, 'cidr': '52.227.115.64/26', 'allocation_pools': [{'start': '52.227.115.66', 'end': '52.227.115.126'}], 'gateway_ip': '52.227.115.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.227.115.66', 'tags': [], 'project_id': '83270b0cd2d64da1b59f85224e5e9d66'}} 2025-11-05 18:45:34,219 - INFO - Created VN ctest-vn-18792396 2025-11-05 18:45:34,270 - DEBUG - VN ctest-vn-18792396 UUID is ca0b0c07-c158-4200-bc6a-0029a1e7db60 2025-11-05 18:45:34,422 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38498225:ctest-vn-20385486, 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-38498225:ctest-vn-18792396, 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-11-05 18:45:34,701 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1a17f48e-6290-4a39-8bf2-84991ceee620', 'name': 'ctest-vn-20385486', 'tenant_id': '83270b0cd2d64da1b59f85224e5e9d66', 'project_id': '83270b0cd2d64da1b59f85224e5e9d66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ee185d16-ea2d-4b68-aa17-3d99ea3e26d5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38498225', 'ctest-vn-20385486'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38498225', 'ctest-policy-allow-all-93861058']], 'subnet_ipam': [{'subnet_cidr': '177.90.245.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-05 18:45:34,937 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ca0b0c07-c158-4200-bc6a-0029a1e7db60', 'name': 'ctest-vn-18792396', 'tenant_id': '83270b0cd2d64da1b59f85224e5e9d66', 'project_id': '83270b0cd2d64da1b59f85224e5e9d66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aa224156-c510-4543-ba33-769a8466c8da'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38498225', 'ctest-vn-18792396'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38498225', 'ctest-policy-allow-all-93861058']], 'subnet_ipam': [{'subnet_cidr': '52.227.115.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-05 18:45:35,094 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-05 18:45:35,386 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-05 18:45:35,411 - DEBUG - Requesting: http://10.0.0.38:8082/domain/147c2e0b-2a9e-4f2c-b88a-f26243a86f30 2025-11-05 18:45:35,425 - DEBUG - Requesting: http://10.0.0.38:8082/project/83270b0c-d2d6-4da1-b59f-85224e5e9d66 2025-11-05 18:45:35,499 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1a17f48e-6290-4a39-8bf2-84991ceee620 2025-11-05 18:45:35,509 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1a17f48e-6290-4a39-8bf2-84991ceee620 2025-11-05 18:45:35,517 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6afae92e-b4c3-454e-b390-7e081536a471 2025-11-05 18:45:35,523 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6afae92e-b4c3-454e-b390-7e081536a471 2025-11-05 18:45:35,529 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ee583999-7c40-42d5-9913-7116e2dcb8fe 2025-11-05 18:45:35,534 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 18:45:35,534 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1a17f48e-6290-4a39-8bf2-84991ceee620 2025-11-05 18:45:35,542 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6afae92e-b4c3-454e-b390-7e081536a471 2025-11-05 18:45:35,552 - INFO - Verified VN network id 12 for VN 1a17f48e-6290-4a39-8bf2-84991ceee620 2025-11-05 18:45:35,552 - INFO - Verifications in API Server for VN ctest-vn-20385486 passed 2025-11-05 18:45:35,552 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1a17f48e-6290-4a39-8bf2-84991ceee620 2025-11-05 18:45:35,559 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6afae92e-b4c3-454e-b390-7e081536a471 2025-11-05 18:45:35,564 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6afae92e-b4c3-454e-b390-7e081536a471 2025-11-05 18:45:35,568 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ee583999-7c40-42d5-9913-7116e2dcb8fe 2025-11-05 18:45:35,578 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38498225:ctest-vn-20385486', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38498225', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1880240261826628153', 'uuid-lslong': '10084268308786243104'}, 'enable': 'true', 'created': '2025-11-05T18:45:33', 'last-modified': '2025-11-05T18:45:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.895446'} 2025-11-05 18:45:35,583 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 18:45:35,583 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20385486 passed 2025-11-05 18:45:35,583 - DEBUG - ====Verifying policy data for ctest-vn-20385486 in API_Server ====== 2025-11-05 18:45:35,583 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-05 18:45:35,587 - DEBUG - Requesting: http://10.0.0.38:8082/domain/147c2e0b-2a9e-4f2c-b88a-f26243a86f30 2025-11-05 18:45:35,595 - DEBUG - Requesting: http://10.0.0.38:8082/project/83270b0c-d2d6-4da1-b59f-85224e5e9d66 2025-11-05 18:45:35,662 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1a17f48e-6290-4a39-8bf2-84991ceee620 2025-11-05 18:45:35,670 - DEBUG - ==>Verifying data for policy with id: 3bcc2eeb-4a21-47c4-9677-38d69aa61a04, fqn: ['default-domain', 'ctest-TestBasicPolicy-38498225', 'ctest-policy-allow-all-93861058'] 2025-11-05 18:45:35,670 - INFO - VN ctest-vn-20385486 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-05 18:45:35,670 - DEBUG - Verifying the vn in opserver 2025-11-05 18:45:35,670 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38498225:ctest-vn-20385486 virtual network link through opserver 10.0.0.38 2025-11-05 18:45:35,670 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-05 18:45:35,959 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-05 18:45:36,016 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38498225:ctest-vn-20385486', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38498225:ctest-vn-20385486?flat'} 2025-11-05 18:45:36,016 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38498225:ctest-vn-20385486 is found in opserver 2025-11-05 18:45:36,025 - DEBUG - Do not have enough data to verify VN in agent 2025-11-05 18:45:36,029 - DEBUG - VRF ids for VN ctest-vn-20385486: {} 2025-11-05 18:45:36,029 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-05 18:45:36,033 - DEBUG - Requesting: http://10.0.0.38:8082/domain/147c2e0b-2a9e-4f2c-b88a-f26243a86f30 2025-11-05 18:45:36,042 - DEBUG - Requesting: http://10.0.0.38:8082/project/83270b0c-d2d6-4da1-b59f-85224e5e9d66 2025-11-05 18:45:36,116 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ca0b0c07-c158-4200-bc6a-0029a1e7db60 2025-11-05 18:45:36,126 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ca0b0c07-c158-4200-bc6a-0029a1e7db60 2025-11-05 18:45:36,134 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/325926f5-fa53-4777-bc0d-2c556b5ff82f 2025-11-05 18:45:36,139 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/325926f5-fa53-4777-bc0d-2c556b5ff82f 2025-11-05 18:45:36,144 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/582a0cdb-dd0b-466c-8ea7-db1107a10fa7 2025-11-05 18:45:36,149 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-05 18:45:36,149 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ca0b0c07-c158-4200-bc6a-0029a1e7db60 2025-11-05 18:45:36,158 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/325926f5-fa53-4777-bc0d-2c556b5ff82f 2025-11-05 18:45:36,169 - INFO - Verified VN network id 13 for VN ca0b0c07-c158-4200-bc6a-0029a1e7db60 2025-11-05 18:45:36,169 - INFO - Verifications in API Server for VN ctest-vn-18792396 passed 2025-11-05 18:45:36,169 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ca0b0c07-c158-4200-bc6a-0029a1e7db60 2025-11-05 18:45:36,176 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/325926f5-fa53-4777-bc0d-2c556b5ff82f 2025-11-05 18:45:36,180 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/325926f5-fa53-4777-bc0d-2c556b5ff82f 2025-11-05 18:45:36,185 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/582a0cdb-dd0b-466c-8ea7-db1107a10fa7 2025-11-05 18:45:36,194 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38498225:ctest-vn-18792396', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38498225', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14558743447853351424', 'uuid-lslong': '13576664205471767392'}, 'enable': 'true', 'created': '2025-11-05T18:45:33', 'last-modified': '2025-11-05T18:45:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.300400'} 2025-11-05 18:45:36,198 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-05 18:45:36,199 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18792396 passed 2025-11-05 18:45:36,199 - DEBUG - ====Verifying policy data for ctest-vn-18792396 in API_Server ====== 2025-11-05 18:45:36,199 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-05 18:45:36,203 - DEBUG - Requesting: http://10.0.0.38:8082/domain/147c2e0b-2a9e-4f2c-b88a-f26243a86f30 2025-11-05 18:45:36,211 - DEBUG - Requesting: http://10.0.0.38:8082/project/83270b0c-d2d6-4da1-b59f-85224e5e9d66 2025-11-05 18:45:36,276 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ca0b0c07-c158-4200-bc6a-0029a1e7db60 2025-11-05 18:45:36,285 - DEBUG - ==>Verifying data for policy with id: 3bcc2eeb-4a21-47c4-9677-38d69aa61a04, fqn: ['default-domain', 'ctest-TestBasicPolicy-38498225', 'ctest-policy-allow-all-93861058'] 2025-11-05 18:45:36,285 - INFO - VN ctest-vn-18792396 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-05 18:45:36,285 - DEBUG - Verifying the vn in opserver 2025-11-05 18:45:36,285 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38498225:ctest-vn-18792396 virtual network link through opserver 10.0.0.38 2025-11-05 18:45:36,285 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-05 18:45:36,294 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38498225:ctest-vn-18792396', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38498225:ctest-vn-18792396?flat'} 2025-11-05 18:45:36,294 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38498225:ctest-vn-18792396 is found in opserver 2025-11-05 18:45:36,302 - DEBUG - Do not have enough data to verify VN in agent 2025-11-05 18:45:36,306 - DEBUG - VRF ids for VN ctest-vn-18792396: {} 2025-11-05 18:45:36,353 - DEBUG - Services list from nova: [, , ] 2025-11-05 18:45:37,310 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4653-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4653-1) 2025-11-05 18:45:38,362 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4653-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4653-1) 2025-11-05 18:45:38,362 - INFO - Waiting for VM ctest-TestBasicPolicy-38498225-98159842 to be up.. 2025-11-05 18:45:38,431 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-05 18:45:43,499 - DEBUG - VM is in ACTIVE state now 2025-11-05 18:45:43,499 - INFO - VM name : ctest-TestBasicPolicy-38498225-98159842 2025-11-05 18:45:43,570 - DEBUG - VM ctest-TestBasicPolicy-38498225-98159842 ID is a9d6ab5a-16fb-4f5e-8c70-05d93e6ed2b5 2025-11-05 18:45:43,586 - DEBUG - VM ctest-TestBasicPolicy-38498225-98159842 launched on Node cn-jenkins-deploy-platform-ansible-os-4653-1 2025-11-05 18:45:43,649 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/a9d6ab5a-16fb-4f5e-8c70-05d93e6ed2b5 2025-11-05 18:45:43,656 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/b5913812-abcf-4f14-a08e-099dfded6e7d 2025-11-05 18:45:46,909 - 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 1031ms') 2025-11-05 18:45:46,909 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38498225-98159842 failed! 2025-11-05 18:45:46,962 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38498225:ctest-vn-20385486 is 177.90.245.193 and allocation pool is NOT set 2025-11-05 18:45:49,022 - 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.67 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.436 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.436/1.551/2.666/1.115 ms') 2025-11-05 18:45:49,022 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38498225-98159842 passed 2025-11-05 18:45:49,170 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 18:45:49,170 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38498225-98159842, IP 177.90.245.195, Port 22 2025-11-05 18:45:49,321 - DEBUG - VM ctest-TestBasicPolicy-38498225-98159842 is ready for SSH connections 2025-11-05 18:45:49,322 - INFO - Waiting for VM ctest-TestBasicPolicy-38498225-01881994 to be up.. 2025-11-05 18:45:49,395 - DEBUG - VM is in ACTIVE state now 2025-11-05 18:45:49,395 - INFO - VM name : ctest-TestBasicPolicy-38498225-01881994 2025-11-05 18:45:49,473 - DEBUG - VM ctest-TestBasicPolicy-38498225-01881994 ID is dbea3b8c-50a1-4d2a-9d66-7ac7513eeef4 2025-11-05 18:45:49,473 - DEBUG - VM ctest-TestBasicPolicy-38498225-01881994 launched on Node cn-jenkins-deploy-platform-ansible-os-4653-1 2025-11-05 18:45:49,543 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/dbea3b8c-50a1-4d2a-9d66-7ac7513eeef4 2025-11-05 18:45:49,552 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/3d7f59b1-396c-40f6-b95c-c0313935c9c7 2025-11-05 18:45:50,789 - 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.78 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=3.35 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 = 2.779/3.065/3.352/0.286 ms') 2025-11-05 18:45:50,789 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-38498225-01881994 passed 2025-11-05 18:45:50,938 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 18:45:50,938 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38498225-01881994, IP 52.227.115.67, Port 22 2025-11-05 18:45:50,993 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-11-05 18:45:51,059 - DEBUG - VM ctest-TestBasicPolicy-38498225-01881994 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-05 18:45:56,060 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 18:45:56,060 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38498225-01881994, IP 52.227.115.67, Port 22 2025-11-05 18:45:56,235 - DEBUG - VM ctest-TestBasicPolicy-38498225-01881994 is ready for SSH connections 2025-11-05 18:45:56,235 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 18:45:56,236 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 52.227.115.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-11-05 18:45:56,236 - DEBUG - ping -s 56 -c 3 -W 1 52.227.115.67 2025-11-05 18:45:59,912 - DEBUG - PING 52.227.115.67 (52.227.115.67): 56 data bytes 64 bytes from 52.227.115.67: seq=0 ttl=63 time=3.203 ms 64 bytes from 52.227.115.67: seq=1 ttl=63 time=0.742 ms 64 bytes from 52.227.115.67: seq=2 ttl=63 time=0.762 ms --- 52.227.115.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.742/1.569/3.203 ms 2025-11-05 18:45:59,912 - INFO - Ping to IP 52.227.115.67 from VM ctest-TestBasicPolicy-38498225-98159842 passed 2025-11-05 18:46:00,086 - DEBUG - Policy Update Response {"network-policy": {"uuid": "3bcc2eeb-4a21-47c4-9677-38d69aa61a04", "href": "http://10.0.0.38:8082/network-policy/3bcc2eeb-4a21-47c4-9677-38d69aa61a04"}} 2025-11-05 18:46:00,086 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 18:46:00,086 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 52.227.115.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-11-05 18:46:00,086 - DEBUG - ping -s 56 -c 3 -W 1 52.227.115.67 2025-11-05 18:46:03,293 - DEBUG - PING 52.227.115.67 (52.227.115.67): 56 data bytes --- 52.227.115.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-11-05 18:46:03,294 - WARNING - Ping to IP 52.227.115.67 from VM ctest-TestBasicPolicy-38498225-98159842 failed 2025-11-05 18:46:03,294 - INFO - Deleting VM ctest-TestBasicPolicy-38498225-01881994 2025-11-05 18:46:03,356 - INFO - Deleting VM ctest-TestBasicPolicy-38498225-98159842 2025-11-05 18:46:03,703 - INFO - Deleted policy ctest-policy-allow-all-93861058 2025-11-05 18:46:03,704 - INFO - Deleting VN ctest-vn-18792396 2025-11-05 18:46:03,740 - DEBUG - VN ca0b0c07-c158-4200-bc6a-0029a1e7db60 still in use: Unable to complete operation on network ca0b0c07-c158-4200-bc6a-0029a1e7db60. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e40cdd83-8ae0-495d-9fe7-9d1e30e982db'] 2025-11-05 18:46:03,740 - WARNING - Deleting VN ctest-vn-18792396 failed..Will retry 2025-11-05 18:46:05,830 - DEBUG - Response for deleting network () 2025-11-05 18:46:05,830 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/325926f5-fa53-4777-bc0d-2c556b5ff82f 2025-11-05 18:46:05,835 - DEBUG - Response Code: 404 2025-11-05 18:46:05,835 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-05 18:46:05,839 - DEBUG - Requesting: http://10.0.0.38:8082/domain/147c2e0b-2a9e-4f2c-b88a-f26243a86f30 2025-11-05 18:46:05,891 - DEBUG - Requesting: http://10.0.0.38:8082/project/83270b0c-d2d6-4da1-b59f-85224e5e9d66 2025-11-05 18:46:05,971 - INFO - Validated that VN ctest-vn-18792396 is not found in API Server 2025-11-05 18:46:05,979 - DEBUG - VN ctest-vn-18792396 is not present in Agent 10.0.0.38 2025-11-05 18:46:05,980 - INFO - Validated that VN ctest-vn-18792396 is not in any agent 2025-11-05 18:46:05,991 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-18792396 info 2025-11-05 18:46:05,992 - INFO - Deleting VN ctest-vn-20385486 2025-11-05 18:46:06,079 - DEBUG - Response for deleting network () 2025-11-05 18:46:06,079 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6afae92e-b4c3-454e-b390-7e081536a471 2025-11-05 18:46:06,084 - DEBUG - Response Code: 404 2025-11-05 18:46:06,084 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-05 18:46:06,089 - DEBUG - Requesting: http://10.0.0.38:8082/domain/147c2e0b-2a9e-4f2c-b88a-f26243a86f30 2025-11-05 18:46:06,144 - DEBUG - Requesting: http://10.0.0.38:8082/project/83270b0c-d2d6-4da1-b59f-85224e5e9d66 2025-11-05 18:46:06,214 - INFO - Validated that VN ctest-vn-20385486 is not found in API Server 2025-11-05 18:46:06,225 - DEBUG - VN ctest-vn-20385486 is not present in Agent 10.0.0.38 2025-11-05 18:46:06,225 - INFO - Validated that VN ctest-vn-20385486 is not in any agent 2025-11-05 18:46:06,238 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-20385486 info 2025-11-05 18:46:06,491 - DEBUG - No XMPP flaps were noticed during the test 2025-11-05 18:46:06,491 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:34] 2025-11-05 18:46:06,491 - INFO - -------------------------------------------------------------------------------- 2025-11-05 18:46:07,150 - INFO - Deleted project: ctest-TestBasicPolicy-38498225, ID : 83270b0c-d2d6-4da1-b59f-85224e5e9d66