2025-04-14 23:03:08,651 - INFO - Domain Default found not creating 2025-04-14 23:03:08,804 - INFO - Project ctest-TestBasicPolicy-08438773 not found, creating it 2025-04-14 23:03:09,247 - INFO - Created Project:ctest-TestBasicPolicy-08438773, ID : 33672801-a006-4485-826e-1442504dbf4e 2025-04-14 23:03:10,775 - INFO - ================================================================================ 2025-04-14 23:03:10,775 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-14 23:03:10,776 - 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-04-14 23:03:11,034 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with 2025-04-14 23:03:11,034 - INFO - Initial checks done. Running the testcase now 2025-04-14 23:03:11,034 - INFO - 2025-04-14 23:03:11,593 - DEBUG - Response for create_network : {'network': {'id': '0460d39a-e570-4265-bce6-f817d9c9553b', 'name': 'ctest-vn-16353952', 'tenant_id': '33672801a0064485826e1442504dbf4e', 'project_id': '33672801a0064485826e1442504dbf4e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08438773', 'ctest-vn-16353952'], 'port_security_enabled': True, 'description': ''}} 2025-04-14 23:03:11,761 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd749f6d2-2379-49bb-9c57-cf3975798ffb', 'name': '', 'tenant_id': '33672801a0064485826e1442504dbf4e', 'network_id': '0460d39a-e570-4265-bce6-f817d9c9553b', 'ip_version': 4, 'cidr': '3.158.10.192/26', 'allocation_pools': [{'start': '3.158.10.194', 'end': '3.158.10.254'}], 'gateway_ip': '3.158.10.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.158.10.194', 'tags': [], 'project_id': '33672801a0064485826e1442504dbf4e'}} 2025-04-14 23:03:11,779 - INFO - Created VN ctest-vn-16353952 2025-04-14 23:03:11,832 - DEBUG - VN ctest-vn-16353952 UUID is 0460d39a-e570-4265-bce6-f817d9c9553b 2025-04-14 23:03:12,119 - DEBUG - Response for create_network : {'network': {'id': '51c7fae4-1a6d-4dfe-9573-eed934fadaa3', 'name': 'ctest-vn-97141134', 'tenant_id': '33672801a0064485826e1442504dbf4e', 'project_id': '33672801a0064485826e1442504dbf4e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08438773', 'ctest-vn-97141134'], 'port_security_enabled': True, 'description': ''}} 2025-04-14 23:03:12,311 - DEBUG - Response for create_subnet : {'subnet': {'id': '644afcef-e88b-4b58-80df-4a7cee7875b5', 'name': '', 'tenant_id': '33672801a0064485826e1442504dbf4e', 'network_id': '51c7fae4-1a6d-4dfe-9573-eed934fadaa3', 'ip_version': 4, 'cidr': '34.246.91.128/26', 'allocation_pools': [{'start': '34.246.91.130', 'end': '34.246.91.190'}], 'gateway_ip': '34.246.91.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.246.91.130', 'tags': [], 'project_id': '33672801a0064485826e1442504dbf4e'}} 2025-04-14 23:03:12,330 - INFO - Created VN ctest-vn-97141134 2025-04-14 23:03:12,380 - DEBUG - VN ctest-vn-97141134 UUID is 51c7fae4-1a6d-4dfe-9573-eed934fadaa3 2025-04-14 23:03:12,496 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-08438773:ctest-vn-16353952, 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-08438773:ctest-vn-97141134, 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-04-14 23:03:12,792 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0460d39a-e570-4265-bce6-f817d9c9553b', 'name': 'ctest-vn-16353952', 'tenant_id': '33672801a0064485826e1442504dbf4e', 'project_id': '33672801a0064485826e1442504dbf4e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d749f6d2-2379-49bb-9c57-cf3975798ffb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08438773', 'ctest-vn-16353952'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08438773', 'ctest-policy-allow-all-07964547']], 'subnet_ipam': [{'subnet_cidr': '3.158.10.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-14 23:03:13,022 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '51c7fae4-1a6d-4dfe-9573-eed934fadaa3', 'name': 'ctest-vn-97141134', 'tenant_id': '33672801a0064485826e1442504dbf4e', 'project_id': '33672801a0064485826e1442504dbf4e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['644afcef-e88b-4b58-80df-4a7cee7875b5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08438773', 'ctest-vn-97141134'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08438773', 'ctest-policy-allow-all-07964547']], 'subnet_ipam': [{'subnet_cidr': '34.246.91.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-14 23:03:13,167 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-04-14 23:03:13,462 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-04-14 23:03:13,494 - DEBUG - Requesting: http://10.0.0.65:8082/domain/6826b044-25ce-4a43-8b86-d9897d3546ac 2025-04-14 23:03:13,508 - DEBUG - Requesting: http://10.0.0.65:8082/project/33672801-a006-4485-826e-1442504dbf4e 2025-04-14 23:03:13,582 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/0460d39a-e570-4265-bce6-f817d9c9553b 2025-04-14 23:03:13,591 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/0460d39a-e570-4265-bce6-f817d9c9553b 2025-04-14 23:03:13,600 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/55ae32cf-c311-4dc2-9081-f5205f27ffdc 2025-04-14 23:03:13,609 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/55ae32cf-c311-4dc2-9081-f5205f27ffdc 2025-04-14 23:03:13,617 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/b72024d6-fb5e-4e5f-8010-f449fc5f4233 2025-04-14 23:03:13,624 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-14 23:03:13,624 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/0460d39a-e570-4265-bce6-f817d9c9553b 2025-04-14 23:03:13,632 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/55ae32cf-c311-4dc2-9081-f5205f27ffdc 2025-04-14 23:03:13,645 - INFO - Verified VN network id 9 for VN 0460d39a-e570-4265-bce6-f817d9c9553b 2025-04-14 23:03:13,645 - INFO - Verifications in API Server for VN ctest-vn-16353952 passed 2025-04-14 23:03:13,645 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/0460d39a-e570-4265-bce6-f817d9c9553b 2025-04-14 23:03:13,654 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/55ae32cf-c311-4dc2-9081-f5205f27ffdc 2025-04-14 23:03:13,661 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/55ae32cf-c311-4dc2-9081-f5205f27ffdc 2025-04-14 23:03:13,668 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/b72024d6-fb5e-4e5f-8010-f449fc5f4233 2025-04-14 23:03:13,681 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08438773:ctest-vn-16353952', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08438773', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '315484636143698533', 'uuid-lslong': '13611839705095689531'}, 'enable': 'true', 'created': '2025-04-14T23:03:11', 'last-modified': '2025-04-14T23:03:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.910952'} 2025-04-14 23:03:13,688 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-14 23:03:13,688 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16353952 passed 2025-04-14 23:03:13,688 - DEBUG - ====Verifying policy data for ctest-vn-16353952 in API_Server ====== 2025-04-14 23:03:13,688 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-04-14 23:03:13,694 - DEBUG - Requesting: http://10.0.0.65:8082/domain/6826b044-25ce-4a43-8b86-d9897d3546ac 2025-04-14 23:03:13,706 - DEBUG - Requesting: http://10.0.0.65:8082/project/33672801-a006-4485-826e-1442504dbf4e 2025-04-14 23:03:13,773 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/0460d39a-e570-4265-bce6-f817d9c9553b 2025-04-14 23:03:13,781 - DEBUG - ==>Verifying data for policy with id: ba245490-417f-4b2b-b381-db9d7932f79d, fqn: ['default-domain', 'ctest-TestBasicPolicy-08438773', 'ctest-policy-allow-all-07964547'] 2025-04-14 23:03:13,781 - INFO - VN ctest-vn-16353952 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-14 23:03:13,781 - DEBUG - Verifying the vn in opserver 2025-04-14 23:03:13,782 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08438773:ctest-vn-16353952 virtual network link through opserver 10.0.0.65 2025-04-14 23:03:13,782 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-04-14 23:03:14,074 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-04-14 23:03:14,133 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08438773:ctest-vn-16353952', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08438773:ctest-vn-16353952?flat'} 2025-04-14 23:03:14,133 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08438773:ctest-vn-16353952 is found in opserver 2025-04-14 23:03:14,144 - DEBUG - Do not have enough data to verify VN in agent 2025-04-14 23:03:14,150 - DEBUG - VRF ids for VN ctest-vn-16353952: {} 2025-04-14 23:03:14,150 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-04-14 23:03:14,156 - DEBUG - Requesting: http://10.0.0.65:8082/domain/6826b044-25ce-4a43-8b86-d9897d3546ac 2025-04-14 23:03:14,168 - DEBUG - Requesting: http://10.0.0.65:8082/project/33672801-a006-4485-826e-1442504dbf4e 2025-04-14 23:03:14,233 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/51c7fae4-1a6d-4dfe-9573-eed934fadaa3 2025-04-14 23:03:14,244 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/51c7fae4-1a6d-4dfe-9573-eed934fadaa3 2025-04-14 23:03:14,252 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/69abda88-b9b3-43b2-b33a-ad90215fe25e 2025-04-14 23:03:14,260 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/69abda88-b9b3-43b2-b33a-ad90215fe25e 2025-04-14 23:03:14,267 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/3acb8eb9-3e95-493d-b028-ea1d96f312a7 2025-04-14 23:03:14,273 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-14 23:03:14,274 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/51c7fae4-1a6d-4dfe-9573-eed934fadaa3 2025-04-14 23:03:14,281 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/69abda88-b9b3-43b2-b33a-ad90215fe25e 2025-04-14 23:03:14,294 - INFO - Verified VN network id 10 for VN 51c7fae4-1a6d-4dfe-9573-eed934fadaa3 2025-04-14 23:03:14,294 - INFO - Verifications in API Server for VN ctest-vn-97141134 passed 2025-04-14 23:03:14,294 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/51c7fae4-1a6d-4dfe-9573-eed934fadaa3 2025-04-14 23:03:14,303 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/69abda88-b9b3-43b2-b33a-ad90215fe25e 2025-04-14 23:03:14,310 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/69abda88-b9b3-43b2-b33a-ad90215fe25e 2025-04-14 23:03:14,318 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/3acb8eb9-3e95-493d-b028-ea1d96f312a7 2025-04-14 23:03:14,330 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08438773:ctest-vn-97141134', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08438773', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5892954495040441854', 'uuid-lslong': '10769213750637157027'}, 'enable': 'true', 'created': '2025-04-14T23:03:12', 'last-modified': '2025-04-14T23:03:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.326007'} 2025-04-14 23:03:14,337 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-14 23:03:14,337 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97141134 passed 2025-04-14 23:03:14,337 - DEBUG - ====Verifying policy data for ctest-vn-97141134 in API_Server ====== 2025-04-14 23:03:14,337 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-04-14 23:03:14,343 - DEBUG - Requesting: http://10.0.0.65:8082/domain/6826b044-25ce-4a43-8b86-d9897d3546ac 2025-04-14 23:03:14,355 - DEBUG - Requesting: http://10.0.0.65:8082/project/33672801-a006-4485-826e-1442504dbf4e 2025-04-14 23:03:14,424 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/51c7fae4-1a6d-4dfe-9573-eed934fadaa3 2025-04-14 23:03:14,433 - DEBUG - ==>Verifying data for policy with id: ba245490-417f-4b2b-b381-db9d7932f79d, fqn: ['default-domain', 'ctest-TestBasicPolicy-08438773', 'ctest-policy-allow-all-07964547'] 2025-04-14 23:03:14,433 - INFO - VN ctest-vn-97141134 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-14 23:03:14,433 - DEBUG - Verifying the vn in opserver 2025-04-14 23:03:14,433 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08438773:ctest-vn-97141134 virtual network link through opserver 10.0.0.65 2025-04-14 23:03:14,433 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-04-14 23:03:14,444 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08438773:ctest-vn-97141134', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08438773:ctest-vn-97141134?flat'} 2025-04-14 23:03:14,444 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08438773:ctest-vn-97141134 is found in opserver 2025-04-14 23:03:14,455 - DEBUG - Do not have enough data to verify VN in agent 2025-04-14 23:03:14,461 - DEBUG - VRF ids for VN ctest-vn-97141134: {} 2025-04-14 23:03:14,528 - DEBUG - Services list from nova: [, , ] 2025-04-14 23:03:15,509 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3111-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3111-1) 2025-04-14 23:03:16,696 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3111-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3111-1) 2025-04-14 23:03:16,697 - INFO - Waiting for VM ctest-TestBasicPolicy-08438773-44877222 to be up.. 2025-04-14 23:03:16,809 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-14 23:03:21,888 - DEBUG - VM is in ACTIVE state now 2025-04-14 23:03:21,888 - INFO - VM name : ctest-TestBasicPolicy-08438773-44877222 2025-04-14 23:03:21,962 - DEBUG - VM ctest-TestBasicPolicy-08438773-44877222 ID is 9ad9ae2c-d30d-4521-87aa-c490c1f793dc 2025-04-14 23:03:21,982 - DEBUG - VM ctest-TestBasicPolicy-08438773-44877222 launched on Node cn-jenkins-deploy-platform-ansible-os-3111-1 2025-04-14 23:03:22,077 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/9ad9ae2c-d30d-4521-87aa-c490c1f793dc 2025-04-14 23:03:22,087 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/1dc9f04e-cabc-4f41-b74d-b2f3883ce59c 2025-04-14 23:03:25,348 - 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 1026ms') 2025-04-14 23:03:25,349 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08438773-44877222 failed! 2025-04-14 23:03:25,403 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-08438773:ctest-vn-16353952 is 3.158.10.193 and allocation pool is NOT set 2025-04-14 23:03:27,460 - 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=3.60 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.499 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.499/2.051/3.604/1.552 ms') 2025-04-14 23:03:27,461 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08438773-44877222 passed 2025-04-14 23:03:27,616 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-14 23:03:27,616 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-08438773-44877222, IP 3.158.10.195, Port 22 2025-04-14 23:03:27,775 - DEBUG - VM ctest-TestBasicPolicy-08438773-44877222 is ready for SSH connections 2025-04-14 23:03:27,776 - INFO - Waiting for VM ctest-TestBasicPolicy-08438773-49356871 to be up.. 2025-04-14 23:03:27,853 - DEBUG - VM is in ACTIVE state now 2025-04-14 23:03:27,853 - INFO - VM name : ctest-TestBasicPolicy-08438773-49356871 2025-04-14 23:03:27,929 - DEBUG - VM ctest-TestBasicPolicy-08438773-49356871 ID is 048db35e-5e2d-46c8-ad9b-9d9c383d9d29 2025-04-14 23:03:27,929 - DEBUG - VM ctest-TestBasicPolicy-08438773-49356871 launched on Node cn-jenkins-deploy-platform-ansible-os-3111-1 2025-04-14 23:03:28,001 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/048db35e-5e2d-46c8-ad9b-9d9c383d9d29 2025-04-14 23:03:28,009 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/40c5889c-50a8-4bd0-b9d3-884e11f112fb 2025-04-14 23:03:29,255 - 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.14 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.65 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.647/2.894/3.142/0.247 ms') 2025-04-14 23:03:29,255 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-08438773-49356871 passed 2025-04-14 23:03:29,407 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-14 23:03:29,408 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-08438773-49356871, IP 34.246.91.131, Port 22 2025-04-14 23:03:29,463 - 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-04-14 23:03:29,538 - DEBUG - VM ctest-TestBasicPolicy-08438773-49356871 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-14 23:03:34,539 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-14 23:03:34,539 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-08438773-49356871, IP 34.246.91.131, Port 22 2025-04-14 23:03:34,695 - DEBUG - VM ctest-TestBasicPolicy-08438773-49356871 is ready for SSH connections 2025-04-14 23:03:34,695 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-14 23:03:34,695 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 34.246.91.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-04-14 23:03:34,695 - DEBUG - ping -s 56 -c 3 -W 1 34.246.91.131 2025-04-14 23:03:38,658 - DEBUG - PING 34.246.91.131 (34.246.91.131): 56 data bytes 64 bytes from 34.246.91.131: seq=0 ttl=63 time=3.565 ms 64 bytes from 34.246.91.131: seq=1 ttl=63 time=0.847 ms 64 bytes from 34.246.91.131: seq=2 ttl=63 time=0.947 ms --- 34.246.91.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.847/1.786/3.565 ms 2025-04-14 23:03:38,658 - INFO - Ping to IP 34.246.91.131 from VM ctest-TestBasicPolicy-08438773-44877222 passed 2025-04-14 23:03:38,831 - DEBUG - Policy Update Response {"network-policy": {"uuid": "ba245490-417f-4b2b-b381-db9d7932f79d", "href": "http://10.0.0.65:8082/network-policy/ba245490-417f-4b2b-b381-db9d7932f79d"}} 2025-04-14 23:03:38,831 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-14 23:03:38,832 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 34.246.91.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-04-14 23:03:38,832 - DEBUG - ping -s 56 -c 3 -W 1 34.246.91.131 2025-04-14 23:03:42,063 - DEBUG - PING 34.246.91.131 (34.246.91.131): 56 data bytes 64 bytes from 34.246.91.131: seq=0 ttl=63 time=1.361 ms --- 34.246.91.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.361/1.361/1.361 ms 2025-04-14 23:03:42,063 - WARNING - Ping to IP 34.246.91.131 from VM ctest-TestBasicPolicy-08438773-44877222 failed 2025-04-14 23:03:42,063 - INFO - Deleting VM ctest-TestBasicPolicy-08438773-49356871 2025-04-14 23:03:42,132 - INFO - Deleting VM ctest-TestBasicPolicy-08438773-44877222 2025-04-14 23:03:42,493 - INFO - Deleted policy ctest-policy-allow-all-07964547 2025-04-14 23:03:42,493 - INFO - Deleting VN ctest-vn-97141134 2025-04-14 23:03:42,532 - DEBUG - VN 51c7fae4-1a6d-4dfe-9573-eed934fadaa3 still in use: Unable to complete operation on network 51c7fae4-1a6d-4dfe-9573-eed934fadaa3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-74ed2b1b-71cb-479d-92bd-b61eaaaf1033'] 2025-04-14 23:03:42,533 - WARNING - Deleting VN ctest-vn-97141134 failed..Will retry 2025-04-14 23:03:44,627 - DEBUG - Response for deleting network () 2025-04-14 23:03:44,627 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/69abda88-b9b3-43b2-b33a-ad90215fe25e 2025-04-14 23:03:44,632 - DEBUG - Response Code: 404 2025-04-14 23:03:44,632 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-04-14 23:03:44,639 - DEBUG - Requesting: http://10.0.0.65:8082/domain/6826b044-25ce-4a43-8b86-d9897d3546ac 2025-04-14 23:03:44,694 - DEBUG - Requesting: http://10.0.0.65:8082/project/33672801-a006-4485-826e-1442504dbf4e 2025-04-14 23:03:44,765 - INFO - Validated that VN ctest-vn-97141134 is not found in API Server 2025-04-14 23:03:44,775 - DEBUG - VN ctest-vn-97141134 is not present in Agent 10.0.0.65 2025-04-14 23:03:44,775 - INFO - Validated that VN ctest-vn-97141134 is not in any agent 2025-04-14 23:03:44,791 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-97141134 info 2025-04-14 23:03:44,791 - INFO - Deleting VN ctest-vn-16353952 2025-04-14 23:03:44,893 - DEBUG - Response for deleting network () 2025-04-14 23:03:44,894 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/55ae32cf-c311-4dc2-9081-f5205f27ffdc 2025-04-14 23:03:44,903 - DEBUG - Response Code: 404 2025-04-14 23:03:44,903 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-04-14 23:03:44,909 - DEBUG - Requesting: http://10.0.0.65:8082/domain/6826b044-25ce-4a43-8b86-d9897d3546ac 2025-04-14 23:03:44,964 - DEBUG - Requesting: http://10.0.0.65:8082/project/33672801-a006-4485-826e-1442504dbf4e 2025-04-14 23:03:45,030 - INFO - Validated that VN ctest-vn-16353952 is not found in API Server 2025-04-14 23:03:45,041 - DEBUG - VN ctest-vn-16353952 is not present in Agent 10.0.0.65 2025-04-14 23:03:45,041 - INFO - Validated that VN ctest-vn-16353952 is not in any agent 2025-04-14 23:03:45,056 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-16353952 info 2025-04-14 23:03:45,309 - DEBUG - No XMPP flaps were noticed during the test 2025-04-14 23:03:45,309 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-04-14 23:03:45,310 - INFO - -------------------------------------------------------------------------------- 2025-04-14 23:03:45,975 - INFO - Deleted project: ctest-TestBasicPolicy-08438773, ID : 33672801-a006-4485-826e-1442504dbf4e