2025-10-22 19:49:29,847 - INFO - Reading existing Domain with UUID cc7bf0c9-b3f5-4805-bbd2-f13c8e4f2bc8 2025-10-22 19:49:29,863 - INFO - Using existing domain ['admin_domain'](cc7bf0c9-b3f5-4805-bbd2-f13c8e4f2bc8) 2025-10-22 19:49:30,238 - INFO - Project ctest-TestBasicPolicy-62691170 not found, creating it 2025-10-22 19:49:30,852 - INFO - Created Project:ctest-TestBasicPolicy-62691170, ID : ddc48095-f979-4bf8-9961-3b70d6706eef 2025-10-22 19:49:32,838 - INFO - ================================================================================ 2025-10-22 19:49:32,838 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-22 19:49:32,838 - 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-22 19:49:33,244 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.0.0.141': '0'}} with 2025-10-22 19:49:33,245 - INFO - Initial checks done. Running the testcase now 2025-10-22 19:49:33,245 - INFO - 2025-10-22 19:49:34,159 - DEBUG - Response for create_network : {'network': {'id': '44de626c-dc45-4f20-8528-422eff9edb2a', 'name': 'ctest-vn-14581148', 'tenant_id': 'ddc48095f9794bf899613b70d6706eef', 'project_id': 'ddc48095f9794bf899613b70d6706eef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-62691170', 'ctest-vn-14581148'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-10-22 19:49:34,416 - DEBUG - Response for create_subnet : {'subnet': {'id': '2186add6-e838-4c8f-85a1-ff9aa3c503a6', 'name': '', 'tenant_id': 'ddc48095f9794bf899613b70d6706eef', 'network_id': '44de626c-dc45-4f20-8528-422eff9edb2a', 'ip_version': 4, 'cidr': '123.227.13.192/26', 'allocation_pools': [{'start': '123.227.13.194', 'end': '123.227.13.254'}], 'gateway_ip': '123.227.13.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-22T19:49:34.299639', 'updated_at': '2025-10-22T19:49:34.299639', 'dns_server_address': '123.227.13.194', 'tags': [], 'project_id': 'ddc48095f9794bf899613b70d6706eef'}} 2025-10-22 19:49:34,489 - INFO - Created VN ctest-vn-14581148 2025-10-22 19:49:34,547 - DEBUG - VN ctest-vn-14581148 UUID is 44de626c-dc45-4f20-8528-422eff9edb2a 2025-10-22 19:49:35,104 - DEBUG - Response for create_network : {'network': {'id': '4c44bffe-a477-4747-92d0-01c757790c75', 'name': 'ctest-vn-22432770', 'tenant_id': 'ddc48095f9794bf899613b70d6706eef', 'project_id': 'ddc48095f9794bf899613b70d6706eef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-62691170', 'ctest-vn-22432770'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-10-22 19:49:35,372 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a06b57ca-5589-4044-a369-db640219bdf9', 'name': '', 'tenant_id': 'ddc48095f9794bf899613b70d6706eef', 'network_id': '4c44bffe-a477-4747-92d0-01c757790c75', 'ip_version': 4, 'cidr': '189.227.110.64/26', 'allocation_pools': [{'start': '189.227.110.66', 'end': '189.227.110.126'}], 'gateway_ip': '189.227.110.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-22T19:49:35.257180', 'updated_at': '2025-10-22T19:49:35.257180', 'dns_server_address': '189.227.110.66', 'tags': [], 'project_id': 'ddc48095f9794bf899613b70d6706eef'}} 2025-10-22 19:49:35,441 - INFO - Created VN ctest-vn-22432770 2025-10-22 19:49:35,503 - DEBUG - VN ctest-vn-22432770 UUID is 4c44bffe-a477-4747-92d0-01c757790c75 2025-10-22 19:49:35,729 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-62691170:ctest-vn-14581148, 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-62691170:ctest-vn-22432770, 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-22 19:49:36,332 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '44de626c-dc45-4f20-8528-422eff9edb2a', 'name': 'ctest-vn-14581148', 'tenant_id': 'ddc48095f9794bf899613b70d6706eef', 'project_id': 'ddc48095f9794bf899613b70d6706eef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2186add6-e838-4c8f-85a1-ff9aa3c503a6'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-62691170', 'ctest-vn-14581148'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-62691170', 'ctest-policy-allow-all-28319347']], 'subnet_ipam': [{'subnet_cidr': '123.227.13.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-22T19:49:34.070352', 'updated_at': '2025-10-22T19:49:34.320035'}} 2025-10-22 19:49:36,719 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4c44bffe-a477-4747-92d0-01c757790c75', 'name': 'ctest-vn-22432770', 'tenant_id': 'ddc48095f9794bf899613b70d6706eef', 'project_id': 'ddc48095f9794bf899613b70d6706eef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a06b57ca-5589-4044-a369-db640219bdf9'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-62691170', 'ctest-vn-22432770'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-62691170', 'ctest-policy-allow-all-28319347']], 'subnet_ipam': [{'subnet_cidr': '189.227.110.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-22T19:49:35.007564', 'updated_at': '2025-10-22T19:49:35.276128'}} 2025-10-22 19:49:36,919 - DEBUG - Requesting: https://10.0.0.141:8082/domains 2025-10-22 19:49:37,278 - DEBUG - Requesting: https://10.0.0.141:8082/domains 2025-10-22 19:49:37,368 - DEBUG - Requesting: https://10.0.0.141:8082/domain/cc7bf0c9-b3f5-4805-bbd2-f13c8e4f2bc8 2025-10-22 19:49:37,432 - DEBUG - Requesting: https://10.0.0.141:8082/project/ddc48095-f979-4bf8-9961-3b70d6706eef 2025-10-22 19:49:37,528 - DEBUG - Requesting: https://10.0.0.141:8082/virtual-network/44de626c-dc45-4f20-8528-422eff9edb2a 2025-10-22 19:49:37,589 - DEBUG - Requesting: https://10.0.0.141:8082/virtual-network/44de626c-dc45-4f20-8528-422eff9edb2a 2025-10-22 19:49:37,649 - DEBUG - Requesting: https://10.0.0.141:8082/routing-instance/76306cb5-d769-420e-9649-e32af4d8a4ee 2025-10-22 19:49:37,704 - DEBUG - Requesting: https://10.0.0.141:8082/routing-instance/76306cb5-d769-420e-9649-e32af4d8a4ee 2025-10-22 19:49:37,764 - DEBUG - Requesting: https://10.0.0.141:8082/route-target/9c8fb81b-7b0d-473d-a486-c031efb8554c 2025-10-22 19:49:37,819 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 19:49:37,820 - DEBUG - Requesting: https://10.0.0.141:8082/virtual-network/44de626c-dc45-4f20-8528-422eff9edb2a 2025-10-22 19:49:37,877 - DEBUG - Requesting: https://10.0.0.141:8082/routing-instance/76306cb5-d769-420e-9649-e32af4d8a4ee 2025-10-22 19:49:37,943 - INFO - Verified VN network id 11 for VN 44de626c-dc45-4f20-8528-422eff9edb2a 2025-10-22 19:49:37,943 - INFO - Verifications in API Server for VN ctest-vn-14581148 passed 2025-10-22 19:49:37,943 - DEBUG - Requesting: https://10.0.0.141:8082/virtual-network/44de626c-dc45-4f20-8528-422eff9edb2a 2025-10-22 19:49:38,001 - DEBUG - Requesting: https://10.0.0.141:8082/routing-instance/76306cb5-d769-420e-9649-e32af4d8a4ee 2025-10-22 19:49:38,056 - DEBUG - Requesting: https://10.0.0.141:8082/routing-instance/76306cb5-d769-420e-9649-e32af4d8a4ee 2025-10-22 19:49:38,116 - DEBUG - Requesting: https://10.0.0.141:8082/route-target/9c8fb81b-7b0d-473d-a486-c031efb8554c 2025-10-22 19:49:38,231 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-62691170:ctest-vn-14581148', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62691170', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4962512059100385056', 'uuid-lslong': '9594991775737371434'}, 'enable': 'true', 'created': '2025-10-22T19:49:34', 'last-modified': '2025-10-22T19:49:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.026354'} 2025-10-22 19:49:38,291 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 19:49:38,291 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14581148 passed 2025-10-22 19:49:38,292 - DEBUG - ====Verifying policy data for ctest-vn-14581148 in API_Server ====== 2025-10-22 19:49:38,292 - DEBUG - Requesting: https://10.0.0.141:8082/domains 2025-10-22 19:49:38,344 - DEBUG - Requesting: https://10.0.0.141:8082/domain/cc7bf0c9-b3f5-4805-bbd2-f13c8e4f2bc8 2025-10-22 19:49:38,412 - DEBUG - Requesting: https://10.0.0.141:8082/project/ddc48095-f979-4bf8-9961-3b70d6706eef 2025-10-22 19:49:38,496 - DEBUG - Requesting: https://10.0.0.141:8082/virtual-network/44de626c-dc45-4f20-8528-422eff9edb2a 2025-10-22 19:49:38,556 - DEBUG - ==>Verifying data for policy with id: def3e206-f037-47cc-9dad-bff585758a84, fqn: ['admin_domain', 'ctest-TestBasicPolicy-62691170', 'ctest-policy-allow-all-28319347'] 2025-10-22 19:49:38,557 - INFO - VN ctest-vn-14581148 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 19:49:38,557 - DEBUG - Verifying the vn in opserver 2025-10-22 19:49:38,557 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-62691170:ctest-vn-14581148 virtual network link through opserver 10.0.0.141 2025-10-22 19:49:38,557 - DEBUG - Requesting: https://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-22 19:49:38,924 - DEBUG - Requesting: https://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-22 19:49:39,060 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-62691170:ctest-vn-14581148', 'href': 'https://10.0.0.141:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-62691170:ctest-vn-14581148?flat'} 2025-10-22 19:49:39,060 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-62691170:ctest-vn-14581148 is found in opserver 2025-10-22 19:49:39,163 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 19:49:39,216 - DEBUG - VRF ids for VN ctest-vn-14581148: {} 2025-10-22 19:49:39,216 - DEBUG - Requesting: https://10.0.0.141:8082/domains 2025-10-22 19:49:39,271 - DEBUG - Requesting: https://10.0.0.141:8082/domain/cc7bf0c9-b3f5-4805-bbd2-f13c8e4f2bc8 2025-10-22 19:49:39,332 - DEBUG - Requesting: https://10.0.0.141:8082/project/ddc48095-f979-4bf8-9961-3b70d6706eef 2025-10-22 19:49:39,424 - DEBUG - Requesting: https://10.0.0.141:8082/virtual-network/4c44bffe-a477-4747-92d0-01c757790c75 2025-10-22 19:49:39,485 - DEBUG - Requesting: https://10.0.0.141:8082/virtual-network/4c44bffe-a477-4747-92d0-01c757790c75 2025-10-22 19:49:39,545 - DEBUG - Requesting: https://10.0.0.141:8082/routing-instance/6e79b1f7-2856-4f62-8d07-a5bbcde41a1f 2025-10-22 19:49:39,600 - DEBUG - Requesting: https://10.0.0.141:8082/routing-instance/6e79b1f7-2856-4f62-8d07-a5bbcde41a1f 2025-10-22 19:49:39,661 - DEBUG - Requesting: https://10.0.0.141:8082/route-target/415f670d-3eab-4635-b75c-e1d836adc6a2 2025-10-22 19:49:39,716 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-22 19:49:39,716 - DEBUG - Requesting: https://10.0.0.141:8082/virtual-network/4c44bffe-a477-4747-92d0-01c757790c75 2025-10-22 19:49:39,776 - DEBUG - Requesting: https://10.0.0.141:8082/routing-instance/6e79b1f7-2856-4f62-8d07-a5bbcde41a1f 2025-10-22 19:49:39,848 - INFO - Verified VN network id 12 for VN 4c44bffe-a477-4747-92d0-01c757790c75 2025-10-22 19:49:39,848 - INFO - Verifications in API Server for VN ctest-vn-22432770 passed 2025-10-22 19:49:39,848 - DEBUG - Requesting: https://10.0.0.141:8082/virtual-network/4c44bffe-a477-4747-92d0-01c757790c75 2025-10-22 19:49:39,909 - DEBUG - Requesting: https://10.0.0.141:8082/routing-instance/6e79b1f7-2856-4f62-8d07-a5bbcde41a1f 2025-10-22 19:49:39,965 - DEBUG - Requesting: https://10.0.0.141:8082/routing-instance/6e79b1f7-2856-4f62-8d07-a5bbcde41a1f 2025-10-22 19:49:40,024 - DEBUG - Requesting: https://10.0.0.141:8082/route-target/415f670d-3eab-4635-b75c-e1d836adc6a2 2025-10-22 19:49:40,144 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-62691170:ctest-vn-22432770', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62691170', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5495728545700726599', 'uuid-lslong': '10578957480370965621'}, 'enable': 'true', 'created': '2025-10-22T19:49:35', 'last-modified': '2025-10-22T19:49:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.449397'} 2025-10-22 19:49:40,197 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-22 19:49:40,197 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22432770 passed 2025-10-22 19:49:40,197 - DEBUG - ====Verifying policy data for ctest-vn-22432770 in API_Server ====== 2025-10-22 19:49:40,197 - DEBUG - Requesting: https://10.0.0.141:8082/domains 2025-10-22 19:49:40,251 - DEBUG - Requesting: https://10.0.0.141:8082/domain/cc7bf0c9-b3f5-4805-bbd2-f13c8e4f2bc8 2025-10-22 19:49:40,313 - DEBUG - Requesting: https://10.0.0.141:8082/project/ddc48095-f979-4bf8-9961-3b70d6706eef 2025-10-22 19:49:40,405 - DEBUG - Requesting: https://10.0.0.141:8082/virtual-network/4c44bffe-a477-4747-92d0-01c757790c75 2025-10-22 19:49:40,465 - DEBUG - ==>Verifying data for policy with id: def3e206-f037-47cc-9dad-bff585758a84, fqn: ['admin_domain', 'ctest-TestBasicPolicy-62691170', 'ctest-policy-allow-all-28319347'] 2025-10-22 19:49:40,465 - INFO - VN ctest-vn-22432770 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 19:49:40,465 - DEBUG - Verifying the vn in opserver 2025-10-22 19:49:40,465 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-62691170:ctest-vn-22432770 virtual network link through opserver 10.0.0.141 2025-10-22 19:49:40,465 - DEBUG - Requesting: https://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-22 19:49:40,524 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-62691170:ctest-vn-22432770', 'href': 'https://10.0.0.141:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-62691170:ctest-vn-22432770?flat'} 2025-10-22 19:49:40,524 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-62691170:ctest-vn-22432770 is found in opserver 2025-10-22 19:49:40,627 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 19:49:40,675 - DEBUG - VRF ids for VN ctest-vn-22432770: {} 2025-10-22 19:49:40,750 - DEBUG - Services list from nova: [, , ] 2025-10-22 19:49:42,004 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-605-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-605-1) 2025-10-22 19:49:43,446 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-605-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-605-1) 2025-10-22 19:49:43,446 - INFO - Waiting for VM ctest-TestBasicPolicy-62691170-25632760 to be up.. 2025-10-22 19:49:43,623 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-22 19:49:48,787 - DEBUG - VM is in ACTIVE state now 2025-10-22 19:49:48,787 - INFO - VM name : ctest-TestBasicPolicy-62691170-25632760 2025-10-22 19:49:48,953 - DEBUG - VM ctest-TestBasicPolicy-62691170-25632760 ID is db80c0d5-ef76-4f92-900e-dad08404b959 2025-10-22 19:49:48,988 - DEBUG - VM ctest-TestBasicPolicy-62691170-25632760 launched on Node cn-jenkins-deploy-platform-juju-os-605-1 2025-10-22 19:49:49,175 - DEBUG - Requesting: https://10.0.0.141:8082/virtual-machine/db80c0d5-ef76-4f92-900e-dad08404b959 2025-10-22 19:49:49,236 - DEBUG - Requesting: https://10.0.0.141:8082/virtual-machine-interface/ac3042b4-8324-45a1-a696-c26e89eafb0f 2025-10-22 19:49:52,749 - 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 1013ms') 2025-10-22 19:49:52,749 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-62691170-25632760 failed! 2025-10-22 19:49:52,811 - DEBUG - Gateway for vn admin_domain:ctest-TestBasicPolicy-62691170:ctest-vn-14581148 is 123.227.13.193 and allocation pool is NOT set 2025-10-22 19:49:56,973 - 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=2 ttl=63 time=24.7 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1013ms\r\nrtt min/avg/max/mdev = 24.724/24.724/24.724/0.000 ms') 2025-10-22 19:49:56,973 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-62691170-25632760 passed 2025-10-22 19:49:57,187 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 19:49:57,187 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-62691170-25632760, IP 123.227.13.195, Port 22 2025-10-22 19:49:57,297 - 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-22 19:49:57,512 - DEBUG - VM ctest-TestBasicPolicy-62691170-25632760 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-22 19:50:02,513 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 19:50:02,514 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-62691170-25632760, IP 123.227.13.195, Port 22 2025-10-22 19:50:02,779 - DEBUG - VM ctest-TestBasicPolicy-62691170-25632760 is ready for SSH connections 2025-10-22 19:50:02,779 - INFO - Waiting for VM ctest-TestBasicPolicy-62691170-42223317 to be up.. 2025-10-22 19:50:02,979 - DEBUG - VM is in ACTIVE state now 2025-10-22 19:50:02,979 - INFO - VM name : ctest-TestBasicPolicy-62691170-42223317 2025-10-22 19:50:03,182 - DEBUG - VM ctest-TestBasicPolicy-62691170-42223317 ID is 34afffa5-45db-4795-9af1-b52f57cc8445 2025-10-22 19:50:03,182 - DEBUG - VM ctest-TestBasicPolicy-62691170-42223317 launched on Node cn-jenkins-deploy-platform-juju-os-605-1 2025-10-22 19:50:03,398 - DEBUG - Requesting: https://10.0.0.141:8082/virtual-machine/34afffa5-45db-4795-9af1-b52f57cc8445 2025-10-22 19:50:03,458 - DEBUG - Requesting: https://10.0.0.141:8082/virtual-machine-interface/7b294ee6-a57c-4a69-b8c1-5197bd25b2ef 2025-10-22 19:50:04,996 - 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=4.65 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.756 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.756/2.701/4.646/1.945 ms') 2025-10-22 19:50:04,996 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-62691170-42223317 passed 2025-10-22 19:50:05,207 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 19:50:05,207 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-62691170-42223317, IP 189.227.110.67, Port 22 2025-10-22 19:50:05,454 - DEBUG - VM ctest-TestBasicPolicy-62691170-42223317 is ready for SSH connections 2025-10-22 19:50:05,455 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 19:50:05,455 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 189.227.110.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.141, gateway password: c0ntrail123 2025-10-22 19:50:05,455 - DEBUG - ping -s 56 -c 3 -W 1 189.227.110.67 2025-10-22 19:50:09,339 - DEBUG - PING 189.227.110.67 (189.227.110.67): 56 data bytes 64 bytes from 189.227.110.67: seq=0 ttl=63 time=4.387 ms 64 bytes from 189.227.110.67: seq=1 ttl=63 time=1.367 ms 64 bytes from 189.227.110.67: seq=2 ttl=63 time=1.351 ms --- 189.227.110.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.351/2.368/4.387 ms 2025-10-22 19:50:09,340 - INFO - Ping to IP 189.227.110.67 from VM ctest-TestBasicPolicy-62691170-25632760 passed 2025-10-22 19:50:09,562 - DEBUG - Policy Update Response {"network-policy": {"uuid": "def3e206-f037-47cc-9dad-bff585758a84", "href": "https://10.0.0.141:8082/network-policy/def3e206-f037-47cc-9dad-bff585758a84"}} 2025-10-22 19:50:09,562 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 19:50:09,563 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 189.227.110.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.141, gateway password: c0ntrail123 2025-10-22 19:50:09,563 - DEBUG - ping -s 56 -c 3 -W 1 189.227.110.67 2025-10-22 19:50:12,812 - DEBUG - PING 189.227.110.67 (189.227.110.67): 56 data bytes 64 bytes from 189.227.110.67: seq=0 ttl=63 time=2.596 ms --- 189.227.110.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.596/2.596/2.596 ms 2025-10-22 19:50:12,812 - WARNING - Ping to IP 189.227.110.67 from VM ctest-TestBasicPolicy-62691170-25632760 failed 2025-10-22 19:50:12,812 - INFO - Deleting VM ctest-TestBasicPolicy-62691170-42223317 2025-10-22 19:50:13,016 - INFO - Deleting VM ctest-TestBasicPolicy-62691170-25632760 2025-10-22 19:50:14,142 - INFO - Deleted policy ctest-policy-allow-all-28319347 2025-10-22 19:50:14,142 - INFO - Deleting VN ctest-vn-22432770 2025-10-22 19:50:14,393 - DEBUG - VN 4c44bffe-a477-4747-92d0-01c757790c75 still in use: Unable to complete operation on network 4c44bffe-a477-4747-92d0-01c757790c75. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-90edf918-ebec-4373-929f-ec1ec466e4d2'] 2025-10-22 19:50:14,395 - WARNING - Deleting VN ctest-vn-22432770 failed..Will retry 2025-10-22 19:50:16,925 - DEBUG - Response for deleting network () 2025-10-22 19:50:16,925 - DEBUG - Requesting: https://10.0.0.141:8082/routing-instance/6e79b1f7-2856-4f62-8d07-a5bbcde41a1f 2025-10-22 19:50:16,987 - DEBUG - Response Code: 404 2025-10-22 19:50:16,987 - DEBUG - Requesting: https://10.0.0.141:8082/domains 2025-10-22 19:50:17,047 - DEBUG - Requesting: https://10.0.0.141:8082/domain/cc7bf0c9-b3f5-4805-bbd2-f13c8e4f2bc8 2025-10-22 19:50:17,116 - DEBUG - Requesting: https://10.0.0.141:8082/project/ddc48095-f979-4bf8-9961-3b70d6706eef 2025-10-22 19:50:17,244 - INFO - Validated that VN ctest-vn-22432770 is not found in API Server 2025-10-22 19:50:17,359 - DEBUG - VN ctest-vn-22432770 is not present in Agent 10.0.0.141 2025-10-22 19:50:17,359 - INFO - Validated that VN ctest-vn-22432770 is not in any agent 2025-10-22 19:50:17,534 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-22432770 info 2025-10-22 19:50:17,535 - INFO - Deleting VN ctest-vn-14581148 2025-10-22 19:50:17,794 - DEBUG - Response for deleting network () 2025-10-22 19:50:17,794 - DEBUG - Requesting: https://10.0.0.141:8082/routing-instance/76306cb5-d769-420e-9649-e32af4d8a4ee 2025-10-22 19:50:17,851 - DEBUG - Response Code: 404 2025-10-22 19:50:17,851 - DEBUG - Requesting: https://10.0.0.141:8082/domains 2025-10-22 19:50:17,920 - DEBUG - Requesting: https://10.0.0.141:8082/domain/cc7bf0c9-b3f5-4805-bbd2-f13c8e4f2bc8 2025-10-22 19:50:17,984 - DEBUG - Requesting: https://10.0.0.141:8082/project/ddc48095-f979-4bf8-9961-3b70d6706eef 2025-10-22 19:50:18,092 - INFO - Validated that VN ctest-vn-14581148 is not found in API Server 2025-10-22 19:50:18,196 - DEBUG - VN ctest-vn-14581148 is not present in Agent 10.0.0.141 2025-10-22 19:50:18,196 - INFO - Validated that VN ctest-vn-14581148 is not in any agent 2025-10-22 19:50:18,360 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-14581148 info 2025-10-22 19:50:18,776 - DEBUG - No XMPP flaps were noticed during the test 2025-10-22 19:50:18,776 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:46] 2025-10-22 19:50:18,776 - INFO - -------------------------------------------------------------------------------- 2025-10-22 19:50:19,756 - INFO - Deleted project: ctest-TestBasicPolicy-62691170, ID : ddc48095-f979-4bf8-9961-3b70d6706eef