2024-10-28 15:41:53,132 - INFO - Domain Default found not creating 2024-10-28 15:41:53,344 - INFO - Project ctest-TestBasicPolicy-99272391 not found, creating it 2024-10-28 15:41:53,997 - INFO - Created Project:ctest-TestBasicPolicy-99272391, ID : 4257cacd-721e-4f07-b923-4790f34e5d13 2024-10-28 15:41:56,031 - INFO - ================================================================================ 2024-10-28 15:41:56,032 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-28 15:41:56,032 - 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 2024-10-28 15:41:56,296 - DEBUG - Nothing to compare xmpp stats {'10.0.0.52': {'10.20.0.21': '0'}} with 2024-10-28 15:41:56,296 - INFO - Initial checks done. Running the testcase now 2024-10-28 15:41:56,296 - INFO - 2024-10-28 15:41:57,023 - DEBUG - Response for create_network : {'network': {'id': '32d65490-ab98-4456-9f78-f51c2f4a9c91', 'name': 'ctest-vn-10933609', 'tenant_id': '4257cacd721e4f07b9234790f34e5d13', 'project_id': '4257cacd721e4f07b9234790f34e5d13', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99272391', 'ctest-vn-10933609'], 'port_security_enabled': True, 'description': ''}} 2024-10-28 15:41:57,227 - DEBUG - Response for create_subnet : {'subnet': {'id': '1b7ed59c-c871-4b4b-8e45-7880ea1d0224', 'name': '', 'tenant_id': '4257cacd721e4f07b9234790f34e5d13', 'network_id': '32d65490-ab98-4456-9f78-f51c2f4a9c91', 'ip_version': 4, 'cidr': '209.153.14.64/26', 'allocation_pools': [{'start': '209.153.14.66', 'end': '209.153.14.126'}], 'gateway_ip': '209.153.14.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.153.14.66', 'tags': [], 'project_id': '4257cacd721e4f07b9234790f34e5d13'}} 2024-10-28 15:41:57,254 - INFO - Created VN ctest-vn-10933609 2024-10-28 15:41:57,318 - DEBUG - VN ctest-vn-10933609 UUID is 32d65490-ab98-4456-9f78-f51c2f4a9c91 2024-10-28 15:41:57,748 - DEBUG - Response for create_network : {'network': {'id': 'ff51f27b-0045-453b-8dce-debfbf52e1fd', 'name': 'ctest-vn-00690550', 'tenant_id': '4257cacd721e4f07b9234790f34e5d13', 'project_id': '4257cacd721e4f07b9234790f34e5d13', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99272391', 'ctest-vn-00690550'], 'port_security_enabled': True, 'description': ''}} 2024-10-28 15:41:58,011 - DEBUG - Response for create_subnet : {'subnet': {'id': '9775e651-8c8a-4e77-8a4f-c40b4a2d6f4e', 'name': '', 'tenant_id': '4257cacd721e4f07b9234790f34e5d13', 'network_id': 'ff51f27b-0045-453b-8dce-debfbf52e1fd', 'ip_version': 4, 'cidr': '222.181.144.128/26', 'allocation_pools': [{'start': '222.181.144.130', 'end': '222.181.144.190'}], 'gateway_ip': '222.181.144.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.181.144.130', 'tags': [], 'project_id': '4257cacd721e4f07b9234790f34e5d13'}} 2024-10-28 15:41:58,038 - INFO - Created VN ctest-vn-00690550 2024-10-28 15:41:58,102 - DEBUG - VN ctest-vn-00690550 UUID is ff51f27b-0045-453b-8dce-debfbf52e1fd 2024-10-28 15:41:58,256 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-99272391:ctest-vn-10933609, 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-99272391:ctest-vn-00690550, 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] 2024-10-28 15:41:58,652 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '32d65490-ab98-4456-9f78-f51c2f4a9c91', 'name': 'ctest-vn-10933609', 'tenant_id': '4257cacd721e4f07b9234790f34e5d13', 'project_id': '4257cacd721e4f07b9234790f34e5d13', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1b7ed59c-c871-4b4b-8e45-7880ea1d0224'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99272391', 'ctest-vn-10933609'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99272391', 'ctest-policy-allow-all-53033974']], 'subnet_ipam': [{'subnet_cidr': '209.153.14.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-28 15:41:58,948 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ff51f27b-0045-453b-8dce-debfbf52e1fd', 'name': 'ctest-vn-00690550', 'tenant_id': '4257cacd721e4f07b9234790f34e5d13', 'project_id': '4257cacd721e4f07b9234790f34e5d13', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9775e651-8c8a-4e77-8a4f-c40b4a2d6f4e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99272391', 'ctest-vn-00690550'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99272391', 'ctest-policy-allow-all-53033974']], 'subnet_ipam': [{'subnet_cidr': '222.181.144.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-28 15:41:59,118 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2024-10-28 15:41:59,505 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2024-10-28 15:41:59,546 - DEBUG - Requesting: http://10.0.0.52:8082/domain/a2760c77-c251-48e8-8d9f-5fa7fcb50876 2024-10-28 15:41:59,571 - DEBUG - Requesting: http://10.0.0.52:8082/project/4257cacd-721e-4f07-b923-4790f34e5d13 2024-10-28 15:41:59,683 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/32d65490-ab98-4456-9f78-f51c2f4a9c91 2024-10-28 15:41:59,708 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/32d65490-ab98-4456-9f78-f51c2f4a9c91 2024-10-28 15:41:59,730 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/13deea3a-6ca1-4aa5-b65e-e6e5d77c3ab3 2024-10-28 15:41:59,744 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/13deea3a-6ca1-4aa5-b65e-e6e5d77c3ab3 2024-10-28 15:41:59,764 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/d6c60725-1715-4c58-9f97-b1d36d408314 2024-10-28 15:41:59,779 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-28 15:41:59,780 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/32d65490-ab98-4456-9f78-f51c2f4a9c91 2024-10-28 15:41:59,805 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/13deea3a-6ca1-4aa5-b65e-e6e5d77c3ab3 2024-10-28 15:41:59,841 - INFO - Verified VN network id 7 for VN 32d65490-ab98-4456-9f78-f51c2f4a9c91 2024-10-28 15:41:59,841 - INFO - Verifications in API Server for VN ctest-vn-10933609 passed 2024-10-28 15:41:59,841 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/32d65490-ab98-4456-9f78-f51c2f4a9c91 2024-10-28 15:41:59,865 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/13deea3a-6ca1-4aa5-b65e-e6e5d77c3ab3 2024-10-28 15:41:59,882 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/13deea3a-6ca1-4aa5-b65e-e6e5d77c3ab3 2024-10-28 15:41:59,898 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/d6c60725-1715-4c58-9f97-b1d36d408314 2024-10-28 15:41:59,918 - DEBUG - Control-node 10.0.0.52 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99272391:ctest-vn-10933609', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99272391', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3663208327243383894', 'uuid-lslong': '11491203950637128849'}, 'enable': 'true', 'created': '2024-10-28T15:41:56', 'last-modified': '2024-10-28T15:41:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.311832'} 2024-10-28 15:41:59,928 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-28 15:41:59,928 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10933609 passed 2024-10-28 15:41:59,929 - DEBUG - ====Verifying policy data for ctest-vn-10933609 in API_Server ====== 2024-10-28 15:41:59,929 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2024-10-28 15:41:59,937 - DEBUG - Requesting: http://10.0.0.52:8082/domain/a2760c77-c251-48e8-8d9f-5fa7fcb50876 2024-10-28 15:41:59,958 - DEBUG - Requesting: http://10.0.0.52:8082/project/4257cacd-721e-4f07-b923-4790f34e5d13 2024-10-28 15:42:00,059 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/32d65490-ab98-4456-9f78-f51c2f4a9c91 2024-10-28 15:42:00,080 - DEBUG - ==>Verifying data for policy with id: 7f831f16-905c-4dea-820d-186b1debe4b9, fqn: ['default-domain', 'ctest-TestBasicPolicy-99272391', 'ctest-policy-allow-all-53033974'] 2024-10-28 15:42:00,080 - INFO - VN ctest-vn-10933609 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-28 15:42:00,080 - DEBUG - Verifying the vn in opserver 2024-10-28 15:42:00,080 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99272391:ctest-vn-10933609 virtual network link through opserver 10.0.0.52 2024-10-28 15:42:00,080 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks 2024-10-28 15:42:00,435 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks 2024-10-28 15:42:00,518 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99272391:ctest-vn-10933609', 'href': 'http://10.0.0.52:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99272391:ctest-vn-10933609?flat'} 2024-10-28 15:42:00,518 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99272391:ctest-vn-10933609 is found in opserver 2024-10-28 15:42:00,532 - DEBUG - Do not have enough data to verify VN in agent 2024-10-28 15:42:00,538 - DEBUG - VRF ids for VN ctest-vn-10933609: {} 2024-10-28 15:42:00,538 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2024-10-28 15:42:00,547 - DEBUG - Requesting: http://10.0.0.52:8082/domain/a2760c77-c251-48e8-8d9f-5fa7fcb50876 2024-10-28 15:42:00,571 - DEBUG - Requesting: http://10.0.0.52:8082/project/4257cacd-721e-4f07-b923-4790f34e5d13 2024-10-28 15:42:00,666 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/ff51f27b-0045-453b-8dce-debfbf52e1fd 2024-10-28 15:42:00,691 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/ff51f27b-0045-453b-8dce-debfbf52e1fd 2024-10-28 15:42:00,713 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/e0fd815e-83c6-4b53-903a-78c201965be7 2024-10-28 15:42:00,728 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/e0fd815e-83c6-4b53-903a-78c201965be7 2024-10-28 15:42:00,739 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/d33f7af2-4995-491f-bd28-1b65e94fc5f0 2024-10-28 15:42:00,753 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-28 15:42:00,753 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/ff51f27b-0045-453b-8dce-debfbf52e1fd 2024-10-28 15:42:00,775 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/e0fd815e-83c6-4b53-903a-78c201965be7 2024-10-28 15:42:00,809 - INFO - Verified VN network id 8 for VN ff51f27b-0045-453b-8dce-debfbf52e1fd 2024-10-28 15:42:00,809 - INFO - Verifications in API Server for VN ctest-vn-00690550 passed 2024-10-28 15:42:00,810 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/ff51f27b-0045-453b-8dce-debfbf52e1fd 2024-10-28 15:42:00,831 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/e0fd815e-83c6-4b53-903a-78c201965be7 2024-10-28 15:42:00,846 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/e0fd815e-83c6-4b53-903a-78c201965be7 2024-10-28 15:42:00,861 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/d33f7af2-4995-491f-bd28-1b65e94fc5f0 2024-10-28 15:42:00,887 - DEBUG - Control-node 10.0.0.52 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99272391:ctest-vn-00690550', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99272391', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18397752562884625723', 'uuid-lslong': '10218349519680233981'}, 'enable': 'true', 'created': '2024-10-28T15:41:57', 'last-modified': '2024-10-28T15:41:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.968969'} 2024-10-28 15:42:00,899 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-28 15:42:00,899 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00690550 passed 2024-10-28 15:42:00,899 - DEBUG - ====Verifying policy data for ctest-vn-00690550 in API_Server ====== 2024-10-28 15:42:00,899 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2024-10-28 15:42:00,910 - DEBUG - Requesting: http://10.0.0.52:8082/domain/a2760c77-c251-48e8-8d9f-5fa7fcb50876 2024-10-28 15:42:00,931 - DEBUG - Requesting: http://10.0.0.52:8082/project/4257cacd-721e-4f07-b923-4790f34e5d13 2024-10-28 15:42:01,034 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/ff51f27b-0045-453b-8dce-debfbf52e1fd 2024-10-28 15:42:01,052 - DEBUG - ==>Verifying data for policy with id: 7f831f16-905c-4dea-820d-186b1debe4b9, fqn: ['default-domain', 'ctest-TestBasicPolicy-99272391', 'ctest-policy-allow-all-53033974'] 2024-10-28 15:42:01,052 - INFO - VN ctest-vn-00690550 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-28 15:42:01,052 - DEBUG - Verifying the vn in opserver 2024-10-28 15:42:01,052 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99272391:ctest-vn-00690550 virtual network link through opserver 10.0.0.52 2024-10-28 15:42:01,052 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks 2024-10-28 15:42:01,067 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99272391:ctest-vn-00690550', 'href': 'http://10.0.0.52:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99272391:ctest-vn-00690550?flat'} 2024-10-28 15:42:01,067 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99272391:ctest-vn-00690550 is found in opserver 2024-10-28 15:42:01,084 - DEBUG - Do not have enough data to verify VN in agent 2024-10-28 15:42:01,091 - DEBUG - VRF ids for VN ctest-vn-00690550: {} 2024-10-28 15:42:01,164 - DEBUG - Services list from nova: [, , ] 2024-10-28 15:42:02,470 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2165-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2165-1) 2024-10-28 15:42:04,164 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2165-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2165-1) 2024-10-28 15:42:04,164 - INFO - Waiting for VM ctest-TestBasicPolicy-99272391-44503811 to be up.. 2024-10-28 15:42:04,304 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-28 15:42:09,430 - DEBUG - VM is in ACTIVE state now 2024-10-28 15:42:09,430 - INFO - VM name : ctest-TestBasicPolicy-99272391-44503811 2024-10-28 15:42:09,571 - DEBUG - VM ctest-TestBasicPolicy-99272391-44503811 ID is 8c09b22e-c0a0-4f78-a501-9fddd06028d1 2024-10-28 15:42:09,608 - DEBUG - VM ctest-TestBasicPolicy-99272391-44503811 launched on Node cn-jenkins-deploy-platform-ansible-os-2165-1 2024-10-28 15:42:09,712 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine/8c09b22e-c0a0-4f78-a501-9fddd06028d1 2024-10-28 15:42:09,726 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine-interface/359d630a-7512-488a-96bd-13a6f33e5d0a 2024-10-28 15:42:13,040 - 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') 2024-10-28 15:42:13,040 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-99272391-44503811 failed! 2024-10-28 15:42:13,110 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-99272391:ctest-vn-10933609 is 209.153.14.65 and allocation pool is NOT set 2024-10-28 15:42:15,180 - 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=5.67 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=4.04 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 4.035/4.851/5.668/0.816 ms') 2024-10-28 15:42:15,180 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-99272391-44503811 passed 2024-10-28 15:42:15,354 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 15:42:15,354 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-99272391-44503811, IP 209.153.14.67, Port 22 2024-10-28 15:42:15,424 - 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': ''} 2024-10-28 15:42:15,536 - DEBUG - VM ctest-TestBasicPolicy-99272391-44503811 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-28 15:42:20,537 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 15:42:20,537 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-99272391-44503811, IP 209.153.14.67, Port 22 2024-10-28 15:42:20,709 - DEBUG - VM ctest-TestBasicPolicy-99272391-44503811 is ready for SSH connections 2024-10-28 15:42:20,709 - INFO - Waiting for VM ctest-TestBasicPolicy-99272391-81963909 to be up.. 2024-10-28 15:42:20,839 - DEBUG - VM is in ACTIVE state now 2024-10-28 15:42:20,839 - INFO - VM name : ctest-TestBasicPolicy-99272391-81963909 2024-10-28 15:42:20,957 - DEBUG - VM ctest-TestBasicPolicy-99272391-81963909 ID is e2cf7d27-b745-4886-819f-075829909cc9 2024-10-28 15:42:20,957 - DEBUG - VM ctest-TestBasicPolicy-99272391-81963909 launched on Node cn-jenkins-deploy-platform-ansible-os-2165-1 2024-10-28 15:42:21,085 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine/e2cf7d27-b745-4886-819f-075829909cc9 2024-10-28 15:42:21,102 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine-interface/540fd948-c8e6-4f65-a9df-745e375ae3d8 2024-10-28 15:42:22,387 - 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.21 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.599 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.599/1.903/3.207/1.304 ms') 2024-10-28 15:42:22,387 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-99272391-81963909 passed 2024-10-28 15:42:22,554 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 15:42:22,554 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-99272391-81963909, IP 222.181.144.131, Port 22 2024-10-28 15:42:22,713 - DEBUG - VM ctest-TestBasicPolicy-99272391-81963909 is ready for SSH connections 2024-10-28 15:42:22,713 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 15:42:22,713 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 222.181.144.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.52, gateway password: c0ntrail123 2024-10-28 15:42:22,713 - DEBUG - ping -s 56 -c 3 -W 1 222.181.144.131 2024-10-28 15:42:26,853 - DEBUG - PING 222.181.144.131 (222.181.144.131): 56 data bytes 64 bytes from 222.181.144.131: seq=0 ttl=63 time=3.804 ms 64 bytes from 222.181.144.131: seq=1 ttl=63 time=0.857 ms 64 bytes from 222.181.144.131: seq=2 ttl=63 time=0.963 ms --- 222.181.144.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.857/1.874/3.804 ms 2024-10-28 15:42:26,853 - INFO - Ping to IP 222.181.144.131 from VM ctest-TestBasicPolicy-99272391-44503811 passed 2024-10-28 15:42:27,057 - DEBUG - Policy Update Response {"network-policy": {"uuid": "7f831f16-905c-4dea-820d-186b1debe4b9", "href": "http://10.0.0.52:8082/network-policy/7f831f16-905c-4dea-820d-186b1debe4b9"}} 2024-10-28 15:42:27,058 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 15:42:27,058 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 222.181.144.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.52, gateway password: c0ntrail123 2024-10-28 15:42:27,058 - DEBUG - ping -s 56 -c 3 -W 1 222.181.144.131 2024-10-28 15:42:30,286 - DEBUG - PING 222.181.144.131 (222.181.144.131): 56 data bytes --- 222.181.144.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-28 15:42:30,286 - WARNING - Ping to IP 222.181.144.131 from VM ctest-TestBasicPolicy-99272391-44503811 failed 2024-10-28 15:42:30,287 - INFO - Deleting VM ctest-TestBasicPolicy-99272391-81963909 2024-10-28 15:42:30,362 - INFO - Deleting VM ctest-TestBasicPolicy-99272391-44503811 2024-10-28 15:42:30,924 - INFO - Deleted policy ctest-policy-allow-all-53033974 2024-10-28 15:42:30,925 - INFO - Deleting VN ctest-vn-00690550 2024-10-28 15:42:30,994 - DEBUG - VN ff51f27b-0045-453b-8dce-debfbf52e1fd still in use: Unable to complete operation on network ff51f27b-0045-453b-8dce-debfbf52e1fd. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-8d52ed63-4785-4caf-ba66-b06e2ad217cd'] 2024-10-28 15:42:30,994 - WARNING - Deleting VN ctest-vn-00690550 failed..Will retry 2024-10-28 15:42:33,161 - DEBUG - Response for deleting network () 2024-10-28 15:42:33,162 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/e0fd815e-83c6-4b53-903a-78c201965be7 2024-10-28 15:42:33,170 - DEBUG - Response Code: 404 2024-10-28 15:42:33,170 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2024-10-28 15:42:33,180 - DEBUG - Requesting: http://10.0.0.52:8082/domain/a2760c77-c251-48e8-8d9f-5fa7fcb50876 2024-10-28 15:42:33,199 - DEBUG - Requesting: http://10.0.0.52:8082/project/4257cacd-721e-4f07-b923-4790f34e5d13 2024-10-28 15:42:33,300 - INFO - Validated that VN ctest-vn-00690550 is not found in API Server 2024-10-28 15:42:33,313 - DEBUG - VN ctest-vn-00690550 is not present in Agent 10.0.0.52 2024-10-28 15:42:33,313 - INFO - Validated that VN ctest-vn-00690550 is not in any agent 2024-10-28 15:42:33,334 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-00690550 info 2024-10-28 15:42:33,334 - INFO - Deleting VN ctest-vn-10933609 2024-10-28 15:42:33,475 - DEBUG - Response for deleting network () 2024-10-28 15:42:33,476 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/13deea3a-6ca1-4aa5-b65e-e6e5d77c3ab3 2024-10-28 15:42:33,483 - DEBUG - Response Code: 404 2024-10-28 15:42:33,484 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2024-10-28 15:42:33,494 - DEBUG - Requesting: http://10.0.0.52:8082/domain/a2760c77-c251-48e8-8d9f-5fa7fcb50876 2024-10-28 15:42:33,553 - DEBUG - Requesting: http://10.0.0.52:8082/project/4257cacd-721e-4f07-b923-4790f34e5d13 2024-10-28 15:42:33,638 - INFO - Validated that VN ctest-vn-10933609 is not found in API Server 2024-10-28 15:42:33,653 - DEBUG - VN ctest-vn-10933609 is not present in Agent 10.0.0.52 2024-10-28 15:42:33,653 - INFO - Validated that VN ctest-vn-10933609 is not in any agent 2024-10-28 15:42:33,672 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-10933609 info 2024-10-28 15:42:33,930 - DEBUG - No XMPP flaps were noticed during the test
2024-10-28 15:42:33,930 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37]
2024-10-28 15:42:33,931 - INFO - -------------------------------------------------------------------------------- 2024-10-28 15:42:34,760 - INFO - Deleted project: ctest-TestBasicPolicy-99272391, ID : 4257cacd-721e-4f07-b923-4790f34e5d13