2024-08-21 17:21:24,398 - INFO - Domain Default found not creating 2024-08-21 17:21:24,583 - INFO - Project ctest-TestBasicPolicy-76572591 not found, creating it 2024-08-21 17:21:25,086 - INFO - Created Project:ctest-TestBasicPolicy-76572591, ID : 29e039b4-33d3-4949-b559-7e0a6e09bfba 2024-08-21 17:21:26,819 - INFO - ================================================================================ 2024-08-21 17:21:26,819 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-21 17:21:26,819 - 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-08-21 17:21:27,090 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.26': '0'}} with 2024-08-21 17:21:27,090 - INFO - Initial checks done. Running the testcase now 2024-08-21 17:21:27,091 - INFO - 2024-08-21 17:21:27,742 - DEBUG - Response for create_network : {'network': {'id': '21200bcc-1d4d-44f0-802e-e56cc3cb3917', 'name': 'ctest-vn-04829499', 'tenant_id': '29e039b433d34949b5597e0a6e09bfba', 'project_id': '29e039b433d34949b5597e0a6e09bfba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76572591', 'ctest-vn-04829499'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 17:21:27,967 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bc5148f3-f43b-43cd-bc75-e3b73bee15eb', 'name': '', 'tenant_id': '29e039b433d34949b5597e0a6e09bfba', 'network_id': '21200bcc-1d4d-44f0-802e-e56cc3cb3917', 'ip_version': 4, 'cidr': '115.183.192.0/26', 'allocation_pools': [{'start': '115.183.192.2', 'end': '115.183.192.62'}], 'gateway_ip': '115.183.192.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.183.192.2', 'tags': [], 'project_id': '29e039b433d34949b5597e0a6e09bfba'}} 2024-08-21 17:21:27,991 - INFO - Created VN ctest-vn-04829499 2024-08-21 17:21:28,046 - DEBUG - VN ctest-vn-04829499 UUID is 21200bcc-1d4d-44f0-802e-e56cc3cb3917 2024-08-21 17:21:28,373 - DEBUG - Response for create_network : {'network': {'id': 'eec39c82-6fe2-474b-af4b-87340bd2ae79', 'name': 'ctest-vn-70838901', 'tenant_id': '29e039b433d34949b5597e0a6e09bfba', 'project_id': '29e039b433d34949b5597e0a6e09bfba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76572591', 'ctest-vn-70838901'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 17:21:28,576 - DEBUG - Response for create_subnet : {'subnet': {'id': '4ee699fc-81cb-4ddf-bb65-bb2534acda91', 'name': '', 'tenant_id': '29e039b433d34949b5597e0a6e09bfba', 'network_id': 'eec39c82-6fe2-474b-af4b-87340bd2ae79', 'ip_version': 4, 'cidr': '200.23.173.64/26', 'allocation_pools': [{'start': '200.23.173.66', 'end': '200.23.173.126'}], 'gateway_ip': '200.23.173.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.23.173.66', 'tags': [], 'project_id': '29e039b433d34949b5597e0a6e09bfba'}} 2024-08-21 17:21:28,606 - INFO - Created VN ctest-vn-70838901 2024-08-21 17:21:28,662 - DEBUG - VN ctest-vn-70838901 UUID is eec39c82-6fe2-474b-af4b-87340bd2ae79 2024-08-21 17:21:28,794 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-76572591:ctest-vn-04829499, 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-76572591:ctest-vn-70838901, 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-08-21 17:21:29,127 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '21200bcc-1d4d-44f0-802e-e56cc3cb3917', 'name': 'ctest-vn-04829499', 'tenant_id': '29e039b433d34949b5597e0a6e09bfba', 'project_id': '29e039b433d34949b5597e0a6e09bfba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bc5148f3-f43b-43cd-bc75-e3b73bee15eb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76572591', 'ctest-vn-04829499'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76572591', 'ctest-policy-allow-all-17381089']], 'subnet_ipam': [{'subnet_cidr': '115.183.192.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-21 17:21:29,382 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eec39c82-6fe2-474b-af4b-87340bd2ae79', 'name': 'ctest-vn-70838901', 'tenant_id': '29e039b433d34949b5597e0a6e09bfba', 'project_id': '29e039b433d34949b5597e0a6e09bfba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4ee699fc-81cb-4ddf-bb65-bb2534acda91'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76572591', 'ctest-vn-70838901'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76572591', 'ctest-policy-allow-all-17381089']], 'subnet_ipam': [{'subnet_cidr': '200.23.173.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-21 17:21:29,554 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-08-21 17:21:29,900 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-08-21 17:21:29,941 - DEBUG - Requesting: http://10.0.0.24:8082/domain/1d1bece9-afdb-49cb-bd3f-901ab706cef9 2024-08-21 17:21:29,958 - DEBUG - Requesting: http://10.0.0.24:8082/project/29e039b4-33d3-4949-b559-7e0a6e09bfba 2024-08-21 17:21:30,034 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/21200bcc-1d4d-44f0-802e-e56cc3cb3917 2024-08-21 17:21:30,045 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/21200bcc-1d4d-44f0-802e-e56cc3cb3917 2024-08-21 17:21:30,055 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/1291e2c0-09cd-46b7-87eb-acd4087f9066 2024-08-21 17:21:30,064 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/1291e2c0-09cd-46b7-87eb-acd4087f9066 2024-08-21 17:21:30,072 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/822b539d-32ff-4148-8011-33505ba2b563 2024-08-21 17:21:30,078 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-21 17:21:30,078 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/21200bcc-1d4d-44f0-802e-e56cc3cb3917 2024-08-21 17:21:30,086 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/1291e2c0-09cd-46b7-87eb-acd4087f9066 2024-08-21 17:21:30,098 - INFO - Verified VN network id 9 for VN 21200bcc-1d4d-44f0-802e-e56cc3cb3917 2024-08-21 17:21:30,098 - INFO - Verifications in API Server for VN ctest-vn-04829499 passed 2024-08-21 17:21:30,098 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/21200bcc-1d4d-44f0-802e-e56cc3cb3917 2024-08-21 17:21:30,107 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/1291e2c0-09cd-46b7-87eb-acd4087f9066 2024-08-21 17:21:30,115 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/1291e2c0-09cd-46b7-87eb-acd4087f9066 2024-08-21 17:21:30,123 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/822b539d-32ff-4148-8011-33505ba2b563 2024-08-21 17:21:30,137 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76572591:ctest-vn-04829499', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76572591', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2386920773799199984', 'uuid-lslong': '9236572141087570199'}, 'enable': 'true', 'created': '2024-08-21T17:21:27', 'last-modified': '2024-08-21T17:21:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.040712'} 2024-08-21 17:21:30,146 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-21 17:21:30,146 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04829499 passed 2024-08-21 17:21:30,146 - DEBUG - ====Verifying policy data for ctest-vn-04829499 in API_Server ====== 2024-08-21 17:21:30,146 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-08-21 17:21:30,153 - DEBUG - Requesting: http://10.0.0.24:8082/domain/1d1bece9-afdb-49cb-bd3f-901ab706cef9 2024-08-21 17:21:30,167 - DEBUG - Requesting: http://10.0.0.24:8082/project/29e039b4-33d3-4949-b559-7e0a6e09bfba 2024-08-21 17:21:30,248 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/21200bcc-1d4d-44f0-802e-e56cc3cb3917 2024-08-21 17:21:30,259 - DEBUG - ==>Verifying data for policy with id: daaff3eb-1140-411c-93d2-05d4c88d47a4, fqn: ['default-domain', 'ctest-TestBasicPolicy-76572591', 'ctest-policy-allow-all-17381089'] 2024-08-21 17:21:30,259 - INFO - VN ctest-vn-04829499 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-21 17:21:30,259 - DEBUG - Verifying the vn in opserver 2024-08-21 17:21:30,259 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76572591:ctest-vn-04829499 virtual network link through opserver 10.0.0.24 2024-08-21 17:21:30,259 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2024-08-21 17:21:30,601 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2024-08-21 17:21:30,685 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76572591:ctest-vn-04829499', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76572591:ctest-vn-04829499?flat'} 2024-08-21 17:21:30,685 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76572591:ctest-vn-04829499 is found in opserver 2024-08-21 17:21:30,697 - DEBUG - Do not have enough data to verify VN in agent 2024-08-21 17:21:30,703 - DEBUG - VRF ids for VN ctest-vn-04829499: {} 2024-08-21 17:21:30,703 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-08-21 17:21:30,711 - DEBUG - Requesting: http://10.0.0.24:8082/domain/1d1bece9-afdb-49cb-bd3f-901ab706cef9 2024-08-21 17:21:30,725 - DEBUG - Requesting: http://10.0.0.24:8082/project/29e039b4-33d3-4949-b559-7e0a6e09bfba 2024-08-21 17:21:30,797 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/eec39c82-6fe2-474b-af4b-87340bd2ae79 2024-08-21 17:21:30,809 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/eec39c82-6fe2-474b-af4b-87340bd2ae79 2024-08-21 17:21:30,818 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/eb80dd30-0cbe-401a-ac22-3adee14eeda9 2024-08-21 17:21:30,825 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/eb80dd30-0cbe-401a-ac22-3adee14eeda9 2024-08-21 17:21:30,832 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/3db4c1b2-b093-4414-bd47-dbb763bb1ef3 2024-08-21 17:21:30,839 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-21 17:21:30,839 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/eec39c82-6fe2-474b-af4b-87340bd2ae79 2024-08-21 17:21:30,847 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/eb80dd30-0cbe-401a-ac22-3adee14eeda9 2024-08-21 17:21:30,859 - INFO - Verified VN network id 10 for VN eec39c82-6fe2-474b-af4b-87340bd2ae79 2024-08-21 17:21:30,860 - INFO - Verifications in API Server for VN ctest-vn-70838901 passed 2024-08-21 17:21:30,860 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/eec39c82-6fe2-474b-af4b-87340bd2ae79 2024-08-21 17:21:30,869 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/eb80dd30-0cbe-401a-ac22-3adee14eeda9 2024-08-21 17:21:30,876 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/eb80dd30-0cbe-401a-ac22-3adee14eeda9 2024-08-21 17:21:30,883 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/3db4c1b2-b093-4414-bd47-dbb763bb1ef3 2024-08-21 17:21:30,897 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76572591:ctest-vn-70838901', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76572591', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17204767085522208587', 'uuid-lslong': '12631338237497093753'}, 'enable': 'true', 'created': '2024-08-21T17:21:28', 'last-modified': '2024-08-21T17:21:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.543169'} 2024-08-21 17:21:30,904 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-21 17:21:30,904 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70838901 passed 2024-08-21 17:21:30,904 - DEBUG - ====Verifying policy data for ctest-vn-70838901 in API_Server ====== 2024-08-21 17:21:30,904 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-08-21 17:21:30,912 - DEBUG - Requesting: http://10.0.0.24:8082/domain/1d1bece9-afdb-49cb-bd3f-901ab706cef9 2024-08-21 17:21:30,926 - DEBUG - Requesting: http://10.0.0.24:8082/project/29e039b4-33d3-4949-b559-7e0a6e09bfba 2024-08-21 17:21:31,004 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/eec39c82-6fe2-474b-af4b-87340bd2ae79 2024-08-21 17:21:31,013 - DEBUG - ==>Verifying data for policy with id: daaff3eb-1140-411c-93d2-05d4c88d47a4, fqn: ['default-domain', 'ctest-TestBasicPolicy-76572591', 'ctest-policy-allow-all-17381089'] 2024-08-21 17:21:31,013 - INFO - VN ctest-vn-70838901 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-21 17:21:31,013 - DEBUG - Verifying the vn in opserver 2024-08-21 17:21:31,014 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76572591:ctest-vn-70838901 virtual network link through opserver 10.0.0.24 2024-08-21 17:21:31,014 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2024-08-21 17:21:31,026 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76572591:ctest-vn-70838901', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76572591:ctest-vn-70838901?flat'} 2024-08-21 17:21:31,026 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76572591:ctest-vn-70838901 is found in opserver 2024-08-21 17:21:31,038 - DEBUG - Do not have enough data to verify VN in agent 2024-08-21 17:21:31,044 - DEBUG - VRF ids for VN ctest-vn-70838901: {} 2024-08-21 17:21:31,111 - DEBUG - Services list from nova: [, , ] 2024-08-21 17:21:32,326 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1695-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1695-1) 2024-08-21 17:21:33,787 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1695-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1695-1) 2024-08-21 17:21:33,787 - INFO - Waiting for VM ctest-TestBasicPolicy-76572591-12167906 to be up.. 2024-08-21 17:21:33,897 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-21 17:21:38,992 - DEBUG - VM is in ACTIVE state now 2024-08-21 17:21:38,992 - INFO - VM name : ctest-TestBasicPolicy-76572591-12167906 2024-08-21 17:21:39,184 - DEBUG - VM ctest-TestBasicPolicy-76572591-12167906 ID is 7a38fa8f-dc32-4c0e-bdce-316c0501ec86 2024-08-21 17:21:39,229 - DEBUG - VM ctest-TestBasicPolicy-76572591-12167906 launched on Node cn-jenkins-deploy-platform-ansible-os-1695-1 2024-08-21 17:21:39,417 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/7a38fa8f-dc32-4c0e-bdce-316c0501ec86 2024-08-21 17:21:39,433 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/d4f752e7-e7b7-41b1-a46b-202129cb3539 2024-08-21 17:21:42,754 - 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 1007ms') 2024-08-21 17:21:42,755 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-76572591-12167906 failed! 2024-08-21 17:21:42,810 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-76572591:ctest-vn-04829499 is 115.183.192.1 and allocation pool is NOT set 2024-08-21 17:21:44,880 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=4.90 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.43 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 2.425/3.664/4.904/1.239 ms') 2024-08-21 17:21:44,880 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-76572591-12167906 passed 2024-08-21 17:21:45,030 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 17:21:45,030 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-76572591-12167906, IP 115.183.192.3, Port 22 2024-08-21 17:21:45,086 - 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-08-21 17:21:45,177 - DEBUG - VM ctest-TestBasicPolicy-76572591-12167906 is NOT ready for SSH connections, VM status: ACTIVE 2024-08-21 17:21:50,177 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 17:21:50,178 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-76572591-12167906, IP 115.183.192.3, Port 22 2024-08-21 17:21:50,333 - DEBUG - VM ctest-TestBasicPolicy-76572591-12167906 is ready for SSH connections 2024-08-21 17:21:50,333 - INFO - Waiting for VM ctest-TestBasicPolicy-76572591-60342227 to be up.. 2024-08-21 17:21:50,425 - DEBUG - VM is in ACTIVE state now 2024-08-21 17:21:50,425 - INFO - VM name : ctest-TestBasicPolicy-76572591-60342227 2024-08-21 17:21:50,520 - DEBUG - VM ctest-TestBasicPolicy-76572591-60342227 ID is 9bb233a5-0e97-4ee1-b7fd-a0506ee00bf7 2024-08-21 17:21:50,520 - DEBUG - VM ctest-TestBasicPolicy-76572591-60342227 launched on Node cn-jenkins-deploy-platform-ansible-os-1695-1 2024-08-21 17:21:50,612 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/9bb233a5-0e97-4ee1-b7fd-a0506ee00bf7 2024-08-21 17:21:50,624 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/a998c552-a69d-4098-9a28-b446c61ba03b 2024-08-21 17:21:51,879 - 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.53 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.387 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.387/1.960/3.534/1.573 ms') 2024-08-21 17:21:51,879 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-76572591-60342227 passed 2024-08-21 17:21:52,030 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 17:21:52,030 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-76572591-60342227, IP 200.23.173.67, Port 22 2024-08-21 17:21:52,190 - DEBUG - VM ctest-TestBasicPolicy-76572591-60342227 is ready for SSH connections 2024-08-21 17:21:52,190 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 17:21:52,190 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 200.23.173.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2024-08-21 17:21:52,190 - DEBUG - ping -s 56 -c 3 -W 1 200.23.173.67 2024-08-21 17:21:56,342 - DEBUG - PING 200.23.173.67 (200.23.173.67): 56 data bytes 64 bytes from 200.23.173.67: seq=0 ttl=63 time=3.955 ms 64 bytes from 200.23.173.67: seq=1 ttl=63 time=0.898 ms 64 bytes from 200.23.173.67: seq=2 ttl=63 time=0.906 ms --- 200.23.173.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.898/1.919/3.955 ms 2024-08-21 17:21:56,342 - INFO - Ping to IP 200.23.173.67 from VM ctest-TestBasicPolicy-76572591-12167906 passed 2024-08-21 17:21:56,530 - DEBUG - Policy Update Response {"network-policy": {"uuid": "daaff3eb-1140-411c-93d2-05d4c88d47a4", "href": "http://10.0.0.24:8082/network-policy/daaff3eb-1140-411c-93d2-05d4c88d47a4"}} 2024-08-21 17:21:56,530 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 17:21:56,530 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 200.23.173.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2024-08-21 17:21:56,530 - DEBUG - ping -s 56 -c 3 -W 1 200.23.173.67 2024-08-21 17:21:59,799 - DEBUG - PING 200.23.173.67 (200.23.173.67): 56 data bytes 64 bytes from 200.23.173.67: seq=0 ttl=63 time=1.679 ms --- 200.23.173.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.679/1.679/1.679 ms 2024-08-21 17:21:59,800 - WARNING - Ping to IP 200.23.173.67 from VM ctest-TestBasicPolicy-76572591-12167906 failed 2024-08-21 17:21:59,800 - INFO - Deleting VM ctest-TestBasicPolicy-76572591-60342227 2024-08-21 17:21:59,883 - INFO - Deleting VM ctest-TestBasicPolicy-76572591-12167906 2024-08-21 17:22:00,399 - INFO - Deleted policy ctest-policy-allow-all-17381089 2024-08-21 17:22:00,399 - INFO - Deleting VN ctest-vn-70838901 2024-08-21 17:22:00,458 - DEBUG - VN eec39c82-6fe2-474b-af4b-87340bd2ae79 still in use: Unable to complete operation on network eec39c82-6fe2-474b-af4b-87340bd2ae79. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-32644111-33e8-4d45-8dc0-0b43e3e78347'] 2024-08-21 17:22:00,458 - WARNING - Deleting VN ctest-vn-70838901 failed..Will retry 2024-08-21 17:22:02,588 - DEBUG - Response for deleting network () 2024-08-21 17:22:02,588 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/eb80dd30-0cbe-401a-ac22-3adee14eeda9 2024-08-21 17:22:02,596 - DEBUG - Response Code: 404 2024-08-21 17:22:02,596 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-08-21 17:22:02,605 - DEBUG - Requesting: http://10.0.0.24:8082/domain/1d1bece9-afdb-49cb-bd3f-901ab706cef9 2024-08-21 17:22:02,669 - DEBUG - Requesting: http://10.0.0.24:8082/project/29e039b4-33d3-4949-b559-7e0a6e09bfba 2024-08-21 17:22:02,744 - INFO - Validated that VN ctest-vn-70838901 is not found in API Server 2024-08-21 17:22:02,759 - DEBUG - VN ctest-vn-70838901 is not present in Agent 10.0.0.24 2024-08-21 17:22:02,760 - INFO - Validated that VN ctest-vn-70838901 is not in any agent 2024-08-21 17:22:02,778 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-70838901 info 2024-08-21 17:22:02,779 - INFO - Deleting VN ctest-vn-04829499 2024-08-21 17:22:02,904 - DEBUG - Response for deleting network () 2024-08-21 17:22:02,904 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/1291e2c0-09cd-46b7-87eb-acd4087f9066 2024-08-21 17:22:02,915 - DEBUG - Response Code: 404 2024-08-21 17:22:02,915 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-08-21 17:22:02,921 - DEBUG - Requesting: http://10.0.0.24:8082/domain/1d1bece9-afdb-49cb-bd3f-901ab706cef9 2024-08-21 17:22:02,976 - DEBUG - Requesting: http://10.0.0.24:8082/project/29e039b4-33d3-4949-b559-7e0a6e09bfba 2024-08-21 17:22:03,053 - INFO - Validated that VN ctest-vn-04829499 is not found in API Server 2024-08-21 17:22:03,066 - DEBUG - VN ctest-vn-04829499 is not present in Agent 10.0.0.24 2024-08-21 17:22:03,066 - INFO - Validated that VN ctest-vn-04829499 is not in any agent 2024-08-21 17:22:03,084 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-04829499 info 2024-08-21 17:22:03,347 - DEBUG - No XMPP flaps were noticed during the test 2024-08-21 17:22:03,347 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37] 2024-08-21 17:22:03,347 - INFO - -------------------------------------------------------------------------------- 2024-08-21 17:22:04,107 - INFO - Deleted project: ctest-TestBasicPolicy-76572591, ID : 29e039b4-33d3-4949-b559-7e0a6e09bfba