2025-01-09 16:37:19,132 - INFO - Domain Default found not creating 2025-01-09 16:37:19,290 - INFO - Project ctest-TestBasicPolicy-27669695 not found, creating it 2025-01-09 16:37:19,788 - INFO - Created Project:ctest-TestBasicPolicy-27669695, ID : 353d175f-4dd0-4140-88c6-0adc5527110f 2025-01-09 16:37:21,257 - INFO - ================================================================================ 2025-01-09 16:37:21,257 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-09 16:37:21,257 - 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 2025-01-09 16:37:21,518 - DEBUG - Nothing to compare xmpp stats {'10.0.0.55': {'10.20.0.22': '0'}} with 2025-01-09 16:37:21,518 - INFO - Initial checks done. Running the testcase now 2025-01-09 16:37:21,518 - INFO - 2025-01-09 16:37:22,102 - DEBUG - Response for create_network : {'network': {'id': 'bea3fe2e-bf7b-4d42-af7b-76c18e84b40e', 'name': 'ctest-vn-61687400', 'tenant_id': '353d175f4dd0414088c60adc5527110f', 'project_id': '353d175f4dd0414088c60adc5527110f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27669695', 'ctest-vn-61687400'], 'port_security_enabled': True, 'description': ''}} 2025-01-09 16:37:22,293 - DEBUG - Response for create_subnet : {'subnet': {'id': '556a5c9f-4af0-46b5-abc5-0cbb55883f5e', 'name': '', 'tenant_id': '353d175f4dd0414088c60adc5527110f', 'network_id': 'bea3fe2e-bf7b-4d42-af7b-76c18e84b40e', 'ip_version': 4, 'cidr': '13.2.177.192/26', 'allocation_pools': [{'start': '13.2.177.194', 'end': '13.2.177.254'}], 'gateway_ip': '13.2.177.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.2.177.194', 'tags': [], 'project_id': '353d175f4dd0414088c60adc5527110f'}} 2025-01-09 16:37:22,316 - INFO - Created VN ctest-vn-61687400 2025-01-09 16:37:22,371 - DEBUG - VN ctest-vn-61687400 UUID is bea3fe2e-bf7b-4d42-af7b-76c18e84b40e 2025-01-09 16:37:22,694 - DEBUG - Response for create_network : {'network': {'id': '84d7653b-de97-4eae-9d65-4a5efaca1bc8', 'name': 'ctest-vn-86211148', 'tenant_id': '353d175f4dd0414088c60adc5527110f', 'project_id': '353d175f4dd0414088c60adc5527110f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27669695', 'ctest-vn-86211148'], 'port_security_enabled': True, 'description': ''}} 2025-01-09 16:37:22,878 - DEBUG - Response for create_subnet : {'subnet': {'id': '545bda45-b36b-4c12-be4b-8e919d5ea42f', 'name': '', 'tenant_id': '353d175f4dd0414088c60adc5527110f', 'network_id': '84d7653b-de97-4eae-9d65-4a5efaca1bc8', 'ip_version': 4, 'cidr': '205.95.48.0/26', 'allocation_pools': [{'start': '205.95.48.2', 'end': '205.95.48.62'}], 'gateway_ip': '205.95.48.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205.95.48.2', 'tags': [], 'project_id': '353d175f4dd0414088c60adc5527110f'}} 2025-01-09 16:37:22,900 - INFO - Created VN ctest-vn-86211148 2025-01-09 16:37:22,955 - DEBUG - VN ctest-vn-86211148 UUID is 84d7653b-de97-4eae-9d65-4a5efaca1bc8 2025-01-09 16:37:23,065 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-27669695:ctest-vn-61687400, 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-27669695:ctest-vn-86211148, 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] 2025-01-09 16:37:23,399 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bea3fe2e-bf7b-4d42-af7b-76c18e84b40e', 'name': 'ctest-vn-61687400', 'tenant_id': '353d175f4dd0414088c60adc5527110f', 'project_id': '353d175f4dd0414088c60adc5527110f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['556a5c9f-4af0-46b5-abc5-0cbb55883f5e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27669695', 'ctest-vn-61687400'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27669695', 'ctest-policy-allow-all-63909296']], 'subnet_ipam': [{'subnet_cidr': '13.2.177.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-09 16:37:23,632 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '84d7653b-de97-4eae-9d65-4a5efaca1bc8', 'name': 'ctest-vn-86211148', 'tenant_id': '353d175f4dd0414088c60adc5527110f', 'project_id': '353d175f4dd0414088c60adc5527110f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['545bda45-b36b-4c12-be4b-8e919d5ea42f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27669695', 'ctest-vn-86211148'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27669695', 'ctest-policy-allow-all-63909296']], 'subnet_ipam': [{'subnet_cidr': '205.95.48.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-09 16:37:23,799 - DEBUG - Requesting: http://10.0.0.55:8082/domains 2025-01-09 16:37:24,091 - DEBUG - Requesting: http://10.0.0.55:8082/domains 2025-01-09 16:37:24,121 - DEBUG - Requesting: http://10.0.0.55:8082/domain/cf8534af-a04f-412e-96d7-e53a1ceb5d2a 2025-01-09 16:37:24,137 - DEBUG - Requesting: http://10.0.0.55:8082/project/353d175f-4dd0-4140-88c6-0adc5527110f 2025-01-09 16:37:24,213 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/bea3fe2e-bf7b-4d42-af7b-76c18e84b40e 2025-01-09 16:37:24,225 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/bea3fe2e-bf7b-4d42-af7b-76c18e84b40e 2025-01-09 16:37:24,236 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/36eff279-24e3-46fe-9b7b-408ceeb85975 2025-01-09 16:37:24,245 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/36eff279-24e3-46fe-9b7b-408ceeb85975 2025-01-09 16:37:24,254 - DEBUG - Requesting: http://10.0.0.55:8082/route-target/5760e72b-ba9b-4465-a877-26e07e165be9 2025-01-09 16:37:24,261 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-09 16:37:24,261 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/bea3fe2e-bf7b-4d42-af7b-76c18e84b40e 2025-01-09 16:37:24,272 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/36eff279-24e3-46fe-9b7b-408ceeb85975 2025-01-09 16:37:24,288 - INFO - Verified VN network id 9 for VN bea3fe2e-bf7b-4d42-af7b-76c18e84b40e 2025-01-09 16:37:24,288 - INFO - Verifications in API Server for VN ctest-vn-61687400 passed 2025-01-09 16:37:24,288 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/bea3fe2e-bf7b-4d42-af7b-76c18e84b40e 2025-01-09 16:37:24,299 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/36eff279-24e3-46fe-9b7b-408ceeb85975 2025-01-09 16:37:24,307 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/36eff279-24e3-46fe-9b7b-408ceeb85975 2025-01-09 16:37:24,315 - DEBUG - Requesting: http://10.0.0.55:8082/route-target/5760e72b-ba9b-4465-a877-26e07e165be9 2025-01-09 16:37:24,330 - DEBUG - Control-node 10.0.0.55 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27669695:ctest-vn-61687400', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27669695', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13737102765144624450', 'uuid-lslong': '12644830952464626702'}, 'enable': 'true', 'created': '2025-01-09T16:37:22', 'last-modified': '2025-01-09T16:37:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.961968'} 2025-01-09 16:37:24,337 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-09 16:37:24,338 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61687400 passed 2025-01-09 16:37:24,338 - DEBUG - ====Verifying policy data for ctest-vn-61687400 in API_Server ====== 2025-01-09 16:37:24,338 - DEBUG - Requesting: http://10.0.0.55:8082/domains 2025-01-09 16:37:24,345 - DEBUG - Requesting: http://10.0.0.55:8082/domain/cf8534af-a04f-412e-96d7-e53a1ceb5d2a 2025-01-09 16:37:24,360 - DEBUG - Requesting: http://10.0.0.55:8082/project/353d175f-4dd0-4140-88c6-0adc5527110f 2025-01-09 16:37:24,435 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/bea3fe2e-bf7b-4d42-af7b-76c18e84b40e 2025-01-09 16:37:24,445 - DEBUG - ==>Verifying data for policy with id: b97c7ec0-8be1-4cc0-8fb5-4a5f0fd2c0b0, fqn: ['default-domain', 'ctest-TestBasicPolicy-27669695', 'ctest-policy-allow-all-63909296'] 2025-01-09 16:37:24,445 - INFO - VN ctest-vn-61687400 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-09 16:37:24,445 - DEBUG - Verifying the vn in opserver 2025-01-09 16:37:24,445 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27669695:ctest-vn-61687400 virtual network link through opserver 10.0.0.55 2025-01-09 16:37:24,446 - DEBUG - Requesting: http://10.0.0.55:8081/analytics/uves/virtual-networks 2025-01-09 16:37:24,742 - DEBUG - Requesting: http://10.0.0.55:8081/analytics/uves/virtual-networks 2025-01-09 16:37:24,802 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27669695:ctest-vn-61687400', 'href': 'http://10.0.0.55:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27669695:ctest-vn-61687400?flat'} 2025-01-09 16:37:24,802 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27669695:ctest-vn-61687400 is found in opserver 2025-01-09 16:37:24,815 - DEBUG - Do not have enough data to verify VN in agent 2025-01-09 16:37:24,821 - DEBUG - VRF ids for VN ctest-vn-61687400: {} 2025-01-09 16:37:24,821 - DEBUG - Requesting: http://10.0.0.55:8082/domains 2025-01-09 16:37:24,829 - DEBUG - Requesting: http://10.0.0.55:8082/domain/cf8534af-a04f-412e-96d7-e53a1ceb5d2a 2025-01-09 16:37:24,850 - DEBUG - Requesting: http://10.0.0.55:8082/project/353d175f-4dd0-4140-88c6-0adc5527110f 2025-01-09 16:37:24,928 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/84d7653b-de97-4eae-9d65-4a5efaca1bc8 2025-01-09 16:37:24,941 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/84d7653b-de97-4eae-9d65-4a5efaca1bc8 2025-01-09 16:37:24,950 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/07f65c33-f29c-44b0-8d16-bfd36689a68a 2025-01-09 16:37:24,960 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/07f65c33-f29c-44b0-8d16-bfd36689a68a 2025-01-09 16:37:24,967 - DEBUG - Requesting: http://10.0.0.55:8082/route-target/54e2f1df-b4ea-492b-ad99-8d89e49156e7 2025-01-09 16:37:24,975 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-09 16:37:24,975 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/84d7653b-de97-4eae-9d65-4a5efaca1bc8 2025-01-09 16:37:24,984 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/07f65c33-f29c-44b0-8d16-bfd36689a68a 2025-01-09 16:37:24,998 - INFO - Verified VN network id 10 for VN 84d7653b-de97-4eae-9d65-4a5efaca1bc8 2025-01-09 16:37:24,998 - INFO - Verifications in API Server for VN ctest-vn-86211148 passed 2025-01-09 16:37:24,998 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/84d7653b-de97-4eae-9d65-4a5efaca1bc8 2025-01-09 16:37:25,008 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/07f65c33-f29c-44b0-8d16-bfd36689a68a 2025-01-09 16:37:25,016 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/07f65c33-f29c-44b0-8d16-bfd36689a68a 2025-01-09 16:37:25,023 - DEBUG - Requesting: http://10.0.0.55:8082/route-target/54e2f1df-b4ea-492b-ad99-8d89e49156e7 2025-01-09 16:37:25,035 - DEBUG - Control-node 10.0.0.55 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27669695:ctest-vn-86211148', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27669695', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9572230840811212462', 'uuid-lslong': '11341553008397392840'}, 'enable': 'true', 'created': '2025-01-09T16:37:22', 'last-modified': '2025-01-09T16:37:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.430412'} 2025-01-09 16:37:25,042 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-09 16:37:25,042 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86211148 passed 2025-01-09 16:37:25,043 - DEBUG - ====Verifying policy data for ctest-vn-86211148 in API_Server ====== 2025-01-09 16:37:25,043 - DEBUG - Requesting: http://10.0.0.55:8082/domains 2025-01-09 16:37:25,049 - DEBUG - Requesting: http://10.0.0.55:8082/domain/cf8534af-a04f-412e-96d7-e53a1ceb5d2a 2025-01-09 16:37:25,063 - DEBUG - Requesting: http://10.0.0.55:8082/project/353d175f-4dd0-4140-88c6-0adc5527110f 2025-01-09 16:37:25,140 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/84d7653b-de97-4eae-9d65-4a5efaca1bc8 2025-01-09 16:37:25,159 - DEBUG - ==>Verifying data for policy with id: b97c7ec0-8be1-4cc0-8fb5-4a5f0fd2c0b0, fqn: ['default-domain', 'ctest-TestBasicPolicy-27669695', 'ctest-policy-allow-all-63909296'] 2025-01-09 16:37:25,159 - INFO - VN ctest-vn-86211148 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-09 16:37:25,159 - DEBUG - Verifying the vn in opserver 2025-01-09 16:37:25,159 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27669695:ctest-vn-86211148 virtual network link through opserver 10.0.0.55 2025-01-09 16:37:25,159 - DEBUG - Requesting: http://10.0.0.55:8081/analytics/uves/virtual-networks 2025-01-09 16:37:25,172 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27669695:ctest-vn-86211148', 'href': 'http://10.0.0.55:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27669695:ctest-vn-86211148?flat'} 2025-01-09 16:37:25,172 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27669695:ctest-vn-86211148 is found in opserver 2025-01-09 16:37:25,183 - DEBUG - Do not have enough data to verify VN in agent 2025-01-09 16:37:25,190 - DEBUG - VRF ids for VN ctest-vn-86211148: {} 2025-01-09 16:37:25,254 - DEBUG - Services list from nova: [, , ] 2025-01-09 16:37:26,413 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2590-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2590-1) 2025-01-09 16:37:27,677 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2590-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2590-1) 2025-01-09 16:37:27,678 - INFO - Waiting for VM ctest-TestBasicPolicy-27669695-28122268 to be up.. 2025-01-09 16:37:27,808 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-09 16:37:32,921 - DEBUG - VM is in ACTIVE state now 2025-01-09 16:37:32,922 - INFO - VM name : ctest-TestBasicPolicy-27669695-28122268 2025-01-09 16:37:33,014 - DEBUG - VM ctest-TestBasicPolicy-27669695-28122268 ID is aadc7b4c-bea3-4424-8a5d-71b2980f41a2 2025-01-09 16:37:33,036 - DEBUG - VM ctest-TestBasicPolicy-27669695-28122268 launched on Node cn-jenkins-deploy-platform-ansible-os-2590-1 2025-01-09 16:37:33,130 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-machine/aadc7b4c-bea3-4424-8a5d-71b2980f41a2 2025-01-09 16:37:33,141 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-machine-interface/47edbe92-d73a-4ecd-8699-49c4ce4ae854 2025-01-09 16:37:36,427 - 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 1029ms') 2025-01-09 16:37:36,427 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27669695-28122268 failed! 2025-01-09 16:37:36,487 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-27669695:ctest-vn-61687400 is 13.2.177.193 and allocation pool is NOT set 2025-01-09 16:37:38,552 - 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=12.6 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.498 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 = 0.498/6.541/12.584/6.043 ms') 2025-01-09 16:37:38,552 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27669695-28122268 passed 2025-01-09 16:37:38,711 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-09 16:37:38,711 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-27669695-28122268, IP 13.2.177.195, Port 22 2025-01-09 16:37:38,771 - 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': ''} 2025-01-09 16:37:38,867 - DEBUG - VM ctest-TestBasicPolicy-27669695-28122268 is NOT ready for SSH connections, VM status: ACTIVE 2025-01-09 16:37:43,868 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-09 16:37:43,868 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-27669695-28122268, IP 13.2.177.195, Port 22 2025-01-09 16:37:44,038 - DEBUG - VM ctest-TestBasicPolicy-27669695-28122268 is ready for SSH connections 2025-01-09 16:37:44,039 - INFO - Waiting for VM ctest-TestBasicPolicy-27669695-09734670 to be up.. 2025-01-09 16:37:44,131 - DEBUG - VM is in ACTIVE state now 2025-01-09 16:37:44,131 - INFO - VM name : ctest-TestBasicPolicy-27669695-09734670 2025-01-09 16:37:44,219 - DEBUG - VM ctest-TestBasicPolicy-27669695-09734670 ID is e7c366e3-afbb-46d6-883c-0fca80fcb334 2025-01-09 16:37:44,219 - DEBUG - VM ctest-TestBasicPolicy-27669695-09734670 launched on Node cn-jenkins-deploy-platform-ansible-os-2590-1 2025-01-09 16:37:44,300 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-machine/e7c366e3-afbb-46d6-883c-0fca80fcb334 2025-01-09 16:37:44,311 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-machine-interface/7fafddc5-6714-4ce8-9024-b329abfa3137 2025-01-09 16:37:45,557 - 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.59 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.441 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.441/2.016/3.592/1.575 ms') 2025-01-09 16:37:45,558 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-27669695-09734670 passed 2025-01-09 16:37:45,715 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-09 16:37:45,715 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-27669695-09734670, IP 205.95.48.3, Port 22 2025-01-09 16:37:45,880 - DEBUG - VM ctest-TestBasicPolicy-27669695-09734670 is ready for SSH connections 2025-01-09 16:37:45,880 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-09 16:37:45,881 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 205.95.48.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.55, gateway password: c0ntrail123 2025-01-09 16:37:45,881 - DEBUG - ping -s 56 -c 3 -W 1 205.95.48.3 2025-01-09 16:37:49,586 - DEBUG - PING 205.95.48.3 (205.95.48.3): 56 data bytes 64 bytes from 205.95.48.3: seq=0 ttl=63 time=4.390 ms 64 bytes from 205.95.48.3: seq=1 ttl=63 time=0.907 ms 64 bytes from 205.95.48.3: seq=2 ttl=63 time=1.285 ms --- 205.95.48.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.907/2.194/4.390 ms 2025-01-09 16:37:49,586 - INFO - Ping to IP 205.95.48.3 from VM ctest-TestBasicPolicy-27669695-28122268 passed 2025-01-09 16:37:49,775 - DEBUG - Policy Update Response {"network-policy": {"uuid": "b97c7ec0-8be1-4cc0-8fb5-4a5f0fd2c0b0", "href": "http://10.0.0.55:8082/network-policy/b97c7ec0-8be1-4cc0-8fb5-4a5f0fd2c0b0"}} 2025-01-09 16:37:49,775 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-09 16:37:49,775 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 205.95.48.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.55, gateway password: c0ntrail123 2025-01-09 16:37:49,775 - DEBUG - ping -s 56 -c 3 -W 1 205.95.48.3 2025-01-09 16:37:52,994 - DEBUG - PING 205.95.48.3 (205.95.48.3): 56 data bytes 64 bytes from 205.95.48.3: seq=0 ttl=63 time=1.875 ms --- 205.95.48.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.875/1.875/1.875 ms 2025-01-09 16:37:52,994 - WARNING - Ping to IP 205.95.48.3 from VM ctest-TestBasicPolicy-27669695-28122268 failed 2025-01-09 16:37:52,994 - INFO - Deleting VM ctest-TestBasicPolicy-27669695-09734670 2025-01-09 16:37:53,088 - INFO - Deleting VM ctest-TestBasicPolicy-27669695-28122268 2025-01-09 16:37:53,616 - INFO - Deleted policy ctest-policy-allow-all-63909296 2025-01-09 16:37:53,617 - INFO - Deleting VN ctest-vn-86211148 2025-01-09 16:37:53,668 - DEBUG - VN 84d7653b-de97-4eae-9d65-4a5efaca1bc8 still in use: Unable to complete operation on network 84d7653b-de97-4eae-9d65-4a5efaca1bc8. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-10a27ef3-a2d3-4457-bd50-7a0b1672346e'] 2025-01-09 16:37:53,668 - WARNING - Deleting VN ctest-vn-86211148 failed..Will retry 2025-01-09 16:37:55,784 - DEBUG - Response for deleting network () 2025-01-09 16:37:55,784 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/07f65c33-f29c-44b0-8d16-bfd36689a68a 2025-01-09 16:37:55,790 - DEBUG - Response Code: 404 2025-01-09 16:37:55,790 - DEBUG - Requesting: http://10.0.0.55:8082/domains 2025-01-09 16:37:55,796 - DEBUG - Requesting: http://10.0.0.55:8082/domain/cf8534af-a04f-412e-96d7-e53a1ceb5d2a 2025-01-09 16:37:55,855 - DEBUG - Requesting: http://10.0.0.55:8082/project/353d175f-4dd0-4140-88c6-0adc5527110f 2025-01-09 16:37:55,932 - INFO - Validated that VN ctest-vn-86211148 is not found in API Server 2025-01-09 16:37:55,944 - DEBUG - VN ctest-vn-86211148 is not present in Agent 10.0.0.55 2025-01-09 16:37:55,944 - INFO - Validated that VN ctest-vn-86211148 is not in any agent 2025-01-09 16:37:55,962 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-86211148 info 2025-01-09 16:37:55,962 - INFO - Deleting VN ctest-vn-61687400 2025-01-09 16:37:56,088 - DEBUG - Response for deleting network () 2025-01-09 16:37:56,088 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/36eff279-24e3-46fe-9b7b-408ceeb85975 2025-01-09 16:37:56,097 - DEBUG - Response Code: 404 2025-01-09 16:37:56,097 - DEBUG - Requesting: http://10.0.0.55:8082/domains 2025-01-09 16:37:56,105 - DEBUG - Requesting: http://10.0.0.55:8082/domain/cf8534af-a04f-412e-96d7-e53a1ceb5d2a 2025-01-09 16:37:56,162 - DEBUG - Requesting: http://10.0.0.55:8082/project/353d175f-4dd0-4140-88c6-0adc5527110f 2025-01-09 16:37:56,241 - INFO - Validated that VN ctest-vn-61687400 is not found in API Server 2025-01-09 16:37:56,253 - DEBUG - VN ctest-vn-61687400 is not present in Agent 10.0.0.55 2025-01-09 16:37:56,253 - INFO - Validated that VN ctest-vn-61687400 is not in any agent 2025-01-09 16:37:56,271 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-61687400 info 2025-01-09 16:37:56,529 - DEBUG - No XMPP flaps were noticed during the test
2025-01-09 16:37:56,529 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-01-09 16:37:56,529 - INFO - -------------------------------------------------------------------------------- 2025-01-09 16:37:57,227 - INFO - Deleted project: ctest-TestBasicPolicy-27669695, ID : 353d175f-4dd0-4140-88c6-0adc5527110f