2024-10-21 02:29:43,389 - INFO - Domain Default found not creating 2024-10-21 02:29:43,594 - INFO - Project ctest-TestBasicPolicy-87147283 not found, creating it 2024-10-21 02:29:44,118 - INFO - Created Project:ctest-TestBasicPolicy-87147283, ID : 92cbaa15-697c-404c-9be2-f65483dbb950 2024-10-21 02:29:45,928 - INFO - ================================================================================ 2024-10-21 02:29:45,928 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-21 02:29:45,928 - 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-21 02:29:46,217 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.20.0.12': '0'}} with 2024-10-21 02:29:46,217 - INFO - Initial checks done. Running the testcase now 2024-10-21 02:29:46,217 - INFO - 2024-10-21 02:29:46,933 - DEBUG - Response for create_network : {'network': {'id': '8b2404f0-0819-4bd0-8f2c-13df494310ee', 'name': 'ctest-vn-56144839', 'tenant_id': '92cbaa15697c404c9be2f65483dbb950', 'project_id': '92cbaa15697c404c9be2f65483dbb950', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87147283', 'ctest-vn-56144839'], 'port_security_enabled': True, 'description': ''}} 2024-10-21 02:29:47,148 - DEBUG - Response for create_subnet : {'subnet': {'id': '732e61b1-84e5-4a05-bdfc-bb15c54ea609', 'name': '', 'tenant_id': '92cbaa15697c404c9be2f65483dbb950', 'network_id': '8b2404f0-0819-4bd0-8f2c-13df494310ee', 'ip_version': 4, 'cidr': '67.36.61.64/26', 'allocation_pools': [{'start': '67.36.61.66', 'end': '67.36.61.126'}], 'gateway_ip': '67.36.61.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '67.36.61.66', 'tags': [], 'project_id': '92cbaa15697c404c9be2f65483dbb950'}} 2024-10-21 02:29:47,174 - INFO - Created VN ctest-vn-56144839 2024-10-21 02:29:47,232 - DEBUG - VN ctest-vn-56144839 UUID is 8b2404f0-0819-4bd0-8f2c-13df494310ee 2024-10-21 02:29:47,609 - DEBUG - Response for create_network : {'network': {'id': '283b4876-3495-4563-84ce-3a0d77301a96', 'name': 'ctest-vn-58660542', 'tenant_id': '92cbaa15697c404c9be2f65483dbb950', 'project_id': '92cbaa15697c404c9be2f65483dbb950', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87147283', 'ctest-vn-58660542'], 'port_security_enabled': True, 'description': ''}} 2024-10-21 02:29:47,795 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a868b544-8573-4afc-a7b0-a7bcc2690d4a', 'name': '', 'tenant_id': '92cbaa15697c404c9be2f65483dbb950', 'network_id': '283b4876-3495-4563-84ce-3a0d77301a96', 'ip_version': 4, 'cidr': '27.93.94.64/26', 'allocation_pools': [{'start': '27.93.94.66', 'end': '27.93.94.126'}], 'gateway_ip': '27.93.94.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.93.94.66', 'tags': [], 'project_id': '92cbaa15697c404c9be2f65483dbb950'}} 2024-10-21 02:29:47,819 - INFO - Created VN ctest-vn-58660542 2024-10-21 02:29:47,881 - DEBUG - VN ctest-vn-58660542 UUID is 283b4876-3495-4563-84ce-3a0d77301a96 2024-10-21 02:29:48,024 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87147283:ctest-vn-56144839, 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-87147283:ctest-vn-58660542, 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-21 02:29:48,377 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8b2404f0-0819-4bd0-8f2c-13df494310ee', 'name': 'ctest-vn-56144839', 'tenant_id': '92cbaa15697c404c9be2f65483dbb950', 'project_id': '92cbaa15697c404c9be2f65483dbb950', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['732e61b1-84e5-4a05-bdfc-bb15c54ea609'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87147283', 'ctest-vn-56144839'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87147283', 'ctest-policy-allow-all-99424707']], 'subnet_ipam': [{'subnet_cidr': '67.36.61.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-21 02:29:48,663 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '283b4876-3495-4563-84ce-3a0d77301a96', 'name': 'ctest-vn-58660542', 'tenant_id': '92cbaa15697c404c9be2f65483dbb950', 'project_id': '92cbaa15697c404c9be2f65483dbb950', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a868b544-8573-4afc-a7b0-a7bcc2690d4a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87147283', 'ctest-vn-58660542'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87147283', 'ctest-policy-allow-all-99424707']], 'subnet_ipam': [{'subnet_cidr': '27.93.94.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-21 02:29:48,848 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-10-21 02:29:49,197 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-10-21 02:29:49,238 - DEBUG - Requesting: http://10.0.0.32:8082/domain/c68dda55-aa39-4297-8407-793b327cbe14 2024-10-21 02:29:49,258 - DEBUG - Requesting: http://10.0.0.32:8082/project/92cbaa15-697c-404c-9be2-f65483dbb950 2024-10-21 02:29:49,349 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/8b2404f0-0819-4bd0-8f2c-13df494310ee 2024-10-21 02:29:49,368 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/8b2404f0-0819-4bd0-8f2c-13df494310ee 2024-10-21 02:29:49,386 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/693e6c9d-fa51-49bc-9a01-a8c6ba193baa 2024-10-21 02:29:49,397 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/693e6c9d-fa51-49bc-9a01-a8c6ba193baa 2024-10-21 02:29:49,409 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/0b6e0659-a9db-4e23-8903-6804b80e4111 2024-10-21 02:29:49,419 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-21 02:29:49,419 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/8b2404f0-0819-4bd0-8f2c-13df494310ee 2024-10-21 02:29:49,436 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/693e6c9d-fa51-49bc-9a01-a8c6ba193baa 2024-10-21 02:29:49,462 - INFO - Verified VN network id 8 for VN 8b2404f0-0819-4bd0-8f2c-13df494310ee 2024-10-21 02:29:49,462 - INFO - Verifications in API Server for VN ctest-vn-56144839 passed 2024-10-21 02:29:49,462 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/8b2404f0-0819-4bd0-8f2c-13df494310ee 2024-10-21 02:29:49,480 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/693e6c9d-fa51-49bc-9a01-a8c6ba193baa 2024-10-21 02:29:49,491 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/693e6c9d-fa51-49bc-9a01-a8c6ba193baa 2024-10-21 02:29:49,502 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/0b6e0659-a9db-4e23-8903-6804b80e4111 2024-10-21 02:29:49,518 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87147283:ctest-vn-56144839', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87147283', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10026144099408104400', 'uuid-lslong': '10316642696126730478'}, 'enable': 'true', 'created': '2024-10-21T02:29:46', 'last-modified': '2024-10-21T02:29:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.186353'} 2024-10-21 02:29:49,528 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-21 02:29:49,528 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56144839 passed 2024-10-21 02:29:49,528 - DEBUG - ====Verifying policy data for ctest-vn-56144839 in API_Server ====== 2024-10-21 02:29:49,528 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-10-21 02:29:49,537 - DEBUG - Requesting: http://10.0.0.32:8082/domain/c68dda55-aa39-4297-8407-793b327cbe14 2024-10-21 02:29:49,555 - DEBUG - Requesting: http://10.0.0.32:8082/project/92cbaa15-697c-404c-9be2-f65483dbb950 2024-10-21 02:29:49,646 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/8b2404f0-0819-4bd0-8f2c-13df494310ee 2024-10-21 02:29:49,665 - DEBUG - ==>Verifying data for policy with id: 9ec7ca76-5d29-4358-9b07-a5a32caa0a6d, fqn: ['default-domain', 'ctest-TestBasicPolicy-87147283', 'ctest-policy-allow-all-99424707'] 2024-10-21 02:29:49,665 - INFO - VN ctest-vn-56144839 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-21 02:29:49,665 - DEBUG - Verifying the vn in opserver 2024-10-21 02:29:49,665 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87147283:ctest-vn-56144839 virtual network link through opserver 10.0.0.32 2024-10-21 02:29:49,666 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks 2024-10-21 02:29:50,010 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks 2024-10-21 02:29:50,093 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87147283:ctest-vn-56144839', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87147283:ctest-vn-56144839?flat'} 2024-10-21 02:29:50,093 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87147283:ctest-vn-56144839 is found in opserver 2024-10-21 02:29:50,106 - DEBUG - Do not have enough data to verify VN in agent 2024-10-21 02:29:50,113 - DEBUG - VRF ids for VN ctest-vn-56144839: {} 2024-10-21 02:29:50,113 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-10-21 02:29:50,121 - DEBUG - Requesting: http://10.0.0.32:8082/domain/c68dda55-aa39-4297-8407-793b327cbe14 2024-10-21 02:29:50,138 - DEBUG - Requesting: http://10.0.0.32:8082/project/92cbaa15-697c-404c-9be2-f65483dbb950 2024-10-21 02:29:50,233 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/283b4876-3495-4563-84ce-3a0d77301a96 2024-10-21 02:29:50,253 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/283b4876-3495-4563-84ce-3a0d77301a96 2024-10-21 02:29:50,271 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/fc87d8ac-313c-4b7f-8e81-191235848c1d 2024-10-21 02:29:50,284 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/fc87d8ac-313c-4b7f-8e81-191235848c1d 2024-10-21 02:29:50,296 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/9ae20922-69aa-4c01-9a2b-97cf753260ca 2024-10-21 02:29:50,306 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-21 02:29:50,306 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/283b4876-3495-4563-84ce-3a0d77301a96 2024-10-21 02:29:50,325 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/fc87d8ac-313c-4b7f-8e81-191235848c1d 2024-10-21 02:29:50,354 - INFO - Verified VN network id 9 for VN 283b4876-3495-4563-84ce-3a0d77301a96 2024-10-21 02:29:50,354 - INFO - Verifications in API Server for VN ctest-vn-58660542 passed 2024-10-21 02:29:50,355 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/283b4876-3495-4563-84ce-3a0d77301a96 2024-10-21 02:29:50,373 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/fc87d8ac-313c-4b7f-8e81-191235848c1d 2024-10-21 02:29:50,385 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/fc87d8ac-313c-4b7f-8e81-191235848c1d 2024-10-21 02:29:50,395 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/9ae20922-69aa-4c01-9a2b-97cf753260ca 2024-10-21 02:29:50,413 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87147283:ctest-vn-58660542', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87147283', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2898990457668584803', 'uuid-lslong': '9569650087717509782'}, 'enable': 'true', 'created': '2024-10-21T02:29:47', 'last-modified': '2024-10-21T02:29:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.787877'} 2024-10-21 02:29:50,421 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-21 02:29:50,421 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58660542 passed 2024-10-21 02:29:50,421 - DEBUG - ====Verifying policy data for ctest-vn-58660542 in API_Server ====== 2024-10-21 02:29:50,422 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-10-21 02:29:50,430 - DEBUG - Requesting: http://10.0.0.32:8082/domain/c68dda55-aa39-4297-8407-793b327cbe14 2024-10-21 02:29:50,449 - DEBUG - Requesting: http://10.0.0.32:8082/project/92cbaa15-697c-404c-9be2-f65483dbb950 2024-10-21 02:29:50,545 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/283b4876-3495-4563-84ce-3a0d77301a96 2024-10-21 02:29:50,562 - DEBUG - ==>Verifying data for policy with id: 9ec7ca76-5d29-4358-9b07-a5a32caa0a6d, fqn: ['default-domain', 'ctest-TestBasicPolicy-87147283', 'ctest-policy-allow-all-99424707'] 2024-10-21 02:29:50,562 - INFO - VN ctest-vn-58660542 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-21 02:29:50,562 - DEBUG - Verifying the vn in opserver 2024-10-21 02:29:50,562 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87147283:ctest-vn-58660542 virtual network link through opserver 10.0.0.32 2024-10-21 02:29:50,562 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks 2024-10-21 02:29:50,576 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87147283:ctest-vn-58660542', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87147283:ctest-vn-58660542?flat'} 2024-10-21 02:29:50,576 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87147283:ctest-vn-58660542 is found in opserver 2024-10-21 02:29:50,590 - DEBUG - Do not have enough data to verify VN in agent 2024-10-21 02:29:50,597 - DEBUG - VRF ids for VN ctest-vn-58660542: {} 2024-10-21 02:29:50,663 - DEBUG - Services list from nova: [, , ] 2024-10-21 02:29:52,029 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2121-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2121-1) 2024-10-21 02:29:53,395 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2121-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2121-1) 2024-10-21 02:29:53,395 - INFO - Waiting for VM ctest-TestBasicPolicy-87147283-65320638 to be up.. 2024-10-21 02:29:53,507 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-21 02:29:58,643 - DEBUG - VM is in ACTIVE state now 2024-10-21 02:29:58,643 - INFO - VM name : ctest-TestBasicPolicy-87147283-65320638 2024-10-21 02:29:58,769 - DEBUG - VM ctest-TestBasicPolicy-87147283-65320638 ID is 3f1f360c-03b1-4736-a7ea-fb432d3317c6 2024-10-21 02:29:58,794 - DEBUG - VM ctest-TestBasicPolicy-87147283-65320638 launched on Node cn-jenkins-deploy-platform-ansible-os-2121-1 2024-10-21 02:29:58,923 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/3f1f360c-03b1-4736-a7ea-fb432d3317c6 2024-10-21 02:29:58,937 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine-interface/df2398eb-1297-45dc-af8d-a15ad16920de 2024-10-21 02:30:02,199 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1013ms') 2024-10-21 02:30:02,199 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-87147283-65320638 failed! 2024-10-21 02:30:02,264 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-87147283:ctest-vn-56144839 is 67.36.61.65 and allocation pool is NOT set 2024-10-21 02:30:04,336 - 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.66 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.00 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 = 2.997/3.827/4.658/0.830 ms') 2024-10-21 02:30:04,338 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-87147283-65320638 passed 2024-10-21 02:30:04,505 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-21 02:30:04,505 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-87147283-65320638, IP 67.36.61.67, Port 22 2024-10-21 02:30:04,571 - 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-21 02:30:04,695 - DEBUG - VM ctest-TestBasicPolicy-87147283-65320638 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-21 02:30:09,696 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-21 02:30:09,696 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-87147283-65320638, IP 67.36.61.67, Port 22 2024-10-21 02:30:09,867 - DEBUG - VM ctest-TestBasicPolicy-87147283-65320638 is ready for SSH connections 2024-10-21 02:30:09,867 - INFO - Waiting for VM ctest-TestBasicPolicy-87147283-73894471 to be up.. 2024-10-21 02:30:09,976 - DEBUG - VM is in ACTIVE state now 2024-10-21 02:30:09,976 - INFO - VM name : ctest-TestBasicPolicy-87147283-73894471 2024-10-21 02:30:10,075 - DEBUG - VM ctest-TestBasicPolicy-87147283-73894471 ID is edcbe51e-8688-4a75-8657-ed831b0c1809 2024-10-21 02:30:10,075 - DEBUG - VM ctest-TestBasicPolicy-87147283-73894471 launched on Node cn-jenkins-deploy-platform-ansible-os-2121-1 2024-10-21 02:30:10,171 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/edcbe51e-8688-4a75-8657-ed831b0c1809 2024-10-21 02:30:10,191 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine-interface/16276105-a406-4582-a8b1-7c2e6caaf1bc 2024-10-21 02:30:11,453 - 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.35 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.526 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.526/1.939/3.352/1.413 ms') 2024-10-21 02:30:11,453 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-87147283-73894471 passed 2024-10-21 02:30:11,616 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-21 02:30:11,617 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-87147283-73894471, IP 27.93.94.67, Port 22 2024-10-21 02:30:11,786 - DEBUG - VM ctest-TestBasicPolicy-87147283-73894471 is ready for SSH connections 2024-10-21 02:30:11,787 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-21 02:30:11,787 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 27.93.94.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.32, gateway password: c0ntrail123 2024-10-21 02:30:11,787 - DEBUG - ping -s 56 -c 3 -W 1 27.93.94.67 2024-10-21 02:30:15,932 - DEBUG - PING 27.93.94.67 (27.93.94.67): 56 data bytes 64 bytes from 27.93.94.67: seq=0 ttl=63 time=4.397 ms 64 bytes from 27.93.94.67: seq=1 ttl=63 time=1.145 ms 64 bytes from 27.93.94.67: seq=2 ttl=63 time=1.034 ms --- 27.93.94.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.034/2.192/4.397 ms 2024-10-21 02:30:15,932 - INFO - Ping to IP 27.93.94.67 from VM ctest-TestBasicPolicy-87147283-65320638 passed 2024-10-21 02:30:16,136 - DEBUG - Policy Update Response {"network-policy": {"uuid": "9ec7ca76-5d29-4358-9b07-a5a32caa0a6d", "href": "http://10.0.0.32:8082/network-policy/9ec7ca76-5d29-4358-9b07-a5a32caa0a6d"}} 2024-10-21 02:30:16,137 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-21 02:30:16,137 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 27.93.94.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.32, gateway password: c0ntrail123 2024-10-21 02:30:16,137 - DEBUG - ping -s 56 -c 3 -W 1 27.93.94.67 2024-10-21 02:30:19,376 - DEBUG - PING 27.93.94.67 (27.93.94.67): 56 data bytes --- 27.93.94.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-21 02:30:19,376 - WARNING - Ping to IP 27.93.94.67 from VM ctest-TestBasicPolicy-87147283-65320638 failed 2024-10-21 02:30:19,376 - INFO - Deleting VM ctest-TestBasicPolicy-87147283-73894471 2024-10-21 02:30:19,464 - INFO - Deleting VM ctest-TestBasicPolicy-87147283-65320638 2024-10-21 02:30:20,018 - INFO - Deleted policy ctest-policy-allow-all-99424707 2024-10-21 02:30:20,018 - INFO - Deleting VN ctest-vn-58660542 2024-10-21 02:30:20,076 - DEBUG - VN 283b4876-3495-4563-84ce-3a0d77301a96 still in use: Unable to complete operation on network 283b4876-3495-4563-84ce-3a0d77301a96. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-504fb18d-6ef3-4ad4-8930-b2617a065718'] 2024-10-21 02:30:20,076 - WARNING - Deleting VN ctest-vn-58660542 failed..Will retry 2024-10-21 02:30:22,211 - DEBUG - Response for deleting network () 2024-10-21 02:30:22,212 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/fc87d8ac-313c-4b7f-8e81-191235848c1d 2024-10-21 02:30:22,219 - DEBUG - Response Code: 404 2024-10-21 02:30:22,219 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-10-21 02:30:22,226 - DEBUG - Requesting: http://10.0.0.32:8082/domain/c68dda55-aa39-4297-8407-793b327cbe14 2024-10-21 02:30:22,289 - DEBUG - Requesting: http://10.0.0.32:8082/project/92cbaa15-697c-404c-9be2-f65483dbb950 2024-10-21 02:30:22,383 - INFO - Validated that VN ctest-vn-58660542 is not found in API Server 2024-10-21 02:30:22,397 - DEBUG - VN ctest-vn-58660542 is not present in Agent 10.0.0.32 2024-10-21 02:30:22,397 - INFO - Validated that VN ctest-vn-58660542 is not in any agent 2024-10-21 02:30:22,420 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-58660542 info 2024-10-21 02:30:22,420 - INFO - Deleting VN ctest-vn-56144839 2024-10-21 02:30:22,594 - DEBUG - Response for deleting network () 2024-10-21 02:30:22,594 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/693e6c9d-fa51-49bc-9a01-a8c6ba193baa 2024-10-21 02:30:22,609 - DEBUG - Response Code: 404 2024-10-21 02:30:22,609 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-10-21 02:30:22,617 - DEBUG - Requesting: http://10.0.0.32:8082/domain/c68dda55-aa39-4297-8407-793b327cbe14 2024-10-21 02:30:22,636 - DEBUG - Requesting: http://10.0.0.32:8082/project/92cbaa15-697c-404c-9be2-f65483dbb950 2024-10-21 02:30:22,735 - INFO - Validated that VN ctest-vn-56144839 is not found in API Server 2024-10-21 02:30:22,751 - DEBUG - VN ctest-vn-56144839 is not present in Agent 10.0.0.32 2024-10-21 02:30:22,751 - INFO - Validated that VN ctest-vn-56144839 is not in any agent 2024-10-21 02:30:22,779 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-56144839 info 2024-10-21 02:30:23,053 - DEBUG - No XMPP flaps were noticed during the test
2024-10-21 02:30:23,053 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:38]
2024-10-21 02:30:23,053 - INFO - -------------------------------------------------------------------------------- 2024-10-21 02:30:23,877 - INFO - Deleted project: ctest-TestBasicPolicy-87147283, ID : 92cbaa15-697c-404c-9be2-f65483dbb950