2024-10-26 12:32:30,485 - INFO - Domain Default found not creating 2024-10-26 12:32:30,719 - INFO - Project ctest-TestBasicPolicy-15832542 not found, creating it 2024-10-26 12:32:31,268 - INFO - Created Project:ctest-TestBasicPolicy-15832542, ID : d2436d82-aeef-418a-b863-4418e2d807b3 2024-10-26 12:32:32,953 - INFO - ================================================================================ 2024-10-26 12:32:32,954 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-26 12:32:32,954 - 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-26 12:32:33,230 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.5': '0'}} with 2024-10-26 12:32:33,230 - INFO - Initial checks done. Running the testcase now 2024-10-26 12:32:33,230 - INFO - 2024-10-26 12:32:33,883 - DEBUG - Response for create_network : {'network': {'id': 'dff83421-646f-4e1b-96f9-7f7fc0bc5473', 'name': 'ctest-vn-94781269', 'tenant_id': 'd2436d82aeef418ab8634418e2d807b3', 'project_id': 'd2436d82aeef418ab8634418e2d807b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15832542', 'ctest-vn-94781269'], 'port_security_enabled': True, 'description': ''}} 2024-10-26 12:32:34,107 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e52a61ac-cf83-491e-9814-ec0f8c5342b7', 'name': '', 'tenant_id': 'd2436d82aeef418ab8634418e2d807b3', 'network_id': 'dff83421-646f-4e1b-96f9-7f7fc0bc5473', 'ip_version': 4, 'cidr': '162.151.35.0/26', 'allocation_pools': [{'start': '162.151.35.2', 'end': '162.151.35.62'}], 'gateway_ip': '162.151.35.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '162.151.35.2', 'tags': [], 'project_id': 'd2436d82aeef418ab8634418e2d807b3'}} 2024-10-26 12:32:34,131 - INFO - Created VN ctest-vn-94781269 2024-10-26 12:32:34,191 - DEBUG - VN ctest-vn-94781269 UUID is dff83421-646f-4e1b-96f9-7f7fc0bc5473 2024-10-26 12:32:34,586 - DEBUG - Response for create_network : {'network': {'id': '5b1f4bca-818f-4e6c-8641-97f430f8b0af', 'name': 'ctest-vn-79846073', 'tenant_id': 'd2436d82aeef418ab8634418e2d807b3', 'project_id': 'd2436d82aeef418ab8634418e2d807b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15832542', 'ctest-vn-79846073'], 'port_security_enabled': True, 'description': ''}} 2024-10-26 12:32:34,791 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ef6da1c1-4560-4e12-9a1d-1efb9ca7857f', 'name': '', 'tenant_id': 'd2436d82aeef418ab8634418e2d807b3', 'network_id': '5b1f4bca-818f-4e6c-8641-97f430f8b0af', 'ip_version': 4, 'cidr': '138.126.15.0/26', 'allocation_pools': [{'start': '138.126.15.2', 'end': '138.126.15.62'}], 'gateway_ip': '138.126.15.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '138.126.15.2', 'tags': [], 'project_id': 'd2436d82aeef418ab8634418e2d807b3'}} 2024-10-26 12:32:34,816 - INFO - Created VN ctest-vn-79846073 2024-10-26 12:32:34,875 - DEBUG - VN ctest-vn-79846073 UUID is 5b1f4bca-818f-4e6c-8641-97f430f8b0af 2024-10-26 12:32:35,012 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15832542:ctest-vn-94781269, 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-15832542:ctest-vn-79846073, 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-26 12:32:35,423 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dff83421-646f-4e1b-96f9-7f7fc0bc5473', 'name': 'ctest-vn-94781269', 'tenant_id': 'd2436d82aeef418ab8634418e2d807b3', 'project_id': 'd2436d82aeef418ab8634418e2d807b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e52a61ac-cf83-491e-9814-ec0f8c5342b7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15832542', 'ctest-vn-94781269'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15832542', 'ctest-policy-allow-all-05306168']], 'subnet_ipam': [{'subnet_cidr': '162.151.35.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-26 12:32:35,709 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5b1f4bca-818f-4e6c-8641-97f430f8b0af', 'name': 'ctest-vn-79846073', 'tenant_id': 'd2436d82aeef418ab8634418e2d807b3', 'project_id': 'd2436d82aeef418ab8634418e2d807b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ef6da1c1-4560-4e12-9a1d-1efb9ca7857f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15832542', 'ctest-vn-79846073'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15832542', 'ctest-policy-allow-all-05306168']], 'subnet_ipam': [{'subnet_cidr': '138.126.15.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-26 12:32:35,899 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-10-26 12:32:36,233 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-10-26 12:32:36,270 - DEBUG - Requesting: http://10.0.0.33:8082/domain/ec8bd329-455a-4864-b30f-6de8345d45e1 2024-10-26 12:32:36,287 - DEBUG - Requesting: http://10.0.0.33:8082/project/d2436d82-aeef-418a-b863-4418e2d807b3 2024-10-26 12:32:36,378 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/dff83421-646f-4e1b-96f9-7f7fc0bc5473 2024-10-26 12:32:36,399 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/dff83421-646f-4e1b-96f9-7f7fc0bc5473 2024-10-26 12:32:36,417 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/935695cf-e749-4f4f-88c1-9d547a07c9d0 2024-10-26 12:32:36,428 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/935695cf-e749-4f4f-88c1-9d547a07c9d0 2024-10-26 12:32:36,439 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/84177537-29ae-43c3-9e07-13b97dafe8d6 2024-10-26 12:32:36,448 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-26 12:32:36,448 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/dff83421-646f-4e1b-96f9-7f7fc0bc5473 2024-10-26 12:32:36,467 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/935695cf-e749-4f4f-88c1-9d547a07c9d0 2024-10-26 12:32:36,493 - INFO - Verified VN network id 7 for VN dff83421-646f-4e1b-96f9-7f7fc0bc5473 2024-10-26 12:32:36,493 - INFO - Verifications in API Server for VN ctest-vn-94781269 passed 2024-10-26 12:32:36,493 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/dff83421-646f-4e1b-96f9-7f7fc0bc5473 2024-10-26 12:32:36,509 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/935695cf-e749-4f4f-88c1-9d547a07c9d0 2024-10-26 12:32:36,519 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/935695cf-e749-4f4f-88c1-9d547a07c9d0 2024-10-26 12:32:36,529 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/84177537-29ae-43c3-9e07-13b97dafe8d6 2024-10-26 12:32:36,544 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15832542:ctest-vn-94781269', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15832542', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16138706582705753627', 'uuid-lslong': '10878866561561285747'}, 'enable': 'true', 'created': '2024-10-26T12:32:33', 'last-modified': '2024-10-26T12:32:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.181575'} 2024-10-26 12:32:36,552 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-26 12:32:36,552 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94781269 passed 2024-10-26 12:32:36,552 - DEBUG - ====Verifying policy data for ctest-vn-94781269 in API_Server ====== 2024-10-26 12:32:36,552 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-10-26 12:32:36,559 - DEBUG - Requesting: http://10.0.0.33:8082/domain/ec8bd329-455a-4864-b30f-6de8345d45e1 2024-10-26 12:32:36,575 - DEBUG - Requesting: http://10.0.0.33:8082/project/d2436d82-aeef-418a-b863-4418e2d807b3 2024-10-26 12:32:36,668 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/dff83421-646f-4e1b-96f9-7f7fc0bc5473 2024-10-26 12:32:36,685 - DEBUG - ==>Verifying data for policy with id: c5792b5d-ad78-4608-98a7-347ca99b7b30, fqn: ['default-domain', 'ctest-TestBasicPolicy-15832542', 'ctest-policy-allow-all-05306168'] 2024-10-26 12:32:36,685 - INFO - VN ctest-vn-94781269 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-26 12:32:36,685 - DEBUG - Verifying the vn in opserver 2024-10-26 12:32:36,685 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15832542:ctest-vn-94781269 virtual network link through opserver 10.0.0.33 2024-10-26 12:32:36,685 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2024-10-26 12:32:37,032 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2024-10-26 12:32:37,119 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15832542:ctest-vn-94781269', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15832542:ctest-vn-94781269?flat'} 2024-10-26 12:32:37,119 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15832542:ctest-vn-94781269 is found in opserver 2024-10-26 12:32:37,131 - DEBUG - Do not have enough data to verify VN in agent 2024-10-26 12:32:37,138 - DEBUG - VRF ids for VN ctest-vn-94781269: {} 2024-10-26 12:32:37,138 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-10-26 12:32:37,145 - DEBUG - Requesting: http://10.0.0.33:8082/domain/ec8bd329-455a-4864-b30f-6de8345d45e1 2024-10-26 12:32:37,161 - DEBUG - Requesting: http://10.0.0.33:8082/project/d2436d82-aeef-418a-b863-4418e2d807b3 2024-10-26 12:32:37,254 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5b1f4bca-818f-4e6c-8641-97f430f8b0af 2024-10-26 12:32:37,274 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5b1f4bca-818f-4e6c-8641-97f430f8b0af 2024-10-26 12:32:37,289 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b60e755a-c782-49d1-8350-7888e99185c6 2024-10-26 12:32:37,303 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b60e755a-c782-49d1-8350-7888e99185c6 2024-10-26 12:32:37,315 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ef49a171-1e14-4458-a76d-ffd39841abc7 2024-10-26 12:32:37,325 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-26 12:32:37,325 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5b1f4bca-818f-4e6c-8641-97f430f8b0af 2024-10-26 12:32:37,343 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b60e755a-c782-49d1-8350-7888e99185c6 2024-10-26 12:32:37,369 - INFO - Verified VN network id 8 for VN 5b1f4bca-818f-4e6c-8641-97f430f8b0af 2024-10-26 12:32:37,369 - INFO - Verifications in API Server for VN ctest-vn-79846073 passed 2024-10-26 12:32:37,370 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5b1f4bca-818f-4e6c-8641-97f430f8b0af 2024-10-26 12:32:37,387 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b60e755a-c782-49d1-8350-7888e99185c6 2024-10-26 12:32:37,399 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b60e755a-c782-49d1-8350-7888e99185c6 2024-10-26 12:32:37,411 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ef49a171-1e14-4458-a76d-ffd39841abc7 2024-10-26 12:32:37,429 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15832542:ctest-vn-79846073', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15832542', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6566050114858602092', 'uuid-lslong': '9674180549617954991'}, 'enable': 'true', 'created': '2024-10-26T12:32:34', 'last-modified': '2024-10-26T12:32:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.751022'} 2024-10-26 12:32:37,437 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-26 12:32:37,437 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79846073 passed 2024-10-26 12:32:37,438 - DEBUG - ====Verifying policy data for ctest-vn-79846073 in API_Server ====== 2024-10-26 12:32:37,438 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-10-26 12:32:37,446 - DEBUG - Requesting: http://10.0.0.33:8082/domain/ec8bd329-455a-4864-b30f-6de8345d45e1 2024-10-26 12:32:37,463 - DEBUG - Requesting: http://10.0.0.33:8082/project/d2436d82-aeef-418a-b863-4418e2d807b3 2024-10-26 12:32:37,573 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5b1f4bca-818f-4e6c-8641-97f430f8b0af 2024-10-26 12:32:37,592 - DEBUG - ==>Verifying data for policy with id: c5792b5d-ad78-4608-98a7-347ca99b7b30, fqn: ['default-domain', 'ctest-TestBasicPolicy-15832542', 'ctest-policy-allow-all-05306168'] 2024-10-26 12:32:37,592 - INFO - VN ctest-vn-79846073 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-26 12:32:37,592 - DEBUG - Verifying the vn in opserver 2024-10-26 12:32:37,592 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15832542:ctest-vn-79846073 virtual network link through opserver 10.0.0.33 2024-10-26 12:32:37,593 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2024-10-26 12:32:37,608 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15832542:ctest-vn-79846073', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15832542:ctest-vn-79846073?flat'} 2024-10-26 12:32:37,608 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15832542:ctest-vn-79846073 is found in opserver 2024-10-26 12:32:37,626 - DEBUG - Do not have enough data to verify VN in agent 2024-10-26 12:32:37,634 - DEBUG - VRF ids for VN ctest-vn-79846073: {} 2024-10-26 12:32:37,707 - DEBUG - Services list from nova: [, , ] 2024-10-26 12:32:39,102 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2150-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2150-1) 2024-10-26 12:32:40,645 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2150-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2150-1) 2024-10-26 12:32:40,645 - INFO - Waiting for VM ctest-TestBasicPolicy-15832542-88573622 to be up.. 2024-10-26 12:32:40,765 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-26 12:32:45,882 - DEBUG - VM is in ACTIVE state now 2024-10-26 12:32:45,883 - INFO - VM name : ctest-TestBasicPolicy-15832542-88573622 2024-10-26 12:32:46,032 - DEBUG - VM ctest-TestBasicPolicy-15832542-88573622 ID is 0a5f527d-3baf-41ef-9807-81a7af36be35 2024-10-26 12:32:46,063 - DEBUG - VM ctest-TestBasicPolicy-15832542-88573622 launched on Node cn-jenkins-deploy-platform-ansible-os-2150-1 2024-10-26 12:32:46,208 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/0a5f527d-3baf-41ef-9807-81a7af36be35 2024-10-26 12:32:46,231 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/c51e2e24-372f-4d12-918a-71cfb96a3f68 2024-10-26 12:32:49,561 - 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 1030ms') 2024-10-26 12:32:49,561 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-15832542-88573622 failed! 2024-10-26 12:32:49,631 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-15832542:ctest-vn-94781269 is 162.151.35.1 and allocation pool is NOT set 2024-10-26 12:32:51,702 - 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=13.7 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.72 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 = 1.718/7.714/13.710/5.996 ms') 2024-10-26 12:32:51,702 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-15832542-88573622 passed 2024-10-26 12:32:51,863 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 12:32:51,863 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-15832542-88573622, IP 162.151.35.3, Port 22 2024-10-26 12:32:51,929 - 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-26 12:32:52,034 - DEBUG - VM ctest-TestBasicPolicy-15832542-88573622 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-26 12:32:57,035 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 12:32:57,035 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-15832542-88573622, IP 162.151.35.3, Port 22 2024-10-26 12:32:57,217 - DEBUG - VM ctest-TestBasicPolicy-15832542-88573622 is ready for SSH connections 2024-10-26 12:32:57,217 - INFO - Waiting for VM ctest-TestBasicPolicy-15832542-25784998 to be up.. 2024-10-26 12:32:57,321 - DEBUG - VM is in ACTIVE state now 2024-10-26 12:32:57,321 - INFO - VM name : ctest-TestBasicPolicy-15832542-25784998 2024-10-26 12:32:57,431 - DEBUG - VM ctest-TestBasicPolicy-15832542-25784998 ID is 883498d4-f5cf-4370-9553-7b120e866f09 2024-10-26 12:32:57,431 - DEBUG - VM ctest-TestBasicPolicy-15832542-25784998 launched on Node cn-jenkins-deploy-platform-ansible-os-2150-1 2024-10-26 12:32:57,540 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/883498d4-f5cf-4370-9553-7b120e866f09 2024-10-26 12:32:57,555 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/8ebc9473-9fa4-4137-9d9f-942a2ece0589 2024-10-26 12:32:58,846 - 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.62 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.475 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.475/2.046/3.617/1.571 ms') 2024-10-26 12:32:58,847 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-15832542-25784998 passed 2024-10-26 12:32:59,019 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 12:32:59,020 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-15832542-25784998, IP 138.126.15.3, Port 22 2024-10-26 12:32:59,193 - DEBUG - VM ctest-TestBasicPolicy-15832542-25784998 is ready for SSH connections 2024-10-26 12:32:59,194 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 12:32:59,194 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 138.126.15.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2024-10-26 12:32:59,195 - DEBUG - ping -s 56 -c 3 -W 1 138.126.15.3 2024-10-26 12:33:03,437 - DEBUG - PING 138.126.15.3 (138.126.15.3): 56 data bytes 64 bytes from 138.126.15.3: seq=0 ttl=63 time=4.797 ms 64 bytes from 138.126.15.3: seq=1 ttl=63 time=1.111 ms 64 bytes from 138.126.15.3: seq=2 ttl=63 time=1.167 ms --- 138.126.15.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.111/2.358/4.797 ms 2024-10-26 12:33:03,437 - INFO - Ping to IP 138.126.15.3 from VM ctest-TestBasicPolicy-15832542-88573622 passed 2024-10-26 12:33:03,655 - DEBUG - Policy Update Response {"network-policy": {"uuid": "c5792b5d-ad78-4608-98a7-347ca99b7b30", "href": "http://10.0.0.33:8082/network-policy/c5792b5d-ad78-4608-98a7-347ca99b7b30"}} 2024-10-26 12:33:03,655 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 12:33:03,655 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 138.126.15.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2024-10-26 12:33:03,655 - DEBUG - ping -s 56 -c 3 -W 1 138.126.15.3 2024-10-26 12:33:06,897 - DEBUG - PING 138.126.15.3 (138.126.15.3): 56 data bytes --- 138.126.15.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-26 12:33:06,897 - WARNING - Ping to IP 138.126.15.3 from VM ctest-TestBasicPolicy-15832542-88573622 failed 2024-10-26 12:33:06,897 - INFO - Deleting VM ctest-TestBasicPolicy-15832542-25784998 2024-10-26 12:33:06,986 - INFO - Deleting VM ctest-TestBasicPolicy-15832542-88573622 2024-10-26 12:33:07,578 - INFO - Deleted policy ctest-policy-allow-all-05306168 2024-10-26 12:33:07,578 - INFO - Deleting VN ctest-vn-79846073 2024-10-26 12:33:07,637 - DEBUG - VN 5b1f4bca-818f-4e6c-8641-97f430f8b0af still in use: Unable to complete operation on network 5b1f4bca-818f-4e6c-8641-97f430f8b0af. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-bfdbd614-55be-4d47-8217-c44a6ff9e670'] 2024-10-26 12:33:07,637 - WARNING - Deleting VN ctest-vn-79846073 failed..Will retry 2024-10-26 12:33:10,162 - DEBUG - Response for deleting network () 2024-10-26 12:33:10,163 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b60e755a-c782-49d1-8350-7888e99185c6 2024-10-26 12:33:10,176 - DEBUG - Response Code: 404 2024-10-26 12:33:10,176 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-10-26 12:33:10,184 - DEBUG - Requesting: http://10.0.0.33:8082/domain/ec8bd329-455a-4864-b30f-6de8345d45e1 2024-10-26 12:33:10,244 - DEBUG - Requesting: http://10.0.0.33:8082/project/d2436d82-aeef-418a-b863-4418e2d807b3 2024-10-26 12:33:10,336 - INFO - Validated that VN ctest-vn-79846073 is not found in API Server 2024-10-26 12:33:10,351 - DEBUG - VN ctest-vn-79846073 is not present in Agent 10.0.0.33 2024-10-26 12:33:10,351 - INFO - Validated that VN ctest-vn-79846073 is not in any agent 2024-10-26 12:33:10,371 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-79846073 info 2024-10-26 12:33:10,371 - INFO - Deleting VN ctest-vn-94781269 2024-10-26 12:33:10,523 - DEBUG - Response for deleting network () 2024-10-26 12:33:10,523 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/935695cf-e749-4f4f-88c1-9d547a07c9d0 2024-10-26 12:33:10,532 - DEBUG - Response Code: 404 2024-10-26 12:33:10,533 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-10-26 12:33:10,540 - DEBUG - Requesting: http://10.0.0.33:8082/domain/ec8bd329-455a-4864-b30f-6de8345d45e1 2024-10-26 12:33:10,603 - DEBUG - Requesting: http://10.0.0.33:8082/project/d2436d82-aeef-418a-b863-4418e2d807b3 2024-10-26 12:33:10,709 - INFO - Validated that VN ctest-vn-94781269 is not found in API Server 2024-10-26 12:33:10,727 - DEBUG - VN ctest-vn-94781269 is not present in Agent 10.0.0.33 2024-10-26 12:33:10,727 - INFO - Validated that VN ctest-vn-94781269 is not in any agent 2024-10-26 12:33:10,748 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-94781269 info 2024-10-26 12:33:11,025 - DEBUG - No XMPP flaps were noticed during the test 2024-10-26 12:33:11,025 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:39] 2024-10-26 12:33:11,025 - INFO - -------------------------------------------------------------------------------- 2024-10-26 12:33:11,956 - INFO - Deleted project: ctest-TestBasicPolicy-15832542, ID : d2436d82-aeef-418a-b863-4418e2d807b3