2025-04-17 20:17:29,057 - INFO - Reading existing Domain with UUID 9a0acbb4-613c-434e-b7f2-08d2943577cb 2025-04-17 20:17:29,070 - INFO - Using existing domain ['admin_domain'](9a0acbb4-613c-434e-b7f2-08d2943577cb) 2025-04-17 20:17:29,276 - INFO - Project ctest-TestBasicPolicy-19453904 not found, creating it 2025-04-17 20:17:29,803 - INFO - Created Project:ctest-TestBasicPolicy-19453904, ID : 805a12ab-bf0b-43c1-a252-4977d990bf1f 2025-04-17 20:17:31,494 - INFO - ================================================================================ 2025-04-17 20:17:31,494 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-17 20:17:31,495 - 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-04-17 20:17:31,877 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.0.0.49': '0'}} with 2025-04-17 20:17:31,877 - INFO - Initial checks done. Running the testcase now 2025-04-17 20:17:31,877 - INFO - 2025-04-17 20:17:32,646 - DEBUG - Response for create_network : {'network': {'id': '2e8bab6d-5518-4216-a8b6-d923d99dcbdd', 'name': 'ctest-vn-75669711', 'tenant_id': '805a12abbf0b43c1a2524977d990bf1f', 'project_id': '805a12abbf0b43c1a2524977d990bf1f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-19453904', 'ctest-vn-75669711'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-04-17 20:17:32,845 - DEBUG - Response for create_subnet : {'subnet': {'id': '6e5933c6-9685-496c-ac25-a7ab68af2fca', 'name': '', 'tenant_id': '805a12abbf0b43c1a2524977d990bf1f', 'network_id': '2e8bab6d-5518-4216-a8b6-d923d99dcbdd', 'ip_version': 4, 'cidr': '61.29.170.128/26', 'allocation_pools': [{'start': '61.29.170.130', 'end': '61.29.170.190'}], 'gateway_ip': '61.29.170.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-04-17T20:17:32.751798', 'updated_at': '2025-04-17T20:17:32.751798', 'dns_server_address': '61.29.170.130', 'tags': [], 'project_id': '805a12abbf0b43c1a2524977d990bf1f'}} 2025-04-17 20:17:32,910 - INFO - Created VN ctest-vn-75669711 2025-04-17 20:17:32,968 - DEBUG - VN ctest-vn-75669711 UUID is 2e8bab6d-5518-4216-a8b6-d923d99dcbdd 2025-04-17 20:17:33,468 - DEBUG - Response for create_network : {'network': {'id': '17f2967e-fb4b-4bf3-873d-9fc2e344e13e', 'name': 'ctest-vn-69110488', 'tenant_id': '805a12abbf0b43c1a2524977d990bf1f', 'project_id': '805a12abbf0b43c1a2524977d990bf1f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-19453904', 'ctest-vn-69110488'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-04-17 20:17:33,688 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e11e7e0d-3af8-4c95-bb11-d7f36ce6e832', 'name': '', 'tenant_id': '805a12abbf0b43c1a2524977d990bf1f', 'network_id': '17f2967e-fb4b-4bf3-873d-9fc2e344e13e', 'ip_version': 4, 'cidr': '25.47.8.64/26', 'allocation_pools': [{'start': '25.47.8.66', 'end': '25.47.8.126'}], 'gateway_ip': '25.47.8.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-04-17T20:17:33.597776', 'updated_at': '2025-04-17T20:17:33.597776', 'dns_server_address': '25.47.8.66', 'tags': [], 'project_id': '805a12abbf0b43c1a2524977d990bf1f'}} 2025-04-17 20:17:33,750 - INFO - Created VN ctest-vn-69110488 2025-04-17 20:17:33,804 - DEBUG - VN ctest-vn-69110488 UUID is 17f2967e-fb4b-4bf3-873d-9fc2e344e13e 2025-04-17 20:17:34,020 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-19453904:ctest-vn-75669711, 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-19453904:ctest-vn-69110488, 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-04-17 20:17:34,443 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2e8bab6d-5518-4216-a8b6-d923d99dcbdd', 'name': 'ctest-vn-75669711', 'tenant_id': '805a12abbf0b43c1a2524977d990bf1f', 'project_id': '805a12abbf0b43c1a2524977d990bf1f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6e5933c6-9685-496c-ac25-a7ab68af2fca'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-19453904', 'ctest-vn-75669711'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-19453904', 'ctest-policy-allow-all-49109218']], 'subnet_ipam': [{'subnet_cidr': '61.29.170.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-04-17T20:17:32.557140', 'updated_at': '2025-04-17T20:17:32.765058'}} 2025-04-17 20:17:34,815 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '17f2967e-fb4b-4bf3-873d-9fc2e344e13e', 'name': 'ctest-vn-69110488', 'tenant_id': '805a12abbf0b43c1a2524977d990bf1f', 'project_id': '805a12abbf0b43c1a2524977d990bf1f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e11e7e0d-3af8-4c95-bb11-d7f36ce6e832'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-19453904', 'ctest-vn-69110488'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-19453904', 'ctest-policy-allow-all-49109218']], 'subnet_ipam': [{'subnet_cidr': '25.47.8.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-04-17T20:17:33.396681', 'updated_at': '2025-04-17T20:17:33.610944'}} 2025-04-17 20:17:35,024 - DEBUG - Requesting: https://10.0.0.49:8082/domains 2025-04-17 20:17:35,367 - DEBUG - Requesting: https://10.0.0.49:8082/domains 2025-04-17 20:17:35,453 - DEBUG - Requesting: https://10.0.0.49:8082/domain/9a0acbb4-613c-434e-b7f2-08d2943577cb 2025-04-17 20:17:35,513 - DEBUG - Requesting: https://10.0.0.49:8082/project/805a12ab-bf0b-43c1-a252-4977d990bf1f 2025-04-17 20:17:35,602 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/2e8bab6d-5518-4216-a8b6-d923d99dcbdd 2025-04-17 20:17:35,665 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/2e8bab6d-5518-4216-a8b6-d923d99dcbdd 2025-04-17 20:17:35,731 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/423654c3-fd6b-4b22-894e-e3bbde27f4c5 2025-04-17 20:17:35,789 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/423654c3-fd6b-4b22-894e-e3bbde27f4c5 2025-04-17 20:17:35,845 - DEBUG - Requesting: https://10.0.0.49:8082/route-target/eb2caa64-ba04-4172-9ad0-3c65184e0b0b 2025-04-17 20:17:35,901 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-17 20:17:35,901 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/2e8bab6d-5518-4216-a8b6-d923d99dcbdd 2025-04-17 20:17:35,958 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/423654c3-fd6b-4b22-894e-e3bbde27f4c5 2025-04-17 20:17:36,022 - INFO - Verified VN network id 7 for VN 2e8bab6d-5518-4216-a8b6-d923d99dcbdd 2025-04-17 20:17:36,023 - INFO - Verifications in API Server for VN ctest-vn-75669711 passed 2025-04-17 20:17:36,023 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/2e8bab6d-5518-4216-a8b6-d923d99dcbdd 2025-04-17 20:17:36,078 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/423654c3-fd6b-4b22-894e-e3bbde27f4c5 2025-04-17 20:17:36,133 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/423654c3-fd6b-4b22-894e-e3bbde27f4c5 2025-04-17 20:17:36,185 - DEBUG - Requesting: https://10.0.0.49:8082/route-target/eb2caa64-ba04-4172-9ad0-3c65184e0b0b 2025-04-17 20:17:36,293 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-19453904:ctest-vn-75669711', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19453904', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3353962833574904342', 'uuid-lslong': '12157142992131312605'}, 'enable': 'true', 'created': '2025-04-17T20:17:32', 'last-modified': '2025-04-17T20:17:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.882052'} 2025-04-17 20:17:36,346 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-17 20:17:36,346 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75669711 passed 2025-04-17 20:17:36,346 - DEBUG - ====Verifying policy data for ctest-vn-75669711 in API_Server ====== 2025-04-17 20:17:36,346 - DEBUG - Requesting: https://10.0.0.49:8082/domains 2025-04-17 20:17:36,396 - DEBUG - Requesting: https://10.0.0.49:8082/domain/9a0acbb4-613c-434e-b7f2-08d2943577cb 2025-04-17 20:17:36,457 - DEBUG - Requesting: https://10.0.0.49:8082/project/805a12ab-bf0b-43c1-a252-4977d990bf1f 2025-04-17 20:17:36,541 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/2e8bab6d-5518-4216-a8b6-d923d99dcbdd 2025-04-17 20:17:36,599 - DEBUG - ==>Verifying data for policy with id: 2772e729-01f8-4df3-aea0-abaaf68ccffe, fqn: ['admin_domain', 'ctest-TestBasicPolicy-19453904', 'ctest-policy-allow-all-49109218'] 2025-04-17 20:17:36,599 - INFO - VN ctest-vn-75669711 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-17 20:17:36,599 - DEBUG - Verifying the vn in opserver 2025-04-17 20:17:36,599 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-19453904:ctest-vn-75669711 virtual network link through opserver 10.0.0.49 2025-04-17 20:17:36,600 - DEBUG - Requesting: https://10.0.0.49:8081/analytics/uves/virtual-networks 2025-04-17 20:17:36,947 - DEBUG - Requesting: https://10.0.0.49:8081/analytics/uves/virtual-networks 2025-04-17 20:17:37,064 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-19453904:ctest-vn-75669711', 'href': 'https://10.0.0.49:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-19453904:ctest-vn-75669711?flat'} 2025-04-17 20:17:37,065 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-19453904:ctest-vn-75669711 is found in opserver 2025-04-17 20:17:37,165 - DEBUG - Do not have enough data to verify VN in agent 2025-04-17 20:17:37,216 - DEBUG - VRF ids for VN ctest-vn-75669711: {} 2025-04-17 20:17:37,216 - DEBUG - Requesting: https://10.0.0.49:8082/domains 2025-04-17 20:17:37,268 - DEBUG - Requesting: https://10.0.0.49:8082/domain/9a0acbb4-613c-434e-b7f2-08d2943577cb 2025-04-17 20:17:37,325 - DEBUG - Requesting: https://10.0.0.49:8082/project/805a12ab-bf0b-43c1-a252-4977d990bf1f 2025-04-17 20:17:37,405 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/17f2967e-fb4b-4bf3-873d-9fc2e344e13e 2025-04-17 20:17:37,466 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/17f2967e-fb4b-4bf3-873d-9fc2e344e13e 2025-04-17 20:17:37,522 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/de74102a-f8e5-4fa1-a094-7e06fdefc3c9 2025-04-17 20:17:37,577 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/de74102a-f8e5-4fa1-a094-7e06fdefc3c9 2025-04-17 20:17:37,633 - DEBUG - Requesting: https://10.0.0.49:8082/route-target/66837844-70e7-46d3-bd11-a550c5176f57 2025-04-17 20:17:37,689 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-17 20:17:37,689 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/17f2967e-fb4b-4bf3-873d-9fc2e344e13e 2025-04-17 20:17:37,746 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/de74102a-f8e5-4fa1-a094-7e06fdefc3c9 2025-04-17 20:17:37,810 - INFO - Verified VN network id 8 for VN 17f2967e-fb4b-4bf3-873d-9fc2e344e13e 2025-04-17 20:17:37,810 - INFO - Verifications in API Server for VN ctest-vn-69110488 passed 2025-04-17 20:17:37,810 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/17f2967e-fb4b-4bf3-873d-9fc2e344e13e 2025-04-17 20:17:37,866 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/de74102a-f8e5-4fa1-a094-7e06fdefc3c9 2025-04-17 20:17:37,921 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/de74102a-f8e5-4fa1-a094-7e06fdefc3c9 2025-04-17 20:17:37,974 - DEBUG - Requesting: https://10.0.0.49:8082/route-target/66837844-70e7-46d3-bd11-a550c5176f57 2025-04-17 20:17:38,081 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-19453904:ctest-vn-69110488', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19453904', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1725607079362382835', 'uuid-lslong': '9745120828085035326'}, 'enable': 'true', 'created': '2025-04-17T20:17:33', 'last-modified': '2025-04-17T20:17:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.298964'} 2025-04-17 20:17:38,133 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-17 20:17:38,133 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69110488 passed 2025-04-17 20:17:38,134 - DEBUG - ====Verifying policy data for ctest-vn-69110488 in API_Server ====== 2025-04-17 20:17:38,134 - DEBUG - Requesting: https://10.0.0.49:8082/domains 2025-04-17 20:17:38,184 - DEBUG - Requesting: https://10.0.0.49:8082/domain/9a0acbb4-613c-434e-b7f2-08d2943577cb 2025-04-17 20:17:38,241 - DEBUG - Requesting: https://10.0.0.49:8082/project/805a12ab-bf0b-43c1-a252-4977d990bf1f 2025-04-17 20:17:38,326 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/17f2967e-fb4b-4bf3-873d-9fc2e344e13e 2025-04-17 20:17:38,390 - DEBUG - ==>Verifying data for policy with id: 2772e729-01f8-4df3-aea0-abaaf68ccffe, fqn: ['admin_domain', 'ctest-TestBasicPolicy-19453904', 'ctest-policy-allow-all-49109218'] 2025-04-17 20:17:38,390 - INFO - VN ctest-vn-69110488 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-17 20:17:38,390 - DEBUG - Verifying the vn in opserver 2025-04-17 20:17:38,390 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-19453904:ctest-vn-69110488 virtual network link through opserver 10.0.0.49 2025-04-17 20:17:38,390 - DEBUG - Requesting: https://10.0.0.49:8081/analytics/uves/virtual-networks 2025-04-17 20:17:38,448 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-19453904:ctest-vn-69110488', 'href': 'https://10.0.0.49:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-19453904:ctest-vn-69110488?flat'} 2025-04-17 20:17:38,448 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-19453904:ctest-vn-69110488 is found in opserver 2025-04-17 20:17:38,552 - DEBUG - Do not have enough data to verify VN in agent 2025-04-17 20:17:38,604 - DEBUG - VRF ids for VN ctest-vn-69110488: {} 2025-04-17 20:17:38,674 - DEBUG - Services list from nova: [, , ] 2025-04-17 20:17:40,170 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-522-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-522-1) 2025-04-17 20:17:42,133 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-522-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-522-1) 2025-04-17 20:17:42,134 - INFO - Waiting for VM ctest-TestBasicPolicy-19453904-39672728 to be up.. 2025-04-17 20:17:42,281 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-17 20:17:47,439 - DEBUG - VM is in ACTIVE state now 2025-04-17 20:17:47,439 - INFO - VM name : ctest-TestBasicPolicy-19453904-39672728 2025-04-17 20:17:47,580 - DEBUG - VM ctest-TestBasicPolicy-19453904-39672728 ID is 784ca9b0-4ca8-4411-9306-fb96120c34a2 2025-04-17 20:17:47,613 - DEBUG - VM ctest-TestBasicPolicy-19453904-39672728 launched on Node cn-jenkins-deploy-platform-juju-os-522-1 2025-04-17 20:17:47,768 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-machine/784ca9b0-4ca8-4411-9306-fb96120c34a2 2025-04-17 20:17:47,820 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-machine-interface/e94d310a-04d9-45cd-93cc-2164c11ac29e 2025-04-17 20:17:51,312 - 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 1032ms') 2025-04-17 20:17:51,312 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-19453904-39672728 failed! 2025-04-17 20:17:51,372 - DEBUG - Gateway for vn admin_domain:ctest-TestBasicPolicy-19453904:ctest-vn-75669711 is 61.29.170.129 and allocation pool is NOT set 2025-04-17 20:17:53,457 - 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=5.95 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.478 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 = 0.478/3.211/5.945/2.733 ms') 2025-04-17 20:17:53,457 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-19453904-39672728 passed 2025-04-17 20:17:53,612 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-17 20:17:53,612 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-19453904-39672728, IP 61.29.170.131, Port 22 2025-04-17 20:17:53,834 - DEBUG - VM ctest-TestBasicPolicy-19453904-39672728 is ready for SSH connections 2025-04-17 20:17:53,834 - INFO - Waiting for VM ctest-TestBasicPolicy-19453904-90926313 to be up.. 2025-04-17 20:17:53,970 - DEBUG - VM is in ACTIVE state now 2025-04-17 20:17:53,970 - INFO - VM name : ctest-TestBasicPolicy-19453904-90926313 2025-04-17 20:17:54,109 - DEBUG - VM ctest-TestBasicPolicy-19453904-90926313 ID is 358da0bb-d88c-4b9d-9de0-1c57b552641f 2025-04-17 20:17:54,109 - DEBUG - VM ctest-TestBasicPolicy-19453904-90926313 launched on Node cn-jenkins-deploy-platform-juju-os-522-1 2025-04-17 20:17:54,269 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-machine/358da0bb-d88c-4b9d-9de0-1c57b552641f 2025-04-17 20:17:54,337 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-machine-interface/f4327b73-2bda-4bfc-b1b3-5154e78682a4 2025-04-17 20:17:55,804 - 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=2.87 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.381 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.381/1.626/2.872/1.245 ms') 2025-04-17 20:17:55,804 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-19453904-90926313 passed 2025-04-17 20:17:55,960 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-17 20:17:55,960 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-19453904-90926313, IP 25.47.8.67, Port 22 2025-04-17 20:17:56,180 - DEBUG - VM ctest-TestBasicPolicy-19453904-90926313 is ready for SSH connections 2025-04-17 20:17:56,181 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-17 20:17:56,181 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 25.47.8.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.49, gateway password: c0ntrail123 2025-04-17 20:17:56,181 - DEBUG - ping -s 56 -c 3 -W 1 25.47.8.67 2025-04-17 20:18:00,188 - DEBUG - PING 25.47.8.67 (25.47.8.67): 56 data bytes 64 bytes from 25.47.8.67: seq=0 ttl=63 time=3.252 ms 64 bytes from 25.47.8.67: seq=1 ttl=63 time=0.835 ms 64 bytes from 25.47.8.67: seq=2 ttl=63 time=0.897 ms --- 25.47.8.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.835/1.661/3.252 ms 2025-04-17 20:18:00,188 - INFO - Ping to IP 25.47.8.67 from VM ctest-TestBasicPolicy-19453904-39672728 passed 2025-04-17 20:18:00,375 - DEBUG - Policy Update Response {"network-policy": {"uuid": "2772e729-01f8-4df3-aea0-abaaf68ccffe", "href": "https://10.0.0.49:8082/network-policy/2772e729-01f8-4df3-aea0-abaaf68ccffe"}} 2025-04-17 20:18:00,376 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-17 20:18:00,376 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 25.47.8.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.49, gateway password: c0ntrail123 2025-04-17 20:18:00,376 - DEBUG - ping -s 56 -c 3 -W 1 25.47.8.67 2025-04-17 20:18:03,576 - DEBUG - PING 25.47.8.67 (25.47.8.67): 56 data bytes --- 25.47.8.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-04-17 20:18:03,576 - WARNING - Ping to IP 25.47.8.67 from VM ctest-TestBasicPolicy-19453904-39672728 failed 2025-04-17 20:18:03,576 - INFO - Deleting VM ctest-TestBasicPolicy-19453904-90926313 2025-04-17 20:18:03,717 - INFO - Deleting VM ctest-TestBasicPolicy-19453904-39672728 2025-04-17 20:18:04,481 - INFO - Deleted policy ctest-policy-allow-all-49109218 2025-04-17 20:18:04,481 - INFO - Deleting VN ctest-vn-69110488 2025-04-17 20:18:04,635 - DEBUG - VN 17f2967e-fb4b-4bf3-873d-9fc2e344e13e still in use: Unable to complete operation on network 17f2967e-fb4b-4bf3-873d-9fc2e344e13e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-5f2d649d-84a9-40b6-92c6-02a0dcd3a499'] 2025-04-17 20:18:04,635 - WARNING - Deleting VN ctest-vn-69110488 failed..Will retry 2025-04-17 20:18:06,794 - DEBUG - Response for deleting network () 2025-04-17 20:18:06,794 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/de74102a-f8e5-4fa1-a094-7e06fdefc3c9 2025-04-17 20:18:06,852 - DEBUG - Response Code: 404 2025-04-17 20:18:06,852 - DEBUG - Requesting: https://10.0.0.49:8082/domains 2025-04-17 20:18:06,904 - DEBUG - Requesting: https://10.0.0.49:8082/domain/9a0acbb4-613c-434e-b7f2-08d2943577cb 2025-04-17 20:18:06,961 - DEBUG - Requesting: https://10.0.0.49:8082/project/805a12ab-bf0b-43c1-a252-4977d990bf1f 2025-04-17 20:18:07,037 - INFO - Validated that VN ctest-vn-69110488 is not found in API Server 2025-04-17 20:18:07,148 - DEBUG - VN ctest-vn-69110488 is not present in Agent 10.0.0.49 2025-04-17 20:18:07,148 - INFO - Validated that VN ctest-vn-69110488 is not in any agent 2025-04-17 20:18:07,301 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-69110488 info 2025-04-17 20:18:07,301 - INFO - Deleting VN ctest-vn-75669711 2025-04-17 20:18:07,477 - DEBUG - Response for deleting network () 2025-04-17 20:18:07,477 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/423654c3-fd6b-4b22-894e-e3bbde27f4c5 2025-04-17 20:18:07,532 - DEBUG - Response Code: 404 2025-04-17 20:18:07,532 - DEBUG - Requesting: https://10.0.0.49:8082/domains 2025-04-17 20:18:07,584 - DEBUG - Requesting: https://10.0.0.49:8082/domain/9a0acbb4-613c-434e-b7f2-08d2943577cb 2025-04-17 20:18:07,650 - DEBUG - Requesting: https://10.0.0.49:8082/project/805a12ab-bf0b-43c1-a252-4977d990bf1f 2025-04-17 20:18:07,733 - INFO - Validated that VN ctest-vn-75669711 is not found in API Server 2025-04-17 20:18:07,836 - DEBUG - VN ctest-vn-75669711 is not present in Agent 10.0.0.49 2025-04-17 20:18:07,836 - INFO - Validated that VN ctest-vn-75669711 is not in any agent 2025-04-17 20:18:07,992 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-75669711 info 2025-04-17 20:18:08,377 - DEBUG - No XMPP flaps were noticed during the test
2025-04-17 20:18:08,377 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37]
2025-04-17 20:18:08,377 - INFO - -------------------------------------------------------------------------------- 2025-04-17 20:18:09,197 - INFO - Deleted project: ctest-TestBasicPolicy-19453904, ID : 805a12ab-bf0b-43c1-a252-4977d990bf1f