2025-04-26 06:39:52,820 - INFO - Domain Default found not creating 2025-04-26 06:39:52,948 - INFO - Project ctest-TestBasicPolicy-87366797 not found, creating it 2025-04-26 06:39:53,394 - INFO - Created Project:ctest-TestBasicPolicy-87366797, ID : 1666894d-df95-4ec3-b50f-5d8f7a92da54 2025-04-26 06:39:54,792 - INFO - ================================================================================ 2025-04-26 06:39:54,792 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-26 06:39:54,792 - 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-04-26 06:39:55,056 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-04-26 06:39:55,056 - INFO - Initial checks done. Running the testcase now 2025-04-26 06:39:55,056 - INFO - 2025-04-26 06:39:55,583 - DEBUG - Response for create_network : {'network': {'id': 'c2d8c539-1f32-4b36-92b8-2889dcc61301', 'name': 'ctest-vn-20098802', 'tenant_id': '1666894ddf954ec3b50f5d8f7a92da54', 'project_id': '1666894ddf954ec3b50f5d8f7a92da54', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87366797', 'ctest-vn-20098802'], 'port_security_enabled': True, 'description': ''}} 2025-04-26 06:39:55,765 - DEBUG - Response for create_subnet : {'subnet': {'id': '51959bd7-1c80-460e-b655-8ea1dd0cef8c', 'name': '', 'tenant_id': '1666894ddf954ec3b50f5d8f7a92da54', 'network_id': 'c2d8c539-1f32-4b36-92b8-2889dcc61301', 'ip_version': 4, 'cidr': '154.251.24.192/26', 'allocation_pools': [{'start': '154.251.24.194', 'end': '154.251.24.254'}], 'gateway_ip': '154.251.24.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.251.24.194', 'tags': [], 'project_id': '1666894ddf954ec3b50f5d8f7a92da54'}} 2025-04-26 06:39:55,782 - INFO - Created VN ctest-vn-20098802 2025-04-26 06:39:55,838 - DEBUG - VN ctest-vn-20098802 UUID is c2d8c539-1f32-4b36-92b8-2889dcc61301 2025-04-26 06:39:56,154 - DEBUG - Response for create_network : {'network': {'id': '94f73f3f-3caa-4d0e-83ea-31cb64b9ea08', 'name': 'ctest-vn-97349078', 'tenant_id': '1666894ddf954ec3b50f5d8f7a92da54', 'project_id': '1666894ddf954ec3b50f5d8f7a92da54', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87366797', 'ctest-vn-97349078'], 'port_security_enabled': True, 'description': ''}} 2025-04-26 06:39:56,312 - DEBUG - Response for create_subnet : {'subnet': {'id': '4621f58b-a999-4a6a-be37-0f076088f068', 'name': '', 'tenant_id': '1666894ddf954ec3b50f5d8f7a92da54', 'network_id': '94f73f3f-3caa-4d0e-83ea-31cb64b9ea08', 'ip_version': 4, 'cidr': '35.121.210.64/26', 'allocation_pools': [{'start': '35.121.210.66', 'end': '35.121.210.126'}], 'gateway_ip': '35.121.210.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35.121.210.66', 'tags': [], 'project_id': '1666894ddf954ec3b50f5d8f7a92da54'}} 2025-04-26 06:39:56,329 - INFO - Created VN ctest-vn-97349078 2025-04-26 06:39:56,382 - DEBUG - VN ctest-vn-97349078 UUID is 94f73f3f-3caa-4d0e-83ea-31cb64b9ea08 2025-04-26 06:39:56,530 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87366797:ctest-vn-20098802, 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-87366797:ctest-vn-97349078, 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-04-26 06:39:56,819 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c2d8c539-1f32-4b36-92b8-2889dcc61301', 'name': 'ctest-vn-20098802', 'tenant_id': '1666894ddf954ec3b50f5d8f7a92da54', 'project_id': '1666894ddf954ec3b50f5d8f7a92da54', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['51959bd7-1c80-460e-b655-8ea1dd0cef8c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87366797', 'ctest-vn-20098802'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87366797', 'ctest-policy-allow-all-39495359']], 'subnet_ipam': [{'subnet_cidr': '154.251.24.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-26 06:39:57,095 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '94f73f3f-3caa-4d0e-83ea-31cb64b9ea08', 'name': 'ctest-vn-97349078', 'tenant_id': '1666894ddf954ec3b50f5d8f7a92da54', 'project_id': '1666894ddf954ec3b50f5d8f7a92da54', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4621f58b-a999-4a6a-be37-0f076088f068'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87366797', 'ctest-vn-97349078'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87366797', 'ctest-policy-allow-all-39495359']], 'subnet_ipam': [{'subnet_cidr': '35.121.210.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-26 06:39:57,259 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-26 06:39:57,552 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-26 06:39:57,579 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7d24b5e0-226a-4afc-ac4a-cbfbac65ea30 2025-04-26 06:39:57,592 - DEBUG - Requesting: http://10.0.0.254:8082/project/1666894d-df95-4ec3-b50f-5d8f7a92da54 2025-04-26 06:39:57,666 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c2d8c539-1f32-4b36-92b8-2889dcc61301 2025-04-26 06:39:57,677 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c2d8c539-1f32-4b36-92b8-2889dcc61301 2025-04-26 06:39:57,685 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/736c895b-771f-4b0b-b680-bb97f69564ea 2025-04-26 06:39:57,692 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/736c895b-771f-4b0b-b680-bb97f69564ea 2025-04-26 06:39:57,699 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0370e899-2aa1-4baa-9402-e0d73e23f39c 2025-04-26 06:39:57,705 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-26 06:39:57,705 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c2d8c539-1f32-4b36-92b8-2889dcc61301 2025-04-26 06:39:57,714 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/736c895b-771f-4b0b-b680-bb97f69564ea 2025-04-26 06:39:57,726 - INFO - Verified VN network id 8 for VN c2d8c539-1f32-4b36-92b8-2889dcc61301 2025-04-26 06:39:57,727 - INFO - Verifications in API Server for VN ctest-vn-20098802 passed 2025-04-26 06:39:57,727 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c2d8c539-1f32-4b36-92b8-2889dcc61301 2025-04-26 06:39:57,735 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/736c895b-771f-4b0b-b680-bb97f69564ea 2025-04-26 06:39:57,741 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/736c895b-771f-4b0b-b680-bb97f69564ea 2025-04-26 06:39:57,748 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0370e899-2aa1-4baa-9402-e0d73e23f39c 2025-04-26 06:39:57,759 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87366797:ctest-vn-20098802', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87366797', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14040188687454718774', 'uuid-lslong': '10572244697831838465'}, 'enable': 'true', 'created': '2025-04-26T06:39:55', 'last-modified': '2025-04-26T06:39:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.956234'} 2025-04-26 06:39:57,766 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-26 06:39:57,766 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20098802 passed 2025-04-26 06:39:57,767 - DEBUG - ====Verifying policy data for ctest-vn-20098802 in API_Server ====== 2025-04-26 06:39:57,767 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-26 06:39:57,773 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7d24b5e0-226a-4afc-ac4a-cbfbac65ea30 2025-04-26 06:39:57,784 - DEBUG - Requesting: http://10.0.0.254:8082/project/1666894d-df95-4ec3-b50f-5d8f7a92da54 2025-04-26 06:39:57,856 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c2d8c539-1f32-4b36-92b8-2889dcc61301 2025-04-26 06:39:57,865 - DEBUG - ==>Verifying data for policy with id: 1ea8f651-d868-48ca-be28-a7bca86d4c30, fqn: ['default-domain', 'ctest-TestBasicPolicy-87366797', 'ctest-policy-allow-all-39495359'] 2025-04-26 06:39:57,865 - INFO - VN ctest-vn-20098802 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-26 06:39:57,865 - DEBUG - Verifying the vn in opserver 2025-04-26 06:39:57,865 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87366797:ctest-vn-20098802 virtual network link through opserver 10.0.0.254 2025-04-26 06:39:57,865 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-26 06:39:58,152 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-26 06:39:58,203 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87366797:ctest-vn-20098802', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87366797:ctest-vn-20098802?flat'} 2025-04-26 06:39:58,203 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87366797:ctest-vn-20098802 is found in opserver 2025-04-26 06:39:58,214 - DEBUG - Do not have enough data to verify VN in agent 2025-04-26 06:39:58,220 - DEBUG - VRF ids for VN ctest-vn-20098802: {} 2025-04-26 06:39:58,220 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-26 06:39:58,226 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7d24b5e0-226a-4afc-ac4a-cbfbac65ea30 2025-04-26 06:39:58,237 - DEBUG - Requesting: http://10.0.0.254:8082/project/1666894d-df95-4ec3-b50f-5d8f7a92da54 2025-04-26 06:39:58,313 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/94f73f3f-3caa-4d0e-83ea-31cb64b9ea08 2025-04-26 06:39:58,326 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/94f73f3f-3caa-4d0e-83ea-31cb64b9ea08 2025-04-26 06:39:58,334 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/334f07e0-1474-4d38-ba3a-621aa75b08bc 2025-04-26 06:39:58,342 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/334f07e0-1474-4d38-ba3a-621aa75b08bc 2025-04-26 06:39:58,348 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7b518b65-68c9-4b5c-a449-5340d2373b36 2025-04-26 06:39:58,354 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-26 06:39:58,354 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/94f73f3f-3caa-4d0e-83ea-31cb64b9ea08 2025-04-26 06:39:58,363 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/334f07e0-1474-4d38-ba3a-621aa75b08bc 2025-04-26 06:39:58,375 - INFO - Verified VN network id 9 for VN 94f73f3f-3caa-4d0e-83ea-31cb64b9ea08 2025-04-26 06:39:58,375 - INFO - Verifications in API Server for VN ctest-vn-97349078 passed 2025-04-26 06:39:58,375 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/94f73f3f-3caa-4d0e-83ea-31cb64b9ea08 2025-04-26 06:39:58,384 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/334f07e0-1474-4d38-ba3a-621aa75b08bc 2025-04-26 06:39:58,390 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/334f07e0-1474-4d38-ba3a-621aa75b08bc 2025-04-26 06:39:58,397 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7b518b65-68c9-4b5c-a449-5340d2373b36 2025-04-26 06:39:58,408 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87366797:ctest-vn-97349078', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87366797', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10734117777694149902', 'uuid-lslong': '9505464713156880904'}, 'enable': 'true', 'created': '2025-04-26T06:39:56', 'last-modified': '2025-04-26T06:39:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.385873'} 2025-04-26 06:39:58,413 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-26 06:39:58,413 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97349078 passed 2025-04-26 06:39:58,414 - DEBUG - ====Verifying policy data for ctest-vn-97349078 in API_Server ====== 2025-04-26 06:39:58,414 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-26 06:39:58,418 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7d24b5e0-226a-4afc-ac4a-cbfbac65ea30 2025-04-26 06:39:58,428 - DEBUG - Requesting: http://10.0.0.254:8082/project/1666894d-df95-4ec3-b50f-5d8f7a92da54 2025-04-26 06:39:58,502 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/94f73f3f-3caa-4d0e-83ea-31cb64b9ea08 2025-04-26 06:39:58,512 - DEBUG - ==>Verifying data for policy with id: 1ea8f651-d868-48ca-be28-a7bca86d4c30, fqn: ['default-domain', 'ctest-TestBasicPolicy-87366797', 'ctest-policy-allow-all-39495359'] 2025-04-26 06:39:58,512 - INFO - VN ctest-vn-97349078 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-26 06:39:58,512 - DEBUG - Verifying the vn in opserver 2025-04-26 06:39:58,512 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87366797:ctest-vn-97349078 virtual network link through opserver 10.0.0.254 2025-04-26 06:39:58,512 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-26 06:39:58,521 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87366797:ctest-vn-97349078', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87366797:ctest-vn-97349078?flat'} 2025-04-26 06:39:58,521 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87366797:ctest-vn-97349078 is found in opserver 2025-04-26 06:39:58,531 - DEBUG - Do not have enough data to verify VN in agent 2025-04-26 06:39:58,535 - DEBUG - VRF ids for VN ctest-vn-97349078: {} 2025-04-26 06:39:58,589 - DEBUG - Services list from nova: [, , ] 2025-04-26 06:39:59,542 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3218-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3218-1) 2025-04-26 06:40:00,775 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3218-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3218-1) 2025-04-26 06:40:00,775 - INFO - Waiting for VM ctest-TestBasicPolicy-87366797-13080045 to be up.. 2025-04-26 06:40:00,857 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-26 06:40:05,928 - DEBUG - VM is in ACTIVE state now 2025-04-26 06:40:05,928 - INFO - VM name : ctest-TestBasicPolicy-87366797-13080045 2025-04-26 06:40:05,997 - DEBUG - VM ctest-TestBasicPolicy-87366797-13080045 ID is 25fbf95f-9552-4d6e-a0dc-c3f863969e9a 2025-04-26 06:40:06,015 - DEBUG - VM ctest-TestBasicPolicy-87366797-13080045 launched on Node cn-jenkins-deploy-platform-ansible-os-3218-1 2025-04-26 06:40:06,085 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/25fbf95f-9552-4d6e-a0dc-c3f863969e9a 2025-04-26 06:40:06,094 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/e15800f0-eb27-4445-a9c6-797509d99351 2025-04-26 06:40:09,368 - 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 1028ms') 2025-04-26 06:40:09,368 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-87366797-13080045 failed! 2025-04-26 06:40:09,422 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-87366797:ctest-vn-20098802 is 154.251.24.193 and allocation pool is NOT set 2025-04-26 06:40:11,488 - 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=4.19 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.501 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.501/2.344/4.188/1.843 ms') 2025-04-26 06:40:11,488 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-87366797-13080045 passed 2025-04-26 06:40:11,646 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-26 06:40:11,647 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-87366797-13080045, IP 154.251.24.195, Port 22 2025-04-26 06:40:11,702 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-04-26 06:40:11,793 - DEBUG - VM ctest-TestBasicPolicy-87366797-13080045 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-26 06:40:16,794 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-26 06:40:16,795 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-87366797-13080045, IP 154.251.24.195, Port 22 2025-04-26 06:40:16,951 - DEBUG - VM ctest-TestBasicPolicy-87366797-13080045 is ready for SSH connections 2025-04-26 06:40:16,951 - INFO - Waiting for VM ctest-TestBasicPolicy-87366797-48184051 to be up.. 2025-04-26 06:40:17,026 - DEBUG - VM is in ACTIVE state now 2025-04-26 06:40:17,026 - INFO - VM name : ctest-TestBasicPolicy-87366797-48184051 2025-04-26 06:40:17,103 - DEBUG - VM ctest-TestBasicPolicy-87366797-48184051 ID is 3d9806e0-3cc1-4a08-acc3-b0ab728028d0 2025-04-26 06:40:17,103 - DEBUG - VM ctest-TestBasicPolicy-87366797-48184051 launched on Node cn-jenkins-deploy-platform-ansible-os-3218-1 2025-04-26 06:40:17,178 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/3d9806e0-3cc1-4a08-acc3-b0ab728028d0 2025-04-26 06:40:17,190 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/e8b333a3-2072-4c11-a634-bc432e778b97 2025-04-26 06:40:18,434 - 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.80 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.413 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.413/1.606/2.800/1.193 ms') 2025-04-26 06:40:18,434 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-87366797-48184051 passed 2025-04-26 06:40:18,583 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-26 06:40:18,583 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-87366797-48184051, IP 35.121.210.67, Port 22 2025-04-26 06:40:18,738 - DEBUG - VM ctest-TestBasicPolicy-87366797-48184051 is ready for SSH connections 2025-04-26 06:40:18,738 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-26 06:40:18,739 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 35.121.210.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-04-26 06:40:18,739 - DEBUG - ping -s 56 -c 3 -W 1 35.121.210.67 2025-04-26 06:40:22,746 - DEBUG - PING 35.121.210.67 (35.121.210.67): 56 data bytes 64 bytes from 35.121.210.67: seq=0 ttl=63 time=3.600 ms 64 bytes from 35.121.210.67: seq=1 ttl=63 time=0.756 ms 64 bytes from 35.121.210.67: seq=2 ttl=63 time=0.844 ms --- 35.121.210.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.756/1.733/3.600 ms 2025-04-26 06:40:22,746 - INFO - Ping to IP 35.121.210.67 from VM ctest-TestBasicPolicy-87366797-13080045 passed 2025-04-26 06:40:22,942 - DEBUG - Policy Update Response {"network-policy": {"uuid": "1ea8f651-d868-48ca-be28-a7bca86d4c30", "href": "http://10.0.0.254:8082/network-policy/1ea8f651-d868-48ca-be28-a7bca86d4c30"}} 2025-04-26 06:40:22,942 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-26 06:40:22,942 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 35.121.210.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-04-26 06:40:22,943 - DEBUG - ping -s 56 -c 3 -W 1 35.121.210.67 2025-04-26 06:40:26,142 - DEBUG - PING 35.121.210.67 (35.121.210.67): 56 data bytes 64 bytes from 35.121.210.67: seq=0 ttl=63 time=1.595 ms --- 35.121.210.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.595/1.595/1.595 ms 2025-04-26 06:40:26,142 - WARNING - Ping to IP 35.121.210.67 from VM ctest-TestBasicPolicy-87366797-13080045 failed 2025-04-26 06:40:26,142 - INFO - Deleting VM ctest-TestBasicPolicy-87366797-48184051 2025-04-26 06:40:26,209 - INFO - Deleting VM ctest-TestBasicPolicy-87366797-13080045 2025-04-26 06:40:26,608 - INFO - Deleted policy ctest-policy-allow-all-39495359 2025-04-26 06:40:26,608 - INFO - Deleting VN ctest-vn-97349078 2025-04-26 06:40:26,643 - DEBUG - VN 94f73f3f-3caa-4d0e-83ea-31cb64b9ea08 still in use: Unable to complete operation on network 94f73f3f-3caa-4d0e-83ea-31cb64b9ea08. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2117f5c4-d440-4ab8-8dc2-c41c871a0bcb'] 2025-04-26 06:40:26,643 - WARNING - Deleting VN ctest-vn-97349078 failed..Will retry 2025-04-26 06:40:28,747 - DEBUG - Response for deleting network () 2025-04-26 06:40:28,748 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/334f07e0-1474-4d38-ba3a-621aa75b08bc 2025-04-26 06:40:28,753 - DEBUG - Response Code: 404 2025-04-26 06:40:28,754 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-26 06:40:28,760 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7d24b5e0-226a-4afc-ac4a-cbfbac65ea30 2025-04-26 06:40:28,816 - DEBUG - Requesting: http://10.0.0.254:8082/project/1666894d-df95-4ec3-b50f-5d8f7a92da54 2025-04-26 06:40:28,892 - INFO - Validated that VN ctest-vn-97349078 is not found in API Server 2025-04-26 06:40:28,903 - DEBUG - VN ctest-vn-97349078 is not present in Agent 10.0.0.254 2025-04-26 06:40:28,903 - INFO - Validated that VN ctest-vn-97349078 is not in any agent 2025-04-26 06:40:28,918 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-97349078 info 2025-04-26 06:40:28,918 - INFO - Deleting VN ctest-vn-20098802 2025-04-26 06:40:29,011 - DEBUG - Response for deleting network () 2025-04-26 06:40:29,011 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/736c895b-771f-4b0b-b680-bb97f69564ea 2025-04-26 06:40:29,015 - DEBUG - Response Code: 404 2025-04-26 06:40:29,016 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-26 06:40:29,023 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7d24b5e0-226a-4afc-ac4a-cbfbac65ea30 2025-04-26 06:40:29,076 - DEBUG - Requesting: http://10.0.0.254:8082/project/1666894d-df95-4ec3-b50f-5d8f7a92da54 2025-04-26 06:40:29,151 - INFO - Validated that VN ctest-vn-20098802 is not found in API Server 2025-04-26 06:40:29,163 - DEBUG - VN ctest-vn-20098802 is not present in Agent 10.0.0.254 2025-04-26 06:40:29,163 - INFO - Validated that VN ctest-vn-20098802 is not in any agent 2025-04-26 06:40:29,178 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-20098802 info 2025-04-26 06:40:29,432 - DEBUG - No XMPP flaps were noticed during the test 2025-04-26 06:40:29,432 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-04-26 06:40:29,432 - INFO - -------------------------------------------------------------------------------- 2025-04-26 06:40:30,092 - INFO - Deleted project: ctest-TestBasicPolicy-87366797, ID : 1666894d-df95-4ec3-b50f-5d8f7a92da54