2025-01-09 20:26:47,997 - INFO - Domain Default found not creating 2025-01-09 20:26:48,141 - INFO - Project ctest-TestBasicPolicy-55504754 not found, creating it 2025-01-09 20:26:48,625 - INFO - Created Project:ctest-TestBasicPolicy-55504754, ID : 27a7d1e1-3e1c-4ac4-896f-f35f6edae8f5 2025-01-09 20:26:50,069 - INFO - ================================================================================ 2025-01-09 20:26:50,069 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-09 20:26:50,069 - 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-01-09 20:26:50,326 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.20.0.7': '0'}} with 2025-01-09 20:26:50,326 - INFO - Initial checks done. Running the testcase now 2025-01-09 20:26:50,326 - INFO - 2025-01-09 20:26:50,868 - DEBUG - Response for create_network : {'network': {'id': '31d65a15-7feb-4c28-9a53-d5f1822c8448', 'name': 'ctest-vn-50108529', 'tenant_id': '27a7d1e13e1c4ac4896ff35f6edae8f5', 'project_id': '27a7d1e13e1c4ac4896ff35f6edae8f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55504754', 'ctest-vn-50108529'], 'port_security_enabled': True, 'description': ''}} 2025-01-09 20:26:51,039 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a5c92ef5-1ec0-4e71-916e-a09def7fbe91', 'name': '', 'tenant_id': '27a7d1e13e1c4ac4896ff35f6edae8f5', 'network_id': '31d65a15-7feb-4c28-9a53-d5f1822c8448', 'ip_version': 4, 'cidr': '157.152.248.128/26', 'allocation_pools': [{'start': '157.152.248.130', 'end': '157.152.248.190'}], 'gateway_ip': '157.152.248.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.152.248.130', 'tags': [], 'project_id': '27a7d1e13e1c4ac4896ff35f6edae8f5'}} 2025-01-09 20:26:51,058 - INFO - Created VN ctest-vn-50108529 2025-01-09 20:26:51,112 - DEBUG - VN ctest-vn-50108529 UUID is 31d65a15-7feb-4c28-9a53-d5f1822c8448 2025-01-09 20:26:51,403 - DEBUG - Response for create_network : {'network': {'id': 'fad06ac8-1380-4b17-91a3-8211de3d2dbf', 'name': 'ctest-vn-79940435', 'tenant_id': '27a7d1e13e1c4ac4896ff35f6edae8f5', 'project_id': '27a7d1e13e1c4ac4896ff35f6edae8f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55504754', 'ctest-vn-79940435'], 'port_security_enabled': True, 'description': ''}} 2025-01-09 20:26:51,594 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a9b62cb2-b6c1-451b-bbf0-3e7a9e25b0ee', 'name': '', 'tenant_id': '27a7d1e13e1c4ac4896ff35f6edae8f5', 'network_id': 'fad06ac8-1380-4b17-91a3-8211de3d2dbf', 'ip_version': 4, 'cidr': '114.227.111.128/26', 'allocation_pools': [{'start': '114.227.111.130', 'end': '114.227.111.190'}], 'gateway_ip': '114.227.111.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.227.111.130', 'tags': [], 'project_id': '27a7d1e13e1c4ac4896ff35f6edae8f5'}} 2025-01-09 20:26:51,611 - INFO - Created VN ctest-vn-79940435 2025-01-09 20:26:51,664 - DEBUG - VN ctest-vn-79940435 UUID is fad06ac8-1380-4b17-91a3-8211de3d2dbf 2025-01-09 20:26:51,788 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-55504754:ctest-vn-50108529, 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-55504754:ctest-vn-79940435, 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-01-09 20:26:52,094 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '31d65a15-7feb-4c28-9a53-d5f1822c8448', 'name': 'ctest-vn-50108529', 'tenant_id': '27a7d1e13e1c4ac4896ff35f6edae8f5', 'project_id': '27a7d1e13e1c4ac4896ff35f6edae8f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a5c92ef5-1ec0-4e71-916e-a09def7fbe91'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55504754', 'ctest-vn-50108529'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55504754', 'ctest-policy-allow-all-64112924']], 'subnet_ipam': [{'subnet_cidr': '157.152.248.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-09 20:26:52,351 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fad06ac8-1380-4b17-91a3-8211de3d2dbf', 'name': 'ctest-vn-79940435', 'tenant_id': '27a7d1e13e1c4ac4896ff35f6edae8f5', 'project_id': '27a7d1e13e1c4ac4896ff35f6edae8f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a9b62cb2-b6c1-451b-bbf0-3e7a9e25b0ee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55504754', 'ctest-vn-79940435'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55504754', 'ctest-policy-allow-all-64112924']], 'subnet_ipam': [{'subnet_cidr': '114.227.111.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-09 20:26:52,516 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2025-01-09 20:26:52,810 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2025-01-09 20:26:52,841 - DEBUG - Requesting: http://10.0.0.35:8082/domain/58ab762c-818c-4d7d-b2e1-6317845986a2 2025-01-09 20:26:52,856 - DEBUG - Requesting: http://10.0.0.35:8082/project/27a7d1e1-3e1c-4ac4-896f-f35f6edae8f5 2025-01-09 20:26:52,927 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/31d65a15-7feb-4c28-9a53-d5f1822c8448 2025-01-09 20:26:52,942 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/31d65a15-7feb-4c28-9a53-d5f1822c8448 2025-01-09 20:26:52,954 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/d7af91c4-3d83-4a3c-ade7-c0f87d74abce 2025-01-09 20:26:52,963 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/d7af91c4-3d83-4a3c-ade7-c0f87d74abce 2025-01-09 20:26:52,971 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/8c1d6494-8975-49c8-b3ca-6b3c7f88809b 2025-01-09 20:26:52,980 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-09 20:26:52,980 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/31d65a15-7feb-4c28-9a53-d5f1822c8448 2025-01-09 20:26:52,992 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/d7af91c4-3d83-4a3c-ade7-c0f87d74abce 2025-01-09 20:26:53,008 - INFO - Verified VN network id 7 for VN 31d65a15-7feb-4c28-9a53-d5f1822c8448 2025-01-09 20:26:53,008 - INFO - Verifications in API Server for VN ctest-vn-50108529 passed 2025-01-09 20:26:53,008 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/31d65a15-7feb-4c28-9a53-d5f1822c8448 2025-01-09 20:26:53,022 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/d7af91c4-3d83-4a3c-ade7-c0f87d74abce 2025-01-09 20:26:53,031 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/d7af91c4-3d83-4a3c-ade7-c0f87d74abce 2025-01-09 20:26:53,039 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/8c1d6494-8975-49c8-b3ca-6b3c7f88809b 2025-01-09 20:26:53,052 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55504754:ctest-vn-50108529', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55504754', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3591156801261489192', 'uuid-lslong': '11120467138155676744'}, 'enable': 'true', 'created': '2025-01-09T20:26:50', 'last-modified': '2025-01-09T20:26:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.985638'} 2025-01-09 20:26:53,058 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-09 20:26:53,058 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50108529 passed 2025-01-09 20:26:53,059 - DEBUG - ====Verifying policy data for ctest-vn-50108529 in API_Server ====== 2025-01-09 20:26:53,059 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2025-01-09 20:26:53,065 - DEBUG - Requesting: http://10.0.0.35:8082/domain/58ab762c-818c-4d7d-b2e1-6317845986a2 2025-01-09 20:26:53,079 - DEBUG - Requesting: http://10.0.0.35:8082/project/27a7d1e1-3e1c-4ac4-896f-f35f6edae8f5 2025-01-09 20:26:53,158 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/31d65a15-7feb-4c28-9a53-d5f1822c8448 2025-01-09 20:26:53,170 - DEBUG - ==>Verifying data for policy with id: 1113e284-a806-4893-a6db-3295a3512263, fqn: ['default-domain', 'ctest-TestBasicPolicy-55504754', 'ctest-policy-allow-all-64112924'] 2025-01-09 20:26:53,170 - INFO - VN ctest-vn-50108529 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-09 20:26:53,170 - DEBUG - Verifying the vn in opserver 2025-01-09 20:26:53,170 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55504754:ctest-vn-50108529 virtual network link through opserver 10.0.0.35 2025-01-09 20:26:53,170 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks 2025-01-09 20:26:53,469 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks 2025-01-09 20:26:53,527 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55504754:ctest-vn-50108529', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55504754:ctest-vn-50108529?flat'} 2025-01-09 20:26:53,527 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55504754:ctest-vn-50108529 is found in opserver 2025-01-09 20:26:53,545 - DEBUG - Do not have enough data to verify VN in agent 2025-01-09 20:26:53,552 - DEBUG - VRF ids for VN ctest-vn-50108529: {} 2025-01-09 20:26:53,552 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2025-01-09 20:26:53,558 - DEBUG - Requesting: http://10.0.0.35:8082/domain/58ab762c-818c-4d7d-b2e1-6317845986a2 2025-01-09 20:26:53,570 - DEBUG - Requesting: http://10.0.0.35:8082/project/27a7d1e1-3e1c-4ac4-896f-f35f6edae8f5 2025-01-09 20:26:53,644 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/fad06ac8-1380-4b17-91a3-8211de3d2dbf 2025-01-09 20:26:53,661 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/fad06ac8-1380-4b17-91a3-8211de3d2dbf 2025-01-09 20:26:53,672 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/02884886-ad3e-45cc-bdae-bf7d496bce7f 2025-01-09 20:26:53,680 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/02884886-ad3e-45cc-bdae-bf7d496bce7f 2025-01-09 20:26:53,688 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/33d9e9df-a880-4a56-ac12-770ecdb66690 2025-01-09 20:26:53,696 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-09 20:26:53,696 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/fad06ac8-1380-4b17-91a3-8211de3d2dbf 2025-01-09 20:26:53,705 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/02884886-ad3e-45cc-bdae-bf7d496bce7f 2025-01-09 20:26:53,727 - INFO - Verified VN network id 8 for VN fad06ac8-1380-4b17-91a3-8211de3d2dbf 2025-01-09 20:26:53,727 - INFO - Verifications in API Server for VN ctest-vn-79940435 passed 2025-01-09 20:26:53,727 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/fad06ac8-1380-4b17-91a3-8211de3d2dbf 2025-01-09 20:26:53,739 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/02884886-ad3e-45cc-bdae-bf7d496bce7f 2025-01-09 20:26:53,750 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/02884886-ad3e-45cc-bdae-bf7d496bce7f 2025-01-09 20:26:53,760 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/33d9e9df-a880-4a56-ac12-770ecdb66690 2025-01-09 20:26:53,774 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55504754:ctest-vn-79940435', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55504754', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18073062712190978839', 'uuid-lslong': '10494374569957993919'}, 'enable': 'true', 'created': '2025-01-09T20:26:51', 'last-modified': '2025-01-09T20:26:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.449034'} 2025-01-09 20:26:53,781 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-09 20:26:53,781 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79940435 passed 2025-01-09 20:26:53,781 - DEBUG - ====Verifying policy data for ctest-vn-79940435 in API_Server ====== 2025-01-09 20:26:53,781 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2025-01-09 20:26:53,787 - DEBUG - Requesting: http://10.0.0.35:8082/domain/58ab762c-818c-4d7d-b2e1-6317845986a2 2025-01-09 20:26:53,800 - DEBUG - Requesting: http://10.0.0.35:8082/project/27a7d1e1-3e1c-4ac4-896f-f35f6edae8f5 2025-01-09 20:26:53,876 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/fad06ac8-1380-4b17-91a3-8211de3d2dbf 2025-01-09 20:26:53,887 - DEBUG - ==>Verifying data for policy with id: 1113e284-a806-4893-a6db-3295a3512263, fqn: ['default-domain', 'ctest-TestBasicPolicy-55504754', 'ctest-policy-allow-all-64112924'] 2025-01-09 20:26:53,887 - INFO - VN ctest-vn-79940435 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-09 20:26:53,887 - DEBUG - Verifying the vn in opserver 2025-01-09 20:26:53,887 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55504754:ctest-vn-79940435 virtual network link through opserver 10.0.0.35 2025-01-09 20:26:53,887 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks 2025-01-09 20:26:53,897 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55504754:ctest-vn-79940435', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55504754:ctest-vn-79940435?flat'} 2025-01-09 20:26:53,897 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55504754:ctest-vn-79940435 is found in opserver 2025-01-09 20:26:53,908 - DEBUG - Do not have enough data to verify VN in agent 2025-01-09 20:26:53,914 - DEBUG - VRF ids for VN ctest-vn-79940435: {} 2025-01-09 20:26:53,976 - DEBUG - Services list from nova: [, , ] 2025-01-09 20:26:55,111 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2594-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2594-1) 2025-01-09 20:26:56,292 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2594-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2594-1) 2025-01-09 20:26:56,292 - INFO - Waiting for VM ctest-TestBasicPolicy-55504754-57782598 to be up.. 2025-01-09 20:26:56,380 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-09 20:27:01,464 - DEBUG - VM is in ACTIVE state now 2025-01-09 20:27:01,465 - INFO - VM name : ctest-TestBasicPolicy-55504754-57782598 2025-01-09 20:27:01,549 - DEBUG - VM ctest-TestBasicPolicy-55504754-57782598 ID is b3b3243b-9254-4284-9b3d-776f1c20fe6d 2025-01-09 20:27:01,569 - DEBUG - VM ctest-TestBasicPolicy-55504754-57782598 launched on Node cn-jenkins-deploy-platform-ansible-os-2594-1 2025-01-09 20:27:01,651 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/b3b3243b-9254-4284-9b3d-776f1c20fe6d 2025-01-09 20:27:01,661 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/a60c0e83-d1c5-407d-a8c9-c16dcf9973f6 2025-01-09 20:27:04,921 - 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-01-09 20:27:04,921 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-55504754-57782598 failed! 2025-01-09 20:27:04,976 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-55504754:ctest-vn-50108529 is 157.152.248.129 and allocation pool is NOT set 2025-01-09 20:27:07,041 - 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=8.37 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.92 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 = 1.920/5.145/8.371/3.225 ms') 2025-01-09 20:27:07,042 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-55504754-57782598 passed 2025-01-09 20:27:07,204 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-09 20:27:07,204 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-55504754-57782598, IP 157.152.248.131, Port 22 2025-01-09 20:27:07,260 - 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-01-09 20:27:07,350 - DEBUG - VM ctest-TestBasicPolicy-55504754-57782598 is NOT ready for SSH connections, VM status: ACTIVE 2025-01-09 20:27:12,350 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-09 20:27:12,351 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-55504754-57782598, IP 157.152.248.131, Port 22 2025-01-09 20:27:12,541 - DEBUG - VM ctest-TestBasicPolicy-55504754-57782598 is ready for SSH connections 2025-01-09 20:27:12,541 - INFO - Waiting for VM ctest-TestBasicPolicy-55504754-92966734 to be up.. 2025-01-09 20:27:12,627 - DEBUG - VM is in ACTIVE state now 2025-01-09 20:27:12,627 - INFO - VM name : ctest-TestBasicPolicy-55504754-92966734 2025-01-09 20:27:12,709 - DEBUG - VM ctest-TestBasicPolicy-55504754-92966734 ID is ec397a68-79c6-45dd-aaa2-db4f3fd84d20 2025-01-09 20:27:12,710 - DEBUG - VM ctest-TestBasicPolicy-55504754-92966734 launched on Node cn-jenkins-deploy-platform-ansible-os-2594-1 2025-01-09 20:27:12,789 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/ec397a68-79c6-45dd-aaa2-db4f3fd84d20 2025-01-09 20:27:12,798 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/4832ab5f-e240-4746-be87-5ef00a47d41f 2025-01-09 20:27:14,033 - 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=3.37 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.513 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 = 0.513/1.943/3.373/1.430 ms') 2025-01-09 20:27:14,033 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-55504754-92966734 passed 2025-01-09 20:27:14,192 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-09 20:27:14,192 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-55504754-92966734, IP 114.227.111.131, Port 22 2025-01-09 20:27:14,355 - DEBUG - VM ctest-TestBasicPolicy-55504754-92966734 is ready for SSH connections 2025-01-09 20:27:14,355 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-09 20:27:14,355 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 114.227.111.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2025-01-09 20:27:14,355 - DEBUG - ping -s 56 -c 3 -W 1 114.227.111.131 2025-01-09 20:27:18,041 - DEBUG - PING 114.227.111.131 (114.227.111.131): 56 data bytes 64 bytes from 114.227.111.131: seq=0 ttl=63 time=3.815 ms 64 bytes from 114.227.111.131: seq=1 ttl=63 time=1.265 ms 64 bytes from 114.227.111.131: seq=2 ttl=63 time=0.815 ms --- 114.227.111.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.815/1.965/3.815 ms 2025-01-09 20:27:18,041 - INFO - Ping to IP 114.227.111.131 from VM ctest-TestBasicPolicy-55504754-57782598 passed 2025-01-09 20:27:18,227 - DEBUG - Policy Update Response {"network-policy": {"uuid": "1113e284-a806-4893-a6db-3295a3512263", "href": "http://10.0.0.35:8082/network-policy/1113e284-a806-4893-a6db-3295a3512263"}} 2025-01-09 20:27:18,228 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-09 20:27:18,228 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 114.227.111.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2025-01-09 20:27:18,228 - DEBUG - ping -s 56 -c 3 -W 1 114.227.111.131 2025-01-09 20:27:21,432 - DEBUG - PING 114.227.111.131 (114.227.111.131): 56 data bytes 64 bytes from 114.227.111.131: seq=0 ttl=63 time=1.792 ms --- 114.227.111.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.792/1.792/1.792 ms 2025-01-09 20:27:21,432 - WARNING - Ping to IP 114.227.111.131 from VM ctest-TestBasicPolicy-55504754-57782598 failed 2025-01-09 20:27:21,432 - INFO - Deleting VM ctest-TestBasicPolicy-55504754-92966734 2025-01-09 20:27:21,506 - INFO - Deleting VM ctest-TestBasicPolicy-55504754-57782598 2025-01-09 20:27:21,929 - INFO - Deleted policy ctest-policy-allow-all-64112924 2025-01-09 20:27:21,929 - INFO - Deleting VN ctest-vn-79940435 2025-01-09 20:27:21,972 - DEBUG - VN fad06ac8-1380-4b17-91a3-8211de3d2dbf still in use: Unable to complete operation on network fad06ac8-1380-4b17-91a3-8211de3d2dbf. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-97de3d9b-d48e-4900-8497-03da45fe2e3c'] 2025-01-09 20:27:21,972 - WARNING - Deleting VN ctest-vn-79940435 failed..Will retry 2025-01-09 20:27:24,082 - DEBUG - Response for deleting network () 2025-01-09 20:27:24,082 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/02884886-ad3e-45cc-bdae-bf7d496bce7f 2025-01-09 20:27:24,088 - DEBUG - Response Code: 404 2025-01-09 20:27:24,088 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2025-01-09 20:27:24,097 - DEBUG - Requesting: http://10.0.0.35:8082/domain/58ab762c-818c-4d7d-b2e1-6317845986a2 2025-01-09 20:27:24,157 - DEBUG - Requesting: http://10.0.0.35:8082/project/27a7d1e1-3e1c-4ac4-896f-f35f6edae8f5 2025-01-09 20:27:24,233 - INFO - Validated that VN ctest-vn-79940435 is not found in API Server 2025-01-09 20:27:24,245 - DEBUG - VN ctest-vn-79940435 is not present in Agent 10.0.0.35 2025-01-09 20:27:24,245 - INFO - Validated that VN ctest-vn-79940435 is not in any agent 2025-01-09 20:27:24,262 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-79940435 info 2025-01-09 20:27:24,262 - INFO - Deleting VN ctest-vn-50108529 2025-01-09 20:27:24,375 - DEBUG - Response for deleting network () 2025-01-09 20:27:24,375 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/d7af91c4-3d83-4a3c-ade7-c0f87d74abce 2025-01-09 20:27:24,382 - DEBUG - Response Code: 404 2025-01-09 20:27:24,383 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2025-01-09 20:27:24,389 - DEBUG - Requesting: http://10.0.0.35:8082/domain/58ab762c-818c-4d7d-b2e1-6317845986a2 2025-01-09 20:27:24,446 - DEBUG - Requesting: http://10.0.0.35:8082/project/27a7d1e1-3e1c-4ac4-896f-f35f6edae8f5 2025-01-09 20:27:24,520 - INFO - Validated that VN ctest-vn-50108529 is not found in API Server 2025-01-09 20:27:24,531 - DEBUG - VN ctest-vn-50108529 is not present in Agent 10.0.0.35 2025-01-09 20:27:24,531 - INFO - Validated that VN ctest-vn-50108529 is not in any agent 2025-01-09 20:27:24,546 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-50108529 info 2025-01-09 20:27:24,803 - DEBUG - No XMPP flaps were noticed during the test 2025-01-09 20:27:24,803 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:34] 2025-01-09 20:27:24,803 - INFO - -------------------------------------------------------------------------------- 2025-01-09 20:27:25,495 - INFO - Deleted project: ctest-TestBasicPolicy-55504754, ID : 27a7d1e1-3e1c-4ac4-896f-f35f6edae8f5