2025-10-22 14:05:54,052 - INFO - Domain Default found not creating 2025-10-22 14:05:54,207 - INFO - Project ctest-TestBasicPolicy-57070829 not found, creating it 2025-10-22 14:05:54,669 - INFO - Created Project:ctest-TestBasicPolicy-57070829, ID : 41c955a7-289d-4e0e-9f98-13dcd481e150 2025-10-22 14:05:56,176 - INFO - ================================================================================ 2025-10-22 14:05:56,176 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-22 14:05:56,176 - 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-10-22 14:05:56,438 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-10-22 14:05:56,438 - INFO - Initial checks done. Running the testcase now 2025-10-22 14:05:56,438 - INFO - 2025-10-22 14:05:57,025 - DEBUG - Response for create_network : {'network': {'id': '823ba1bb-0e6a-490f-ae12-3a4f848c0542', 'name': 'ctest-vn-98979763', 'tenant_id': '41c955a7289d4e0e9f9813dcd481e150', 'project_id': '41c955a7289d4e0e9f9813dcd481e150', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57070829', 'ctest-vn-98979763'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 14:05:57,214 - DEBUG - Response for create_subnet : {'subnet': {'id': '4fc80d91-25c5-4c58-8ac2-c8d76a5e77af', 'name': '', 'tenant_id': '41c955a7289d4e0e9f9813dcd481e150', 'network_id': '823ba1bb-0e6a-490f-ae12-3a4f848c0542', 'ip_version': 4, 'cidr': '206.220.23.128/26', 'allocation_pools': [{'start': '206.220.23.130', 'end': '206.220.23.190'}], 'gateway_ip': '206.220.23.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '206.220.23.130', 'tags': [], 'project_id': '41c955a7289d4e0e9f9813dcd481e150'}} 2025-10-22 14:05:57,232 - INFO - Created VN ctest-vn-98979763 2025-10-22 14:05:57,284 - DEBUG - VN ctest-vn-98979763 UUID is 823ba1bb-0e6a-490f-ae12-3a4f848c0542 2025-10-22 14:05:57,575 - DEBUG - Response for create_network : {'network': {'id': '6d9377d9-54e3-4fa3-b1a2-0348bc27703f', 'name': 'ctest-vn-63186486', 'tenant_id': '41c955a7289d4e0e9f9813dcd481e150', 'project_id': '41c955a7289d4e0e9f9813dcd481e150', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57070829', 'ctest-vn-63186486'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 14:05:57,785 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd422c1a6-6a90-46ca-8c91-6b51dacbc753', 'name': '', 'tenant_id': '41c955a7289d4e0e9f9813dcd481e150', 'network_id': '6d9377d9-54e3-4fa3-b1a2-0348bc27703f', 'ip_version': 4, 'cidr': '51.148.220.128/26', 'allocation_pools': [{'start': '51.148.220.130', 'end': '51.148.220.190'}], 'gateway_ip': '51.148.220.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '51.148.220.130', 'tags': [], 'project_id': '41c955a7289d4e0e9f9813dcd481e150'}} 2025-10-22 14:05:57,807 - INFO - Created VN ctest-vn-63186486 2025-10-22 14:05:57,860 - DEBUG - VN ctest-vn-63186486 UUID is 6d9377d9-54e3-4fa3-b1a2-0348bc27703f 2025-10-22 14:05:57,984 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-57070829:ctest-vn-98979763, 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-57070829:ctest-vn-63186486, 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-10-22 14:05:58,294 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '823ba1bb-0e6a-490f-ae12-3a4f848c0542', 'name': 'ctest-vn-98979763', 'tenant_id': '41c955a7289d4e0e9f9813dcd481e150', 'project_id': '41c955a7289d4e0e9f9813dcd481e150', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4fc80d91-25c5-4c58-8ac2-c8d76a5e77af'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57070829', 'ctest-vn-98979763'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57070829', 'ctest-policy-allow-all-69597481']], 'subnet_ipam': [{'subnet_cidr': '206.220.23.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-22 14:05:58,519 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6d9377d9-54e3-4fa3-b1a2-0348bc27703f', 'name': 'ctest-vn-63186486', 'tenant_id': '41c955a7289d4e0e9f9813dcd481e150', 'project_id': '41c955a7289d4e0e9f9813dcd481e150', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d422c1a6-6a90-46ca-8c91-6b51dacbc753'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57070829', 'ctest-vn-63186486'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57070829', 'ctest-policy-allow-all-69597481']], 'subnet_ipam': [{'subnet_cidr': '51.148.220.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-22 14:05:58,684 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-22 14:05:58,975 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-22 14:05:59,006 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3fe3e401-c3ee-433b-9150-57e565506592 2025-10-22 14:05:59,018 - DEBUG - Requesting: http://10.0.0.38:8082/project/41c955a7-289d-4e0e-9f98-13dcd481e150 2025-10-22 14:05:59,095 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/823ba1bb-0e6a-490f-ae12-3a4f848c0542 2025-10-22 14:05:59,105 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/823ba1bb-0e6a-490f-ae12-3a4f848c0542 2025-10-22 14:05:59,114 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0fb9a68b-7014-4cbb-b008-beb953b8acdd 2025-10-22 14:05:59,120 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0fb9a68b-7014-4cbb-b008-beb953b8acdd 2025-10-22 14:05:59,127 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8e047245-8f52-486f-a0bc-bce53f464279 2025-10-22 14:05:59,133 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 14:05:59,133 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/823ba1bb-0e6a-490f-ae12-3a4f848c0542 2025-10-22 14:05:59,142 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0fb9a68b-7014-4cbb-b008-beb953b8acdd 2025-10-22 14:05:59,155 - INFO - Verified VN network id 11 for VN 823ba1bb-0e6a-490f-ae12-3a4f848c0542 2025-10-22 14:05:59,155 - INFO - Verifications in API Server for VN ctest-vn-98979763 passed 2025-10-22 14:05:59,156 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/823ba1bb-0e6a-490f-ae12-3a4f848c0542 2025-10-22 14:05:59,164 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0fb9a68b-7014-4cbb-b008-beb953b8acdd 2025-10-22 14:05:59,171 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0fb9a68b-7014-4cbb-b008-beb953b8acdd 2025-10-22 14:05:59,178 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8e047245-8f52-486f-a0bc-bce53f464279 2025-10-22 14:05:59,190 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57070829:ctest-vn-98979763', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57070829', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9384272073329363215', 'uuid-lslong': '12543152025380848962'}, 'enable': 'true', 'created': '2025-10-22T14:05:56', 'last-modified': '2025-10-22T14:05:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.922821'} 2025-10-22 14:05:59,196 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 14:05:59,196 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98979763 passed 2025-10-22 14:05:59,197 - DEBUG - ====Verifying policy data for ctest-vn-98979763 in API_Server ====== 2025-10-22 14:05:59,197 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-22 14:05:59,202 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3fe3e401-c3ee-433b-9150-57e565506592 2025-10-22 14:05:59,213 - DEBUG - Requesting: http://10.0.0.38:8082/project/41c955a7-289d-4e0e-9f98-13dcd481e150 2025-10-22 14:05:59,282 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/823ba1bb-0e6a-490f-ae12-3a4f848c0542 2025-10-22 14:05:59,291 - DEBUG - ==>Verifying data for policy with id: 49a34d9c-8180-458d-8a48-3f1bbc6a44ef, fqn: ['default-domain', 'ctest-TestBasicPolicy-57070829', 'ctest-policy-allow-all-69597481'] 2025-10-22 14:05:59,291 - INFO - VN ctest-vn-98979763 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 14:05:59,291 - DEBUG - Verifying the vn in opserver 2025-10-22 14:05:59,291 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57070829:ctest-vn-98979763 virtual network link through opserver 10.0.0.38 2025-10-22 14:05:59,291 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-22 14:05:59,589 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-22 14:05:59,660 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57070829:ctest-vn-98979763', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57070829:ctest-vn-98979763?flat'} 2025-10-22 14:05:59,660 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57070829:ctest-vn-98979763 is found in opserver 2025-10-22 14:05:59,672 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 14:05:59,678 - DEBUG - VRF ids for VN ctest-vn-98979763: {} 2025-10-22 14:05:59,678 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-22 14:05:59,684 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3fe3e401-c3ee-433b-9150-57e565506592 2025-10-22 14:05:59,694 - DEBUG - Requesting: http://10.0.0.38:8082/project/41c955a7-289d-4e0e-9f98-13dcd481e150 2025-10-22 14:05:59,760 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6d9377d9-54e3-4fa3-b1a2-0348bc27703f 2025-10-22 14:05:59,772 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6d9377d9-54e3-4fa3-b1a2-0348bc27703f 2025-10-22 14:05:59,782 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9cafe347-f349-4875-a737-0f7e4c707d37 2025-10-22 14:05:59,789 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9cafe347-f349-4875-a737-0f7e4c707d37 2025-10-22 14:05:59,797 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1b582966-5797-4ca0-9744-b3d34dd77a7b 2025-10-22 14:05:59,813 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-22 14:05:59,813 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6d9377d9-54e3-4fa3-b1a2-0348bc27703f 2025-10-22 14:05:59,825 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9cafe347-f349-4875-a737-0f7e4c707d37 2025-10-22 14:05:59,845 - INFO - Verified VN network id 12 for VN 6d9377d9-54e3-4fa3-b1a2-0348bc27703f 2025-10-22 14:05:59,845 - INFO - Verifications in API Server for VN ctest-vn-63186486 passed 2025-10-22 14:05:59,845 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6d9377d9-54e3-4fa3-b1a2-0348bc27703f 2025-10-22 14:05:59,860 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9cafe347-f349-4875-a737-0f7e4c707d37 2025-10-22 14:05:59,871 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9cafe347-f349-4875-a737-0f7e4c707d37 2025-10-22 14:05:59,878 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1b582966-5797-4ca0-9744-b3d34dd77a7b 2025-10-22 14:05:59,890 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57070829:ctest-vn-63186486', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57070829', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7895786347026403235', 'uuid-lslong': '12799796701869600831'}, 'enable': 'true', 'created': '2025-10-22T14:05:57', 'last-modified': '2025-10-22T14:05:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.390179'} 2025-10-22 14:05:59,896 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-22 14:05:59,896 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63186486 passed 2025-10-22 14:05:59,896 - DEBUG - ====Verifying policy data for ctest-vn-63186486 in API_Server ====== 2025-10-22 14:05:59,896 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-22 14:05:59,902 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3fe3e401-c3ee-433b-9150-57e565506592 2025-10-22 14:05:59,913 - DEBUG - Requesting: http://10.0.0.38:8082/project/41c955a7-289d-4e0e-9f98-13dcd481e150 2025-10-22 14:05:59,987 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6d9377d9-54e3-4fa3-b1a2-0348bc27703f 2025-10-22 14:05:59,996 - DEBUG - ==>Verifying data for policy with id: 49a34d9c-8180-458d-8a48-3f1bbc6a44ef, fqn: ['default-domain', 'ctest-TestBasicPolicy-57070829', 'ctest-policy-allow-all-69597481'] 2025-10-22 14:05:59,996 - INFO - VN ctest-vn-63186486 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 14:05:59,996 - DEBUG - Verifying the vn in opserver 2025-10-22 14:05:59,997 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57070829:ctest-vn-63186486 virtual network link through opserver 10.0.0.38 2025-10-22 14:05:59,997 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-22 14:06:00,006 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57070829:ctest-vn-63186486', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57070829:ctest-vn-63186486?flat'} 2025-10-22 14:06:00,006 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57070829:ctest-vn-63186486 is found in opserver 2025-10-22 14:06:00,016 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 14:06:00,022 - DEBUG - VRF ids for VN ctest-vn-63186486: {} 2025-10-22 14:06:00,080 - DEBUG - Services list from nova: [, , ] 2025-10-22 14:06:01,128 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4430-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4430-1) 2025-10-22 14:06:02,388 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4430-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4430-1) 2025-10-22 14:06:02,388 - INFO - Waiting for VM ctest-TestBasicPolicy-57070829-27357353 to be up.. 2025-10-22 14:06:02,475 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-22 14:06:07,583 - DEBUG - VM is in ACTIVE state now 2025-10-22 14:06:07,584 - INFO - VM name : ctest-TestBasicPolicy-57070829-27357353 2025-10-22 14:06:07,684 - DEBUG - VM ctest-TestBasicPolicy-57070829-27357353 ID is a9b22b82-c779-4fd5-80be-e0a8c7ceca22 2025-10-22 14:06:07,706 - DEBUG - VM ctest-TestBasicPolicy-57070829-27357353 launched on Node cn-jenkins-deploy-platform-ansible-os-4430-1 2025-10-22 14:06:07,799 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/a9b22b82-c779-4fd5-80be-e0a8c7ceca22 2025-10-22 14:06:07,807 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/f8707680-0bef-40fb-8f44-a6ac1b41cd5b 2025-10-22 14:06:11,062 - 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 1011ms') 2025-10-22 14:06:11,062 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-57070829-27357353 failed! 2025-10-22 14:06:11,116 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-57070829:ctest-vn-98979763 is 206.220.23.129 and allocation pool is NOT set 2025-10-22 14:06:13,180 - 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=13.3 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.396 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.396/6.860/13.324/6.464 ms') 2025-10-22 14:06:13,180 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-57070829-27357353 passed 2025-10-22 14:06:13,332 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 14:06:13,333 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-57070829-27357353, IP 206.220.23.131, Port 22 2025-10-22 14:06:13,512 - DEBUG - VM ctest-TestBasicPolicy-57070829-27357353 is ready for SSH connections 2025-10-22 14:06:13,512 - INFO - Waiting for VM ctest-TestBasicPolicy-57070829-49161900 to be up.. 2025-10-22 14:06:13,591 - DEBUG - VM is in ACTIVE state now 2025-10-22 14:06:13,591 - INFO - VM name : ctest-TestBasicPolicy-57070829-49161900 2025-10-22 14:06:13,662 - DEBUG - VM ctest-TestBasicPolicy-57070829-49161900 ID is df7d819e-8326-4cc9-844c-cd12968357bc 2025-10-22 14:06:13,662 - DEBUG - VM ctest-TestBasicPolicy-57070829-49161900 launched on Node cn-jenkins-deploy-platform-ansible-os-4430-1 2025-10-22 14:06:13,738 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/df7d819e-8326-4cc9-844c-cd12968357bc 2025-10-22 14:06:13,747 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/30f3436f-ad72-4dc9-a317-f3b3476d4eb6 2025-10-22 14:06:14,993 - 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.82 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.63 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 = 1.629/3.222/4.816/1.593 ms') 2025-10-22 14:06:14,993 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-57070829-49161900 passed 2025-10-22 14:06:15,145 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 14:06:15,145 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-57070829-49161900, IP 51.148.220.131, Port 22 2025-10-22 14:06:15,205 - 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-10-22 14:06:15,282 - DEBUG - VM ctest-TestBasicPolicy-57070829-49161900 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-22 14:06:20,283 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 14:06:20,283 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-57070829-49161900, IP 51.148.220.131, Port 22 2025-10-22 14:06:20,450 - DEBUG - VM ctest-TestBasicPolicy-57070829-49161900 is ready for SSH connections 2025-10-22 14:06:20,451 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 14:06:20,451 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 51.148.220.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-10-22 14:06:20,451 - DEBUG - ping -s 56 -c 3 -W 1 51.148.220.131 2025-10-22 14:06:24,548 - DEBUG - PING 51.148.220.131 (51.148.220.131): 56 data bytes 64 bytes from 51.148.220.131: seq=0 ttl=63 time=4.400 ms 64 bytes from 51.148.220.131: seq=1 ttl=63 time=1.043 ms 64 bytes from 51.148.220.131: seq=2 ttl=63 time=0.828 ms --- 51.148.220.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.828/2.090/4.400 ms 2025-10-22 14:06:24,548 - INFO - Ping to IP 51.148.220.131 from VM ctest-TestBasicPolicy-57070829-27357353 passed 2025-10-22 14:06:24,736 - DEBUG - Policy Update Response {"network-policy": {"uuid": "49a34d9c-8180-458d-8a48-3f1bbc6a44ef", "href": "http://10.0.0.38:8082/network-policy/49a34d9c-8180-458d-8a48-3f1bbc6a44ef"}} 2025-10-22 14:06:24,736 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 14:06:24,736 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 51.148.220.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-10-22 14:06:24,737 - DEBUG - ping -s 56 -c 3 -W 1 51.148.220.131 2025-10-22 14:06:27,955 - DEBUG - PING 51.148.220.131 (51.148.220.131): 56 data bytes --- 51.148.220.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-10-22 14:06:27,955 - WARNING - Ping to IP 51.148.220.131 from VM ctest-TestBasicPolicy-57070829-27357353 failed 2025-10-22 14:06:27,955 - INFO - Deleting VM ctest-TestBasicPolicy-57070829-49161900 2025-10-22 14:06:28,031 - INFO - Deleting VM ctest-TestBasicPolicy-57070829-27357353 2025-10-22 14:06:28,415 - INFO - Deleted policy ctest-policy-allow-all-69597481 2025-10-22 14:06:28,415 - INFO - Deleting VN ctest-vn-63186486 2025-10-22 14:06:28,455 - DEBUG - VN 6d9377d9-54e3-4fa3-b1a2-0348bc27703f still in use: Unable to complete operation on network 6d9377d9-54e3-4fa3-b1a2-0348bc27703f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6bb848e5-db4d-43c3-a46b-746f88f42b9c'] 2025-10-22 14:06:28,455 - WARNING - Deleting VN ctest-vn-63186486 failed..Will retry 2025-10-22 14:06:30,582 - DEBUG - Response for deleting network () 2025-10-22 14:06:30,582 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9cafe347-f349-4875-a737-0f7e4c707d37 2025-10-22 14:06:30,587 - DEBUG - Response Code: 404 2025-10-22 14:06:30,587 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-22 14:06:30,592 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3fe3e401-c3ee-433b-9150-57e565506592 2025-10-22 14:06:30,648 - DEBUG - Requesting: http://10.0.0.38:8082/project/41c955a7-289d-4e0e-9f98-13dcd481e150 2025-10-22 14:06:30,717 - INFO - Validated that VN ctest-vn-63186486 is not found in API Server 2025-10-22 14:06:30,725 - DEBUG - VN ctest-vn-63186486 is not present in Agent 10.0.0.38 2025-10-22 14:06:30,725 - INFO - Validated that VN ctest-vn-63186486 is not in any agent 2025-10-22 14:06:30,739 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-63186486 info 2025-10-22 14:06:30,739 - INFO - Deleting VN ctest-vn-98979763 2025-10-22 14:06:30,838 - DEBUG - Response for deleting network () 2025-10-22 14:06:30,838 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0fb9a68b-7014-4cbb-b008-beb953b8acdd 2025-10-22 14:06:30,843 - DEBUG - Response Code: 404 2025-10-22 14:06:30,843 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-22 14:06:30,847 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3fe3e401-c3ee-433b-9150-57e565506592 2025-10-22 14:06:30,901 - DEBUG - Requesting: http://10.0.0.38:8082/project/41c955a7-289d-4e0e-9f98-13dcd481e150 2025-10-22 14:06:30,977 - INFO - Validated that VN ctest-vn-98979763 is not found in API Server 2025-10-22 14:06:30,985 - DEBUG - VN ctest-vn-98979763 is not present in Agent 10.0.0.38 2025-10-22 14:06:30,986 - INFO - Validated that VN ctest-vn-98979763 is not in any agent 2025-10-22 14:06:30,999 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-98979763 info 2025-10-22 14:06:31,253 - DEBUG - No XMPP flaps were noticed during the test
2025-10-22 14:06:31,253 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-10-22 14:06:31,253 - INFO - -------------------------------------------------------------------------------- 2025-10-22 14:06:31,922 - INFO - Deleted project: ctest-TestBasicPolicy-57070829, ID : 41c955a7-289d-4e0e-9f98-13dcd481e150