2024-09-09 23:03:40,680 - INFO - Domain Default found not creating 2024-09-09 23:03:40,846 - INFO - Project ctest-TestBasicPolicy-58494005 not found, creating it 2024-09-09 23:03:41,314 - INFO - Created Project:ctest-TestBasicPolicy-58494005, ID : 2bcea5ee-f1bc-4318-bb7d-4f69a939a038 2024-09-09 23:03:42,814 - INFO - ================================================================================ 2024-09-09 23:03:42,814 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-09 23:03:42,814 - 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-09-09 23:03:43,067 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.19': '0'}} with 2024-09-09 23:03:43,067 - INFO - Initial checks done. Running the testcase now 2024-09-09 23:03:43,067 - INFO - 2024-09-09 23:03:43,630 - DEBUG - Response for create_network : {'network': {'id': '9bb89aa5-fc9c-4f76-a42a-3ae7052153b2', 'name': 'ctest-vn-77302713', 'tenant_id': '2bcea5eef1bc4318bb7d4f69a939a038', 'project_id': '2bcea5eef1bc4318bb7d4f69a939a038', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58494005', 'ctest-vn-77302713'], 'port_security_enabled': True, 'description': ''}} 2024-09-09 23:03:43,832 - DEBUG - Response for create_subnet : {'subnet': {'id': '7ed486ca-48b7-48f7-b0e4-75a68d5ed8f6', 'name': '', 'tenant_id': '2bcea5eef1bc4318bb7d4f69a939a038', 'network_id': '9bb89aa5-fc9c-4f76-a42a-3ae7052153b2', 'ip_version': 4, 'cidr': '170.225.102.192/26', 'allocation_pools': [{'start': '170.225.102.194', 'end': '170.225.102.254'}], 'gateway_ip': '170.225.102.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.225.102.194', 'tags': [], 'project_id': '2bcea5eef1bc4318bb7d4f69a939a038'}} 2024-09-09 23:03:43,853 - INFO - Created VN ctest-vn-77302713 2024-09-09 23:03:43,904 - DEBUG - VN ctest-vn-77302713 UUID is 9bb89aa5-fc9c-4f76-a42a-3ae7052153b2 2024-09-09 23:03:44,186 - DEBUG - Response for create_network : {'network': {'id': '97dc79e3-e7be-457e-ba1b-59e533e54a8a', 'name': 'ctest-vn-43720946', 'tenant_id': '2bcea5eef1bc4318bb7d4f69a939a038', 'project_id': '2bcea5eef1bc4318bb7d4f69a939a038', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58494005', 'ctest-vn-43720946'], 'port_security_enabled': True, 'description': ''}} 2024-09-09 23:03:44,360 - DEBUG - Response for create_subnet : {'subnet': {'id': '213d24a4-f591-4cf9-819c-52ebd8070632', 'name': '', 'tenant_id': '2bcea5eef1bc4318bb7d4f69a939a038', 'network_id': '97dc79e3-e7be-457e-ba1b-59e533e54a8a', 'ip_version': 4, 'cidr': '107.24.43.192/26', 'allocation_pools': [{'start': '107.24.43.194', 'end': '107.24.43.254'}], 'gateway_ip': '107.24.43.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '107.24.43.194', 'tags': [], 'project_id': '2bcea5eef1bc4318bb7d4f69a939a038'}} 2024-09-09 23:03:44,380 - INFO - Created VN ctest-vn-43720946 2024-09-09 23:03:44,432 - DEBUG - VN ctest-vn-43720946 UUID is 97dc79e3-e7be-457e-ba1b-59e533e54a8a 2024-09-09 23:03:44,544 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-58494005:ctest-vn-77302713, 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-58494005:ctest-vn-43720946, 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-09-09 23:03:44,835 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9bb89aa5-fc9c-4f76-a42a-3ae7052153b2', 'name': 'ctest-vn-77302713', 'tenant_id': '2bcea5eef1bc4318bb7d4f69a939a038', 'project_id': '2bcea5eef1bc4318bb7d4f69a939a038', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7ed486ca-48b7-48f7-b0e4-75a68d5ed8f6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58494005', 'ctest-vn-77302713'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58494005', 'ctest-policy-allow-all-72331385']], 'subnet_ipam': [{'subnet_cidr': '170.225.102.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-09 23:03:45,117 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '97dc79e3-e7be-457e-ba1b-59e533e54a8a', 'name': 'ctest-vn-43720946', 'tenant_id': '2bcea5eef1bc4318bb7d4f69a939a038', 'project_id': '2bcea5eef1bc4318bb7d4f69a939a038', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['213d24a4-f591-4cf9-819c-52ebd8070632'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58494005', 'ctest-vn-43720946'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58494005', 'ctest-policy-allow-all-72331385']], 'subnet_ipam': [{'subnet_cidr': '107.24.43.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-09 23:03:45,265 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-09-09 23:03:45,567 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-09-09 23:03:45,605 - DEBUG - Requesting: http://10.0.0.42:8082/domain/0f5e3fe1-c741-4bf1-944b-770f685d7956 2024-09-09 23:03:45,620 - DEBUG - Requesting: http://10.0.0.42:8082/project/2bcea5ee-f1bc-4318-bb7d-4f69a939a038 2024-09-09 23:03:45,693 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/9bb89aa5-fc9c-4f76-a42a-3ae7052153b2 2024-09-09 23:03:45,705 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/9bb89aa5-fc9c-4f76-a42a-3ae7052153b2 2024-09-09 23:03:45,716 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b559d126-40c3-4908-8e3e-df10fccdc2b4 2024-09-09 23:03:45,724 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b559d126-40c3-4908-8e3e-df10fccdc2b4 2024-09-09 23:03:45,732 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/3d9683ab-c78a-43a3-bf98-509f96220225 2024-09-09 23:03:45,740 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-09 23:03:45,740 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/9bb89aa5-fc9c-4f76-a42a-3ae7052153b2 2024-09-09 23:03:45,750 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b559d126-40c3-4908-8e3e-df10fccdc2b4 2024-09-09 23:03:45,765 - INFO - Verified VN network id 7 for VN 9bb89aa5-fc9c-4f76-a42a-3ae7052153b2 2024-09-09 23:03:45,765 - INFO - Verifications in API Server for VN ctest-vn-77302713 passed 2024-09-09 23:03:45,765 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/9bb89aa5-fc9c-4f76-a42a-3ae7052153b2 2024-09-09 23:03:45,778 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b559d126-40c3-4908-8e3e-df10fccdc2b4 2024-09-09 23:03:45,786 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b559d126-40c3-4908-8e3e-df10fccdc2b4 2024-09-09 23:03:45,793 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/3d9683ab-c78a-43a3-bf98-509f96220225 2024-09-09 23:03:45,810 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58494005:ctest-vn-77302713', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58494005', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11220888509291974518', 'uuid-lslong': '11829332135139955634'}, 'enable': 'true', 'created': '2024-09-09T23:03:43', 'last-modified': '2024-09-09T23:03:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.997670'} 2024-09-09 23:03:45,819 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-09 23:03:45,819 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77302713 passed 2024-09-09 23:03:45,820 - DEBUG - ====Verifying policy data for ctest-vn-77302713 in API_Server ====== 2024-09-09 23:03:45,820 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-09-09 23:03:45,827 - DEBUG - Requesting: http://10.0.0.42:8082/domain/0f5e3fe1-c741-4bf1-944b-770f685d7956 2024-09-09 23:03:45,839 - DEBUG - Requesting: http://10.0.0.42:8082/project/2bcea5ee-f1bc-4318-bb7d-4f69a939a038 2024-09-09 23:03:45,909 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/9bb89aa5-fc9c-4f76-a42a-3ae7052153b2 2024-09-09 23:03:45,917 - DEBUG - ==>Verifying data for policy with id: 2a8bfc20-94c6-41c4-b728-6eca745d3c0a, fqn: ['default-domain', 'ctest-TestBasicPolicy-58494005', 'ctest-policy-allow-all-72331385'] 2024-09-09 23:03:45,917 - INFO - VN ctest-vn-77302713 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-09 23:03:45,917 - DEBUG - Verifying the vn in opserver 2024-09-09 23:03:45,917 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58494005:ctest-vn-77302713 virtual network link through opserver 10.0.0.42 2024-09-09 23:03:45,917 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-09-09 23:03:46,211 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-09-09 23:03:46,271 - DEBUG - Response Code: 500 2024-09-09 23:03:49,272 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58494005:ctest-vn-77302713 virtual network link through opserver 10.0.0.42 2024-09-09 23:03:49,272 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-09-09 23:03:49,285 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58494005:ctest-vn-77302713', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58494005:ctest-vn-77302713?flat'} 2024-09-09 23:03:49,285 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58494005:ctest-vn-77302713 is found in opserver 2024-09-09 23:03:49,300 - DEBUG - Do not have enough data to verify VN in agent 2024-09-09 23:03:49,306 - DEBUG - VRF ids for VN ctest-vn-77302713: {} 2024-09-09 23:03:49,307 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-09-09 23:03:49,312 - DEBUG - Requesting: http://10.0.0.42:8082/domain/0f5e3fe1-c741-4bf1-944b-770f685d7956 2024-09-09 23:03:49,325 - DEBUG - Requesting: http://10.0.0.42:8082/project/2bcea5ee-f1bc-4318-bb7d-4f69a939a038 2024-09-09 23:03:49,391 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/97dc79e3-e7be-457e-ba1b-59e533e54a8a 2024-09-09 23:03:49,402 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/97dc79e3-e7be-457e-ba1b-59e533e54a8a 2024-09-09 23:03:49,410 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/c5b0ca6f-857d-423f-afd9-362e31ce10c5 2024-09-09 23:03:49,418 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/c5b0ca6f-857d-423f-afd9-362e31ce10c5 2024-09-09 23:03:49,426 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/6e7923aa-db22-457d-a62d-7c9345ad7d99 2024-09-09 23:03:49,433 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-09 23:03:49,434 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/97dc79e3-e7be-457e-ba1b-59e533e54a8a 2024-09-09 23:03:49,442 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/c5b0ca6f-857d-423f-afd9-362e31ce10c5 2024-09-09 23:03:49,453 - INFO - Verified VN network id 8 for VN 97dc79e3-e7be-457e-ba1b-59e533e54a8a 2024-09-09 23:03:49,453 - INFO - Verifications in API Server for VN ctest-vn-43720946 passed 2024-09-09 23:03:49,454 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/97dc79e3-e7be-457e-ba1b-59e533e54a8a 2024-09-09 23:03:49,461 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/c5b0ca6f-857d-423f-afd9-362e31ce10c5 2024-09-09 23:03:49,468 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/c5b0ca6f-857d-423f-afd9-362e31ce10c5 2024-09-09 23:03:49,474 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/6e7923aa-db22-457d-a62d-7c9345ad7d99 2024-09-09 23:03:49,486 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58494005:ctest-vn-43720946', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58494005', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10942755214356006270', 'uuid-lslong': '13410411156378831498'}, 'enable': 'true', 'created': '2024-09-09T23:03:44', 'last-modified': '2024-09-09T23:03:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:04.437014'} 2024-09-09 23:03:49,492 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-09 23:03:49,492 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43720946 passed 2024-09-09 23:03:49,492 - DEBUG - ====Verifying policy data for ctest-vn-43720946 in API_Server ====== 2024-09-09 23:03:49,492 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-09-09 23:03:49,498 - DEBUG - Requesting: http://10.0.0.42:8082/domain/0f5e3fe1-c741-4bf1-944b-770f685d7956 2024-09-09 23:03:49,509 - DEBUG - Requesting: http://10.0.0.42:8082/project/2bcea5ee-f1bc-4318-bb7d-4f69a939a038 2024-09-09 23:03:49,576 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/97dc79e3-e7be-457e-ba1b-59e533e54a8a 2024-09-09 23:03:49,584 - DEBUG - ==>Verifying data for policy with id: 2a8bfc20-94c6-41c4-b728-6eca745d3c0a, fqn: ['default-domain', 'ctest-TestBasicPolicy-58494005', 'ctest-policy-allow-all-72331385'] 2024-09-09 23:03:49,584 - INFO - VN ctest-vn-43720946 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-09 23:03:49,584 - DEBUG - Verifying the vn in opserver 2024-09-09 23:03:49,584 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58494005:ctest-vn-43720946 virtual network link through opserver 10.0.0.42 2024-09-09 23:03:49,584 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-09-09 23:03:49,596 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58494005:ctest-vn-43720946', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58494005:ctest-vn-43720946?flat'} 2024-09-09 23:03:49,597 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58494005:ctest-vn-43720946 is found in opserver 2024-09-09 23:03:49,608 - DEBUG - Do not have enough data to verify VN in agent 2024-09-09 23:03:49,613 - DEBUG - VRF ids for VN ctest-vn-43720946: {} 2024-09-09 23:03:49,667 - DEBUG - Services list from nova: [, , ] 2024-09-09 23:03:50,671 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1879-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1879-1) 2024-09-09 23:03:51,988 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1879-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1879-1) 2024-09-09 23:03:51,989 - INFO - Waiting for VM ctest-TestBasicPolicy-58494005-27736354 to be up.. 2024-09-09 23:03:52,072 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-09 23:03:57,146 - DEBUG - VM is in ACTIVE state now 2024-09-09 23:03:57,146 - INFO - VM name : ctest-TestBasicPolicy-58494005-27736354 2024-09-09 23:03:57,237 - DEBUG - VM ctest-TestBasicPolicy-58494005-27736354 ID is 1a206ef0-ea2c-4a35-bbab-078cdc4b8381 2024-09-09 23:03:57,255 - DEBUG - VM ctest-TestBasicPolicy-58494005-27736354 launched on Node cn-jenkins-deploy-platform-ansible-os-1879-1 2024-09-09 23:03:57,328 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/1a206ef0-ea2c-4a35-bbab-078cdc4b8381 2024-09-09 23:03:57,337 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/772ac922-91cc-4620-b8e4-9f962ca9834d 2024-09-09 23:04:00,592 - 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 1023ms') 2024-09-09 23:04:00,592 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58494005-27736354 failed! 2024-09-09 23:04:00,648 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-58494005:ctest-vn-77302713 is 170.225.102.193 and allocation pool is NOT set 2024-09-09 23:04:02,707 - 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.28 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.984 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 = 0.984/2.632/4.281/1.648 ms') 2024-09-09 23:04:02,707 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58494005-27736354 passed 2024-09-09 23:04:02,856 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-09 23:04:02,857 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-58494005-27736354, IP 170.225.102.195, Port 22 2024-09-09 23:04:03,012 - DEBUG - VM ctest-TestBasicPolicy-58494005-27736354 is ready for SSH connections 2024-09-09 23:04:03,012 - INFO - Waiting for VM ctest-TestBasicPolicy-58494005-58358548 to be up.. 2024-09-09 23:04:03,098 - DEBUG - VM is in ACTIVE state now 2024-09-09 23:04:03,098 - INFO - VM name : ctest-TestBasicPolicy-58494005-58358548 2024-09-09 23:04:03,182 - DEBUG - VM ctest-TestBasicPolicy-58494005-58358548 ID is a5328910-37e1-416d-bec6-21d4c679c2f6 2024-09-09 23:04:03,182 - DEBUG - VM ctest-TestBasicPolicy-58494005-58358548 launched on Node cn-jenkins-deploy-platform-ansible-os-1879-1 2024-09-09 23:04:03,268 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/a5328910-37e1-416d-bec6-21d4c679c2f6 2024-09-09 23:04:03,278 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/ef2016ae-ff73-40d9-b93f-e211bcf2da7b 2024-09-09 23:04:04,523 - 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=2.98 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.407 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.407/1.692/2.977/1.285 ms') 2024-09-09 23:04:04,523 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-58494005-58358548 passed 2024-09-09 23:04:04,673 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-09 23:04:04,673 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-58494005-58358548, IP 107.24.43.195, Port 22 2024-09-09 23:04:04,824 - DEBUG - VM ctest-TestBasicPolicy-58494005-58358548 is ready for SSH connections 2024-09-09 23:04:04,824 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-09 23:04:04,824 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 107.24.43.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2024-09-09 23:04:04,824 - DEBUG - ping -s 56 -c 3 -W 1 107.24.43.195 2024-09-09 23:04:08,794 - DEBUG - PING 107.24.43.195 (107.24.43.195): 56 data bytes 64 bytes from 107.24.43.195: seq=0 ttl=63 time=3.325 ms 64 bytes from 107.24.43.195: seq=1 ttl=63 time=0.864 ms 64 bytes from 107.24.43.195: seq=2 ttl=63 time=0.835 ms --- 107.24.43.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.835/1.674/3.325 ms 2024-09-09 23:04:08,794 - INFO - Ping to IP 107.24.43.195 from VM ctest-TestBasicPolicy-58494005-27736354 passed 2024-09-09 23:04:08,972 - DEBUG - Policy Update Response {"network-policy": {"uuid": "2a8bfc20-94c6-41c4-b728-6eca745d3c0a", "href": "http://10.0.0.42:8082/network-policy/2a8bfc20-94c6-41c4-b728-6eca745d3c0a"}} 2024-09-09 23:04:08,972 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-09 23:04:08,973 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 107.24.43.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2024-09-09 23:04:08,973 - DEBUG - ping -s 56 -c 3 -W 1 107.24.43.195 2024-09-09 23:04:12,177 - DEBUG - PING 107.24.43.195 (107.24.43.195): 56 data bytes --- 107.24.43.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-09 23:04:12,178 - WARNING - Ping to IP 107.24.43.195 from VM ctest-TestBasicPolicy-58494005-27736354 failed 2024-09-09 23:04:12,178 - INFO - Deleting VM ctest-TestBasicPolicy-58494005-58358548 2024-09-09 23:04:12,241 - INFO - Deleting VM ctest-TestBasicPolicy-58494005-27736354 2024-09-09 23:04:12,642 - INFO - Deleted policy ctest-policy-allow-all-72331385 2024-09-09 23:04:12,642 - INFO - Deleting VN ctest-vn-43720946 2024-09-09 23:04:12,693 - DEBUG - VN 97dc79e3-e7be-457e-ba1b-59e533e54a8a still in use: Unable to complete operation on network 97dc79e3-e7be-457e-ba1b-59e533e54a8a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-8952ff90-3c47-43ce-bab0-cdef9df93eba'] 2024-09-09 23:04:12,693 - WARNING - Deleting VN ctest-vn-43720946 failed..Will retry 2024-09-09 23:04:14,810 - DEBUG - Response for deleting network () 2024-09-09 23:04:14,810 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/c5b0ca6f-857d-423f-afd9-362e31ce10c5 2024-09-09 23:04:14,819 - DEBUG - Response Code: 404 2024-09-09 23:04:14,819 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-09-09 23:04:14,825 - DEBUG - Requesting: http://10.0.0.42:8082/domain/0f5e3fe1-c741-4bf1-944b-770f685d7956 2024-09-09 23:04:14,879 - DEBUG - Requesting: http://10.0.0.42:8082/project/2bcea5ee-f1bc-4318-bb7d-4f69a939a038 2024-09-09 23:04:14,950 - INFO - Validated that VN ctest-vn-43720946 is not found in API Server 2024-09-09 23:04:14,961 - DEBUG - VN ctest-vn-43720946 is not present in Agent 10.0.0.42 2024-09-09 23:04:14,961 - INFO - Validated that VN ctest-vn-43720946 is not in any agent 2024-09-09 23:04:14,977 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-43720946 info 2024-09-09 23:04:14,978 - INFO - Deleting VN ctest-vn-77302713 2024-09-09 23:04:15,086 - DEBUG - Response for deleting network () 2024-09-09 23:04:15,086 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b559d126-40c3-4908-8e3e-df10fccdc2b4 2024-09-09 23:04:15,091 - DEBUG - Response Code: 404 2024-09-09 23:04:15,091 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-09-09 23:04:15,098 - DEBUG - Requesting: http://10.0.0.42:8082/domain/0f5e3fe1-c741-4bf1-944b-770f685d7956 2024-09-09 23:04:15,153 - DEBUG - Requesting: http://10.0.0.42:8082/project/2bcea5ee-f1bc-4318-bb7d-4f69a939a038 2024-09-09 23:04:15,242 - INFO - Validated that VN ctest-vn-77302713 is not found in API Server 2024-09-09 23:04:15,253 - DEBUG - VN ctest-vn-77302713 is not present in Agent 10.0.0.42 2024-09-09 23:04:15,253 - INFO - Validated that VN ctest-vn-77302713 is not in any agent 2024-09-09 23:04:15,267 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-77302713 info 2024-09-09 23:04:15,522 - DEBUG - No XMPP flaps were noticed during the test
2024-09-09 23:04:15,522 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:33]
2024-09-09 23:04:15,522 - INFO - -------------------------------------------------------------------------------- 2024-09-09 23:04:16,199 - INFO - Deleted project: ctest-TestBasicPolicy-58494005, ID : 2bcea5ee-f1bc-4318-bb7d-4f69a939a038