2025-11-01 07:42:45,085 - INFO - Domain Default found not creating 2025-11-01 07:42:45,271 - INFO - Project ctest-TestBasicPolicy-69653770 not found, creating it 2025-11-01 07:42:45,770 - INFO - Created Project:ctest-TestBasicPolicy-69653770, ID : d9732b4d-98b9-4474-9f73-42cb9716f7b8 2025-11-01 07:42:47,554 - INFO - ================================================================================ 2025-11-01 07:42:47,555 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-11-01 07:42:47,555 - 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-11-01 07:42:47,847 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-11-01 07:42:47,847 - INFO - Initial checks done. Running the testcase now 2025-11-01 07:42:47,847 - INFO - 2025-11-01 07:42:48,492 - DEBUG - Response for create_network : {'network': {'id': '5a4debc7-8f33-4e81-8ee5-c10679a74904', 'name': 'ctest-vn-29357249', 'tenant_id': 'd9732b4d98b944749f7342cb9716f7b8', 'project_id': 'd9732b4d98b944749f7342cb9716f7b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69653770', 'ctest-vn-29357249'], 'port_security_enabled': True, 'description': ''}} 2025-11-01 07:42:48,733 - DEBUG - Response for create_subnet : {'subnet': {'id': '6a4d7c35-7159-4918-a966-7d086223aa3b', 'name': '', 'tenant_id': 'd9732b4d98b944749f7342cb9716f7b8', 'network_id': '5a4debc7-8f33-4e81-8ee5-c10679a74904', 'ip_version': 4, 'cidr': '22.17.71.128/26', 'allocation_pools': [{'start': '22.17.71.130', 'end': '22.17.71.190'}], 'gateway_ip': '22.17.71.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.17.71.130', 'tags': [], 'project_id': 'd9732b4d98b944749f7342cb9716f7b8'}} 2025-11-01 07:42:48,756 - INFO - Created VN ctest-vn-29357249 2025-11-01 07:42:48,811 - DEBUG - VN ctest-vn-29357249 UUID is 5a4debc7-8f33-4e81-8ee5-c10679a74904 2025-11-01 07:42:49,336 - DEBUG - Response for create_network : {'network': {'id': '184fbbce-9422-4595-bbf8-abcc8de05516', 'name': 'ctest-vn-55483853', 'tenant_id': 'd9732b4d98b944749f7342cb9716f7b8', 'project_id': 'd9732b4d98b944749f7342cb9716f7b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69653770', 'ctest-vn-55483853'], 'port_security_enabled': True, 'description': ''}} 2025-11-01 07:42:49,677 - DEBUG - Response for create_subnet : {'subnet': {'id': 'db8822f3-93ab-4616-bc9d-eadad2d4c995', 'name': '', 'tenant_id': 'd9732b4d98b944749f7342cb9716f7b8', 'network_id': '184fbbce-9422-4595-bbf8-abcc8de05516', 'ip_version': 4, 'cidr': '167.133.205.192/26', 'allocation_pools': [{'start': '167.133.205.194', 'end': '167.133.205.254'}], 'gateway_ip': '167.133.205.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.133.205.194', 'tags': [], 'project_id': 'd9732b4d98b944749f7342cb9716f7b8'}} 2025-11-01 07:42:49,707 - INFO - Created VN ctest-vn-55483853 2025-11-01 07:42:49,765 - DEBUG - VN ctest-vn-55483853 UUID is 184fbbce-9422-4595-bbf8-abcc8de05516 2025-11-01 07:42:49,898 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-69653770:ctest-vn-29357249, 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-69653770:ctest-vn-55483853, 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-11-01 07:42:50,229 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5a4debc7-8f33-4e81-8ee5-c10679a74904', 'name': 'ctest-vn-29357249', 'tenant_id': 'd9732b4d98b944749f7342cb9716f7b8', 'project_id': 'd9732b4d98b944749f7342cb9716f7b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6a4d7c35-7159-4918-a966-7d086223aa3b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69653770', 'ctest-vn-29357249'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69653770', 'ctest-policy-allow-all-93133342']], 'subnet_ipam': [{'subnet_cidr': '22.17.71.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-01 07:42:50,514 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '184fbbce-9422-4595-bbf8-abcc8de05516', 'name': 'ctest-vn-55483853', 'tenant_id': 'd9732b4d98b944749f7342cb9716f7b8', 'project_id': 'd9732b4d98b944749f7342cb9716f7b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['db8822f3-93ab-4616-bc9d-eadad2d4c995'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69653770', 'ctest-vn-55483853'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69653770', 'ctest-policy-allow-all-93133342']], 'subnet_ipam': [{'subnet_cidr': '167.133.205.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-01 07:42:50,679 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-01 07:42:50,992 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-01 07:42:51,027 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2958400e-9cbc-4726-a49e-032218ed4947 2025-11-01 07:42:51,048 - DEBUG - Requesting: http://10.0.0.38:8082/project/d9732b4d-98b9-4474-9f73-42cb9716f7b8 2025-11-01 07:42:51,140 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5a4debc7-8f33-4e81-8ee5-c10679a74904 2025-11-01 07:42:51,159 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5a4debc7-8f33-4e81-8ee5-c10679a74904 2025-11-01 07:42:51,176 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4a709748-c2a8-44a3-bb64-f6d0fdfad8dc 2025-11-01 07:42:51,188 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4a709748-c2a8-44a3-bb64-f6d0fdfad8dc 2025-11-01 07:42:51,201 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/83a12a70-92f9-4594-b530-0e9f374c23e9 2025-11-01 07:42:51,209 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-01 07:42:51,209 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5a4debc7-8f33-4e81-8ee5-c10679a74904 2025-11-01 07:42:51,220 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4a709748-c2a8-44a3-bb64-f6d0fdfad8dc 2025-11-01 07:42:51,246 - INFO - Verified VN network id 11 for VN 5a4debc7-8f33-4e81-8ee5-c10679a74904 2025-11-01 07:42:51,246 - INFO - Verifications in API Server for VN ctest-vn-29357249 passed 2025-11-01 07:42:51,246 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5a4debc7-8f33-4e81-8ee5-c10679a74904 2025-11-01 07:42:51,258 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4a709748-c2a8-44a3-bb64-f6d0fdfad8dc 2025-11-01 07:42:51,269 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4a709748-c2a8-44a3-bb64-f6d0fdfad8dc 2025-11-01 07:42:51,276 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/83a12a70-92f9-4594-b530-0e9f374c23e9 2025-11-01 07:42:51,291 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69653770:ctest-vn-29357249', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69653770', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6507116278953758337', 'uuid-lslong': '10296848356607478020'}, 'enable': 'true', 'created': '2025-11-01T07:42:48', 'last-modified': '2025-11-01T07:42:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.087982'} 2025-11-01 07:42:51,299 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-01 07:42:51,299 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29357249 passed 2025-11-01 07:42:51,300 - DEBUG - ====Verifying policy data for ctest-vn-29357249 in API_Server ====== 2025-11-01 07:42:51,300 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-01 07:42:51,307 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2958400e-9cbc-4726-a49e-032218ed4947 2025-11-01 07:42:51,325 - DEBUG - Requesting: http://10.0.0.38:8082/project/d9732b4d-98b9-4474-9f73-42cb9716f7b8 2025-11-01 07:42:51,434 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5a4debc7-8f33-4e81-8ee5-c10679a74904 2025-11-01 07:42:51,461 - DEBUG - ==>Verifying data for policy with id: 15cbb774-f957-4029-ad14-596446d5f576, fqn: ['default-domain', 'ctest-TestBasicPolicy-69653770', 'ctest-policy-allow-all-93133342'] 2025-11-01 07:42:51,461 - INFO - VN ctest-vn-29357249 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-01 07:42:51,461 - DEBUG - Verifying the vn in opserver 2025-11-01 07:42:51,461 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69653770:ctest-vn-29357249 virtual network link through opserver 10.0.0.38 2025-11-01 07:42:51,462 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-01 07:42:51,794 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-01 07:42:51,869 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69653770:ctest-vn-29357249', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69653770:ctest-vn-29357249?flat'} 2025-11-01 07:42:51,869 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69653770:ctest-vn-29357249 is found in opserver 2025-11-01 07:42:51,899 - DEBUG - Do not have enough data to verify VN in agent 2025-11-01 07:42:51,912 - DEBUG - VRF ids for VN ctest-vn-29357249: {} 2025-11-01 07:42:51,912 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-01 07:42:51,921 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2958400e-9cbc-4726-a49e-032218ed4947 2025-11-01 07:42:51,940 - DEBUG - Requesting: http://10.0.0.38:8082/project/d9732b4d-98b9-4474-9f73-42cb9716f7b8 2025-11-01 07:42:52,026 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/184fbbce-9422-4595-bbf8-abcc8de05516 2025-11-01 07:42:52,042 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/184fbbce-9422-4595-bbf8-abcc8de05516 2025-11-01 07:42:52,059 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6f1ac424-a51c-4dfe-8f14-6c9d93c76828 2025-11-01 07:42:52,071 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6f1ac424-a51c-4dfe-8f14-6c9d93c76828 2025-11-01 07:42:52,083 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5b10cefe-9d7a-442a-a025-049543bc54ff 2025-11-01 07:42:52,092 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-01 07:42:52,093 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/184fbbce-9422-4595-bbf8-abcc8de05516 2025-11-01 07:42:52,107 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6f1ac424-a51c-4dfe-8f14-6c9d93c76828 2025-11-01 07:42:52,127 - INFO - Verified VN network id 12 for VN 184fbbce-9422-4595-bbf8-abcc8de05516 2025-11-01 07:42:52,128 - INFO - Verifications in API Server for VN ctest-vn-55483853 passed 2025-11-01 07:42:52,128 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/184fbbce-9422-4595-bbf8-abcc8de05516 2025-11-01 07:42:52,142 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6f1ac424-a51c-4dfe-8f14-6c9d93c76828 2025-11-01 07:42:52,151 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6f1ac424-a51c-4dfe-8f14-6c9d93c76828 2025-11-01 07:42:52,161 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5b10cefe-9d7a-442a-a025-049543bc54ff 2025-11-01 07:42:52,176 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69653770:ctest-vn-55483853', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69653770', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1751825275993343381', 'uuid-lslong': '13544764774358734102'}, 'enable': 'true', 'created': '2025-11-01T07:42:49', 'last-modified': '2025-11-01T07:42:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.693528'} 2025-11-01 07:42:52,186 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-01 07:42:52,186 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55483853 passed 2025-11-01 07:42:52,186 - DEBUG - ====Verifying policy data for ctest-vn-55483853 in API_Server ====== 2025-11-01 07:42:52,187 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-01 07:42:52,195 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2958400e-9cbc-4726-a49e-032218ed4947 2025-11-01 07:42:52,215 - DEBUG - Requesting: http://10.0.0.38:8082/project/d9732b4d-98b9-4474-9f73-42cb9716f7b8 2025-11-01 07:42:52,304 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/184fbbce-9422-4595-bbf8-abcc8de05516 2025-11-01 07:42:52,321 - DEBUG - ==>Verifying data for policy with id: 15cbb774-f957-4029-ad14-596446d5f576, fqn: ['default-domain', 'ctest-TestBasicPolicy-69653770', 'ctest-policy-allow-all-93133342'] 2025-11-01 07:42:52,321 - INFO - VN ctest-vn-55483853 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-01 07:42:52,321 - DEBUG - Verifying the vn in opserver 2025-11-01 07:42:52,321 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69653770:ctest-vn-55483853 virtual network link through opserver 10.0.0.38 2025-11-01 07:42:52,321 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-01 07:42:52,337 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69653770:ctest-vn-55483853', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69653770:ctest-vn-55483853?flat'} 2025-11-01 07:42:52,337 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69653770:ctest-vn-55483853 is found in opserver 2025-11-01 07:42:52,352 - DEBUG - Do not have enough data to verify VN in agent 2025-11-01 07:42:52,359 - DEBUG - VRF ids for VN ctest-vn-55483853: {} 2025-11-01 07:42:52,452 - DEBUG - Services list from nova: [, , ] 2025-11-01 07:42:53,841 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4586-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4586-1) 2025-11-01 07:42:55,144 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4586-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4586-1) 2025-11-01 07:42:55,144 - INFO - Waiting for VM ctest-TestBasicPolicy-69653770-77689993 to be up.. 2025-11-01 07:42:55,241 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-01 07:43:00,344 - DEBUG - VM is in ACTIVE state now 2025-11-01 07:43:00,344 - INFO - VM name : ctest-TestBasicPolicy-69653770-77689993 2025-11-01 07:43:00,428 - DEBUG - VM ctest-TestBasicPolicy-69653770-77689993 ID is 9a4869e4-4055-42d0-b513-7c86464e52bf 2025-11-01 07:43:00,454 - DEBUG - VM ctest-TestBasicPolicy-69653770-77689993 launched on Node cn-jenkins-deploy-platform-ansible-os-4586-1 2025-11-01 07:43:00,555 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/9a4869e4-4055-42d0-b513-7c86464e52bf 2025-11-01 07:43:00,569 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/77ecab53-97be-4f3f-bf9a-d3884e0093e3 2025-11-01 07:43:03,835 - 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 1015ms') 2025-11-01 07:43:03,835 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-69653770-77689993 failed! 2025-11-01 07:43:03,895 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-69653770:ctest-vn-29357249 is 22.17.71.129 and allocation pool is NOT set 2025-11-01 07:43:05,965 - 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.51 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.290 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 = 0.290/4.902/9.514/4.612 ms') 2025-11-01 07:43:05,966 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-69653770-77689993 passed 2025-11-01 07:43:06,131 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-01 07:43:06,132 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-69653770-77689993, IP 22.17.71.131, Port 22 2025-11-01 07:43:06,328 - DEBUG - VM ctest-TestBasicPolicy-69653770-77689993 is ready for SSH connections 2025-11-01 07:43:06,328 - INFO - Waiting for VM ctest-TestBasicPolicy-69653770-89538470 to be up.. 2025-11-01 07:43:06,443 - DEBUG - VM is in ACTIVE state now 2025-11-01 07:43:06,443 - INFO - VM name : ctest-TestBasicPolicy-69653770-89538470 2025-11-01 07:43:06,532 - DEBUG - VM ctest-TestBasicPolicy-69653770-89538470 ID is abd97e1a-1032-4c2a-9f4b-0a9fa3cb1b1e 2025-11-01 07:43:06,533 - DEBUG - VM ctest-TestBasicPolicy-69653770-89538470 launched on Node cn-jenkins-deploy-platform-ansible-os-4586-1 2025-11-01 07:43:06,636 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/abd97e1a-1032-4c2a-9f4b-0a9fa3cb1b1e 2025-11-01 07:43:06,649 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/5a1fbcf5-111c-4376-8966-e931a623c251 2025-11-01 07:43:07,913 - 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.69 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.19 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 2.194/2.941/3.689/0.747 ms') 2025-11-01 07:43:07,913 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-69653770-89538470 passed 2025-11-01 07:43:08,075 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-01 07:43:08,075 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-69653770-89538470, IP 167.133.205.195, Port 22 2025-11-01 07:43:08,143 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-11-01 07:43:08,280 - DEBUG - VM ctest-TestBasicPolicy-69653770-89538470 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-01 07:43:13,280 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-01 07:43:13,281 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-69653770-89538470, IP 167.133.205.195, Port 22 2025-11-01 07:43:13,480 - DEBUG - VM ctest-TestBasicPolicy-69653770-89538470 is ready for SSH connections 2025-11-01 07:43:13,481 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-01 07:43:13,481 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 167.133.205.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-11-01 07:43:13,481 - DEBUG - ping -s 56 -c 3 -W 1 167.133.205.195 2025-11-01 07:43:17,905 - DEBUG - PING 167.133.205.195 (167.133.205.195): 56 data bytes 64 bytes from 167.133.205.195: seq=0 ttl=63 time=4.758 ms 64 bytes from 167.133.205.195: seq=1 ttl=63 time=1.719 ms 64 bytes from 167.133.205.195: seq=2 ttl=63 time=1.936 ms --- 167.133.205.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.719/2.804/4.758 ms 2025-11-01 07:43:17,906 - INFO - Ping to IP 167.133.205.195 from VM ctest-TestBasicPolicy-69653770-77689993 passed 2025-11-01 07:43:18,127 - DEBUG - Policy Update Response {"network-policy": {"uuid": "15cbb774-f957-4029-ad14-596446d5f576", "href": "http://10.0.0.38:8082/network-policy/15cbb774-f957-4029-ad14-596446d5f576"}} 2025-11-01 07:43:18,128 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-01 07:43:18,128 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 167.133.205.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-11-01 07:43:18,128 - DEBUG - ping -s 56 -c 3 -W 1 167.133.205.195 2025-11-01 07:43:21,354 - DEBUG - PING 167.133.205.195 (167.133.205.195): 56 data bytes --- 167.133.205.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-11-01 07:43:21,354 - WARNING - Ping to IP 167.133.205.195 from VM ctest-TestBasicPolicy-69653770-77689993 failed 2025-11-01 07:43:21,355 - INFO - Deleting VM ctest-TestBasicPolicy-69653770-89538470 2025-11-01 07:43:21,453 - INFO - Deleting VM ctest-TestBasicPolicy-69653770-77689993 2025-11-01 07:43:21,944 - INFO - Deleted policy ctest-policy-allow-all-93133342 2025-11-01 07:43:21,944 - INFO - Deleting VN ctest-vn-55483853 2025-11-01 07:43:21,992 - DEBUG - VN 184fbbce-9422-4595-bbf8-abcc8de05516 still in use: Unable to complete operation on network 184fbbce-9422-4595-bbf8-abcc8de05516. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-5571bbf5-cc04-4cee-a2d6-2677440cea6a'] 2025-11-01 07:43:21,992 - WARNING - Deleting VN ctest-vn-55483853 failed..Will retry 2025-11-01 07:43:24,187 - DEBUG - Response for deleting network () 2025-11-01 07:43:24,187 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6f1ac424-a51c-4dfe-8f14-6c9d93c76828 2025-11-01 07:43:24,194 - DEBUG - Response Code: 404 2025-11-01 07:43:24,194 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-01 07:43:24,200 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2958400e-9cbc-4726-a49e-032218ed4947 2025-11-01 07:43:24,260 - DEBUG - Requesting: http://10.0.0.38:8082/project/d9732b4d-98b9-4474-9f73-42cb9716f7b8 2025-11-01 07:43:24,361 - INFO - Validated that VN ctest-vn-55483853 is not found in API Server 2025-11-01 07:43:24,377 - DEBUG - VN ctest-vn-55483853 is not present in Agent 10.0.0.38 2025-11-01 07:43:24,377 - INFO - Validated that VN ctest-vn-55483853 is not in any agent 2025-11-01 07:43:24,408 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-55483853 info 2025-11-01 07:43:24,408 - INFO - Deleting VN ctest-vn-29357249 2025-11-01 07:43:24,603 - DEBUG - Response for deleting network () 2025-11-01 07:43:24,603 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4a709748-c2a8-44a3-bb64-f6d0fdfad8dc 2025-11-01 07:43:24,612 - DEBUG - Response Code: 404 2025-11-01 07:43:24,612 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-01 07:43:24,618 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2958400e-9cbc-4726-a49e-032218ed4947 2025-11-01 07:43:24,676 - DEBUG - Requesting: http://10.0.0.38:8082/project/d9732b4d-98b9-4474-9f73-42cb9716f7b8 2025-11-01 07:43:24,762 - INFO - Validated that VN ctest-vn-29357249 is not found in API Server 2025-11-01 07:43:24,773 - DEBUG - VN ctest-vn-29357249 is not present in Agent 10.0.0.38 2025-11-01 07:43:24,774 - INFO - Validated that VN ctest-vn-29357249 is not in any agent 2025-11-01 07:43:24,792 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-29357249 info 2025-11-01 07:43:25,065 - DEBUG - No XMPP flaps were noticed during the test
2025-11-01 07:43:25,065 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:38]
2025-11-01 07:43:25,065 - INFO - -------------------------------------------------------------------------------- 2025-11-01 07:43:25,828 - INFO - Deleted project: ctest-TestBasicPolicy-69653770, ID : d9732b4d-98b9-4474-9f73-42cb9716f7b8