2025-07-22 11:48:20,408 - INFO - Domain Default found not creating 2025-07-22 11:48:20,546 - INFO - Project ctest-TestBasicPolicy-82129689 not found, creating it 2025-07-22 11:48:21,007 - INFO - Created Project:ctest-TestBasicPolicy-82129689, ID : 4eb4415b-c493-4d04-b6f5-74d520d1179e 2025-07-22 11:48:22,429 - INFO - ================================================================================ 2025-07-22 11:48:22,430 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-07-22 11:48:22,430 - 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-07-22 11:48:22,680 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.192': '0'}} with 2025-07-22 11:48:22,680 - INFO - Initial checks done. Running the testcase now 2025-07-22 11:48:22,680 - INFO - 2025-07-22 11:48:23,218 - DEBUG - Response for create_network : {'network': {'id': '65416471-c718-4019-b8d4-c10d5ac3fbe7', 'name': 'ctest-vn-25489678', 'tenant_id': '4eb4415bc4934d04b6f574d520d1179e', 'project_id': '4eb4415bc4934d04b6f574d520d1179e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82129689', 'ctest-vn-25489678'], 'port_security_enabled': True, 'description': ''}} 2025-07-22 11:48:23,414 - DEBUG - Response for create_subnet : {'subnet': {'id': '8894741f-3e3f-4fda-8b55-435eff592dbc', 'name': '', 'tenant_id': '4eb4415bc4934d04b6f574d520d1179e', 'network_id': '65416471-c718-4019-b8d4-c10d5ac3fbe7', 'ip_version': 4, 'cidr': '158.187.254.192/26', 'allocation_pools': [{'start': '158.187.254.194', 'end': '158.187.254.254'}], 'gateway_ip': '158.187.254.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '158.187.254.194', 'tags': [], 'project_id': '4eb4415bc4934d04b6f574d520d1179e'}} 2025-07-22 11:48:23,431 - INFO - Created VN ctest-vn-25489678 2025-07-22 11:48:23,486 - DEBUG - VN ctest-vn-25489678 UUID is 65416471-c718-4019-b8d4-c10d5ac3fbe7 2025-07-22 11:48:23,810 - DEBUG - Response for create_network : {'network': {'id': 'd207df2b-f0ab-4323-8ce8-c01e89013802', 'name': 'ctest-vn-11704102', 'tenant_id': '4eb4415bc4934d04b6f574d520d1179e', 'project_id': '4eb4415bc4934d04b6f574d520d1179e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82129689', 'ctest-vn-11704102'], 'port_security_enabled': True, 'description': ''}} 2025-07-22 11:48:24,031 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cab164b3-a414-4d87-aa37-280cf09ffeba', 'name': '', 'tenant_id': '4eb4415bc4934d04b6f574d520d1179e', 'network_id': 'd207df2b-f0ab-4323-8ce8-c01e89013802', 'ip_version': 4, 'cidr': '199.35.254.192/26', 'allocation_pools': [{'start': '199.35.254.194', 'end': '199.35.254.254'}], 'gateway_ip': '199.35.254.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '199.35.254.194', 'tags': [], 'project_id': '4eb4415bc4934d04b6f574d520d1179e'}} 2025-07-22 11:48:24,169 - INFO - Created VN ctest-vn-11704102 2025-07-22 11:48:24,222 - DEBUG - VN ctest-vn-11704102 UUID is d207df2b-f0ab-4323-8ce8-c01e89013802 2025-07-22 11:48:24,370 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-82129689:ctest-vn-25489678, 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-82129689:ctest-vn-11704102, 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-07-22 11:48:24,662 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '65416471-c718-4019-b8d4-c10d5ac3fbe7', 'name': 'ctest-vn-25489678', 'tenant_id': '4eb4415bc4934d04b6f574d520d1179e', 'project_id': '4eb4415bc4934d04b6f574d520d1179e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8894741f-3e3f-4fda-8b55-435eff592dbc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82129689', 'ctest-vn-25489678'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82129689', 'ctest-policy-allow-all-09590469']], 'subnet_ipam': [{'subnet_cidr': '158.187.254.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-22 11:48:24,951 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd207df2b-f0ab-4323-8ce8-c01e89013802', 'name': 'ctest-vn-11704102', 'tenant_id': '4eb4415bc4934d04b6f574d520d1179e', 'project_id': '4eb4415bc4934d04b6f574d520d1179e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cab164b3-a414-4d87-aa37-280cf09ffeba'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82129689', 'ctest-vn-11704102'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82129689', 'ctest-policy-allow-all-09590469']], 'subnet_ipam': [{'subnet_cidr': '199.35.254.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-22 11:48:25,106 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-07-22 11:48:25,407 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-07-22 11:48:25,436 - DEBUG - Requesting: http://10.0.0.19:8082/domain/fa15a9fa-9ad2-412b-bd19-28e44cc8bb22 2025-07-22 11:48:25,449 - DEBUG - Requesting: http://10.0.0.19:8082/project/4eb4415b-c493-4d04-b6f5-74d520d1179e 2025-07-22 11:48:25,521 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/65416471-c718-4019-b8d4-c10d5ac3fbe7 2025-07-22 11:48:25,533 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/65416471-c718-4019-b8d4-c10d5ac3fbe7 2025-07-22 11:48:25,543 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/31f9a0ed-8cbf-4ec9-903f-3377b881052b 2025-07-22 11:48:25,551 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/31f9a0ed-8cbf-4ec9-903f-3377b881052b 2025-07-22 11:48:25,558 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/1d0376af-a8c2-4bde-ad25-24eef653fe8e 2025-07-22 11:48:25,565 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-22 11:48:25,565 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/65416471-c718-4019-b8d4-c10d5ac3fbe7 2025-07-22 11:48:25,574 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/31f9a0ed-8cbf-4ec9-903f-3377b881052b 2025-07-22 11:48:25,589 - INFO - Verified VN network id 8 for VN 65416471-c718-4019-b8d4-c10d5ac3fbe7 2025-07-22 11:48:25,589 - INFO - Verifications in API Server for VN ctest-vn-25489678 passed 2025-07-22 11:48:25,590 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/65416471-c718-4019-b8d4-c10d5ac3fbe7 2025-07-22 11:48:25,600 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/31f9a0ed-8cbf-4ec9-903f-3377b881052b 2025-07-22 11:48:25,607 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/31f9a0ed-8cbf-4ec9-903f-3377b881052b 2025-07-22 11:48:25,615 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/1d0376af-a8c2-4bde-ad25-24eef653fe8e 2025-07-22 11:48:25,628 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82129689:ctest-vn-25489678', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82129689', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7296223311151251481', 'uuid-lslong': '13318482261142928359'}, 'enable': 'true', 'created': '2025-07-22T11:48:23', 'last-modified': '2025-07-22T11:48:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.984768'} 2025-07-22 11:48:25,635 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-22 11:48:25,635 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25489678 passed 2025-07-22 11:48:25,635 - DEBUG - ====Verifying policy data for ctest-vn-25489678 in API_Server ====== 2025-07-22 11:48:25,635 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-07-22 11:48:25,641 - DEBUG - Requesting: http://10.0.0.19:8082/domain/fa15a9fa-9ad2-412b-bd19-28e44cc8bb22 2025-07-22 11:48:25,654 - DEBUG - Requesting: http://10.0.0.19:8082/project/4eb4415b-c493-4d04-b6f5-74d520d1179e 2025-07-22 11:48:25,728 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/65416471-c718-4019-b8d4-c10d5ac3fbe7 2025-07-22 11:48:25,737 - DEBUG - ==>Verifying data for policy with id: dbc29525-31ed-42e3-a960-bb7ac2e80303, fqn: ['default-domain', 'ctest-TestBasicPolicy-82129689', 'ctest-policy-allow-all-09590469'] 2025-07-22 11:48:25,737 - INFO - VN ctest-vn-25489678 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-22 11:48:25,737 - DEBUG - Verifying the vn in opserver 2025-07-22 11:48:25,738 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82129689:ctest-vn-25489678 virtual network link through opserver 10.0.0.19 2025-07-22 11:48:25,738 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-07-22 11:48:26,027 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-07-22 11:48:26,082 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82129689:ctest-vn-25489678', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82129689:ctest-vn-25489678?flat'} 2025-07-22 11:48:26,082 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82129689:ctest-vn-25489678 is found in opserver 2025-07-22 11:48:26,092 - DEBUG - Do not have enough data to verify VN in agent 2025-07-22 11:48:26,098 - DEBUG - VRF ids for VN ctest-vn-25489678: {} 2025-07-22 11:48:26,098 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-07-22 11:48:26,104 - DEBUG - Requesting: http://10.0.0.19:8082/domain/fa15a9fa-9ad2-412b-bd19-28e44cc8bb22 2025-07-22 11:48:26,116 - DEBUG - Requesting: http://10.0.0.19:8082/project/4eb4415b-c493-4d04-b6f5-74d520d1179e 2025-07-22 11:48:26,188 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/d207df2b-f0ab-4323-8ce8-c01e89013802 2025-07-22 11:48:26,200 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/d207df2b-f0ab-4323-8ce8-c01e89013802 2025-07-22 11:48:26,211 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/5c448e00-47ea-4b63-9286-ac3ce1c9a936 2025-07-22 11:48:26,218 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/5c448e00-47ea-4b63-9286-ac3ce1c9a936 2025-07-22 11:48:26,225 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/5baa6319-311c-4799-936f-84e85cc0a44d 2025-07-22 11:48:26,231 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-22 11:48:26,231 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/d207df2b-f0ab-4323-8ce8-c01e89013802 2025-07-22 11:48:26,240 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/5c448e00-47ea-4b63-9286-ac3ce1c9a936 2025-07-22 11:48:26,257 - INFO - Verified VN network id 9 for VN d207df2b-f0ab-4323-8ce8-c01e89013802 2025-07-22 11:48:26,257 - INFO - Verifications in API Server for VN ctest-vn-11704102 passed 2025-07-22 11:48:26,258 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/d207df2b-f0ab-4323-8ce8-c01e89013802 2025-07-22 11:48:26,268 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/5c448e00-47ea-4b63-9286-ac3ce1c9a936 2025-07-22 11:48:26,276 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/5c448e00-47ea-4b63-9286-ac3ce1c9a936 2025-07-22 11:48:26,284 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/5baa6319-311c-4799-936f-84e85cc0a44d 2025-07-22 11:48:26,297 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82129689:ctest-vn-11704102', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82129689', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15134310452616184611', 'uuid-lslong': '10153576597286893570'}, 'enable': 'true', 'created': '2025-07-22T11:48:23', 'last-modified': '2025-07-22T11:48:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.417373'} 2025-07-22 11:48:26,304 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-22 11:48:26,304 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11704102 passed 2025-07-22 11:48:26,304 - DEBUG - ====Verifying policy data for ctest-vn-11704102 in API_Server ====== 2025-07-22 11:48:26,304 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-07-22 11:48:26,311 - DEBUG - Requesting: http://10.0.0.19:8082/domain/fa15a9fa-9ad2-412b-bd19-28e44cc8bb22 2025-07-22 11:48:26,323 - DEBUG - Requesting: http://10.0.0.19:8082/project/4eb4415b-c493-4d04-b6f5-74d520d1179e 2025-07-22 11:48:26,395 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/d207df2b-f0ab-4323-8ce8-c01e89013802 2025-07-22 11:48:26,406 - DEBUG - ==>Verifying data for policy with id: dbc29525-31ed-42e3-a960-bb7ac2e80303, fqn: ['default-domain', 'ctest-TestBasicPolicy-82129689', 'ctest-policy-allow-all-09590469'] 2025-07-22 11:48:26,406 - INFO - VN ctest-vn-11704102 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-22 11:48:26,406 - DEBUG - Verifying the vn in opserver 2025-07-22 11:48:26,406 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82129689:ctest-vn-11704102 virtual network link through opserver 10.0.0.19 2025-07-22 11:48:26,406 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-07-22 11:48:26,418 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82129689:ctest-vn-11704102', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82129689:ctest-vn-11704102?flat'} 2025-07-22 11:48:26,418 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82129689:ctest-vn-11704102 is found in opserver 2025-07-22 11:48:26,429 - DEBUG - Do not have enough data to verify VN in agent 2025-07-22 11:48:26,434 - DEBUG - VRF ids for VN ctest-vn-11704102: {} 2025-07-22 11:48:26,490 - DEBUG - Services list from nova: [, , ] 2025-07-22 11:48:27,480 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3690-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3690-1) 2025-07-22 11:48:28,656 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3690-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3690-1) 2025-07-22 11:48:28,656 - INFO - Waiting for VM ctest-TestBasicPolicy-82129689-73057663 to be up.. 2025-07-22 11:48:28,726 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-22 11:48:33,797 - DEBUG - VM is in ACTIVE state now 2025-07-22 11:48:33,797 - INFO - VM name : ctest-TestBasicPolicy-82129689-73057663 2025-07-22 11:48:33,865 - DEBUG - VM ctest-TestBasicPolicy-82129689-73057663 ID is 6380c034-ec43-45da-806f-4a481eda3ef6 2025-07-22 11:48:33,883 - DEBUG - VM ctest-TestBasicPolicy-82129689-73057663 launched on Node cn-jenkins-deploy-platform-ansible-os-3690-1 2025-07-22 11:48:33,948 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine/6380c034-ec43-45da-806f-4a481eda3ef6 2025-07-22 11:48:33,956 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine-interface/12f96641-a04f-46d0-92e9-9eafd341c691 2025-07-22 11:48:37,211 - 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 1019ms') 2025-07-22 11:48:37,211 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-82129689-73057663 failed! 2025-07-22 11:48:37,266 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-82129689:ctest-vn-25489678 is 158.187.254.193 and allocation pool is NOT set 2025-07-22 11:48:39,324 - 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.84 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.381 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.381/1.608/2.835/1.227 ms') 2025-07-22 11:48:39,324 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-82129689-73057663 passed 2025-07-22 11:48:39,474 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 11:48:39,474 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-82129689-73057663, IP 158.187.254.195, Port 22 2025-07-22 11:48:39,629 - DEBUG - VM ctest-TestBasicPolicy-82129689-73057663 is ready for SSH connections 2025-07-22 11:48:39,629 - INFO - Waiting for VM ctest-TestBasicPolicy-82129689-76325552 to be up.. 2025-07-22 11:48:39,706 - DEBUG - VM is in ACTIVE state now 2025-07-22 11:48:39,706 - INFO - VM name : ctest-TestBasicPolicy-82129689-76325552 2025-07-22 11:48:39,777 - DEBUG - VM ctest-TestBasicPolicy-82129689-76325552 ID is daf70171-a521-4a5f-ace6-1d114b78c148 2025-07-22 11:48:39,777 - DEBUG - VM ctest-TestBasicPolicy-82129689-76325552 launched on Node cn-jenkins-deploy-platform-ansible-os-3690-1 2025-07-22 11:48:39,848 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine/daf70171-a521-4a5f-ace6-1d114b78c148 2025-07-22 11:48:39,857 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine-interface/76fc6106-924b-4901-8235-93cd6a966803 2025-07-22 11:48:41,093 - 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.39 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.45 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.445/2.916/4.387/1.471 ms') 2025-07-22 11:48:41,093 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-82129689-76325552 passed 2025-07-22 11:48:41,242 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 11:48:41,242 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-82129689-76325552, IP 199.35.254.195, Port 22 2025-07-22 11:48:41,297 - 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-07-22 11:48:41,369 - DEBUG - VM ctest-TestBasicPolicy-82129689-76325552 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-22 11:48:46,370 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 11:48:46,370 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-82129689-76325552, IP 199.35.254.195, Port 22 2025-07-22 11:48:46,529 - DEBUG - VM ctest-TestBasicPolicy-82129689-76325552 is ready for SSH connections 2025-07-22 11:48:46,529 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 11:48:46,529 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 199.35.254.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.19, gateway password: c0ntrail123 2025-07-22 11:48:46,529 - DEBUG - ping -s 56 -c 3 -W 1 199.35.254.195 2025-07-22 11:48:50,201 - DEBUG - PING 199.35.254.195 (199.35.254.195): 56 data bytes 64 bytes from 199.35.254.195: seq=0 ttl=63 time=3.667 ms 64 bytes from 199.35.254.195: seq=1 ttl=63 time=0.772 ms 64 bytes from 199.35.254.195: seq=2 ttl=63 time=0.792 ms --- 199.35.254.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.772/1.743/3.667 ms 2025-07-22 11:48:50,201 - INFO - Ping to IP 199.35.254.195 from VM ctest-TestBasicPolicy-82129689-73057663 passed 2025-07-22 11:48:50,389 - DEBUG - Policy Update Response {"network-policy": {"uuid": "dbc29525-31ed-42e3-a960-bb7ac2e80303", "href": "http://10.0.0.19:8082/network-policy/dbc29525-31ed-42e3-a960-bb7ac2e80303"}} 2025-07-22 11:48:50,390 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 11:48:50,390 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 199.35.254.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.19, gateway password: c0ntrail123 2025-07-22 11:48:50,390 - DEBUG - ping -s 56 -c 3 -W 1 199.35.254.195 2025-07-22 11:48:53,591 - DEBUG - PING 199.35.254.195 (199.35.254.195): 56 data bytes 64 bytes from 199.35.254.195: seq=0 ttl=63 time=1.478 ms --- 199.35.254.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.478/1.478/1.478 ms 2025-07-22 11:48:53,591 - WARNING - Ping to IP 199.35.254.195 from VM ctest-TestBasicPolicy-82129689-73057663 failed 2025-07-22 11:48:53,592 - INFO - Deleting VM ctest-TestBasicPolicy-82129689-76325552 2025-07-22 11:48:53,659 - INFO - Deleting VM ctest-TestBasicPolicy-82129689-73057663 2025-07-22 11:48:54,066 - INFO - Deleted policy ctest-policy-allow-all-09590469 2025-07-22 11:48:54,066 - INFO - Deleting VN ctest-vn-11704102 2025-07-22 11:48:54,103 - DEBUG - VN d207df2b-f0ab-4323-8ce8-c01e89013802 still in use: Unable to complete operation on network d207df2b-f0ab-4323-8ce8-c01e89013802. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e45d79bc-3842-49ad-ae19-ad13c91a2224'] 2025-07-22 11:48:54,103 - WARNING - Deleting VN ctest-vn-11704102 failed..Will retry 2025-07-22 11:48:56,211 - DEBUG - Response for deleting network () 2025-07-22 11:48:56,211 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/5c448e00-47ea-4b63-9286-ac3ce1c9a936 2025-07-22 11:48:56,220 - DEBUG - Response Code: 404 2025-07-22 11:48:56,220 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-07-22 11:48:56,226 - DEBUG - Requesting: http://10.0.0.19:8082/domain/fa15a9fa-9ad2-412b-bd19-28e44cc8bb22 2025-07-22 11:48:56,279 - DEBUG - Requesting: http://10.0.0.19:8082/project/4eb4415b-c493-4d04-b6f5-74d520d1179e 2025-07-22 11:48:56,357 - INFO - Validated that VN ctest-vn-11704102 is not found in API Server 2025-07-22 11:48:56,368 - DEBUG - VN ctest-vn-11704102 is not present in Agent 10.0.0.19 2025-07-22 11:48:56,368 - INFO - Validated that VN ctest-vn-11704102 is not in any agent 2025-07-22 11:48:56,384 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-11704102 info 2025-07-22 11:48:56,384 - INFO - Deleting VN ctest-vn-25489678 2025-07-22 11:48:56,483 - DEBUG - Response for deleting network () 2025-07-22 11:48:56,483 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/31f9a0ed-8cbf-4ec9-903f-3377b881052b 2025-07-22 11:48:56,491 - DEBUG - Response Code: 404 2025-07-22 11:48:56,491 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-07-22 11:48:56,497 - DEBUG - Requesting: http://10.0.0.19:8082/domain/fa15a9fa-9ad2-412b-bd19-28e44cc8bb22 2025-07-22 11:48:56,551 - DEBUG - Requesting: http://10.0.0.19:8082/project/4eb4415b-c493-4d04-b6f5-74d520d1179e 2025-07-22 11:48:56,625 - INFO - Validated that VN ctest-vn-25489678 is not found in API Server 2025-07-22 11:48:56,636 - DEBUG - VN ctest-vn-25489678 is not present in Agent 10.0.0.19 2025-07-22 11:48:56,636 - INFO - Validated that VN ctest-vn-25489678 is not in any agent 2025-07-22 11:48:56,651 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-25489678 info 2025-07-22 11:48:56,913 - DEBUG - No XMPP flaps were noticed during the test 2025-07-22 11:48:56,913 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:34] 2025-07-22 11:48:56,913 - INFO - -------------------------------------------------------------------------------- 2025-07-22 11:48:57,587 - INFO - Deleted project: ctest-TestBasicPolicy-82129689, ID : 4eb4415b-c493-4d04-b6f5-74d520d1179e