2025-05-29 15:28:17,357 - INFO - Domain Default found not creating 2025-05-29 15:28:17,532 - INFO - Project ctest-TestBasicPolicy-54145431 not found, creating it 2025-05-29 15:28:18,037 - INFO - Created Project:ctest-TestBasicPolicy-54145431, ID : 03b4d82e-bca2-46e1-b19b-9a59a1537cbc 2025-05-29 15:28:19,748 - INFO - ================================================================================ 2025-05-29 15:28:19,748 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-05-29 15:28:19,748 - 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-05-29 15:28:20,010 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-05-29 15:28:20,010 - INFO - Initial checks done. Running the testcase now 2025-05-29 15:28:20,011 - INFO - 2025-05-29 15:28:20,668 - DEBUG - Response for create_network : {'network': {'id': '599b093e-b0d7-49f0-8972-81d7cd03f8eb', 'name': 'ctest-vn-17157220', 'tenant_id': '03b4d82ebca246e1b19b9a59a1537cbc', 'project_id': '03b4d82ebca246e1b19b9a59a1537cbc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54145431', 'ctest-vn-17157220'], 'port_security_enabled': True, 'description': ''}} 2025-05-29 15:28:20,862 - DEBUG - Response for create_subnet : {'subnet': {'id': '7e0b40f9-1f6a-4384-a556-4eda11a2033e', 'name': '', 'tenant_id': '03b4d82ebca246e1b19b9a59a1537cbc', 'network_id': '599b093e-b0d7-49f0-8972-81d7cd03f8eb', 'ip_version': 4, 'cidr': '114.121.186.64/26', 'allocation_pools': [{'start': '114.121.186.66', 'end': '114.121.186.126'}], 'gateway_ip': '114.121.186.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.121.186.66', 'tags': [], 'project_id': '03b4d82ebca246e1b19b9a59a1537cbc'}} 2025-05-29 15:28:20,884 - INFO - Created VN ctest-vn-17157220 2025-05-29 15:28:20,939 - DEBUG - VN ctest-vn-17157220 UUID is 599b093e-b0d7-49f0-8972-81d7cd03f8eb 2025-05-29 15:28:21,284 - DEBUG - Response for create_network : {'network': {'id': '4452a09b-0563-48fb-8fcb-a6c11de9b83a', 'name': 'ctest-vn-62576413', 'tenant_id': '03b4d82ebca246e1b19b9a59a1537cbc', 'project_id': '03b4d82ebca246e1b19b9a59a1537cbc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54145431', 'ctest-vn-62576413'], 'port_security_enabled': True, 'description': ''}} 2025-05-29 15:28:21,498 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd9dcab8a-bdbc-4187-be5b-d103f788b3c3', 'name': '', 'tenant_id': '03b4d82ebca246e1b19b9a59a1537cbc', 'network_id': '4452a09b-0563-48fb-8fcb-a6c11de9b83a', 'ip_version': 4, 'cidr': '91.45.19.192/26', 'allocation_pools': [{'start': '91.45.19.194', 'end': '91.45.19.254'}], 'gateway_ip': '91.45.19.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '91.45.19.194', 'tags': [], 'project_id': '03b4d82ebca246e1b19b9a59a1537cbc'}} 2025-05-29 15:28:21,522 - INFO - Created VN ctest-vn-62576413 2025-05-29 15:28:21,579 - DEBUG - VN ctest-vn-62576413 UUID is 4452a09b-0563-48fb-8fcb-a6c11de9b83a 2025-05-29 15:28:21,714 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54145431:ctest-vn-17157220, 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-54145431:ctest-vn-62576413, 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-05-29 15:28:22,040 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '599b093e-b0d7-49f0-8972-81d7cd03f8eb', 'name': 'ctest-vn-17157220', 'tenant_id': '03b4d82ebca246e1b19b9a59a1537cbc', 'project_id': '03b4d82ebca246e1b19b9a59a1537cbc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7e0b40f9-1f6a-4384-a556-4eda11a2033e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54145431', 'ctest-vn-17157220'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54145431', 'ctest-policy-allow-all-59357626']], 'subnet_ipam': [{'subnet_cidr': '114.121.186.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-29 15:28:22,316 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4452a09b-0563-48fb-8fcb-a6c11de9b83a', 'name': 'ctest-vn-62576413', 'tenant_id': '03b4d82ebca246e1b19b9a59a1537cbc', 'project_id': '03b4d82ebca246e1b19b9a59a1537cbc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d9dcab8a-bdbc-4187-be5b-d103f788b3c3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54145431', 'ctest-vn-62576413'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54145431', 'ctest-policy-allow-all-59357626']], 'subnet_ipam': [{'subnet_cidr': '91.45.19.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-29 15:28:22,463 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-29 15:28:22,813 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-29 15:28:22,847 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c0bb9d69-3b15-45ef-9d1d-a16fb071a210 2025-05-29 15:28:22,864 - DEBUG - Requesting: http://10.0.0.50:8082/project/03b4d82e-bca2-46e1-b19b-9a59a1537cbc 2025-05-29 15:28:22,948 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/599b093e-b0d7-49f0-8972-81d7cd03f8eb 2025-05-29 15:28:22,963 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/599b093e-b0d7-49f0-8972-81d7cd03f8eb 2025-05-29 15:28:22,976 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f7cfdd3c-0c8a-4acc-a47c-00ba34ee25a4 2025-05-29 15:28:22,988 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f7cfdd3c-0c8a-4acc-a47c-00ba34ee25a4 2025-05-29 15:28:22,997 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c877350a-1369-4047-ba42-1bbb5425aeb2 2025-05-29 15:28:23,007 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-29 15:28:23,008 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/599b093e-b0d7-49f0-8972-81d7cd03f8eb 2025-05-29 15:28:23,019 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f7cfdd3c-0c8a-4acc-a47c-00ba34ee25a4 2025-05-29 15:28:23,036 - INFO - Verified VN network id 7 for VN 599b093e-b0d7-49f0-8972-81d7cd03f8eb 2025-05-29 15:28:23,036 - INFO - Verifications in API Server for VN ctest-vn-17157220 passed 2025-05-29 15:28:23,036 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/599b093e-b0d7-49f0-8972-81d7cd03f8eb 2025-05-29 15:28:23,049 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f7cfdd3c-0c8a-4acc-a47c-00ba34ee25a4 2025-05-29 15:28:23,059 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f7cfdd3c-0c8a-4acc-a47c-00ba34ee25a4 2025-05-29 15:28:23,069 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c877350a-1369-4047-ba42-1bbb5425aeb2 2025-05-29 15:28:23,085 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54145431:ctest-vn-17157220', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54145431', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6456764655625259504', 'uuid-lslong': '9904121294398683371'}, 'enable': 'true', 'created': '2025-05-29T15:28:20', 'last-modified': '2025-05-29T15:28:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.069696'} 2025-05-29 15:28:23,093 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-29 15:28:23,094 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17157220 passed 2025-05-29 15:28:23,094 - DEBUG - ====Verifying policy data for ctest-vn-17157220 in API_Server ====== 2025-05-29 15:28:23,094 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-29 15:28:23,101 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c0bb9d69-3b15-45ef-9d1d-a16fb071a210 2025-05-29 15:28:23,116 - DEBUG - Requesting: http://10.0.0.50:8082/project/03b4d82e-bca2-46e1-b19b-9a59a1537cbc 2025-05-29 15:28:23,196 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/599b093e-b0d7-49f0-8972-81d7cd03f8eb 2025-05-29 15:28:23,208 - DEBUG - ==>Verifying data for policy with id: 973dd8f8-79ac-4708-80bb-fca1351d808e, fqn: ['default-domain', 'ctest-TestBasicPolicy-54145431', 'ctest-policy-allow-all-59357626'] 2025-05-29 15:28:23,208 - INFO - VN ctest-vn-17157220 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-29 15:28:23,208 - DEBUG - Verifying the vn in opserver 2025-05-29 15:28:23,208 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54145431:ctest-vn-17157220 virtual network link through opserver 10.0.0.50 2025-05-29 15:28:23,209 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-05-29 15:28:23,549 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-05-29 15:28:23,621 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54145431:ctest-vn-17157220', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54145431:ctest-vn-17157220?flat'} 2025-05-29 15:28:23,621 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54145431:ctest-vn-17157220 is found in opserver 2025-05-29 15:28:23,634 - DEBUG - Do not have enough data to verify VN in agent 2025-05-29 15:28:23,641 - DEBUG - VRF ids for VN ctest-vn-17157220: {} 2025-05-29 15:28:23,641 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-29 15:28:23,650 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c0bb9d69-3b15-45ef-9d1d-a16fb071a210 2025-05-29 15:28:23,665 - DEBUG - Requesting: http://10.0.0.50:8082/project/03b4d82e-bca2-46e1-b19b-9a59a1537cbc 2025-05-29 15:28:23,740 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4452a09b-0563-48fb-8fcb-a6c11de9b83a 2025-05-29 15:28:23,755 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4452a09b-0563-48fb-8fcb-a6c11de9b83a 2025-05-29 15:28:23,767 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/462f51ee-09b9-443d-9f66-7e09e5d76c0e 2025-05-29 15:28:23,777 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/462f51ee-09b9-443d-9f66-7e09e5d76c0e 2025-05-29 15:28:23,786 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/df4f77d0-843c-4d68-9f7e-0aad3fdb49bb 2025-05-29 15:28:23,797 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-29 15:28:23,797 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4452a09b-0563-48fb-8fcb-a6c11de9b83a 2025-05-29 15:28:23,812 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/462f51ee-09b9-443d-9f66-7e09e5d76c0e 2025-05-29 15:28:23,835 - INFO - Verified VN network id 8 for VN 4452a09b-0563-48fb-8fcb-a6c11de9b83a 2025-05-29 15:28:23,836 - INFO - Verifications in API Server for VN ctest-vn-62576413 passed 2025-05-29 15:28:23,836 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4452a09b-0563-48fb-8fcb-a6c11de9b83a 2025-05-29 15:28:23,850 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/462f51ee-09b9-443d-9f66-7e09e5d76c0e 2025-05-29 15:28:23,861 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/462f51ee-09b9-443d-9f66-7e09e5d76c0e 2025-05-29 15:28:23,873 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/df4f77d0-843c-4d68-9f7e-0aad3fdb49bb 2025-05-29 15:28:23,892 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54145431:ctest-vn-62576413', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54145431', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4923173930340141307', 'uuid-lslong': '10361558716056713274'}, 'enable': 'true', 'created': '2025-05-29T15:28:21', 'last-modified': '2025-05-29T15:28:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.617155'} 2025-05-29 15:28:23,900 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-29 15:28:23,900 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62576413 passed 2025-05-29 15:28:23,901 - DEBUG - ====Verifying policy data for ctest-vn-62576413 in API_Server ====== 2025-05-29 15:28:23,901 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-29 15:28:23,909 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c0bb9d69-3b15-45ef-9d1d-a16fb071a210 2025-05-29 15:28:23,923 - DEBUG - Requesting: http://10.0.0.50:8082/project/03b4d82e-bca2-46e1-b19b-9a59a1537cbc 2025-05-29 15:28:24,007 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4452a09b-0563-48fb-8fcb-a6c11de9b83a 2025-05-29 15:28:24,020 - DEBUG - ==>Verifying data for policy with id: 973dd8f8-79ac-4708-80bb-fca1351d808e, fqn: ['default-domain', 'ctest-TestBasicPolicy-54145431', 'ctest-policy-allow-all-59357626'] 2025-05-29 15:28:24,020 - INFO - VN ctest-vn-62576413 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-29 15:28:24,020 - DEBUG - Verifying the vn in opserver 2025-05-29 15:28:24,020 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54145431:ctest-vn-62576413 virtual network link through opserver 10.0.0.50 2025-05-29 15:28:24,020 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-05-29 15:28:24,034 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54145431:ctest-vn-62576413', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54145431:ctest-vn-62576413?flat'} 2025-05-29 15:28:24,034 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54145431:ctest-vn-62576413 is found in opserver 2025-05-29 15:28:24,047 - DEBUG - Do not have enough data to verify VN in agent 2025-05-29 15:28:24,054 - DEBUG - VRF ids for VN ctest-vn-62576413: {} 2025-05-29 15:28:24,121 - DEBUG - Services list from nova: [, , ] 2025-05-29 15:28:25,314 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3368-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3368-1) 2025-05-29 15:28:26,760 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3368-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3368-1) 2025-05-29 15:28:26,760 - INFO - Waiting for VM ctest-TestBasicPolicy-54145431-48723265 to be up.. 2025-05-29 15:28:26,869 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-05-29 15:28:31,970 - DEBUG - VM is in ACTIVE state now 2025-05-29 15:28:31,970 - INFO - VM name : ctest-TestBasicPolicy-54145431-48723265 2025-05-29 15:28:32,067 - DEBUG - VM ctest-TestBasicPolicy-54145431-48723265 ID is 4e1b8cab-3a44-4599-8668-61838d4760e3 2025-05-29 15:28:32,088 - DEBUG - VM ctest-TestBasicPolicy-54145431-48723265 launched on Node cn-jenkins-deploy-platform-ansible-os-3368-1 2025-05-29 15:28:32,183 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/4e1b8cab-3a44-4599-8668-61838d4760e3 2025-05-29 15:28:32,195 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/83d39c2b-1e49-4de3-806f-9d3356be5728 2025-05-29 15:28:35,450 - 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 1003ms') 2025-05-29 15:28:35,451 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-54145431-48723265 failed! 2025-05-29 15:28:35,511 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-54145431:ctest-vn-17157220 is 114.121.186.65 and allocation pool is NOT set 2025-05-29 15:28:37,577 - 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.80 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.551 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.551/5.173/9.796/4.622 ms') 2025-05-29 15:28:37,577 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-54145431-48723265 passed 2025-05-29 15:28:37,735 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-29 15:28:37,735 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-54145431-48723265, IP 114.121.186.67, Port 22 2025-05-29 15:28:37,801 - 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-05-29 15:28:37,905 - DEBUG - VM ctest-TestBasicPolicy-54145431-48723265 is NOT ready for SSH connections, VM status: ACTIVE 2025-05-29 15:28:42,906 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-29 15:28:42,906 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-54145431-48723265, IP 114.121.186.67, Port 22 2025-05-29 15:28:43,066 - DEBUG - VM ctest-TestBasicPolicy-54145431-48723265 is ready for SSH connections 2025-05-29 15:28:43,066 - INFO - Waiting for VM ctest-TestBasicPolicy-54145431-04458551 to be up.. 2025-05-29 15:28:43,161 - DEBUG - VM is in ACTIVE state now 2025-05-29 15:28:43,161 - INFO - VM name : ctest-TestBasicPolicy-54145431-04458551 2025-05-29 15:28:43,251 - DEBUG - VM ctest-TestBasicPolicy-54145431-04458551 ID is 734d9850-2d19-4b12-846f-f38b09052c84 2025-05-29 15:28:43,251 - DEBUG - VM ctest-TestBasicPolicy-54145431-04458551 launched on Node cn-jenkins-deploy-platform-ansible-os-3368-1 2025-05-29 15:28:43,353 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/734d9850-2d19-4b12-846f-f38b09052c84 2025-05-29 15:28:43,365 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/70366b9a-ba39-4ae0-a8ac-b2fb8fe816b0 2025-05-29 15:28:44,611 - 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.21 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.490 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.490/1.852/3.214/1.362 ms') 2025-05-29 15:28:44,611 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-54145431-04458551 passed 2025-05-29 15:28:44,767 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-29 15:28:44,767 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-54145431-04458551, IP 91.45.19.195, Port 22 2025-05-29 15:28:44,923 - DEBUG - VM ctest-TestBasicPolicy-54145431-04458551 is ready for SSH connections 2025-05-29 15:28:44,923 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-29 15:28:44,923 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 91.45.19.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-05-29 15:28:44,923 - DEBUG - ping -s 56 -c 3 -W 1 91.45.19.195 2025-05-29 15:28:49,128 - DEBUG - PING 91.45.19.195 (91.45.19.195): 56 data bytes 64 bytes from 91.45.19.195: seq=0 ttl=63 time=4.445 ms 64 bytes from 91.45.19.195: seq=1 ttl=63 time=1.118 ms 64 bytes from 91.45.19.195: seq=2 ttl=63 time=0.956 ms --- 91.45.19.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.956/2.173/4.445 ms 2025-05-29 15:28:49,128 - INFO - Ping to IP 91.45.19.195 from VM ctest-TestBasicPolicy-54145431-48723265 passed 2025-05-29 15:28:49,319 - DEBUG - Policy Update Response {"network-policy": {"uuid": "973dd8f8-79ac-4708-80bb-fca1351d808e", "href": "http://10.0.0.50:8082/network-policy/973dd8f8-79ac-4708-80bb-fca1351d808e"}} 2025-05-29 15:28:49,319 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-29 15:28:49,319 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 91.45.19.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-05-29 15:28:49,319 - DEBUG - ping -s 56 -c 3 -W 1 91.45.19.195 2025-05-29 15:28:52,551 - DEBUG - PING 91.45.19.195 (91.45.19.195): 56 data bytes 64 bytes from 91.45.19.195: seq=0 ttl=63 time=1.583 ms --- 91.45.19.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.583/1.583/1.583 ms 2025-05-29 15:28:52,551 - WARNING - Ping to IP 91.45.19.195 from VM ctest-TestBasicPolicy-54145431-48723265 failed 2025-05-29 15:28:52,552 - INFO - Deleting VM ctest-TestBasicPolicy-54145431-04458551 2025-05-29 15:28:52,639 - INFO - Deleting VM ctest-TestBasicPolicy-54145431-48723265 2025-05-29 15:28:53,122 - INFO - Deleted policy ctest-policy-allow-all-59357626 2025-05-29 15:28:53,122 - INFO - Deleting VN ctest-vn-62576413 2025-05-29 15:28:53,171 - DEBUG - VN 4452a09b-0563-48fb-8fcb-a6c11de9b83a still in use: Unable to complete operation on network 4452a09b-0563-48fb-8fcb-a6c11de9b83a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-94d21705-60cd-4d47-936e-e9fae4a29dad'] 2025-05-29 15:28:53,171 - WARNING - Deleting VN ctest-vn-62576413 failed..Will retry 2025-05-29 15:28:55,311 - DEBUG - Response for deleting network () 2025-05-29 15:28:55,312 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/462f51ee-09b9-443d-9f66-7e09e5d76c0e 2025-05-29 15:28:55,321 - DEBUG - Response Code: 404 2025-05-29 15:28:55,322 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-29 15:28:55,328 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c0bb9d69-3b15-45ef-9d1d-a16fb071a210 2025-05-29 15:28:55,385 - DEBUG - Requesting: http://10.0.0.50:8082/project/03b4d82e-bca2-46e1-b19b-9a59a1537cbc 2025-05-29 15:28:55,468 - INFO - Validated that VN ctest-vn-62576413 is not found in API Server 2025-05-29 15:28:55,484 - DEBUG - VN ctest-vn-62576413 is not present in Agent 10.0.0.50 2025-05-29 15:28:55,484 - INFO - Validated that VN ctest-vn-62576413 is not in any agent 2025-05-29 15:28:55,505 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-62576413 info 2025-05-29 15:28:55,506 - INFO - Deleting VN ctest-vn-17157220 2025-05-29 15:28:55,639 - DEBUG - Response for deleting network () 2025-05-29 15:28:55,639 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f7cfdd3c-0c8a-4acc-a47c-00ba34ee25a4 2025-05-29 15:28:55,651 - DEBUG - Response Code: 404 2025-05-29 15:28:55,652 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-29 15:28:55,659 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c0bb9d69-3b15-45ef-9d1d-a16fb071a210 2025-05-29 15:28:55,714 - DEBUG - Requesting: http://10.0.0.50:8082/project/03b4d82e-bca2-46e1-b19b-9a59a1537cbc 2025-05-29 15:28:55,798 - INFO - Validated that VN ctest-vn-17157220 is not found in API Server 2025-05-29 15:28:55,813 - DEBUG - VN ctest-vn-17157220 is not present in Agent 10.0.0.50 2025-05-29 15:28:55,813 - INFO - Validated that VN ctest-vn-17157220 is not in any agent 2025-05-29 15:28:55,834 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-17157220 info 2025-05-29 15:28:56,095 - DEBUG - No XMPP flaps were noticed during the test
2025-05-29 15:28:56,095 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37]
2025-05-29 15:28:56,095 - INFO - -------------------------------------------------------------------------------- 2025-05-29 15:28:56,890 - INFO - Deleted project: ctest-TestBasicPolicy-54145431, ID : 03b4d82e-bca2-46e1-b19b-9a59a1537cbc