2025-09-24 08:03:33,059 - INFO - Domain Default found not creating 2025-09-24 08:03:33,195 - INFO - Project ctest-TestBasicPolicy-83434639 not found, creating it 2025-09-24 08:03:33,630 - INFO - Created Project:ctest-TestBasicPolicy-83434639, ID : b34a585f-0ae7-4a22-882e-018c3766c4b6 2025-09-24 08:03:34,970 - INFO - ================================================================================ 2025-09-24 08:03:34,970 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-09-24 08:03:34,970 - 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-09-24 08:03:35,223 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with 2025-09-24 08:03:35,223 - INFO - Initial checks done. Running the testcase now 2025-09-24 08:03:35,223 - INFO - 2025-09-24 08:03:35,732 - DEBUG - Response for create_network : {'network': {'id': '87eaaac1-1bea-44ac-9a27-0c25890a41d3', 'name': 'ctest-vn-55886940', 'tenant_id': 'b34a585f0ae74a22882e018c3766c4b6', 'project_id': 'b34a585f0ae74a22882e018c3766c4b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83434639', 'ctest-vn-55886940'], 'port_security_enabled': True, 'description': ''}} 2025-09-24 08:03:35,886 - DEBUG - Response for create_subnet : {'subnet': {'id': '1f86d58a-2532-47cd-b34a-59e0a0085d24', 'name': '', 'tenant_id': 'b34a585f0ae74a22882e018c3766c4b6', 'network_id': '87eaaac1-1bea-44ac-9a27-0c25890a41d3', 'ip_version': 4, 'cidr': '100.2.30.192/26', 'allocation_pools': [{'start': '100.2.30.194', 'end': '100.2.30.254'}], 'gateway_ip': '100.2.30.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '100.2.30.194', 'tags': [], 'project_id': 'b34a585f0ae74a22882e018c3766c4b6'}} 2025-09-24 08:03:35,901 - INFO - Created VN ctest-vn-55886940 2025-09-24 08:03:35,950 - DEBUG - VN ctest-vn-55886940 UUID is 87eaaac1-1bea-44ac-9a27-0c25890a41d3 2025-09-24 08:03:36,256 - DEBUG - Response for create_network : {'network': {'id': '6733aea3-926c-4176-b90b-c8d2d70aa4ee', 'name': 'ctest-vn-14734580', 'tenant_id': 'b34a585f0ae74a22882e018c3766c4b6', 'project_id': 'b34a585f0ae74a22882e018c3766c4b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83434639', 'ctest-vn-14734580'], 'port_security_enabled': True, 'description': ''}} 2025-09-24 08:03:36,426 - DEBUG - Response for create_subnet : {'subnet': {'id': '8ed7f6b0-f447-4ebd-aad0-73cc5b21d910', 'name': '', 'tenant_id': 'b34a585f0ae74a22882e018c3766c4b6', 'network_id': '6733aea3-926c-4176-b90b-c8d2d70aa4ee', 'ip_version': 4, 'cidr': '38.160.39.128/26', 'allocation_pools': [{'start': '38.160.39.130', 'end': '38.160.39.190'}], 'gateway_ip': '38.160.39.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.160.39.130', 'tags': [], 'project_id': 'b34a585f0ae74a22882e018c3766c4b6'}} 2025-09-24 08:03:36,441 - INFO - Created VN ctest-vn-14734580 2025-09-24 08:03:36,490 - DEBUG - VN ctest-vn-14734580 UUID is 6733aea3-926c-4176-b90b-c8d2d70aa4ee 2025-09-24 08:03:36,630 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-83434639:ctest-vn-55886940, 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-83434639:ctest-vn-14734580, 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-09-24 08:03:36,915 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '87eaaac1-1bea-44ac-9a27-0c25890a41d3', 'name': 'ctest-vn-55886940', 'tenant_id': 'b34a585f0ae74a22882e018c3766c4b6', 'project_id': 'b34a585f0ae74a22882e018c3766c4b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1f86d58a-2532-47cd-b34a-59e0a0085d24'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83434639', 'ctest-vn-55886940'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83434639', 'ctest-policy-allow-all-81243256']], 'subnet_ipam': [{'subnet_cidr': '100.2.30.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-24 08:03:37,126 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6733aea3-926c-4176-b90b-c8d2d70aa4ee', 'name': 'ctest-vn-14734580', 'tenant_id': 'b34a585f0ae74a22882e018c3766c4b6', 'project_id': 'b34a585f0ae74a22882e018c3766c4b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8ed7f6b0-f447-4ebd-aad0-73cc5b21d910'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83434639', 'ctest-vn-14734580'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83434639', 'ctest-policy-allow-all-81243256']], 'subnet_ipam': [{'subnet_cidr': '38.160.39.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-24 08:03:37,290 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-24 08:03:37,577 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-24 08:03:37,602 - DEBUG - Requesting: http://10.0.0.57:8082/domain/0a4b00d9-e494-4d54-aa67-6c8825090cdd 2025-09-24 08:03:37,613 - DEBUG - Requesting: http://10.0.0.57:8082/project/b34a585f-0ae7-4a22-882e-018c3766c4b6 2025-09-24 08:03:37,686 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/87eaaac1-1bea-44ac-9a27-0c25890a41d3 2025-09-24 08:03:37,695 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/87eaaac1-1bea-44ac-9a27-0c25890a41d3 2025-09-24 08:03:37,703 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/b531c835-9db7-4314-9a08-8d655301671a 2025-09-24 08:03:37,708 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/b531c835-9db7-4314-9a08-8d655301671a 2025-09-24 08:03:37,714 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/4380e9cd-a2ba-4118-8ee8-b9b11c8d1c05 2025-09-24 08:03:37,719 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-24 08:03:37,719 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/87eaaac1-1bea-44ac-9a27-0c25890a41d3 2025-09-24 08:03:37,726 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/b531c835-9db7-4314-9a08-8d655301671a 2025-09-24 08:03:37,737 - INFO - Verified VN network id 11 for VN 87eaaac1-1bea-44ac-9a27-0c25890a41d3 2025-09-24 08:03:37,737 - INFO - Verifications in API Server for VN ctest-vn-55886940 passed 2025-09-24 08:03:37,737 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/87eaaac1-1bea-44ac-9a27-0c25890a41d3 2025-09-24 08:03:37,744 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/b531c835-9db7-4314-9a08-8d655301671a 2025-09-24 08:03:37,749 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/b531c835-9db7-4314-9a08-8d655301671a 2025-09-24 08:03:37,754 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/4380e9cd-a2ba-4118-8ee8-b9b11c8d1c05 2025-09-24 08:03:37,763 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83434639:ctest-vn-55886940', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83434639', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9793828086044312748', 'uuid-lslong': '11107860361285091795'}, 'enable': 'true', 'created': '2025-09-24T08:03:35', 'last-modified': '2025-09-24T08:03:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.873282'} 2025-09-24 08:03:37,769 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-24 08:03:37,769 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55886940 passed 2025-09-24 08:03:37,769 - DEBUG - ====Verifying policy data for ctest-vn-55886940 in API_Server ====== 2025-09-24 08:03:37,769 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-24 08:03:37,773 - DEBUG - Requesting: http://10.0.0.57:8082/domain/0a4b00d9-e494-4d54-aa67-6c8825090cdd 2025-09-24 08:03:37,783 - DEBUG - Requesting: http://10.0.0.57:8082/project/b34a585f-0ae7-4a22-882e-018c3766c4b6 2025-09-24 08:03:37,850 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/87eaaac1-1bea-44ac-9a27-0c25890a41d3 2025-09-24 08:03:37,858 - DEBUG - ==>Verifying data for policy with id: 51f7b2bf-ead6-4fef-aee8-b891ff872064, fqn: ['default-domain', 'ctest-TestBasicPolicy-83434639', 'ctest-policy-allow-all-81243256'] 2025-09-24 08:03:37,858 - INFO - VN ctest-vn-55886940 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-24 08:03:37,858 - DEBUG - Verifying the vn in opserver 2025-09-24 08:03:37,858 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83434639:ctest-vn-55886940 virtual network link through opserver 10.0.0.57 2025-09-24 08:03:37,858 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-09-24 08:03:38,146 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-09-24 08:03:38,195 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83434639:ctest-vn-55886940', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83434639:ctest-vn-55886940?flat'} 2025-09-24 08:03:38,195 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83434639:ctest-vn-55886940 is found in opserver 2025-09-24 08:03:38,203 - DEBUG - Do not have enough data to verify VN in agent 2025-09-24 08:03:38,206 - DEBUG - VRF ids for VN ctest-vn-55886940: {} 2025-09-24 08:03:38,206 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-24 08:03:38,210 - DEBUG - Requesting: http://10.0.0.57:8082/domain/0a4b00d9-e494-4d54-aa67-6c8825090cdd 2025-09-24 08:03:38,219 - DEBUG - Requesting: http://10.0.0.57:8082/project/b34a585f-0ae7-4a22-882e-018c3766c4b6 2025-09-24 08:03:38,287 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/6733aea3-926c-4176-b90b-c8d2d70aa4ee 2025-09-24 08:03:38,297 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/6733aea3-926c-4176-b90b-c8d2d70aa4ee 2025-09-24 08:03:38,304 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/198af154-831e-4014-874d-2cce099abe70 2025-09-24 08:03:38,311 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/198af154-831e-4014-874d-2cce099abe70 2025-09-24 08:03:38,317 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/4dd03905-24e4-4f1d-b291-74edf750d13e 2025-09-24 08:03:38,323 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-24 08:03:38,323 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/6733aea3-926c-4176-b90b-c8d2d70aa4ee 2025-09-24 08:03:38,330 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/198af154-831e-4014-874d-2cce099abe70 2025-09-24 08:03:38,342 - INFO - Verified VN network id 12 for VN 6733aea3-926c-4176-b90b-c8d2d70aa4ee 2025-09-24 08:03:38,342 - INFO - Verifications in API Server for VN ctest-vn-14734580 passed 2025-09-24 08:03:38,342 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/6733aea3-926c-4176-b90b-c8d2d70aa4ee 2025-09-24 08:03:38,350 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/198af154-831e-4014-874d-2cce099abe70 2025-09-24 08:03:38,355 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/198af154-831e-4014-874d-2cce099abe70 2025-09-24 08:03:38,361 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/4dd03905-24e4-4f1d-b291-74edf750d13e 2025-09-24 08:03:38,370 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83434639:ctest-vn-14734580', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83434639', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7436479427278291318', 'uuid-lslong': '13333971929636971758'}, 'enable': 'true', 'created': '2025-09-24T08:03:36', 'last-modified': '2025-09-24T08:03:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.262071'} 2025-09-24 08:03:38,375 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-24 08:03:38,375 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14734580 passed 2025-09-24 08:03:38,375 - DEBUG - ====Verifying policy data for ctest-vn-14734580 in API_Server ====== 2025-09-24 08:03:38,375 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-24 08:03:38,380 - DEBUG - Requesting: http://10.0.0.57:8082/domain/0a4b00d9-e494-4d54-aa67-6c8825090cdd 2025-09-24 08:03:38,389 - DEBUG - Requesting: http://10.0.0.57:8082/project/b34a585f-0ae7-4a22-882e-018c3766c4b6 2025-09-24 08:03:38,452 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/6733aea3-926c-4176-b90b-c8d2d70aa4ee 2025-09-24 08:03:38,460 - DEBUG - ==>Verifying data for policy with id: 51f7b2bf-ead6-4fef-aee8-b891ff872064, fqn: ['default-domain', 'ctest-TestBasicPolicy-83434639', 'ctest-policy-allow-all-81243256'] 2025-09-24 08:03:38,460 - INFO - VN ctest-vn-14734580 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-24 08:03:38,460 - DEBUG - Verifying the vn in opserver 2025-09-24 08:03:38,460 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83434639:ctest-vn-14734580 virtual network link through opserver 10.0.0.57 2025-09-24 08:03:38,460 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-09-24 08:03:38,468 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83434639:ctest-vn-14734580', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83434639:ctest-vn-14734580?flat'} 2025-09-24 08:03:38,468 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83434639:ctest-vn-14734580 is found in opserver 2025-09-24 08:03:38,476 - DEBUG - Do not have enough data to verify VN in agent 2025-09-24 08:03:38,480 - DEBUG - VRF ids for VN ctest-vn-14734580: {} 2025-09-24 08:03:38,533 - DEBUG - Services list from nova: [, , ] 2025-09-24 08:03:39,508 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4181-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4181-1) 2025-09-24 08:03:40,586 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4181-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4181-1) 2025-09-24 08:03:40,586 - INFO - Waiting for VM ctest-TestBasicPolicy-83434639-11953751 to be up.. 2025-09-24 08:03:40,668 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-24 08:03:45,735 - DEBUG - VM is in ACTIVE state now 2025-09-24 08:03:45,736 - INFO - VM name : ctest-TestBasicPolicy-83434639-11953751 2025-09-24 08:03:45,800 - DEBUG - VM ctest-TestBasicPolicy-83434639-11953751 ID is d6e13c5d-f393-4ae0-be28-4d8d46c3b276 2025-09-24 08:03:45,816 - DEBUG - VM ctest-TestBasicPolicy-83434639-11953751 launched on Node cn-jenkins-deploy-platform-ansible-os-4181-1 2025-09-24 08:03:45,880 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/d6e13c5d-f393-4ae0-be28-4d8d46c3b276 2025-09-24 08:03:45,887 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine-interface/e0f3875a-5a2a-43c2-aa6c-d201e7ad4836 2025-09-24 08:03:49,127 - 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 1007ms') 2025-09-24 08:03:49,127 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-83434639-11953751 failed! 2025-09-24 08:03:49,178 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-83434639:ctest-vn-55886940 is 100.2.30.193 and allocation pool is NOT set 2025-09-24 08:03:51,238 - 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=2.70 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.394 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.394/1.544/2.695/1.150 ms') 2025-09-24 08:03:51,238 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-83434639-11953751 passed 2025-09-24 08:03:51,390 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-24 08:03:51,390 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-83434639-11953751, IP 100.2.30.195, Port 22 2025-09-24 08:03:51,565 - DEBUG - VM ctest-TestBasicPolicy-83434639-11953751 is ready for SSH connections 2025-09-24 08:03:51,566 - INFO - Waiting for VM ctest-TestBasicPolicy-83434639-48900587 to be up.. 2025-09-24 08:03:51,634 - DEBUG - VM is in ACTIVE state now 2025-09-24 08:03:51,634 - INFO - VM name : ctest-TestBasicPolicy-83434639-48900587 2025-09-24 08:03:51,694 - DEBUG - VM ctest-TestBasicPolicy-83434639-48900587 ID is 22040f7f-5f62-4f3b-b9b7-00214bbb7b87 2025-09-24 08:03:51,694 - DEBUG - VM ctest-TestBasicPolicy-83434639-48900587 launched on Node cn-jenkins-deploy-platform-ansible-os-4181-1 2025-09-24 08:03:51,762 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/22040f7f-5f62-4f3b-b9b7-00214bbb7b87 2025-09-24 08:03:51,769 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine-interface/c69edfee-8b0d-46e3-b879-b7d7f5ac5e41 2025-09-24 08:03:52,990 - 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=4.14 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.14 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 = 2.141/3.138/4.135/0.997 ms') 2025-09-24 08:03:52,990 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-83434639-48900587 passed 2025-09-24 08:03:53,142 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-24 08:03:53,142 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-83434639-48900587, IP 38.160.39.131, Port 22 2025-09-24 08:03:53,198 - 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-09-24 08:03:53,263 - DEBUG - VM ctest-TestBasicPolicy-83434639-48900587 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-24 08:03:58,264 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-24 08:03:58,264 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-83434639-48900587, IP 38.160.39.131, Port 22 2025-09-24 08:03:58,418 - DEBUG - VM ctest-TestBasicPolicy-83434639-48900587 is ready for SSH connections 2025-09-24 08:03:58,418 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-24 08:03:58,418 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 38.160.39.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2025-09-24 08:03:58,418 - DEBUG - ping -s 56 -c 3 -W 1 38.160.39.131 2025-09-24 08:04:02,428 - DEBUG - PING 38.160.39.131 (38.160.39.131): 56 data bytes 64 bytes from 38.160.39.131: seq=0 ttl=63 time=3.694 ms 64 bytes from 38.160.39.131: seq=1 ttl=63 time=0.722 ms 64 bytes from 38.160.39.131: seq=2 ttl=63 time=0.854 ms --- 38.160.39.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.722/1.756/3.694 ms 2025-09-24 08:04:02,429 - INFO - Ping to IP 38.160.39.131 from VM ctest-TestBasicPolicy-83434639-11953751 passed 2025-09-24 08:04:02,598 - DEBUG - Policy Update Response {"network-policy": {"uuid": "51f7b2bf-ead6-4fef-aee8-b891ff872064", "href": "http://10.0.0.57:8082/network-policy/51f7b2bf-ead6-4fef-aee8-b891ff872064"}} 2025-09-24 08:04:02,598 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-24 08:04:02,598 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 38.160.39.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2025-09-24 08:04:02,598 - DEBUG - ping -s 56 -c 3 -W 1 38.160.39.131 2025-09-24 08:04:05,794 - DEBUG - PING 38.160.39.131 (38.160.39.131): 56 data bytes --- 38.160.39.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-09-24 08:04:05,794 - WARNING - Ping to IP 38.160.39.131 from VM ctest-TestBasicPolicy-83434639-11953751 failed 2025-09-24 08:04:05,794 - INFO - Deleting VM ctest-TestBasicPolicy-83434639-48900587 2025-09-24 08:04:05,854 - INFO - Deleting VM ctest-TestBasicPolicy-83434639-11953751 2025-09-24 08:04:06,215 - INFO - Deleted policy ctest-policy-allow-all-81243256 2025-09-24 08:04:06,215 - INFO - Deleting VN ctest-vn-14734580 2025-09-24 08:04:06,247 - DEBUG - VN 6733aea3-926c-4176-b90b-c8d2d70aa4ee still in use: Unable to complete operation on network 6733aea3-926c-4176-b90b-c8d2d70aa4ee. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f9eb2cfd-4527-41fc-9518-240486c75290'] 2025-09-24 08:04:06,248 - WARNING - Deleting VN ctest-vn-14734580 failed..Will retry 2025-09-24 08:04:08,348 - DEBUG - Response for deleting network () 2025-09-24 08:04:08,348 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/198af154-831e-4014-874d-2cce099abe70 2025-09-24 08:04:08,353 - DEBUG - Response Code: 404 2025-09-24 08:04:08,353 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-24 08:04:08,358 - DEBUG - Requesting: http://10.0.0.57:8082/domain/0a4b00d9-e494-4d54-aa67-6c8825090cdd 2025-09-24 08:04:08,413 - DEBUG - Requesting: http://10.0.0.57:8082/project/b34a585f-0ae7-4a22-882e-018c3766c4b6 2025-09-24 08:04:08,487 - INFO - Validated that VN ctest-vn-14734580 is not found in API Server 2025-09-24 08:04:08,496 - DEBUG - VN ctest-vn-14734580 is not present in Agent 10.0.0.57 2025-09-24 08:04:08,496 - INFO - Validated that VN ctest-vn-14734580 is not in any agent 2025-09-24 08:04:08,508 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-14734580 info 2025-09-24 08:04:08,508 - INFO - Deleting VN ctest-vn-55886940 2025-09-24 08:04:08,593 - DEBUG - Response for deleting network () 2025-09-24 08:04:08,594 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/b531c835-9db7-4314-9a08-8d655301671a 2025-09-24 08:04:08,598 - DEBUG - Response Code: 404 2025-09-24 08:04:08,598 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-24 08:04:08,603 - DEBUG - Requesting: http://10.0.0.57:8082/domain/0a4b00d9-e494-4d54-aa67-6c8825090cdd 2025-09-24 08:04:08,655 - DEBUG - Requesting: http://10.0.0.57:8082/project/b34a585f-0ae7-4a22-882e-018c3766c4b6 2025-09-24 08:04:08,728 - INFO - Validated that VN ctest-vn-55886940 is not found in API Server 2025-09-24 08:04:08,740 - DEBUG - VN ctest-vn-55886940 is not present in Agent 10.0.0.57 2025-09-24 08:04:08,740 - INFO - Validated that VN ctest-vn-55886940 is not in any agent 2025-09-24 08:04:08,754 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-55886940 info 2025-09-24 08:04:09,006 - DEBUG - No XMPP flaps were noticed during the test
2025-09-24 08:04:09,007 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-09-24 08:04:09,007 - INFO - -------------------------------------------------------------------------------- 2025-09-24 08:04:09,634 - INFO - Deleted project: ctest-TestBasicPolicy-83434639, ID : b34a585f-0ae7-4a22-882e-018c3766c4b6