2025-05-07 09:08:21,979 - INFO - Domain Default found not creating 2025-05-07 09:08:22,388 - INFO - Project ctest-TestBasicPolicy-37027794 not found, creating it 2025-05-07 09:08:23,209 - INFO - Created Project:ctest-TestBasicPolicy-37027794, ID : 5975edd8-82d5-45e3-86ba-0efe5a6636f0 2025-05-07 09:08:25,383 - INFO - ================================================================================ 2025-05-07 09:08:25,383 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-05-07 09:08:25,383 - 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-05-07 09:08:25,728 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-05-07 09:08:25,729 - INFO - Initial checks done. Running the testcase now 2025-05-07 09:08:25,729 - INFO - 2025-05-07 09:08:26,716 - DEBUG - Response for create_network : {'network': {'id': 'b15305df-8e5a-4b06-8706-b216e97017bf', 'name': 'ctest-vn-04707989', 'tenant_id': '5975edd882d545e386ba0efe5a6636f0', 'project_id': '5975edd882d545e386ba0efe5a6636f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37027794', 'ctest-vn-04707989'], 'port_security_enabled': True, 'description': ''}} 2025-05-07 09:08:26,955 - DEBUG - Response for create_subnet : {'subnet': {'id': '564f02d2-565f-4f26-9cd9-770321dd5776', 'name': '', 'tenant_id': '5975edd882d545e386ba0efe5a6636f0', 'network_id': 'b15305df-8e5a-4b06-8706-b216e97017bf', 'ip_version': 4, 'cidr': '49.25.37.128/26', 'allocation_pools': [{'start': '49.25.37.130', 'end': '49.25.37.190'}], 'gateway_ip': '49.25.37.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.25.37.130', 'tags': [], 'project_id': '5975edd882d545e386ba0efe5a6636f0'}} 2025-05-07 09:08:26,975 - INFO - Created VN ctest-vn-04707989 2025-05-07 09:08:27,036 - DEBUG - VN ctest-vn-04707989 UUID is b15305df-8e5a-4b06-8706-b216e97017bf 2025-05-07 09:08:27,514 - DEBUG - Response for create_network : {'network': {'id': 'bcf2474c-edf1-4c88-a31d-41e287235564', 'name': 'ctest-vn-09166361', 'tenant_id': '5975edd882d545e386ba0efe5a6636f0', 'project_id': '5975edd882d545e386ba0efe5a6636f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37027794', 'ctest-vn-09166361'], 'port_security_enabled': True, 'description': ''}} 2025-05-07 09:08:27,752 - DEBUG - Response for create_subnet : {'subnet': {'id': 'af5a5332-b9b7-4ab4-aad8-854b2ff54301', 'name': '', 'tenant_id': '5975edd882d545e386ba0efe5a6636f0', 'network_id': 'bcf2474c-edf1-4c88-a31d-41e287235564', 'ip_version': 4, 'cidr': '189.91.46.64/26', 'allocation_pools': [{'start': '189.91.46.66', 'end': '189.91.46.126'}], 'gateway_ip': '189.91.46.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '189.91.46.66', 'tags': [], 'project_id': '5975edd882d545e386ba0efe5a6636f0'}} 2025-05-07 09:08:27,778 - INFO - Created VN ctest-vn-09166361 2025-05-07 09:08:27,832 - DEBUG - VN ctest-vn-09166361 UUID is bcf2474c-edf1-4c88-a31d-41e287235564 2025-05-07 09:08:27,945 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-37027794:ctest-vn-04707989, 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-37027794:ctest-vn-09166361, 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-05-07 09:08:28,321 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b15305df-8e5a-4b06-8706-b216e97017bf', 'name': 'ctest-vn-04707989', 'tenant_id': '5975edd882d545e386ba0efe5a6636f0', 'project_id': '5975edd882d545e386ba0efe5a6636f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['564f02d2-565f-4f26-9cd9-770321dd5776'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37027794', 'ctest-vn-04707989'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37027794', 'ctest-policy-allow-all-60058067']], 'subnet_ipam': [{'subnet_cidr': '49.25.37.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-07 09:08:28,605 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bcf2474c-edf1-4c88-a31d-41e287235564', 'name': 'ctest-vn-09166361', 'tenant_id': '5975edd882d545e386ba0efe5a6636f0', 'project_id': '5975edd882d545e386ba0efe5a6636f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['af5a5332-b9b7-4ab4-aad8-854b2ff54301'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37027794', 'ctest-vn-09166361'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37027794', 'ctest-policy-allow-all-60058067']], 'subnet_ipam': [{'subnet_cidr': '189.91.46.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-07 09:08:28,783 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-07 09:08:29,085 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-07 09:08:29,123 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9167c268-c9a5-48e8-a089-54d2a3410b0e 2025-05-07 09:08:29,142 - DEBUG - Requesting: http://10.0.0.254:8082/project/5975edd8-82d5-45e3-86ba-0efe5a6636f0 2025-05-07 09:08:29,265 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b15305df-8e5a-4b06-8706-b216e97017bf 2025-05-07 09:08:29,292 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b15305df-8e5a-4b06-8706-b216e97017bf 2025-05-07 09:08:29,320 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/db13792c-8bae-4a5f-8afd-ea6ed9c39e0e 2025-05-07 09:08:29,345 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/db13792c-8bae-4a5f-8afd-ea6ed9c39e0e 2025-05-07 09:08:29,369 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/674ca77e-f9b3-47ad-a043-ffcffbfce738 2025-05-07 09:08:29,388 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-07 09:08:29,389 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b15305df-8e5a-4b06-8706-b216e97017bf 2025-05-07 09:08:29,418 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/db13792c-8bae-4a5f-8afd-ea6ed9c39e0e 2025-05-07 09:08:29,462 - INFO - Verified VN network id 8 for VN b15305df-8e5a-4b06-8706-b216e97017bf 2025-05-07 09:08:29,463 - INFO - Verifications in API Server for VN ctest-vn-04707989 passed 2025-05-07 09:08:29,463 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b15305df-8e5a-4b06-8706-b216e97017bf 2025-05-07 09:08:29,487 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/db13792c-8bae-4a5f-8afd-ea6ed9c39e0e 2025-05-07 09:08:29,505 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/db13792c-8bae-4a5f-8afd-ea6ed9c39e0e 2025-05-07 09:08:29,521 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/674ca77e-f9b3-47ad-a043-ffcffbfce738 2025-05-07 09:08:29,556 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37027794:ctest-vn-04707989', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37027794', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12777563025504357126', 'uuid-lslong': '9729659856455997375'}, 'enable': 'true', 'created': '2025-05-07T09:08:26', 'last-modified': '2025-05-07T09:08:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.279855'} 2025-05-07 09:08:29,577 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-07 09:08:29,578 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04707989 passed 2025-05-07 09:08:29,578 - DEBUG - ====Verifying policy data for ctest-vn-04707989 in API_Server ====== 2025-05-07 09:08:29,579 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-07 09:08:29,598 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9167c268-c9a5-48e8-a089-54d2a3410b0e 2025-05-07 09:08:29,640 - DEBUG - Requesting: http://10.0.0.254:8082/project/5975edd8-82d5-45e3-86ba-0efe5a6636f0 2025-05-07 09:08:29,748 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b15305df-8e5a-4b06-8706-b216e97017bf 2025-05-07 09:08:29,764 - DEBUG - ==>Verifying data for policy with id: 8b077595-e122-4900-aacd-63e8d190cb5c, fqn: ['default-domain', 'ctest-TestBasicPolicy-37027794', 'ctest-policy-allow-all-60058067'] 2025-05-07 09:08:29,765 - INFO - VN ctest-vn-04707989 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-07 09:08:29,765 - DEBUG - Verifying the vn in opserver 2025-05-07 09:08:29,765 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37027794:ctest-vn-04707989 virtual network link through opserver 10.0.0.254 2025-05-07 09:08:29,765 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-05-07 09:08:30,073 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-05-07 09:08:30,268 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37027794:ctest-vn-04707989', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37027794:ctest-vn-04707989?flat'} 2025-05-07 09:08:30,268 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37027794:ctest-vn-04707989 is found in opserver 2025-05-07 09:08:30,309 - DEBUG - Do not have enough data to verify VN in agent 2025-05-07 09:08:30,322 - DEBUG - VRF ids for VN ctest-vn-04707989: {} 2025-05-07 09:08:30,322 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-07 09:08:30,349 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9167c268-c9a5-48e8-a089-54d2a3410b0e 2025-05-07 09:08:30,423 - DEBUG - Requesting: http://10.0.0.254:8082/project/5975edd8-82d5-45e3-86ba-0efe5a6636f0 2025-05-07 09:08:30,525 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bcf2474c-edf1-4c88-a31d-41e287235564 2025-05-07 09:08:30,554 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bcf2474c-edf1-4c88-a31d-41e287235564 2025-05-07 09:08:30,567 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/61a69f4b-62ea-493d-aaee-519bf0596277 2025-05-07 09:08:30,601 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/61a69f4b-62ea-493d-aaee-519bf0596277 2025-05-07 09:08:30,621 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/78cb85b7-295a-4c52-9721-497f72e5cdc6 2025-05-07 09:08:30,631 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-07 09:08:30,632 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bcf2474c-edf1-4c88-a31d-41e287235564 2025-05-07 09:08:30,654 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/61a69f4b-62ea-493d-aaee-519bf0596277 2025-05-07 09:08:30,682 - INFO - Verified VN network id 9 for VN bcf2474c-edf1-4c88-a31d-41e287235564 2025-05-07 09:08:30,682 - INFO - Verifications in API Server for VN ctest-vn-09166361 passed 2025-05-07 09:08:30,683 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bcf2474c-edf1-4c88-a31d-41e287235564 2025-05-07 09:08:30,697 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/61a69f4b-62ea-493d-aaee-519bf0596277 2025-05-07 09:08:30,714 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/61a69f4b-62ea-493d-aaee-519bf0596277 2025-05-07 09:08:30,725 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/78cb85b7-295a-4c52-9721-497f72e5cdc6 2025-05-07 09:08:30,760 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37027794:ctest-vn-09166361', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37027794', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13615023019229531272', 'uuid-lslong': '11753623043692516708'}, 'enable': 'true', 'created': '2025-05-07T09:08:27', 'last-modified': '2025-05-07T09:08:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.181501'} 2025-05-07 09:08:30,768 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-07 09:08:30,768 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09166361 passed 2025-05-07 09:08:30,769 - DEBUG - ====Verifying policy data for ctest-vn-09166361 in API_Server ====== 2025-05-07 09:08:30,769 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-07 09:08:30,779 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9167c268-c9a5-48e8-a089-54d2a3410b0e 2025-05-07 09:08:30,844 - DEBUG - Requesting: http://10.0.0.254:8082/project/5975edd8-82d5-45e3-86ba-0efe5a6636f0 2025-05-07 09:08:30,950 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bcf2474c-edf1-4c88-a31d-41e287235564 2025-05-07 09:08:30,966 - DEBUG - ==>Verifying data for policy with id: 8b077595-e122-4900-aacd-63e8d190cb5c, fqn: ['default-domain', 'ctest-TestBasicPolicy-37027794', 'ctest-policy-allow-all-60058067'] 2025-05-07 09:08:30,966 - INFO - VN ctest-vn-09166361 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-07 09:08:30,966 - DEBUG - Verifying the vn in opserver 2025-05-07 09:08:30,966 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37027794:ctest-vn-09166361 virtual network link through opserver 10.0.0.254 2025-05-07 09:08:30,966 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-05-07 09:08:30,981 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37027794:ctest-vn-09166361', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37027794:ctest-vn-09166361?flat'} 2025-05-07 09:08:30,981 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37027794:ctest-vn-09166361 is found in opserver 2025-05-07 09:08:30,996 - DEBUG - Do not have enough data to verify VN in agent 2025-05-07 09:08:31,007 - DEBUG - VRF ids for VN ctest-vn-09166361: {} 2025-05-07 09:08:31,079 - DEBUG - Services list from nova: [, , ] 2025-05-07 09:08:32,556 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3282-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3282-1) 2025-05-07 09:08:34,277 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3282-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3282-1) 2025-05-07 09:08:34,277 - INFO - Waiting for VM ctest-TestBasicPolicy-37027794-14024209 to be up.. 2025-05-07 09:08:34,376 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-05-07 09:08:39,527 - DEBUG - VM is in ACTIVE state now 2025-05-07 09:08:39,528 - INFO - VM name : ctest-TestBasicPolicy-37027794-14024209 2025-05-07 09:08:39,644 - DEBUG - VM ctest-TestBasicPolicy-37027794-14024209 ID is 4c477dc0-8de7-4d3a-b4a5-0ee2c24aa3c6 2025-05-07 09:08:39,674 - DEBUG - VM ctest-TestBasicPolicy-37027794-14024209 launched on Node cn-jenkins-deploy-platform-ansible-os-3282-1 2025-05-07 09:08:39,836 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/4c477dc0-8de7-4d3a-b4a5-0ee2c24aa3c6 2025-05-07 09:08:39,862 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/16970fbd-9d84-4cad-b241-a83fbffef977 2025-05-07 09:08:43,171 - 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 1013ms') 2025-05-07 09:08:43,171 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-37027794-14024209 failed! 2025-05-07 09:08:43,244 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-37027794:ctest-vn-04707989 is 49.25.37.129 and allocation pool is NOT set 2025-05-07 09:08:47,333 - 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=2 ttl=63 time=5.33 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1022ms\r\nrtt min/avg/max/mdev = 5.325/5.325/5.325/0.000 ms') 2025-05-07 09:08:47,333 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-37027794-14024209 passed 2025-05-07 09:08:47,519 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-07 09:08:47,520 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-37027794-14024209, IP 49.25.37.131, Port 22 2025-05-07 09:08:47,589 - 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-05-07 09:08:47,804 - DEBUG - VM ctest-TestBasicPolicy-37027794-14024209 is NOT ready for SSH connections, VM status: ACTIVE 2025-05-07 09:08:52,804 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-07 09:08:52,805 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-37027794-14024209, IP 49.25.37.131, Port 22 2025-05-07 09:08:53,007 - DEBUG - VM ctest-TestBasicPolicy-37027794-14024209 is ready for SSH connections 2025-05-07 09:08:53,007 - INFO - Waiting for VM ctest-TestBasicPolicy-37027794-95904141 to be up.. 2025-05-07 09:08:53,172 - DEBUG - VM is in ACTIVE state now 2025-05-07 09:08:53,172 - INFO - VM name : ctest-TestBasicPolicy-37027794-95904141 2025-05-07 09:08:53,307 - DEBUG - VM ctest-TestBasicPolicy-37027794-95904141 ID is fcfa581a-7e15-4a30-b9ae-8b5a3d6f4ff9 2025-05-07 09:08:53,307 - DEBUG - VM ctest-TestBasicPolicy-37027794-95904141 launched on Node cn-jenkins-deploy-platform-ansible-os-3282-1 2025-05-07 09:08:53,430 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/fcfa581a-7e15-4a30-b9ae-8b5a3d6f4ff9 2025-05-07 09:08:53,456 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/aaa63659-14df-419a-824e-57d80693f788 2025-05-07 09:08:54,771 - 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.00 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.873 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.873/2.437/4.001/1.564 ms') 2025-05-07 09:08:54,771 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-37027794-95904141 passed 2025-05-07 09:08:54,964 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-07 09:08:54,964 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-37027794-95904141, IP 189.91.46.67, Port 22 2025-05-07 09:08:55,174 - DEBUG - VM ctest-TestBasicPolicy-37027794-95904141 is ready for SSH connections 2025-05-07 09:08:55,175 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-07 09:08:55,175 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 189.91.46.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-05-07 09:08:55,175 - DEBUG - ping -s 56 -c 3 -W 1 189.91.46.67 2025-05-07 09:08:59,782 - DEBUG - PING 189.91.46.67 (189.91.46.67): 56 data bytes 64 bytes from 189.91.46.67: seq=0 ttl=63 time=5.120 ms 64 bytes from 189.91.46.67: seq=1 ttl=63 time=2.424 ms 64 bytes from 189.91.46.67: seq=2 ttl=63 time=1.717 ms --- 189.91.46.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.717/3.087/5.120 ms 2025-05-07 09:08:59,782 - INFO - Ping to IP 189.91.46.67 from VM ctest-TestBasicPolicy-37027794-14024209 passed 2025-05-07 09:09:00,047 - DEBUG - Policy Update Response {"network-policy": {"uuid": "8b077595-e122-4900-aacd-63e8d190cb5c", "href": "http://10.0.0.254:8082/network-policy/8b077595-e122-4900-aacd-63e8d190cb5c"}} 2025-05-07 09:09:00,048 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-07 09:09:00,048 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 189.91.46.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-05-07 09:09:00,048 - DEBUG - ping -s 56 -c 3 -W 1 189.91.46.67 2025-05-07 09:09:03,348 - DEBUG - PING 189.91.46.67 (189.91.46.67): 56 data bytes --- 189.91.46.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-07 09:09:03,348 - WARNING - Ping to IP 189.91.46.67 from VM ctest-TestBasicPolicy-37027794-14024209 failed 2025-05-07 09:09:03,348 - INFO - Deleting VM ctest-TestBasicPolicy-37027794-95904141 2025-05-07 09:09:03,479 - INFO - Deleting VM ctest-TestBasicPolicy-37027794-14024209 2025-05-07 09:09:04,022 - INFO - Deleted policy ctest-policy-allow-all-60058067 2025-05-07 09:09:04,022 - INFO - Deleting VN ctest-vn-09166361 2025-05-07 09:09:04,091 - DEBUG - VN bcf2474c-edf1-4c88-a31d-41e287235564 still in use: Unable to complete operation on network bcf2474c-edf1-4c88-a31d-41e287235564. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-47590d2a-0741-4d4c-84c6-79bec9f50454'] 2025-05-07 09:09:04,091 - WARNING - Deleting VN ctest-vn-09166361 failed..Will retry 2025-05-07 09:09:06,325 - DEBUG - Response for deleting network () 2025-05-07 09:09:06,325 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/61a69f4b-62ea-493d-aaee-519bf0596277 2025-05-07 09:09:06,336 - DEBUG - Response Code: 404 2025-05-07 09:09:06,337 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-07 09:09:06,355 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9167c268-c9a5-48e8-a089-54d2a3410b0e 2025-05-07 09:09:06,383 - DEBUG - Requesting: http://10.0.0.254:8082/project/5975edd8-82d5-45e3-86ba-0efe5a6636f0 2025-05-07 09:09:06,490 - INFO - Validated that VN ctest-vn-09166361 is not found in API Server 2025-05-07 09:09:06,521 - DEBUG - VN ctest-vn-09166361 is not present in Agent 10.0.0.254 2025-05-07 09:09:06,521 - INFO - Validated that VN ctest-vn-09166361 is not in any agent 2025-05-07 09:09:06,559 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-09166361 info 2025-05-07 09:09:06,559 - INFO - Deleting VN ctest-vn-04707989 2025-05-07 09:09:06,797 - DEBUG - Response for deleting network () 2025-05-07 09:09:06,797 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/db13792c-8bae-4a5f-8afd-ea6ed9c39e0e 2025-05-07 09:09:06,806 - DEBUG - Response Code: 404 2025-05-07 09:09:06,806 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-07 09:09:06,815 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9167c268-c9a5-48e8-a089-54d2a3410b0e 2025-05-07 09:09:06,838 - DEBUG - Requesting: http://10.0.0.254:8082/project/5975edd8-82d5-45e3-86ba-0efe5a6636f0 2025-05-07 09:09:06,937 - INFO - Validated that VN ctest-vn-04707989 is not found in API Server 2025-05-07 09:09:06,965 - DEBUG - VN ctest-vn-04707989 is not present in Agent 10.0.0.254 2025-05-07 09:09:06,965 - INFO - Validated that VN ctest-vn-04707989 is not in any agent 2025-05-07 09:09:06,997 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-04707989 info 2025-05-07 09:09:07,334 - DEBUG - No XMPP flaps were noticed during the test
2025-05-07 09:09:07,335 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:42]
2025-05-07 09:09:07,335 - INFO - -------------------------------------------------------------------------------- 2025-05-07 09:09:08,333 - INFO - Deleted project: ctest-TestBasicPolicy-37027794, ID : 5975edd8-82d5-45e3-86ba-0efe5a6636f0