2025-11-03 09:02:11,026 - INFO - Domain Default found not creating 2025-11-03 09:02:11,163 - INFO - Project ctest-TestBasicPolicy-20571362 not found, creating it 2025-11-03 09:02:11,585 - INFO - Created Project:ctest-TestBasicPolicy-20571362, ID : 8fe85c20-6c1d-4050-8b6b-d0fe04af1fb4 2025-11-03 09:02:12,937 - INFO - ================================================================================ 2025-11-03 09:02:12,938 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-11-03 09:02:12,938 - 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-11-03 09:02:13,192 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-11-03 09:02:13,192 - INFO - Initial checks done. Running the testcase now 2025-11-03 09:02:13,192 - INFO - 2025-11-03 09:02:13,713 - DEBUG - Response for create_network : {'network': {'id': '5072ebe8-c5dd-4bb4-9b2a-317f1c976a6c', 'name': 'ctest-vn-39787055', 'tenant_id': '8fe85c206c1d40508b6bd0fe04af1fb4', 'project_id': '8fe85c206c1d40508b6bd0fe04af1fb4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20571362', 'ctest-vn-39787055'], 'port_security_enabled': True, 'description': ''}} 2025-11-03 09:02:13,870 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dd931248-1453-4370-b011-19340220b671', 'name': '', 'tenant_id': '8fe85c206c1d40508b6bd0fe04af1fb4', 'network_id': '5072ebe8-c5dd-4bb4-9b2a-317f1c976a6c', 'ip_version': 4, 'cidr': '180.148.28.192/26', 'allocation_pools': [{'start': '180.148.28.194', 'end': '180.148.28.254'}], 'gateway_ip': '180.148.28.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.148.28.194', 'tags': [], 'project_id': '8fe85c206c1d40508b6bd0fe04af1fb4'}} 2025-11-03 09:02:13,886 - INFO - Created VN ctest-vn-39787055 2025-11-03 09:02:13,938 - DEBUG - VN ctest-vn-39787055 UUID is 5072ebe8-c5dd-4bb4-9b2a-317f1c976a6c 2025-11-03 09:02:14,265 - DEBUG - Response for create_network : {'network': {'id': '2d796c66-d5b7-439a-942a-4b233ede9214', 'name': 'ctest-vn-73314077', 'tenant_id': '8fe85c206c1d40508b6bd0fe04af1fb4', 'project_id': '8fe85c206c1d40508b6bd0fe04af1fb4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20571362', 'ctest-vn-73314077'], 'port_security_enabled': True, 'description': ''}} 2025-11-03 09:02:14,443 - DEBUG - Response for create_subnet : {'subnet': {'id': '8a923f9e-f157-4038-b20d-502cc775a142', 'name': '', 'tenant_id': '8fe85c206c1d40508b6bd0fe04af1fb4', 'network_id': '2d796c66-d5b7-439a-942a-4b233ede9214', 'ip_version': 4, 'cidr': '137.5.245.192/26', 'allocation_pools': [{'start': '137.5.245.194', 'end': '137.5.245.254'}], 'gateway_ip': '137.5.245.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.5.245.194', 'tags': [], 'project_id': '8fe85c206c1d40508b6bd0fe04af1fb4'}} 2025-11-03 09:02:14,459 - INFO - Created VN ctest-vn-73314077 2025-11-03 09:02:14,514 - DEBUG - VN ctest-vn-73314077 UUID is 2d796c66-d5b7-439a-942a-4b233ede9214 2025-11-03 09:02:14,662 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-20571362:ctest-vn-39787055, 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-20571362:ctest-vn-73314077, 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-11-03 09:02:14,943 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5072ebe8-c5dd-4bb4-9b2a-317f1c976a6c', 'name': 'ctest-vn-39787055', 'tenant_id': '8fe85c206c1d40508b6bd0fe04af1fb4', 'project_id': '8fe85c206c1d40508b6bd0fe04af1fb4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dd931248-1453-4370-b011-19340220b671'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20571362', 'ctest-vn-39787055'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20571362', 'ctest-policy-allow-all-40247126']], 'subnet_ipam': [{'subnet_cidr': '180.148.28.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-03 09:02:15,204 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2d796c66-d5b7-439a-942a-4b233ede9214', 'name': 'ctest-vn-73314077', 'tenant_id': '8fe85c206c1d40508b6bd0fe04af1fb4', 'project_id': '8fe85c206c1d40508b6bd0fe04af1fb4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8a923f9e-f157-4038-b20d-502cc775a142'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20571362', 'ctest-vn-73314077'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20571362', 'ctest-policy-allow-all-40247126']], 'subnet_ipam': [{'subnet_cidr': '137.5.245.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-03 09:02:15,350 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-03 09:02:15,643 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-03 09:02:15,671 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7b9671e6-7842-4940-b3ba-80ad20f267fc 2025-11-03 09:02:15,682 - DEBUG - Requesting: http://10.0.0.50:8082/project/8fe85c20-6c1d-4050-8b6b-d0fe04af1fb4 2025-11-03 09:02:15,751 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5072ebe8-c5dd-4bb4-9b2a-317f1c976a6c 2025-11-03 09:02:15,760 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5072ebe8-c5dd-4bb4-9b2a-317f1c976a6c 2025-11-03 09:02:15,768 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d0f903d8-8a08-4b09-8487-b588778651a1 2025-11-03 09:02:15,773 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d0f903d8-8a08-4b09-8487-b588778651a1 2025-11-03 09:02:15,779 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b6031bd6-5ba3-4949-b2eb-f646fcb58f3f 2025-11-03 09:02:15,784 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-03 09:02:15,784 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5072ebe8-c5dd-4bb4-9b2a-317f1c976a6c 2025-11-03 09:02:15,792 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d0f903d8-8a08-4b09-8487-b588778651a1 2025-11-03 09:02:15,804 - INFO - Verified VN network id 12 for VN 5072ebe8-c5dd-4bb4-9b2a-317f1c976a6c 2025-11-03 09:02:15,804 - INFO - Verifications in API Server for VN ctest-vn-39787055 passed 2025-11-03 09:02:15,804 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5072ebe8-c5dd-4bb4-9b2a-317f1c976a6c 2025-11-03 09:02:15,812 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d0f903d8-8a08-4b09-8487-b588778651a1 2025-11-03 09:02:15,818 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d0f903d8-8a08-4b09-8487-b588778651a1 2025-11-03 09:02:15,824 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b6031bd6-5ba3-4949-b2eb-f646fcb58f3f 2025-11-03 09:02:15,833 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20571362:ctest-vn-39787055', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20571362', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5796955055363804084', 'uuid-lslong': '11180803446910970476'}, 'enable': 'true', 'created': '2025-11-03T09:02:13', 'last-modified': '2025-11-03T09:02:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.908592'} 2025-11-03 09:02:15,838 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-03 09:02:15,838 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39787055 passed 2025-11-03 09:02:15,839 - DEBUG - ====Verifying policy data for ctest-vn-39787055 in API_Server ====== 2025-11-03 09:02:15,839 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-03 09:02:15,843 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7b9671e6-7842-4940-b3ba-80ad20f267fc 2025-11-03 09:02:15,853 - DEBUG - Requesting: http://10.0.0.50:8082/project/8fe85c20-6c1d-4050-8b6b-d0fe04af1fb4 2025-11-03 09:02:15,923 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5072ebe8-c5dd-4bb4-9b2a-317f1c976a6c 2025-11-03 09:02:15,933 - DEBUG - ==>Verifying data for policy with id: 1942f214-1e53-49e7-8163-142046b76836, fqn: ['default-domain', 'ctest-TestBasicPolicy-20571362', 'ctest-policy-allow-all-40247126'] 2025-11-03 09:02:15,933 - INFO - VN ctest-vn-39787055 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-03 09:02:15,933 - DEBUG - Verifying the vn in opserver 2025-11-03 09:02:15,933 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20571362:ctest-vn-39787055 virtual network link through opserver 10.0.0.50 2025-11-03 09:02:15,933 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-03 09:02:16,226 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-03 09:02:16,280 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20571362:ctest-vn-39787055', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20571362:ctest-vn-39787055?flat'} 2025-11-03 09:02:16,280 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20571362:ctest-vn-39787055 is found in opserver 2025-11-03 09:02:16,290 - DEBUG - Do not have enough data to verify VN in agent 2025-11-03 09:02:16,294 - DEBUG - VRF ids for VN ctest-vn-39787055: {} 2025-11-03 09:02:16,294 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-03 09:02:16,299 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7b9671e6-7842-4940-b3ba-80ad20f267fc 2025-11-03 09:02:16,309 - DEBUG - Requesting: http://10.0.0.50:8082/project/8fe85c20-6c1d-4050-8b6b-d0fe04af1fb4 2025-11-03 09:02:16,377 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2d796c66-d5b7-439a-942a-4b233ede9214 2025-11-03 09:02:16,392 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2d796c66-d5b7-439a-942a-4b233ede9214 2025-11-03 09:02:16,400 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/375e2aff-74b0-41fb-bb1d-6ccf46d38f1f 2025-11-03 09:02:16,406 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/375e2aff-74b0-41fb-bb1d-6ccf46d38f1f 2025-11-03 09:02:16,411 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/22fbb96f-95e0-4db8-97d7-5cd35a69c705 2025-11-03 09:02:16,417 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-03 09:02:16,417 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2d796c66-d5b7-439a-942a-4b233ede9214 2025-11-03 09:02:16,425 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/375e2aff-74b0-41fb-bb1d-6ccf46d38f1f 2025-11-03 09:02:16,436 - INFO - Verified VN network id 13 for VN 2d796c66-d5b7-439a-942a-4b233ede9214 2025-11-03 09:02:16,436 - INFO - Verifications in API Server for VN ctest-vn-73314077 passed 2025-11-03 09:02:16,436 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2d796c66-d5b7-439a-942a-4b233ede9214 2025-11-03 09:02:16,444 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/375e2aff-74b0-41fb-bb1d-6ccf46d38f1f 2025-11-03 09:02:16,449 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/375e2aff-74b0-41fb-bb1d-6ccf46d38f1f 2025-11-03 09:02:16,454 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/22fbb96f-95e0-4db8-97d7-5cd35a69c705 2025-11-03 09:02:16,463 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20571362:ctest-vn-73314077', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20571362', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3276769392816767898', 'uuid-lslong': '10676428481385894420'}, 'enable': 'true', 'created': '2025-11-03T09:02:14', 'last-modified': '2025-11-03T09:02:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.320384'} 2025-11-03 09:02:16,468 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-03 09:02:16,468 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73314077 passed 2025-11-03 09:02:16,468 - DEBUG - ====Verifying policy data for ctest-vn-73314077 in API_Server ====== 2025-11-03 09:02:16,468 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-03 09:02:16,473 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7b9671e6-7842-4940-b3ba-80ad20f267fc 2025-11-03 09:02:16,481 - DEBUG - Requesting: http://10.0.0.50:8082/project/8fe85c20-6c1d-4050-8b6b-d0fe04af1fb4 2025-11-03 09:02:16,558 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2d796c66-d5b7-439a-942a-4b233ede9214 2025-11-03 09:02:16,566 - DEBUG - ==>Verifying data for policy with id: 1942f214-1e53-49e7-8163-142046b76836, fqn: ['default-domain', 'ctest-TestBasicPolicy-20571362', 'ctest-policy-allow-all-40247126'] 2025-11-03 09:02:16,567 - INFO - VN ctest-vn-73314077 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-03 09:02:16,567 - DEBUG - Verifying the vn in opserver 2025-11-03 09:02:16,567 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20571362:ctest-vn-73314077 virtual network link through opserver 10.0.0.50 2025-11-03 09:02:16,567 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-03 09:02:16,576 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20571362:ctest-vn-73314077', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20571362:ctest-vn-73314077?flat'} 2025-11-03 09:02:16,576 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20571362:ctest-vn-73314077 is found in opserver 2025-11-03 09:02:16,584 - DEBUG - Do not have enough data to verify VN in agent 2025-11-03 09:02:16,589 - DEBUG - VRF ids for VN ctest-vn-73314077: {} 2025-11-03 09:02:16,644 - DEBUG - Services list from nova: [, , ] 2025-11-03 09:02:17,645 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4602-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4602-1) 2025-11-03 09:02:18,747 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4602-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4602-1) 2025-11-03 09:02:18,747 - INFO - Waiting for VM ctest-TestBasicPolicy-20571362-38021814 to be up.. 2025-11-03 09:02:18,823 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-03 09:02:23,900 - DEBUG - VM is in ACTIVE state now 2025-11-03 09:02:23,901 - INFO - VM name : ctest-TestBasicPolicy-20571362-38021814 2025-11-03 09:02:23,972 - DEBUG - VM ctest-TestBasicPolicy-20571362-38021814 ID is 5d899dd7-c703-4cab-9593-b37c9981ed8a 2025-11-03 09:02:23,996 - DEBUG - VM ctest-TestBasicPolicy-20571362-38021814 launched on Node cn-jenkins-deploy-platform-ansible-os-4602-1 2025-11-03 09:02:24,066 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/5d899dd7-c703-4cab-9593-b37c9981ed8a 2025-11-03 09:02:24,073 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/9f3f99bf-d54f-4a22-bec8-dc190e6268e9 2025-11-03 09:02:27,311 - 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 1006ms') 2025-11-03 09:02:27,311 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-20571362-38021814 failed! 2025-11-03 09:02:27,362 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-20571362:ctest-vn-39787055 is 180.148.28.193 and allocation pool is NOT set 2025-11-03 09:02:29,419 - 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=4.25 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.401 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 = 0.401/2.326/4.251/1.925 ms') 2025-11-03 09:02:29,419 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-20571362-38021814 passed 2025-11-03 09:02:29,578 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-03 09:02:29,579 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-20571362-38021814, IP 180.148.28.195, Port 22 2025-11-03 09:02:29,737 - DEBUG - VM ctest-TestBasicPolicy-20571362-38021814 is ready for SSH connections 2025-11-03 09:02:29,737 - INFO - Waiting for VM ctest-TestBasicPolicy-20571362-08296249 to be up.. 2025-11-03 09:02:29,821 - DEBUG - VM is in ACTIVE state now 2025-11-03 09:02:29,821 - INFO - VM name : ctest-TestBasicPolicy-20571362-08296249 2025-11-03 09:02:29,888 - DEBUG - VM ctest-TestBasicPolicy-20571362-08296249 ID is 3c22b62e-78d3-42b9-9b07-e5dcc1fec121 2025-11-03 09:02:29,888 - DEBUG - VM ctest-TestBasicPolicy-20571362-08296249 launched on Node cn-jenkins-deploy-platform-ansible-os-4602-1 2025-11-03 09:02:29,958 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/3c22b62e-78d3-42b9-9b07-e5dcc1fec121 2025-11-03 09:02:29,968 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/1b0f5725-7bc1-4d77-8062-9333240bf3fe 2025-11-03 09:02:31,202 - 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.80 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.46 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.460/3.129/4.799/1.669 ms') 2025-11-03 09:02:31,202 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-20571362-08296249 passed 2025-11-03 09:02:31,359 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-03 09:02:31,359 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-20571362-08296249, IP 137.5.245.195, Port 22 2025-11-03 09:02:31,424 - 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-11-03 09:02:31,517 - DEBUG - VM ctest-TestBasicPolicy-20571362-08296249 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-03 09:02:36,518 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-03 09:02:36,518 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-20571362-08296249, IP 137.5.245.195, Port 22 2025-11-03 09:02:36,682 - DEBUG - VM ctest-TestBasicPolicy-20571362-08296249 is ready for SSH connections 2025-11-03 09:02:36,682 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-03 09:02:36,682 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 137.5.245.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-11-03 09:02:36,682 - DEBUG - ping -s 56 -c 3 -W 1 137.5.245.195 2025-11-03 09:02:40,678 - DEBUG - PING 137.5.245.195 (137.5.245.195): 56 data bytes 64 bytes from 137.5.245.195: seq=0 ttl=63 time=4.326 ms 64 bytes from 137.5.245.195: seq=1 ttl=63 time=0.946 ms 64 bytes from 137.5.245.195: seq=2 ttl=63 time=0.797 ms --- 137.5.245.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.797/2.023/4.326 ms 2025-11-03 09:02:40,678 - INFO - Ping to IP 137.5.245.195 from VM ctest-TestBasicPolicy-20571362-38021814 passed 2025-11-03 09:02:40,846 - DEBUG - Policy Update Response {"network-policy": {"uuid": "1942f214-1e53-49e7-8163-142046b76836", "href": "http://10.0.0.50:8082/network-policy/1942f214-1e53-49e7-8163-142046b76836"}} 2025-11-03 09:02:40,846 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-03 09:02:40,846 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 137.5.245.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-11-03 09:02:40,846 - DEBUG - ping -s 56 -c 3 -W 1 137.5.245.195 2025-11-03 09:02:44,049 - DEBUG - PING 137.5.245.195 (137.5.245.195): 56 data bytes --- 137.5.245.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-11-03 09:02:44,049 - WARNING - Ping to IP 137.5.245.195 from VM ctest-TestBasicPolicy-20571362-38021814 failed 2025-11-03 09:02:44,050 - INFO - Deleting VM ctest-TestBasicPolicy-20571362-08296249 2025-11-03 09:02:44,116 - INFO - Deleting VM ctest-TestBasicPolicy-20571362-38021814 2025-11-03 09:02:44,471 - INFO - Deleted policy ctest-policy-allow-all-40247126 2025-11-03 09:02:44,471 - INFO - Deleting VN ctest-vn-73314077 2025-11-03 09:02:44,506 - DEBUG - VN 2d796c66-d5b7-439a-942a-4b233ede9214 still in use: Unable to complete operation on network 2d796c66-d5b7-439a-942a-4b233ede9214. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-de92ef78-fe4e-4a0c-a900-086684d171e5'] 2025-11-03 09:02:44,506 - WARNING - Deleting VN ctest-vn-73314077 failed..Will retry 2025-11-03 09:02:46,606 - DEBUG - Response for deleting network () 2025-11-03 09:02:46,609 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/375e2aff-74b0-41fb-bb1d-6ccf46d38f1f 2025-11-03 09:02:46,615 - DEBUG - Response Code: 404 2025-11-03 09:02:46,615 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-03 09:02:46,620 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7b9671e6-7842-4940-b3ba-80ad20f267fc 2025-11-03 09:02:46,672 - DEBUG - Requesting: http://10.0.0.50:8082/project/8fe85c20-6c1d-4050-8b6b-d0fe04af1fb4 2025-11-03 09:02:46,739 - INFO - Validated that VN ctest-vn-73314077 is not found in API Server 2025-11-03 09:02:46,748 - DEBUG - VN ctest-vn-73314077 is not present in Agent 10.0.0.50 2025-11-03 09:02:46,748 - INFO - Validated that VN ctest-vn-73314077 is not in any agent 2025-11-03 09:02:46,763 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-73314077 info 2025-11-03 09:02:46,763 - INFO - Deleting VN ctest-vn-39787055 2025-11-03 09:02:46,889 - DEBUG - Response for deleting network () 2025-11-03 09:02:46,889 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d0f903d8-8a08-4b09-8487-b588778651a1 2025-11-03 09:02:46,894 - DEBUG - Response Code: 404 2025-11-03 09:02:46,894 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-03 09:02:46,899 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7b9671e6-7842-4940-b3ba-80ad20f267fc 2025-11-03 09:02:46,955 - DEBUG - Requesting: http://10.0.0.50:8082/project/8fe85c20-6c1d-4050-8b6b-d0fe04af1fb4 2025-11-03 09:02:47,026 - INFO - Validated that VN ctest-vn-39787055 is not found in API Server 2025-11-03 09:02:47,034 - DEBUG - VN ctest-vn-39787055 is not present in Agent 10.0.0.50 2025-11-03 09:02:47,034 - INFO - Validated that VN ctest-vn-39787055 is not in any agent 2025-11-03 09:02:47,046 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-39787055 info 2025-11-03 09:02:47,299 - DEBUG - No XMPP flaps were noticed during the test
2025-11-03 09:02:47,300 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-11-03 09:02:47,300 - INFO - -------------------------------------------------------------------------------- 2025-11-03 09:02:47,973 - INFO - Deleted project: ctest-TestBasicPolicy-20571362, ID : 8fe85c20-6c1d-4050-8b6b-d0fe04af1fb4