2025-04-26 12:50:55,460 - INFO - Domain Default found not creating 2025-04-26 12:50:55,627 - INFO - Project ctest-TestBasicPolicy-49478633 not found, creating it 2025-04-26 12:50:56,118 - INFO - Created Project:ctest-TestBasicPolicy-49478633, ID : 7b154661-dbc6-48c8-99e8-26bdf767e5c9 2025-04-26 12:50:57,690 - INFO - ================================================================================ 2025-04-26 12:50:57,690 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-26 12:50:57,690 - 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-04-26 12:50:57,951 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-04-26 12:50:57,951 - INFO - Initial checks done. Running the testcase now 2025-04-26 12:50:57,951 - INFO - 2025-04-26 12:50:58,555 - DEBUG - Response for create_network : {'network': {'id': '42f650a3-49ec-4c91-bcb1-88f38fa36b58', 'name': 'ctest-vn-26602617', 'tenant_id': '7b154661dbc648c899e826bdf767e5c9', 'project_id': '7b154661dbc648c899e826bdf767e5c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49478633', 'ctest-vn-26602617'], 'port_security_enabled': True, 'description': ''}} 2025-04-26 12:50:58,752 - DEBUG - Response for create_subnet : {'subnet': {'id': '40005b20-43d4-4ef5-bdb5-f73fcb2f739e', 'name': '', 'tenant_id': '7b154661dbc648c899e826bdf767e5c9', 'network_id': '42f650a3-49ec-4c91-bcb1-88f38fa36b58', 'ip_version': 4, 'cidr': '191.118.96.128/26', 'allocation_pools': [{'start': '191.118.96.130', 'end': '191.118.96.190'}], 'gateway_ip': '191.118.96.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.118.96.130', 'tags': [], 'project_id': '7b154661dbc648c899e826bdf767e5c9'}} 2025-04-26 12:50:58,773 - INFO - Created VN ctest-vn-26602617 2025-04-26 12:50:58,828 - DEBUG - VN ctest-vn-26602617 UUID is 42f650a3-49ec-4c91-bcb1-88f38fa36b58 2025-04-26 12:50:59,306 - DEBUG - Response for create_network : {'network': {'id': '2b0959b7-8c23-4a2e-9552-7cb67ef6f158', 'name': 'ctest-vn-81548314', 'tenant_id': '7b154661dbc648c899e826bdf767e5c9', 'project_id': '7b154661dbc648c899e826bdf767e5c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49478633', 'ctest-vn-81548314'], 'port_security_enabled': True, 'description': ''}} 2025-04-26 12:50:59,531 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fb8b594e-85a8-4e2f-9c3b-46caadea73ee', 'name': '', 'tenant_id': '7b154661dbc648c899e826bdf767e5c9', 'network_id': '2b0959b7-8c23-4a2e-9552-7cb67ef6f158', 'ip_version': 4, 'cidr': '177.255.120.128/26', 'allocation_pools': [{'start': '177.255.120.130', 'end': '177.255.120.190'}], 'gateway_ip': '177.255.120.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.255.120.130', 'tags': [], 'project_id': '7b154661dbc648c899e826bdf767e5c9'}} 2025-04-26 12:50:59,549 - INFO - Created VN ctest-vn-81548314 2025-04-26 12:50:59,603 - DEBUG - VN ctest-vn-81548314 UUID is 2b0959b7-8c23-4a2e-9552-7cb67ef6f158 2025-04-26 12:50:59,755 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-49478633:ctest-vn-26602617, 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-49478633:ctest-vn-81548314, 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-04-26 12:51:00,061 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '42f650a3-49ec-4c91-bcb1-88f38fa36b58', 'name': 'ctest-vn-26602617', 'tenant_id': '7b154661dbc648c899e826bdf767e5c9', 'project_id': '7b154661dbc648c899e826bdf767e5c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['40005b20-43d4-4ef5-bdb5-f73fcb2f739e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49478633', 'ctest-vn-26602617'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49478633', 'ctest-policy-allow-all-23228237']], 'subnet_ipam': [{'subnet_cidr': '191.118.96.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-26 12:51:00,336 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2b0959b7-8c23-4a2e-9552-7cb67ef6f158', 'name': 'ctest-vn-81548314', 'tenant_id': '7b154661dbc648c899e826bdf767e5c9', 'project_id': '7b154661dbc648c899e826bdf767e5c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fb8b594e-85a8-4e2f-9c3b-46caadea73ee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49478633', 'ctest-vn-81548314'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49478633', 'ctest-policy-allow-all-23228237']], 'subnet_ipam': [{'subnet_cidr': '177.255.120.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-26 12:51:00,488 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-26 12:51:00,824 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-26 12:51:00,852 - DEBUG - Requesting: http://10.0.0.254:8082/domain/73328cff-782e-4300-b091-c0c789bd5cfb 2025-04-26 12:51:00,867 - DEBUG - Requesting: http://10.0.0.254:8082/project/7b154661-dbc6-48c8-99e8-26bdf767e5c9 2025-04-26 12:51:00,945 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/42f650a3-49ec-4c91-bcb1-88f38fa36b58 2025-04-26 12:51:00,958 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/42f650a3-49ec-4c91-bcb1-88f38fa36b58 2025-04-26 12:51:00,968 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d4c9cc26-818b-4834-b5fe-14e95467ce6f 2025-04-26 12:51:00,975 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d4c9cc26-818b-4834-b5fe-14e95467ce6f 2025-04-26 12:51:00,982 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/498e76c1-9db0-49e7-bb76-0a94cbee0a9a 2025-04-26 12:51:00,989 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-26 12:51:00,989 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/42f650a3-49ec-4c91-bcb1-88f38fa36b58 2025-04-26 12:51:00,998 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d4c9cc26-818b-4834-b5fe-14e95467ce6f 2025-04-26 12:51:01,012 - INFO - Verified VN network id 8 for VN 42f650a3-49ec-4c91-bcb1-88f38fa36b58 2025-04-26 12:51:01,012 - INFO - Verifications in API Server for VN ctest-vn-26602617 passed 2025-04-26 12:51:01,012 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/42f650a3-49ec-4c91-bcb1-88f38fa36b58 2025-04-26 12:51:01,022 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d4c9cc26-818b-4834-b5fe-14e95467ce6f 2025-04-26 12:51:01,029 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d4c9cc26-818b-4834-b5fe-14e95467ce6f 2025-04-26 12:51:01,035 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/498e76c1-9db0-49e7-bb76-0a94cbee0a9a 2025-04-26 12:51:01,047 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49478633:ctest-vn-26602617', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49478633', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4825132713024179345', 'uuid-lslong': '13596799329676520280'}, 'enable': 'true', 'created': '2025-04-26T12:50:58', 'last-modified': '2025-04-26T12:51:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.010983'} 2025-04-26 12:51:01,054 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-26 12:51:01,054 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26602617 passed 2025-04-26 12:51:01,054 - DEBUG - ====Verifying policy data for ctest-vn-26602617 in API_Server ====== 2025-04-26 12:51:01,054 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-26 12:51:01,060 - DEBUG - Requesting: http://10.0.0.254:8082/domain/73328cff-782e-4300-b091-c0c789bd5cfb 2025-04-26 12:51:01,071 - DEBUG - Requesting: http://10.0.0.254:8082/project/7b154661-dbc6-48c8-99e8-26bdf767e5c9 2025-04-26 12:51:01,147 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/42f650a3-49ec-4c91-bcb1-88f38fa36b58 2025-04-26 12:51:01,159 - DEBUG - ==>Verifying data for policy with id: 762a6934-b3fb-4348-8765-9cb1aafeb4bf, fqn: ['default-domain', 'ctest-TestBasicPolicy-49478633', 'ctest-policy-allow-all-23228237'] 2025-04-26 12:51:01,159 - INFO - VN ctest-vn-26602617 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-26 12:51:01,159 - DEBUG - Verifying the vn in opserver 2025-04-26 12:51:01,159 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49478633:ctest-vn-26602617 virtual network link through opserver 10.0.0.254 2025-04-26 12:51:01,159 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-26 12:51:01,491 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-26 12:51:01,547 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49478633:ctest-vn-26602617', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49478633:ctest-vn-26602617?flat'} 2025-04-26 12:51:01,547 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49478633:ctest-vn-26602617 is found in opserver 2025-04-26 12:51:01,559 - DEBUG - Do not have enough data to verify VN in agent 2025-04-26 12:51:01,564 - DEBUG - VRF ids for VN ctest-vn-26602617: {} 2025-04-26 12:51:01,564 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-26 12:51:01,571 - DEBUG - Requesting: http://10.0.0.254:8082/domain/73328cff-782e-4300-b091-c0c789bd5cfb 2025-04-26 12:51:01,583 - DEBUG - Requesting: http://10.0.0.254:8082/project/7b154661-dbc6-48c8-99e8-26bdf767e5c9 2025-04-26 12:51:01,660 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2b0959b7-8c23-4a2e-9552-7cb67ef6f158 2025-04-26 12:51:01,677 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2b0959b7-8c23-4a2e-9552-7cb67ef6f158 2025-04-26 12:51:01,687 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a4e24df1-46ae-4f33-bbc7-f69993f23e40 2025-04-26 12:51:01,695 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a4e24df1-46ae-4f33-bbc7-f69993f23e40 2025-04-26 12:51:01,702 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/03d78102-b906-4983-81ae-ae5a14351b48 2025-04-26 12:51:01,709 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-26 12:51:01,709 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2b0959b7-8c23-4a2e-9552-7cb67ef6f158 2025-04-26 12:51:01,719 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a4e24df1-46ae-4f33-bbc7-f69993f23e40 2025-04-26 12:51:01,734 - INFO - Verified VN network id 9 for VN 2b0959b7-8c23-4a2e-9552-7cb67ef6f158 2025-04-26 12:51:01,734 - INFO - Verifications in API Server for VN ctest-vn-81548314 passed 2025-04-26 12:51:01,734 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2b0959b7-8c23-4a2e-9552-7cb67ef6f158 2025-04-26 12:51:01,745 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a4e24df1-46ae-4f33-bbc7-f69993f23e40 2025-04-26 12:51:01,752 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a4e24df1-46ae-4f33-bbc7-f69993f23e40 2025-04-26 12:51:01,760 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/03d78102-b906-4983-81ae-ae5a14351b48 2025-04-26 12:51:01,772 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49478633:ctest-vn-81548314', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49478633', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3101108463286307374', 'uuid-lslong': '10759799582997541208'}, 'enable': 'true', 'created': '2025-04-26T12:50:59', 'last-modified': '2025-04-26T12:51:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.503720'} 2025-04-26 12:51:01,779 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-26 12:51:01,779 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81548314 passed 2025-04-26 12:51:01,779 - DEBUG - ====Verifying policy data for ctest-vn-81548314 in API_Server ====== 2025-04-26 12:51:01,780 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-26 12:51:01,786 - DEBUG - Requesting: http://10.0.0.254:8082/domain/73328cff-782e-4300-b091-c0c789bd5cfb 2025-04-26 12:51:01,799 - DEBUG - Requesting: http://10.0.0.254:8082/project/7b154661-dbc6-48c8-99e8-26bdf767e5c9 2025-04-26 12:51:01,870 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2b0959b7-8c23-4a2e-9552-7cb67ef6f158 2025-04-26 12:51:01,881 - DEBUG - ==>Verifying data for policy with id: 762a6934-b3fb-4348-8765-9cb1aafeb4bf, fqn: ['default-domain', 'ctest-TestBasicPolicy-49478633', 'ctest-policy-allow-all-23228237'] 2025-04-26 12:51:01,881 - INFO - VN ctest-vn-81548314 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-26 12:51:01,881 - DEBUG - Verifying the vn in opserver 2025-04-26 12:51:01,881 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49478633:ctest-vn-81548314 virtual network link through opserver 10.0.0.254 2025-04-26 12:51:01,881 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-26 12:51:01,892 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49478633:ctest-vn-81548314', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49478633:ctest-vn-81548314?flat'} 2025-04-26 12:51:01,892 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49478633:ctest-vn-81548314 is found in opserver 2025-04-26 12:51:01,903 - DEBUG - Do not have enough data to verify VN in agent 2025-04-26 12:51:01,909 - DEBUG - VRF ids for VN ctest-vn-81548314: {} 2025-04-26 12:51:01,964 - DEBUG - Services list from nova: [, , ] 2025-04-26 12:51:03,069 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3221-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3221-1) 2025-04-26 12:51:04,426 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3221-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3221-1) 2025-04-26 12:51:04,426 - INFO - Waiting for VM ctest-TestBasicPolicy-49478633-27951961 to be up.. 2025-04-26 12:51:04,512 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-26 12:51:09,595 - DEBUG - VM is in ACTIVE state now 2025-04-26 12:51:09,595 - INFO - VM name : ctest-TestBasicPolicy-49478633-27951961 2025-04-26 12:51:09,671 - DEBUG - VM ctest-TestBasicPolicy-49478633-27951961 ID is 9140484f-e1d4-4a29-afb5-bf5b75ba6524 2025-04-26 12:51:09,691 - DEBUG - VM ctest-TestBasicPolicy-49478633-27951961 launched on Node cn-jenkins-deploy-platform-ansible-os-3221-1 2025-04-26 12:51:09,766 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/9140484f-e1d4-4a29-afb5-bf5b75ba6524 2025-04-26 12:51:09,776 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/ae117660-27fa-4e41-94a5-98712b744006 2025-04-26 12:51:13,056 - 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 1026ms') 2025-04-26 12:51:13,056 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-49478633-27951961 failed! 2025-04-26 12:51:13,111 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-49478633:ctest-vn-26602617 is 191.118.96.129 and allocation pool is NOT set 2025-04-26 12:51:15,176 - 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.31 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.76 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.762/6.037/9.313/3.275 ms') 2025-04-26 12:51:15,177 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-49478633-27951961 passed 2025-04-26 12:51:15,335 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-26 12:51:15,335 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-49478633-27951961, IP 191.118.96.131, Port 22 2025-04-26 12:51:15,406 - 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-04-26 12:51:15,499 - DEBUG - VM ctest-TestBasicPolicy-49478633-27951961 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-26 12:51:20,500 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-26 12:51:20,500 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-49478633-27951961, IP 191.118.96.131, Port 22 2025-04-26 12:51:20,655 - DEBUG - VM ctest-TestBasicPolicy-49478633-27951961 is ready for SSH connections 2025-04-26 12:51:20,655 - INFO - Waiting for VM ctest-TestBasicPolicy-49478633-12828339 to be up.. 2025-04-26 12:51:20,735 - DEBUG - VM is in ACTIVE state now 2025-04-26 12:51:20,735 - INFO - VM name : ctest-TestBasicPolicy-49478633-12828339 2025-04-26 12:51:20,817 - DEBUG - VM ctest-TestBasicPolicy-49478633-12828339 ID is d863d52a-bc8a-4825-9638-202e487b3dfb 2025-04-26 12:51:20,817 - DEBUG - VM ctest-TestBasicPolicy-49478633-12828339 launched on Node cn-jenkins-deploy-platform-ansible-os-3221-1 2025-04-26 12:51:20,894 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/d863d52a-bc8a-4825-9638-202e487b3dfb 2025-04-26 12:51:20,902 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/0019efbb-2c28-4b78-84ae-05d3d7908176 2025-04-26 12:51:22,148 - 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.24 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.297 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.297/1.766/3.235/1.469 ms') 2025-04-26 12:51:22,148 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-49478633-12828339 passed 2025-04-26 12:51:22,303 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-26 12:51:22,304 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-49478633-12828339, IP 177.255.120.131, Port 22 2025-04-26 12:51:22,463 - DEBUG - VM ctest-TestBasicPolicy-49478633-12828339 is ready for SSH connections 2025-04-26 12:51:22,464 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-26 12:51:22,464 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 177.255.120.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-04-26 12:51:22,464 - DEBUG - ping -s 56 -c 3 -W 1 177.255.120.131 2025-04-26 12:51:26,173 - DEBUG - PING 177.255.120.131 (177.255.120.131): 56 data bytes 64 bytes from 177.255.120.131: seq=0 ttl=63 time=3.438 ms 64 bytes from 177.255.120.131: seq=1 ttl=63 time=0.975 ms 64 bytes from 177.255.120.131: seq=2 ttl=63 time=0.833 ms --- 177.255.120.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.833/1.748/3.438 ms 2025-04-26 12:51:26,173 - INFO - Ping to IP 177.255.120.131 from VM ctest-TestBasicPolicy-49478633-27951961 passed 2025-04-26 12:51:26,371 - DEBUG - Policy Update Response {"network-policy": {"uuid": "762a6934-b3fb-4348-8765-9cb1aafeb4bf", "href": "http://10.0.0.254:8082/network-policy/762a6934-b3fb-4348-8765-9cb1aafeb4bf"}} 2025-04-26 12:51:26,371 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-26 12:51:26,371 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 177.255.120.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-04-26 12:51:26,372 - DEBUG - ping -s 56 -c 3 -W 1 177.255.120.131 2025-04-26 12:51:29,591 - DEBUG - PING 177.255.120.131 (177.255.120.131): 56 data bytes 64 bytes from 177.255.120.131: seq=0 ttl=63 time=1.869 ms --- 177.255.120.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.869/1.869/1.869 ms 2025-04-26 12:51:29,591 - WARNING - Ping to IP 177.255.120.131 from VM ctest-TestBasicPolicy-49478633-27951961 failed 2025-04-26 12:51:29,591 - INFO - Deleting VM ctest-TestBasicPolicy-49478633-12828339 2025-04-26 12:51:29,657 - INFO - Deleting VM ctest-TestBasicPolicy-49478633-27951961 2025-04-26 12:51:30,051 - INFO - Deleted policy ctest-policy-allow-all-23228237 2025-04-26 12:51:30,052 - INFO - Deleting VN ctest-vn-81548314 2025-04-26 12:51:30,091 - DEBUG - VN 2b0959b7-8c23-4a2e-9552-7cb67ef6f158 still in use: Unable to complete operation on network 2b0959b7-8c23-4a2e-9552-7cb67ef6f158. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ed05b8c3-73ed-484c-a4d0-0ef9c9fa97f0'] 2025-04-26 12:51:30,091 - WARNING - Deleting VN ctest-vn-81548314 failed..Will retry 2025-04-26 12:51:32,211 - DEBUG - Response for deleting network () 2025-04-26 12:51:32,211 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a4e24df1-46ae-4f33-bbc7-f69993f23e40 2025-04-26 12:51:32,219 - DEBUG - Response Code: 404 2025-04-26 12:51:32,220 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-26 12:51:32,229 - DEBUG - Requesting: http://10.0.0.254:8082/domain/73328cff-782e-4300-b091-c0c789bd5cfb 2025-04-26 12:51:32,287 - DEBUG - Requesting: http://10.0.0.254:8082/project/7b154661-dbc6-48c8-99e8-26bdf767e5c9 2025-04-26 12:51:32,365 - INFO - Validated that VN ctest-vn-81548314 is not found in API Server 2025-04-26 12:51:32,377 - DEBUG - VN ctest-vn-81548314 is not present in Agent 10.0.0.254 2025-04-26 12:51:32,377 - INFO - Validated that VN ctest-vn-81548314 is not in any agent 2025-04-26 12:51:32,394 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-81548314 info 2025-04-26 12:51:32,394 - INFO - Deleting VN ctest-vn-26602617 2025-04-26 12:51:32,496 - DEBUG - Response for deleting network () 2025-04-26 12:51:32,496 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d4c9cc26-818b-4834-b5fe-14e95467ce6f 2025-04-26 12:51:32,503 - DEBUG - Response Code: 404 2025-04-26 12:51:32,503 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-26 12:51:32,508 - DEBUG - Requesting: http://10.0.0.254:8082/domain/73328cff-782e-4300-b091-c0c789bd5cfb 2025-04-26 12:51:32,560 - DEBUG - Requesting: http://10.0.0.254:8082/project/7b154661-dbc6-48c8-99e8-26bdf767e5c9 2025-04-26 12:51:32,634 - INFO - Validated that VN ctest-vn-26602617 is not found in API Server 2025-04-26 12:51:32,646 - DEBUG - VN ctest-vn-26602617 is not present in Agent 10.0.0.254 2025-04-26 12:51:32,646 - INFO - Validated that VN ctest-vn-26602617 is not in any agent 2025-04-26 12:51:32,661 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-26602617 info 2025-04-26 12:51:32,921 - DEBUG - No XMPP flaps were noticed during the test
2025-04-26 12:51:32,921 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-04-26 12:51:32,921 - INFO - -------------------------------------------------------------------------------- 2025-04-26 12:51:33,645 - INFO - Deleted project: ctest-TestBasicPolicy-49478633, ID : 7b154661-dbc6-48c8-99e8-26bdf767e5c9