2025-10-09 12:08:09,908 - INFO - Domain Default found not creating 2025-10-09 12:08:10,112 - INFO - Project ctest-TestBasicPolicy-47056204 not found, creating it 2025-10-09 12:08:10,663 - INFO - Created Project:ctest-TestBasicPolicy-47056204, ID : cfe593c7-6d41-4d4c-b68d-ece6b2e65fcb 2025-10-09 12:08:12,438 - INFO - ================================================================================ 2025-10-09 12:08:12,438 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-09 12:08:12,438 - 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-09 12:08:12,717 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-10-09 12:08:12,717 - INFO - Initial checks done. Running the testcase now 2025-10-09 12:08:12,717 - INFO - 2025-10-09 12:08:13,361 - DEBUG - Response for create_network : {'network': {'id': 'd8d20754-ff46-4b89-90e6-f1fef1a7f393', 'name': 'ctest-vn-06871587', 'tenant_id': 'cfe593c76d414d4cb68dece6b2e65fcb', 'project_id': 'cfe593c76d414d4cb68dece6b2e65fcb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47056204', 'ctest-vn-06871587'], 'port_security_enabled': True, 'description': ''}} 2025-10-09 12:08:13,584 - DEBUG - Response for create_subnet : {'subnet': {'id': '6e7dbc1e-17de-482a-9f7d-973b2c6873e6', 'name': '', 'tenant_id': 'cfe593c76d414d4cb68dece6b2e65fcb', 'network_id': 'd8d20754-ff46-4b89-90e6-f1fef1a7f393', 'ip_version': 4, 'cidr': '114.59.113.128/26', 'allocation_pools': [{'start': '114.59.113.130', 'end': '114.59.113.190'}], 'gateway_ip': '114.59.113.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.59.113.130', 'tags': [], 'project_id': 'cfe593c76d414d4cb68dece6b2e65fcb'}} 2025-10-09 12:08:13,614 - INFO - Created VN ctest-vn-06871587 2025-10-09 12:08:13,671 - DEBUG - VN ctest-vn-06871587 UUID is d8d20754-ff46-4b89-90e6-f1fef1a7f393 2025-10-09 12:08:14,025 - DEBUG - Response for create_network : {'network': {'id': '91b20888-3b0b-47c1-84b9-95157990a45f', 'name': 'ctest-vn-70126065', 'tenant_id': 'cfe593c76d414d4cb68dece6b2e65fcb', 'project_id': 'cfe593c76d414d4cb68dece6b2e65fcb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47056204', 'ctest-vn-70126065'], 'port_security_enabled': True, 'description': ''}} 2025-10-09 12:08:14,213 - DEBUG - Response for create_subnet : {'subnet': {'id': '9d8d31f3-027d-4a5a-a0c3-b07ce8a17eaf', 'name': '', 'tenant_id': 'cfe593c76d414d4cb68dece6b2e65fcb', 'network_id': '91b20888-3b0b-47c1-84b9-95157990a45f', 'ip_version': 4, 'cidr': '33.163.179.64/26', 'allocation_pools': [{'start': '33.163.179.66', 'end': '33.163.179.126'}], 'gateway_ip': '33.163.179.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33.163.179.66', 'tags': [], 'project_id': 'cfe593c76d414d4cb68dece6b2e65fcb'}} 2025-10-09 12:08:14,234 - INFO - Created VN ctest-vn-70126065 2025-10-09 12:08:14,291 - DEBUG - VN ctest-vn-70126065 UUID is 91b20888-3b0b-47c1-84b9-95157990a45f 2025-10-09 12:08:14,429 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-47056204:ctest-vn-06871587, 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-47056204:ctest-vn-70126065, 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-09 12:08:14,764 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd8d20754-ff46-4b89-90e6-f1fef1a7f393', 'name': 'ctest-vn-06871587', 'tenant_id': 'cfe593c76d414d4cb68dece6b2e65fcb', 'project_id': 'cfe593c76d414d4cb68dece6b2e65fcb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6e7dbc1e-17de-482a-9f7d-973b2c6873e6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47056204', 'ctest-vn-06871587'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47056204', 'ctest-policy-allow-all-13684671']], 'subnet_ipam': [{'subnet_cidr': '114.59.113.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-09 12:08:15,041 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '91b20888-3b0b-47c1-84b9-95157990a45f', 'name': 'ctest-vn-70126065', 'tenant_id': 'cfe593c76d414d4cb68dece6b2e65fcb', 'project_id': 'cfe593c76d414d4cb68dece6b2e65fcb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9d8d31f3-027d-4a5a-a0c3-b07ce8a17eaf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47056204', 'ctest-vn-70126065'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47056204', 'ctest-policy-allow-all-13684671']], 'subnet_ipam': [{'subnet_cidr': '33.163.179.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-09 12:08:15,227 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-09 12:08:15,558 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-09 12:08:15,613 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9981e1e7-d038-4ba3-823c-88411c30bfd5 2025-10-09 12:08:15,629 - DEBUG - Requesting: http://10.0.0.50:8082/project/cfe593c7-6d41-4d4c-b68d-ece6b2e65fcb 2025-10-09 12:08:15,712 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d8d20754-ff46-4b89-90e6-f1fef1a7f393 2025-10-09 12:08:15,727 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d8d20754-ff46-4b89-90e6-f1fef1a7f393 2025-10-09 12:08:15,741 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6d93f979-50dd-46f5-9ab4-3d4de1ea5e3a 2025-10-09 12:08:15,750 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6d93f979-50dd-46f5-9ab4-3d4de1ea5e3a 2025-10-09 12:08:15,759 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/44bf044e-c032-4125-aab7-dcb21f7fb06f 2025-10-09 12:08:15,766 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 12:08:15,766 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d8d20754-ff46-4b89-90e6-f1fef1a7f393 2025-10-09 12:08:15,778 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6d93f979-50dd-46f5-9ab4-3d4de1ea5e3a 2025-10-09 12:08:15,797 - INFO - Verified VN network id 11 for VN d8d20754-ff46-4b89-90e6-f1fef1a7f393 2025-10-09 12:08:15,797 - INFO - Verifications in API Server for VN ctest-vn-06871587 passed 2025-10-09 12:08:15,797 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d8d20754-ff46-4b89-90e6-f1fef1a7f393 2025-10-09 12:08:15,808 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6d93f979-50dd-46f5-9ab4-3d4de1ea5e3a 2025-10-09 12:08:15,816 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6d93f979-50dd-46f5-9ab4-3d4de1ea5e3a 2025-10-09 12:08:15,824 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/44bf044e-c032-4125-aab7-dcb21f7fb06f 2025-10-09 12:08:15,840 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47056204:ctest-vn-06871587', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47056204', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15623558118943116169', 'uuid-lslong': '10441298863383376787'}, 'enable': 'true', 'created': '2025-10-09T12:08:13', 'last-modified': '2025-10-09T12:08:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.110965'} 2025-10-09 12:08:15,849 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 12:08:15,849 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06871587 passed 2025-10-09 12:08:15,849 - DEBUG - ====Verifying policy data for ctest-vn-06871587 in API_Server ====== 2025-10-09 12:08:15,849 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-09 12:08:15,856 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9981e1e7-d038-4ba3-823c-88411c30bfd5 2025-10-09 12:08:15,870 - DEBUG - Requesting: http://10.0.0.50:8082/project/cfe593c7-6d41-4d4c-b68d-ece6b2e65fcb 2025-10-09 12:08:15,950 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d8d20754-ff46-4b89-90e6-f1fef1a7f393 2025-10-09 12:08:15,966 - DEBUG - ==>Verifying data for policy with id: bb458a46-37d3-483c-a59d-7064ea4136ec, fqn: ['default-domain', 'ctest-TestBasicPolicy-47056204', 'ctest-policy-allow-all-13684671'] 2025-10-09 12:08:15,966 - INFO - VN ctest-vn-06871587 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-09 12:08:15,966 - DEBUG - Verifying the vn in opserver 2025-10-09 12:08:15,967 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47056204:ctest-vn-06871587 virtual network link through opserver 10.0.0.50 2025-10-09 12:08:15,967 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-10-09 12:08:16,299 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-10-09 12:08:16,374 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47056204:ctest-vn-06871587', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47056204:ctest-vn-06871587?flat'} 2025-10-09 12:08:16,374 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47056204:ctest-vn-06871587 is found in opserver 2025-10-09 12:08:16,387 - DEBUG - Do not have enough data to verify VN in agent 2025-10-09 12:08:16,394 - DEBUG - VRF ids for VN ctest-vn-06871587: {} 2025-10-09 12:08:16,395 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-09 12:08:16,402 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9981e1e7-d038-4ba3-823c-88411c30bfd5 2025-10-09 12:08:16,416 - DEBUG - Requesting: http://10.0.0.50:8082/project/cfe593c7-6d41-4d4c-b68d-ece6b2e65fcb 2025-10-09 12:08:16,495 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/91b20888-3b0b-47c1-84b9-95157990a45f 2025-10-09 12:08:16,508 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/91b20888-3b0b-47c1-84b9-95157990a45f 2025-10-09 12:08:16,519 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7599bc3d-04ce-4e7d-9b75-589644d0b058 2025-10-09 12:08:16,528 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7599bc3d-04ce-4e7d-9b75-589644d0b058 2025-10-09 12:08:16,537 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/70c76d2d-419a-41d0-a963-d1b2bf931cc0 2025-10-09 12:08:16,544 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-09 12:08:16,544 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/91b20888-3b0b-47c1-84b9-95157990a45f 2025-10-09 12:08:16,555 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7599bc3d-04ce-4e7d-9b75-589644d0b058 2025-10-09 12:08:16,573 - INFO - Verified VN network id 12 for VN 91b20888-3b0b-47c1-84b9-95157990a45f 2025-10-09 12:08:16,573 - INFO - Verifications in API Server for VN ctest-vn-70126065 passed 2025-10-09 12:08:16,573 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/91b20888-3b0b-47c1-84b9-95157990a45f 2025-10-09 12:08:16,585 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7599bc3d-04ce-4e7d-9b75-589644d0b058 2025-10-09 12:08:16,596 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7599bc3d-04ce-4e7d-9b75-589644d0b058 2025-10-09 12:08:16,604 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/70c76d2d-419a-41d0-a963-d1b2bf931cc0 2025-10-09 12:08:16,619 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47056204:ctest-vn-70126065', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47056204', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10498463062553216961', 'uuid-lslong': '9563839203164333151'}, 'enable': 'true', 'created': '2025-10-09T12:08:13', 'last-modified': '2025-10-09T12:08:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.617666'} 2025-10-09 12:08:16,628 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-09 12:08:16,628 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70126065 passed 2025-10-09 12:08:16,628 - DEBUG - ====Verifying policy data for ctest-vn-70126065 in API_Server ====== 2025-10-09 12:08:16,628 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-09 12:08:16,635 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9981e1e7-d038-4ba3-823c-88411c30bfd5 2025-10-09 12:08:16,649 - DEBUG - Requesting: http://10.0.0.50:8082/project/cfe593c7-6d41-4d4c-b68d-ece6b2e65fcb 2025-10-09 12:08:16,728 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/91b20888-3b0b-47c1-84b9-95157990a45f 2025-10-09 12:08:16,740 - DEBUG - ==>Verifying data for policy with id: bb458a46-37d3-483c-a59d-7064ea4136ec, fqn: ['default-domain', 'ctest-TestBasicPolicy-47056204', 'ctest-policy-allow-all-13684671'] 2025-10-09 12:08:16,740 - INFO - VN ctest-vn-70126065 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-09 12:08:16,741 - DEBUG - Verifying the vn in opserver 2025-10-09 12:08:16,741 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47056204:ctest-vn-70126065 virtual network link through opserver 10.0.0.50 2025-10-09 12:08:16,741 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-10-09 12:08:16,753 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47056204:ctest-vn-70126065', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47056204:ctest-vn-70126065?flat'} 2025-10-09 12:08:16,753 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47056204:ctest-vn-70126065 is found in opserver 2025-10-09 12:08:16,765 - DEBUG - Do not have enough data to verify VN in agent 2025-10-09 12:08:16,772 - DEBUG - VRF ids for VN ctest-vn-70126065: {} 2025-10-09 12:08:16,848 - DEBUG - Services list from nova: [, , ] 2025-10-09 12:08:17,990 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4259-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4259-1) 2025-10-09 12:08:19,347 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4259-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4259-1) 2025-10-09 12:08:19,348 - INFO - Waiting for VM ctest-TestBasicPolicy-47056204-07920630 to be up.. 2025-10-09 12:08:19,473 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-09 12:08:24,567 - DEBUG - VM is in ACTIVE state now 2025-10-09 12:08:24,567 - INFO - VM name : ctest-TestBasicPolicy-47056204-07920630 2025-10-09 12:08:24,663 - DEBUG - VM ctest-TestBasicPolicy-47056204-07920630 ID is d93ee100-b8c0-4f50-9107-99ae18526624 2025-10-09 12:08:24,684 - DEBUG - VM ctest-TestBasicPolicy-47056204-07920630 launched on Node cn-jenkins-deploy-platform-ansible-os-4259-1 2025-10-09 12:08:24,772 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/d93ee100-b8c0-4f50-9107-99ae18526624 2025-10-09 12:08:24,785 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/b701d7d4-5cf8-480f-88e0-dd406ed8cdf5 2025-10-09 12:08:28,050 - 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 1018ms') 2025-10-09 12:08:28,051 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-47056204-07920630 failed! 2025-10-09 12:08:28,111 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-47056204:ctest-vn-06871587 is 114.59.113.129 and allocation pool is NOT set 2025-10-09 12:08:30,174 - 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=14.7 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.77 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.771/8.719/14.667/5.948 ms') 2025-10-09 12:08:30,174 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-47056204-07920630 passed 2025-10-09 12:08:30,323 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 12:08:30,323 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-47056204-07920630, IP 114.59.113.131, Port 22 2025-10-09 12:08:30,380 - 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-10-09 12:08:30,477 - DEBUG - VM ctest-TestBasicPolicy-47056204-07920630 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-09 12:08:35,478 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 12:08:35,479 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-47056204-07920630, IP 114.59.113.131, Port 22 2025-10-09 12:08:35,636 - DEBUG - VM ctest-TestBasicPolicy-47056204-07920630 is ready for SSH connections 2025-10-09 12:08:35,636 - INFO - Waiting for VM ctest-TestBasicPolicy-47056204-91434701 to be up.. 2025-10-09 12:08:35,718 - DEBUG - VM is in ACTIVE state now 2025-10-09 12:08:35,719 - INFO - VM name : ctest-TestBasicPolicy-47056204-91434701 2025-10-09 12:08:35,796 - DEBUG - VM ctest-TestBasicPolicy-47056204-91434701 ID is 13de232d-4e13-4e0d-af80-490020fc8469 2025-10-09 12:08:35,796 - DEBUG - VM ctest-TestBasicPolicy-47056204-91434701 launched on Node cn-jenkins-deploy-platform-ansible-os-4259-1 2025-10-09 12:08:35,872 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/13de232d-4e13-4e0d-af80-490020fc8469 2025-10-09 12:08:35,881 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/a77b1bb0-28b5-432e-9dd4-d9b12864c608 2025-10-09 12:08:37,126 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=3.14 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.498 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.498/1.817/3.137/1.319 ms') 2025-10-09 12:08:37,126 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-47056204-91434701 passed 2025-10-09 12:08:37,283 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 12:08:37,283 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-47056204-91434701, IP 33.163.179.67, Port 22 2025-10-09 12:08:37,447 - DEBUG - VM ctest-TestBasicPolicy-47056204-91434701 is ready for SSH connections 2025-10-09 12:08:37,447 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 12:08:37,447 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 33.163.179.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-10-09 12:08:37,447 - DEBUG - ping -s 56 -c 3 -W 1 33.163.179.67 2025-10-09 12:08:41,567 - DEBUG - PING 33.163.179.67 (33.163.179.67): 56 data bytes 64 bytes from 33.163.179.67: seq=0 ttl=63 time=3.661 ms 64 bytes from 33.163.179.67: seq=1 ttl=63 time=0.846 ms 64 bytes from 33.163.179.67: seq=2 ttl=63 time=0.882 ms --- 33.163.179.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.846/1.796/3.661 ms 2025-10-09 12:08:41,567 - INFO - Ping to IP 33.163.179.67 from VM ctest-TestBasicPolicy-47056204-07920630 passed 2025-10-09 12:08:41,751 - DEBUG - Policy Update Response {"network-policy": {"uuid": "bb458a46-37d3-483c-a59d-7064ea4136ec", "href": "http://10.0.0.50:8082/network-policy/bb458a46-37d3-483c-a59d-7064ea4136ec"}} 2025-10-09 12:08:41,751 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 12:08:41,751 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 33.163.179.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-10-09 12:08:41,751 - DEBUG - ping -s 56 -c 3 -W 1 33.163.179.67 2025-10-09 12:08:45,019 - DEBUG - PING 33.163.179.67 (33.163.179.67): 56 data bytes --- 33.163.179.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-10-09 12:08:45,019 - WARNING - Ping to IP 33.163.179.67 from VM ctest-TestBasicPolicy-47056204-07920630 failed 2025-10-09 12:08:45,019 - INFO - Deleting VM ctest-TestBasicPolicy-47056204-91434701 2025-10-09 12:08:45,116 - INFO - Deleting VM ctest-TestBasicPolicy-47056204-07920630 2025-10-09 12:08:45,577 - INFO - Deleted policy ctest-policy-allow-all-13684671 2025-10-09 12:08:45,577 - INFO - Deleting VN ctest-vn-70126065 2025-10-09 12:08:45,621 - DEBUG - VN 91b20888-3b0b-47c1-84b9-95157990a45f still in use: Unable to complete operation on network 91b20888-3b0b-47c1-84b9-95157990a45f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7b85d025-e4dd-4397-bfe7-e0f2ce1578c9'] 2025-10-09 12:08:45,621 - WARNING - Deleting VN ctest-vn-70126065 failed..Will retry 2025-10-09 12:08:47,751 - DEBUG - Response for deleting network () 2025-10-09 12:08:47,752 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7599bc3d-04ce-4e7d-9b75-589644d0b058 2025-10-09 12:08:47,757 - DEBUG - Response Code: 404 2025-10-09 12:08:47,758 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-09 12:08:47,767 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9981e1e7-d038-4ba3-823c-88411c30bfd5 2025-10-09 12:08:47,827 - DEBUG - Requesting: http://10.0.0.50:8082/project/cfe593c7-6d41-4d4c-b68d-ece6b2e65fcb 2025-10-09 12:08:47,910 - INFO - Validated that VN ctest-vn-70126065 is not found in API Server 2025-10-09 12:08:47,923 - DEBUG - VN ctest-vn-70126065 is not present in Agent 10.0.0.50 2025-10-09 12:08:47,923 - INFO - Validated that VN ctest-vn-70126065 is not in any agent 2025-10-09 12:08:47,940 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-70126065 info 2025-10-09 12:08:47,940 - INFO - Deleting VN ctest-vn-06871587 2025-10-09 12:08:48,063 - DEBUG - Response for deleting network () 2025-10-09 12:08:48,064 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6d93f979-50dd-46f5-9ab4-3d4de1ea5e3a 2025-10-09 12:08:48,071 - DEBUG - Response Code: 404 2025-10-09 12:08:48,072 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-09 12:08:48,079 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9981e1e7-d038-4ba3-823c-88411c30bfd5 2025-10-09 12:08:48,142 - DEBUG - Requesting: http://10.0.0.50:8082/project/cfe593c7-6d41-4d4c-b68d-ece6b2e65fcb 2025-10-09 12:08:48,218 - INFO - Validated that VN ctest-vn-06871587 is not found in API Server 2025-10-09 12:08:48,228 - DEBUG - VN ctest-vn-06871587 is not present in Agent 10.0.0.50 2025-10-09 12:08:48,228 - INFO - Validated that VN ctest-vn-06871587 is not in any agent 2025-10-09 12:08:48,245 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-06871587 info 2025-10-09 12:08:48,515 - DEBUG - No XMPP flaps were noticed during the test 2025-10-09 12:08:48,516 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2025-10-09 12:08:48,516 - INFO - -------------------------------------------------------------------------------- 2025-10-09 12:08:49,253 - INFO - Deleted project: ctest-TestBasicPolicy-47056204, ID : cfe593c7-6d41-4d4c-b68d-ece6b2e65fcb