2025-10-23 20:59:50,721 - INFO - Domain Default found not creating 2025-10-23 20:59:50,882 - INFO - Project ctest-TestBasicPolicy-71366668 not found, creating it 2025-10-23 20:59:51,329 - INFO - Created Project:ctest-TestBasicPolicy-71366668, ID : 13146952-691d-4b85-81ca-e4ca695e59eb 2025-10-23 20:59:52,904 - INFO - ================================================================================ 2025-10-23 20:59:52,904 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-23 20:59:52,904 - 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-10-23 20:59:53,160 - DEBUG - Nothing to compare xmpp stats {'10.0.0.137': {'10.20.0.17': '0'}} with 2025-10-23 20:59:53,160 - INFO - Initial checks done. Running the testcase now 2025-10-23 20:59:53,160 - INFO - 2025-10-23 20:59:53,767 - DEBUG - Response for create_network : {'network': {'id': '2ffb2861-345a-4fc3-8139-0e90c1e8b190', 'name': 'ctest-vn-18771928', 'tenant_id': '13146952691d4b8581cae4ca695e59eb', 'project_id': '13146952691d4b8581cae4ca695e59eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71366668', 'ctest-vn-18771928'], 'port_security_enabled': True, 'description': ''}} 2025-10-23 20:59:53,928 - DEBUG - Response for create_subnet : {'subnet': {'id': '2a396eab-3126-434f-bd49-393f400c4ce1', 'name': '', 'tenant_id': '13146952691d4b8581cae4ca695e59eb', 'network_id': '2ffb2861-345a-4fc3-8139-0e90c1e8b190', 'ip_version': 4, 'cidr': '191.235.132.192/26', 'allocation_pools': [{'start': '191.235.132.194', 'end': '191.235.132.254'}], 'gateway_ip': '191.235.132.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.235.132.194', 'tags': [], 'project_id': '13146952691d4b8581cae4ca695e59eb'}} 2025-10-23 20:59:53,947 - INFO - Created VN ctest-vn-18771928 2025-10-23 20:59:54,002 - DEBUG - VN ctest-vn-18771928 UUID is 2ffb2861-345a-4fc3-8139-0e90c1e8b190 2025-10-23 20:59:54,295 - DEBUG - Response for create_network : {'network': {'id': '88082140-a0f1-49a5-8d68-44f8847da8c6', 'name': 'ctest-vn-38406680', 'tenant_id': '13146952691d4b8581cae4ca695e59eb', 'project_id': '13146952691d4b8581cae4ca695e59eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71366668', 'ctest-vn-38406680'], 'port_security_enabled': True, 'description': ''}} 2025-10-23 20:59:54,470 - DEBUG - Response for create_subnet : {'subnet': {'id': '1825ed60-cd1d-40aa-ab42-99b3d04942c4', 'name': '', 'tenant_id': '13146952691d4b8581cae4ca695e59eb', 'network_id': '88082140-a0f1-49a5-8d68-44f8847da8c6', 'ip_version': 4, 'cidr': '167.9.203.64/26', 'allocation_pools': [{'start': '167.9.203.66', 'end': '167.9.203.126'}], 'gateway_ip': '167.9.203.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.9.203.66', 'tags': [], 'project_id': '13146952691d4b8581cae4ca695e59eb'}} 2025-10-23 20:59:54,490 - INFO - Created VN ctest-vn-38406680 2025-10-23 20:59:54,542 - DEBUG - VN ctest-vn-38406680 UUID is 88082140-a0f1-49a5-8d68-44f8847da8c6 2025-10-23 20:59:54,658 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-71366668:ctest-vn-18771928, 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-71366668:ctest-vn-38406680, 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-10-23 20:59:55,005 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2ffb2861-345a-4fc3-8139-0e90c1e8b190', 'name': 'ctest-vn-18771928', 'tenant_id': '13146952691d4b8581cae4ca695e59eb', 'project_id': '13146952691d4b8581cae4ca695e59eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2a396eab-3126-434f-bd49-393f400c4ce1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71366668', 'ctest-vn-18771928'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71366668', 'ctest-policy-allow-all-04173895']], 'subnet_ipam': [{'subnet_cidr': '191.235.132.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-23 20:59:55,238 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '88082140-a0f1-49a5-8d68-44f8847da8c6', 'name': 'ctest-vn-38406680', 'tenant_id': '13146952691d4b8581cae4ca695e59eb', 'project_id': '13146952691d4b8581cae4ca695e59eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1825ed60-cd1d-40aa-ab42-99b3d04942c4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71366668', 'ctest-vn-38406680'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71366668', 'ctest-policy-allow-all-04173895']], 'subnet_ipam': [{'subnet_cidr': '167.9.203.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-23 20:59:55,382 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-10-23 20:59:55,722 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-10-23 20:59:55,751 - DEBUG - Requesting: http://10.0.0.137:8082/domain/7ffd6b2d-9b54-42f7-b041-87f6082c9262 2025-10-23 20:59:55,764 - DEBUG - Requesting: http://10.0.0.137:8082/project/13146952-691d-4b85-81ca-e4ca695e59eb 2025-10-23 20:59:55,834 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/2ffb2861-345a-4fc3-8139-0e90c1e8b190 2025-10-23 20:59:55,845 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/2ffb2861-345a-4fc3-8139-0e90c1e8b190 2025-10-23 20:59:55,854 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/77035c00-5ceb-4752-b666-cd84a4ce4b0d 2025-10-23 20:59:55,862 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/77035c00-5ceb-4752-b666-cd84a4ce4b0d 2025-10-23 20:59:55,869 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/f24c63fa-1dd6-4cae-9f2c-e5f28d641399 2025-10-23 20:59:55,876 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-23 20:59:55,877 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/2ffb2861-345a-4fc3-8139-0e90c1e8b190 2025-10-23 20:59:55,886 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/77035c00-5ceb-4752-b666-cd84a4ce4b0d 2025-10-23 20:59:55,899 - INFO - Verified VN network id 11 for VN 2ffb2861-345a-4fc3-8139-0e90c1e8b190 2025-10-23 20:59:55,899 - INFO - Verifications in API Server for VN ctest-vn-18771928 passed 2025-10-23 20:59:55,900 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/2ffb2861-345a-4fc3-8139-0e90c1e8b190 2025-10-23 20:59:55,909 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/77035c00-5ceb-4752-b666-cd84a4ce4b0d 2025-10-23 20:59:55,916 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/77035c00-5ceb-4752-b666-cd84a4ce4b0d 2025-10-23 20:59:55,923 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/f24c63fa-1dd6-4cae-9f2c-e5f28d641399 2025-10-23 20:59:55,934 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71366668:ctest-vn-18771928', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71366668', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3457401536892260291', 'uuid-lslong': '9311489719456543120'}, 'enable': 'true', 'created': '2025-10-23T20:59:53', 'last-modified': '2025-10-23T20:59:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.957007'} 2025-10-23 20:59:55,940 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-23 20:59:55,940 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18771928 passed 2025-10-23 20:59:55,940 - DEBUG - ====Verifying policy data for ctest-vn-18771928 in API_Server ====== 2025-10-23 20:59:55,940 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-10-23 20:59:55,945 - DEBUG - Requesting: http://10.0.0.137:8082/domain/7ffd6b2d-9b54-42f7-b041-87f6082c9262 2025-10-23 20:59:55,957 - DEBUG - Requesting: http://10.0.0.137:8082/project/13146952-691d-4b85-81ca-e4ca695e59eb 2025-10-23 20:59:56,029 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/2ffb2861-345a-4fc3-8139-0e90c1e8b190 2025-10-23 20:59:56,038 - DEBUG - ==>Verifying data for policy with id: 7b428ff6-2304-407b-88aa-dcbf74d70ba9, fqn: ['default-domain', 'ctest-TestBasicPolicy-71366668', 'ctest-policy-allow-all-04173895'] 2025-10-23 20:59:56,038 - INFO - VN ctest-vn-18771928 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-23 20:59:56,038 - DEBUG - Verifying the vn in opserver 2025-10-23 20:59:56,039 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71366668:ctest-vn-18771928 virtual network link through opserver 10.0.0.137 2025-10-23 20:59:56,039 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks 2025-10-23 20:59:56,375 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks 2025-10-23 20:59:56,432 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71366668:ctest-vn-18771928', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71366668:ctest-vn-18771928?flat'} 2025-10-23 20:59:56,432 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71366668:ctest-vn-18771928 is found in opserver 2025-10-23 20:59:56,441 - DEBUG - Do not have enough data to verify VN in agent 2025-10-23 20:59:56,445 - DEBUG - VRF ids for VN ctest-vn-18771928: {} 2025-10-23 20:59:56,445 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-10-23 20:59:56,451 - DEBUG - Requesting: http://10.0.0.137:8082/domain/7ffd6b2d-9b54-42f7-b041-87f6082c9262 2025-10-23 20:59:56,462 - DEBUG - Requesting: http://10.0.0.137:8082/project/13146952-691d-4b85-81ca-e4ca695e59eb 2025-10-23 20:59:56,535 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/88082140-a0f1-49a5-8d68-44f8847da8c6 2025-10-23 20:59:56,547 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/88082140-a0f1-49a5-8d68-44f8847da8c6 2025-10-23 20:59:56,556 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/a5c75fbe-089e-4ee9-814c-5dbfc0ed59c5 2025-10-23 20:59:56,564 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/a5c75fbe-089e-4ee9-814c-5dbfc0ed59c5 2025-10-23 20:59:56,571 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/5c9a9300-a863-419c-8855-686855c16c4e 2025-10-23 20:59:56,577 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-23 20:59:56,578 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/88082140-a0f1-49a5-8d68-44f8847da8c6 2025-10-23 20:59:56,586 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/a5c75fbe-089e-4ee9-814c-5dbfc0ed59c5 2025-10-23 20:59:56,599 - INFO - Verified VN network id 12 for VN 88082140-a0f1-49a5-8d68-44f8847da8c6 2025-10-23 20:59:56,599 - INFO - Verifications in API Server for VN ctest-vn-38406680 passed 2025-10-23 20:59:56,599 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/88082140-a0f1-49a5-8d68-44f8847da8c6 2025-10-23 20:59:56,607 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/a5c75fbe-089e-4ee9-814c-5dbfc0ed59c5 2025-10-23 20:59:56,613 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/a5c75fbe-089e-4ee9-814c-5dbfc0ed59c5 2025-10-23 20:59:56,619 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/5c9a9300-a863-419c-8855-686855c16c4e 2025-10-23 20:59:56,629 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71366668:ctest-vn-38406680', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71366668', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9802121150433675685', 'uuid-lslong': '10189469991091153094'}, 'enable': 'true', 'created': '2025-10-23T20:59:54', 'last-modified': '2025-10-23T20:59:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.412821'} 2025-10-23 20:59:56,635 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-23 20:59:56,635 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38406680 passed 2025-10-23 20:59:56,635 - DEBUG - ====Verifying policy data for ctest-vn-38406680 in API_Server ====== 2025-10-23 20:59:56,635 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-10-23 20:59:56,640 - DEBUG - Requesting: http://10.0.0.137:8082/domain/7ffd6b2d-9b54-42f7-b041-87f6082c9262 2025-10-23 20:59:56,650 - DEBUG - Requesting: http://10.0.0.137:8082/project/13146952-691d-4b85-81ca-e4ca695e59eb 2025-10-23 20:59:56,722 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/88082140-a0f1-49a5-8d68-44f8847da8c6 2025-10-23 20:59:56,732 - DEBUG - ==>Verifying data for policy with id: 7b428ff6-2304-407b-88aa-dcbf74d70ba9, fqn: ['default-domain', 'ctest-TestBasicPolicy-71366668', 'ctest-policy-allow-all-04173895'] 2025-10-23 20:59:56,732 - INFO - VN ctest-vn-38406680 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-23 20:59:56,732 - DEBUG - Verifying the vn in opserver 2025-10-23 20:59:56,732 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71366668:ctest-vn-38406680 virtual network link through opserver 10.0.0.137 2025-10-23 20:59:56,732 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks 2025-10-23 20:59:56,742 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71366668:ctest-vn-38406680', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71366668:ctest-vn-38406680?flat'} 2025-10-23 20:59:56,742 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71366668:ctest-vn-38406680 is found in opserver 2025-10-23 20:59:56,752 - DEBUG - Do not have enough data to verify VN in agent 2025-10-23 20:59:56,757 - DEBUG - VRF ids for VN ctest-vn-38406680: {} 2025-10-23 20:59:56,818 - DEBUG - Services list from nova: [, , ] 2025-10-23 20:59:57,917 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4467-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4467-1) 2025-10-23 20:59:59,200 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4467-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4467-1) 2025-10-23 20:59:59,200 - INFO - Waiting for VM ctest-TestBasicPolicy-71366668-40578517 to be up.. 2025-10-23 20:59:59,288 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-23 21:00:04,371 - DEBUG - VM is in ACTIVE state now 2025-10-23 21:00:04,371 - INFO - VM name : ctest-TestBasicPolicy-71366668-40578517 2025-10-23 21:00:04,455 - DEBUG - VM ctest-TestBasicPolicy-71366668-40578517 ID is 12e3a704-b5be-43b4-b30d-19c412e19090 2025-10-23 21:00:04,474 - DEBUG - VM ctest-TestBasicPolicy-71366668-40578517 launched on Node cn-jenkins-deploy-platform-ansible-os-4467-1 2025-10-23 21:00:04,568 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine/12e3a704-b5be-43b4-b30d-19c412e19090 2025-10-23 21:00:04,578 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine-interface/0c429254-ada3-4b93-af99-c3a21157e088 2025-10-23 21:00:07,835 - 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 1022ms') 2025-10-23 21:00:07,835 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-71366668-40578517 failed! 2025-10-23 21:00:07,890 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-71366668:ctest-vn-18771928 is 191.235.132.193 and allocation pool is NOT set 2025-10-23 21:00:09,949 - 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.08 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.87 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 2.869/3.472/4.076/0.603 ms') 2025-10-23 21:00:09,949 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-71366668-40578517 passed 2025-10-23 21:00:10,106 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-23 21:00:10,106 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-71366668-40578517, IP 191.235.132.195, Port 22 2025-10-23 21:00:10,261 - DEBUG - VM ctest-TestBasicPolicy-71366668-40578517 is ready for SSH connections 2025-10-23 21:00:10,262 - INFO - Waiting for VM ctest-TestBasicPolicy-71366668-73574800 to be up.. 2025-10-23 21:00:10,342 - DEBUG - VM is in ACTIVE state now 2025-10-23 21:00:10,342 - INFO - VM name : ctest-TestBasicPolicy-71366668-73574800 2025-10-23 21:00:10,415 - DEBUG - VM ctest-TestBasicPolicy-71366668-73574800 ID is ac8cc54f-457f-43b4-9274-3a93a3779de8 2025-10-23 21:00:10,415 - DEBUG - VM ctest-TestBasicPolicy-71366668-73574800 launched on Node cn-jenkins-deploy-platform-ansible-os-4467-1 2025-10-23 21:00:10,486 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine/ac8cc54f-457f-43b4-9274-3a93a3779de8 2025-10-23 21:00:10,493 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine-interface/4c18fcfc-1615-4147-90d8-5364ee1632a6 2025-10-23 21:00:11,737 - 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.57 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.93 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 = 2.934/3.253/3.573/0.319 ms') 2025-10-23 21:00:11,737 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-71366668-73574800 passed 2025-10-23 21:00:11,886 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-23 21:00:11,886 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-71366668-73574800, IP 167.9.203.67, Port 22 2025-10-23 21:00:11,941 - 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-10-23 21:00:12,024 - DEBUG - VM ctest-TestBasicPolicy-71366668-73574800 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-23 21:00:17,024 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-23 21:00:17,025 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-71366668-73574800, IP 167.9.203.67, Port 22 2025-10-23 21:00:17,182 - DEBUG - VM ctest-TestBasicPolicy-71366668-73574800 is ready for SSH connections 2025-10-23 21:00:17,182 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-23 21:00:17,182 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 167.9.203.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.137, gateway password: c0ntrail123 2025-10-23 21:00:17,182 - DEBUG - ping -s 56 -c 3 -W 1 167.9.203.67 2025-10-23 21:00:21,337 - DEBUG - PING 167.9.203.67 (167.9.203.67): 56 data bytes 64 bytes from 167.9.203.67: seq=0 ttl=63 time=4.137 ms 64 bytes from 167.9.203.67: seq=1 ttl=63 time=1.115 ms 64 bytes from 167.9.203.67: seq=2 ttl=63 time=0.850 ms --- 167.9.203.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.850/2.034/4.137 ms 2025-10-23 21:00:21,338 - INFO - Ping to IP 167.9.203.67 from VM ctest-TestBasicPolicy-71366668-40578517 passed 2025-10-23 21:00:21,514 - DEBUG - Policy Update Response {"network-policy": {"uuid": "7b428ff6-2304-407b-88aa-dcbf74d70ba9", "href": "http://10.0.0.137:8082/network-policy/7b428ff6-2304-407b-88aa-dcbf74d70ba9"}} 2025-10-23 21:00:21,514 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-23 21:00:21,514 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 167.9.203.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.137, gateway password: c0ntrail123 2025-10-23 21:00:21,514 - DEBUG - ping -s 56 -c 3 -W 1 167.9.203.67 2025-10-23 21:00:24,751 - DEBUG - PING 167.9.203.67 (167.9.203.67): 56 data bytes --- 167.9.203.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-10-23 21:00:24,751 - WARNING - Ping to IP 167.9.203.67 from VM ctest-TestBasicPolicy-71366668-40578517 failed 2025-10-23 21:00:24,751 - INFO - Deleting VM ctest-TestBasicPolicy-71366668-73574800 2025-10-23 21:00:24,832 - INFO - Deleting VM ctest-TestBasicPolicy-71366668-40578517 2025-10-23 21:00:25,325 - INFO - Deleted policy ctest-policy-allow-all-04173895 2025-10-23 21:00:25,326 - INFO - Deleting VN ctest-vn-38406680 2025-10-23 21:00:25,374 - DEBUG - VN 88082140-a0f1-49a5-8d68-44f8847da8c6 still in use: Unable to complete operation on network 88082140-a0f1-49a5-8d68-44f8847da8c6. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-03c6efb0-4144-4cd7-b4f1-a61cb2666b12'] 2025-10-23 21:00:25,374 - WARNING - Deleting VN ctest-vn-38406680 failed..Will retry 2025-10-23 21:00:27,507 - DEBUG - Response for deleting network () 2025-10-23 21:00:27,508 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/a5c75fbe-089e-4ee9-814c-5dbfc0ed59c5 2025-10-23 21:00:27,515 - DEBUG - Response Code: 404 2025-10-23 21:00:27,515 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-10-23 21:00:27,523 - DEBUG - Requesting: http://10.0.0.137:8082/domain/7ffd6b2d-9b54-42f7-b041-87f6082c9262 2025-10-23 21:00:27,581 - DEBUG - Requesting: http://10.0.0.137:8082/project/13146952-691d-4b85-81ca-e4ca695e59eb 2025-10-23 21:00:27,655 - INFO - Validated that VN ctest-vn-38406680 is not found in API Server 2025-10-23 21:00:27,668 - DEBUG - VN ctest-vn-38406680 is not present in Agent 10.0.0.137 2025-10-23 21:00:27,668 - INFO - Validated that VN ctest-vn-38406680 is not in any agent 2025-10-23 21:00:27,684 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-38406680 info 2025-10-23 21:00:27,684 - INFO - Deleting VN ctest-vn-18771928 2025-10-23 21:00:27,786 - DEBUG - Response for deleting network () 2025-10-23 21:00:27,786 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/77035c00-5ceb-4752-b666-cd84a4ce4b0d 2025-10-23 21:00:27,795 - DEBUG - Response Code: 404 2025-10-23 21:00:27,795 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-10-23 21:00:27,802 - DEBUG - Requesting: http://10.0.0.137:8082/domain/7ffd6b2d-9b54-42f7-b041-87f6082c9262 2025-10-23 21:00:27,857 - DEBUG - Requesting: http://10.0.0.137:8082/project/13146952-691d-4b85-81ca-e4ca695e59eb 2025-10-23 21:00:27,929 - INFO - Validated that VN ctest-vn-18771928 is not found in API Server 2025-10-23 21:00:27,942 - DEBUG - VN ctest-vn-18771928 is not present in Agent 10.0.0.137 2025-10-23 21:00:27,942 - INFO - Validated that VN ctest-vn-18771928 is not in any agent 2025-10-23 21:00:27,957 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-18771928 info 2025-10-23 21:00:28,226 - DEBUG - No XMPP flaps were noticed during the test
2025-10-23 21:00:28,226 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-10-23 21:00:28,226 - INFO - -------------------------------------------------------------------------------- 2025-10-23 21:00:28,943 - INFO - Deleted project: ctest-TestBasicPolicy-71366668, ID : 13146952-691d-4b85-81ca-e4ca695e59eb