2025-06-05 16:25:55,086 - INFO - Domain Default found not creating 2025-06-05 16:25:55,240 - INFO - Project ctest-TestBasicPolicy-58659383 not found, creating it 2025-06-05 16:25:55,722 - INFO - Created Project:ctest-TestBasicPolicy-58659383, ID : dbed5b7f-164f-473b-b07c-3d013317df18 2025-06-05 16:25:57,405 - INFO - ================================================================================ 2025-06-05 16:25:57,405 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-05 16:25:57,405 - 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-06-05 16:25:57,671 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-06-05 16:25:57,671 - INFO - Initial checks done. Running the testcase now 2025-06-05 16:25:57,671 - INFO - 2025-06-05 16:25:58,284 - DEBUG - Response for create_network : {'network': {'id': '5f2bbe60-8003-4ec2-bbdd-6244b863ce35', 'name': 'ctest-vn-11444634', 'tenant_id': 'dbed5b7f164f473bb07c3d013317df18', 'project_id': 'dbed5b7f164f473bb07c3d013317df18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58659383', 'ctest-vn-11444634'], 'port_security_enabled': True, 'description': ''}} 2025-06-05 16:25:58,533 - DEBUG - Response for create_subnet : {'subnet': {'id': '7518f81b-6a2a-4566-b8d8-fd435ef30445', 'name': '', 'tenant_id': 'dbed5b7f164f473bb07c3d013317df18', 'network_id': '5f2bbe60-8003-4ec2-bbdd-6244b863ce35', 'ip_version': 4, 'cidr': '82.197.236.192/26', 'allocation_pools': [{'start': '82.197.236.194', 'end': '82.197.236.254'}], 'gateway_ip': '82.197.236.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.197.236.194', 'tags': [], 'project_id': 'dbed5b7f164f473bb07c3d013317df18'}} 2025-06-05 16:25:58,555 - INFO - Created VN ctest-vn-11444634 2025-06-05 16:25:58,608 - DEBUG - VN ctest-vn-11444634 UUID is 5f2bbe60-8003-4ec2-bbdd-6244b863ce35 2025-06-05 16:25:58,940 - DEBUG - Response for create_network : {'network': {'id': '38eb799a-a216-4b9b-a924-f22bcc9e9689', 'name': 'ctest-vn-26533213', 'tenant_id': 'dbed5b7f164f473bb07c3d013317df18', 'project_id': 'dbed5b7f164f473bb07c3d013317df18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58659383', 'ctest-vn-26533213'], 'port_security_enabled': True, 'description': ''}} 2025-06-05 16:25:59,157 - DEBUG - Response for create_subnet : {'subnet': {'id': '6028b644-17d6-4316-9375-3e861241e901', 'name': '', 'tenant_id': 'dbed5b7f164f473bb07c3d013317df18', 'network_id': '38eb799a-a216-4b9b-a924-f22bcc9e9689', 'ip_version': 4, 'cidr': '161.106.84.64/26', 'allocation_pools': [{'start': '161.106.84.66', 'end': '161.106.84.126'}], 'gateway_ip': '161.106.84.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '161.106.84.66', 'tags': [], 'project_id': 'dbed5b7f164f473bb07c3d013317df18'}} 2025-06-05 16:25:59,176 - INFO - Created VN ctest-vn-26533213 2025-06-05 16:25:59,228 - DEBUG - VN ctest-vn-26533213 UUID is 38eb799a-a216-4b9b-a924-f22bcc9e9689 2025-06-05 16:25:59,349 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-58659383:ctest-vn-11444634, 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-58659383:ctest-vn-26533213, 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-06-05 16:25:59,677 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5f2bbe60-8003-4ec2-bbdd-6244b863ce35', 'name': 'ctest-vn-11444634', 'tenant_id': 'dbed5b7f164f473bb07c3d013317df18', 'project_id': 'dbed5b7f164f473bb07c3d013317df18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7518f81b-6a2a-4566-b8d8-fd435ef30445'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58659383', 'ctest-vn-11444634'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58659383', 'ctest-policy-allow-all-29980115']], 'subnet_ipam': [{'subnet_cidr': '82.197.236.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-05 16:26:00,003 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '38eb799a-a216-4b9b-a924-f22bcc9e9689', 'name': 'ctest-vn-26533213', 'tenant_id': 'dbed5b7f164f473bb07c3d013317df18', 'project_id': 'dbed5b7f164f473bb07c3d013317df18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6028b644-17d6-4316-9375-3e861241e901'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58659383', 'ctest-vn-26533213'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58659383', 'ctest-policy-allow-all-29980115']], 'subnet_ipam': [{'subnet_cidr': '161.106.84.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-05 16:26:00,156 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-05 16:26:00,499 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-05 16:26:00,529 - DEBUG - Requesting: http://10.0.0.38:8082/domain/305d856b-6a36-4b2e-ab47-88cae01053be 2025-06-05 16:26:00,544 - DEBUG - Requesting: http://10.0.0.38:8082/project/dbed5b7f-164f-473b-b07c-3d013317df18 2025-06-05 16:26:00,621 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5f2bbe60-8003-4ec2-bbdd-6244b863ce35 2025-06-05 16:26:00,634 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5f2bbe60-8003-4ec2-bbdd-6244b863ce35 2025-06-05 16:26:00,645 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e41fa6b-26c0-4f7c-bc91-a2773b183bcb 2025-06-05 16:26:00,653 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e41fa6b-26c0-4f7c-bc91-a2773b183bcb 2025-06-05 16:26:00,662 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/554fd094-6fe7-4521-8bc3-0b068518f452 2025-06-05 16:26:00,670 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-05 16:26:00,670 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5f2bbe60-8003-4ec2-bbdd-6244b863ce35 2025-06-05 16:26:00,680 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e41fa6b-26c0-4f7c-bc91-a2773b183bcb 2025-06-05 16:26:00,697 - INFO - Verified VN network id 9 for VN 5f2bbe60-8003-4ec2-bbdd-6244b863ce35 2025-06-05 16:26:00,697 - INFO - Verifications in API Server for VN ctest-vn-11444634 passed 2025-06-05 16:26:00,697 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5f2bbe60-8003-4ec2-bbdd-6244b863ce35 2025-06-05 16:26:00,710 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e41fa6b-26c0-4f7c-bc91-a2773b183bcb 2025-06-05 16:26:00,720 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e41fa6b-26c0-4f7c-bc91-a2773b183bcb 2025-06-05 16:26:00,729 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/554fd094-6fe7-4521-8bc3-0b068518f452 2025-06-05 16:26:00,746 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58659383:ctest-vn-11444634', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58659383', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6857784179275550402', 'uuid-lslong': '13537084102236425781'}, 'enable': 'true', 'created': '2025-06-05T16:25:58', 'last-modified': '2025-06-05T16:25:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.103475'} 2025-06-05 16:26:00,755 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-05 16:26:00,755 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11444634 passed 2025-06-05 16:26:00,755 - DEBUG - ====Verifying policy data for ctest-vn-11444634 in API_Server ====== 2025-06-05 16:26:00,755 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-05 16:26:00,761 - DEBUG - Requesting: http://10.0.0.38:8082/domain/305d856b-6a36-4b2e-ab47-88cae01053be 2025-06-05 16:26:00,776 - DEBUG - Requesting: http://10.0.0.38:8082/project/dbed5b7f-164f-473b-b07c-3d013317df18 2025-06-05 16:26:00,849 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5f2bbe60-8003-4ec2-bbdd-6244b863ce35 2025-06-05 16:26:00,861 - DEBUG - ==>Verifying data for policy with id: 91abcf59-a58b-4374-a4a2-d2bc410a0403, fqn: ['default-domain', 'ctest-TestBasicPolicy-58659383', 'ctest-policy-allow-all-29980115'] 2025-06-05 16:26:00,861 - INFO - VN ctest-vn-11444634 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-05 16:26:00,861 - DEBUG - Verifying the vn in opserver 2025-06-05 16:26:00,861 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58659383:ctest-vn-11444634 virtual network link through opserver 10.0.0.38 2025-06-05 16:26:00,861 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-06-05 16:26:01,193 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-06-05 16:26:01,264 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58659383:ctest-vn-11444634', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58659383:ctest-vn-11444634?flat'} 2025-06-05 16:26:01,264 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58659383:ctest-vn-11444634 is found in opserver 2025-06-05 16:26:01,280 - DEBUG - Do not have enough data to verify VN in agent 2025-06-05 16:26:01,288 - DEBUG - VRF ids for VN ctest-vn-11444634: {} 2025-06-05 16:26:01,288 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-05 16:26:01,295 - DEBUG - Requesting: http://10.0.0.38:8082/domain/305d856b-6a36-4b2e-ab47-88cae01053be 2025-06-05 16:26:01,308 - DEBUG - Requesting: http://10.0.0.38:8082/project/dbed5b7f-164f-473b-b07c-3d013317df18 2025-06-05 16:26:01,393 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/38eb799a-a216-4b9b-a924-f22bcc9e9689 2025-06-05 16:26:01,408 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/38eb799a-a216-4b9b-a924-f22bcc9e9689 2025-06-05 16:26:01,422 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1c3d2575-03f3-4abc-9250-36bfb888bdc9 2025-06-05 16:26:01,432 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1c3d2575-03f3-4abc-9250-36bfb888bdc9 2025-06-05 16:26:01,442 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fe264d75-d5f0-4e00-979d-6fa329b19da5 2025-06-05 16:26:01,452 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-05 16:26:01,452 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/38eb799a-a216-4b9b-a924-f22bcc9e9689 2025-06-05 16:26:01,464 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1c3d2575-03f3-4abc-9250-36bfb888bdc9 2025-06-05 16:26:01,480 - INFO - Verified VN network id 10 for VN 38eb799a-a216-4b9b-a924-f22bcc9e9689 2025-06-05 16:26:01,480 - INFO - Verifications in API Server for VN ctest-vn-26533213 passed 2025-06-05 16:26:01,480 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/38eb799a-a216-4b9b-a924-f22bcc9e9689 2025-06-05 16:26:01,491 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1c3d2575-03f3-4abc-9250-36bfb888bdc9 2025-06-05 16:26:01,499 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1c3d2575-03f3-4abc-9250-36bfb888bdc9 2025-06-05 16:26:01,507 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fe264d75-d5f0-4e00-979d-6fa329b19da5 2025-06-05 16:26:01,520 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58659383:ctest-vn-26533213', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58659383', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4101505590702263195', 'uuid-lslong': '12188132761501865609'}, 'enable': 'true', 'created': '2025-06-05T16:25:58', 'last-modified': '2025-06-05T16:25:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.599177'} 2025-06-05 16:26:01,527 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-05 16:26:01,527 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26533213 passed 2025-06-05 16:26:01,528 - DEBUG - ====Verifying policy data for ctest-vn-26533213 in API_Server ====== 2025-06-05 16:26:01,528 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-05 16:26:01,534 - DEBUG - Requesting: http://10.0.0.38:8082/domain/305d856b-6a36-4b2e-ab47-88cae01053be 2025-06-05 16:26:01,550 - DEBUG - Requesting: http://10.0.0.38:8082/project/dbed5b7f-164f-473b-b07c-3d013317df18 2025-06-05 16:26:01,626 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/38eb799a-a216-4b9b-a924-f22bcc9e9689 2025-06-05 16:26:01,642 - DEBUG - ==>Verifying data for policy with id: 91abcf59-a58b-4374-a4a2-d2bc410a0403, fqn: ['default-domain', 'ctest-TestBasicPolicy-58659383', 'ctest-policy-allow-all-29980115'] 2025-06-05 16:26:01,642 - INFO - VN ctest-vn-26533213 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-05 16:26:01,642 - DEBUG - Verifying the vn in opserver 2025-06-05 16:26:01,642 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58659383:ctest-vn-26533213 virtual network link through opserver 10.0.0.38 2025-06-05 16:26:01,642 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-06-05 16:26:01,654 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58659383:ctest-vn-26533213', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58659383:ctest-vn-26533213?flat'} 2025-06-05 16:26:01,654 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58659383:ctest-vn-26533213 is found in opserver 2025-06-05 16:26:01,666 - DEBUG - Do not have enough data to verify VN in agent 2025-06-05 16:26:01,673 - DEBUG - VRF ids for VN ctest-vn-26533213: {} 2025-06-05 16:26:01,740 - DEBUG - Services list from nova: [, , ] 2025-06-05 16:26:02,870 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3407-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3407-1) 2025-06-05 16:26:04,280 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3407-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3407-1) 2025-06-05 16:26:04,280 - INFO - Waiting for VM ctest-TestBasicPolicy-58659383-88955721 to be up.. 2025-06-05 16:26:04,382 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-05 16:26:09,469 - DEBUG - VM is in ACTIVE state now 2025-06-05 16:26:09,469 - INFO - VM name : ctest-TestBasicPolicy-58659383-88955721 2025-06-05 16:26:09,564 - DEBUG - VM ctest-TestBasicPolicy-58659383-88955721 ID is 96284538-6244-4f13-b864-3746edad7ec2 2025-06-05 16:26:09,584 - DEBUG - VM ctest-TestBasicPolicy-58659383-88955721 launched on Node cn-jenkins-deploy-platform-ansible-os-3407-1 2025-06-05 16:26:09,663 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/96284538-6244-4f13-b864-3746edad7ec2 2025-06-05 16:26:09,674 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/bd2ae8bb-cd2c-468e-8a5b-4f9cc1ecf0e2 2025-06-05 16:26:12,931 - 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 1008ms') 2025-06-05 16:26:12,931 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58659383-88955721 failed! 2025-06-05 16:26:12,988 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-58659383:ctest-vn-11444634 is 82.197.236.193 and allocation pool is NOT set 2025-06-05 16:26:15,052 - 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=10.5 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.60 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 = 1.598/6.035/10.473/4.437 ms') 2025-06-05 16:26:15,052 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58659383-88955721 passed 2025-06-05 16:26:15,208 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-05 16:26:15,209 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-58659383-88955721, IP 82.197.236.195, Port 22 2025-06-05 16:26:15,364 - DEBUG - VM ctest-TestBasicPolicy-58659383-88955721 is ready for SSH connections 2025-06-05 16:26:15,364 - INFO - Waiting for VM ctest-TestBasicPolicy-58659383-99145728 to be up.. 2025-06-05 16:26:15,449 - DEBUG - VM is in ACTIVE state now 2025-06-05 16:26:15,449 - INFO - VM name : ctest-TestBasicPolicy-58659383-99145728 2025-06-05 16:26:15,529 - DEBUG - VM ctest-TestBasicPolicy-58659383-99145728 ID is ca19618d-f92a-46e1-80c3-e3437421727c 2025-06-05 16:26:15,529 - DEBUG - VM ctest-TestBasicPolicy-58659383-99145728 launched on Node cn-jenkins-deploy-platform-ansible-os-3407-1 2025-06-05 16:26:15,616 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/ca19618d-f92a-46e1-80c3-e3437421727c 2025-06-05 16:26:15,625 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/419e067b-67a8-4143-b798-760e4a5351ed 2025-06-05 16:26:16,888 - 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=6.00 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.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 = 2.704/4.354/6.004/1.650 ms') 2025-06-05 16:26:16,888 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-58659383-99145728 passed 2025-06-05 16:26:17,044 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-05 16:26:17,045 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-58659383-99145728, IP 161.106.84.67, Port 22 2025-06-05 16:26:17,100 - 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-06-05 16:26:17,177 - DEBUG - VM ctest-TestBasicPolicy-58659383-99145728 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-05 16:26:22,177 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-05 16:26:22,177 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-58659383-99145728, IP 161.106.84.67, Port 22 2025-06-05 16:26:22,336 - DEBUG - VM ctest-TestBasicPolicy-58659383-99145728 is ready for SSH connections 2025-06-05 16:26:22,336 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-05 16:26:22,336 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 161.106.84.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-06-05 16:26:22,336 - DEBUG - ping -s 56 -c 3 -W 1 161.106.84.67 2025-06-05 16:26:26,418 - DEBUG - PING 161.106.84.67 (161.106.84.67): 56 data bytes 64 bytes from 161.106.84.67: seq=0 ttl=63 time=4.227 ms 64 bytes from 161.106.84.67: seq=1 ttl=63 time=0.797 ms 64 bytes from 161.106.84.67: seq=2 ttl=63 time=0.817 ms --- 161.106.84.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.797/1.947/4.227 ms 2025-06-05 16:26:26,418 - INFO - Ping to IP 161.106.84.67 from VM ctest-TestBasicPolicy-58659383-88955721 passed 2025-06-05 16:26:26,604 - DEBUG - Policy Update Response {"network-policy": {"uuid": "91abcf59-a58b-4374-a4a2-d2bc410a0403", "href": "http://10.0.0.38:8082/network-policy/91abcf59-a58b-4374-a4a2-d2bc410a0403"}} 2025-06-05 16:26:26,604 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-05 16:26:26,604 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 161.106.84.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-06-05 16:26:26,605 - DEBUG - ping -s 56 -c 3 -W 1 161.106.84.67 2025-06-05 16:26:29,828 - DEBUG - PING 161.106.84.67 (161.106.84.67): 56 data bytes 64 bytes from 161.106.84.67: seq=0 ttl=63 time=1.742 ms --- 161.106.84.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.742/1.742/1.742 ms 2025-06-05 16:26:29,828 - WARNING - Ping to IP 161.106.84.67 from VM ctest-TestBasicPolicy-58659383-88955721 failed 2025-06-05 16:26:29,828 - INFO - Deleting VM ctest-TestBasicPolicy-58659383-99145728 2025-06-05 16:26:29,900 - INFO - Deleting VM ctest-TestBasicPolicy-58659383-88955721 2025-06-05 16:26:30,369 - INFO - Deleted policy ctest-policy-allow-all-29980115 2025-06-05 16:26:30,369 - INFO - Deleting VN ctest-vn-26533213 2025-06-05 16:26:30,425 - DEBUG - VN 38eb799a-a216-4b9b-a924-f22bcc9e9689 still in use: Unable to complete operation on network 38eb799a-a216-4b9b-a924-f22bcc9e9689. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b3e881bc-8cfa-4b1e-81fd-05fde47881d0'] 2025-06-05 16:26:30,425 - WARNING - Deleting VN ctest-vn-26533213 failed..Will retry 2025-06-05 16:26:32,535 - DEBUG - Response for deleting network () 2025-06-05 16:26:32,535 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1c3d2575-03f3-4abc-9250-36bfb888bdc9 2025-06-05 16:26:32,541 - DEBUG - Response Code: 404 2025-06-05 16:26:32,541 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-05 16:26:32,547 - DEBUG - Requesting: http://10.0.0.38:8082/domain/305d856b-6a36-4b2e-ab47-88cae01053be 2025-06-05 16:26:32,603 - DEBUG - Requesting: http://10.0.0.38:8082/project/dbed5b7f-164f-473b-b07c-3d013317df18 2025-06-05 16:26:32,674 - INFO - Validated that VN ctest-vn-26533213 is not found in API Server 2025-06-05 16:26:32,686 - DEBUG - VN ctest-vn-26533213 is not present in Agent 10.0.0.38 2025-06-05 16:26:32,686 - INFO - Validated that VN ctest-vn-26533213 is not in any agent 2025-06-05 16:26:32,705 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-26533213 info 2025-06-05 16:26:32,705 - INFO - Deleting VN ctest-vn-11444634 2025-06-05 16:26:32,817 - DEBUG - Response for deleting network () 2025-06-05 16:26:32,817 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e41fa6b-26c0-4f7c-bc91-a2773b183bcb 2025-06-05 16:26:32,825 - DEBUG - Response Code: 404 2025-06-05 16:26:32,825 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-05 16:26:32,831 - DEBUG - Requesting: http://10.0.0.38:8082/domain/305d856b-6a36-4b2e-ab47-88cae01053be 2025-06-05 16:26:32,886 - DEBUG - Requesting: http://10.0.0.38:8082/project/dbed5b7f-164f-473b-b07c-3d013317df18 2025-06-05 16:26:32,960 - INFO - Validated that VN ctest-vn-11444634 is not found in API Server 2025-06-05 16:26:32,972 - DEBUG - VN ctest-vn-11444634 is not present in Agent 10.0.0.38 2025-06-05 16:26:32,972 - INFO - Validated that VN ctest-vn-11444634 is not in any agent 2025-06-05 16:26:32,989 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-11444634 info 2025-06-05 16:26:33,253 - DEBUG - No XMPP flaps were noticed during the test
2025-06-05 16:26:33,253 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-06-05 16:26:33,253 - INFO - -------------------------------------------------------------------------------- 2025-06-05 16:26:33,989 - INFO - Deleted project: ctest-TestBasicPolicy-58659383, ID : dbed5b7f-164f-473b-b07c-3d013317df18