2025-04-22 20:46:39,021 - INFO - Domain Default found not creating 2025-04-22 20:46:39,173 - INFO - Project ctest-TestBasicPolicy-08853539 not found, creating it 2025-04-22 20:46:39,622 - INFO - Created Project:ctest-TestBasicPolicy-08853539, ID : 3b154aec-370e-44cf-84b0-1c4d1a701571 2025-04-22 20:46:41,172 - INFO - ================================================================================ 2025-04-22 20:46:41,172 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-22 20:46:41,172 - 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-22 20:46:41,426 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-04-22 20:46:41,427 - INFO - Initial checks done. Running the testcase now 2025-04-22 20:46:41,427 - INFO - 2025-04-22 20:46:42,094 - DEBUG - Response for create_network : {'network': {'id': 'df8a5f4f-4ac5-4f89-9c8e-b19165536792', 'name': 'ctest-vn-57879768', 'tenant_id': '3b154aec370e44cf84b01c4d1a701571', 'project_id': '3b154aec370e44cf84b01c4d1a701571', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08853539', 'ctest-vn-57879768'], 'port_security_enabled': True, 'description': ''}} 2025-04-22 20:46:42,312 - DEBUG - Response for create_subnet : {'subnet': {'id': '4abfb318-d50a-40aa-8bde-918f9077f098', 'name': '', 'tenant_id': '3b154aec370e44cf84b01c4d1a701571', 'network_id': 'df8a5f4f-4ac5-4f89-9c8e-b19165536792', 'ip_version': 4, 'cidr': '192.175.39.192/26', 'allocation_pools': [{'start': '192.175.39.194', 'end': '192.175.39.254'}], 'gateway_ip': '192.175.39.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.175.39.194', 'tags': [], 'project_id': '3b154aec370e44cf84b01c4d1a701571'}} 2025-04-22 20:46:42,330 - INFO - Created VN ctest-vn-57879768 2025-04-22 20:46:42,384 - DEBUG - VN ctest-vn-57879768 UUID is df8a5f4f-4ac5-4f89-9c8e-b19165536792 2025-04-22 20:46:42,681 - DEBUG - Response for create_network : {'network': {'id': '60482d3e-aff3-4b5d-8147-31739708ca03', 'name': 'ctest-vn-03630765', 'tenant_id': '3b154aec370e44cf84b01c4d1a701571', 'project_id': '3b154aec370e44cf84b01c4d1a701571', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08853539', 'ctest-vn-03630765'], 'port_security_enabled': True, 'description': ''}} 2025-04-22 20:46:42,899 - DEBUG - Response for create_subnet : {'subnet': {'id': '112d3a9c-0a00-4f42-9228-122a474cb03b', 'name': '', 'tenant_id': '3b154aec370e44cf84b01c4d1a701571', 'network_id': '60482d3e-aff3-4b5d-8147-31739708ca03', 'ip_version': 4, 'cidr': '133.40.205.192/26', 'allocation_pools': [{'start': '133.40.205.194', 'end': '133.40.205.254'}], 'gateway_ip': '133.40.205.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.40.205.194', 'tags': [], 'project_id': '3b154aec370e44cf84b01c4d1a701571'}} 2025-04-22 20:46:42,916 - INFO - Created VN ctest-vn-03630765 2025-04-22 20:46:42,968 - DEBUG - VN ctest-vn-03630765 UUID is 60482d3e-aff3-4b5d-8147-31739708ca03 2025-04-22 20:46:43,080 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-08853539:ctest-vn-57879768, 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-08853539:ctest-vn-03630765, 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-22 20:46:43,377 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'df8a5f4f-4ac5-4f89-9c8e-b19165536792', 'name': 'ctest-vn-57879768', 'tenant_id': '3b154aec370e44cf84b01c4d1a701571', 'project_id': '3b154aec370e44cf84b01c4d1a701571', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4abfb318-d50a-40aa-8bde-918f9077f098'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08853539', 'ctest-vn-57879768'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08853539', 'ctest-policy-allow-all-49961897']], 'subnet_ipam': [{'subnet_cidr': '192.175.39.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-22 20:46:43,614 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '60482d3e-aff3-4b5d-8147-31739708ca03', 'name': 'ctest-vn-03630765', 'tenant_id': '3b154aec370e44cf84b01c4d1a701571', 'project_id': '3b154aec370e44cf84b01c4d1a701571', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['112d3a9c-0a00-4f42-9228-122a474cb03b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08853539', 'ctest-vn-03630765'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08853539', 'ctest-policy-allow-all-49961897']], 'subnet_ipam': [{'subnet_cidr': '133.40.205.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-22 20:46:43,772 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-22 20:46:44,119 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-22 20:46:44,149 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d0c349e1-aa54-41c9-a81e-44a5a6e075d5 2025-04-22 20:46:44,167 - DEBUG - Requesting: http://10.0.0.50:8082/project/3b154aec-370e-44cf-84b0-1c4d1a701571 2025-04-22 20:46:44,245 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/df8a5f4f-4ac5-4f89-9c8e-b19165536792 2025-04-22 20:46:44,259 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/df8a5f4f-4ac5-4f89-9c8e-b19165536792 2025-04-22 20:46:44,272 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d7ade009-0740-4e71-92c9-470911d8f182 2025-04-22 20:46:44,280 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d7ade009-0740-4e71-92c9-470911d8f182 2025-04-22 20:46:44,287 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0092f4be-53cb-4d01-ba5e-8cb66b87f6bf 2025-04-22 20:46:44,293 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-22 20:46:44,293 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/df8a5f4f-4ac5-4f89-9c8e-b19165536792 2025-04-22 20:46:44,302 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d7ade009-0740-4e71-92c9-470911d8f182 2025-04-22 20:46:44,315 - INFO - Verified VN network id 9 for VN df8a5f4f-4ac5-4f89-9c8e-b19165536792 2025-04-22 20:46:44,315 - INFO - Verifications in API Server for VN ctest-vn-57879768 passed 2025-04-22 20:46:44,315 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/df8a5f4f-4ac5-4f89-9c8e-b19165536792 2025-04-22 20:46:44,325 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d7ade009-0740-4e71-92c9-470911d8f182 2025-04-22 20:46:44,331 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d7ade009-0740-4e71-92c9-470911d8f182 2025-04-22 20:46:44,338 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0092f4be-53cb-4d01-ba5e-8cb66b87f6bf 2025-04-22 20:46:44,357 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08853539:ctest-vn-57879768', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08853539', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16107791811405500297', 'uuid-lslong': '11281149354638010258'}, 'enable': 'true', 'created': '2025-04-22T20:46:42', 'last-modified': '2025-04-22T20:46:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.003569'} 2025-04-22 20:46:44,364 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-22 20:46:44,365 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57879768 passed 2025-04-22 20:46:44,365 - DEBUG - ====Verifying policy data for ctest-vn-57879768 in API_Server ====== 2025-04-22 20:46:44,365 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-22 20:46:44,371 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d0c349e1-aa54-41c9-a81e-44a5a6e075d5 2025-04-22 20:46:44,383 - DEBUG - Requesting: http://10.0.0.50:8082/project/3b154aec-370e-44cf-84b0-1c4d1a701571 2025-04-22 20:46:44,466 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/df8a5f4f-4ac5-4f89-9c8e-b19165536792 2025-04-22 20:46:44,481 - DEBUG - ==>Verifying data for policy with id: 29e0f5a2-7cc7-4e8f-b729-9436d70fe0da, fqn: ['default-domain', 'ctest-TestBasicPolicy-08853539', 'ctest-policy-allow-all-49961897'] 2025-04-22 20:46:44,481 - INFO - VN ctest-vn-57879768 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-22 20:46:44,481 - DEBUG - Verifying the vn in opserver 2025-04-22 20:46:44,481 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08853539:ctest-vn-57879768 virtual network link through opserver 10.0.0.50 2025-04-22 20:46:44,481 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-04-22 20:46:44,816 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-04-22 20:46:44,875 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08853539:ctest-vn-57879768', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08853539:ctest-vn-57879768?flat'} 2025-04-22 20:46:44,876 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08853539:ctest-vn-57879768 is found in opserver 2025-04-22 20:46:44,887 - DEBUG - Do not have enough data to verify VN in agent 2025-04-22 20:46:44,892 - DEBUG - VRF ids for VN ctest-vn-57879768: {} 2025-04-22 20:46:44,892 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-22 20:46:44,898 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d0c349e1-aa54-41c9-a81e-44a5a6e075d5 2025-04-22 20:46:44,910 - DEBUG - Requesting: http://10.0.0.50:8082/project/3b154aec-370e-44cf-84b0-1c4d1a701571 2025-04-22 20:46:44,985 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/60482d3e-aff3-4b5d-8147-31739708ca03 2025-04-22 20:46:44,998 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/60482d3e-aff3-4b5d-8147-31739708ca03 2025-04-22 20:46:45,007 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6bfbfc2e-b502-4cb3-b6b6-e56e84fd2475 2025-04-22 20:46:45,015 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6bfbfc2e-b502-4cb3-b6b6-e56e84fd2475 2025-04-22 20:46:45,022 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9e9913ac-fa41-445d-9c1e-d63bbe8de9f6 2025-04-22 20:46:45,028 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-22 20:46:45,028 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/60482d3e-aff3-4b5d-8147-31739708ca03 2025-04-22 20:46:45,037 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6bfbfc2e-b502-4cb3-b6b6-e56e84fd2475 2025-04-22 20:46:45,053 - INFO - Verified VN network id 10 for VN 60482d3e-aff3-4b5d-8147-31739708ca03 2025-04-22 20:46:45,053 - INFO - Verifications in API Server for VN ctest-vn-03630765 passed 2025-04-22 20:46:45,053 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/60482d3e-aff3-4b5d-8147-31739708ca03 2025-04-22 20:46:45,065 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6bfbfc2e-b502-4cb3-b6b6-e56e84fd2475 2025-04-22 20:46:45,073 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6bfbfc2e-b502-4cb3-b6b6-e56e84fd2475 2025-04-22 20:46:45,081 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9e9913ac-fa41-445d-9c1e-d63bbe8de9f6 2025-04-22 20:46:45,093 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08853539:ctest-vn-03630765', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08853539', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6937844973227428701', 'uuid-lslong': '9315468726764096003'}, 'enable': 'true', 'created': '2025-04-22T20:46:42', 'last-modified': '2025-04-22T20:46:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.500968'} 2025-04-22 20:46:45,100 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-22 20:46:45,100 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03630765 passed 2025-04-22 20:46:45,100 - DEBUG - ====Verifying policy data for ctest-vn-03630765 in API_Server ====== 2025-04-22 20:46:45,100 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-22 20:46:45,105 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d0c349e1-aa54-41c9-a81e-44a5a6e075d5 2025-04-22 20:46:45,117 - DEBUG - Requesting: http://10.0.0.50:8082/project/3b154aec-370e-44cf-84b0-1c4d1a701571 2025-04-22 20:46:45,190 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/60482d3e-aff3-4b5d-8147-31739708ca03 2025-04-22 20:46:45,200 - DEBUG - ==>Verifying data for policy with id: 29e0f5a2-7cc7-4e8f-b729-9436d70fe0da, fqn: ['default-domain', 'ctest-TestBasicPolicy-08853539', 'ctest-policy-allow-all-49961897'] 2025-04-22 20:46:45,200 - INFO - VN ctest-vn-03630765 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-22 20:46:45,200 - DEBUG - Verifying the vn in opserver 2025-04-22 20:46:45,200 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08853539:ctest-vn-03630765 virtual network link through opserver 10.0.0.50 2025-04-22 20:46:45,200 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-04-22 20:46:45,211 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08853539:ctest-vn-03630765', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08853539:ctest-vn-03630765?flat'} 2025-04-22 20:46:45,211 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08853539:ctest-vn-03630765 is found in opserver 2025-04-22 20:46:45,221 - DEBUG - Do not have enough data to verify VN in agent 2025-04-22 20:46:45,226 - DEBUG - VRF ids for VN ctest-vn-03630765: {} 2025-04-22 20:46:45,285 - DEBUG - Services list from nova: [, , ] 2025-04-22 20:46:46,373 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3173-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3173-1) 2025-04-22 20:46:47,752 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3173-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3173-1) 2025-04-22 20:46:47,752 - INFO - Waiting for VM ctest-TestBasicPolicy-08853539-11780032 to be up.. 2025-04-22 20:46:47,850 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-22 20:46:53,023 - DEBUG - VM is in ACTIVE state now 2025-04-22 20:46:53,023 - INFO - VM name : ctest-TestBasicPolicy-08853539-11780032 2025-04-22 20:46:53,194 - DEBUG - VM ctest-TestBasicPolicy-08853539-11780032 ID is f1389176-4ecd-4940-a3a2-0c6a83359e9c 2025-04-22 20:46:53,240 - DEBUG - VM ctest-TestBasicPolicy-08853539-11780032 launched on Node cn-jenkins-deploy-platform-ansible-os-3173-1 2025-04-22 20:46:53,347 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/f1389176-4ecd-4940-a3a2-0c6a83359e9c 2025-04-22 20:46:53,361 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/75828440-4b0f-48fe-bc85-cb40b065ef00 2025-04-22 20:46:56,635 - 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 1031ms') 2025-04-22 20:46:56,636 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08853539-11780032 failed! 2025-04-22 20:46:56,692 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-08853539:ctest-vn-57879768 is 192.175.39.193 and allocation pool is NOT set 2025-04-22 20:46:58,760 - 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=3.90 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.49 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 = 3.494/3.697/3.901/0.203 ms') 2025-04-22 20:46:58,760 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08853539-11780032 passed 2025-04-22 20:46:58,916 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 20:46:58,916 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-08853539-11780032, IP 192.175.39.195, Port 22 2025-04-22 20:46:58,983 - 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-04-22 20:46:59,077 - DEBUG - VM ctest-TestBasicPolicy-08853539-11780032 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-22 20:47:04,078 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 20:47:04,078 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-08853539-11780032, IP 192.175.39.195, Port 22 2025-04-22 20:47:04,235 - DEBUG - VM ctest-TestBasicPolicy-08853539-11780032 is ready for SSH connections 2025-04-22 20:47:04,236 - INFO - Waiting for VM ctest-TestBasicPolicy-08853539-79104535 to be up.. 2025-04-22 20:47:04,316 - DEBUG - VM is in ACTIVE state now 2025-04-22 20:47:04,316 - INFO - VM name : ctest-TestBasicPolicy-08853539-79104535 2025-04-22 20:47:04,405 - DEBUG - VM ctest-TestBasicPolicy-08853539-79104535 ID is 55ec5f0f-d424-41f2-a20f-45c6c2fcf1e5 2025-04-22 20:47:04,405 - DEBUG - VM ctest-TestBasicPolicy-08853539-79104535 launched on Node cn-jenkins-deploy-platform-ansible-os-3173-1 2025-04-22 20:47:04,483 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/55ec5f0f-d424-41f2-a20f-45c6c2fcf1e5 2025-04-22 20:47:04,492 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/368100fd-d2ce-4146-87de-64e908ff70ea 2025-04-22 20:47:05,728 - 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.21 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.329 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.329/1.768/3.207/1.439 ms') 2025-04-22 20:47:05,728 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-08853539-79104535 passed 2025-04-22 20:47:05,880 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 20:47:05,880 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-08853539-79104535, IP 133.40.205.195, Port 22 2025-04-22 20:47:06,060 - DEBUG - VM ctest-TestBasicPolicy-08853539-79104535 is ready for SSH connections 2025-04-22 20:47:06,060 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 20:47:06,060 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 133.40.205.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-04-22 20:47:06,060 - DEBUG - ping -s 56 -c 3 -W 1 133.40.205.195 2025-04-22 20:47:09,758 - DEBUG - PING 133.40.205.195 (133.40.205.195): 56 data bytes 64 bytes from 133.40.205.195: seq=0 ttl=63 time=3.638 ms 64 bytes from 133.40.205.195: seq=1 ttl=63 time=1.096 ms 64 bytes from 133.40.205.195: seq=2 ttl=63 time=1.009 ms --- 133.40.205.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.009/1.914/3.638 ms 2025-04-22 20:47:09,758 - INFO - Ping to IP 133.40.205.195 from VM ctest-TestBasicPolicy-08853539-11780032 passed 2025-04-22 20:47:09,948 - DEBUG - Policy Update Response {"network-policy": {"uuid": "29e0f5a2-7cc7-4e8f-b729-9436d70fe0da", "href": "http://10.0.0.50:8082/network-policy/29e0f5a2-7cc7-4e8f-b729-9436d70fe0da"}} 2025-04-22 20:47:09,948 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 20:47:09,948 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 133.40.205.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-04-22 20:47:09,948 - DEBUG - ping -s 56 -c 3 -W 1 133.40.205.195 2025-04-22 20:47:13,162 - DEBUG - PING 133.40.205.195 (133.40.205.195): 56 data bytes 64 bytes from 133.40.205.195: seq=0 ttl=63 time=1.448 ms --- 133.40.205.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.448/1.448/1.448 ms 2025-04-22 20:47:13,162 - WARNING - Ping to IP 133.40.205.195 from VM ctest-TestBasicPolicy-08853539-11780032 failed 2025-04-22 20:47:13,163 - INFO - Deleting VM ctest-TestBasicPolicy-08853539-79104535 2025-04-22 20:47:13,227 - INFO - Deleting VM ctest-TestBasicPolicy-08853539-11780032 2025-04-22 20:47:13,651 - INFO - Deleted policy ctest-policy-allow-all-49961897 2025-04-22 20:47:13,651 - INFO - Deleting VN ctest-vn-03630765 2025-04-22 20:47:13,702 - DEBUG - VN 60482d3e-aff3-4b5d-8147-31739708ca03 still in use: Unable to complete operation on network 60482d3e-aff3-4b5d-8147-31739708ca03. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-136b72b8-0cc8-49da-837c-884682cc4871'] 2025-04-22 20:47:13,702 - WARNING - Deleting VN ctest-vn-03630765 failed..Will retry 2025-04-22 20:47:15,829 - DEBUG - Response for deleting network () 2025-04-22 20:47:15,829 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6bfbfc2e-b502-4cb3-b6b6-e56e84fd2475 2025-04-22 20:47:15,834 - DEBUG - Response Code: 404 2025-04-22 20:47:15,834 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-22 20:47:15,842 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d0c349e1-aa54-41c9-a81e-44a5a6e075d5 2025-04-22 20:47:15,899 - DEBUG - Requesting: http://10.0.0.50:8082/project/3b154aec-370e-44cf-84b0-1c4d1a701571 2025-04-22 20:47:15,973 - INFO - Validated that VN ctest-vn-03630765 is not found in API Server 2025-04-22 20:47:15,984 - DEBUG - VN ctest-vn-03630765 is not present in Agent 10.0.0.50 2025-04-22 20:47:15,984 - INFO - Validated that VN ctest-vn-03630765 is not in any agent 2025-04-22 20:47:16,000 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-03630765 info 2025-04-22 20:47:16,000 - INFO - Deleting VN ctest-vn-57879768 2025-04-22 20:47:16,104 - DEBUG - Response for deleting network () 2025-04-22 20:47:16,104 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d7ade009-0740-4e71-92c9-470911d8f182 2025-04-22 20:47:16,113 - DEBUG - Response Code: 404 2025-04-22 20:47:16,113 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-22 20:47:16,119 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d0c349e1-aa54-41c9-a81e-44a5a6e075d5 2025-04-22 20:47:16,180 - DEBUG - Requesting: http://10.0.0.50:8082/project/3b154aec-370e-44cf-84b0-1c4d1a701571 2025-04-22 20:47:16,252 - INFO - Validated that VN ctest-vn-57879768 is not found in API Server 2025-04-22 20:47:16,266 - DEBUG - VN ctest-vn-57879768 is not present in Agent 10.0.0.50 2025-04-22 20:47:16,266 - INFO - Validated that VN ctest-vn-57879768 is not in any agent 2025-04-22 20:47:16,282 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-57879768 info 2025-04-22 20:47:16,538 - DEBUG - No XMPP flaps were noticed during the test 2025-04-22 20:47:16,538 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-04-22 20:47:16,538 - INFO - -------------------------------------------------------------------------------- 2025-04-22 20:47:17,282 - INFO - Deleted project: ctest-TestBasicPolicy-08853539, ID : 3b154aec-370e-44cf-84b0-1c4d1a701571