2025-11-10 01:42:06,173 - INFO - Reading existing Domain with UUID ac1d6412-51c4-40dc-abeb-d81d08131878 2025-11-10 01:42:06,184 - INFO - Using existing domain ['admin_domain'](ac1d6412-51c4-40dc-abeb-d81d08131878) 2025-11-10 01:42:06,365 - INFO - Project ctest-TestBasicPolicy-02621690 not found, creating it 2025-11-10 01:42:06,852 - INFO - Created Project:ctest-TestBasicPolicy-02621690, ID : 2c0e9747-88c0-444f-8001-32f3ed2e8b3b 2025-11-10 01:42:08,447 - INFO - ================================================================================ 2025-11-10 01:42:08,447 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-11-10 01:42:08,447 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2025-11-10 01:42:08,826 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.0.0.129': '0'}} with 2025-11-10 01:42:08,826 - INFO - Initial checks done. Running the testcase now 2025-11-10 01:42:08,826 - INFO - 2025-11-10 01:42:09,564 - DEBUG - Response for create_network : {'network': {'id': '6c5e7406-6dc5-477f-b2f9-9ba64987db45', 'name': 'ctest-vn-73871752', 'tenant_id': '2c0e974788c0444f800132f3ed2e8b3b', 'project_id': '2c0e974788c0444f800132f3ed2e8b3b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-02621690', 'ctest-vn-73871752'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-11-10 01:42:09,833 - DEBUG - Response for create_subnet : {'subnet': {'id': '7d9da15e-6e7b-42c4-84a0-9e19d638f099', 'name': '', 'tenant_id': '2c0e974788c0444f800132f3ed2e8b3b', 'network_id': '6c5e7406-6dc5-477f-b2f9-9ba64987db45', 'ip_version': 4, 'cidr': '105.134.17.128/26', 'allocation_pools': [{'start': '105.134.17.130', 'end': '105.134.17.190'}], 'gateway_ip': '105.134.17.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-11-10T01:42:09.731313', 'updated_at': '2025-11-10T01:42:09.731313', 'dns_server_address': '105.134.17.130', 'tags': [], 'project_id': '2c0e974788c0444f800132f3ed2e8b3b'}} 2025-11-10 01:42:09,895 - INFO - Created VN ctest-vn-73871752 2025-11-10 01:42:09,949 - DEBUG - VN ctest-vn-73871752 UUID is 6c5e7406-6dc5-477f-b2f9-9ba64987db45 2025-11-10 01:42:10,405 - DEBUG - Response for create_network : {'network': {'id': 'a61b295d-29ca-429c-af75-5d8608d7c084', 'name': 'ctest-vn-88015081', 'tenant_id': '2c0e974788c0444f800132f3ed2e8b3b', 'project_id': '2c0e974788c0444f800132f3ed2e8b3b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-02621690', 'ctest-vn-88015081'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-11-10 01:42:10,617 - DEBUG - Response for create_subnet : {'subnet': {'id': '251965db-9794-4735-88ea-80ad8aa4bae4', 'name': '', 'tenant_id': '2c0e974788c0444f800132f3ed2e8b3b', 'network_id': 'a61b295d-29ca-429c-af75-5d8608d7c084', 'ip_version': 4, 'cidr': '78.50.88.64/26', 'allocation_pools': [{'start': '78.50.88.66', 'end': '78.50.88.126'}], 'gateway_ip': '78.50.88.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-11-10T01:42:10.526958', 'updated_at': '2025-11-10T01:42:10.526958', 'dns_server_address': '78.50.88.66', 'tags': [], 'project_id': '2c0e974788c0444f800132f3ed2e8b3b'}} 2025-11-10 01:42:10,679 - INFO - Created VN ctest-vn-88015081 2025-11-10 01:42:10,733 - DEBUG - VN ctest-vn-88015081 UUID is a61b295d-29ca-429c-af75-5d8608d7c084 2025-11-10 01:42:10,928 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-02621690:ctest-vn-73871752, 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-02621690:ctest-vn-88015081, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2025-11-10 01:42:11,309 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6c5e7406-6dc5-477f-b2f9-9ba64987db45', 'name': 'ctest-vn-73871752', 'tenant_id': '2c0e974788c0444f800132f3ed2e8b3b', 'project_id': '2c0e974788c0444f800132f3ed2e8b3b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7d9da15e-6e7b-42c4-84a0-9e19d638f099'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-02621690', 'ctest-vn-73871752'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-02621690', 'ctest-policy-allow-all-24104260']], 'subnet_ipam': [{'subnet_cidr': '105.134.17.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-11-10T01:42:09.483626', 'updated_at': '2025-11-10T01:42:09.742725'}} 2025-11-10 01:42:11,636 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a61b295d-29ca-429c-af75-5d8608d7c084', 'name': 'ctest-vn-88015081', 'tenant_id': '2c0e974788c0444f800132f3ed2e8b3b', 'project_id': '2c0e974788c0444f800132f3ed2e8b3b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['251965db-9794-4735-88ea-80ad8aa4bae4'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-02621690', 'ctest-vn-88015081'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-02621690', 'ctest-policy-allow-all-24104260']], 'subnet_ipam': [{'subnet_cidr': '78.50.88.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-11-10T01:42:10.330346', 'updated_at': '2025-11-10T01:42:10.537657'}} 2025-11-10 01:42:11,813 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2025-11-10 01:42:12,148 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2025-11-10 01:42:12,226 - DEBUG - Requesting: https://10.0.0.129:8082/domain/ac1d6412-51c4-40dc-abeb-d81d08131878 2025-11-10 01:42:12,282 - DEBUG - Requesting: https://10.0.0.129:8082/project/2c0e9747-88c0-444f-8001-32f3ed2e8b3b 2025-11-10 01:42:12,366 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/6c5e7406-6dc5-477f-b2f9-9ba64987db45 2025-11-10 01:42:12,423 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/6c5e7406-6dc5-477f-b2f9-9ba64987db45 2025-11-10 01:42:12,480 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/731269a1-3957-418c-9734-a39da24b8175 2025-11-10 01:42:12,534 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/731269a1-3957-418c-9734-a39da24b8175 2025-11-10 01:42:12,590 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/4b0372f4-3b75-4139-a5e8-aa98d1dd3bbd 2025-11-10 01:42:12,642 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-10 01:42:12,642 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/6c5e7406-6dc5-477f-b2f9-9ba64987db45 2025-11-10 01:42:12,700 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/731269a1-3957-418c-9734-a39da24b8175 2025-11-10 01:42:12,762 - INFO - Verified VN network id 11 for VN 6c5e7406-6dc5-477f-b2f9-9ba64987db45 2025-11-10 01:42:12,763 - INFO - Verifications in API Server for VN ctest-vn-73871752 passed 2025-11-10 01:42:12,763 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/6c5e7406-6dc5-477f-b2f9-9ba64987db45 2025-11-10 01:42:12,824 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/731269a1-3957-418c-9734-a39da24b8175 2025-11-10 01:42:12,879 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/731269a1-3957-418c-9734-a39da24b8175 2025-11-10 01:42:12,930 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/4b0372f4-3b75-4139-a5e8-aa98d1dd3bbd 2025-11-10 01:42:13,030 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-02621690:ctest-vn-73871752', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02621690', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7808806374867289983', 'uuid-lslong': '12896510146452642629'}, 'enable': 'true', 'created': '2025-11-10T01:42:09', 'last-modified': '2025-11-10T01:42:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.750449'} 2025-11-10 01:42:13,079 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-10 01:42:13,079 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73871752 passed 2025-11-10 01:42:13,079 - DEBUG - ====Verifying policy data for ctest-vn-73871752 in API_Server ====== 2025-11-10 01:42:13,079 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2025-11-10 01:42:13,133 - DEBUG - Requesting: https://10.0.0.129:8082/domain/ac1d6412-51c4-40dc-abeb-d81d08131878 2025-11-10 01:42:13,190 - DEBUG - Requesting: https://10.0.0.129:8082/project/2c0e9747-88c0-444f-8001-32f3ed2e8b3b 2025-11-10 01:42:13,262 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/6c5e7406-6dc5-477f-b2f9-9ba64987db45 2025-11-10 01:42:13,315 - DEBUG - ==>Verifying data for policy with id: 63958d60-c7eb-44f2-b582-dadc6213a5b1, fqn: ['admin_domain', 'ctest-TestBasicPolicy-02621690', 'ctest-policy-allow-all-24104260'] 2025-11-10 01:42:13,315 - INFO - VN ctest-vn-73871752 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-10 01:42:13,315 - DEBUG - Verifying the vn in opserver 2025-11-10 01:42:13,315 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-02621690:ctest-vn-73871752 virtual network link through opserver 10.0.0.129 2025-11-10 01:42:13,315 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks 2025-11-10 01:42:13,654 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks 2025-11-10 01:42:13,757 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-02621690:ctest-vn-73871752', 'href': 'https://10.0.0.129:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-02621690:ctest-vn-73871752?flat'} 2025-11-10 01:42:13,757 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-02621690:ctest-vn-73871752 is found in opserver 2025-11-10 01:42:13,853 - DEBUG - Do not have enough data to verify VN in agent 2025-11-10 01:42:13,901 - DEBUG - VRF ids for VN ctest-vn-73871752: {} 2025-11-10 01:42:13,901 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2025-11-10 01:42:13,954 - DEBUG - Requesting: https://10.0.0.129:8082/domain/ac1d6412-51c4-40dc-abeb-d81d08131878 2025-11-10 01:42:14,010 - DEBUG - Requesting: https://10.0.0.129:8082/project/2c0e9747-88c0-444f-8001-32f3ed2e8b3b 2025-11-10 01:42:14,086 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/a61b295d-29ca-429c-af75-5d8608d7c084 2025-11-10 01:42:14,143 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/a61b295d-29ca-429c-af75-5d8608d7c084 2025-11-10 01:42:14,194 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/2116afc7-de65-4377-b610-e0179748b70f 2025-11-10 01:42:14,250 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/2116afc7-de65-4377-b610-e0179748b70f 2025-11-10 01:42:14,302 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/9b1d30f6-5dd4-4632-b00b-189d600978b7 2025-11-10 01:42:14,358 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-10 01:42:14,358 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/a61b295d-29ca-429c-af75-5d8608d7c084 2025-11-10 01:42:14,410 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/2116afc7-de65-4377-b610-e0179748b70f 2025-11-10 01:42:14,473 - INFO - Verified VN network id 12 for VN a61b295d-29ca-429c-af75-5d8608d7c084 2025-11-10 01:42:14,473 - INFO - Verifications in API Server for VN ctest-vn-88015081 passed 2025-11-10 01:42:14,473 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/a61b295d-29ca-429c-af75-5d8608d7c084 2025-11-10 01:42:14,526 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/2116afc7-de65-4377-b610-e0179748b70f 2025-11-10 01:42:14,578 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/2116afc7-de65-4377-b610-e0179748b70f 2025-11-10 01:42:14,634 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/9b1d30f6-5dd4-4632-b00b-189d600978b7 2025-11-10 01:42:14,734 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-02621690:ctest-vn-88015081', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02621690', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11969205914777043612', 'uuid-lslong': '12643114359167893636'}, 'enable': 'true', 'created': '2025-11-10T01:42:10', 'last-modified': '2025-11-10T01:42:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.116898'} 2025-11-10 01:42:14,791 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-10 01:42:14,791 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88015081 passed 2025-11-10 01:42:14,791 - DEBUG - ====Verifying policy data for ctest-vn-88015081 in API_Server ====== 2025-11-10 01:42:14,791 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2025-11-10 01:42:14,841 - DEBUG - Requesting: https://10.0.0.129:8082/domain/ac1d6412-51c4-40dc-abeb-d81d08131878 2025-11-10 01:42:14,898 - DEBUG - Requesting: https://10.0.0.129:8082/project/2c0e9747-88c0-444f-8001-32f3ed2e8b3b 2025-11-10 01:42:14,971 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/a61b295d-29ca-429c-af75-5d8608d7c084 2025-11-10 01:42:15,043 - DEBUG - ==>Verifying data for policy with id: 63958d60-c7eb-44f2-b582-dadc6213a5b1, fqn: ['admin_domain', 'ctest-TestBasicPolicy-02621690', 'ctest-policy-allow-all-24104260'] 2025-11-10 01:42:15,043 - INFO - VN ctest-vn-88015081 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-10 01:42:15,043 - DEBUG - Verifying the vn in opserver 2025-11-10 01:42:15,043 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-02621690:ctest-vn-88015081 virtual network link through opserver 10.0.0.129 2025-11-10 01:42:15,043 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks 2025-11-10 01:42:15,098 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-02621690:ctest-vn-88015081', 'href': 'https://10.0.0.129:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-02621690:ctest-vn-88015081?flat'} 2025-11-10 01:42:15,098 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-02621690:ctest-vn-88015081 is found in opserver 2025-11-10 01:42:15,193 - DEBUG - Do not have enough data to verify VN in agent 2025-11-10 01:42:15,250 - DEBUG - VRF ids for VN ctest-vn-88015081: {} 2025-11-10 01:42:15,318 - DEBUG - Services list from nova: [, , ] 2025-11-10 01:42:16,406 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-613-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-613-1) 2025-11-10 01:42:17,663 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-613-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-613-1) 2025-11-10 01:42:17,663 - INFO - Waiting for VM ctest-TestBasicPolicy-02621690-60710264 to be up.. 2025-11-10 01:42:17,801 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-10 01:42:22,922 - DEBUG - VM is in ACTIVE state now 2025-11-10 01:42:22,922 - INFO - VM name : ctest-TestBasicPolicy-02621690-60710264 2025-11-10 01:42:23,159 - DEBUG - VM ctest-TestBasicPolicy-02621690-60710264 ID is eea4043c-10ec-47d2-8c44-8474606e6230 2025-11-10 01:42:23,191 - DEBUG - VM ctest-TestBasicPolicy-02621690-60710264 launched on Node cn-jenkins-deploy-platform-juju-os-613-1 2025-11-10 01:42:23,313 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-machine/eea4043c-10ec-47d2-8c44-8474606e6230 2025-11-10 01:42:23,366 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-machine-interface/331aa3a3-caeb-455c-b452-a7db2cf4c4c0 2025-11-10 01:42:26,821 - 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 1025ms') 2025-11-10 01:42:26,821 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-02621690-60710264 failed! 2025-11-10 01:42:26,885 - DEBUG - Gateway for vn admin_domain:ctest-TestBasicPolicy-02621690:ctest-vn-73871752 is 105.134.17.129 and allocation pool is NOT set 2025-11-10 01:42:28,968 - 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.88 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.33 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 = 1.329/3.102/4.876/1.773 ms') 2025-11-10 01:42:28,968 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-02621690-60710264 passed 2025-11-10 01:42:29,121 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-10 01:42:29,121 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-02621690-60710264, IP 105.134.17.131, Port 22 2025-11-10 01:42:29,207 - 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-11-10 01:42:29,340 - DEBUG - VM ctest-TestBasicPolicy-02621690-60710264 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-10 01:42:34,340 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-10 01:42:34,341 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-02621690-60710264, IP 105.134.17.131, Port 22 2025-11-10 01:42:34,548 - DEBUG - VM ctest-TestBasicPolicy-02621690-60710264 is ready for SSH connections 2025-11-10 01:42:34,548 - INFO - Waiting for VM ctest-TestBasicPolicy-02621690-19661815 to be up.. 2025-11-10 01:42:34,670 - DEBUG - VM is in ACTIVE state now 2025-11-10 01:42:34,671 - INFO - VM name : ctest-TestBasicPolicy-02621690-19661815 2025-11-10 01:42:34,789 - DEBUG - VM ctest-TestBasicPolicy-02621690-19661815 ID is 9e60fcf8-2235-4729-92a2-75400bd60b8e 2025-11-10 01:42:34,789 - DEBUG - VM ctest-TestBasicPolicy-02621690-19661815 launched on Node cn-jenkins-deploy-platform-juju-os-613-1 2025-11-10 01:42:34,910 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-machine/9e60fcf8-2235-4729-92a2-75400bd60b8e 2025-11-10 01:42:34,962 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-machine-interface/602e89a4-620b-4d92-aad4-5ca0491d07ff 2025-11-10 01:42:36,396 - 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.34 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.377 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.377/1.856/3.335/1.479 ms') 2025-11-10 01:42:36,396 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-02621690-19661815 passed 2025-11-10 01:42:36,549 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-10 01:42:36,549 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-02621690-19661815, IP 78.50.88.67, Port 22 2025-11-10 01:42:36,755 - DEBUG - VM ctest-TestBasicPolicy-02621690-19661815 is ready for SSH connections 2025-11-10 01:42:36,755 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-10 01:42:36,755 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 78.50.88.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.129, gateway password: c0ntrail123 2025-11-10 01:42:36,755 - DEBUG - ping -s 56 -c 3 -W 1 78.50.88.67 2025-11-10 01:42:40,747 - DEBUG - PING 78.50.88.67 (78.50.88.67): 56 data bytes 64 bytes from 78.50.88.67: seq=0 ttl=63 time=3.568 ms 64 bytes from 78.50.88.67: seq=1 ttl=63 time=0.780 ms 64 bytes from 78.50.88.67: seq=2 ttl=63 time=0.900 ms --- 78.50.88.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.780/1.749/3.568 ms 2025-11-10 01:42:40,748 - INFO - Ping to IP 78.50.88.67 from VM ctest-TestBasicPolicy-02621690-60710264 passed 2025-11-10 01:42:40,929 - DEBUG - Policy Update Response {"network-policy": {"uuid": "63958d60-c7eb-44f2-b582-dadc6213a5b1", "href": "https://10.0.0.129:8082/network-policy/63958d60-c7eb-44f2-b582-dadc6213a5b1"}} 2025-11-10 01:42:40,929 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-10 01:42:40,929 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 78.50.88.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.129, gateway password: c0ntrail123 2025-11-10 01:42:40,929 - DEBUG - ping -s 56 -c 3 -W 1 78.50.88.67 2025-11-10 01:42:44,131 - DEBUG - PING 78.50.88.67 (78.50.88.67): 56 data bytes 64 bytes from 78.50.88.67: seq=0 ttl=63 time=1.594 ms --- 78.50.88.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.594/1.594/1.594 ms 2025-11-10 01:42:44,131 - WARNING - Ping to IP 78.50.88.67 from VM ctest-TestBasicPolicy-02621690-60710264 failed 2025-11-10 01:42:44,131 - INFO - Deleting VM ctest-TestBasicPolicy-02621690-19661815 2025-11-10 01:42:44,245 - INFO - Deleting VM ctest-TestBasicPolicy-02621690-60710264 2025-11-10 01:42:44,908 - INFO - Deleted policy ctest-policy-allow-all-24104260 2025-11-10 01:42:44,908 - INFO - Deleting VN ctest-vn-88015081 2025-11-10 01:42:45,040 - DEBUG - VN a61b295d-29ca-429c-af75-5d8608d7c084 still in use: Unable to complete operation on network a61b295d-29ca-429c-af75-5d8608d7c084. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f0d36711-3802-40d7-bc54-b9ea7fd41790'] 2025-11-10 01:42:45,040 - WARNING - Deleting VN ctest-vn-88015081 failed..Will retry 2025-11-10 01:42:47,187 - DEBUG - Response for deleting network () 2025-11-10 01:42:47,187 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/2116afc7-de65-4377-b610-e0179748b70f 2025-11-10 01:42:47,241 - DEBUG - Response Code: 404 2025-11-10 01:42:47,241 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2025-11-10 01:42:47,293 - DEBUG - Requesting: https://10.0.0.129:8082/domain/ac1d6412-51c4-40dc-abeb-d81d08131878 2025-11-10 01:42:47,350 - DEBUG - Requesting: https://10.0.0.129:8082/project/2c0e9747-88c0-444f-8001-32f3ed2e8b3b 2025-11-10 01:42:47,422 - INFO - Validated that VN ctest-vn-88015081 is not found in API Server 2025-11-10 01:42:47,521 - DEBUG - VN ctest-vn-88015081 is not present in Agent 10.0.0.129 2025-11-10 01:42:47,522 - INFO - Validated that VN ctest-vn-88015081 is not in any agent 2025-11-10 01:42:47,666 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-88015081 info 2025-11-10 01:42:47,666 - INFO - Deleting VN ctest-vn-73871752 2025-11-10 01:42:47,816 - DEBUG - Response for deleting network () 2025-11-10 01:42:47,817 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/731269a1-3957-418c-9734-a39da24b8175 2025-11-10 01:42:47,869 - DEBUG - Response Code: 404 2025-11-10 01:42:47,869 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2025-11-10 01:42:47,921 - DEBUG - Requesting: https://10.0.0.129:8082/domain/ac1d6412-51c4-40dc-abeb-d81d08131878 2025-11-10 01:42:47,978 - DEBUG - Requesting: https://10.0.0.129:8082/project/2c0e9747-88c0-444f-8001-32f3ed2e8b3b 2025-11-10 01:42:48,050 - INFO - Validated that VN ctest-vn-73871752 is not found in API Server 2025-11-10 01:42:48,145 - DEBUG - VN ctest-vn-73871752 is not present in Agent 10.0.0.129 2025-11-10 01:42:48,145 - INFO - Validated that VN ctest-vn-73871752 is not in any agent 2025-11-10 01:42:48,290 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-73871752 info 2025-11-10 01:42:48,658 - DEBUG - No XMPP flaps were noticed during the test
2025-11-10 01:42:48,658 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:40]
2025-11-10 01:42:48,658 - INFO - -------------------------------------------------------------------------------- 2025-11-10 01:42:49,337 - INFO - Deleted project: ctest-TestBasicPolicy-02621690, ID : 2c0e9747-88c0-444f-8001-32f3ed2e8b3b