2025-06-09 02:02:12,012 - INFO - Reading existing Domain with UUID 7aee698f-3aa6-4114-8aa9-0ff605a1286e 2025-06-09 02:02:12,023 - INFO - Using existing domain ['admin_domain'](7aee698f-3aa6-4114-8aa9-0ff605a1286e) 2025-06-09 02:02:12,226 - INFO - Project ctest-TestBasicPolicy-83511205 not found, creating it 2025-06-09 02:02:12,761 - INFO - Created Project:ctest-TestBasicPolicy-83511205, ID : bad4c167-8987-45e2-91e3-f24297f29ecc 2025-06-09 02:02:14,848 - INFO - ================================================================================ 2025-06-09 02:02:14,848 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-09 02:02:14,848 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2025-06-09 02:02:15,226 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.0.0.33': '0'}} with 2025-06-09 02:02:15,226 - INFO - Initial checks done. Running the testcase now 2025-06-09 02:02:15,226 - INFO - 2025-06-09 02:02:15,984 - DEBUG - Response for create_network : {'network': {'id': '5794131b-a726-4e02-9085-cfb200d8bb4c', 'name': 'ctest-vn-13254161', 'tenant_id': 'bad4c167898745e291e3f24297f29ecc', 'project_id': 'bad4c167898745e291e3f24297f29ecc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-83511205', 'ctest-vn-13254161'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-06-09 02:02:16,254 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd2cfe012-cbde-4922-925e-3199dba6e32a', 'name': '', 'tenant_id': 'bad4c167898745e291e3f24297f29ecc', 'network_id': '5794131b-a726-4e02-9085-cfb200d8bb4c', 'ip_version': 4, 'cidr': '172.210.144.192/26', 'allocation_pools': [{'start': '172.210.144.194', 'end': '172.210.144.254'}], 'gateway_ip': '172.210.144.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-06-09T02:02:16.149255', 'updated_at': '2025-06-09T02:02:16.149255', 'dns_server_address': '172.210.144.194', 'tags': [], 'project_id': 'bad4c167898745e291e3f24297f29ecc'}} 2025-06-09 02:02:16,319 - INFO - Created VN ctest-vn-13254161 2025-06-09 02:02:16,377 - DEBUG - VN ctest-vn-13254161 UUID is 5794131b-a726-4e02-9085-cfb200d8bb4c 2025-06-09 02:02:17,089 - DEBUG - Response for create_network : {'network': {'id': '78bbe989-db79-47be-aa31-f5ff0f98439f', 'name': 'ctest-vn-08208948', 'tenant_id': 'bad4c167898745e291e3f24297f29ecc', 'project_id': 'bad4c167898745e291e3f24297f29ecc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-83511205', 'ctest-vn-08208948'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-06-09 02:02:17,365 - DEBUG - Response for create_subnet : {'subnet': {'id': '381a8812-5d01-45aa-a02f-7d75c91ff2e2', 'name': '', 'tenant_id': 'bad4c167898745e291e3f24297f29ecc', 'network_id': '78bbe989-db79-47be-aa31-f5ff0f98439f', 'ip_version': 4, 'cidr': '63.68.133.192/26', 'allocation_pools': [{'start': '63.68.133.194', 'end': '63.68.133.254'}], 'gateway_ip': '63.68.133.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-06-09T02:02:17.266820', 'updated_at': '2025-06-09T02:02:17.266820', 'dns_server_address': '63.68.133.194', 'tags': [], 'project_id': 'bad4c167898745e291e3f24297f29ecc'}} 2025-06-09 02:02:17,431 - INFO - Created VN ctest-vn-08208948 2025-06-09 02:02:17,485 - DEBUG - VN ctest-vn-08208948 UUID is 78bbe989-db79-47be-aa31-f5ff0f98439f 2025-06-09 02:02:17,700 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-83511205:ctest-vn-13254161, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-83511205:ctest-vn-08208948, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2025-06-09 02:02:18,136 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5794131b-a726-4e02-9085-cfb200d8bb4c', 'name': 'ctest-vn-13254161', 'tenant_id': 'bad4c167898745e291e3f24297f29ecc', 'project_id': 'bad4c167898745e291e3f24297f29ecc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d2cfe012-cbde-4922-925e-3199dba6e32a'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-83511205', 'ctest-vn-13254161'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-83511205', 'ctest-policy-allow-all-80765051']], 'subnet_ipam': [{'subnet_cidr': '172.210.144.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-06-09T02:02:15.904522', 'updated_at': '2025-06-09T02:02:16.164643'}} 2025-06-09 02:02:18,477 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '78bbe989-db79-47be-aa31-f5ff0f98439f', 'name': 'ctest-vn-08208948', 'tenant_id': 'bad4c167898745e291e3f24297f29ecc', 'project_id': 'bad4c167898745e291e3f24297f29ecc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['381a8812-5d01-45aa-a02f-7d75c91ff2e2'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-83511205', 'ctest-vn-08208948'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-83511205', 'ctest-policy-allow-all-80765051']], 'subnet_ipam': [{'subnet_cidr': '63.68.133.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-06-09T02:02:16.969661', 'updated_at': '2025-06-09T02:02:17.280538'}} 2025-06-09 02:02:18,665 - DEBUG - Requesting: https://10.0.0.33:8082/domains 2025-06-09 02:02:19,012 - DEBUG - Requesting: https://10.0.0.33:8082/domains 2025-06-09 02:02:19,096 - DEBUG - Requesting: https://10.0.0.33:8082/domain/7aee698f-3aa6-4114-8aa9-0ff605a1286e 2025-06-09 02:02:19,186 - DEBUG - Requesting: https://10.0.0.33:8082/project/bad4c167-8987-45e2-91e3-f24297f29ecc 2025-06-09 02:02:19,267 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/5794131b-a726-4e02-9085-cfb200d8bb4c 2025-06-09 02:02:19,328 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/5794131b-a726-4e02-9085-cfb200d8bb4c 2025-06-09 02:02:19,449 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/839fe885-cafc-4e2e-959d-6c5e9222cfec 2025-06-09 02:02:19,519 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/839fe885-cafc-4e2e-959d-6c5e9222cfec 2025-06-09 02:02:19,574 - DEBUG - Requesting: https://10.0.0.33:8082/route-target/63e95044-a8e9-4393-9774-19a86ac6f278 2025-06-09 02:02:19,692 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-09 02:02:19,704 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/5794131b-a726-4e02-9085-cfb200d8bb4c 2025-06-09 02:02:19,763 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/839fe885-cafc-4e2e-959d-6c5e9222cfec 2025-06-09 02:02:19,828 - INFO - Verified VN network id 8 for VN 5794131b-a726-4e02-9085-cfb200d8bb4c 2025-06-09 02:02:19,828 - INFO - Verifications in API Server for VN ctest-vn-13254161 passed 2025-06-09 02:02:19,828 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/5794131b-a726-4e02-9085-cfb200d8bb4c 2025-06-09 02:02:19,883 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/839fe885-cafc-4e2e-959d-6c5e9222cfec 2025-06-09 02:02:19,938 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/839fe885-cafc-4e2e-959d-6c5e9222cfec 2025-06-09 02:02:19,998 - DEBUG - Requesting: https://10.0.0.33:8082/route-target/63e95044-a8e9-4393-9774-19a86ac6f278 2025-06-09 02:02:20,102 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-83511205:ctest-vn-13254161', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83511205', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6310689987342257666', 'uuid-lslong': '10413958076789472076'}, 'enable': 'true', 'created': '2025-06-09T02:02:15', 'last-modified': '2025-06-09T02:02:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.996172'} 2025-06-09 02:02:20,155 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-09 02:02:20,155 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13254161 passed 2025-06-09 02:02:20,155 - DEBUG - ====Verifying policy data for ctest-vn-13254161 in API_Server ====== 2025-06-09 02:02:20,155 - DEBUG - Requesting: https://10.0.0.33:8082/domains 2025-06-09 02:02:20,214 - DEBUG - Requesting: https://10.0.0.33:8082/domain/7aee698f-3aa6-4114-8aa9-0ff605a1286e 2025-06-09 02:02:20,274 - DEBUG - Requesting: https://10.0.0.33:8082/project/bad4c167-8987-45e2-91e3-f24297f29ecc 2025-06-09 02:02:20,359 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/5794131b-a726-4e02-9085-cfb200d8bb4c 2025-06-09 02:02:20,415 - DEBUG - ==>Verifying data for policy with id: 328aaedf-08a7-40ad-863e-421854cdab0a, fqn: ['admin_domain', 'ctest-TestBasicPolicy-83511205', 'ctest-policy-allow-all-80765051'] 2025-06-09 02:02:20,415 - INFO - VN ctest-vn-13254161 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-09 02:02:20,415 - DEBUG - Verifying the vn in opserver 2025-06-09 02:02:20,415 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-83511205:ctest-vn-13254161 virtual network link through opserver 10.0.0.33 2025-06-09 02:02:20,416 - DEBUG - Requesting: https://10.0.0.33:8081/analytics/uves/virtual-networks 2025-06-09 02:02:20,757 - DEBUG - Requesting: https://10.0.0.33:8081/analytics/uves/virtual-networks 2025-06-09 02:02:20,881 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-83511205:ctest-vn-13254161', 'href': 'https://10.0.0.33:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-83511205:ctest-vn-13254161?flat'} 2025-06-09 02:02:20,881 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-83511205:ctest-vn-13254161 is found in opserver 2025-06-09 02:02:20,982 - DEBUG - Do not have enough data to verify VN in agent 2025-06-09 02:02:21,038 - DEBUG - VRF ids for VN ctest-vn-13254161: {} 2025-06-09 02:02:21,038 - DEBUG - Requesting: https://10.0.0.33:8082/domains 2025-06-09 02:02:21,095 - DEBUG - Requesting: https://10.0.0.33:8082/domain/7aee698f-3aa6-4114-8aa9-0ff605a1286e 2025-06-09 02:02:21,154 - DEBUG - Requesting: https://10.0.0.33:8082/project/bad4c167-8987-45e2-91e3-f24297f29ecc 2025-06-09 02:02:21,234 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/78bbe989-db79-47be-aa31-f5ff0f98439f 2025-06-09 02:02:21,291 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/78bbe989-db79-47be-aa31-f5ff0f98439f 2025-06-09 02:02:21,351 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/30903838-12c7-4afd-8f59-c5675a48ea13 2025-06-09 02:02:21,406 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/30903838-12c7-4afd-8f59-c5675a48ea13 2025-06-09 02:02:21,462 - DEBUG - Requesting: https://10.0.0.33:8082/route-target/2681bc04-e384-43df-83df-13e9c112b97d 2025-06-09 02:02:21,518 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-09 02:02:21,518 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/78bbe989-db79-47be-aa31-f5ff0f98439f 2025-06-09 02:02:21,575 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/30903838-12c7-4afd-8f59-c5675a48ea13 2025-06-09 02:02:21,638 - INFO - Verified VN network id 9 for VN 78bbe989-db79-47be-aa31-f5ff0f98439f 2025-06-09 02:02:21,639 - INFO - Verifications in API Server for VN ctest-vn-08208948 passed 2025-06-09 02:02:21,639 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/78bbe989-db79-47be-aa31-f5ff0f98439f 2025-06-09 02:02:21,695 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/30903838-12c7-4afd-8f59-c5675a48ea13 2025-06-09 02:02:21,750 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/30903838-12c7-4afd-8f59-c5675a48ea13 2025-06-09 02:02:21,810 - DEBUG - Requesting: https://10.0.0.33:8082/route-target/2681bc04-e384-43df-83df-13e9c112b97d 2025-06-09 02:02:21,914 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-83511205:ctest-vn-08208948', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83511205', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8699803883498194878', 'uuid-lslong': '12263853736133673887'}, 'enable': 'true', 'created': '2025-06-09T02:02:16', 'last-modified': '2025-06-09T02:02:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.460861'} 2025-06-09 02:02:21,967 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-09 02:02:21,967 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08208948 passed 2025-06-09 02:02:21,967 - DEBUG - ====Verifying policy data for ctest-vn-08208948 in API_Server ====== 2025-06-09 02:02:21,967 - DEBUG - Requesting: https://10.0.0.33:8082/domains 2025-06-09 02:02:22,021 - DEBUG - Requesting: https://10.0.0.33:8082/domain/7aee698f-3aa6-4114-8aa9-0ff605a1286e 2025-06-09 02:02:22,086 - DEBUG - Requesting: https://10.0.0.33:8082/project/bad4c167-8987-45e2-91e3-f24297f29ecc 2025-06-09 02:02:22,174 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/78bbe989-db79-47be-aa31-f5ff0f98439f 2025-06-09 02:02:22,231 - DEBUG - ==>Verifying data for policy with id: 328aaedf-08a7-40ad-863e-421854cdab0a, fqn: ['admin_domain', 'ctest-TestBasicPolicy-83511205', 'ctest-policy-allow-all-80765051'] 2025-06-09 02:02:22,231 - INFO - VN ctest-vn-08208948 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-09 02:02:22,231 - DEBUG - Verifying the vn in opserver 2025-06-09 02:02:22,231 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-83511205:ctest-vn-08208948 virtual network link through opserver 10.0.0.33 2025-06-09 02:02:22,231 - DEBUG - Requesting: https://10.0.0.33:8081/analytics/uves/virtual-networks 2025-06-09 02:02:22,290 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-83511205:ctest-vn-08208948', 'href': 'https://10.0.0.33:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-83511205:ctest-vn-08208948?flat'} 2025-06-09 02:02:22,290 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-83511205:ctest-vn-08208948 is found in opserver 2025-06-09 02:02:22,514 - DEBUG - Do not have enough data to verify VN in agent 2025-06-09 02:02:22,565 - DEBUG - VRF ids for VN ctest-vn-08208948: {} 2025-06-09 02:02:22,638 - DEBUG - Services list from nova: [, , ] 2025-06-09 02:02:23,713 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-544-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-544-1) 2025-06-09 02:02:25,824 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-544-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-544-1) 2025-06-09 02:02:25,824 - INFO - Waiting for VM ctest-TestBasicPolicy-83511205-95695717 to be up.. 2025-06-09 02:02:25,962 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-09 02:02:31,098 - DEBUG - VM is in ACTIVE state now 2025-06-09 02:02:31,098 - INFO - VM name : ctest-TestBasicPolicy-83511205-95695717 2025-06-09 02:02:31,255 - DEBUG - VM ctest-TestBasicPolicy-83511205-95695717 ID is 9e205181-7a76-4fa6-9be8-d0c20f5ddaab 2025-06-09 02:02:31,320 - DEBUG - VM ctest-TestBasicPolicy-83511205-95695717 launched on Node cn-jenkins-deploy-platform-juju-os-544-1 2025-06-09 02:02:31,478 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-machine/9e205181-7a76-4fa6-9be8-d0c20f5ddaab 2025-06-09 02:02:31,534 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-machine-interface/f0d46c73-3476-41e7-87ef-5d46f1115e7a 2025-06-09 02:02:35,058 - 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 1035ms') 2025-06-09 02:02:35,058 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-83511205-95695717 failed! 2025-06-09 02:02:35,181 - DEBUG - Gateway for vn admin_domain:ctest-TestBasicPolicy-83511205:ctest-vn-13254161 is 172.210.144.193 and allocation pool is NOT set 2025-06-09 02:02:39,327 - 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 1005ms') 2025-06-09 02:02:39,327 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-83511205-95695717 failed! 2025-06-09 02:02:39,433 - DEBUG - Gateway for vn admin_domain:ctest-TestBasicPolicy-83511205:ctest-vn-13254161 is 172.210.144.193 and allocation pool is NOT set 2025-06-09 02:02:41,521 - 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=9.53 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=4.19 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 = 4.189/6.861/9.534/2.672 ms') 2025-06-09 02:02:41,521 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-83511205-95695717 passed 2025-06-09 02:02:41,681 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-09 02:02:41,681 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-83511205-95695717, IP 172.210.144.195, Port 22 2025-06-09 02:02:41,782 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-06-09 02:02:41,973 - DEBUG - VM ctest-TestBasicPolicy-83511205-95695717 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-09 02:02:46,974 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-09 02:02:46,974 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-83511205-95695717, IP 172.210.144.195, Port 22 2025-06-09 02:02:47,201 - DEBUG - VM ctest-TestBasicPolicy-83511205-95695717 is ready for SSH connections 2025-06-09 02:02:47,202 - INFO - Waiting for VM ctest-TestBasicPolicy-83511205-76221965 to be up.. 2025-06-09 02:02:47,352 - DEBUG - VM is in ACTIVE state now 2025-06-09 02:02:47,352 - INFO - VM name : ctest-TestBasicPolicy-83511205-76221965 2025-06-09 02:02:47,520 - DEBUG - VM ctest-TestBasicPolicy-83511205-76221965 ID is d3a17276-29b4-4fb6-9cb6-48a330ed3457 2025-06-09 02:02:47,520 - DEBUG - VM ctest-TestBasicPolicy-83511205-76221965 launched on Node cn-jenkins-deploy-platform-juju-os-544-1 2025-06-09 02:02:47,671 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-machine/d3a17276-29b4-4fb6-9cb6-48a330ed3457 2025-06-09 02:02:47,726 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-machine-interface/0d70dab8-e7bc-4565-901d-0364098bf4f8 2025-06-09 02:02:49,194 - 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.58 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.432 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 = 0.432/2.007/3.582/1.575 ms') 2025-06-09 02:02:49,195 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-83511205-76221965 passed 2025-06-09 02:02:49,353 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-09 02:02:49,353 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-83511205-76221965, IP 63.68.133.195, Port 22 2025-06-09 02:02:49,585 - DEBUG - VM ctest-TestBasicPolicy-83511205-76221965 is ready for SSH connections 2025-06-09 02:02:49,585 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-09 02:02:49,585 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 63.68.133.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-06-09 02:02:49,585 - DEBUG - ping -s 56 -c 3 -W 1 63.68.133.195 2025-06-09 02:02:53,276 - DEBUG - PING 63.68.133.195 (63.68.133.195): 56 data bytes 64 bytes from 63.68.133.195: seq=0 ttl=63 time=4.117 ms 64 bytes from 63.68.133.195: seq=1 ttl=63 time=0.986 ms 64 bytes from 63.68.133.195: seq=2 ttl=63 time=1.106 ms --- 63.68.133.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.986/2.069/4.117 ms 2025-06-09 02:02:53,276 - INFO - Ping to IP 63.68.133.195 from VM ctest-TestBasicPolicy-83511205-95695717 passed 2025-06-09 02:02:53,456 - DEBUG - Policy Update Response {"network-policy": {"uuid": "328aaedf-08a7-40ad-863e-421854cdab0a", "href": "https://10.0.0.33:8082/network-policy/328aaedf-08a7-40ad-863e-421854cdab0a"}} 2025-06-09 02:02:53,456 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-09 02:02:53,457 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 63.68.133.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-06-09 02:02:53,457 - DEBUG - ping -s 56 -c 3 -W 1 63.68.133.195 2025-06-09 02:02:56,687 - DEBUG - PING 63.68.133.195 (63.68.133.195): 56 data bytes --- 63.68.133.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-06-09 02:02:56,687 - WARNING - Ping to IP 63.68.133.195 from VM ctest-TestBasicPolicy-83511205-95695717 failed 2025-06-09 02:02:56,687 - INFO - Deleting VM ctest-TestBasicPolicy-83511205-76221965 2025-06-09 02:02:56,788 - INFO - Deleting VM ctest-TestBasicPolicy-83511205-95695717 2025-06-09 02:02:57,527 - INFO - Deleted policy ctest-policy-allow-all-80765051 2025-06-09 02:02:57,528 - INFO - Deleting VN ctest-vn-08208948 2025-06-09 02:02:57,664 - DEBUG - VN 78bbe989-db79-47be-aa31-f5ff0f98439f still in use: Unable to complete operation on network 78bbe989-db79-47be-aa31-f5ff0f98439f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9c737860-44a5-4fc5-b54d-971d6626b975'] 2025-06-09 02:02:57,664 - WARNING - Deleting VN ctest-vn-08208948 failed..Will retry 2025-06-09 02:02:59,827 - DEBUG - Response for deleting network () 2025-06-09 02:02:59,827 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/30903838-12c7-4afd-8f59-c5675a48ea13 2025-06-09 02:02:59,877 - DEBUG - Response Code: 404 2025-06-09 02:02:59,877 - DEBUG - Requesting: https://10.0.0.33:8082/domains 2025-06-09 02:02:59,929 - DEBUG - Requesting: https://10.0.0.33:8082/domain/7aee698f-3aa6-4114-8aa9-0ff605a1286e 2025-06-09 02:02:59,990 - DEBUG - Requesting: https://10.0.0.33:8082/project/bad4c167-8987-45e2-91e3-f24297f29ecc 2025-06-09 02:03:00,074 - INFO - Validated that VN ctest-vn-08208948 is not found in API Server 2025-06-09 02:03:00,173 - DEBUG - VN ctest-vn-08208948 is not present in Agent 10.0.0.33 2025-06-09 02:03:00,173 - INFO - Validated that VN ctest-vn-08208948 is not in any agent 2025-06-09 02:03:00,330 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-08208948 info 2025-06-09 02:03:00,330 - INFO - Deleting VN ctest-vn-13254161 2025-06-09 02:03:00,489 - DEBUG - Response for deleting network () 2025-06-09 02:03:00,489 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/839fe885-cafc-4e2e-959d-6c5e9222cfec 2025-06-09 02:03:00,549 - DEBUG - Response Code: 404 2025-06-09 02:03:00,549 - DEBUG - Requesting: https://10.0.0.33:8082/domains 2025-06-09 02:03:00,601 - DEBUG - Requesting: https://10.0.0.33:8082/domain/7aee698f-3aa6-4114-8aa9-0ff605a1286e 2025-06-09 02:03:00,666 - DEBUG - Requesting: https://10.0.0.33:8082/project/bad4c167-8987-45e2-91e3-f24297f29ecc 2025-06-09 02:03:00,746 - INFO - Validated that VN ctest-vn-13254161 is not found in API Server 2025-06-09 02:03:00,849 - DEBUG - VN ctest-vn-13254161 is not present in Agent 10.0.0.33 2025-06-09 02:03:00,849 - INFO - Validated that VN ctest-vn-13254161 is not in any agent 2025-06-09 02:03:01,002 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-13254161 info 2025-06-09 02:03:01,386 - DEBUG - No XMPP flaps were noticed during the test 2025-06-09 02:03:01,386 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:47] 2025-06-09 02:03:01,386 - INFO - -------------------------------------------------------------------------------- 2025-06-09 02:03:02,123 - INFO - Deleted project: ctest-TestBasicPolicy-83511205, ID : bad4c167-8987-45e2-91e3-f24297f29ecc