2025-01-08 21:48:05,285 - INFO - Domain Default found not creating 2025-01-08 21:48:05,435 - INFO - Project ctest-TestBasicPolicy-98652421 not found, creating it 2025-01-08 21:48:05,923 - INFO - Created Project:ctest-TestBasicPolicy-98652421, ID : f18874e5-fbae-450d-8257-8d81089b0258 2025-01-08 21:48:07,444 - INFO - ================================================================================ 2025-01-08 21:48:07,444 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-08 21:48:07,444 - 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-08 21:48:07,708 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.11': '0'}} with 2025-01-08 21:48:07,708 - INFO - Initial checks done. Running the testcase now 2025-01-08 21:48:07,708 - INFO - 2025-01-08 21:48:08,279 - DEBUG - Response for create_network : {'network': {'id': '0824a8a5-5eee-4cb2-ba9f-d23193b82708', 'name': 'ctest-vn-33058990', 'tenant_id': 'f18874e5fbae450d82578d81089b0258', 'project_id': 'f18874e5fbae450d82578d81089b0258', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98652421', 'ctest-vn-33058990'], 'port_security_enabled': True, 'description': ''}} 2025-01-08 21:48:08,453 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ae127e1e-242b-4016-87d4-25e549aac122', 'name': '', 'tenant_id': 'f18874e5fbae450d82578d81089b0258', 'network_id': '0824a8a5-5eee-4cb2-ba9f-d23193b82708', 'ip_version': 4, 'cidr': '201.121.136.192/26', 'allocation_pools': [{'start': '201.121.136.194', 'end': '201.121.136.254'}], 'gateway_ip': '201.121.136.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.121.136.194', 'tags': [], 'project_id': 'f18874e5fbae450d82578d81089b0258'}} 2025-01-08 21:48:08,477 - INFO - Created VN ctest-vn-33058990 2025-01-08 21:48:08,533 - DEBUG - VN ctest-vn-33058990 UUID is 0824a8a5-5eee-4cb2-ba9f-d23193b82708 2025-01-08 21:48:08,840 - DEBUG - Response for create_network : {'network': {'id': '9b918cb4-84fe-41e4-add7-d8ca40e305f7', 'name': 'ctest-vn-16786328', 'tenant_id': 'f18874e5fbae450d82578d81089b0258', 'project_id': 'f18874e5fbae450d82578d81089b0258', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98652421', 'ctest-vn-16786328'], 'port_security_enabled': True, 'description': ''}} 2025-01-08 21:48:09,032 - DEBUG - Response for create_subnet : {'subnet': {'id': '38b00e1e-7ec2-4187-abc0-94904813c24b', 'name': '', 'tenant_id': 'f18874e5fbae450d82578d81089b0258', 'network_id': '9b918cb4-84fe-41e4-add7-d8ca40e305f7', 'ip_version': 4, 'cidr': '177.78.39.192/26', 'allocation_pools': [{'start': '177.78.39.194', 'end': '177.78.39.254'}], 'gateway_ip': '177.78.39.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.78.39.194', 'tags': [], 'project_id': 'f18874e5fbae450d82578d81089b0258'}} 2025-01-08 21:48:09,052 - INFO - Created VN ctest-vn-16786328 2025-01-08 21:48:09,105 - DEBUG - VN ctest-vn-16786328 UUID is 9b918cb4-84fe-41e4-add7-d8ca40e305f7 2025-01-08 21:48:09,222 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-98652421:ctest-vn-33058990, 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-98652421:ctest-vn-16786328, 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-08 21:48:09,536 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0824a8a5-5eee-4cb2-ba9f-d23193b82708', 'name': 'ctest-vn-33058990', 'tenant_id': 'f18874e5fbae450d82578d81089b0258', 'project_id': 'f18874e5fbae450d82578d81089b0258', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ae127e1e-242b-4016-87d4-25e549aac122'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98652421', 'ctest-vn-33058990'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98652421', 'ctest-policy-allow-all-99941712']], 'subnet_ipam': [{'subnet_cidr': '201.121.136.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-08 21:48:09,776 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b918cb4-84fe-41e4-add7-d8ca40e305f7', 'name': 'ctest-vn-16786328', 'tenant_id': 'f18874e5fbae450d82578d81089b0258', 'project_id': 'f18874e5fbae450d82578d81089b0258', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['38b00e1e-7ec2-4187-abc0-94904813c24b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98652421', 'ctest-vn-16786328'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98652421', 'ctest-policy-allow-all-99941712']], 'subnet_ipam': [{'subnet_cidr': '177.78.39.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-08 21:48:09,941 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-01-08 21:48:10,250 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-01-08 21:48:10,288 - DEBUG - Requesting: http://10.0.0.27:8082/domain/bbdfedfa-6ff2-4881-bcc0-8abc102f5d0b 2025-01-08 21:48:10,304 - DEBUG - Requesting: http://10.0.0.27:8082/project/f18874e5-fbae-450d-8257-8d81089b0258 2025-01-08 21:48:10,387 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/0824a8a5-5eee-4cb2-ba9f-d23193b82708 2025-01-08 21:48:10,402 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/0824a8a5-5eee-4cb2-ba9f-d23193b82708 2025-01-08 21:48:10,415 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/7072cf31-4c81-455c-964f-6de8d3f41fc2 2025-01-08 21:48:10,424 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/7072cf31-4c81-455c-964f-6de8d3f41fc2 2025-01-08 21:48:10,433 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/a795bead-3ead-48f3-b264-5441d8c4b814 2025-01-08 21:48:10,441 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-08 21:48:10,441 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/0824a8a5-5eee-4cb2-ba9f-d23193b82708 2025-01-08 21:48:10,452 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/7072cf31-4c81-455c-964f-6de8d3f41fc2 2025-01-08 21:48:10,469 - INFO - Verified VN network id 8 for VN 0824a8a5-5eee-4cb2-ba9f-d23193b82708 2025-01-08 21:48:10,469 - INFO - Verifications in API Server for VN ctest-vn-33058990 passed 2025-01-08 21:48:10,470 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/0824a8a5-5eee-4cb2-ba9f-d23193b82708 2025-01-08 21:48:10,482 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/7072cf31-4c81-455c-964f-6de8d3f41fc2 2025-01-08 21:48:10,490 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/7072cf31-4c81-455c-964f-6de8d3f41fc2 2025-01-08 21:48:10,498 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/a795bead-3ead-48f3-b264-5441d8c4b814 2025-01-08 21:48:10,511 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98652421:ctest-vn-33058990', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98652421', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '586779279680752818', 'uuid-lslong': '13447698122725140232'}, 'enable': 'true', 'created': '2025-01-08T21:48:08', 'last-modified': '2025-01-08T21:48:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.000656'} 2025-01-08 21:48:10,518 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-08 21:48:10,518 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33058990 passed 2025-01-08 21:48:10,518 - DEBUG - ====Verifying policy data for ctest-vn-33058990 in API_Server ====== 2025-01-08 21:48:10,518 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-01-08 21:48:10,524 - DEBUG - Requesting: http://10.0.0.27:8082/domain/bbdfedfa-6ff2-4881-bcc0-8abc102f5d0b 2025-01-08 21:48:10,538 - DEBUG - Requesting: http://10.0.0.27:8082/project/f18874e5-fbae-450d-8257-8d81089b0258 2025-01-08 21:48:10,612 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/0824a8a5-5eee-4cb2-ba9f-d23193b82708 2025-01-08 21:48:10,623 - DEBUG - ==>Verifying data for policy with id: 54253c7b-adc6-4232-8325-3b7b64e0c680, fqn: ['default-domain', 'ctest-TestBasicPolicy-98652421', 'ctest-policy-allow-all-99941712'] 2025-01-08 21:48:10,623 - INFO - VN ctest-vn-33058990 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-08 21:48:10,623 - DEBUG - Verifying the vn in opserver 2025-01-08 21:48:10,623 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98652421:ctest-vn-33058990 virtual network link through opserver 10.0.0.27 2025-01-08 21:48:10,623 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-01-08 21:48:10,925 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-01-08 21:48:10,985 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98652421:ctest-vn-33058990', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98652421:ctest-vn-33058990?flat'} 2025-01-08 21:48:10,985 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98652421:ctest-vn-33058990 is found in opserver 2025-01-08 21:48:10,997 - DEBUG - Do not have enough data to verify VN in agent 2025-01-08 21:48:11,002 - DEBUG - VRF ids for VN ctest-vn-33058990: {} 2025-01-08 21:48:11,002 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-01-08 21:48:11,009 - DEBUG - Requesting: http://10.0.0.27:8082/domain/bbdfedfa-6ff2-4881-bcc0-8abc102f5d0b 2025-01-08 21:48:11,022 - DEBUG - Requesting: http://10.0.0.27:8082/project/f18874e5-fbae-450d-8257-8d81089b0258 2025-01-08 21:48:11,098 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/9b918cb4-84fe-41e4-add7-d8ca40e305f7 2025-01-08 21:48:11,114 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/9b918cb4-84fe-41e4-add7-d8ca40e305f7 2025-01-08 21:48:11,127 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9de0a53e-340e-4beb-9f3c-0a2146dc5b07 2025-01-08 21:48:11,136 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9de0a53e-340e-4beb-9f3c-0a2146dc5b07 2025-01-08 21:48:11,144 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/f959343f-d535-424a-8ffb-b9cd10b025a5 2025-01-08 21:48:11,152 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-08 21:48:11,152 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/9b918cb4-84fe-41e4-add7-d8ca40e305f7 2025-01-08 21:48:11,162 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9de0a53e-340e-4beb-9f3c-0a2146dc5b07 2025-01-08 21:48:11,179 - INFO - Verified VN network id 9 for VN 9b918cb4-84fe-41e4-add7-d8ca40e305f7 2025-01-08 21:48:11,179 - INFO - Verifications in API Server for VN ctest-vn-16786328 passed 2025-01-08 21:48:11,179 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/9b918cb4-84fe-41e4-add7-d8ca40e305f7 2025-01-08 21:48:11,193 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9de0a53e-340e-4beb-9f3c-0a2146dc5b07 2025-01-08 21:48:11,201 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9de0a53e-340e-4beb-9f3c-0a2146dc5b07 2025-01-08 21:48:11,210 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/f959343f-d535-424a-8ffb-b9cd10b025a5 2025-01-08 21:48:11,225 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98652421:ctest-vn-16786328', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98652421', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11209895654455132644', 'uuid-lslong': '12526719251737937399'}, 'enable': 'true', 'created': '2025-01-08T21:48:08', 'last-modified': '2025-01-08T21:48:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.469350'} 2025-01-08 21:48:11,233 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-08 21:48:11,233 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16786328 passed 2025-01-08 21:48:11,234 - DEBUG - ====Verifying policy data for ctest-vn-16786328 in API_Server ====== 2025-01-08 21:48:11,234 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-01-08 21:48:11,240 - DEBUG - Requesting: http://10.0.0.27:8082/domain/bbdfedfa-6ff2-4881-bcc0-8abc102f5d0b 2025-01-08 21:48:11,251 - DEBUG - Requesting: http://10.0.0.27:8082/project/f18874e5-fbae-450d-8257-8d81089b0258 2025-01-08 21:48:11,331 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/9b918cb4-84fe-41e4-add7-d8ca40e305f7 2025-01-08 21:48:11,342 - DEBUG - ==>Verifying data for policy with id: 54253c7b-adc6-4232-8325-3b7b64e0c680, fqn: ['default-domain', 'ctest-TestBasicPolicy-98652421', 'ctest-policy-allow-all-99941712'] 2025-01-08 21:48:11,342 - INFO - VN ctest-vn-16786328 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-08 21:48:11,343 - DEBUG - Verifying the vn in opserver 2025-01-08 21:48:11,343 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98652421:ctest-vn-16786328 virtual network link through opserver 10.0.0.27 2025-01-08 21:48:11,343 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-01-08 21:48:11,354 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98652421:ctest-vn-16786328', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98652421:ctest-vn-16786328?flat'} 2025-01-08 21:48:11,354 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98652421:ctest-vn-16786328 is found in opserver 2025-01-08 21:48:11,368 - DEBUG - Do not have enough data to verify VN in agent 2025-01-08 21:48:11,375 - DEBUG - VRF ids for VN ctest-vn-16786328: {} 2025-01-08 21:48:11,439 - DEBUG - Services list from nova: [, , ] 2025-01-08 21:48:12,518 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2569-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2569-1) 2025-01-08 21:48:13,886 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2569-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2569-1) 2025-01-08 21:48:13,886 - INFO - Waiting for VM ctest-TestBasicPolicy-98652421-81724980 to be up.. 2025-01-08 21:48:13,994 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-08 21:48:19,099 - DEBUG - VM is in ACTIVE state now 2025-01-08 21:48:19,099 - INFO - VM name : ctest-TestBasicPolicy-98652421-81724980 2025-01-08 21:48:19,183 - DEBUG - VM ctest-TestBasicPolicy-98652421-81724980 ID is 64b75eff-5735-4ead-aba6-cd09407a66d2 2025-01-08 21:48:19,202 - DEBUG - VM ctest-TestBasicPolicy-98652421-81724980 launched on Node cn-jenkins-deploy-platform-ansible-os-2569-1 2025-01-08 21:48:19,289 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/64b75eff-5735-4ead-aba6-cd09407a66d2 2025-01-08 21:48:19,298 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/a851c6e5-7b37-429e-b3f1-13332fe848da 2025-01-08 21:48:22,583 - 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') 2025-01-08 21:48:22,583 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-98652421-81724980 failed! 2025-01-08 21:48:22,641 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-98652421:ctest-vn-33058990 is 201.121.136.193 and allocation pool is NOT set 2025-01-08 21:48:24,708 - 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.29 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.49 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.492/5.889/9.287/3.397 ms') 2025-01-08 21:48:24,708 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-98652421-81724980 passed 2025-01-08 21:48:24,866 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-08 21:48:24,866 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-98652421-81724980, IP 201.121.136.195, Port 22 2025-01-08 21:48:24,931 - 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-08 21:48:25,015 - DEBUG - VM ctest-TestBasicPolicy-98652421-81724980 is NOT ready for SSH connections, VM status: ACTIVE 2025-01-08 21:48:30,016 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-08 21:48:30,016 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-98652421-81724980, IP 201.121.136.195, Port 22 2025-01-08 21:48:30,183 - DEBUG - VM ctest-TestBasicPolicy-98652421-81724980 is ready for SSH connections 2025-01-08 21:48:30,183 - INFO - Waiting for VM ctest-TestBasicPolicy-98652421-93604296 to be up.. 2025-01-08 21:48:30,276 - DEBUG - VM is in ACTIVE state now 2025-01-08 21:48:30,276 - INFO - VM name : ctest-TestBasicPolicy-98652421-93604296 2025-01-08 21:48:30,364 - DEBUG - VM ctest-TestBasicPolicy-98652421-93604296 ID is 14c763ec-9b4e-4f1a-b2dd-8cb5ad0b839f 2025-01-08 21:48:30,364 - DEBUG - VM ctest-TestBasicPolicy-98652421-93604296 launched on Node cn-jenkins-deploy-platform-ansible-os-2569-1 2025-01-08 21:48:30,460 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/14c763ec-9b4e-4f1a-b2dd-8cb5ad0b839f 2025-01-08 21:48:30,471 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/de6b4833-4ddf-4206-9b74-4c4556712e0b 2025-01-08 21:48:31,718 - 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.530 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.530/1.938/3.346/1.408 ms') 2025-01-08 21:48:31,718 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-98652421-93604296 passed 2025-01-08 21:48:31,877 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-08 21:48:31,877 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-98652421-93604296, IP 177.78.39.195, Port 22 2025-01-08 21:48:32,032 - DEBUG - VM ctest-TestBasicPolicy-98652421-93604296 is ready for SSH connections 2025-01-08 21:48:32,032 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-08 21:48:32,032 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 177.78.39.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-01-08 21:48:32,032 - DEBUG - ping -s 56 -c 3 -W 1 177.78.39.195 2025-01-08 21:48:35,731 - DEBUG - PING 177.78.39.195 (177.78.39.195): 56 data bytes 64 bytes from 177.78.39.195: seq=0 ttl=63 time=3.918 ms 64 bytes from 177.78.39.195: seq=1 ttl=63 time=1.311 ms 64 bytes from 177.78.39.195: seq=2 ttl=63 time=0.944 ms --- 177.78.39.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.944/2.057/3.918 ms 2025-01-08 21:48:35,732 - INFO - Ping to IP 177.78.39.195 from VM ctest-TestBasicPolicy-98652421-81724980 passed 2025-01-08 21:48:35,920 - DEBUG - Policy Update Response {"network-policy": {"uuid": "54253c7b-adc6-4232-8325-3b7b64e0c680", "href": "http://10.0.0.27:8082/network-policy/54253c7b-adc6-4232-8325-3b7b64e0c680"}} 2025-01-08 21:48:35,921 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-08 21:48:35,921 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 177.78.39.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-01-08 21:48:35,921 - DEBUG - ping -s 56 -c 3 -W 1 177.78.39.195 2025-01-08 21:48:39,130 - DEBUG - PING 177.78.39.195 (177.78.39.195): 56 data bytes 64 bytes from 177.78.39.195: seq=0 ttl=63 time=1.757 ms --- 177.78.39.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.757/1.757/1.757 ms 2025-01-08 21:48:39,131 - WARNING - Ping to IP 177.78.39.195 from VM ctest-TestBasicPolicy-98652421-81724980 failed 2025-01-08 21:48:39,131 - INFO - Deleting VM ctest-TestBasicPolicy-98652421-93604296 2025-01-08 21:48:39,204 - INFO - Deleting VM ctest-TestBasicPolicy-98652421-81724980 2025-01-08 21:48:39,677 - INFO - Deleted policy ctest-policy-allow-all-99941712 2025-01-08 21:48:39,678 - INFO - Deleting VN ctest-vn-16786328 2025-01-08 21:48:39,721 - DEBUG - VN 9b918cb4-84fe-41e4-add7-d8ca40e305f7 still in use: Unable to complete operation on network 9b918cb4-84fe-41e4-add7-d8ca40e305f7. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-fd100fa5-28a5-46c7-a059-74d7d97ce444'] 2025-01-08 21:48:39,721 - WARNING - Deleting VN ctest-vn-16786328 failed..Will retry 2025-01-08 21:48:41,833 - DEBUG - Response for deleting network () 2025-01-08 21:48:41,833 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9de0a53e-340e-4beb-9f3c-0a2146dc5b07 2025-01-08 21:48:41,842 - DEBUG - Response Code: 404 2025-01-08 21:48:41,842 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-01-08 21:48:41,848 - DEBUG - Requesting: http://10.0.0.27:8082/domain/bbdfedfa-6ff2-4881-bcc0-8abc102f5d0b 2025-01-08 21:48:41,903 - DEBUG - Requesting: http://10.0.0.27:8082/project/f18874e5-fbae-450d-8257-8d81089b0258 2025-01-08 21:48:41,976 - INFO - Validated that VN ctest-vn-16786328 is not found in API Server 2025-01-08 21:48:41,988 - DEBUG - VN ctest-vn-16786328 is not present in Agent 10.0.0.27 2025-01-08 21:48:41,988 - INFO - Validated that VN ctest-vn-16786328 is not in any agent 2025-01-08 21:48:42,003 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-16786328 info 2025-01-08 21:48:42,003 - INFO - Deleting VN ctest-vn-33058990 2025-01-08 21:48:42,108 - DEBUG - Response for deleting network () 2025-01-08 21:48:42,108 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/7072cf31-4c81-455c-964f-6de8d3f41fc2 2025-01-08 21:48:42,114 - DEBUG - Response Code: 404 2025-01-08 21:48:42,114 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-01-08 21:48:42,122 - DEBUG - Requesting: http://10.0.0.27:8082/domain/bbdfedfa-6ff2-4881-bcc0-8abc102f5d0b 2025-01-08 21:48:42,179 - DEBUG - Requesting: http://10.0.0.27:8082/project/f18874e5-fbae-450d-8257-8d81089b0258 2025-01-08 21:48:42,251 - INFO - Validated that VN ctest-vn-33058990 is not found in API Server 2025-01-08 21:48:42,263 - DEBUG - VN ctest-vn-33058990 is not present in Agent 10.0.0.27 2025-01-08 21:48:42,263 - INFO - Validated that VN ctest-vn-33058990 is not in any agent 2025-01-08 21:48:42,278 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-33058990 info 2025-01-08 21:48:42,534 - DEBUG - No XMPP flaps were noticed during the test
2025-01-08 21:48:42,534 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-01-08 21:48:42,534 - INFO - -------------------------------------------------------------------------------- 2025-01-08 21:48:43,240 - INFO - Deleted project: ctest-TestBasicPolicy-98652421, ID : f18874e5-fbae-450d-8257-8d81089b0258