2024-08-29 21:02:36,674 - INFO - Domain Default found not creating 2024-08-29 21:02:37,116 - INFO - Project ctest-TestBasicPolicy-90613903 not found, creating it 2024-08-29 21:02:37,900 - INFO - Created Project:ctest-TestBasicPolicy-90613903, ID : 27c576df-2b82-4457-984a-40f1d3c73ac4 2024-08-29 21:02:40,286 - INFO - ================================================================================ 2024-08-29 21:02:40,286 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-29 21:02:40,287 - 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-29 21:02:40,646 - DEBUG - Nothing to compare xmpp stats {'10.0.0.52': {'10.20.0.10': '0'}} with 2024-08-29 21:02:40,646 - INFO - Initial checks done. Running the testcase now 2024-08-29 21:02:40,646 - INFO - 2024-08-29 21:02:41,537 - DEBUG - Response for create_network : {'network': {'id': '755997f5-afae-4c38-b298-cc7e81045d62', 'name': 'ctest-vn-53165915', 'tenant_id': '27c576df2b824457984a40f1d3c73ac4', 'project_id': '27c576df2b824457984a40f1d3c73ac4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90613903', 'ctest-vn-53165915'], 'port_security_enabled': True, 'description': ''}} 2024-08-29 21:02:41,806 - DEBUG - Response for create_subnet : {'subnet': {'id': '190d5f0e-a8dc-42f8-83dc-073ee7ad7b7c', 'name': '', 'tenant_id': '27c576df2b824457984a40f1d3c73ac4', 'network_id': '755997f5-afae-4c38-b298-cc7e81045d62', 'ip_version': 4, 'cidr': '49.228.42.0/26', 'allocation_pools': [{'start': '49.228.42.2', 'end': '49.228.42.62'}], 'gateway_ip': '49.228.42.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.228.42.2', 'tags': [], 'project_id': '27c576df2b824457984a40f1d3c73ac4'}} 2024-08-29 21:02:41,846 - INFO - Created VN ctest-vn-53165915 2024-08-29 21:02:41,903 - DEBUG - VN ctest-vn-53165915 UUID is 755997f5-afae-4c38-b298-cc7e81045d62 2024-08-29 21:02:42,388 - DEBUG - Response for create_network : {'network': {'id': '2caf5e91-5eb6-4b7e-b943-9564a49a78e4', 'name': 'ctest-vn-88573300', 'tenant_id': '27c576df2b824457984a40f1d3c73ac4', 'project_id': '27c576df2b824457984a40f1d3c73ac4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90613903', 'ctest-vn-88573300'], 'port_security_enabled': True, 'description': ''}} 2024-08-29 21:02:42,644 - DEBUG - Response for create_subnet : {'subnet': {'id': '98846fb6-e1e9-4cea-8eb3-efdd3c9f2038', 'name': '', 'tenant_id': '27c576df2b824457984a40f1d3c73ac4', 'network_id': '2caf5e91-5eb6-4b7e-b943-9564a49a78e4', 'ip_version': 4, 'cidr': '66.37.132.0/26', 'allocation_pools': [{'start': '66.37.132.2', 'end': '66.37.132.62'}], 'gateway_ip': '66.37.132.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '66.37.132.2', 'tags': [], 'project_id': '27c576df2b824457984a40f1d3c73ac4'}} 2024-08-29 21:02:42,667 - INFO - Created VN ctest-vn-88573300 2024-08-29 21:02:42,720 - DEBUG - VN ctest-vn-88573300 UUID is 2caf5e91-5eb6-4b7e-b943-9564a49a78e4 2024-08-29 21:02:42,894 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-90613903:ctest-vn-53165915, 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-90613903:ctest-vn-88573300, 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-29 21:02:43,365 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '755997f5-afae-4c38-b298-cc7e81045d62', 'name': 'ctest-vn-53165915', 'tenant_id': '27c576df2b824457984a40f1d3c73ac4', 'project_id': '27c576df2b824457984a40f1d3c73ac4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['190d5f0e-a8dc-42f8-83dc-073ee7ad7b7c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90613903', 'ctest-vn-53165915'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90613903', 'ctest-policy-allow-all-28423740']], 'subnet_ipam': [{'subnet_cidr': '49.228.42.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-29 21:02:43,737 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2caf5e91-5eb6-4b7e-b943-9564a49a78e4', 'name': 'ctest-vn-88573300', 'tenant_id': '27c576df2b824457984a40f1d3c73ac4', 'project_id': '27c576df2b824457984a40f1d3c73ac4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['98846fb6-e1e9-4cea-8eb3-efdd3c9f2038'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90613903', 'ctest-vn-88573300'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90613903', 'ctest-policy-allow-all-28423740']], 'subnet_ipam': [{'subnet_cidr': '66.37.132.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-29 21:02:43,879 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2024-08-29 21:02:44,232 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2024-08-29 21:02:44,279 - DEBUG - Requesting: http://10.0.0.52:8082/domain/24b399ab-0b2d-4476-a0fb-487312f1ca60 2024-08-29 21:02:44,293 - DEBUG - Requesting: http://10.0.0.52:8082/project/27c576df-2b82-4457-984a-40f1d3c73ac4 2024-08-29 21:02:44,387 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/755997f5-afae-4c38-b298-cc7e81045d62 2024-08-29 21:02:44,403 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/755997f5-afae-4c38-b298-cc7e81045d62 2024-08-29 21:02:44,413 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/66e47fc2-7fc7-421b-bc99-c628f6cb83ce 2024-08-29 21:02:44,429 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/66e47fc2-7fc7-421b-bc99-c628f6cb83ce 2024-08-29 21:02:44,450 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/5898e7c7-081f-4b72-afe4-c406847ed77f 2024-08-29 21:02:44,466 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-29 21:02:44,467 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/755997f5-afae-4c38-b298-cc7e81045d62 2024-08-29 21:02:44,484 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/66e47fc2-7fc7-421b-bc99-c628f6cb83ce 2024-08-29 21:02:44,506 - INFO - Verified VN network id 8 for VN 755997f5-afae-4c38-b298-cc7e81045d62 2024-08-29 21:02:44,507 - INFO - Verifications in API Server for VN ctest-vn-53165915 passed 2024-08-29 21:02:44,507 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/755997f5-afae-4c38-b298-cc7e81045d62 2024-08-29 21:02:44,520 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/66e47fc2-7fc7-421b-bc99-c628f6cb83ce 2024-08-29 21:02:44,532 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/66e47fc2-7fc7-421b-bc99-c628f6cb83ce 2024-08-29 21:02:44,542 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/5898e7c7-081f-4b72-afe4-c406847ed77f 2024-08-29 21:02:44,562 - DEBUG - Control-node 10.0.0.52 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90613903:ctest-vn-53165915', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90613903', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8455956856835034168', 'uuid-lslong': '12869260778913684834'}, 'enable': 'true', 'created': '2024-08-29T21:02:41', 'last-modified': '2024-08-29T21:02:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.260652'} 2024-08-29 21:02:44,572 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-29 21:02:44,572 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53165915 passed 2024-08-29 21:02:44,573 - DEBUG - ====Verifying policy data for ctest-vn-53165915 in API_Server ====== 2024-08-29 21:02:44,573 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2024-08-29 21:02:44,584 - DEBUG - Requesting: http://10.0.0.52:8082/domain/24b399ab-0b2d-4476-a0fb-487312f1ca60 2024-08-29 21:02:44,612 - DEBUG - Requesting: http://10.0.0.52:8082/project/27c576df-2b82-4457-984a-40f1d3c73ac4 2024-08-29 21:02:44,731 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/755997f5-afae-4c38-b298-cc7e81045d62 2024-08-29 21:02:44,757 - DEBUG - ==>Verifying data for policy with id: 5b157fe6-97a1-4b2d-add6-690730b66b4d, fqn: ['default-domain', 'ctest-TestBasicPolicy-90613903', 'ctest-policy-allow-all-28423740'] 2024-08-29 21:02:44,758 - INFO - VN ctest-vn-53165915 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-29 21:02:44,758 - DEBUG - Verifying the vn in opserver 2024-08-29 21:02:44,758 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90613903:ctest-vn-53165915 virtual network link through opserver 10.0.0.52 2024-08-29 21:02:44,758 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks 2024-08-29 21:02:45,119 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks 2024-08-29 21:02:45,221 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90613903:ctest-vn-53165915', 'href': 'http://10.0.0.52:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90613903:ctest-vn-53165915?flat'} 2024-08-29 21:02:45,221 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90613903:ctest-vn-53165915 is found in opserver 2024-08-29 21:02:45,244 - DEBUG - Do not have enough data to verify VN in agent 2024-08-29 21:02:45,254 - DEBUG - VRF ids for VN ctest-vn-53165915: {} 2024-08-29 21:02:45,254 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2024-08-29 21:02:45,262 - DEBUG - Requesting: http://10.0.0.52:8082/domain/24b399ab-0b2d-4476-a0fb-487312f1ca60 2024-08-29 21:02:45,281 - DEBUG - Requesting: http://10.0.0.52:8082/project/27c576df-2b82-4457-984a-40f1d3c73ac4 2024-08-29 21:02:45,381 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/2caf5e91-5eb6-4b7e-b943-9564a49a78e4 2024-08-29 21:02:45,396 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/2caf5e91-5eb6-4b7e-b943-9564a49a78e4 2024-08-29 21:02:45,409 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/44fbd43c-c8dc-480e-ab08-a012535dcff1 2024-08-29 21:02:45,419 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/44fbd43c-c8dc-480e-ab08-a012535dcff1 2024-08-29 21:02:45,429 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/94e5a766-0621-42ac-a7e0-4da4ef217d7a 2024-08-29 21:02:45,437 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-29 21:02:45,438 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/2caf5e91-5eb6-4b7e-b943-9564a49a78e4 2024-08-29 21:02:45,449 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/44fbd43c-c8dc-480e-ab08-a012535dcff1 2024-08-29 21:02:45,466 - INFO - Verified VN network id 9 for VN 2caf5e91-5eb6-4b7e-b943-9564a49a78e4 2024-08-29 21:02:45,466 - INFO - Verifications in API Server for VN ctest-vn-88573300 passed 2024-08-29 21:02:45,466 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/2caf5e91-5eb6-4b7e-b943-9564a49a78e4 2024-08-29 21:02:45,481 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/44fbd43c-c8dc-480e-ab08-a012535dcff1 2024-08-29 21:02:45,492 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/44fbd43c-c8dc-480e-ab08-a012535dcff1 2024-08-29 21:02:45,501 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/94e5a766-0621-42ac-a7e0-4da4ef217d7a 2024-08-29 21:02:45,519 - DEBUG - Control-node 10.0.0.52 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90613903:ctest-vn-88573300', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90613903', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3219896237045468030', 'uuid-lslong': '13349677979947137252'}, 'enable': 'true', 'created': '2024-08-29T21:02:42', 'last-modified': '2024-08-29T21:02:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.873515'} 2024-08-29 21:02:45,528 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-29 21:02:45,528 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88573300 passed 2024-08-29 21:02:45,528 - DEBUG - ====Verifying policy data for ctest-vn-88573300 in API_Server ====== 2024-08-29 21:02:45,528 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2024-08-29 21:02:45,535 - DEBUG - Requesting: http://10.0.0.52:8082/domain/24b399ab-0b2d-4476-a0fb-487312f1ca60 2024-08-29 21:02:45,558 - DEBUG - Requesting: http://10.0.0.52:8082/project/27c576df-2b82-4457-984a-40f1d3c73ac4 2024-08-29 21:02:45,653 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/2caf5e91-5eb6-4b7e-b943-9564a49a78e4 2024-08-29 21:02:45,668 - DEBUG - ==>Verifying data for policy with id: 5b157fe6-97a1-4b2d-add6-690730b66b4d, fqn: ['default-domain', 'ctest-TestBasicPolicy-90613903', 'ctest-policy-allow-all-28423740'] 2024-08-29 21:02:45,668 - INFO - VN ctest-vn-88573300 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-29 21:02:45,669 - DEBUG - Verifying the vn in opserver 2024-08-29 21:02:45,669 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90613903:ctest-vn-88573300 virtual network link through opserver 10.0.0.52 2024-08-29 21:02:45,669 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks 2024-08-29 21:02:45,688 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90613903:ctest-vn-88573300', 'href': 'http://10.0.0.52:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90613903:ctest-vn-88573300?flat'} 2024-08-29 21:02:45,688 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90613903:ctest-vn-88573300 is found in opserver 2024-08-29 21:02:45,706 - DEBUG - Do not have enough data to verify VN in agent 2024-08-29 21:02:45,713 - DEBUG - VRF ids for VN ctest-vn-88573300: {} 2024-08-29 21:02:45,777 - DEBUG - Services list from nova: [, , ] 2024-08-29 21:02:47,097 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1818-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1818-1) 2024-08-29 21:02:48,697 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1818-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1818-1) 2024-08-29 21:02:48,698 - INFO - Waiting for VM ctest-TestBasicPolicy-90613903-54286546 to be up.. 2024-08-29 21:02:48,855 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-29 21:02:54,062 - DEBUG - VM is in ACTIVE state now 2024-08-29 21:02:54,062 - INFO - VM name : ctest-TestBasicPolicy-90613903-54286546 2024-08-29 21:02:54,186 - DEBUG - VM ctest-TestBasicPolicy-90613903-54286546 ID is 3c0e2944-bd89-48c3-82cf-e4a945c3aa0d 2024-08-29 21:02:54,216 - DEBUG - VM ctest-TestBasicPolicy-90613903-54286546 launched on Node cn-jenkins-deploy-platform-ansible-os-1818-1 2024-08-29 21:02:54,378 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine/3c0e2944-bd89-48c3-82cf-e4a945c3aa0d 2024-08-29 21:02:54,398 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine-interface/b5c31044-7f40-4f9a-b4cb-f7a8e1e0abe3 2024-08-29 21:02:57,740 - 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 1021ms') 2024-08-29 21:02:57,740 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-90613903-54286546 failed! 2024-08-29 21:02:57,817 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-90613903:ctest-vn-53165915 is 49.228.42.1 and allocation pool is NOT set 2024-08-29 21:02:59,902 - 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=9.01 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.90 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 = 1.899/5.456/9.013/3.557 ms') 2024-08-29 21:02:59,902 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-90613903-54286546 passed 2024-08-29 21:03:00,088 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 21:03:00,088 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-90613903-54286546, IP 49.228.42.3, Port 22 2024-08-29 21:03:00,160 - 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-29 21:03:00,328 - DEBUG - VM ctest-TestBasicPolicy-90613903-54286546 is NOT ready for SSH connections, VM status: ACTIVE 2024-08-29 21:03:05,329 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 21:03:05,329 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-90613903-54286546, IP 49.228.42.3, Port 22 2024-08-29 21:03:05,518 - DEBUG - VM ctest-TestBasicPolicy-90613903-54286546 is ready for SSH connections 2024-08-29 21:03:05,518 - INFO - Waiting for VM ctest-TestBasicPolicy-90613903-13509005 to be up.. 2024-08-29 21:03:05,691 - DEBUG - VM is in ACTIVE state now 2024-08-29 21:03:05,691 - INFO - VM name : ctest-TestBasicPolicy-90613903-13509005 2024-08-29 21:03:05,844 - DEBUG - VM ctest-TestBasicPolicy-90613903-13509005 ID is b5f5383e-74bc-40c4-8d54-1a952274d359 2024-08-29 21:03:05,844 - DEBUG - VM ctest-TestBasicPolicy-90613903-13509005 launched on Node cn-jenkins-deploy-platform-ansible-os-1818-1 2024-08-29 21:03:05,944 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine/b5f5383e-74bc-40c4-8d54-1a952274d359 2024-08-29 21:03:05,955 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine-interface/bdad14b5-e332-415d-861b-348a9b31afab 2024-08-29 21:03:07,230 - 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.79 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.873 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.873/2.330/3.788/1.457 ms') 2024-08-29 21:03:07,230 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-90613903-13509005 passed 2024-08-29 21:03:07,415 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 21:03:07,415 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-90613903-13509005, IP 66.37.132.3, Port 22 2024-08-29 21:03:07,590 - DEBUG - VM ctest-TestBasicPolicy-90613903-13509005 is ready for SSH connections 2024-08-29 21:03:07,590 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 21:03:07,590 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 66.37.132.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.52, gateway password: c0ntrail123 2024-08-29 21:03:07,590 - DEBUG - ping -s 56 -c 3 -W 1 66.37.132.3 2024-08-29 21:03:11,958 - DEBUG - PING 66.37.132.3 (66.37.132.3): 56 data bytes 64 bytes from 66.37.132.3: seq=0 ttl=63 time=5.117 ms 64 bytes from 66.37.132.3: seq=1 ttl=63 time=2.044 ms 64 bytes from 66.37.132.3: seq=2 ttl=63 time=2.193 ms --- 66.37.132.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 2.044/3.118/5.117 ms 2024-08-29 21:03:11,958 - INFO - Ping to IP 66.37.132.3 from VM ctest-TestBasicPolicy-90613903-54286546 passed 2024-08-29 21:03:12,235 - DEBUG - Policy Update Response {"network-policy": {"uuid": "5b157fe6-97a1-4b2d-add6-690730b66b4d", "href": "http://10.0.0.52:8082/network-policy/5b157fe6-97a1-4b2d-add6-690730b66b4d"}} 2024-08-29 21:03:12,235 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 21:03:12,235 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 66.37.132.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.52, gateway password: c0ntrail123 2024-08-29 21:03:12,235 - DEBUG - ping -s 56 -c 3 -W 1 66.37.132.3 2024-08-29 21:03:15,524 - DEBUG - PING 66.37.132.3 (66.37.132.3): 56 data bytes --- 66.37.132.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-08-29 21:03:15,525 - WARNING - Ping to IP 66.37.132.3 from VM ctest-TestBasicPolicy-90613903-54286546 failed 2024-08-29 21:03:15,525 - INFO - Deleting VM ctest-TestBasicPolicy-90613903-13509005 2024-08-29 21:03:15,704 - INFO - Deleting VM ctest-TestBasicPolicy-90613903-54286546 2024-08-29 21:03:16,337 - INFO - Deleted policy ctest-policy-allow-all-28423740 2024-08-29 21:03:16,337 - INFO - Deleting VN ctest-vn-88573300 2024-08-29 21:03:16,381 - DEBUG - VN 2caf5e91-5eb6-4b7e-b943-9564a49a78e4 still in use: Unable to complete operation on network 2caf5e91-5eb6-4b7e-b943-9564a49a78e4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-151f109e-eead-4543-b1e5-b83952aafc5e'] 2024-08-29 21:03:16,381 - WARNING - Deleting VN ctest-vn-88573300 failed..Will retry 2024-08-29 21:03:18,646 - DEBUG - Response for deleting network () 2024-08-29 21:03:18,646 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/44fbd43c-c8dc-480e-ab08-a012535dcff1 2024-08-29 21:03:18,659 - DEBUG - Response Code: 404 2024-08-29 21:03:18,659 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2024-08-29 21:03:18,674 - DEBUG - Requesting: http://10.0.0.52:8082/domain/24b399ab-0b2d-4476-a0fb-487312f1ca60 2024-08-29 21:03:18,712 - DEBUG - Requesting: http://10.0.0.52:8082/project/27c576df-2b82-4457-984a-40f1d3c73ac4 2024-08-29 21:03:18,822 - INFO - Validated that VN ctest-vn-88573300 is not found in API Server 2024-08-29 21:03:18,858 - DEBUG - VN ctest-vn-88573300 is not present in Agent 10.0.0.52 2024-08-29 21:03:18,858 - INFO - Validated that VN ctest-vn-88573300 is not in any agent 2024-08-29 21:03:18,919 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-88573300 info 2024-08-29 21:03:18,919 - INFO - Deleting VN ctest-vn-53165915 2024-08-29 21:03:19,195 - DEBUG - Response for deleting network () 2024-08-29 21:03:19,195 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/66e47fc2-7fc7-421b-bc99-c628f6cb83ce 2024-08-29 21:03:19,209 - DEBUG - Response Code: 404 2024-08-29 21:03:19,210 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2024-08-29 21:03:19,219 - DEBUG - Requesting: http://10.0.0.52:8082/domain/24b399ab-0b2d-4476-a0fb-487312f1ca60 2024-08-29 21:03:19,240 - DEBUG - Requesting: http://10.0.0.52:8082/project/27c576df-2b82-4457-984a-40f1d3c73ac4 2024-08-29 21:03:19,347 - INFO - Validated that VN ctest-vn-53165915 is not found in API Server 2024-08-29 21:03:19,374 - DEBUG - VN ctest-vn-53165915 is not present in Agent 10.0.0.52 2024-08-29 21:03:19,374 - INFO - Validated that VN ctest-vn-53165915 is not in any agent 2024-08-29 21:03:19,426 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-53165915 info 2024-08-29 21:03:19,774 - DEBUG - No XMPP flaps were noticed during the test
2024-08-29 21:03:19,775 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:39]
2024-08-29 21:03:19,775 - INFO - -------------------------------------------------------------------------------- 2024-08-29 21:03:20,723 - INFO - Deleted project: ctest-TestBasicPolicy-90613903, ID : 27c576df-2b82-4457-984a-40f1d3c73ac4