2025-02-20 02:23:47,883 - INFO - Domain Default found not creating 2025-02-20 02:23:48,039 - INFO - Project ctest-TestBasicPolicy-19699624 not found, creating it 2025-02-20 02:23:48,522 - INFO - Created Project:ctest-TestBasicPolicy-19699624, ID : 10d37f19-f463-494d-b0d9-0130d37c6eab 2025-02-20 02:23:49,995 - INFO - ================================================================================ 2025-02-20 02:23:49,996 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-02-20 02:23:49,996 - 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-02-20 02:23:50,252 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.18': '0'}} with 2025-02-20 02:23:50,252 - INFO - Initial checks done. Running the testcase now 2025-02-20 02:23:50,252 - INFO - 2025-02-20 02:23:50,826 - DEBUG - Response for create_network : {'network': {'id': 'c6dd6f46-64d7-4eaf-9088-a15248677c60', 'name': 'ctest-vn-48534716', 'tenant_id': '10d37f19f463494db0d90130d37c6eab', 'project_id': '10d37f19f463494db0d90130d37c6eab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19699624', 'ctest-vn-48534716'], 'port_security_enabled': True, 'description': ''}} 2025-02-20 02:23:50,999 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c550d6cd-65ac-4e13-957c-f8b962fffa0c', 'name': '', 'tenant_id': '10d37f19f463494db0d90130d37c6eab', 'network_id': 'c6dd6f46-64d7-4eaf-9088-a15248677c60', 'ip_version': 4, 'cidr': '167.24.131.0/26', 'allocation_pools': [{'start': '167.24.131.2', 'end': '167.24.131.62'}], 'gateway_ip': '167.24.131.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.24.131.2', 'tags': [], 'project_id': '10d37f19f463494db0d90130d37c6eab'}} 2025-02-20 02:23:51,020 - INFO - Created VN ctest-vn-48534716 2025-02-20 02:23:51,074 - DEBUG - VN ctest-vn-48534716 UUID is c6dd6f46-64d7-4eaf-9088-a15248677c60 2025-02-20 02:23:51,400 - DEBUG - Response for create_network : {'network': {'id': '8f170772-dc88-40cd-8611-bdbdc7792509', 'name': 'ctest-vn-94140261', 'tenant_id': '10d37f19f463494db0d90130d37c6eab', 'project_id': '10d37f19f463494db0d90130d37c6eab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19699624', 'ctest-vn-94140261'], 'port_security_enabled': True, 'description': ''}} 2025-02-20 02:23:51,614 - DEBUG - Response for create_subnet : {'subnet': {'id': '193e3be9-05e3-468d-a805-ad01b0994887', 'name': '', 'tenant_id': '10d37f19f463494db0d90130d37c6eab', 'network_id': '8f170772-dc88-40cd-8611-bdbdc7792509', 'ip_version': 4, 'cidr': '156.230.188.128/26', 'allocation_pools': [{'start': '156.230.188.130', 'end': '156.230.188.190'}], 'gateway_ip': '156.230.188.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.230.188.130', 'tags': [], 'project_id': '10d37f19f463494db0d90130d37c6eab'}} 2025-02-20 02:23:51,632 - INFO - Created VN ctest-vn-94140261 2025-02-20 02:23:51,686 - DEBUG - VN ctest-vn-94140261 UUID is 8f170772-dc88-40cd-8611-bdbdc7792509 2025-02-20 02:23:51,803 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-19699624:ctest-vn-48534716, 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-19699624:ctest-vn-94140261, 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-02-20 02:23:52,113 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c6dd6f46-64d7-4eaf-9088-a15248677c60', 'name': 'ctest-vn-48534716', 'tenant_id': '10d37f19f463494db0d90130d37c6eab', 'project_id': '10d37f19f463494db0d90130d37c6eab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c550d6cd-65ac-4e13-957c-f8b962fffa0c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19699624', 'ctest-vn-48534716'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19699624', 'ctest-policy-allow-all-15091337']], 'subnet_ipam': [{'subnet_cidr': '167.24.131.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-20 02:23:52,386 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8f170772-dc88-40cd-8611-bdbdc7792509', 'name': 'ctest-vn-94140261', 'tenant_id': '10d37f19f463494db0d90130d37c6eab', 'project_id': '10d37f19f463494db0d90130d37c6eab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['193e3be9-05e3-468d-a805-ad01b0994887'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19699624', 'ctest-vn-94140261'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19699624', 'ctest-policy-allow-all-15091337']], 'subnet_ipam': [{'subnet_cidr': '156.230.188.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-20 02:23:52,538 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-02-20 02:23:52,834 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-02-20 02:23:52,864 - DEBUG - Requesting: http://10.0.0.30:8082/domain/b2e07a54-da38-47ce-97d6-31e3f5b76015 2025-02-20 02:23:52,878 - DEBUG - Requesting: http://10.0.0.30:8082/project/10d37f19-f463-494d-b0d9-0130d37c6eab 2025-02-20 02:23:52,950 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/c6dd6f46-64d7-4eaf-9088-a15248677c60 2025-02-20 02:23:52,962 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/c6dd6f46-64d7-4eaf-9088-a15248677c60 2025-02-20 02:23:52,972 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/a4b9624d-c704-471a-9566-849aa69e0cdf 2025-02-20 02:23:52,980 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/a4b9624d-c704-471a-9566-849aa69e0cdf 2025-02-20 02:23:52,988 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/dfe82770-74af-4387-b269-a08c80d81c4a 2025-02-20 02:23:52,995 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-02-20 02:23:52,995 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/c6dd6f46-64d7-4eaf-9088-a15248677c60 2025-02-20 02:23:53,006 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/a4b9624d-c704-471a-9566-849aa69e0cdf 2025-02-20 02:23:53,023 - INFO - Verified VN network id 8 for VN c6dd6f46-64d7-4eaf-9088-a15248677c60 2025-02-20 02:23:53,023 - INFO - Verifications in API Server for VN ctest-vn-48534716 passed 2025-02-20 02:23:53,023 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/c6dd6f46-64d7-4eaf-9088-a15248677c60 2025-02-20 02:23:53,033 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/a4b9624d-c704-471a-9566-849aa69e0cdf 2025-02-20 02:23:53,041 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/a4b9624d-c704-471a-9566-849aa69e0cdf 2025-02-20 02:23:53,049 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/dfe82770-74af-4387-b269-a08c80d81c4a 2025-02-20 02:23:53,063 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19699624:ctest-vn-48534716', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19699624', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14329731937493012143', 'uuid-lslong': '10414751513068403808'}, 'enable': 'true', 'created': '2025-02-20T02:23:50', 'last-modified': '2025-02-20T02:23:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.982360'} 2025-02-20 02:23:53,070 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-02-20 02:23:53,071 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48534716 passed 2025-02-20 02:23:53,071 - DEBUG - ====Verifying policy data for ctest-vn-48534716 in API_Server ====== 2025-02-20 02:23:53,071 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-02-20 02:23:53,077 - DEBUG - Requesting: http://10.0.0.30:8082/domain/b2e07a54-da38-47ce-97d6-31e3f5b76015 2025-02-20 02:23:53,090 - DEBUG - Requesting: http://10.0.0.30:8082/project/10d37f19-f463-494d-b0d9-0130d37c6eab 2025-02-20 02:23:53,161 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/c6dd6f46-64d7-4eaf-9088-a15248677c60 2025-02-20 02:23:53,172 - DEBUG - ==>Verifying data for policy with id: d38e58d2-0080-47aa-9933-e14ac96b6594, fqn: ['default-domain', 'ctest-TestBasicPolicy-19699624', 'ctest-policy-allow-all-15091337'] 2025-02-20 02:23:53,172 - INFO - VN ctest-vn-48534716 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-20 02:23:53,172 - DEBUG - Verifying the vn in opserver 2025-02-20 02:23:53,172 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19699624:ctest-vn-48534716 virtual network link through opserver 10.0.0.30 2025-02-20 02:23:53,172 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2025-02-20 02:23:53,465 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2025-02-20 02:23:53,527 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19699624:ctest-vn-48534716', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19699624:ctest-vn-48534716?flat'} 2025-02-20 02:23:53,527 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19699624:ctest-vn-48534716 is found in opserver 2025-02-20 02:23:53,539 - DEBUG - Do not have enough data to verify VN in agent 2025-02-20 02:23:53,544 - DEBUG - VRF ids for VN ctest-vn-48534716: {} 2025-02-20 02:23:53,545 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-02-20 02:23:53,552 - DEBUG - Requesting: http://10.0.0.30:8082/domain/b2e07a54-da38-47ce-97d6-31e3f5b76015 2025-02-20 02:23:53,565 - DEBUG - Requesting: http://10.0.0.30:8082/project/10d37f19-f463-494d-b0d9-0130d37c6eab 2025-02-20 02:23:53,638 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/8f170772-dc88-40cd-8611-bdbdc7792509 2025-02-20 02:23:53,649 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/8f170772-dc88-40cd-8611-bdbdc7792509 2025-02-20 02:23:53,659 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/185ff70e-722c-4d10-9199-1a5f346ee12c 2025-02-20 02:23:53,667 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/185ff70e-722c-4d10-9199-1a5f346ee12c 2025-02-20 02:23:53,675 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/b867138f-cb88-467b-9f9b-f083cd58aa0a 2025-02-20 02:23:53,684 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-20 02:23:53,684 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/8f170772-dc88-40cd-8611-bdbdc7792509 2025-02-20 02:23:53,696 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/185ff70e-722c-4d10-9199-1a5f346ee12c 2025-02-20 02:23:53,715 - INFO - Verified VN network id 9 for VN 8f170772-dc88-40cd-8611-bdbdc7792509 2025-02-20 02:23:53,715 - INFO - Verifications in API Server for VN ctest-vn-94140261 passed 2025-02-20 02:23:53,715 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/8f170772-dc88-40cd-8611-bdbdc7792509 2025-02-20 02:23:53,727 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/185ff70e-722c-4d10-9199-1a5f346ee12c 2025-02-20 02:23:53,736 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/185ff70e-722c-4d10-9199-1a5f346ee12c 2025-02-20 02:23:53,743 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/b867138f-cb88-467b-9f9b-f083cd58aa0a 2025-02-20 02:23:53,758 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19699624:ctest-vn-94140261', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19699624', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10310718061795623117', 'uuid-lslong': '9660711298479498505'}, 'enable': 'true', 'created': '2025-02-20T02:23:51', 'last-modified': '2025-02-20T02:23:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.446136'} 2025-02-20 02:23:53,766 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-20 02:23:53,766 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94140261 passed 2025-02-20 02:23:53,766 - DEBUG - ====Verifying policy data for ctest-vn-94140261 in API_Server ====== 2025-02-20 02:23:53,766 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-02-20 02:23:53,772 - DEBUG - Requesting: http://10.0.0.30:8082/domain/b2e07a54-da38-47ce-97d6-31e3f5b76015 2025-02-20 02:23:53,786 - DEBUG - Requesting: http://10.0.0.30:8082/project/10d37f19-f463-494d-b0d9-0130d37c6eab 2025-02-20 02:23:53,859 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/8f170772-dc88-40cd-8611-bdbdc7792509 2025-02-20 02:23:53,870 - DEBUG - ==>Verifying data for policy with id: d38e58d2-0080-47aa-9933-e14ac96b6594, fqn: ['default-domain', 'ctest-TestBasicPolicy-19699624', 'ctest-policy-allow-all-15091337'] 2025-02-20 02:23:53,870 - INFO - VN ctest-vn-94140261 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-20 02:23:53,870 - DEBUG - Verifying the vn in opserver 2025-02-20 02:23:53,870 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19699624:ctest-vn-94140261 virtual network link through opserver 10.0.0.30 2025-02-20 02:23:53,870 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2025-02-20 02:23:53,881 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19699624:ctest-vn-94140261', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19699624:ctest-vn-94140261?flat'} 2025-02-20 02:23:53,881 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19699624:ctest-vn-94140261 is found in opserver 2025-02-20 02:23:53,892 - DEBUG - Do not have enough data to verify VN in agent 2025-02-20 02:23:53,898 - DEBUG - VRF ids for VN ctest-vn-94140261: {} 2025-02-20 02:23:53,953 - DEBUG - Services list from nova: [, , ] 2025-02-20 02:23:54,977 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2752-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2752-1) 2025-02-20 02:23:56,253 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2752-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2752-1) 2025-02-20 02:23:56,253 - INFO - Waiting for VM ctest-TestBasicPolicy-19699624-55951595 to be up.. 2025-02-20 02:23:56,335 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-02-20 02:24:01,415 - DEBUG - VM is in ACTIVE state now 2025-02-20 02:24:01,415 - INFO - VM name : ctest-TestBasicPolicy-19699624-55951595 2025-02-20 02:24:01,495 - DEBUG - VM ctest-TestBasicPolicy-19699624-55951595 ID is fd8d4303-5f4d-4491-8440-b41931e40253 2025-02-20 02:24:01,514 - DEBUG - VM ctest-TestBasicPolicy-19699624-55951595 launched on Node cn-jenkins-deploy-platform-ansible-os-2752-1 2025-02-20 02:24:01,590 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/fd8d4303-5f4d-4491-8440-b41931e40253 2025-02-20 02:24:01,601 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/d58b44a8-cef0-4a56-9773-026a9cfdeb19 2025-02-20 02:24:04,817 - 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 1014ms') 2025-02-20 02:24:04,817 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-19699624-55951595 failed! 2025-02-20 02:24:04,874 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-19699624:ctest-vn-48534716 is 167.24.131.1 and allocation pool is NOT set 2025-02-20 02:24:06,938 - 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=7.56 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.09 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.089/4.322/7.555/3.233 ms') 2025-02-20 02:24:06,938 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-19699624-55951595 passed 2025-02-20 02:24:07,094 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-20 02:24:07,094 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-19699624-55951595, IP 167.24.131.3, Port 22 2025-02-20 02:24:07,254 - DEBUG - VM ctest-TestBasicPolicy-19699624-55951595 is ready for SSH connections 2025-02-20 02:24:07,254 - INFO - Waiting for VM ctest-TestBasicPolicy-19699624-35429991 to be up.. 2025-02-20 02:24:07,339 - DEBUG - VM is in ACTIVE state now 2025-02-20 02:24:07,339 - INFO - VM name : ctest-TestBasicPolicy-19699624-35429991 2025-02-20 02:24:07,414 - DEBUG - VM ctest-TestBasicPolicy-19699624-35429991 ID is f5d4740c-53f9-438f-a462-9e670cc74cb5 2025-02-20 02:24:07,414 - DEBUG - VM ctest-TestBasicPolicy-19699624-35429991 launched on Node cn-jenkins-deploy-platform-ansible-os-2752-1 2025-02-20 02:24:07,489 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/f5d4740c-53f9-438f-a462-9e670cc74cb5 2025-02-20 02:24:07,498 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/ed64733e-6266-4c94-914a-176d389c61dc 2025-02-20 02:24:08,745 - 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.02 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 = 1.023/2.888/4.753/1.865 ms') 2025-02-20 02:24:08,745 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-19699624-35429991 passed 2025-02-20 02:24:08,902 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-20 02:24:08,903 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-19699624-35429991, IP 156.230.188.131, Port 22 2025-02-20 02:24:08,958 - 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-02-20 02:24:09,048 - DEBUG - VM ctest-TestBasicPolicy-19699624-35429991 is NOT ready for SSH connections, VM status: ACTIVE 2025-02-20 02:24:14,049 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-20 02:24:14,049 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-19699624-35429991, IP 156.230.188.131, Port 22 2025-02-20 02:24:14,210 - DEBUG - VM ctest-TestBasicPolicy-19699624-35429991 is ready for SSH connections 2025-02-20 02:24:14,210 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-20 02:24:14,210 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 156.230.188.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.30, gateway password: c0ntrail123 2025-02-20 02:24:14,210 - DEBUG - ping -s 56 -c 3 -W 1 156.230.188.131 2025-02-20 02:24:17,913 - DEBUG - PING 156.230.188.131 (156.230.188.131): 56 data bytes 64 bytes from 156.230.188.131: seq=0 ttl=63 time=5.330 ms 64 bytes from 156.230.188.131: seq=1 ttl=63 time=0.949 ms 64 bytes from 156.230.188.131: seq=2 ttl=63 time=0.868 ms --- 156.230.188.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.868/2.382/5.330 ms 2025-02-20 02:24:17,913 - INFO - Ping to IP 156.230.188.131 from VM ctest-TestBasicPolicy-19699624-55951595 passed 2025-02-20 02:24:18,090 - DEBUG - Policy Update Response {"network-policy": {"uuid": "d38e58d2-0080-47aa-9933-e14ac96b6594", "href": "http://10.0.0.30:8082/network-policy/d38e58d2-0080-47aa-9933-e14ac96b6594"}} 2025-02-20 02:24:18,090 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-20 02:24:18,090 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 156.230.188.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.30, gateway password: c0ntrail123 2025-02-20 02:24:18,090 - DEBUG - ping -s 56 -c 3 -W 1 156.230.188.131 2025-02-20 02:24:21,303 - DEBUG - PING 156.230.188.131 (156.230.188.131): 56 data bytes 64 bytes from 156.230.188.131: seq=0 ttl=63 time=1.693 ms --- 156.230.188.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.693/1.693/1.693 ms 2025-02-20 02:24:21,303 - WARNING - Ping to IP 156.230.188.131 from VM ctest-TestBasicPolicy-19699624-55951595 failed 2025-02-20 02:24:21,303 - INFO - Deleting VM ctest-TestBasicPolicy-19699624-35429991 2025-02-20 02:24:21,379 - INFO - Deleting VM ctest-TestBasicPolicy-19699624-55951595 2025-02-20 02:24:21,779 - INFO - Deleted policy ctest-policy-allow-all-15091337 2025-02-20 02:24:21,779 - INFO - Deleting VN ctest-vn-94140261 2025-02-20 02:24:21,816 - DEBUG - VN 8f170772-dc88-40cd-8611-bdbdc7792509 still in use: Unable to complete operation on network 8f170772-dc88-40cd-8611-bdbdc7792509. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c550d219-bcc4-417e-9633-e4641a875e49'] 2025-02-20 02:24:21,816 - WARNING - Deleting VN ctest-vn-94140261 failed..Will retry 2025-02-20 02:24:23,922 - DEBUG - Response for deleting network () 2025-02-20 02:24:23,922 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/185ff70e-722c-4d10-9199-1a5f346ee12c 2025-02-20 02:24:23,930 - DEBUG - Response Code: 404 2025-02-20 02:24:23,930 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-02-20 02:24:23,936 - DEBUG - Requesting: http://10.0.0.30:8082/domain/b2e07a54-da38-47ce-97d6-31e3f5b76015 2025-02-20 02:24:23,994 - DEBUG - Requesting: http://10.0.0.30:8082/project/10d37f19-f463-494d-b0d9-0130d37c6eab 2025-02-20 02:24:24,073 - INFO - Validated that VN ctest-vn-94140261 is not found in API Server 2025-02-20 02:24:24,086 - DEBUG - VN ctest-vn-94140261 is not present in Agent 10.0.0.30 2025-02-20 02:24:24,086 - INFO - Validated that VN ctest-vn-94140261 is not in any agent 2025-02-20 02:24:24,103 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-94140261 info 2025-02-20 02:24:24,103 - INFO - Deleting VN ctest-vn-48534716 2025-02-20 02:24:24,209 - DEBUG - Response for deleting network () 2025-02-20 02:24:24,209 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/a4b9624d-c704-471a-9566-849aa69e0cdf 2025-02-20 02:24:24,221 - DEBUG - Response Code: 404 2025-02-20 02:24:24,221 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-02-20 02:24:24,228 - DEBUG - Requesting: http://10.0.0.30:8082/domain/b2e07a54-da38-47ce-97d6-31e3f5b76015 2025-02-20 02:24:24,285 - DEBUG - Requesting: http://10.0.0.30:8082/project/10d37f19-f463-494d-b0d9-0130d37c6eab 2025-02-20 02:24:24,360 - INFO - Validated that VN ctest-vn-48534716 is not found in API Server 2025-02-20 02:24:24,372 - DEBUG - VN ctest-vn-48534716 is not present in Agent 10.0.0.30 2025-02-20 02:24:24,372 - INFO - Validated that VN ctest-vn-48534716 is not in any agent 2025-02-20 02:24:24,390 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-48534716 info 2025-02-20 02:24:24,651 - DEBUG - No XMPP flaps were noticed during the test
2025-02-20 02:24:24,651 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-02-20 02:24:24,651 - INFO - -------------------------------------------------------------------------------- 2025-02-20 02:24:25,423 - INFO - Deleted project: ctest-TestBasicPolicy-19699624, ID : 10d37f19-f463-494d-b0d9-0130d37c6eab