2025-08-27 17:23:37,162 - INFO - Domain Default found not creating 2025-08-27 17:23:37,287 - INFO - Project ctest-TestBasicPolicy-62887952 not found, creating it 2025-08-27 17:23:37,712 - INFO - Created Project:ctest-TestBasicPolicy-62887952, ID : 893e584c-c948-41c0-9c11-0dd8bf07133c 2025-08-27 17:23:39,078 - INFO - ================================================================================ 2025-08-27 17:23:39,079 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-08-27 17:23:39,079 - 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-08-27 17:23:39,330 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-08-27 17:23:39,330 - INFO - Initial checks done. Running the testcase now 2025-08-27 17:23:39,330 - INFO - 2025-08-27 17:23:39,858 - DEBUG - Response for create_network : {'network': {'id': '78d96775-abd3-411f-8483-21c8d4eb0e6f', 'name': 'ctest-vn-67406177', 'tenant_id': '893e584cc94841c09c110dd8bf07133c', 'project_id': '893e584cc94841c09c110dd8bf07133c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62887952', 'ctest-vn-67406177'], 'port_security_enabled': True, 'description': ''}} 2025-08-27 17:23:40,023 - DEBUG - Response for create_subnet : {'subnet': {'id': '68e66876-1949-479a-9f83-6e0955eda386', 'name': '', 'tenant_id': '893e584cc94841c09c110dd8bf07133c', 'network_id': '78d96775-abd3-411f-8483-21c8d4eb0e6f', 'ip_version': 4, 'cidr': '201.238.174.0/26', 'allocation_pools': [{'start': '201.238.174.2', 'end': '201.238.174.62'}], 'gateway_ip': '201.238.174.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.238.174.2', 'tags': [], 'project_id': '893e584cc94841c09c110dd8bf07133c'}} 2025-08-27 17:23:40,039 - INFO - Created VN ctest-vn-67406177 2025-08-27 17:23:40,089 - DEBUG - VN ctest-vn-67406177 UUID is 78d96775-abd3-411f-8483-21c8d4eb0e6f 2025-08-27 17:23:40,403 - DEBUG - Response for create_network : {'network': {'id': 'a3841c88-fe1a-42b6-ab9d-1449d83963ac', 'name': 'ctest-vn-53165929', 'tenant_id': '893e584cc94841c09c110dd8bf07133c', 'project_id': '893e584cc94841c09c110dd8bf07133c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62887952', 'ctest-vn-53165929'], 'port_security_enabled': True, 'description': ''}} 2025-08-27 17:23:40,575 - DEBUG - Response for create_subnet : {'subnet': {'id': '34d72f63-f00c-4584-a83b-4f8ce2e92f56', 'name': '', 'tenant_id': '893e584cc94841c09c110dd8bf07133c', 'network_id': 'a3841c88-fe1a-42b6-ab9d-1449d83963ac', 'ip_version': 4, 'cidr': '40.38.108.64/26', 'allocation_pools': [{'start': '40.38.108.66', 'end': '40.38.108.126'}], 'gateway_ip': '40.38.108.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.38.108.66', 'tags': [], 'project_id': '893e584cc94841c09c110dd8bf07133c'}} 2025-08-27 17:23:40,591 - INFO - Created VN ctest-vn-53165929 2025-08-27 17:23:40,641 - DEBUG - VN ctest-vn-53165929 UUID is a3841c88-fe1a-42b6-ab9d-1449d83963ac 2025-08-27 17:23:40,789 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-62887952:ctest-vn-67406177, 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-62887952:ctest-vn-53165929, 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-08-27 17:23:41,081 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '78d96775-abd3-411f-8483-21c8d4eb0e6f', 'name': 'ctest-vn-67406177', 'tenant_id': '893e584cc94841c09c110dd8bf07133c', 'project_id': '893e584cc94841c09c110dd8bf07133c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['68e66876-1949-479a-9f83-6e0955eda386'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62887952', 'ctest-vn-67406177'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62887952', 'ctest-policy-allow-all-03355136']], 'subnet_ipam': [{'subnet_cidr': '201.238.174.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-27 17:23:41,304 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a3841c88-fe1a-42b6-ab9d-1449d83963ac', 'name': 'ctest-vn-53165929', 'tenant_id': '893e584cc94841c09c110dd8bf07133c', 'project_id': '893e584cc94841c09c110dd8bf07133c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['34d72f63-f00c-4584-a83b-4f8ce2e92f56'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62887952', 'ctest-vn-53165929'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62887952', 'ctest-policy-allow-all-03355136']], 'subnet_ipam': [{'subnet_cidr': '40.38.108.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-27 17:23:41,449 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-27 17:23:41,743 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-27 17:23:41,767 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f6cdc217-967e-4f16-93f8-ca2fa63366d7 2025-08-27 17:23:41,777 - DEBUG - Requesting: http://10.0.0.38:8082/project/893e584c-c948-41c0-9c11-0dd8bf07133c 2025-08-27 17:23:41,860 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/78d96775-abd3-411f-8483-21c8d4eb0e6f 2025-08-27 17:23:41,873 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/78d96775-abd3-411f-8483-21c8d4eb0e6f 2025-08-27 17:23:41,883 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/efbf4a5e-128d-4c9a-883d-d4a93d2ada2b 2025-08-27 17:23:41,890 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/efbf4a5e-128d-4c9a-883d-d4a93d2ada2b 2025-08-27 17:23:41,898 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c36b0493-9466-420e-8eaf-7eeb15a4cb07 2025-08-27 17:23:41,905 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-27 17:23:41,906 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/78d96775-abd3-411f-8483-21c8d4eb0e6f 2025-08-27 17:23:41,915 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/efbf4a5e-128d-4c9a-883d-d4a93d2ada2b 2025-08-27 17:23:41,927 - INFO - Verified VN network id 11 for VN 78d96775-abd3-411f-8483-21c8d4eb0e6f 2025-08-27 17:23:41,927 - INFO - Verifications in API Server for VN ctest-vn-67406177 passed 2025-08-27 17:23:41,927 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/78d96775-abd3-411f-8483-21c8d4eb0e6f 2025-08-27 17:23:41,936 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/efbf4a5e-128d-4c9a-883d-d4a93d2ada2b 2025-08-27 17:23:41,942 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/efbf4a5e-128d-4c9a-883d-d4a93d2ada2b 2025-08-27 17:23:41,948 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c36b0493-9466-420e-8eaf-7eeb15a4cb07 2025-08-27 17:23:41,959 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62887952:ctest-vn-67406177', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62887952', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8708105109589147935', 'uuid-lslong': '9548512781404933743'}, 'enable': 'true', 'created': '2025-08-27T17:23:39', 'last-modified': '2025-08-27T17:23:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.894652'} 2025-08-27 17:23:41,965 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-27 17:23:41,965 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67406177 passed 2025-08-27 17:23:41,965 - DEBUG - ====Verifying policy data for ctest-vn-67406177 in API_Server ====== 2025-08-27 17:23:41,965 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-27 17:23:41,973 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f6cdc217-967e-4f16-93f8-ca2fa63366d7 2025-08-27 17:23:41,983 - DEBUG - Requesting: http://10.0.0.38:8082/project/893e584c-c948-41c0-9c11-0dd8bf07133c 2025-08-27 17:23:42,056 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/78d96775-abd3-411f-8483-21c8d4eb0e6f 2025-08-27 17:23:42,064 - DEBUG - ==>Verifying data for policy with id: 24cbe720-5969-4828-a43e-fb0055df8d32, fqn: ['default-domain', 'ctest-TestBasicPolicy-62887952', 'ctest-policy-allow-all-03355136'] 2025-08-27 17:23:42,064 - INFO - VN ctest-vn-67406177 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-27 17:23:42,064 - DEBUG - Verifying the vn in opserver 2025-08-27 17:23:42,065 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62887952:ctest-vn-67406177 virtual network link through opserver 10.0.0.38 2025-08-27 17:23:42,065 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-27 17:23:42,356 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-27 17:23:42,404 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62887952:ctest-vn-67406177', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62887952:ctest-vn-67406177?flat'} 2025-08-27 17:23:42,404 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62887952:ctest-vn-67406177 is found in opserver 2025-08-27 17:23:42,412 - DEBUG - Do not have enough data to verify VN in agent 2025-08-27 17:23:42,415 - DEBUG - VRF ids for VN ctest-vn-67406177: {} 2025-08-27 17:23:42,415 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-27 17:23:42,419 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f6cdc217-967e-4f16-93f8-ca2fa63366d7 2025-08-27 17:23:42,428 - DEBUG - Requesting: http://10.0.0.38:8082/project/893e584c-c948-41c0-9c11-0dd8bf07133c 2025-08-27 17:23:42,493 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a3841c88-fe1a-42b6-ab9d-1449d83963ac 2025-08-27 17:23:42,503 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a3841c88-fe1a-42b6-ab9d-1449d83963ac 2025-08-27 17:23:42,511 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/93ef7194-8065-484e-8d4e-ded061670c6d 2025-08-27 17:23:42,516 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/93ef7194-8065-484e-8d4e-ded061670c6d 2025-08-27 17:23:42,521 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c3d2d13b-7ae5-4b7d-9407-76c66c8cb478 2025-08-27 17:23:42,526 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-27 17:23:42,526 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a3841c88-fe1a-42b6-ab9d-1449d83963ac 2025-08-27 17:23:42,532 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/93ef7194-8065-484e-8d4e-ded061670c6d 2025-08-27 17:23:42,542 - INFO - Verified VN network id 12 for VN a3841c88-fe1a-42b6-ab9d-1449d83963ac 2025-08-27 17:23:42,542 - INFO - Verifications in API Server for VN ctest-vn-53165929 passed 2025-08-27 17:23:42,542 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a3841c88-fe1a-42b6-ab9d-1449d83963ac 2025-08-27 17:23:42,549 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/93ef7194-8065-484e-8d4e-ded061670c6d 2025-08-27 17:23:42,553 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/93ef7194-8065-484e-8d4e-ded061670c6d 2025-08-27 17:23:42,558 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c3d2d13b-7ae5-4b7d-9407-76c66c8cb478 2025-08-27 17:23:42,567 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62887952:ctest-vn-53165929', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62887952', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11782573899812324022', 'uuid-lslong': '12366062459222057900'}, 'enable': 'true', 'created': '2025-08-27T17:23:40', 'last-modified': '2025-08-27T17:23:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.280989'} 2025-08-27 17:23:42,571 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-27 17:23:42,572 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53165929 passed 2025-08-27 17:23:42,572 - DEBUG - ====Verifying policy data for ctest-vn-53165929 in API_Server ====== 2025-08-27 17:23:42,572 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-27 17:23:42,577 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f6cdc217-967e-4f16-93f8-ca2fa63366d7 2025-08-27 17:23:42,585 - DEBUG - Requesting: http://10.0.0.38:8082/project/893e584c-c948-41c0-9c11-0dd8bf07133c 2025-08-27 17:23:42,647 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a3841c88-fe1a-42b6-ab9d-1449d83963ac 2025-08-27 17:23:42,655 - DEBUG - ==>Verifying data for policy with id: 24cbe720-5969-4828-a43e-fb0055df8d32, fqn: ['default-domain', 'ctest-TestBasicPolicy-62887952', 'ctest-policy-allow-all-03355136'] 2025-08-27 17:23:42,655 - INFO - VN ctest-vn-53165929 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-27 17:23:42,655 - DEBUG - Verifying the vn in opserver 2025-08-27 17:23:42,655 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62887952:ctest-vn-53165929 virtual network link through opserver 10.0.0.38 2025-08-27 17:23:42,655 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-27 17:23:42,663 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62887952:ctest-vn-53165929', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62887952:ctest-vn-53165929?flat'} 2025-08-27 17:23:42,663 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62887952:ctest-vn-53165929 is found in opserver 2025-08-27 17:23:42,670 - DEBUG - Do not have enough data to verify VN in agent 2025-08-27 17:23:42,674 - DEBUG - VRF ids for VN ctest-vn-53165929: {} 2025-08-27 17:23:42,724 - DEBUG - Services list from nova: [, , ] 2025-08-27 17:23:43,684 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3951-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3951-1) 2025-08-27 17:23:44,776 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3951-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3951-1) 2025-08-27 17:23:44,777 - INFO - Waiting for VM ctest-TestBasicPolicy-62887952-99478342 to be up.. 2025-08-27 17:23:44,858 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-27 17:23:49,931 - DEBUG - VM is in ACTIVE state now 2025-08-27 17:23:49,931 - INFO - VM name : ctest-TestBasicPolicy-62887952-99478342 2025-08-27 17:23:50,002 - DEBUG - VM ctest-TestBasicPolicy-62887952-99478342 ID is 8f2430e1-f47b-44b8-b4b5-662667256f1f 2025-08-27 17:23:50,021 - DEBUG - VM ctest-TestBasicPolicy-62887952-99478342 launched on Node cn-jenkins-deploy-platform-ansible-os-3951-1 2025-08-27 17:23:50,089 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/8f2430e1-f47b-44b8-b4b5-662667256f1f 2025-08-27 17:23:50,096 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/1b231551-4b4a-4ebc-a2f4-f63f0d6d5771 2025-08-27 17:23:53,358 - 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-08-27 17:23:53,359 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-62887952-99478342 failed! 2025-08-27 17:23:53,413 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-62887952:ctest-vn-67406177 is 201.238.174.1 and allocation pool is NOT set 2025-08-27 17:23:55,475 - 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=3.70 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.42 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 = 1.416/2.556/3.697/1.140 ms') 2025-08-27 17:23:55,475 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-62887952-99478342 passed 2025-08-27 17:23:55,621 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-27 17:23:55,621 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-62887952-99478342, IP 201.238.174.3, Port 22 2025-08-27 17:23:55,776 - DEBUG - VM ctest-TestBasicPolicy-62887952-99478342 is ready for SSH connections 2025-08-27 17:23:55,776 - INFO - Waiting for VM ctest-TestBasicPolicy-62887952-88683862 to be up.. 2025-08-27 17:23:55,839 - DEBUG - VM is in ACTIVE state now 2025-08-27 17:23:55,839 - INFO - VM name : ctest-TestBasicPolicy-62887952-88683862 2025-08-27 17:23:55,901 - DEBUG - VM ctest-TestBasicPolicy-62887952-88683862 ID is 6b5c37b3-8b83-4256-b058-9c74c6dc887e 2025-08-27 17:23:55,901 - DEBUG - VM ctest-TestBasicPolicy-62887952-88683862 launched on Node cn-jenkins-deploy-platform-ansible-os-3951-1 2025-08-27 17:23:55,962 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/6b5c37b3-8b83-4256-b058-9c74c6dc887e 2025-08-27 17:23:55,970 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/d348df65-3496-4058-ba48-04988f63b7af 2025-08-27 17:23:57,215 - 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.71 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.52 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 = 1.520/3.115/4.711/1.595 ms') 2025-08-27 17:23:57,215 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-62887952-88683862 passed 2025-08-27 17:23:57,369 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-27 17:23:57,369 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-62887952-88683862, IP 40.38.108.67, Port 22 2025-08-27 17:23:57,436 - 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-08-27 17:23:57,507 - DEBUG - VM ctest-TestBasicPolicy-62887952-88683862 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-27 17:24:02,508 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-27 17:24:02,508 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-62887952-88683862, IP 40.38.108.67, Port 22 2025-08-27 17:24:02,664 - DEBUG - VM ctest-TestBasicPolicy-62887952-88683862 is ready for SSH connections 2025-08-27 17:24:02,664 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-27 17:24:02,665 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 40.38.108.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-08-27 17:24:02,665 - DEBUG - ping -s 56 -c 3 -W 1 40.38.108.67 2025-08-27 17:24:06,407 - DEBUG - PING 40.38.108.67 (40.38.108.67): 56 data bytes 64 bytes from 40.38.108.67: seq=0 ttl=63 time=5.567 ms 64 bytes from 40.38.108.67: seq=1 ttl=63 time=0.837 ms 64 bytes from 40.38.108.67: seq=2 ttl=63 time=0.732 ms --- 40.38.108.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.732/2.378/5.567 ms 2025-08-27 17:24:06,407 - INFO - Ping to IP 40.38.108.67 from VM ctest-TestBasicPolicy-62887952-99478342 passed 2025-08-27 17:24:06,577 - DEBUG - Policy Update Response {"network-policy": {"uuid": "24cbe720-5969-4828-a43e-fb0055df8d32", "href": "http://10.0.0.38:8082/network-policy/24cbe720-5969-4828-a43e-fb0055df8d32"}} 2025-08-27 17:24:06,577 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-27 17:24:06,577 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 40.38.108.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-08-27 17:24:06,577 - DEBUG - ping -s 56 -c 3 -W 1 40.38.108.67 2025-08-27 17:24:09,779 - DEBUG - PING 40.38.108.67 (40.38.108.67): 56 data bytes --- 40.38.108.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-08-27 17:24:09,779 - WARNING - Ping to IP 40.38.108.67 from VM ctest-TestBasicPolicy-62887952-99478342 failed 2025-08-27 17:24:09,779 - INFO - Deleting VM ctest-TestBasicPolicy-62887952-88683862 2025-08-27 17:24:09,844 - INFO - Deleting VM ctest-TestBasicPolicy-62887952-99478342 2025-08-27 17:24:10,186 - INFO - Deleted policy ctest-policy-allow-all-03355136 2025-08-27 17:24:10,186 - INFO - Deleting VN ctest-vn-53165929 2025-08-27 17:24:10,220 - DEBUG - VN a3841c88-fe1a-42b6-ab9d-1449d83963ac still in use: Unable to complete operation on network a3841c88-fe1a-42b6-ab9d-1449d83963ac. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-19d6d5dd-111f-4ab4-946d-9a7b481bb31f'] 2025-08-27 17:24:10,220 - WARNING - Deleting VN ctest-vn-53165929 failed..Will retry 2025-08-27 17:24:12,307 - DEBUG - Response for deleting network () 2025-08-27 17:24:12,307 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/93ef7194-8065-484e-8d4e-ded061670c6d 2025-08-27 17:24:12,313 - DEBUG - Response Code: 404 2025-08-27 17:24:12,313 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-27 17:24:12,317 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f6cdc217-967e-4f16-93f8-ca2fa63366d7 2025-08-27 17:24:12,374 - DEBUG - Requesting: http://10.0.0.38:8082/project/893e584c-c948-41c0-9c11-0dd8bf07133c 2025-08-27 17:24:12,439 - INFO - Validated that VN ctest-vn-53165929 is not found in API Server 2025-08-27 17:24:12,447 - DEBUG - VN ctest-vn-53165929 is not present in Agent 10.0.0.38 2025-08-27 17:24:12,447 - INFO - Validated that VN ctest-vn-53165929 is not in any agent 2025-08-27 17:24:12,459 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-53165929 info 2025-08-27 17:24:12,459 - INFO - Deleting VN ctest-vn-67406177 2025-08-27 17:24:12,549 - DEBUG - Response for deleting network () 2025-08-27 17:24:12,549 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/efbf4a5e-128d-4c9a-883d-d4a93d2ada2b 2025-08-27 17:24:12,553 - DEBUG - Response Code: 404 2025-08-27 17:24:12,553 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-27 17:24:12,557 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f6cdc217-967e-4f16-93f8-ca2fa63366d7 2025-08-27 17:24:12,610 - DEBUG - Requesting: http://10.0.0.38:8082/project/893e584c-c948-41c0-9c11-0dd8bf07133c 2025-08-27 17:24:12,675 - INFO - Validated that VN ctest-vn-67406177 is not found in API Server 2025-08-27 17:24:12,684 - DEBUG - VN ctest-vn-67406177 is not present in Agent 10.0.0.38 2025-08-27 17:24:12,684 - INFO - Validated that VN ctest-vn-67406177 is not in any agent 2025-08-27 17:24:12,696 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-67406177 info 2025-08-27 17:24:12,950 - DEBUG - No XMPP flaps were noticed during the test 2025-08-27 17:24:12,950 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:33] 2025-08-27 17:24:12,950 - INFO - -------------------------------------------------------------------------------- 2025-08-27 17:24:13,582 - INFO - Deleted project: ctest-TestBasicPolicy-62887952, ID : 893e584c-c948-41c0-9c11-0dd8bf07133c