2025-06-26 02:10:37,776 - INFO - Domain Default found not creating 2025-06-26 02:10:37,941 - INFO - Project ctest-TestBasicPolicy-24956579 not found, creating it 2025-06-26 02:10:38,465 - INFO - Created Project:ctest-TestBasicPolicy-24956579, ID : 1c0b2ec3-0ff8-454f-bf4f-10167998e99a 2025-06-26 02:10:40,026 - INFO - ================================================================================ 2025-06-26 02:10:40,026 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-26 02:10:40,026 - 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-06-26 02:10:40,292 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-06-26 02:10:40,292 - INFO - Initial checks done. Running the testcase now 2025-06-26 02:10:40,292 - INFO - 2025-06-26 02:10:40,867 - DEBUG - Response for create_network : {'network': {'id': '29cd670b-1752-44b5-aff2-c85ff78ba971', 'name': 'ctest-vn-10600598', 'tenant_id': '1c0b2ec30ff8454fbf4f10167998e99a', 'project_id': '1c0b2ec30ff8454fbf4f10167998e99a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24956579', 'ctest-vn-10600598'], 'port_security_enabled': True, 'description': ''}} 2025-06-26 02:10:41,071 - DEBUG - Response for create_subnet : {'subnet': {'id': '0a0694cb-b3ff-48aa-8bbb-f2ba906d0fb6', 'name': '', 'tenant_id': '1c0b2ec30ff8454fbf4f10167998e99a', 'network_id': '29cd670b-1752-44b5-aff2-c85ff78ba971', 'ip_version': 4, 'cidr': '27.57.197.64/26', 'allocation_pools': [{'start': '27.57.197.66', 'end': '27.57.197.126'}], 'gateway_ip': '27.57.197.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.57.197.66', 'tags': [], 'project_id': '1c0b2ec30ff8454fbf4f10167998e99a'}} 2025-06-26 02:10:41,095 - INFO - Created VN ctest-vn-10600598 2025-06-26 02:10:41,152 - DEBUG - VN ctest-vn-10600598 UUID is 29cd670b-1752-44b5-aff2-c85ff78ba971 2025-06-26 02:10:41,460 - DEBUG - Response for create_network : {'network': {'id': 'b1248e52-1c77-4591-a20f-71b28a0e98ba', 'name': 'ctest-vn-96154349', 'tenant_id': '1c0b2ec30ff8454fbf4f10167998e99a', 'project_id': '1c0b2ec30ff8454fbf4f10167998e99a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24956579', 'ctest-vn-96154349'], 'port_security_enabled': True, 'description': ''}} 2025-06-26 02:10:41,684 - DEBUG - Response for create_subnet : {'subnet': {'id': '2210ec61-5cd8-4be3-86b1-d524a688bfa8', 'name': '', 'tenant_id': '1c0b2ec30ff8454fbf4f10167998e99a', 'network_id': 'b1248e52-1c77-4591-a20f-71b28a0e98ba', 'ip_version': 4, 'cidr': '31.108.52.128/26', 'allocation_pools': [{'start': '31.108.52.130', 'end': '31.108.52.190'}], 'gateway_ip': '31.108.52.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.108.52.130', 'tags': [], 'project_id': '1c0b2ec30ff8454fbf4f10167998e99a'}} 2025-06-26 02:10:41,704 - INFO - Created VN ctest-vn-96154349 2025-06-26 02:10:41,760 - DEBUG - VN ctest-vn-96154349 UUID is b1248e52-1c77-4591-a20f-71b28a0e98ba 2025-06-26 02:10:41,882 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-24956579:ctest-vn-10600598, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-24956579:ctest-vn-96154349, 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-06-26 02:10:42,194 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '29cd670b-1752-44b5-aff2-c85ff78ba971', 'name': 'ctest-vn-10600598', 'tenant_id': '1c0b2ec30ff8454fbf4f10167998e99a', 'project_id': '1c0b2ec30ff8454fbf4f10167998e99a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0a0694cb-b3ff-48aa-8bbb-f2ba906d0fb6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24956579', 'ctest-vn-10600598'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24956579', 'ctest-policy-allow-all-43321651']], 'subnet_ipam': [{'subnet_cidr': '27.57.197.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-26 02:10:42,442 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b1248e52-1c77-4591-a20f-71b28a0e98ba', 'name': 'ctest-vn-96154349', 'tenant_id': '1c0b2ec30ff8454fbf4f10167998e99a', 'project_id': '1c0b2ec30ff8454fbf4f10167998e99a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2210ec61-5cd8-4be3-86b1-d524a688bfa8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24956579', 'ctest-vn-96154349'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24956579', 'ctest-policy-allow-all-43321651']], 'subnet_ipam': [{'subnet_cidr': '31.108.52.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-26 02:10:42,624 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-26 02:10:42,926 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-26 02:10:42,959 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8bbe1fd2-32ea-48a8-93b9-0bfeeffccd77 2025-06-26 02:10:42,974 - DEBUG - Requesting: http://10.0.0.254:8082/project/1c0b2ec3-0ff8-454f-bf4f-10167998e99a 2025-06-26 02:10:43,072 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/29cd670b-1752-44b5-aff2-c85ff78ba971 2025-06-26 02:10:43,086 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/29cd670b-1752-44b5-aff2-c85ff78ba971 2025-06-26 02:10:43,099 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/26abe816-241f-492a-a860-53538f9afe73 2025-06-26 02:10:43,109 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/26abe816-241f-492a-a860-53538f9afe73 2025-06-26 02:10:43,118 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3cf91ea5-f4aa-46b9-93f6-7a94bce911b8 2025-06-26 02:10:43,127 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-26 02:10:43,127 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/29cd670b-1752-44b5-aff2-c85ff78ba971 2025-06-26 02:10:43,140 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/26abe816-241f-492a-a860-53538f9afe73 2025-06-26 02:10:43,159 - INFO - Verified VN network id 9 for VN 29cd670b-1752-44b5-aff2-c85ff78ba971 2025-06-26 02:10:43,160 - INFO - Verifications in API Server for VN ctest-vn-10600598 passed 2025-06-26 02:10:43,160 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/29cd670b-1752-44b5-aff2-c85ff78ba971 2025-06-26 02:10:43,171 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/26abe816-241f-492a-a860-53538f9afe73 2025-06-26 02:10:43,180 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/26abe816-241f-492a-a860-53538f9afe73 2025-06-26 02:10:43,190 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3cf91ea5-f4aa-46b9-93f6-7a94bce911b8 2025-06-26 02:10:43,206 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24956579:ctest-vn-10600598', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24956579', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3012177023114298549', 'uuid-lslong': '12678416215501941105'}, 'enable': 'true', 'created': '2025-06-26T02:10:40', 'last-modified': '2025-06-26T02:10:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.035689'} 2025-06-26 02:10:43,214 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-26 02:10:43,214 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10600598 passed 2025-06-26 02:10:43,214 - DEBUG - ====Verifying policy data for ctest-vn-10600598 in API_Server ====== 2025-06-26 02:10:43,215 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-26 02:10:43,222 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8bbe1fd2-32ea-48a8-93b9-0bfeeffccd77 2025-06-26 02:10:43,239 - DEBUG - Requesting: http://10.0.0.254:8082/project/1c0b2ec3-0ff8-454f-bf4f-10167998e99a 2025-06-26 02:10:43,327 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/29cd670b-1752-44b5-aff2-c85ff78ba971 2025-06-26 02:10:43,339 - DEBUG - ==>Verifying data for policy with id: e1460a0e-7f0d-44b8-bbce-97b63b45b211, fqn: ['default-domain', 'ctest-TestBasicPolicy-24956579', 'ctest-policy-allow-all-43321651'] 2025-06-26 02:10:43,339 - INFO - VN ctest-vn-10600598 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-26 02:10:43,339 - DEBUG - Verifying the vn in opserver 2025-06-26 02:10:43,339 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24956579:ctest-vn-10600598 virtual network link through opserver 10.0.0.254 2025-06-26 02:10:43,339 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-06-26 02:10:43,643 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-06-26 02:10:43,703 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24956579:ctest-vn-10600598', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24956579:ctest-vn-10600598?flat'} 2025-06-26 02:10:43,703 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24956579:ctest-vn-10600598 is found in opserver 2025-06-26 02:10:43,715 - DEBUG - Do not have enough data to verify VN in agent 2025-06-26 02:10:43,721 - DEBUG - VRF ids for VN ctest-vn-10600598: {} 2025-06-26 02:10:43,721 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-26 02:10:43,728 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8bbe1fd2-32ea-48a8-93b9-0bfeeffccd77 2025-06-26 02:10:43,745 - DEBUG - Requesting: http://10.0.0.254:8082/project/1c0b2ec3-0ff8-454f-bf4f-10167998e99a 2025-06-26 02:10:43,823 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b1248e52-1c77-4591-a20f-71b28a0e98ba 2025-06-26 02:10:43,839 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b1248e52-1c77-4591-a20f-71b28a0e98ba 2025-06-26 02:10:43,851 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ebe82e8e-de82-4951-8b2a-f32947266102 2025-06-26 02:10:43,861 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ebe82e8e-de82-4951-8b2a-f32947266102 2025-06-26 02:10:43,871 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7cca38cc-ba18-481e-bcc8-572467cf652e 2025-06-26 02:10:43,881 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-26 02:10:43,881 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b1248e52-1c77-4591-a20f-71b28a0e98ba 2025-06-26 02:10:43,897 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ebe82e8e-de82-4951-8b2a-f32947266102 2025-06-26 02:10:43,919 - INFO - Verified VN network id 10 for VN b1248e52-1c77-4591-a20f-71b28a0e98ba 2025-06-26 02:10:43,919 - INFO - Verifications in API Server for VN ctest-vn-96154349 passed 2025-06-26 02:10:43,920 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b1248e52-1c77-4591-a20f-71b28a0e98ba 2025-06-26 02:10:43,935 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ebe82e8e-de82-4951-8b2a-f32947266102 2025-06-26 02:10:43,944 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ebe82e8e-de82-4951-8b2a-f32947266102 2025-06-26 02:10:43,954 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7cca38cc-ba18-481e-bcc8-572467cf652e 2025-06-26 02:10:43,970 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24956579:ctest-vn-96154349', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24956579', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12764483727190869393', 'uuid-lslong': '11677677370429315258'}, 'enable': 'true', 'created': '2025-06-26T02:10:41', 'last-modified': '2025-06-26T02:10:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.558913'} 2025-06-26 02:10:43,978 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-26 02:10:43,978 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96154349 passed 2025-06-26 02:10:43,979 - DEBUG - ====Verifying policy data for ctest-vn-96154349 in API_Server ====== 2025-06-26 02:10:43,979 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-26 02:10:43,986 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8bbe1fd2-32ea-48a8-93b9-0bfeeffccd77 2025-06-26 02:10:44,000 - DEBUG - Requesting: http://10.0.0.254:8082/project/1c0b2ec3-0ff8-454f-bf4f-10167998e99a 2025-06-26 02:10:44,071 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b1248e52-1c77-4591-a20f-71b28a0e98ba 2025-06-26 02:10:44,082 - DEBUG - ==>Verifying data for policy with id: e1460a0e-7f0d-44b8-bbce-97b63b45b211, fqn: ['default-domain', 'ctest-TestBasicPolicy-24956579', 'ctest-policy-allow-all-43321651'] 2025-06-26 02:10:44,082 - INFO - VN ctest-vn-96154349 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-26 02:10:44,083 - DEBUG - Verifying the vn in opserver 2025-06-26 02:10:44,083 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24956579:ctest-vn-96154349 virtual network link through opserver 10.0.0.254 2025-06-26 02:10:44,083 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-06-26 02:10:44,094 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24956579:ctest-vn-96154349', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24956579:ctest-vn-96154349?flat'} 2025-06-26 02:10:44,094 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24956579:ctest-vn-96154349 is found in opserver 2025-06-26 02:10:44,106 - DEBUG - Do not have enough data to verify VN in agent 2025-06-26 02:10:44,113 - DEBUG - VRF ids for VN ctest-vn-96154349: {} 2025-06-26 02:10:44,176 - DEBUG - Services list from nova: [, , ] 2025-06-26 02:10:45,483 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3553-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3553-1) 2025-06-26 02:10:46,897 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3553-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3553-1) 2025-06-26 02:10:46,897 - INFO - Waiting for VM ctest-TestBasicPolicy-24956579-29810491 to be up.. 2025-06-26 02:10:46,998 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-26 02:10:52,096 - DEBUG - VM is in ACTIVE state now 2025-06-26 02:10:52,096 - INFO - VM name : ctest-TestBasicPolicy-24956579-29810491 2025-06-26 02:10:52,184 - DEBUG - VM ctest-TestBasicPolicy-24956579-29810491 ID is e89715e9-8b0d-4492-bef4-a5d43f7dc401 2025-06-26 02:10:52,212 - DEBUG - VM ctest-TestBasicPolicy-24956579-29810491 launched on Node cn-jenkins-deploy-platform-ansible-os-3553-1 2025-06-26 02:10:52,310 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/e89715e9-8b0d-4492-bef4-a5d43f7dc401 2025-06-26 02:10:52,321 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/37a73b69-6d61-475d-9903-bd9708e52c0a 2025-06-26 02:10:55,614 - 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-06-26 02:10:55,615 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-24956579-29810491 failed! 2025-06-26 02:10:55,672 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-24956579:ctest-vn-10600598 is 27.57.197.65 and allocation pool is NOT set 2025-06-26 02:10:57,738 - 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=10.0 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.45 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 2.449/6.224/10.000/3.775 ms') 2025-06-26 02:10:57,738 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-24956579-29810491 passed 2025-06-26 02:10:57,892 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-26 02:10:57,892 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-24956579-29810491, IP 27.57.197.67, Port 22 2025-06-26 02:10:57,958 - 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-06-26 02:10:58,050 - DEBUG - VM ctest-TestBasicPolicy-24956579-29810491 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-26 02:11:03,051 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-26 02:11:03,052 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-24956579-29810491, IP 27.57.197.67, Port 22 2025-06-26 02:11:03,227 - DEBUG - VM ctest-TestBasicPolicy-24956579-29810491 is ready for SSH connections 2025-06-26 02:11:03,227 - INFO - Waiting for VM ctest-TestBasicPolicy-24956579-84616003 to be up.. 2025-06-26 02:11:03,331 - DEBUG - VM is in ACTIVE state now 2025-06-26 02:11:03,331 - INFO - VM name : ctest-TestBasicPolicy-24956579-84616003 2025-06-26 02:11:03,419 - DEBUG - VM ctest-TestBasicPolicy-24956579-84616003 ID is bee7d3f8-03eb-4c2c-99d8-ce3ce5c7858c 2025-06-26 02:11:03,419 - DEBUG - VM ctest-TestBasicPolicy-24956579-84616003 launched on Node cn-jenkins-deploy-platform-ansible-os-3553-1 2025-06-26 02:11:03,511 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/bee7d3f8-03eb-4c2c-99d8-ce3ce5c7858c 2025-06-26 02:11:03,524 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/df2ed9a8-92c7-425a-ad49-e5c7e2b7a153 2025-06-26 02:11:04,781 - 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.97 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.415 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.415/1.692/2.970/1.277 ms') 2025-06-26 02:11:04,781 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-24956579-84616003 passed 2025-06-26 02:11:04,936 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-26 02:11:04,936 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-24956579-84616003, IP 31.108.52.131, Port 22 2025-06-26 02:11:05,092 - DEBUG - VM ctest-TestBasicPolicy-24956579-84616003 is ready for SSH connections 2025-06-26 02:11:05,092 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-26 02:11:05,092 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 31.108.52.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-06-26 02:11:05,092 - DEBUG - ping -s 56 -c 3 -W 1 31.108.52.131 2025-06-26 02:11:09,201 - DEBUG - PING 31.108.52.131 (31.108.52.131): 56 data bytes 64 bytes from 31.108.52.131: seq=0 ttl=63 time=4.546 ms 64 bytes from 31.108.52.131: seq=1 ttl=63 time=1.313 ms 64 bytes from 31.108.52.131: seq=2 ttl=63 time=0.804 ms --- 31.108.52.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.804/2.221/4.546 ms 2025-06-26 02:11:09,201 - INFO - Ping to IP 31.108.52.131 from VM ctest-TestBasicPolicy-24956579-29810491 passed 2025-06-26 02:11:09,392 - DEBUG - Policy Update Response {"network-policy": {"uuid": "e1460a0e-7f0d-44b8-bbce-97b63b45b211", "href": "http://10.0.0.254:8082/network-policy/e1460a0e-7f0d-44b8-bbce-97b63b45b211"}} 2025-06-26 02:11:09,392 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-26 02:11:09,392 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 31.108.52.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-06-26 02:11:09,392 - DEBUG - ping -s 56 -c 3 -W 1 31.108.52.131 2025-06-26 02:11:12,604 - DEBUG - PING 31.108.52.131 (31.108.52.131): 56 data bytes 64 bytes from 31.108.52.131: seq=0 ttl=63 time=1.675 ms --- 31.108.52.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.675/1.675/1.675 ms 2025-06-26 02:11:12,604 - WARNING - Ping to IP 31.108.52.131 from VM ctest-TestBasicPolicy-24956579-29810491 failed 2025-06-26 02:11:12,604 - INFO - Deleting VM ctest-TestBasicPolicy-24956579-84616003 2025-06-26 02:11:12,688 - INFO - Deleting VM ctest-TestBasicPolicy-24956579-29810491 2025-06-26 02:11:13,209 - INFO - Deleted policy ctest-policy-allow-all-43321651 2025-06-26 02:11:13,209 - INFO - Deleting VN ctest-vn-96154349 2025-06-26 02:11:13,257 - DEBUG - VN b1248e52-1c77-4591-a20f-71b28a0e98ba still in use: Unable to complete operation on network b1248e52-1c77-4591-a20f-71b28a0e98ba. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-fb32ed81-a310-4618-af41-93823147c925'] 2025-06-26 02:11:13,257 - WARNING - Deleting VN ctest-vn-96154349 failed..Will retry 2025-06-26 02:11:15,384 - DEBUG - Response for deleting network () 2025-06-26 02:11:15,384 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ebe82e8e-de82-4951-8b2a-f32947266102 2025-06-26 02:11:15,394 - DEBUG - Response Code: 404 2025-06-26 02:11:15,395 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-26 02:11:15,403 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8bbe1fd2-32ea-48a8-93b9-0bfeeffccd77 2025-06-26 02:11:15,460 - DEBUG - Requesting: http://10.0.0.254:8082/project/1c0b2ec3-0ff8-454f-bf4f-10167998e99a 2025-06-26 02:11:15,539 - INFO - Validated that VN ctest-vn-96154349 is not found in API Server 2025-06-26 02:11:15,551 - DEBUG - VN ctest-vn-96154349 is not present in Agent 10.0.0.254 2025-06-26 02:11:15,551 - INFO - Validated that VN ctest-vn-96154349 is not in any agent 2025-06-26 02:11:15,570 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-96154349 info 2025-06-26 02:11:15,570 - INFO - Deleting VN ctest-vn-10600598 2025-06-26 02:11:15,693 - DEBUG - Response for deleting network () 2025-06-26 02:11:15,693 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/26abe816-241f-492a-a860-53538f9afe73 2025-06-26 02:11:15,701 - DEBUG - Response Code: 404 2025-06-26 02:11:15,701 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-26 02:11:15,709 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8bbe1fd2-32ea-48a8-93b9-0bfeeffccd77 2025-06-26 02:11:15,762 - DEBUG - Requesting: http://10.0.0.254:8082/project/1c0b2ec3-0ff8-454f-bf4f-10167998e99a 2025-06-26 02:11:15,837 - INFO - Validated that VN ctest-vn-10600598 is not found in API Server 2025-06-26 02:11:15,850 - DEBUG - VN ctest-vn-10600598 is not present in Agent 10.0.0.254 2025-06-26 02:11:15,850 - INFO - Validated that VN ctest-vn-10600598 is not in any agent 2025-06-26 02:11:15,869 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-10600598 info 2025-06-26 02:11:16,123 - DEBUG - No XMPP flaps were noticed during the test
2025-06-26 02:11:16,123 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-06-26 02:11:16,123 - INFO - -------------------------------------------------------------------------------- 2025-06-26 02:11:16,874 - INFO - Deleted project: ctest-TestBasicPolicy-24956579, ID : 1c0b2ec3-0ff8-454f-bf4f-10167998e99a