2025-12-18 02:11:54,401 - INFO - Domain Default found not creating 2025-12-18 02:11:54,614 - INFO - Project ctest-TestBasicPolicy-82949974 not found, creating it 2025-12-18 02:11:55,092 - INFO - Created Project:ctest-TestBasicPolicy-82949974, ID : 4e256732-0f07-4ef1-b547-a05a01b93837 2025-12-18 02:11:56,831 - INFO - ================================================================================ 2025-12-18 02:11:56,831 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-12-18 02:11:56,831 - 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-12-18 02:11:57,110 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.18': '0'}} with 2025-12-18 02:11:57,110 - INFO - Initial checks done. Running the testcase now 2025-12-18 02:11:57,110 - INFO - 2025-12-18 02:11:58,052 - DEBUG - Response for create_network : {'network': {'id': 'b39397de-8292-436b-8eb0-7216f3b88d4e', 'name': 'ctest-vn-67338090', 'tenant_id': '4e2567320f074ef1b547a05a01b93837', 'project_id': '4e2567320f074ef1b547a05a01b93837', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82949974', 'ctest-vn-67338090'], 'port_security_enabled': True, 'description': ''}} 2025-12-18 02:11:58,616 - DEBUG - Response for create_subnet : {'subnet': {'id': '102c0105-7602-49dc-bf10-20408f6b9ad1', 'name': '', 'tenant_id': '4e2567320f074ef1b547a05a01b93837', 'network_id': 'b39397de-8292-436b-8eb0-7216f3b88d4e', 'ip_version': 4, 'cidr': '166.73.196.192/26', 'allocation_pools': [{'start': '166.73.196.194', 'end': '166.73.196.254'}], 'gateway_ip': '166.73.196.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.73.196.194', 'tags': [], 'project_id': '4e2567320f074ef1b547a05a01b93837'}} 2025-12-18 02:11:58,644 - INFO - Created VN ctest-vn-67338090 2025-12-18 02:11:58,705 - DEBUG - VN ctest-vn-67338090 UUID is b39397de-8292-436b-8eb0-7216f3b88d4e 2025-12-18 02:11:59,062 - DEBUG - Response for create_network : {'network': {'id': 'f6962461-6c2b-43ef-9e0c-e01a40aa7c93', 'name': 'ctest-vn-25029454', 'tenant_id': '4e2567320f074ef1b547a05a01b93837', 'project_id': '4e2567320f074ef1b547a05a01b93837', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82949974', 'ctest-vn-25029454'], 'port_security_enabled': True, 'description': ''}} 2025-12-18 02:11:59,284 - DEBUG - Response for create_subnet : {'subnet': {'id': '7b176ddd-7439-4895-b00f-994a8171a391', 'name': '', 'tenant_id': '4e2567320f074ef1b547a05a01b93837', 'network_id': 'f6962461-6c2b-43ef-9e0c-e01a40aa7c93', 'ip_version': 4, 'cidr': '209.50.14.0/26', 'allocation_pools': [{'start': '209.50.14.2', 'end': '209.50.14.62'}], 'gateway_ip': '209.50.14.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.50.14.2', 'tags': [], 'project_id': '4e2567320f074ef1b547a05a01b93837'}} 2025-12-18 02:11:59,308 - INFO - Created VN ctest-vn-25029454 2025-12-18 02:11:59,365 - DEBUG - VN ctest-vn-25029454 UUID is f6962461-6c2b-43ef-9e0c-e01a40aa7c93 2025-12-18 02:11:59,492 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-82949974:ctest-vn-67338090, 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-82949974:ctest-vn-25029454, 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-12-18 02:11:59,827 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b39397de-8292-436b-8eb0-7216f3b88d4e', 'name': 'ctest-vn-67338090', 'tenant_id': '4e2567320f074ef1b547a05a01b93837', 'project_id': '4e2567320f074ef1b547a05a01b93837', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['102c0105-7602-49dc-bf10-20408f6b9ad1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82949974', 'ctest-vn-67338090'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82949974', 'ctest-policy-allow-all-92092722']], 'subnet_ipam': [{'subnet_cidr': '166.73.196.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-18 02:12:00,082 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f6962461-6c2b-43ef-9e0c-e01a40aa7c93', 'name': 'ctest-vn-25029454', 'tenant_id': '4e2567320f074ef1b547a05a01b93837', 'project_id': '4e2567320f074ef1b547a05a01b93837', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7b176ddd-7439-4895-b00f-994a8171a391'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82949974', 'ctest-vn-25029454'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82949974', 'ctest-policy-allow-all-92092722']], 'subnet_ipam': [{'subnet_cidr': '209.50.14.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-18 02:12:00,249 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-18 02:12:00,552 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-18 02:12:00,597 - DEBUG - Requesting: http://10.0.0.141:8082/domain/9b654697-e595-4d3f-a56f-4bba6d6b8abe 2025-12-18 02:12:00,612 - DEBUG - Requesting: http://10.0.0.141:8082/project/4e256732-0f07-4ef1-b547-a05a01b93837 2025-12-18 02:12:00,687 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/b39397de-8292-436b-8eb0-7216f3b88d4e 2025-12-18 02:12:00,698 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/b39397de-8292-436b-8eb0-7216f3b88d4e 2025-12-18 02:12:00,709 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/0816d109-195e-4b71-862c-720a4a5e7825 2025-12-18 02:12:00,717 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/0816d109-195e-4b71-862c-720a4a5e7825 2025-12-18 02:12:00,726 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/e6d63094-0aa8-4d0e-a0ea-b0b03f95810b 2025-12-18 02:12:00,734 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-18 02:12:00,735 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/b39397de-8292-436b-8eb0-7216f3b88d4e 2025-12-18 02:12:00,748 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/0816d109-195e-4b71-862c-720a4a5e7825 2025-12-18 02:12:00,768 - INFO - Verified VN network id 12 for VN b39397de-8292-436b-8eb0-7216f3b88d4e 2025-12-18 02:12:00,768 - INFO - Verifications in API Server for VN ctest-vn-67338090 passed 2025-12-18 02:12:00,768 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/b39397de-8292-436b-8eb0-7216f3b88d4e 2025-12-18 02:12:00,781 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/0816d109-195e-4b71-862c-720a4a5e7825 2025-12-18 02:12:00,791 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/0816d109-195e-4b71-862c-720a4a5e7825 2025-12-18 02:12:00,801 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/e6d63094-0aa8-4d0e-a0ea-b0b03f95810b 2025-12-18 02:12:00,817 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82949974:ctest-vn-67338090', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82949974', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12939853136294724459', 'uuid-lslong': '10281843392190647630'}, 'enable': 'true', 'created': '2025-12-18T02:11:57', 'last-modified': '2025-12-18T02:11:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.022756'} 2025-12-18 02:12:00,823 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-18 02:12:00,823 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67338090 passed 2025-12-18 02:12:00,824 - DEBUG - ====Verifying policy data for ctest-vn-67338090 in API_Server ====== 2025-12-18 02:12:00,824 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-18 02:12:00,830 - DEBUG - Requesting: http://10.0.0.141:8082/domain/9b654697-e595-4d3f-a56f-4bba6d6b8abe 2025-12-18 02:12:00,843 - DEBUG - Requesting: http://10.0.0.141:8082/project/4e256732-0f07-4ef1-b547-a05a01b93837 2025-12-18 02:12:00,922 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/b39397de-8292-436b-8eb0-7216f3b88d4e 2025-12-18 02:12:00,936 - DEBUG - ==>Verifying data for policy with id: 3951984e-e55c-48d7-be56-32492d7a9b40, fqn: ['default-domain', 'ctest-TestBasicPolicy-82949974', 'ctest-policy-allow-all-92092722'] 2025-12-18 02:12:00,936 - INFO - VN ctest-vn-67338090 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-18 02:12:00,936 - DEBUG - Verifying the vn in opserver 2025-12-18 02:12:00,936 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82949974:ctest-vn-67338090 virtual network link through opserver 10.0.0.141 2025-12-18 02:12:00,936 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-12-18 02:12:01,257 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-12-18 02:12:01,342 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82949974:ctest-vn-67338090', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82949974:ctest-vn-67338090?flat'} 2025-12-18 02:12:01,342 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82949974:ctest-vn-67338090 is found in opserver 2025-12-18 02:12:01,356 - DEBUG - Do not have enough data to verify VN in agent 2025-12-18 02:12:01,362 - DEBUG - VRF ids for VN ctest-vn-67338090: {} 2025-12-18 02:12:01,362 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-18 02:12:01,370 - DEBUG - Requesting: http://10.0.0.141:8082/domain/9b654697-e595-4d3f-a56f-4bba6d6b8abe 2025-12-18 02:12:01,385 - DEBUG - Requesting: http://10.0.0.141:8082/project/4e256732-0f07-4ef1-b547-a05a01b93837 2025-12-18 02:12:01,461 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/f6962461-6c2b-43ef-9e0c-e01a40aa7c93 2025-12-18 02:12:01,476 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/f6962461-6c2b-43ef-9e0c-e01a40aa7c93 2025-12-18 02:12:01,486 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/cd7e68a8-9ca8-44d1-a834-2d1203343975 2025-12-18 02:12:01,496 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/cd7e68a8-9ca8-44d1-a834-2d1203343975 2025-12-18 02:12:01,506 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/542bf78e-9e87-4730-9abd-3932bf2e8e05 2025-12-18 02:12:01,515 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-12-18 02:12:01,516 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/f6962461-6c2b-43ef-9e0c-e01a40aa7c93 2025-12-18 02:12:01,528 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/cd7e68a8-9ca8-44d1-a834-2d1203343975 2025-12-18 02:12:01,544 - INFO - Verified VN network id 13 for VN f6962461-6c2b-43ef-9e0c-e01a40aa7c93 2025-12-18 02:12:01,544 - INFO - Verifications in API Server for VN ctest-vn-25029454 passed 2025-12-18 02:12:01,544 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/f6962461-6c2b-43ef-9e0c-e01a40aa7c93 2025-12-18 02:12:01,557 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/cd7e68a8-9ca8-44d1-a834-2d1203343975 2025-12-18 02:12:01,566 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/cd7e68a8-9ca8-44d1-a834-2d1203343975 2025-12-18 02:12:01,576 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/542bf78e-9e87-4730-9abd-3932bf2e8e05 2025-12-18 02:12:01,591 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82949974:ctest-vn-25029454', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82949974', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17768429380682073071', 'uuid-lslong': '11388723961071828115'}, 'enable': 'true', 'created': '2025-12-18T02:11:59', 'last-modified': '2025-12-18T02:12:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.541089'} 2025-12-18 02:12:01,598 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-12-18 02:12:01,599 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25029454 passed 2025-12-18 02:12:01,599 - DEBUG - ====Verifying policy data for ctest-vn-25029454 in API_Server ====== 2025-12-18 02:12:01,599 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-18 02:12:01,606 - DEBUG - Requesting: http://10.0.0.141:8082/domain/9b654697-e595-4d3f-a56f-4bba6d6b8abe 2025-12-18 02:12:01,620 - DEBUG - Requesting: http://10.0.0.141:8082/project/4e256732-0f07-4ef1-b547-a05a01b93837 2025-12-18 02:12:01,716 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/f6962461-6c2b-43ef-9e0c-e01a40aa7c93 2025-12-18 02:12:01,727 - DEBUG - ==>Verifying data for policy with id: 3951984e-e55c-48d7-be56-32492d7a9b40, fqn: ['default-domain', 'ctest-TestBasicPolicy-82949974', 'ctest-policy-allow-all-92092722'] 2025-12-18 02:12:01,727 - INFO - VN ctest-vn-25029454 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-18 02:12:01,727 - DEBUG - Verifying the vn in opserver 2025-12-18 02:12:01,727 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82949974:ctest-vn-25029454 virtual network link through opserver 10.0.0.141 2025-12-18 02:12:01,727 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-12-18 02:12:01,739 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82949974:ctest-vn-25029454', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82949974:ctest-vn-25029454?flat'} 2025-12-18 02:12:01,739 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82949974:ctest-vn-25029454 is found in opserver 2025-12-18 02:12:01,751 - DEBUG - Do not have enough data to verify VN in agent 2025-12-18 02:12:01,757 - DEBUG - VRF ids for VN ctest-vn-25029454: {} 2025-12-18 02:12:01,840 - DEBUG - Services list from nova: [, , ] 2025-12-18 02:12:03,014 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4899-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4899-1) 2025-12-18 02:12:04,414 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4899-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4899-1) 2025-12-18 02:12:04,414 - INFO - Waiting for VM ctest-TestBasicPolicy-82949974-92281773 to be up.. 2025-12-18 02:12:04,511 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-12-18 02:12:09,618 - DEBUG - VM is in ACTIVE state now 2025-12-18 02:12:09,618 - INFO - VM name : ctest-TestBasicPolicy-82949974-92281773 2025-12-18 02:12:09,733 - DEBUG - VM ctest-TestBasicPolicy-82949974-92281773 ID is 2decadfb-3e7b-44a0-bd62-1056f1c03261 2025-12-18 02:12:09,764 - DEBUG - VM ctest-TestBasicPolicy-82949974-92281773 launched on Node cn-jenkins-deploy-platform-ansible-os-4899-1 2025-12-18 02:12:09,879 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine/2decadfb-3e7b-44a0-bd62-1056f1c03261 2025-12-18 02:12:09,891 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine-interface/10b0029f-dbed-4fc7-9c41-bc9af7b271d0 2025-12-18 02:12:13,149 - 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 1009ms') 2025-12-18 02:12:13,149 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-82949974-92281773 failed! 2025-12-18 02:12:13,213 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-82949974:ctest-vn-67338090 is 166.73.196.193 and allocation pool is NOT set 2025-12-18 02:12:15,277 - 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.60 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.550 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.550/5.074/9.599/4.524 ms') 2025-12-18 02:12:15,277 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-82949974-92281773 passed 2025-12-18 02:12:15,441 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-18 02:12:15,441 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-82949974-92281773, IP 166.73.196.195, Port 22 2025-12-18 02:12:15,611 - DEBUG - VM ctest-TestBasicPolicy-82949974-92281773 is ready for SSH connections 2025-12-18 02:12:15,611 - INFO - Waiting for VM ctest-TestBasicPolicy-82949974-00949335 to be up.. 2025-12-18 02:12:15,720 - DEBUG - VM is in ACTIVE state now 2025-12-18 02:12:15,720 - INFO - VM name : ctest-TestBasicPolicy-82949974-00949335 2025-12-18 02:12:15,816 - DEBUG - VM ctest-TestBasicPolicy-82949974-00949335 ID is 9b57eb60-4625-4db5-96d5-a2c201a6d1c2 2025-12-18 02:12:15,816 - DEBUG - VM ctest-TestBasicPolicy-82949974-00949335 launched on Node cn-jenkins-deploy-platform-ansible-os-4899-1 2025-12-18 02:12:15,953 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine/9b57eb60-4625-4db5-96d5-a2c201a6d1c2 2025-12-18 02:12:15,968 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine-interface/6b22a475-6eac-4e36-93e5-c1c204900aec 2025-12-18 02:12:17,231 - 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.75 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.70 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 = 1.700/3.225/4.750/1.525 ms') 2025-12-18 02:12:17,231 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-82949974-00949335 passed 2025-12-18 02:12:17,389 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-18 02:12:17,389 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-82949974-00949335, IP 209.50.14.3, Port 22 2025-12-18 02:12:17,459 - 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-12-18 02:12:17,553 - DEBUG - VM ctest-TestBasicPolicy-82949974-00949335 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-18 02:12:22,554 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-18 02:12:22,554 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-82949974-00949335, IP 209.50.14.3, Port 22 2025-12-18 02:12:22,729 - DEBUG - VM ctest-TestBasicPolicy-82949974-00949335 is ready for SSH connections 2025-12-18 02:12:22,729 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-18 02:12:22,729 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 209.50.14.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.141, gateway password: c0ntrail123 2025-12-18 02:12:22,729 - DEBUG - ping -s 56 -c 3 -W 1 209.50.14.3 2025-12-18 02:12:26,971 - DEBUG - PING 209.50.14.3 (209.50.14.3): 56 data bytes 64 bytes from 209.50.14.3: seq=0 ttl=63 time=5.054 ms 64 bytes from 209.50.14.3: seq=1 ttl=63 time=1.231 ms 64 bytes from 209.50.14.3: seq=2 ttl=63 time=1.178 ms --- 209.50.14.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.178/2.487/5.054 ms 2025-12-18 02:12:26,971 - INFO - Ping to IP 209.50.14.3 from VM ctest-TestBasicPolicy-82949974-92281773 passed 2025-12-18 02:12:27,176 - DEBUG - Policy Update Response {"network-policy": {"uuid": "3951984e-e55c-48d7-be56-32492d7a9b40", "href": "http://10.0.0.141:8082/network-policy/3951984e-e55c-48d7-be56-32492d7a9b40"}} 2025-12-18 02:12:27,177 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-18 02:12:27,177 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 209.50.14.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.141, gateway password: c0ntrail123 2025-12-18 02:12:27,178 - DEBUG - ping -s 56 -c 3 -W 1 209.50.14.3 2025-12-18 02:12:30,414 - DEBUG - PING 209.50.14.3 (209.50.14.3): 56 data bytes --- 209.50.14.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-12-18 02:12:30,415 - WARNING - Ping to IP 209.50.14.3 from VM ctest-TestBasicPolicy-82949974-92281773 failed 2025-12-18 02:12:30,415 - INFO - Deleting VM ctest-TestBasicPolicy-82949974-00949335 2025-12-18 02:12:30,533 - INFO - Deleting VM ctest-TestBasicPolicy-82949974-92281773 2025-12-18 02:12:31,055 - INFO - Deleted policy ctest-policy-allow-all-92092722 2025-12-18 02:12:31,056 - INFO - Deleting VN ctest-vn-25029454 2025-12-18 02:12:31,101 - DEBUG - VN f6962461-6c2b-43ef-9e0c-e01a40aa7c93 still in use: Unable to complete operation on network f6962461-6c2b-43ef-9e0c-e01a40aa7c93. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b681dba1-f1d7-4658-b650-b3b6d392e8c1'] 2025-12-18 02:12:31,101 - WARNING - Deleting VN ctest-vn-25029454 failed..Will retry 2025-12-18 02:12:33,237 - DEBUG - Response for deleting network () 2025-12-18 02:12:33,237 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/cd7e68a8-9ca8-44d1-a834-2d1203343975 2025-12-18 02:12:33,245 - DEBUG - Response Code: 404 2025-12-18 02:12:33,245 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-18 02:12:33,253 - DEBUG - Requesting: http://10.0.0.141:8082/domain/9b654697-e595-4d3f-a56f-4bba6d6b8abe 2025-12-18 02:12:33,316 - DEBUG - Requesting: http://10.0.0.141:8082/project/4e256732-0f07-4ef1-b547-a05a01b93837 2025-12-18 02:12:33,396 - INFO - Validated that VN ctest-vn-25029454 is not found in API Server 2025-12-18 02:12:33,408 - DEBUG - VN ctest-vn-25029454 is not present in Agent 10.0.0.141 2025-12-18 02:12:33,408 - INFO - Validated that VN ctest-vn-25029454 is not in any agent 2025-12-18 02:12:33,425 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-25029454 info 2025-12-18 02:12:33,426 - INFO - Deleting VN ctest-vn-67338090 2025-12-18 02:12:33,565 - DEBUG - Response for deleting network () 2025-12-18 02:12:33,565 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/0816d109-195e-4b71-862c-720a4a5e7825 2025-12-18 02:12:33,571 - DEBUG - Response Code: 404 2025-12-18 02:12:33,571 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-18 02:12:33,577 - DEBUG - Requesting: http://10.0.0.141:8082/domain/9b654697-e595-4d3f-a56f-4bba6d6b8abe 2025-12-18 02:12:33,631 - DEBUG - Requesting: http://10.0.0.141:8082/project/4e256732-0f07-4ef1-b547-a05a01b93837 2025-12-18 02:12:33,710 - INFO - Validated that VN ctest-vn-67338090 is not found in API Server 2025-12-18 02:12:33,720 - DEBUG - VN ctest-vn-67338090 is not present in Agent 10.0.0.141 2025-12-18 02:12:33,721 - INFO - Validated that VN ctest-vn-67338090 is not in any agent 2025-12-18 02:12:33,737 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-67338090 info 2025-12-18 02:12:34,018 - DEBUG - No XMPP flaps were noticed during the test
2025-12-18 02:12:34,018 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:38]
2025-12-18 02:12:34,018 - INFO - -------------------------------------------------------------------------------- 2025-12-18 02:12:34,785 - INFO - Deleted project: ctest-TestBasicPolicy-82949974, ID : 4e256732-0f07-4ef1-b547-a05a01b93837