2025-07-18 20:52:11,289 - INFO - Domain Default found not creating 2025-07-18 20:52:11,433 - INFO - Project ctest-TestBasicPolicy-50245825 not found, creating it 2025-07-18 20:52:11,897 - INFO - Created Project:ctest-TestBasicPolicy-50245825, ID : bc7e4bf7-bb5b-4c4a-863c-b19ccf26406d 2025-07-18 20:52:13,344 - INFO - ================================================================================ 2025-07-18 20:52:13,344 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-07-18 20:52:13,344 - 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-07-18 20:52:13,598 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.17': '0'}} with 2025-07-18 20:52:13,598 - INFO - Initial checks done. Running the testcase now 2025-07-18 20:52:13,598 - INFO - 2025-07-18 20:52:14,146 - DEBUG - Response for create_network : {'network': {'id': '7f98cb12-279e-4254-abb2-374077009ddb', 'name': 'ctest-vn-23048273', 'tenant_id': 'bc7e4bf7bb5b4c4a863cb19ccf26406d', 'project_id': 'bc7e4bf7bb5b4c4a863cb19ccf26406d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50245825', 'ctest-vn-23048273'], 'port_security_enabled': True, 'description': ''}} 2025-07-18 20:52:14,375 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cea333ea-5a28-46bc-ad1b-634f60f56ad2', 'name': '', 'tenant_id': 'bc7e4bf7bb5b4c4a863cb19ccf26406d', 'network_id': '7f98cb12-279e-4254-abb2-374077009ddb', 'ip_version': 4, 'cidr': '151.223.39.192/26', 'allocation_pools': [{'start': '151.223.39.194', 'end': '151.223.39.254'}], 'gateway_ip': '151.223.39.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.223.39.194', 'tags': [], 'project_id': 'bc7e4bf7bb5b4c4a863cb19ccf26406d'}} 2025-07-18 20:52:14,396 - INFO - Created VN ctest-vn-23048273 2025-07-18 20:52:14,447 - DEBUG - VN ctest-vn-23048273 UUID is 7f98cb12-279e-4254-abb2-374077009ddb 2025-07-18 20:52:14,750 - DEBUG - Response for create_network : {'network': {'id': 'f23720f7-7a69-4d31-95f0-829ffeaae349', 'name': 'ctest-vn-83092861', 'tenant_id': 'bc7e4bf7bb5b4c4a863cb19ccf26406d', 'project_id': 'bc7e4bf7bb5b4c4a863cb19ccf26406d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50245825', 'ctest-vn-83092861'], 'port_security_enabled': True, 'description': ''}} 2025-07-18 20:52:14,920 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c05173da-a5be-4860-8549-25939d5a22ea', 'name': '', 'tenant_id': 'bc7e4bf7bb5b4c4a863cb19ccf26406d', 'network_id': 'f23720f7-7a69-4d31-95f0-829ffeaae349', 'ip_version': 4, 'cidr': '134.99.80.64/26', 'allocation_pools': [{'start': '134.99.80.66', 'end': '134.99.80.126'}], 'gateway_ip': '134.99.80.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.99.80.66', 'tags': [], 'project_id': 'bc7e4bf7bb5b4c4a863cb19ccf26406d'}} 2025-07-18 20:52:14,938 - INFO - Created VN ctest-vn-83092861 2025-07-18 20:52:14,995 - DEBUG - VN ctest-vn-83092861 UUID is f23720f7-7a69-4d31-95f0-829ffeaae349 2025-07-18 20:52:15,111 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-50245825:ctest-vn-23048273, 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-50245825:ctest-vn-83092861, 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-07-18 20:52:15,418 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7f98cb12-279e-4254-abb2-374077009ddb', 'name': 'ctest-vn-23048273', 'tenant_id': 'bc7e4bf7bb5b4c4a863cb19ccf26406d', 'project_id': 'bc7e4bf7bb5b4c4a863cb19ccf26406d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cea333ea-5a28-46bc-ad1b-634f60f56ad2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50245825', 'ctest-vn-23048273'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50245825', 'ctest-policy-allow-all-49284980']], 'subnet_ipam': [{'subnet_cidr': '151.223.39.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-18 20:52:15,654 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f23720f7-7a69-4d31-95f0-829ffeaae349', 'name': 'ctest-vn-83092861', 'tenant_id': 'bc7e4bf7bb5b4c4a863cb19ccf26406d', 'project_id': 'bc7e4bf7bb5b4c4a863cb19ccf26406d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c05173da-a5be-4860-8549-25939d5a22ea'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50245825', 'ctest-vn-83092861'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50245825', 'ctest-policy-allow-all-49284980']], 'subnet_ipam': [{'subnet_cidr': '134.99.80.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-18 20:52:15,819 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-07-18 20:52:16,118 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-07-18 20:52:16,145 - DEBUG - Requesting: http://10.0.0.129:8082/domain/bd459670-1c23-4771-9aab-010269ea5339 2025-07-18 20:52:16,158 - DEBUG - Requesting: http://10.0.0.129:8082/project/bc7e4bf7-bb5b-4c4a-863c-b19ccf26406d 2025-07-18 20:52:16,229 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/7f98cb12-279e-4254-abb2-374077009ddb 2025-07-18 20:52:16,241 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/7f98cb12-279e-4254-abb2-374077009ddb 2025-07-18 20:52:16,251 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/1563609c-58cb-40bd-8ce2-5f656897a6bd 2025-07-18 20:52:16,258 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/1563609c-58cb-40bd-8ce2-5f656897a6bd 2025-07-18 20:52:16,265 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/ca0b7a88-da9d-437c-9253-f01f6682ba1f 2025-07-18 20:52:16,273 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-18 20:52:16,273 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/7f98cb12-279e-4254-abb2-374077009ddb 2025-07-18 20:52:16,282 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/1563609c-58cb-40bd-8ce2-5f656897a6bd 2025-07-18 20:52:16,299 - INFO - Verified VN network id 8 for VN 7f98cb12-279e-4254-abb2-374077009ddb 2025-07-18 20:52:16,299 - INFO - Verifications in API Server for VN ctest-vn-23048273 passed 2025-07-18 20:52:16,299 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/7f98cb12-279e-4254-abb2-374077009ddb 2025-07-18 20:52:16,311 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/1563609c-58cb-40bd-8ce2-5f656897a6bd 2025-07-18 20:52:16,318 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/1563609c-58cb-40bd-8ce2-5f656897a6bd 2025-07-18 20:52:16,326 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/ca0b7a88-da9d-437c-9253-f01f6682ba1f 2025-07-18 20:52:16,339 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50245825:ctest-vn-23048273', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50245825', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9194321918111400532', 'uuid-lslong': '12372011876354137563'}, 'enable': 'true', 'created': '2025-07-18T20:52:14', 'last-modified': '2025-07-18T20:52:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.939921'} 2025-07-18 20:52:16,346 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-18 20:52:16,346 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23048273 passed 2025-07-18 20:52:16,347 - DEBUG - ====Verifying policy data for ctest-vn-23048273 in API_Server ====== 2025-07-18 20:52:16,347 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-07-18 20:52:16,352 - DEBUG - Requesting: http://10.0.0.129:8082/domain/bd459670-1c23-4771-9aab-010269ea5339 2025-07-18 20:52:16,365 - DEBUG - Requesting: http://10.0.0.129:8082/project/bc7e4bf7-bb5b-4c4a-863c-b19ccf26406d 2025-07-18 20:52:16,438 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/7f98cb12-279e-4254-abb2-374077009ddb 2025-07-18 20:52:16,450 - DEBUG - ==>Verifying data for policy with id: b7822a11-18fb-4a98-ade3-e6066217c85a, fqn: ['default-domain', 'ctest-TestBasicPolicy-50245825', 'ctest-policy-allow-all-49284980'] 2025-07-18 20:52:16,450 - INFO - VN ctest-vn-23048273 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-18 20:52:16,450 - DEBUG - Verifying the vn in opserver 2025-07-18 20:52:16,450 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50245825:ctest-vn-23048273 virtual network link through opserver 10.0.0.129 2025-07-18 20:52:16,450 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2025-07-18 20:52:16,748 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2025-07-18 20:52:16,801 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50245825:ctest-vn-23048273', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50245825:ctest-vn-23048273?flat'} 2025-07-18 20:52:16,801 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50245825:ctest-vn-23048273 is found in opserver 2025-07-18 20:52:16,813 - DEBUG - Do not have enough data to verify VN in agent 2025-07-18 20:52:16,820 - DEBUG - VRF ids for VN ctest-vn-23048273: {} 2025-07-18 20:52:16,820 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-07-18 20:52:16,826 - DEBUG - Requesting: http://10.0.0.129:8082/domain/bd459670-1c23-4771-9aab-010269ea5339 2025-07-18 20:52:16,838 - DEBUG - Requesting: http://10.0.0.129:8082/project/bc7e4bf7-bb5b-4c4a-863c-b19ccf26406d 2025-07-18 20:52:16,910 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/f23720f7-7a69-4d31-95f0-829ffeaae349 2025-07-18 20:52:16,923 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/f23720f7-7a69-4d31-95f0-829ffeaae349 2025-07-18 20:52:16,933 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/be96b081-34ea-427d-98cc-aa22fe4a1e66 2025-07-18 20:52:16,940 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/be96b081-34ea-427d-98cc-aa22fe4a1e66 2025-07-18 20:52:16,947 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/9fece178-4f83-43d1-9594-4afdbab6a8a0 2025-07-18 20:52:16,954 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-18 20:52:16,954 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/f23720f7-7a69-4d31-95f0-829ffeaae349 2025-07-18 20:52:16,965 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/be96b081-34ea-427d-98cc-aa22fe4a1e66 2025-07-18 20:52:16,979 - INFO - Verified VN network id 9 for VN f23720f7-7a69-4d31-95f0-829ffeaae349 2025-07-18 20:52:16,979 - INFO - Verifications in API Server for VN ctest-vn-83092861 passed 2025-07-18 20:52:16,979 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/f23720f7-7a69-4d31-95f0-829ffeaae349 2025-07-18 20:52:16,990 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/be96b081-34ea-427d-98cc-aa22fe4a1e66 2025-07-18 20:52:16,998 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/be96b081-34ea-427d-98cc-aa22fe4a1e66 2025-07-18 20:52:17,006 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/9fece178-4f83-43d1-9594-4afdbab6a8a0 2025-07-18 20:52:17,019 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50245825:ctest-vn-83092861', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50245825', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17453455128180378929', 'uuid-lslong': '10804279129745843017'}, 'enable': 'true', 'created': '2025-07-18T20:52:14', 'last-modified': '2025-07-18T20:52:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.387968'} 2025-07-18 20:52:17,025 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-18 20:52:17,026 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83092861 passed 2025-07-18 20:52:17,026 - DEBUG - ====Verifying policy data for ctest-vn-83092861 in API_Server ====== 2025-07-18 20:52:17,026 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-07-18 20:52:17,032 - DEBUG - Requesting: http://10.0.0.129:8082/domain/bd459670-1c23-4771-9aab-010269ea5339 2025-07-18 20:52:17,044 - DEBUG - Requesting: http://10.0.0.129:8082/project/bc7e4bf7-bb5b-4c4a-863c-b19ccf26406d 2025-07-18 20:52:17,118 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/f23720f7-7a69-4d31-95f0-829ffeaae349 2025-07-18 20:52:17,128 - DEBUG - ==>Verifying data for policy with id: b7822a11-18fb-4a98-ade3-e6066217c85a, fqn: ['default-domain', 'ctest-TestBasicPolicy-50245825', 'ctest-policy-allow-all-49284980'] 2025-07-18 20:52:17,128 - INFO - VN ctest-vn-83092861 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-18 20:52:17,128 - DEBUG - Verifying the vn in opserver 2025-07-18 20:52:17,128 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50245825:ctest-vn-83092861 virtual network link through opserver 10.0.0.129 2025-07-18 20:52:17,128 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2025-07-18 20:52:17,139 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50245825:ctest-vn-83092861', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50245825:ctest-vn-83092861?flat'} 2025-07-18 20:52:17,139 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50245825:ctest-vn-83092861 is found in opserver 2025-07-18 20:52:17,150 - DEBUG - Do not have enough data to verify VN in agent 2025-07-18 20:52:17,156 - DEBUG - VRF ids for VN ctest-vn-83092861: {} 2025-07-18 20:52:17,213 - DEBUG - Services list from nova: [, , ] 2025-07-18 20:52:18,209 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3664-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3664-1) 2025-07-18 20:52:19,410 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3664-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3664-1) 2025-07-18 20:52:19,411 - INFO - Waiting for VM ctest-TestBasicPolicy-50245825-75164493 to be up.. 2025-07-18 20:52:19,487 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-18 20:52:24,564 - DEBUG - VM is in ACTIVE state now 2025-07-18 20:52:24,564 - INFO - VM name : ctest-TestBasicPolicy-50245825-75164493 2025-07-18 20:52:24,643 - DEBUG - VM ctest-TestBasicPolicy-50245825-75164493 ID is 0ec8711c-4999-4caa-ba25-0d9cd7efab21 2025-07-18 20:52:24,663 - DEBUG - VM ctest-TestBasicPolicy-50245825-75164493 launched on Node cn-jenkins-deploy-platform-ansible-os-3664-1 2025-07-18 20:52:24,736 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-machine/0ec8711c-4999-4caa-ba25-0d9cd7efab21 2025-07-18 20:52:24,745 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-machine-interface/42f3b93a-d6c3-4c77-aa2a-8584bbd300ba 2025-07-18 20:52:28,010 - 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 1027ms') 2025-07-18 20:52:28,011 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-50245825-75164493 failed! 2025-07-18 20:52:28,067 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-50245825:ctest-vn-23048273 is 151.223.39.193 and allocation pool is NOT set 2025-07-18 20:52:30,133 - 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.56 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.73 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 1.729/3.142/4.555/1.413 ms') 2025-07-18 20:52:30,133 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-50245825-75164493 passed 2025-07-18 20:52:30,287 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-18 20:52:30,287 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-50245825-75164493, IP 151.223.39.195, Port 22 2025-07-18 20:52:30,357 - 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-07-18 20:52:30,433 - DEBUG - VM ctest-TestBasicPolicy-50245825-75164493 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-18 20:52:35,433 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-18 20:52:35,433 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-50245825-75164493, IP 151.223.39.195, Port 22 2025-07-18 20:52:35,595 - DEBUG - VM ctest-TestBasicPolicy-50245825-75164493 is ready for SSH connections 2025-07-18 20:52:35,595 - INFO - Waiting for VM ctest-TestBasicPolicy-50245825-60260685 to be up.. 2025-07-18 20:52:35,671 - DEBUG - VM is in ACTIVE state now 2025-07-18 20:52:35,671 - INFO - VM name : ctest-TestBasicPolicy-50245825-60260685 2025-07-18 20:52:35,753 - DEBUG - VM ctest-TestBasicPolicy-50245825-60260685 ID is 8bc32a3d-b800-4868-b345-0bd5eeb45547 2025-07-18 20:52:35,753 - DEBUG - VM ctest-TestBasicPolicy-50245825-60260685 launched on Node cn-jenkins-deploy-platform-ansible-os-3664-1 2025-07-18 20:52:35,832 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-machine/8bc32a3d-b800-4868-b345-0bd5eeb45547 2025-07-18 20:52:35,841 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-machine-interface/5c0681e7-a7b3-4924-bffc-5f278d947b93 2025-07-18 20:52:37,083 - 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=2.95 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.346 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.346/1.648/2.950/1.302 ms') 2025-07-18 20:52:37,083 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-50245825-60260685 passed 2025-07-18 20:52:37,235 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-18 20:52:37,236 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-50245825-60260685, IP 134.99.80.67, Port 22 2025-07-18 20:52:37,386 - DEBUG - VM ctest-TestBasicPolicy-50245825-60260685 is ready for SSH connections 2025-07-18 20:52:37,387 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-18 20:52:37,387 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 134.99.80.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.129, gateway password: c0ntrail123 2025-07-18 20:52:37,387 - DEBUG - ping -s 56 -c 3 -W 1 134.99.80.67 2025-07-18 20:52:41,165 - DEBUG - PING 134.99.80.67 (134.99.80.67): 56 data bytes 64 bytes from 134.99.80.67: seq=0 ttl=63 time=4.004 ms 64 bytes from 134.99.80.67: seq=1 ttl=63 time=1.074 ms 64 bytes from 134.99.80.67: seq=2 ttl=63 time=1.123 ms --- 134.99.80.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.074/2.067/4.004 ms 2025-07-18 20:52:41,165 - INFO - Ping to IP 134.99.80.67 from VM ctest-TestBasicPolicy-50245825-75164493 passed 2025-07-18 20:52:41,347 - DEBUG - Policy Update Response {"network-policy": {"uuid": "b7822a11-18fb-4a98-ade3-e6066217c85a", "href": "http://10.0.0.129:8082/network-policy/b7822a11-18fb-4a98-ade3-e6066217c85a"}} 2025-07-18 20:52:41,348 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-18 20:52:41,348 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 134.99.80.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.129, gateway password: c0ntrail123 2025-07-18 20:52:41,348 - DEBUG - ping -s 56 -c 3 -W 1 134.99.80.67 2025-07-18 20:52:44,562 - DEBUG - PING 134.99.80.67 (134.99.80.67): 56 data bytes 64 bytes from 134.99.80.67: seq=0 ttl=63 time=1.404 ms --- 134.99.80.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.404/1.404/1.404 ms 2025-07-18 20:52:44,562 - WARNING - Ping to IP 134.99.80.67 from VM ctest-TestBasicPolicy-50245825-75164493 failed 2025-07-18 20:52:44,563 - INFO - Deleting VM ctest-TestBasicPolicy-50245825-60260685 2025-07-18 20:52:44,630 - INFO - Deleting VM ctest-TestBasicPolicy-50245825-75164493 2025-07-18 20:52:45,031 - INFO - Deleted policy ctest-policy-allow-all-49284980 2025-07-18 20:52:45,031 - INFO - Deleting VN ctest-vn-83092861 2025-07-18 20:52:45,070 - DEBUG - VN f23720f7-7a69-4d31-95f0-829ffeaae349 still in use: Unable to complete operation on network f23720f7-7a69-4d31-95f0-829ffeaae349. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-76eb3972-d57b-47cd-8654-6a3fe955969e'] 2025-07-18 20:52:45,070 - WARNING - Deleting VN ctest-vn-83092861 failed..Will retry 2025-07-18 20:52:47,172 - DEBUG - Response for deleting network () 2025-07-18 20:52:47,172 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/be96b081-34ea-427d-98cc-aa22fe4a1e66 2025-07-18 20:52:47,178 - DEBUG - Response Code: 404 2025-07-18 20:52:47,178 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-07-18 20:52:47,186 - DEBUG - Requesting: http://10.0.0.129:8082/domain/bd459670-1c23-4771-9aab-010269ea5339 2025-07-18 20:52:47,241 - DEBUG - Requesting: http://10.0.0.129:8082/project/bc7e4bf7-bb5b-4c4a-863c-b19ccf26406d 2025-07-18 20:52:47,318 - INFO - Validated that VN ctest-vn-83092861 is not found in API Server 2025-07-18 20:52:47,329 - DEBUG - VN ctest-vn-83092861 is not present in Agent 10.0.0.129 2025-07-18 20:52:47,329 - INFO - Validated that VN ctest-vn-83092861 is not in any agent 2025-07-18 20:52:47,346 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-83092861 info 2025-07-18 20:52:47,346 - INFO - Deleting VN ctest-vn-23048273 2025-07-18 20:52:47,568 - DEBUG - Response for deleting network () 2025-07-18 20:52:47,568 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/1563609c-58cb-40bd-8ce2-5f656897a6bd 2025-07-18 20:52:47,585 - DEBUG - Response Code: 404 2025-07-18 20:52:47,585 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-07-18 20:52:47,597 - DEBUG - Requesting: http://10.0.0.129:8082/domain/bd459670-1c23-4771-9aab-010269ea5339 2025-07-18 20:52:47,608 - DEBUG - Requesting: http://10.0.0.129:8082/project/bc7e4bf7-bb5b-4c4a-863c-b19ccf26406d 2025-07-18 20:52:47,692 - INFO - Validated that VN ctest-vn-23048273 is not found in API Server 2025-07-18 20:52:47,704 - DEBUG - VN ctest-vn-23048273 is not present in Agent 10.0.0.129 2025-07-18 20:52:47,704 - INFO - Validated that VN ctest-vn-23048273 is not in any agent 2025-07-18 20:52:47,723 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-23048273 info 2025-07-18 20:52:47,986 - DEBUG - No XMPP flaps were noticed during the test
2025-07-18 20:52:47,986 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:34]
2025-07-18 20:52:47,986 - INFO - -------------------------------------------------------------------------------- 2025-07-18 20:52:48,671 - INFO - Deleted project: ctest-TestBasicPolicy-50245825, ID : bc7e4bf7-bb5b-4c4a-863c-b19ccf26406d