2025-09-13 17:10:24,504 - INFO - Domain Default found not creating 2025-09-13 17:10:24,675 - INFO - Project ctest-TestBasicPolicy-29837806 not found, creating it 2025-09-13 17:10:25,155 - INFO - Created Project:ctest-TestBasicPolicy-29837806, ID : 6bd8e5ee-20e0-4826-b7da-c582dd329a02 2025-09-13 17:10:26,642 - INFO - ================================================================================ 2025-09-13 17:10:26,642 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-09-13 17:10:26,642 - 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-09-13 17:10:26,905 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2025-09-13 17:10:26,906 - INFO - Initial checks done. Running the testcase now 2025-09-13 17:10:26,906 - INFO - 2025-09-13 17:10:27,499 - DEBUG - Response for create_network : {'network': {'id': 'deb899f1-bea4-4bbc-bf86-a6a7f83af3b9', 'name': 'ctest-vn-12035645', 'tenant_id': '6bd8e5ee20e04826b7dac582dd329a02', 'project_id': '6bd8e5ee20e04826b7dac582dd329a02', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29837806', 'ctest-vn-12035645'], 'port_security_enabled': True, 'description': ''}} 2025-09-13 17:10:27,667 - DEBUG - Response for create_subnet : {'subnet': {'id': '2da016c2-d8d2-42be-b807-da35fc31ff84', 'name': '', 'tenant_id': '6bd8e5ee20e04826b7dac582dd329a02', 'network_id': 'deb899f1-bea4-4bbc-bf86-a6a7f83af3b9', 'ip_version': 4, 'cidr': '204.152.206.0/26', 'allocation_pools': [{'start': '204.152.206.2', 'end': '204.152.206.62'}], 'gateway_ip': '204.152.206.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '204.152.206.2', 'tags': [], 'project_id': '6bd8e5ee20e04826b7dac582dd329a02'}} 2025-09-13 17:10:27,688 - INFO - Created VN ctest-vn-12035645 2025-09-13 17:10:27,741 - DEBUG - VN ctest-vn-12035645 UUID is deb899f1-bea4-4bbc-bf86-a6a7f83af3b9 2025-09-13 17:10:28,058 - DEBUG - Response for create_network : {'network': {'id': 'f96372fd-c8aa-425a-a0f0-1c218249612c', 'name': 'ctest-vn-46177022', 'tenant_id': '6bd8e5ee20e04826b7dac582dd329a02', 'project_id': '6bd8e5ee20e04826b7dac582dd329a02', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29837806', 'ctest-vn-46177022'], 'port_security_enabled': True, 'description': ''}} 2025-09-13 17:10:28,233 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a4acb9d2-57ae-480d-b053-3d94e0e57fdd', 'name': '', 'tenant_id': '6bd8e5ee20e04826b7dac582dd329a02', 'network_id': 'f96372fd-c8aa-425a-a0f0-1c218249612c', 'ip_version': 4, 'cidr': '95.206.201.0/26', 'allocation_pools': [{'start': '95.206.201.2', 'end': '95.206.201.62'}], 'gateway_ip': '95.206.201.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.206.201.2', 'tags': [], 'project_id': '6bd8e5ee20e04826b7dac582dd329a02'}} 2025-09-13 17:10:28,253 - INFO - Created VN ctest-vn-46177022 2025-09-13 17:10:28,305 - DEBUG - VN ctest-vn-46177022 UUID is f96372fd-c8aa-425a-a0f0-1c218249612c 2025-09-13 17:10:28,433 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-29837806:ctest-vn-12035645, 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-29837806:ctest-vn-46177022, 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-09-13 17:10:28,729 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'deb899f1-bea4-4bbc-bf86-a6a7f83af3b9', 'name': 'ctest-vn-12035645', 'tenant_id': '6bd8e5ee20e04826b7dac582dd329a02', 'project_id': '6bd8e5ee20e04826b7dac582dd329a02', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2da016c2-d8d2-42be-b807-da35fc31ff84'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29837806', 'ctest-vn-12035645'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29837806', 'ctest-policy-allow-all-77696674']], 'subnet_ipam': [{'subnet_cidr': '204.152.206.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-13 17:10:28,970 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f96372fd-c8aa-425a-a0f0-1c218249612c', 'name': 'ctest-vn-46177022', 'tenant_id': '6bd8e5ee20e04826b7dac582dd329a02', 'project_id': '6bd8e5ee20e04826b7dac582dd329a02', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a4acb9d2-57ae-480d-b053-3d94e0e57fdd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29837806', 'ctest-vn-46177022'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29837806', 'ctest-policy-allow-all-77696674']], 'subnet_ipam': [{'subnet_cidr': '95.206.201.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-13 17:10:29,121 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-13 17:10:29,450 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-13 17:10:29,482 - DEBUG - Requesting: http://10.0.0.22:8082/domain/612602fc-a563-4737-9e20-188ea0c643df 2025-09-13 17:10:29,495 - DEBUG - Requesting: http://10.0.0.22:8082/project/6bd8e5ee-20e0-4826-b7da-c582dd329a02 2025-09-13 17:10:29,570 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/deb899f1-bea4-4bbc-bf86-a6a7f83af3b9 2025-09-13 17:10:29,580 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/deb899f1-bea4-4bbc-bf86-a6a7f83af3b9 2025-09-13 17:10:29,589 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c192b818-d39d-4398-a9ae-523e2cc04ad7 2025-09-13 17:10:29,596 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c192b818-d39d-4398-a9ae-523e2cc04ad7 2025-09-13 17:10:29,602 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/246813e4-3fca-4582-8a42-a4904d89fc0e 2025-09-13 17:10:29,611 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-13 17:10:29,611 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/deb899f1-bea4-4bbc-bf86-a6a7f83af3b9 2025-09-13 17:10:29,623 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c192b818-d39d-4398-a9ae-523e2cc04ad7 2025-09-13 17:10:29,639 - INFO - Verified VN network id 11 for VN deb899f1-bea4-4bbc-bf86-a6a7f83af3b9 2025-09-13 17:10:29,639 - INFO - Verifications in API Server for VN ctest-vn-12035645 passed 2025-09-13 17:10:29,639 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/deb899f1-bea4-4bbc-bf86-a6a7f83af3b9 2025-09-13 17:10:29,649 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c192b818-d39d-4398-a9ae-523e2cc04ad7 2025-09-13 17:10:29,656 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c192b818-d39d-4398-a9ae-523e2cc04ad7 2025-09-13 17:10:29,663 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/246813e4-3fca-4582-8a42-a4904d89fc0e 2025-09-13 17:10:29,677 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29837806:ctest-vn-12035645', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29837806', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16048746535699368892', 'uuid-lslong': '13800901348477825977'}, 'enable': 'true', 'created': '2025-09-13T17:10:27', 'last-modified': '2025-09-13T17:10:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.968609'} 2025-09-13 17:10:29,684 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-13 17:10:29,684 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12035645 passed 2025-09-13 17:10:29,684 - DEBUG - ====Verifying policy data for ctest-vn-12035645 in API_Server ====== 2025-09-13 17:10:29,684 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-13 17:10:29,690 - DEBUG - Requesting: http://10.0.0.22:8082/domain/612602fc-a563-4737-9e20-188ea0c643df 2025-09-13 17:10:29,702 - DEBUG - Requesting: http://10.0.0.22:8082/project/6bd8e5ee-20e0-4826-b7da-c582dd329a02 2025-09-13 17:10:29,775 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/deb899f1-bea4-4bbc-bf86-a6a7f83af3b9 2025-09-13 17:10:29,789 - DEBUG - ==>Verifying data for policy with id: 3abfc0aa-23d6-4db2-b571-a8bbf297b4ac, fqn: ['default-domain', 'ctest-TestBasicPolicy-29837806', 'ctest-policy-allow-all-77696674'] 2025-09-13 17:10:29,789 - INFO - VN ctest-vn-12035645 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-13 17:10:29,789 - DEBUG - Verifying the vn in opserver 2025-09-13 17:10:29,789 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29837806:ctest-vn-12035645 virtual network link through opserver 10.0.0.22 2025-09-13 17:10:29,789 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-13 17:10:30,119 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-13 17:10:30,185 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29837806:ctest-vn-12035645', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29837806:ctest-vn-12035645?flat'} 2025-09-13 17:10:30,185 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29837806:ctest-vn-12035645 is found in opserver 2025-09-13 17:10:30,195 - DEBUG - Do not have enough data to verify VN in agent 2025-09-13 17:10:30,199 - DEBUG - VRF ids for VN ctest-vn-12035645: {} 2025-09-13 17:10:30,199 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-13 17:10:30,204 - DEBUG - Requesting: http://10.0.0.22:8082/domain/612602fc-a563-4737-9e20-188ea0c643df 2025-09-13 17:10:30,215 - DEBUG - Requesting: http://10.0.0.22:8082/project/6bd8e5ee-20e0-4826-b7da-c582dd329a02 2025-09-13 17:10:30,286 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f96372fd-c8aa-425a-a0f0-1c218249612c 2025-09-13 17:10:30,297 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f96372fd-c8aa-425a-a0f0-1c218249612c 2025-09-13 17:10:30,306 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/26defab2-0127-47ae-8668-0e3350aa2c84 2025-09-13 17:10:30,312 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/26defab2-0127-47ae-8668-0e3350aa2c84 2025-09-13 17:10:30,318 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7d1a803e-625a-4c60-b5ab-c4f55ee3fcc1 2025-09-13 17:10:30,325 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-13 17:10:30,325 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f96372fd-c8aa-425a-a0f0-1c218249612c 2025-09-13 17:10:30,333 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/26defab2-0127-47ae-8668-0e3350aa2c84 2025-09-13 17:10:30,346 - INFO - Verified VN network id 12 for VN f96372fd-c8aa-425a-a0f0-1c218249612c 2025-09-13 17:10:30,346 - INFO - Verifications in API Server for VN ctest-vn-46177022 passed 2025-09-13 17:10:30,346 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f96372fd-c8aa-425a-a0f0-1c218249612c 2025-09-13 17:10:30,354 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/26defab2-0127-47ae-8668-0e3350aa2c84 2025-09-13 17:10:30,361 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/26defab2-0127-47ae-8668-0e3350aa2c84 2025-09-13 17:10:30,369 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7d1a803e-625a-4c60-b5ab-c4f55ee3fcc1 2025-09-13 17:10:30,379 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29837806:ctest-vn-46177022', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29837806', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17970333372457304666', 'uuid-lslong': '11596799970724372780'}, 'enable': 'true', 'created': '2025-09-13T17:10:28', 'last-modified': '2025-09-13T17:10:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.433276'} 2025-09-13 17:10:30,385 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-13 17:10:30,385 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46177022 passed 2025-09-13 17:10:30,385 - DEBUG - ====Verifying policy data for ctest-vn-46177022 in API_Server ====== 2025-09-13 17:10:30,385 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-13 17:10:30,392 - DEBUG - Requesting: http://10.0.0.22:8082/domain/612602fc-a563-4737-9e20-188ea0c643df 2025-09-13 17:10:30,403 - DEBUG - Requesting: http://10.0.0.22:8082/project/6bd8e5ee-20e0-4826-b7da-c582dd329a02 2025-09-13 17:10:30,473 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f96372fd-c8aa-425a-a0f0-1c218249612c 2025-09-13 17:10:30,481 - DEBUG - ==>Verifying data for policy with id: 3abfc0aa-23d6-4db2-b571-a8bbf297b4ac, fqn: ['default-domain', 'ctest-TestBasicPolicy-29837806', 'ctest-policy-allow-all-77696674'] 2025-09-13 17:10:30,481 - INFO - VN ctest-vn-46177022 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-13 17:10:30,481 - DEBUG - Verifying the vn in opserver 2025-09-13 17:10:30,481 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29837806:ctest-vn-46177022 virtual network link through opserver 10.0.0.22 2025-09-13 17:10:30,481 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-13 17:10:30,490 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29837806:ctest-vn-46177022', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29837806:ctest-vn-46177022?flat'} 2025-09-13 17:10:30,490 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29837806:ctest-vn-46177022 is found in opserver 2025-09-13 17:10:30,500 - DEBUG - Do not have enough data to verify VN in agent 2025-09-13 17:10:30,505 - DEBUG - VRF ids for VN ctest-vn-46177022: {} 2025-09-13 17:10:30,562 - DEBUG - Services list from nova: [, , ] 2025-09-13 17:10:31,661 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4104-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4104-1) 2025-09-13 17:10:32,856 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4104-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4104-1) 2025-09-13 17:10:32,857 - INFO - Waiting for VM ctest-TestBasicPolicy-29837806-03256685 to be up.. 2025-09-13 17:10:32,938 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-13 17:10:38,026 - DEBUG - VM is in ACTIVE state now 2025-09-13 17:10:38,026 - INFO - VM name : ctest-TestBasicPolicy-29837806-03256685 2025-09-13 17:10:38,106 - DEBUG - VM ctest-TestBasicPolicy-29837806-03256685 ID is 55a029c2-188b-43d7-a0a1-71ffeac8d5d4 2025-09-13 17:10:38,128 - DEBUG - VM ctest-TestBasicPolicy-29837806-03256685 launched on Node cn-jenkins-deploy-platform-ansible-os-4104-1 2025-09-13 17:10:38,224 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/55a029c2-188b-43d7-a0a1-71ffeac8d5d4 2025-09-13 17:10:38,233 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/579c067d-a39f-436a-a827-782ff6d4a3b9 2025-09-13 17:10:41,474 - 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-09-13 17:10:41,474 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-29837806-03256685 failed! 2025-09-13 17:10:41,529 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-29837806:ctest-vn-12035645 is 204.152.206.1 and allocation pool is NOT set 2025-09-13 17:10:43,601 - 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=11.4 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.664 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.664/6.007/11.350/5.343 ms') 2025-09-13 17:10:43,601 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-29837806-03256685 passed 2025-09-13 17:10:43,753 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-13 17:10:43,753 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-29837806-03256685, IP 204.152.206.3, Port 22 2025-09-13 17:10:43,927 - DEBUG - VM ctest-TestBasicPolicy-29837806-03256685 is ready for SSH connections 2025-09-13 17:10:43,927 - INFO - Waiting for VM ctest-TestBasicPolicy-29837806-36595327 to be up.. 2025-09-13 17:10:44,008 - DEBUG - VM is in ACTIVE state now 2025-09-13 17:10:44,008 - INFO - VM name : ctest-TestBasicPolicy-29837806-36595327 2025-09-13 17:10:44,084 - DEBUG - VM ctest-TestBasicPolicy-29837806-36595327 ID is 6d5613ba-8dfd-4a30-86a8-e3a424f1ee73 2025-09-13 17:10:44,085 - DEBUG - VM ctest-TestBasicPolicy-29837806-36595327 launched on Node cn-jenkins-deploy-platform-ansible-os-4104-1 2025-09-13 17:10:44,167 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/6d5613ba-8dfd-4a30-86a8-e3a424f1ee73 2025-09-13 17:10:44,177 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/5e5191ad-b99f-4799-b695-fb8badde2ba6 2025-09-13 17:10:45,417 - 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=5.28 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.59 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 = 1.593/3.434/5.275/1.841 ms') 2025-09-13 17:10:45,417 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-29837806-36595327 passed 2025-09-13 17:10:45,573 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-13 17:10:45,573 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-29837806-36595327, IP 95.206.201.3, Port 22 2025-09-13 17:10:45,630 - 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-09-13 17:10:45,710 - DEBUG - VM ctest-TestBasicPolicy-29837806-36595327 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-13 17:10:50,711 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-13 17:10:50,711 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-29837806-36595327, IP 95.206.201.3, Port 22 2025-09-13 17:10:50,870 - DEBUG - VM ctest-TestBasicPolicy-29837806-36595327 is ready for SSH connections 2025-09-13 17:10:50,870 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-13 17:10:50,870 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 95.206.201.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-09-13 17:10:50,870 - DEBUG - ping -s 56 -c 3 -W 1 95.206.201.3 2025-09-13 17:10:54,948 - DEBUG - PING 95.206.201.3 (95.206.201.3): 56 data bytes 64 bytes from 95.206.201.3: seq=0 ttl=63 time=4.264 ms 64 bytes from 95.206.201.3: seq=1 ttl=63 time=1.115 ms 64 bytes from 95.206.201.3: seq=2 ttl=63 time=1.016 ms --- 95.206.201.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.016/2.131/4.264 ms 2025-09-13 17:10:54,948 - INFO - Ping to IP 95.206.201.3 from VM ctest-TestBasicPolicy-29837806-03256685 passed 2025-09-13 17:10:55,137 - DEBUG - Policy Update Response {"network-policy": {"uuid": "3abfc0aa-23d6-4db2-b571-a8bbf297b4ac", "href": "http://10.0.0.22:8082/network-policy/3abfc0aa-23d6-4db2-b571-a8bbf297b4ac"}} 2025-09-13 17:10:55,137 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-13 17:10:55,137 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 95.206.201.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-09-13 17:10:55,137 - DEBUG - ping -s 56 -c 3 -W 1 95.206.201.3 2025-09-13 17:10:58,366 - DEBUG - PING 95.206.201.3 (95.206.201.3): 56 data bytes --- 95.206.201.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-09-13 17:10:58,366 - WARNING - Ping to IP 95.206.201.3 from VM ctest-TestBasicPolicy-29837806-03256685 failed 2025-09-13 17:10:58,366 - INFO - Deleting VM ctest-TestBasicPolicy-29837806-36595327 2025-09-13 17:10:58,443 - INFO - Deleting VM ctest-TestBasicPolicy-29837806-03256685 2025-09-13 17:10:58,877 - INFO - Deleted policy ctest-policy-allow-all-77696674 2025-09-13 17:10:58,877 - INFO - Deleting VN ctest-vn-46177022 2025-09-13 17:10:58,927 - DEBUG - VN f96372fd-c8aa-425a-a0f0-1c218249612c still in use: Unable to complete operation on network f96372fd-c8aa-425a-a0f0-1c218249612c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-95b02442-41b0-4a7f-9cc0-5d60dc6ff43b'] 2025-09-13 17:10:58,927 - WARNING - Deleting VN ctest-vn-46177022 failed..Will retry 2025-09-13 17:11:01,055 - DEBUG - Response for deleting network () 2025-09-13 17:11:01,055 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/26defab2-0127-47ae-8668-0e3350aa2c84 2025-09-13 17:11:01,065 - DEBUG - Response Code: 404 2025-09-13 17:11:01,065 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-13 17:11:01,078 - DEBUG - Requesting: http://10.0.0.22:8082/domain/612602fc-a563-4737-9e20-188ea0c643df 2025-09-13 17:11:01,134 - DEBUG - Requesting: http://10.0.0.22:8082/project/6bd8e5ee-20e0-4826-b7da-c582dd329a02 2025-09-13 17:11:01,208 - INFO - Validated that VN ctest-vn-46177022 is not found in API Server 2025-09-13 17:11:01,218 - DEBUG - VN ctest-vn-46177022 is not present in Agent 10.0.0.22 2025-09-13 17:11:01,218 - INFO - Validated that VN ctest-vn-46177022 is not in any agent 2025-09-13 17:11:01,233 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-46177022 info 2025-09-13 17:11:01,233 - INFO - Deleting VN ctest-vn-12035645 2025-09-13 17:11:01,354 - DEBUG - Response for deleting network () 2025-09-13 17:11:01,355 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c192b818-d39d-4398-a9ae-523e2cc04ad7 2025-09-13 17:11:01,365 - DEBUG - Response Code: 404 2025-09-13 17:11:01,365 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-13 17:11:01,371 - DEBUG - Requesting: http://10.0.0.22:8082/domain/612602fc-a563-4737-9e20-188ea0c643df 2025-09-13 17:11:01,426 - DEBUG - Requesting: http://10.0.0.22:8082/project/6bd8e5ee-20e0-4826-b7da-c582dd329a02 2025-09-13 17:11:01,502 - INFO - Validated that VN ctest-vn-12035645 is not found in API Server 2025-09-13 17:11:01,512 - DEBUG - VN ctest-vn-12035645 is not present in Agent 10.0.0.22 2025-09-13 17:11:01,512 - INFO - Validated that VN ctest-vn-12035645 is not in any agent 2025-09-13 17:11:01,529 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-12035645 info 2025-09-13 17:11:01,782 - DEBUG - No XMPP flaps were noticed during the test
2025-09-13 17:11:01,782 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-09-13 17:11:01,782 - INFO - -------------------------------------------------------------------------------- 2025-09-13 17:11:02,529 - INFO - Deleted project: ctest-TestBasicPolicy-29837806, ID : 6bd8e5ee-20e0-4826-b7da-c582dd329a02