2025-05-05 01:57:37,627 - INFO - Reading existing Domain with UUID 61d5f14e-0b5a-4169-8eb2-9811a5380ab2 2025-05-05 01:57:37,641 - INFO - Using existing domain ['admin_domain'](61d5f14e-0b5a-4169-8eb2-9811a5380ab2) 2025-05-05 01:57:37,845 - INFO - Project ctest-TestBasicPolicy-68261625 not found, creating it 2025-05-05 01:57:38,363 - INFO - Created Project:ctest-TestBasicPolicy-68261625, ID : a55e0b39-f58b-42a1-b944-4bda624c90ed 2025-05-05 01:57:40,254 - INFO - ================================================================================ 2025-05-05 01:57:40,254 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-05-05 01:57:40,255 - 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-05-05 01:57:40,659 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.0.0.129': '0'}} with 2025-05-05 01:57:40,659 - INFO - Initial checks done. Running the testcase now 2025-05-05 01:57:40,659 - INFO - 2025-05-05 01:57:41,482 - DEBUG - Response for create_network : {'network': {'id': '59c1a811-1859-4c2c-9541-03e0a85a9273', 'name': 'ctest-vn-53645924', 'tenant_id': 'a55e0b39f58b42a1b9444bda624c90ed', 'project_id': 'a55e0b39f58b42a1b9444bda624c90ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-68261625', 'ctest-vn-53645924'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-05-05 01:57:41,750 - DEBUG - Response for create_subnet : {'subnet': {'id': '27954837-2868-4242-a953-3de1337dd43e', 'name': '', 'tenant_id': 'a55e0b39f58b42a1b9444bda624c90ed', 'network_id': '59c1a811-1859-4c2c-9541-03e0a85a9273', 'ip_version': 4, 'cidr': '162.147.36.0/26', 'allocation_pools': [{'start': '162.147.36.2', 'end': '162.147.36.62'}], 'gateway_ip': '162.147.36.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-05-05T01:57:41.643822', 'updated_at': '2025-05-05T01:57:41.643822', 'dns_server_address': '162.147.36.2', 'tags': [], 'project_id': 'a55e0b39f58b42a1b9444bda624c90ed'}} 2025-05-05 01:57:41,815 - INFO - Created VN ctest-vn-53645924 2025-05-05 01:57:41,869 - DEBUG - VN ctest-vn-53645924 UUID is 59c1a811-1859-4c2c-9541-03e0a85a9273 2025-05-05 01:57:42,375 - DEBUG - Response for create_network : {'network': {'id': '7e9430cd-e72f-40cf-a6da-90969f41b53a', 'name': 'ctest-vn-86005345', 'tenant_id': 'a55e0b39f58b42a1b9444bda624c90ed', 'project_id': 'a55e0b39f58b42a1b9444bda624c90ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-68261625', 'ctest-vn-86005345'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-05-05 01:57:42,610 - DEBUG - Response for create_subnet : {'subnet': {'id': '989f49f1-7637-4fe4-8a78-5db11f480eca', 'name': '', 'tenant_id': 'a55e0b39f58b42a1b9444bda624c90ed', 'network_id': '7e9430cd-e72f-40cf-a6da-90969f41b53a', 'ip_version': 4, 'cidr': '135.26.77.192/26', 'allocation_pools': [{'start': '135.26.77.194', 'end': '135.26.77.254'}], 'gateway_ip': '135.26.77.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-05-05T01:57:42.500543', 'updated_at': '2025-05-05T01:57:42.500543', 'dns_server_address': '135.26.77.194', 'tags': [], 'project_id': 'a55e0b39f58b42a1b9444bda624c90ed'}} 2025-05-05 01:57:42,676 - INFO - Created VN ctest-vn-86005345 2025-05-05 01:57:42,733 - DEBUG - VN ctest-vn-86005345 UUID is 7e9430cd-e72f-40cf-a6da-90969f41b53a 2025-05-05 01:57:42,955 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-68261625:ctest-vn-53645924, 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-68261625:ctest-vn-86005345, 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-05-05 01:57:43,377 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '59c1a811-1859-4c2c-9541-03e0a85a9273', 'name': 'ctest-vn-53645924', 'tenant_id': 'a55e0b39f58b42a1b9444bda624c90ed', 'project_id': 'a55e0b39f58b42a1b9444bda624c90ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['27954837-2868-4242-a953-3de1337dd43e'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-68261625', 'ctest-vn-53645924'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-68261625', 'ctest-policy-allow-all-65648854']], 'subnet_ipam': [{'subnet_cidr': '162.147.36.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-05-05T01:57:41.393724', 'updated_at': '2025-05-05T01:57:41.657897'}} 2025-05-05 01:57:43,737 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7e9430cd-e72f-40cf-a6da-90969f41b53a', 'name': 'ctest-vn-86005345', 'tenant_id': 'a55e0b39f58b42a1b9444bda624c90ed', 'project_id': 'a55e0b39f58b42a1b9444bda624c90ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['989f49f1-7637-4fe4-8a78-5db11f480eca'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-68261625', 'ctest-vn-86005345'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-68261625', 'ctest-policy-allow-all-65648854']], 'subnet_ipam': [{'subnet_cidr': '135.26.77.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-05-05T01:57:42.297442', 'updated_at': '2025-05-05T01:57:42.514935'}} 2025-05-05 01:57:43,957 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2025-05-05 01:57:44,340 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2025-05-05 01:57:44,422 - DEBUG - Requesting: https://10.0.0.129:8082/domain/61d5f14e-0b5a-4169-8eb2-9811a5380ab2 2025-05-05 01:57:44,487 - DEBUG - Requesting: https://10.0.0.129:8082/project/a55e0b39-f58b-42a1-b944-4bda624c90ed 2025-05-05 01:57:44,571 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/59c1a811-1859-4c2c-9541-03e0a85a9273 2025-05-05 01:57:44,632 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/59c1a811-1859-4c2c-9541-03e0a85a9273 2025-05-05 01:57:44,688 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/f714436e-d1b4-4d45-94f0-34f4d1b199c3 2025-05-05 01:57:44,743 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/f714436e-d1b4-4d45-94f0-34f4d1b199c3 2025-05-05 01:57:44,799 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/3a800f7e-94b6-43f1-bbe9-629c6a020227 2025-05-05 01:57:44,855 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-05 01:57:44,855 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/59c1a811-1859-4c2c-9541-03e0a85a9273 2025-05-05 01:57:44,912 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/f714436e-d1b4-4d45-94f0-34f4d1b199c3 2025-05-05 01:57:44,976 - INFO - Verified VN network id 7 for VN 59c1a811-1859-4c2c-9541-03e0a85a9273 2025-05-05 01:57:44,976 - INFO - Verifications in API Server for VN ctest-vn-53645924 passed 2025-05-05 01:57:44,976 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/59c1a811-1859-4c2c-9541-03e0a85a9273 2025-05-05 01:57:45,032 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/f714436e-d1b4-4d45-94f0-34f4d1b199c3 2025-05-05 01:57:45,087 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/f714436e-d1b4-4d45-94f0-34f4d1b199c3 2025-05-05 01:57:45,143 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/3a800f7e-94b6-43f1-bbe9-629c6a020227 2025-05-05 01:57:45,250 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-68261625:ctest-vn-53645924', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68261625', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6467635331257158700', 'uuid-lslong': '10754881648569520755'}, 'enable': 'true', 'created': '2025-05-05T01:57:41', 'last-modified': '2025-05-05T01:57:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.904426'} 2025-05-05 01:57:45,307 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-05 01:57:45,307 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53645924 passed 2025-05-05 01:57:45,308 - DEBUG - ====Verifying policy data for ctest-vn-53645924 in API_Server ====== 2025-05-05 01:57:45,308 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2025-05-05 01:57:45,362 - DEBUG - Requesting: https://10.0.0.129:8082/domain/61d5f14e-0b5a-4169-8eb2-9811a5380ab2 2025-05-05 01:57:45,423 - DEBUG - Requesting: https://10.0.0.129:8082/project/a55e0b39-f58b-42a1-b944-4bda624c90ed 2025-05-05 01:57:45,512 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/59c1a811-1859-4c2c-9541-03e0a85a9273 2025-05-05 01:57:45,570 - DEBUG - ==>Verifying data for policy with id: f9531831-ee82-4cab-b583-137766271376, fqn: ['admin_domain', 'ctest-TestBasicPolicy-68261625', 'ctest-policy-allow-all-65648854'] 2025-05-05 01:57:45,570 - INFO - VN ctest-vn-53645924 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-05 01:57:45,570 - DEBUG - Verifying the vn in opserver 2025-05-05 01:57:45,570 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-68261625:ctest-vn-53645924 virtual network link through opserver 10.0.0.129 2025-05-05 01:57:45,571 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks 2025-05-05 01:57:45,963 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks 2025-05-05 01:57:46,078 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-68261625:ctest-vn-53645924', 'href': 'https://10.0.0.129:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-68261625:ctest-vn-53645924?flat'} 2025-05-05 01:57:46,078 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-68261625:ctest-vn-53645924 is found in opserver 2025-05-05 01:57:46,178 - DEBUG - Do not have enough data to verify VN in agent 2025-05-05 01:57:46,226 - DEBUG - VRF ids for VN ctest-vn-53645924: {} 2025-05-05 01:57:46,226 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2025-05-05 01:57:46,278 - DEBUG - Requesting: https://10.0.0.129:8082/domain/61d5f14e-0b5a-4169-8eb2-9811a5380ab2 2025-05-05 01:57:46,335 - DEBUG - Requesting: https://10.0.0.129:8082/project/a55e0b39-f58b-42a1-b944-4bda624c90ed 2025-05-05 01:57:46,415 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/7e9430cd-e72f-40cf-a6da-90969f41b53a 2025-05-05 01:57:46,480 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/7e9430cd-e72f-40cf-a6da-90969f41b53a 2025-05-05 01:57:46,536 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/342b0736-0a12-4a84-be78-142e7f7c9a1d 2025-05-05 01:57:46,591 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/342b0736-0a12-4a84-be78-142e7f7c9a1d 2025-05-05 01:57:46,647 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/4cb3c5fc-05bd-40fb-8c87-a33a99e6f7b8 2025-05-05 01:57:46,698 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-05 01:57:46,698 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/7e9430cd-e72f-40cf-a6da-90969f41b53a 2025-05-05 01:57:46,756 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/342b0736-0a12-4a84-be78-142e7f7c9a1d 2025-05-05 01:57:46,820 - INFO - Verified VN network id 8 for VN 7e9430cd-e72f-40cf-a6da-90969f41b53a 2025-05-05 01:57:46,820 - INFO - Verifications in API Server for VN ctest-vn-86005345 passed 2025-05-05 01:57:46,820 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/7e9430cd-e72f-40cf-a6da-90969f41b53a 2025-05-05 01:57:46,876 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/342b0736-0a12-4a84-be78-142e7f7c9a1d 2025-05-05 01:57:46,931 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/342b0736-0a12-4a84-be78-142e7f7c9a1d 2025-05-05 01:57:46,987 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/4cb3c5fc-05bd-40fb-8c87-a33a99e6f7b8 2025-05-05 01:57:47,091 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-68261625:ctest-vn-86005345', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68261625', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9120968806237159631', 'uuid-lslong': '12023081131810338106'}, 'enable': 'true', 'created': '2025-05-05T01:57:42', 'last-modified': '2025-05-05T01:57:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.379860'} 2025-05-05 01:57:47,147 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-05 01:57:47,147 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86005345 passed 2025-05-05 01:57:47,148 - DEBUG - ====Verifying policy data for ctest-vn-86005345 in API_Server ====== 2025-05-05 01:57:47,148 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2025-05-05 01:57:47,206 - DEBUG - Requesting: https://10.0.0.129:8082/domain/61d5f14e-0b5a-4169-8eb2-9811a5380ab2 2025-05-05 01:57:47,268 - DEBUG - Requesting: https://10.0.0.129:8082/project/a55e0b39-f58b-42a1-b944-4bda624c90ed 2025-05-05 01:57:47,347 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/7e9430cd-e72f-40cf-a6da-90969f41b53a 2025-05-05 01:57:47,408 - DEBUG - ==>Verifying data for policy with id: f9531831-ee82-4cab-b583-137766271376, fqn: ['admin_domain', 'ctest-TestBasicPolicy-68261625', 'ctest-policy-allow-all-65648854'] 2025-05-05 01:57:47,408 - INFO - VN ctest-vn-86005345 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-05 01:57:47,408 - DEBUG - Verifying the vn in opserver 2025-05-05 01:57:47,408 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-68261625:ctest-vn-86005345 virtual network link through opserver 10.0.0.129 2025-05-05 01:57:47,408 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks 2025-05-05 01:57:47,466 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-68261625:ctest-vn-86005345', 'href': 'https://10.0.0.129:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-68261625:ctest-vn-86005345?flat'} 2025-05-05 01:57:47,466 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-68261625:ctest-vn-86005345 is found in opserver 2025-05-05 01:57:47,570 - DEBUG - Do not have enough data to verify VN in agent 2025-05-05 01:57:47,622 - DEBUG - VRF ids for VN ctest-vn-86005345: {} 2025-05-05 01:57:47,697 - DEBUG - Services list from nova: [, , ] 2025-05-05 01:57:49,543 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-534-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-534-1) 2025-05-05 01:57:50,934 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-534-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-534-1) 2025-05-05 01:57:50,934 - INFO - Waiting for VM ctest-TestBasicPolicy-68261625-79983277 to be up.. 2025-05-05 01:57:51,091 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-05-05 01:57:56,230 - DEBUG - VM is in ACTIVE state now 2025-05-05 01:57:56,230 - INFO - VM name : ctest-TestBasicPolicy-68261625-79983277 2025-05-05 01:57:56,372 - DEBUG - VM ctest-TestBasicPolicy-68261625-79983277 ID is 451a6c26-df81-43d9-bd5e-8f08fa7cfeb9 2025-05-05 01:57:56,397 - DEBUG - VM ctest-TestBasicPolicy-68261625-79983277 launched on Node cn-jenkins-deploy-platform-juju-os-534-1 2025-05-05 01:57:56,544 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-machine/451a6c26-df81-43d9-bd5e-8f08fa7cfeb9 2025-05-05 01:57:56,602 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-machine-interface/048e19b0-2bdd-448d-9c00-0b166380ab3a 2025-05-05 01:58:00,095 - 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 1020ms') 2025-05-05 01:58:00,096 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-68261625-79983277 failed! 2025-05-05 01:58:00,153 - DEBUG - Gateway for vn admin_domain:ctest-TestBasicPolicy-68261625:ctest-vn-53645924 is 162.147.36.1 and allocation pool is NOT set 2025-05-05 01:58:02,245 - 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.72 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.91 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 = 2.908/3.812/4.717/0.904 ms') 2025-05-05 01:58:02,245 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-68261625-79983277 passed 2025-05-05 01:58:02,422 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-05 01:58:02,422 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-68261625-79983277, IP 162.147.36.3, Port 22 2025-05-05 01:58:02,510 - 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-05-05 01:58:02,651 - DEBUG - VM ctest-TestBasicPolicy-68261625-79983277 is NOT ready for SSH connections, VM status: ACTIVE 2025-05-05 01:58:07,652 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-05 01:58:07,652 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-68261625-79983277, IP 162.147.36.3, Port 22 2025-05-05 01:58:07,872 - DEBUG - VM ctest-TestBasicPolicy-68261625-79983277 is ready for SSH connections 2025-05-05 01:58:07,872 - INFO - Waiting for VM ctest-TestBasicPolicy-68261625-02830092 to be up.. 2025-05-05 01:58:08,015 - DEBUG - VM is in ACTIVE state now 2025-05-05 01:58:08,016 - INFO - VM name : ctest-TestBasicPolicy-68261625-02830092 2025-05-05 01:58:08,171 - DEBUG - VM ctest-TestBasicPolicy-68261625-02830092 ID is c1d87164-8693-48dd-bda5-e6603d41e2c4 2025-05-05 01:58:08,171 - DEBUG - VM ctest-TestBasicPolicy-68261625-02830092 launched on Node cn-jenkins-deploy-platform-juju-os-534-1 2025-05-05 01:58:08,308 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-machine/c1d87164-8693-48dd-bda5-e6603d41e2c4 2025-05-05 01:58:08,367 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-machine-interface/26bc93f7-f9ef-4454-8099-2c9f78abda82 2025-05-05 01:58:09,826 - 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.54 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.411 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 = 0.411/1.973/3.535/1.562 ms') 2025-05-05 01:58:09,827 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-68261625-02830092 passed 2025-05-05 01:58:09,989 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-05 01:58:09,989 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-68261625-02830092, IP 135.26.77.195, Port 22 2025-05-05 01:58:10,199 - DEBUG - VM ctest-TestBasicPolicy-68261625-02830092 is ready for SSH connections 2025-05-05 01:58:10,199 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-05 01:58:10,200 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 135.26.77.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.129, gateway password: c0ntrail123 2025-05-05 01:58:10,200 - DEBUG - ping -s 56 -c 3 -W 1 135.26.77.195 2025-05-05 01:58:13,922 - DEBUG - PING 135.26.77.195 (135.26.77.195): 56 data bytes 64 bytes from 135.26.77.195: seq=0 ttl=63 time=4.057 ms 64 bytes from 135.26.77.195: seq=1 ttl=63 time=0.944 ms 64 bytes from 135.26.77.195: seq=2 ttl=63 time=0.891 ms --- 135.26.77.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.891/1.964/4.057 ms 2025-05-05 01:58:13,922 - INFO - Ping to IP 135.26.77.195 from VM ctest-TestBasicPolicy-68261625-79983277 passed 2025-05-05 01:58:14,109 - DEBUG - Policy Update Response {"network-policy": {"uuid": "f9531831-ee82-4cab-b583-137766271376", "href": "https://10.0.0.129:8082/network-policy/f9531831-ee82-4cab-b583-137766271376"}} 2025-05-05 01:58:14,109 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-05 01:58:14,109 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 135.26.77.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.129, gateway password: c0ntrail123 2025-05-05 01:58:14,109 - DEBUG - ping -s 56 -c 3 -W 1 135.26.77.195 2025-05-05 01:58:17,335 - DEBUG - PING 135.26.77.195 (135.26.77.195): 56 data bytes --- 135.26.77.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-05 01:58:17,335 - WARNING - Ping to IP 135.26.77.195 from VM ctest-TestBasicPolicy-68261625-79983277 failed 2025-05-05 01:58:17,335 - INFO - Deleting VM ctest-TestBasicPolicy-68261625-02830092 2025-05-05 01:58:17,432 - INFO - Deleting VM ctest-TestBasicPolicy-68261625-79983277 2025-05-05 01:58:18,160 - INFO - Deleted policy ctest-policy-allow-all-65648854 2025-05-05 01:58:18,160 - INFO - Deleting VN ctest-vn-86005345 2025-05-05 01:58:18,314 - DEBUG - VN 7e9430cd-e72f-40cf-a6da-90969f41b53a still in use: Unable to complete operation on network 7e9430cd-e72f-40cf-a6da-90969f41b53a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6b720bcf-31c0-46a4-bf36-d1a1d133f1c3'] 2025-05-05 01:58:18,314 - WARNING - Deleting VN ctest-vn-86005345 failed..Will retry 2025-05-05 01:58:20,495 - DEBUG - Response for deleting network () 2025-05-05 01:58:20,496 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/342b0736-0a12-4a84-be78-142e7f7c9a1d 2025-05-05 01:58:20,553 - DEBUG - Response Code: 404 2025-05-05 01:58:20,553 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2025-05-05 01:58:20,606 - DEBUG - Requesting: https://10.0.0.129:8082/domain/61d5f14e-0b5a-4169-8eb2-9811a5380ab2 2025-05-05 01:58:20,666 - DEBUG - Requesting: https://10.0.0.129:8082/project/a55e0b39-f58b-42a1-b944-4bda624c90ed 2025-05-05 01:58:20,747 - INFO - Validated that VN ctest-vn-86005345 is not found in API Server 2025-05-05 01:58:20,846 - DEBUG - VN ctest-vn-86005345 is not present in Agent 10.0.0.129 2025-05-05 01:58:20,846 - INFO - Validated that VN ctest-vn-86005345 is not in any agent 2025-05-05 01:58:21,006 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-86005345 info 2025-05-05 01:58:21,007 - INFO - Deleting VN ctest-vn-53645924 2025-05-05 01:58:21,187 - DEBUG - Response for deleting network () 2025-05-05 01:58:21,187 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/f714436e-d1b4-4d45-94f0-34f4d1b199c3 2025-05-05 01:58:21,249 - DEBUG - Response Code: 404 2025-05-05 01:58:21,250 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2025-05-05 01:58:21,302 - DEBUG - Requesting: https://10.0.0.129:8082/domain/61d5f14e-0b5a-4169-8eb2-9811a5380ab2 2025-05-05 01:58:21,358 - DEBUG - Requesting: https://10.0.0.129:8082/project/a55e0b39-f58b-42a1-b944-4bda624c90ed 2025-05-05 01:58:21,447 - INFO - Validated that VN ctest-vn-53645924 is not found in API Server 2025-05-05 01:58:21,554 - DEBUG - VN ctest-vn-53645924 is not present in Agent 10.0.0.129 2025-05-05 01:58:21,554 - INFO - Validated that VN ctest-vn-53645924 is not in any agent 2025-05-05 01:58:21,710 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-53645924 info 2025-05-05 01:58:22,098 - DEBUG - No XMPP flaps were noticed during the test
2025-05-05 01:58:22,099 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:42]
2025-05-05 01:58:22,099 - INFO - -------------------------------------------------------------------------------- 2025-05-05 01:58:23,204 - INFO - Deleted project: ctest-TestBasicPolicy-68261625, ID : a55e0b39-f58b-42a1-b944-4bda624c90ed