2025-02-17 02:26:54,449 - INFO - Domain Default found not creating 2025-02-17 02:26:54,617 - INFO - Project ctest-TestBasicPolicy-35577457 not found, creating it 2025-02-17 02:26:55,101 - INFO - Created Project:ctest-TestBasicPolicy-35577457, ID : ec3a4ab9-f912-4b6d-905f-60acb71cdd16 2025-02-17 02:26:56,723 - INFO - ================================================================================ 2025-02-17 02:26:56,723 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-02-17 02:26:56,723 - 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-17 02:26:56,977 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.25': '0'}} with 2025-02-17 02:26:56,977 - INFO - Initial checks done. Running the testcase now 2025-02-17 02:26:56,977 - INFO - 2025-02-17 02:26:57,598 - DEBUG - Response for create_network : {'network': {'id': '862f8e7a-cddd-4400-81d7-86d37f75ff3d', 'name': 'ctest-vn-63739299', 'tenant_id': 'ec3a4ab9f9124b6d905f60acb71cdd16', 'project_id': 'ec3a4ab9f9124b6d905f60acb71cdd16', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35577457', 'ctest-vn-63739299'], 'port_security_enabled': True, 'description': ''}} 2025-02-17 02:26:57,793 - DEBUG - Response for create_subnet : {'subnet': {'id': '80361b5f-da9f-47a1-b14d-ae3bed8758f3', 'name': '', 'tenant_id': 'ec3a4ab9f9124b6d905f60acb71cdd16', 'network_id': '862f8e7a-cddd-4400-81d7-86d37f75ff3d', 'ip_version': 4, 'cidr': '57.122.188.192/26', 'allocation_pools': [{'start': '57.122.188.194', 'end': '57.122.188.254'}], 'gateway_ip': '57.122.188.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '57.122.188.194', 'tags': [], 'project_id': 'ec3a4ab9f9124b6d905f60acb71cdd16'}} 2025-02-17 02:26:57,813 - INFO - Created VN ctest-vn-63739299 2025-02-17 02:26:57,870 - DEBUG - VN ctest-vn-63739299 UUID is 862f8e7a-cddd-4400-81d7-86d37f75ff3d 2025-02-17 02:26:58,189 - DEBUG - Response for create_network : {'network': {'id': '44ece93b-a2d7-4fdb-b39e-9af02ee018b4', 'name': 'ctest-vn-01210873', 'tenant_id': 'ec3a4ab9f9124b6d905f60acb71cdd16', 'project_id': 'ec3a4ab9f9124b6d905f60acb71cdd16', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35577457', 'ctest-vn-01210873'], 'port_security_enabled': True, 'description': ''}} 2025-02-17 02:26:58,423 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cb5e7140-581d-4962-94df-a2ddbd47fcb5', 'name': '', 'tenant_id': 'ec3a4ab9f9124b6d905f60acb71cdd16', 'network_id': '44ece93b-a2d7-4fdb-b39e-9af02ee018b4', 'ip_version': 4, 'cidr': '14.112.15.64/26', 'allocation_pools': [{'start': '14.112.15.66', 'end': '14.112.15.126'}], 'gateway_ip': '14.112.15.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.112.15.66', 'tags': [], 'project_id': 'ec3a4ab9f9124b6d905f60acb71cdd16'}} 2025-02-17 02:26:58,446 - INFO - Created VN ctest-vn-01210873 2025-02-17 02:26:58,502 - DEBUG - VN ctest-vn-01210873 UUID is 44ece93b-a2d7-4fdb-b39e-9af02ee018b4 2025-02-17 02:26:58,632 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-35577457:ctest-vn-63739299, 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-35577457:ctest-vn-01210873, 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-17 02:26:58,979 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '862f8e7a-cddd-4400-81d7-86d37f75ff3d', 'name': 'ctest-vn-63739299', 'tenant_id': 'ec3a4ab9f9124b6d905f60acb71cdd16', 'project_id': 'ec3a4ab9f9124b6d905f60acb71cdd16', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['80361b5f-da9f-47a1-b14d-ae3bed8758f3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35577457', 'ctest-vn-63739299'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35577457', 'ctest-policy-allow-all-26672794']], 'subnet_ipam': [{'subnet_cidr': '57.122.188.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-17 02:26:59,242 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '44ece93b-a2d7-4fdb-b39e-9af02ee018b4', 'name': 'ctest-vn-01210873', 'tenant_id': 'ec3a4ab9f9124b6d905f60acb71cdd16', 'project_id': 'ec3a4ab9f9124b6d905f60acb71cdd16', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cb5e7140-581d-4962-94df-a2ddbd47fcb5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35577457', 'ctest-vn-01210873'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35577457', 'ctest-policy-allow-all-26672794']], 'subnet_ipam': [{'subnet_cidr': '14.112.15.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-17 02:26:59,394 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2025-02-17 02:26:59,740 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2025-02-17 02:26:59,775 - DEBUG - Requesting: http://10.0.0.36:8082/domain/ea0569c6-a0d5-4f8b-aac7-fa73387a24ba 2025-02-17 02:26:59,792 - DEBUG - Requesting: http://10.0.0.36:8082/project/ec3a4ab9-f912-4b6d-905f-60acb71cdd16 2025-02-17 02:26:59,875 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/862f8e7a-cddd-4400-81d7-86d37f75ff3d 2025-02-17 02:26:59,891 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/862f8e7a-cddd-4400-81d7-86d37f75ff3d 2025-02-17 02:26:59,904 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/4bc4e32e-480e-4d85-943d-e9d1ce0d6857 2025-02-17 02:26:59,914 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/4bc4e32e-480e-4d85-943d-e9d1ce0d6857 2025-02-17 02:26:59,923 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/e971f3a8-33e3-4043-ae0d-f0d50bde020f 2025-02-17 02:26:59,931 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-02-17 02:26:59,931 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/862f8e7a-cddd-4400-81d7-86d37f75ff3d 2025-02-17 02:26:59,943 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/4bc4e32e-480e-4d85-943d-e9d1ce0d6857 2025-02-17 02:26:59,963 - INFO - Verified VN network id 8 for VN 862f8e7a-cddd-4400-81d7-86d37f75ff3d 2025-02-17 02:26:59,964 - INFO - Verifications in API Server for VN ctest-vn-63739299 passed 2025-02-17 02:26:59,964 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/862f8e7a-cddd-4400-81d7-86d37f75ff3d 2025-02-17 02:26:59,976 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/4bc4e32e-480e-4d85-943d-e9d1ce0d6857 2025-02-17 02:26:59,984 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/4bc4e32e-480e-4d85-943d-e9d1ce0d6857 2025-02-17 02:26:59,993 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/e971f3a8-33e3-4043-ae0d-f0d50bde020f 2025-02-17 02:27:00,009 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35577457:ctest-vn-63739299', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35577457', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9669103583078728704', 'uuid-lslong': '9356094993820155709'}, 'enable': 'true', 'created': '2025-02-17T02:26:57', 'last-modified': '2025-02-17T02:26:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.067221'} 2025-02-17 02:27:00,018 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-02-17 02:27:00,018 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63739299 passed 2025-02-17 02:27:00,018 - DEBUG - ====Verifying policy data for ctest-vn-63739299 in API_Server ====== 2025-02-17 02:27:00,018 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2025-02-17 02:27:00,025 - DEBUG - Requesting: http://10.0.0.36:8082/domain/ea0569c6-a0d5-4f8b-aac7-fa73387a24ba 2025-02-17 02:27:00,039 - DEBUG - Requesting: http://10.0.0.36:8082/project/ec3a4ab9-f912-4b6d-905f-60acb71cdd16 2025-02-17 02:27:00,126 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/862f8e7a-cddd-4400-81d7-86d37f75ff3d 2025-02-17 02:27:00,143 - DEBUG - ==>Verifying data for policy with id: d4fff833-7296-42ed-abe0-e71ca849454b, fqn: ['default-domain', 'ctest-TestBasicPolicy-35577457', 'ctest-policy-allow-all-26672794'] 2025-02-17 02:27:00,143 - INFO - VN ctest-vn-63739299 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-17 02:27:00,143 - DEBUG - Verifying the vn in opserver 2025-02-17 02:27:00,143 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35577457:ctest-vn-63739299 virtual network link through opserver 10.0.0.36 2025-02-17 02:27:00,144 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2025-02-17 02:27:00,480 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2025-02-17 02:27:00,557 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35577457:ctest-vn-63739299', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35577457:ctest-vn-63739299?flat'} 2025-02-17 02:27:00,557 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35577457:ctest-vn-63739299 is found in opserver 2025-02-17 02:27:00,574 - DEBUG - Do not have enough data to verify VN in agent 2025-02-17 02:27:00,582 - DEBUG - VRF ids for VN ctest-vn-63739299: {} 2025-02-17 02:27:00,582 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2025-02-17 02:27:00,589 - DEBUG - Requesting: http://10.0.0.36:8082/domain/ea0569c6-a0d5-4f8b-aac7-fa73387a24ba 2025-02-17 02:27:00,607 - DEBUG - Requesting: http://10.0.0.36:8082/project/ec3a4ab9-f912-4b6d-905f-60acb71cdd16 2025-02-17 02:27:00,690 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/44ece93b-a2d7-4fdb-b39e-9af02ee018b4 2025-02-17 02:27:00,707 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/44ece93b-a2d7-4fdb-b39e-9af02ee018b4 2025-02-17 02:27:00,723 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d8571e60-d313-48fe-b5f2-ead5fffb5c17 2025-02-17 02:27:00,734 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d8571e60-d313-48fe-b5f2-ead5fffb5c17 2025-02-17 02:27:00,746 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/f4663bf3-e48d-4036-9391-04a1ab942016 2025-02-17 02:27:00,758 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-17 02:27:00,758 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/44ece93b-a2d7-4fdb-b39e-9af02ee018b4 2025-02-17 02:27:00,773 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d8571e60-d313-48fe-b5f2-ead5fffb5c17 2025-02-17 02:27:00,796 - INFO - Verified VN network id 9 for VN 44ece93b-a2d7-4fdb-b39e-9af02ee018b4 2025-02-17 02:27:00,797 - INFO - Verifications in API Server for VN ctest-vn-01210873 passed 2025-02-17 02:27:00,797 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/44ece93b-a2d7-4fdb-b39e-9af02ee018b4 2025-02-17 02:27:00,813 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d8571e60-d313-48fe-b5f2-ead5fffb5c17 2025-02-17 02:27:00,823 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d8571e60-d313-48fe-b5f2-ead5fffb5c17 2025-02-17 02:27:00,832 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/f4663bf3-e48d-4036-9391-04a1ab942016 2025-02-17 02:27:00,849 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35577457:ctest-vn-01210873', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35577457', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4966600931427176411', 'uuid-lslong': '12942952735478651060'}, 'enable': 'true', 'created': '2025-02-17T02:26:58', 'last-modified': '2025-02-17T02:26:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.626761'} 2025-02-17 02:27:00,858 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-17 02:27:00,858 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01210873 passed 2025-02-17 02:27:00,858 - DEBUG - ====Verifying policy data for ctest-vn-01210873 in API_Server ====== 2025-02-17 02:27:00,858 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2025-02-17 02:27:00,866 - DEBUG - Requesting: http://10.0.0.36:8082/domain/ea0569c6-a0d5-4f8b-aac7-fa73387a24ba 2025-02-17 02:27:00,881 - DEBUG - Requesting: http://10.0.0.36:8082/project/ec3a4ab9-f912-4b6d-905f-60acb71cdd16 2025-02-17 02:27:00,969 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/44ece93b-a2d7-4fdb-b39e-9af02ee018b4 2025-02-17 02:27:00,984 - DEBUG - ==>Verifying data for policy with id: d4fff833-7296-42ed-abe0-e71ca849454b, fqn: ['default-domain', 'ctest-TestBasicPolicy-35577457', 'ctest-policy-allow-all-26672794'] 2025-02-17 02:27:00,984 - INFO - VN ctest-vn-01210873 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-17 02:27:00,984 - DEBUG - Verifying the vn in opserver 2025-02-17 02:27:00,984 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35577457:ctest-vn-01210873 virtual network link through opserver 10.0.0.36 2025-02-17 02:27:00,984 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2025-02-17 02:27:00,997 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35577457:ctest-vn-01210873', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35577457:ctest-vn-01210873?flat'} 2025-02-17 02:27:00,998 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35577457:ctest-vn-01210873 is found in opserver 2025-02-17 02:27:01,014 - DEBUG - Do not have enough data to verify VN in agent 2025-02-17 02:27:01,022 - DEBUG - VRF ids for VN ctest-vn-01210873: {} 2025-02-17 02:27:01,096 - DEBUG - Services list from nova: [, , ] 2025-02-17 02:27:02,319 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2741-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2741-1) 2025-02-17 02:27:03,821 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2741-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2741-1) 2025-02-17 02:27:03,821 - INFO - Waiting for VM ctest-TestBasicPolicy-35577457-32231698 to be up.. 2025-02-17 02:27:03,929 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-02-17 02:27:09,035 - DEBUG - VM is in ACTIVE state now 2025-02-17 02:27:09,035 - INFO - VM name : ctest-TestBasicPolicy-35577457-32231698 2025-02-17 02:27:09,130 - DEBUG - VM ctest-TestBasicPolicy-35577457-32231698 ID is 513bed3a-c6f4-4659-9769-da6a42a1e972 2025-02-17 02:27:09,154 - DEBUG - VM ctest-TestBasicPolicy-35577457-32231698 launched on Node cn-jenkins-deploy-platform-ansible-os-2741-1 2025-02-17 02:27:09,247 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/513bed3a-c6f4-4659-9769-da6a42a1e972 2025-02-17 02:27:09,259 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/67d80e6c-aa1f-43ed-95b0-f9d1bd98e795 2025-02-17 02:27:12,531 - 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 1010ms') 2025-02-17 02:27:12,531 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-35577457-32231698 failed! 2025-02-17 02:27:12,610 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-35577457:ctest-vn-63739299 is 57.122.188.193 and allocation pool is NOT set 2025-02-17 02:27:14,683 - 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.89 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.07 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 = 2.070/4.978/7.886/2.908 ms') 2025-02-17 02:27:14,683 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-35577457-32231698 passed 2025-02-17 02:27:14,842 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-17 02:27:14,842 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-35577457-32231698, IP 57.122.188.195, Port 22 2025-02-17 02:27:15,012 - DEBUG - VM ctest-TestBasicPolicy-35577457-32231698 is ready for SSH connections 2025-02-17 02:27:15,012 - INFO - Waiting for VM ctest-TestBasicPolicy-35577457-79457184 to be up.. 2025-02-17 02:27:15,127 - DEBUG - VM is in ACTIVE state now 2025-02-17 02:27:15,128 - INFO - VM name : ctest-TestBasicPolicy-35577457-79457184 2025-02-17 02:27:15,239 - DEBUG - VM ctest-TestBasicPolicy-35577457-79457184 ID is 73dca460-546e-4fc9-92a9-568170975107 2025-02-17 02:27:15,240 - DEBUG - VM ctest-TestBasicPolicy-35577457-79457184 launched on Node cn-jenkins-deploy-platform-ansible-os-2741-1 2025-02-17 02:27:15,346 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/73dca460-546e-4fc9-92a9-568170975107 2025-02-17 02:27:15,357 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/f77f32f9-bb2c-4672-892b-0a0f07493dae 2025-02-17 02:27:16,613 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=3.93 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.00 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 = 1.000/2.466/3.932/1.466 ms') 2025-02-17 02:27:16,613 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-35577457-79457184 passed 2025-02-17 02:27:16,770 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-17 02:27:16,770 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-35577457-79457184, IP 14.112.15.67, Port 22 2025-02-17 02:27:16,836 - 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-17 02:27:16,930 - DEBUG - VM ctest-TestBasicPolicy-35577457-79457184 is NOT ready for SSH connections, VM status: ACTIVE 2025-02-17 02:27:21,931 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-17 02:27:21,931 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-35577457-79457184, IP 14.112.15.67, Port 22 2025-02-17 02:27:22,090 - DEBUG - VM ctest-TestBasicPolicy-35577457-79457184 is ready for SSH connections 2025-02-17 02:27:22,090 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-17 02:27:22,090 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 14.112.15.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2025-02-17 02:27:22,090 - DEBUG - ping -s 56 -c 3 -W 1 14.112.15.67 2025-02-17 02:27:26,237 - DEBUG - PING 14.112.15.67 (14.112.15.67): 56 data bytes 64 bytes from 14.112.15.67: seq=0 ttl=63 time=4.583 ms 64 bytes from 14.112.15.67: seq=1 ttl=63 time=0.963 ms 64 bytes from 14.112.15.67: seq=2 ttl=63 time=0.827 ms --- 14.112.15.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.827/2.124/4.583 ms 2025-02-17 02:27:26,237 - INFO - Ping to IP 14.112.15.67 from VM ctest-TestBasicPolicy-35577457-32231698 passed 2025-02-17 02:27:26,422 - DEBUG - Policy Update Response {"network-policy": {"uuid": "d4fff833-7296-42ed-abe0-e71ca849454b", "href": "http://10.0.0.36:8082/network-policy/d4fff833-7296-42ed-abe0-e71ca849454b"}} 2025-02-17 02:27:26,422 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-17 02:27:26,422 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 14.112.15.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2025-02-17 02:27:26,423 - DEBUG - ping -s 56 -c 3 -W 1 14.112.15.67 2025-02-17 02:27:29,642 - DEBUG - PING 14.112.15.67 (14.112.15.67): 56 data bytes 64 bytes from 14.112.15.67: seq=0 ttl=63 time=1.755 ms --- 14.112.15.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.755/1.755/1.755 ms 2025-02-17 02:27:29,642 - WARNING - Ping to IP 14.112.15.67 from VM ctest-TestBasicPolicy-35577457-32231698 failed 2025-02-17 02:27:29,642 - INFO - Deleting VM ctest-TestBasicPolicy-35577457-79457184 2025-02-17 02:27:29,725 - INFO - Deleting VM ctest-TestBasicPolicy-35577457-32231698 2025-02-17 02:27:30,172 - INFO - Deleted policy ctest-policy-allow-all-26672794 2025-02-17 02:27:30,173 - INFO - Deleting VN ctest-vn-01210873 2025-02-17 02:27:30,226 - DEBUG - VN 44ece93b-a2d7-4fdb-b39e-9af02ee018b4 still in use: Unable to complete operation on network 44ece93b-a2d7-4fdb-b39e-9af02ee018b4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-01246bf1-58f6-4eb5-9b33-90fa39aeea5a'] 2025-02-17 02:27:30,226 - WARNING - Deleting VN ctest-vn-01210873 failed..Will retry 2025-02-17 02:27:32,346 - DEBUG - Response for deleting network () 2025-02-17 02:27:32,347 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d8571e60-d313-48fe-b5f2-ead5fffb5c17 2025-02-17 02:27:32,354 - DEBUG - Response Code: 404 2025-02-17 02:27:32,354 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2025-02-17 02:27:32,362 - DEBUG - Requesting: http://10.0.0.36:8082/domain/ea0569c6-a0d5-4f8b-aac7-fa73387a24ba 2025-02-17 02:27:32,427 - DEBUG - Requesting: http://10.0.0.36:8082/project/ec3a4ab9-f912-4b6d-905f-60acb71cdd16 2025-02-17 02:27:32,503 - INFO - Validated that VN ctest-vn-01210873 is not found in API Server 2025-02-17 02:27:32,517 - DEBUG - VN ctest-vn-01210873 is not present in Agent 10.0.0.36 2025-02-17 02:27:32,517 - INFO - Validated that VN ctest-vn-01210873 is not in any agent 2025-02-17 02:27:32,535 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-01210873 info 2025-02-17 02:27:32,535 - INFO - Deleting VN ctest-vn-63739299 2025-02-17 02:27:32,653 - DEBUG - Response for deleting network () 2025-02-17 02:27:32,653 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/4bc4e32e-480e-4d85-943d-e9d1ce0d6857 2025-02-17 02:27:32,661 - DEBUG - Response Code: 404 2025-02-17 02:27:32,661 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2025-02-17 02:27:32,669 - DEBUG - Requesting: http://10.0.0.36:8082/domain/ea0569c6-a0d5-4f8b-aac7-fa73387a24ba 2025-02-17 02:27:32,725 - DEBUG - Requesting: http://10.0.0.36:8082/project/ec3a4ab9-f912-4b6d-905f-60acb71cdd16 2025-02-17 02:27:32,803 - INFO - Validated that VN ctest-vn-63739299 is not found in API Server 2025-02-17 02:27:32,816 - DEBUG - VN ctest-vn-63739299 is not present in Agent 10.0.0.36 2025-02-17 02:27:32,816 - INFO - Validated that VN ctest-vn-63739299 is not in any agent 2025-02-17 02:27:32,835 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-63739299 info 2025-02-17 02:27:33,097 - DEBUG - No XMPP flaps were noticed during the test
2025-02-17 02:27:33,097 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37]
2025-02-17 02:27:33,097 - INFO - -------------------------------------------------------------------------------- 2025-02-17 02:27:33,868 - INFO - Deleted project: ctest-TestBasicPolicy-35577457, ID : ec3a4ab9-f912-4b6d-905f-60acb71cdd16