2025-04-23 08:57:04,566 - INFO - Domain Default found not creating 2025-04-23 08:57:04,739 - INFO - Project ctest-TestBasicPolicy-71039918 not found, creating it 2025-04-23 08:57:05,231 - INFO - Created Project:ctest-TestBasicPolicy-71039918, ID : 3d71ec51-50f1-4037-8846-ba3f2a8a6a7a 2025-04-23 08:57:06,804 - INFO - ================================================================================ 2025-04-23 08:57:06,804 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-23 08:57:06,804 - 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-23 08:57:07,060 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-04-23 08:57:07,060 - INFO - Initial checks done. Running the testcase now 2025-04-23 08:57:07,060 - INFO - 2025-04-23 08:57:07,676 - DEBUG - Response for create_network : {'network': {'id': 'b104817f-79d7-4673-8b1b-6fac2f1f4145', 'name': 'ctest-vn-87473102', 'tenant_id': '3d71ec5150f140378846ba3f2a8a6a7a', 'project_id': '3d71ec5150f140378846ba3f2a8a6a7a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71039918', 'ctest-vn-87473102'], 'port_security_enabled': True, 'description': ''}} 2025-04-23 08:57:07,929 - DEBUG - Response for create_subnet : {'subnet': {'id': '1b288976-60c4-442c-a740-4d5bec20d435', 'name': '', 'tenant_id': '3d71ec5150f140378846ba3f2a8a6a7a', 'network_id': 'b104817f-79d7-4673-8b1b-6fac2f1f4145', 'ip_version': 4, 'cidr': '199.52.219.128/26', 'allocation_pools': [{'start': '199.52.219.130', 'end': '199.52.219.190'}], 'gateway_ip': '199.52.219.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '199.52.219.130', 'tags': [], 'project_id': '3d71ec5150f140378846ba3f2a8a6a7a'}} 2025-04-23 08:57:07,951 - INFO - Created VN ctest-vn-87473102 2025-04-23 08:57:08,010 - DEBUG - VN ctest-vn-87473102 UUID is b104817f-79d7-4673-8b1b-6fac2f1f4145 2025-04-23 08:57:08,320 - DEBUG - Response for create_network : {'network': {'id': 'e235a912-43ea-41c6-b146-8cac1366568d', 'name': 'ctest-vn-29417934', 'tenant_id': '3d71ec5150f140378846ba3f2a8a6a7a', 'project_id': '3d71ec5150f140378846ba3f2a8a6a7a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71039918', 'ctest-vn-29417934'], 'port_security_enabled': True, 'description': ''}} 2025-04-23 08:57:08,502 - DEBUG - Response for create_subnet : {'subnet': {'id': '2c4db83e-f62d-429d-924e-89d12930d274', 'name': '', 'tenant_id': '3d71ec5150f140378846ba3f2a8a6a7a', 'network_id': 'e235a912-43ea-41c6-b146-8cac1366568d', 'ip_version': 4, 'cidr': '201.135.106.128/26', 'allocation_pools': [{'start': '201.135.106.130', 'end': '201.135.106.190'}], 'gateway_ip': '201.135.106.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.135.106.130', 'tags': [], 'project_id': '3d71ec5150f140378846ba3f2a8a6a7a'}} 2025-04-23 08:57:08,523 - INFO - Created VN ctest-vn-29417934 2025-04-23 08:57:08,578 - DEBUG - VN ctest-vn-29417934 UUID is e235a912-43ea-41c6-b146-8cac1366568d 2025-04-23 08:57:08,701 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-71039918:ctest-vn-87473102, 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-71039918:ctest-vn-29417934, 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-23 08:57:09,016 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b104817f-79d7-4673-8b1b-6fac2f1f4145', 'name': 'ctest-vn-87473102', 'tenant_id': '3d71ec5150f140378846ba3f2a8a6a7a', 'project_id': '3d71ec5150f140378846ba3f2a8a6a7a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1b288976-60c4-442c-a740-4d5bec20d435'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71039918', 'ctest-vn-87473102'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71039918', 'ctest-policy-allow-all-68146837']], 'subnet_ipam': [{'subnet_cidr': '199.52.219.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-23 08:57:09,318 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e235a912-43ea-41c6-b146-8cac1366568d', 'name': 'ctest-vn-29417934', 'tenant_id': '3d71ec5150f140378846ba3f2a8a6a7a', 'project_id': '3d71ec5150f140378846ba3f2a8a6a7a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2c4db83e-f62d-429d-924e-89d12930d274'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71039918', 'ctest-vn-29417934'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71039918', 'ctest-policy-allow-all-68146837']], 'subnet_ipam': [{'subnet_cidr': '201.135.106.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-23 08:57:09,466 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-04-23 08:57:09,810 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-04-23 08:57:09,841 - DEBUG - Requesting: http://10.0.0.38:8082/domain/36b78879-056e-4572-8031-3a633bc9746a 2025-04-23 08:57:09,855 - DEBUG - Requesting: http://10.0.0.38:8082/project/3d71ec51-50f1-4037-8846-ba3f2a8a6a7a 2025-04-23 08:57:09,932 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b104817f-79d7-4673-8b1b-6fac2f1f4145 2025-04-23 08:57:09,943 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b104817f-79d7-4673-8b1b-6fac2f1f4145 2025-04-23 08:57:09,954 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c3ebc22f-45fc-4a8c-b8b7-4200982d68ea 2025-04-23 08:57:09,961 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c3ebc22f-45fc-4a8c-b8b7-4200982d68ea 2025-04-23 08:57:09,968 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/37ec1652-c5c0-4d16-841b-1b186b32b65e 2025-04-23 08:57:09,975 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-23 08:57:09,975 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b104817f-79d7-4673-8b1b-6fac2f1f4145 2025-04-23 08:57:09,985 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c3ebc22f-45fc-4a8c-b8b7-4200982d68ea 2025-04-23 08:57:09,999 - INFO - Verified VN network id 7 for VN b104817f-79d7-4673-8b1b-6fac2f1f4145 2025-04-23 08:57:09,999 - INFO - Verifications in API Server for VN ctest-vn-87473102 passed 2025-04-23 08:57:09,999 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b104817f-79d7-4673-8b1b-6fac2f1f4145 2025-04-23 08:57:10,011 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c3ebc22f-45fc-4a8c-b8b7-4200982d68ea 2025-04-23 08:57:10,019 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c3ebc22f-45fc-4a8c-b8b7-4200982d68ea 2025-04-23 08:57:10,027 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/37ec1652-c5c0-4d16-841b-1b186b32b65e 2025-04-23 08:57:10,042 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71039918:ctest-vn-87473102', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71039918', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12755462429125068403', 'uuid-lslong': '10023728180958806341'}, 'enable': 'true', 'created': '2025-04-23T08:57:07', 'last-modified': '2025-04-23T08:57:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.054640'} 2025-04-23 08:57:10,049 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-23 08:57:10,049 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87473102 passed 2025-04-23 08:57:10,049 - DEBUG - ====Verifying policy data for ctest-vn-87473102 in API_Server ====== 2025-04-23 08:57:10,049 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-04-23 08:57:10,056 - DEBUG - Requesting: http://10.0.0.38:8082/domain/36b78879-056e-4572-8031-3a633bc9746a 2025-04-23 08:57:10,072 - DEBUG - Requesting: http://10.0.0.38:8082/project/3d71ec51-50f1-4037-8846-ba3f2a8a6a7a 2025-04-23 08:57:10,146 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b104817f-79d7-4673-8b1b-6fac2f1f4145 2025-04-23 08:57:10,161 - DEBUG - ==>Verifying data for policy with id: ebe4103c-4a0d-4d22-a248-5cbdc7e18364, fqn: ['default-domain', 'ctest-TestBasicPolicy-71039918', 'ctest-policy-allow-all-68146837'] 2025-04-23 08:57:10,161 - INFO - VN ctest-vn-87473102 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-23 08:57:10,161 - DEBUG - Verifying the vn in opserver 2025-04-23 08:57:10,161 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71039918:ctest-vn-87473102 virtual network link through opserver 10.0.0.38 2025-04-23 08:57:10,161 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-04-23 08:57:10,497 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-04-23 08:57:10,555 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71039918:ctest-vn-87473102', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71039918:ctest-vn-87473102?flat'} 2025-04-23 08:57:10,555 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71039918:ctest-vn-87473102 is found in opserver 2025-04-23 08:57:10,568 - DEBUG - Do not have enough data to verify VN in agent 2025-04-23 08:57:10,574 - DEBUG - VRF ids for VN ctest-vn-87473102: {} 2025-04-23 08:57:10,574 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-04-23 08:57:10,580 - DEBUG - Requesting: http://10.0.0.38:8082/domain/36b78879-056e-4572-8031-3a633bc9746a 2025-04-23 08:57:10,594 - DEBUG - Requesting: http://10.0.0.38:8082/project/3d71ec51-50f1-4037-8846-ba3f2a8a6a7a 2025-04-23 08:57:10,666 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e235a912-43ea-41c6-b146-8cac1366568d 2025-04-23 08:57:10,679 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e235a912-43ea-41c6-b146-8cac1366568d 2025-04-23 08:57:10,690 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8394f062-982c-4425-ac2f-a2d1120f8049 2025-04-23 08:57:10,699 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8394f062-982c-4425-ac2f-a2d1120f8049 2025-04-23 08:57:10,707 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6e90f68e-b19c-4c64-b4dc-76ad26161299 2025-04-23 08:57:10,714 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-23 08:57:10,714 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e235a912-43ea-41c6-b146-8cac1366568d 2025-04-23 08:57:10,724 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8394f062-982c-4425-ac2f-a2d1120f8049 2025-04-23 08:57:10,742 - INFO - Verified VN network id 8 for VN e235a912-43ea-41c6-b146-8cac1366568d 2025-04-23 08:57:10,742 - INFO - Verifications in API Server for VN ctest-vn-29417934 passed 2025-04-23 08:57:10,742 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e235a912-43ea-41c6-b146-8cac1366568d 2025-04-23 08:57:10,752 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8394f062-982c-4425-ac2f-a2d1120f8049 2025-04-23 08:57:10,760 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8394f062-982c-4425-ac2f-a2d1120f8049 2025-04-23 08:57:10,767 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6e90f68e-b19c-4c64-b4dc-76ad26161299 2025-04-23 08:57:10,781 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71039918:ctest-vn-29417934', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71039918', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16300120322251309510', 'uuid-lslong': '12774052063770728077'}, 'enable': 'true', 'created': '2025-04-23T08:57:08', 'last-modified': '2025-04-23T08:57:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.540391'} 2025-04-23 08:57:10,787 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-23 08:57:10,787 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29417934 passed 2025-04-23 08:57:10,788 - DEBUG - ====Verifying policy data for ctest-vn-29417934 in API_Server ====== 2025-04-23 08:57:10,788 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-04-23 08:57:10,793 - DEBUG - Requesting: http://10.0.0.38:8082/domain/36b78879-056e-4572-8031-3a633bc9746a 2025-04-23 08:57:10,808 - DEBUG - Requesting: http://10.0.0.38:8082/project/3d71ec51-50f1-4037-8846-ba3f2a8a6a7a 2025-04-23 08:57:10,888 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e235a912-43ea-41c6-b146-8cac1366568d 2025-04-23 08:57:10,900 - DEBUG - ==>Verifying data for policy with id: ebe4103c-4a0d-4d22-a248-5cbdc7e18364, fqn: ['default-domain', 'ctest-TestBasicPolicy-71039918', 'ctest-policy-allow-all-68146837'] 2025-04-23 08:57:10,901 - INFO - VN ctest-vn-29417934 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-23 08:57:10,901 - DEBUG - Verifying the vn in opserver 2025-04-23 08:57:10,901 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71039918:ctest-vn-29417934 virtual network link through opserver 10.0.0.38 2025-04-23 08:57:10,901 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-04-23 08:57:10,913 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71039918:ctest-vn-29417934', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71039918:ctest-vn-29417934?flat'} 2025-04-23 08:57:10,913 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71039918:ctest-vn-29417934 is found in opserver 2025-04-23 08:57:10,925 - DEBUG - Do not have enough data to verify VN in agent 2025-04-23 08:57:10,930 - DEBUG - VRF ids for VN ctest-vn-29417934: {} 2025-04-23 08:57:10,993 - DEBUG - Services list from nova: [, , ] 2025-04-23 08:57:12,105 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3178-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3178-1) 2025-04-23 08:57:13,433 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3178-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3178-1) 2025-04-23 08:57:13,434 - INFO - Waiting for VM ctest-TestBasicPolicy-71039918-45869515 to be up.. 2025-04-23 08:57:13,512 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-23 08:57:18,595 - DEBUG - VM is in ACTIVE state now 2025-04-23 08:57:18,595 - INFO - VM name : ctest-TestBasicPolicy-71039918-45869515 2025-04-23 08:57:18,677 - DEBUG - VM ctest-TestBasicPolicy-71039918-45869515 ID is 7baa127f-f53a-4909-9597-12dabff69d97 2025-04-23 08:57:18,697 - DEBUG - VM ctest-TestBasicPolicy-71039918-45869515 launched on Node cn-jenkins-deploy-platform-ansible-os-3178-1 2025-04-23 08:57:18,787 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/7baa127f-f53a-4909-9597-12dabff69d97 2025-04-23 08:57:18,798 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/e8f0d440-377c-4235-8198-214319811b3d 2025-04-23 08:57:22,078 - 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 1034ms') 2025-04-23 08:57:22,078 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-71039918-45869515 failed! 2025-04-23 08:57:22,134 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-71039918:ctest-vn-87473102 is 199.52.219.129 and allocation pool is NOT set 2025-04-23 08:57:24,199 - 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=9.78 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.30 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 = 2.301/6.039/9.777/3.738 ms') 2025-04-23 08:57:24,200 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-71039918-45869515 passed 2025-04-23 08:57:24,354 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-23 08:57:24,354 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-71039918-45869515, IP 199.52.219.131, Port 22 2025-04-23 08:57:24,411 - 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-23 08:57:24,504 - DEBUG - VM ctest-TestBasicPolicy-71039918-45869515 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-23 08:57:29,505 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-23 08:57:29,505 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-71039918-45869515, IP 199.52.219.131, Port 22 2025-04-23 08:57:29,665 - DEBUG - VM ctest-TestBasicPolicy-71039918-45869515 is ready for SSH connections 2025-04-23 08:57:29,665 - INFO - Waiting for VM ctest-TestBasicPolicy-71039918-87454410 to be up.. 2025-04-23 08:57:29,762 - DEBUG - VM is in ACTIVE state now 2025-04-23 08:57:29,762 - INFO - VM name : ctest-TestBasicPolicy-71039918-87454410 2025-04-23 08:57:29,849 - DEBUG - VM ctest-TestBasicPolicy-71039918-87454410 ID is 38d030c4-9d94-4333-9504-c5da1e66a158 2025-04-23 08:57:29,850 - DEBUG - VM ctest-TestBasicPolicy-71039918-87454410 launched on Node cn-jenkins-deploy-platform-ansible-os-3178-1 2025-04-23 08:57:29,927 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/38d030c4-9d94-4333-9504-c5da1e66a158 2025-04-23 08:57:29,936 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/539fb485-f9cf-4579-a84a-886812fb2d12 2025-04-23 08:57:31,182 - 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.26 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 1001ms\r\nrtt min/avg/max/mdev = 0.413/1.837/3.261/1.424 ms') 2025-04-23 08:57:31,182 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-71039918-87454410 passed 2025-04-23 08:57:31,334 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-23 08:57:31,334 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-71039918-87454410, IP 201.135.106.131, Port 22 2025-04-23 08:57:31,501 - DEBUG - VM ctest-TestBasicPolicy-71039918-87454410 is ready for SSH connections 2025-04-23 08:57:31,501 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-23 08:57:31,501 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 201.135.106.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-04-23 08:57:31,501 - DEBUG - ping -s 56 -c 3 -W 1 201.135.106.131 2025-04-23 08:57:35,567 - DEBUG - PING 201.135.106.131 (201.135.106.131): 56 data bytes 64 bytes from 201.135.106.131: seq=0 ttl=63 time=4.028 ms 64 bytes from 201.135.106.131: seq=1 ttl=63 time=0.815 ms 64 bytes from 201.135.106.131: seq=2 ttl=63 time=0.735 ms --- 201.135.106.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.735/1.859/4.028 ms 2025-04-23 08:57:35,567 - INFO - Ping to IP 201.135.106.131 from VM ctest-TestBasicPolicy-71039918-45869515 passed 2025-04-23 08:57:35,750 - DEBUG - Policy Update Response {"network-policy": {"uuid": "ebe4103c-4a0d-4d22-a248-5cbdc7e18364", "href": "http://10.0.0.38:8082/network-policy/ebe4103c-4a0d-4d22-a248-5cbdc7e18364"}} 2025-04-23 08:57:35,750 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-23 08:57:35,750 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 201.135.106.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-04-23 08:57:35,750 - DEBUG - ping -s 56 -c 3 -W 1 201.135.106.131 2025-04-23 08:57:38,974 - DEBUG - PING 201.135.106.131 (201.135.106.131): 56 data bytes 64 bytes from 201.135.106.131: seq=0 ttl=63 time=1.458 ms --- 201.135.106.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.458/1.458/1.458 ms 2025-04-23 08:57:38,974 - WARNING - Ping to IP 201.135.106.131 from VM ctest-TestBasicPolicy-71039918-45869515 failed 2025-04-23 08:57:38,974 - INFO - Deleting VM ctest-TestBasicPolicy-71039918-87454410 2025-04-23 08:57:39,054 - INFO - Deleting VM ctest-TestBasicPolicy-71039918-45869515 2025-04-23 08:57:39,478 - INFO - Deleted policy ctest-policy-allow-all-68146837 2025-04-23 08:57:39,478 - INFO - Deleting VN ctest-vn-29417934 2025-04-23 08:57:39,519 - DEBUG - VN e235a912-43ea-41c6-b146-8cac1366568d still in use: Unable to complete operation on network e235a912-43ea-41c6-b146-8cac1366568d. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-8820d06e-7318-48f1-b3fc-7025c9e22489'] 2025-04-23 08:57:39,519 - WARNING - Deleting VN ctest-vn-29417934 failed..Will retry 2025-04-23 08:57:41,656 - DEBUG - Response for deleting network () 2025-04-23 08:57:41,657 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8394f062-982c-4425-ac2f-a2d1120f8049 2025-04-23 08:57:41,669 - DEBUG - Response Code: 404 2025-04-23 08:57:41,670 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-04-23 08:57:41,677 - DEBUG - Requesting: http://10.0.0.38:8082/domain/36b78879-056e-4572-8031-3a633bc9746a 2025-04-23 08:57:41,736 - DEBUG - Requesting: http://10.0.0.38:8082/project/3d71ec51-50f1-4037-8846-ba3f2a8a6a7a 2025-04-23 08:57:41,818 - INFO - Validated that VN ctest-vn-29417934 is not found in API Server 2025-04-23 08:57:41,833 - DEBUG - VN ctest-vn-29417934 is not present in Agent 10.0.0.38 2025-04-23 08:57:41,833 - INFO - Validated that VN ctest-vn-29417934 is not in any agent 2025-04-23 08:57:41,853 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-29417934 info 2025-04-23 08:57:41,854 - INFO - Deleting VN ctest-vn-87473102 2025-04-23 08:57:41,993 - DEBUG - Response for deleting network () 2025-04-23 08:57:41,993 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c3ebc22f-45fc-4a8c-b8b7-4200982d68ea 2025-04-23 08:57:42,001 - DEBUG - Response Code: 404 2025-04-23 08:57:42,001 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-04-23 08:57:42,010 - DEBUG - Requesting: http://10.0.0.38:8082/domain/36b78879-056e-4572-8031-3a633bc9746a 2025-04-23 08:57:42,069 - DEBUG - Requesting: http://10.0.0.38:8082/project/3d71ec51-50f1-4037-8846-ba3f2a8a6a7a 2025-04-23 08:57:42,148 - INFO - Validated that VN ctest-vn-87473102 is not found in API Server 2025-04-23 08:57:42,161 - DEBUG - VN ctest-vn-87473102 is not present in Agent 10.0.0.38 2025-04-23 08:57:42,161 - INFO - Validated that VN ctest-vn-87473102 is not in any agent 2025-04-23 08:57:42,178 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-87473102 info 2025-04-23 08:57:42,436 - DEBUG - No XMPP flaps were noticed during the test 2025-04-23 08:57:42,436 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2025-04-23 08:57:42,436 - INFO - -------------------------------------------------------------------------------- 2025-04-23 08:57:43,168 - INFO - Deleted project: ctest-TestBasicPolicy-71039918, ID : 3d71ec51-50f1-4037-8846-ba3f2a8a6a7a