2025-03-28 15:55:47,313 - INFO - Domain Default found not creating 2025-03-28 15:55:47,482 - INFO - Project ctest-TestBasicPolicy-25687656 not found, creating it 2025-03-28 15:55:47,984 - INFO - Created Project:ctest-TestBasicPolicy-25687656, ID : 41532f61-f1a0-4e1b-a038-86bc72ea10b3 2025-03-28 15:55:49,516 - INFO - ================================================================================ 2025-03-28 15:55:49,516 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-28 15:55:49,516 - 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-03-28 15:55:49,770 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.23': '0'}} with 2025-03-28 15:55:49,770 - INFO - Initial checks done. Running the testcase now 2025-03-28 15:55:49,771 - INFO - 2025-03-28 15:55:50,362 - DEBUG - Response for create_network : {'network': {'id': '11b2a032-f351-4093-96a2-dd20ef99aa07', 'name': 'ctest-vn-56341898', 'tenant_id': '41532f61f1a04e1ba03886bc72ea10b3', 'project_id': '41532f61f1a04e1ba03886bc72ea10b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25687656', 'ctest-vn-56341898'], 'port_security_enabled': True, 'description': ''}} 2025-03-28 15:55:50,530 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b68e989d-4d43-4138-a6a9-bae07e51bccf', 'name': '', 'tenant_id': '41532f61f1a04e1ba03886bc72ea10b3', 'network_id': '11b2a032-f351-4093-96a2-dd20ef99aa07', 'ip_version': 4, 'cidr': '49.168.179.0/26', 'allocation_pools': [{'start': '49.168.179.2', 'end': '49.168.179.62'}], 'gateway_ip': '49.168.179.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.168.179.2', 'tags': [], 'project_id': '41532f61f1a04e1ba03886bc72ea10b3'}} 2025-03-28 15:55:50,549 - INFO - Created VN ctest-vn-56341898 2025-03-28 15:55:50,604 - DEBUG - VN ctest-vn-56341898 UUID is 11b2a032-f351-4093-96a2-dd20ef99aa07 2025-03-28 15:55:50,914 - DEBUG - Response for create_network : {'network': {'id': '0dbe7c7b-a7fe-4a4e-be95-de29e0a9e7ab', 'name': 'ctest-vn-00650476', 'tenant_id': '41532f61f1a04e1ba03886bc72ea10b3', 'project_id': '41532f61f1a04e1ba03886bc72ea10b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25687656', 'ctest-vn-00650476'], 'port_security_enabled': True, 'description': ''}} 2025-03-28 15:55:51,099 - DEBUG - Response for create_subnet : {'subnet': {'id': '505c680f-8dcb-45ed-9a20-47ebceb084dc', 'name': '', 'tenant_id': '41532f61f1a04e1ba03886bc72ea10b3', 'network_id': '0dbe7c7b-a7fe-4a4e-be95-de29e0a9e7ab', 'ip_version': 4, 'cidr': '182.33.146.0/26', 'allocation_pools': [{'start': '182.33.146.2', 'end': '182.33.146.62'}], 'gateway_ip': '182.33.146.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '182.33.146.2', 'tags': [], 'project_id': '41532f61f1a04e1ba03886bc72ea10b3'}} 2025-03-28 15:55:51,118 - INFO - Created VN ctest-vn-00650476 2025-03-28 15:55:51,172 - DEBUG - VN ctest-vn-00650476 UUID is 0dbe7c7b-a7fe-4a4e-be95-de29e0a9e7ab 2025-03-28 15:55:51,290 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-25687656:ctest-vn-56341898, 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-25687656:ctest-vn-00650476, 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-03-28 15:55:51,593 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '11b2a032-f351-4093-96a2-dd20ef99aa07', 'name': 'ctest-vn-56341898', 'tenant_id': '41532f61f1a04e1ba03886bc72ea10b3', 'project_id': '41532f61f1a04e1ba03886bc72ea10b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b68e989d-4d43-4138-a6a9-bae07e51bccf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25687656', 'ctest-vn-56341898'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25687656', 'ctest-policy-allow-all-14619240']], 'subnet_ipam': [{'subnet_cidr': '49.168.179.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-28 15:55:51,881 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0dbe7c7b-a7fe-4a4e-be95-de29e0a9e7ab', 'name': 'ctest-vn-00650476', 'tenant_id': '41532f61f1a04e1ba03886bc72ea10b3', 'project_id': '41532f61f1a04e1ba03886bc72ea10b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['505c680f-8dcb-45ed-9a20-47ebceb084dc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25687656', 'ctest-vn-00650476'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25687656', 'ctest-policy-allow-all-14619240']], 'subnet_ipam': [{'subnet_cidr': '182.33.146.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-28 15:55:52,036 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2025-03-28 15:55:52,339 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2025-03-28 15:55:52,373 - DEBUG - Requesting: http://10.0.0.34:8082/domain/6c69f704-dec1-46ab-85b7-4bac4b91b473 2025-03-28 15:55:52,391 - DEBUG - Requesting: http://10.0.0.34:8082/project/41532f61-f1a0-4e1b-a038-86bc72ea10b3 2025-03-28 15:55:52,472 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/11b2a032-f351-4093-96a2-dd20ef99aa07 2025-03-28 15:55:52,487 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/11b2a032-f351-4093-96a2-dd20ef99aa07 2025-03-28 15:55:52,499 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/f8ac51cc-62a0-437e-8c7f-fcba3071dfed 2025-03-28 15:55:52,509 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/f8ac51cc-62a0-437e-8c7f-fcba3071dfed 2025-03-28 15:55:52,519 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/59e00167-e874-46fd-b456-b757c2d27399 2025-03-28 15:55:52,527 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-28 15:55:52,527 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/11b2a032-f351-4093-96a2-dd20ef99aa07 2025-03-28 15:55:52,537 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/f8ac51cc-62a0-437e-8c7f-fcba3071dfed 2025-03-28 15:55:52,555 - INFO - Verified VN network id 8 for VN 11b2a032-f351-4093-96a2-dd20ef99aa07 2025-03-28 15:55:52,556 - INFO - Verifications in API Server for VN ctest-vn-56341898 passed 2025-03-28 15:55:52,556 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/11b2a032-f351-4093-96a2-dd20ef99aa07 2025-03-28 15:55:52,569 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/f8ac51cc-62a0-437e-8c7f-fcba3071dfed 2025-03-28 15:55:52,578 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/f8ac51cc-62a0-437e-8c7f-fcba3071dfed 2025-03-28 15:55:52,587 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/59e00167-e874-46fd-b456-b757c2d27399 2025-03-28 15:55:52,601 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25687656:ctest-vn-56341898', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25687656', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1275257785190269075', 'uuid-lslong': '10854481185444833799'}, 'enable': 'true', 'created': '2025-03-28T15:55:50', 'last-modified': '2025-03-28T15:55:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.029874'} 2025-03-28 15:55:52,609 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-28 15:55:52,609 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56341898 passed 2025-03-28 15:55:52,609 - DEBUG - ====Verifying policy data for ctest-vn-56341898 in API_Server ====== 2025-03-28 15:55:52,609 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2025-03-28 15:55:52,617 - DEBUG - Requesting: http://10.0.0.34:8082/domain/6c69f704-dec1-46ab-85b7-4bac4b91b473 2025-03-28 15:55:52,635 - DEBUG - Requesting: http://10.0.0.34:8082/project/41532f61-f1a0-4e1b-a038-86bc72ea10b3 2025-03-28 15:55:52,715 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/11b2a032-f351-4093-96a2-dd20ef99aa07 2025-03-28 15:55:52,726 - DEBUG - ==>Verifying data for policy with id: 8fb2c930-843e-4ec6-8610-4932f999b9ef, fqn: ['default-domain', 'ctest-TestBasicPolicy-25687656', 'ctest-policy-allow-all-14619240'] 2025-03-28 15:55:52,726 - INFO - VN ctest-vn-56341898 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-28 15:55:52,727 - DEBUG - Verifying the vn in opserver 2025-03-28 15:55:52,727 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25687656:ctest-vn-56341898 virtual network link through opserver 10.0.0.34 2025-03-28 15:55:52,727 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks 2025-03-28 15:55:53,020 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks 2025-03-28 15:55:53,081 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25687656:ctest-vn-56341898', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25687656:ctest-vn-56341898?flat'} 2025-03-28 15:55:53,081 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25687656:ctest-vn-56341898 is found in opserver 2025-03-28 15:55:53,092 - DEBUG - Do not have enough data to verify VN in agent 2025-03-28 15:55:53,097 - DEBUG - VRF ids for VN ctest-vn-56341898: {} 2025-03-28 15:55:53,097 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2025-03-28 15:55:53,103 - DEBUG - Requesting: http://10.0.0.34:8082/domain/6c69f704-dec1-46ab-85b7-4bac4b91b473 2025-03-28 15:55:53,115 - DEBUG - Requesting: http://10.0.0.34:8082/project/41532f61-f1a0-4e1b-a038-86bc72ea10b3 2025-03-28 15:55:53,192 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/0dbe7c7b-a7fe-4a4e-be95-de29e0a9e7ab 2025-03-28 15:55:53,204 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/0dbe7c7b-a7fe-4a4e-be95-de29e0a9e7ab 2025-03-28 15:55:53,217 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/d0567d4f-f141-452f-b6fb-05fb02b7c573 2025-03-28 15:55:53,227 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/d0567d4f-f141-452f-b6fb-05fb02b7c573 2025-03-28 15:55:53,238 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/c7a253d8-b167-4b60-9978-a6388af5bb78 2025-03-28 15:55:53,245 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-28 15:55:53,245 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/0dbe7c7b-a7fe-4a4e-be95-de29e0a9e7ab 2025-03-28 15:55:53,255 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/d0567d4f-f141-452f-b6fb-05fb02b7c573 2025-03-28 15:55:53,270 - INFO - Verified VN network id 9 for VN 0dbe7c7b-a7fe-4a4e-be95-de29e0a9e7ab 2025-03-28 15:55:53,270 - INFO - Verifications in API Server for VN ctest-vn-00650476 passed 2025-03-28 15:55:53,270 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/0dbe7c7b-a7fe-4a4e-be95-de29e0a9e7ab 2025-03-28 15:55:53,282 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/d0567d4f-f141-452f-b6fb-05fb02b7c573 2025-03-28 15:55:53,289 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/d0567d4f-f141-452f-b6fb-05fb02b7c573 2025-03-28 15:55:53,296 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/c7a253d8-b167-4b60-9978-a6388af5bb78 2025-03-28 15:55:53,309 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25687656:ctest-vn-00650476', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25687656', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '990365838609369678', 'uuid-lslong': '13733126910180452267'}, 'enable': 'true', 'created': '2025-03-28T15:55:50', 'last-modified': '2025-03-28T15:55:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.494700'} 2025-03-28 15:55:53,316 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-28 15:55:53,316 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00650476 passed 2025-03-28 15:55:53,316 - DEBUG - ====Verifying policy data for ctest-vn-00650476 in API_Server ====== 2025-03-28 15:55:53,316 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2025-03-28 15:55:53,322 - DEBUG - Requesting: http://10.0.0.34:8082/domain/6c69f704-dec1-46ab-85b7-4bac4b91b473 2025-03-28 15:55:53,334 - DEBUG - Requesting: http://10.0.0.34:8082/project/41532f61-f1a0-4e1b-a038-86bc72ea10b3 2025-03-28 15:55:53,411 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/0dbe7c7b-a7fe-4a4e-be95-de29e0a9e7ab 2025-03-28 15:55:53,421 - DEBUG - ==>Verifying data for policy with id: 8fb2c930-843e-4ec6-8610-4932f999b9ef, fqn: ['default-domain', 'ctest-TestBasicPolicy-25687656', 'ctest-policy-allow-all-14619240'] 2025-03-28 15:55:53,421 - INFO - VN ctest-vn-00650476 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-28 15:55:53,421 - DEBUG - Verifying the vn in opserver 2025-03-28 15:55:53,421 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25687656:ctest-vn-00650476 virtual network link through opserver 10.0.0.34 2025-03-28 15:55:53,421 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks 2025-03-28 15:55:53,432 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25687656:ctest-vn-00650476', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25687656:ctest-vn-00650476?flat'} 2025-03-28 15:55:53,432 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25687656:ctest-vn-00650476 is found in opserver 2025-03-28 15:55:53,443 - DEBUG - Do not have enough data to verify VN in agent 2025-03-28 15:55:53,449 - DEBUG - VRF ids for VN ctest-vn-00650476: {} 2025-03-28 15:55:53,513 - DEBUG - Services list from nova: [, , ] 2025-03-28 15:55:54,666 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2991-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2991-1) 2025-03-28 15:55:55,812 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2991-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2991-1) 2025-03-28 15:55:55,812 - INFO - Waiting for VM ctest-TestBasicPolicy-25687656-64676260 to be up.. 2025-03-28 15:55:55,896 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-28 15:56:00,983 - DEBUG - VM is in ACTIVE state now 2025-03-28 15:56:00,983 - INFO - VM name : ctest-TestBasicPolicy-25687656-64676260 2025-03-28 15:56:01,078 - DEBUG - VM ctest-TestBasicPolicy-25687656-64676260 ID is 5af2c71f-38d7-4764-b789-d2bcc1349486 2025-03-28 15:56:01,099 - DEBUG - VM ctest-TestBasicPolicy-25687656-64676260 launched on Node cn-jenkins-deploy-platform-ansible-os-2991-1 2025-03-28 15:56:01,181 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/5af2c71f-38d7-4764-b789-d2bcc1349486 2025-03-28 15:56:01,193 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/246e4510-a54f-4c45-a35d-ecea88925793 2025-03-28 15:56:04,434 - 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 1018ms') 2025-03-28 15:56:04,435 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-25687656-64676260 failed! 2025-03-28 15:56:04,492 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-25687656:ctest-vn-56341898 is 49.168.179.1 and allocation pool is NOT set 2025-03-28 15:56:06,557 - 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=11.0 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.02 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 3.024/7.034/11.045/4.010 ms') 2025-03-28 15:56:06,558 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-25687656-64676260 passed 2025-03-28 15:56:06,716 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 15:56:06,716 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-25687656-64676260, IP 49.168.179.3, Port 22 2025-03-28 15:56:06,782 - 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-03-28 15:56:06,873 - DEBUG - VM ctest-TestBasicPolicy-25687656-64676260 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-28 15:56:11,873 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 15:56:11,874 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-25687656-64676260, IP 49.168.179.3, Port 22 2025-03-28 15:56:12,043 - DEBUG - VM ctest-TestBasicPolicy-25687656-64676260 is ready for SSH connections 2025-03-28 15:56:12,044 - INFO - Waiting for VM ctest-TestBasicPolicy-25687656-15531177 to be up.. 2025-03-28 15:56:12,132 - DEBUG - VM is in ACTIVE state now 2025-03-28 15:56:12,132 - INFO - VM name : ctest-TestBasicPolicy-25687656-15531177 2025-03-28 15:56:12,216 - DEBUG - VM ctest-TestBasicPolicy-25687656-15531177 ID is fd06ca24-e32b-4885-8fdb-6a4c74eec630 2025-03-28 15:56:12,217 - DEBUG - VM ctest-TestBasicPolicy-25687656-15531177 launched on Node cn-jenkins-deploy-platform-ansible-os-2991-1 2025-03-28 15:56:12,315 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/fd06ca24-e32b-4885-8fdb-6a4c74eec630 2025-03-28 15:56:12,326 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/04090b40-5633-4ddb-9082-00ab5d78b9dd 2025-03-28 15:56:13,563 - 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.35 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.443 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.443/1.897/3.352/1.454 ms') 2025-03-28 15:56:13,564 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-25687656-15531177 passed 2025-03-28 15:56:13,716 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 15:56:13,716 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-25687656-15531177, IP 182.33.146.3, Port 22 2025-03-28 15:56:13,887 - DEBUG - VM ctest-TestBasicPolicy-25687656-15531177 is ready for SSH connections 2025-03-28 15:56:13,887 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 15:56:13,887 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 182.33.146.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.34, gateway password: c0ntrail123 2025-03-28 15:56:13,887 - DEBUG - ping -s 56 -c 3 -W 1 182.33.146.3 2025-03-28 15:56:17,569 - DEBUG - PING 182.33.146.3 (182.33.146.3): 56 data bytes 64 bytes from 182.33.146.3: seq=0 ttl=63 time=3.274 ms 64 bytes from 182.33.146.3: seq=1 ttl=63 time=1.157 ms 64 bytes from 182.33.146.3: seq=2 ttl=63 time=1.108 ms --- 182.33.146.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.108/1.846/3.274 ms 2025-03-28 15:56:17,569 - INFO - Ping to IP 182.33.146.3 from VM ctest-TestBasicPolicy-25687656-64676260 passed 2025-03-28 15:56:17,752 - DEBUG - Policy Update Response {"network-policy": {"uuid": "8fb2c930-843e-4ec6-8610-4932f999b9ef", "href": "http://10.0.0.34:8082/network-policy/8fb2c930-843e-4ec6-8610-4932f999b9ef"}} 2025-03-28 15:56:17,752 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 15:56:17,752 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 182.33.146.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.34, gateway password: c0ntrail123 2025-03-28 15:56:17,752 - DEBUG - ping -s 56 -c 3 -W 1 182.33.146.3 2025-03-28 15:56:20,953 - DEBUG - PING 182.33.146.3 (182.33.146.3): 56 data bytes 64 bytes from 182.33.146.3: seq=0 ttl=63 time=1.521 ms --- 182.33.146.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.521/1.521/1.521 ms 2025-03-28 15:56:20,953 - WARNING - Ping to IP 182.33.146.3 from VM ctest-TestBasicPolicy-25687656-64676260 failed 2025-03-28 15:56:20,954 - INFO - Deleting VM ctest-TestBasicPolicy-25687656-15531177 2025-03-28 15:56:21,025 - INFO - Deleting VM ctest-TestBasicPolicy-25687656-64676260 2025-03-28 15:56:21,437 - INFO - Deleted policy ctest-policy-allow-all-14619240 2025-03-28 15:56:21,437 - INFO - Deleting VN ctest-vn-00650476 2025-03-28 15:56:21,477 - DEBUG - VN 0dbe7c7b-a7fe-4a4e-be95-de29e0a9e7ab still in use: Unable to complete operation on network 0dbe7c7b-a7fe-4a4e-be95-de29e0a9e7ab. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-75a3f8b0-ef8b-437e-9237-5b0d3ee3f177'] 2025-03-28 15:56:21,478 - WARNING - Deleting VN ctest-vn-00650476 failed..Will retry 2025-03-28 15:56:23,590 - DEBUG - Response for deleting network () 2025-03-28 15:56:23,590 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/d0567d4f-f141-452f-b6fb-05fb02b7c573 2025-03-28 15:56:23,599 - DEBUG - Response Code: 404 2025-03-28 15:56:23,599 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2025-03-28 15:56:23,605 - DEBUG - Requesting: http://10.0.0.34:8082/domain/6c69f704-dec1-46ab-85b7-4bac4b91b473 2025-03-28 15:56:23,662 - DEBUG - Requesting: http://10.0.0.34:8082/project/41532f61-f1a0-4e1b-a038-86bc72ea10b3 2025-03-28 15:56:23,740 - INFO - Validated that VN ctest-vn-00650476 is not found in API Server 2025-03-28 15:56:23,753 - DEBUG - VN ctest-vn-00650476 is not present in Agent 10.0.0.34 2025-03-28 15:56:23,753 - INFO - Validated that VN ctest-vn-00650476 is not in any agent 2025-03-28 15:56:23,770 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-00650476 info 2025-03-28 15:56:23,770 - INFO - Deleting VN ctest-vn-56341898 2025-03-28 15:56:23,887 - DEBUG - Response for deleting network () 2025-03-28 15:56:23,887 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/f8ac51cc-62a0-437e-8c7f-fcba3071dfed 2025-03-28 15:56:23,897 - DEBUG - Response Code: 404 2025-03-28 15:56:23,898 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2025-03-28 15:56:23,903 - DEBUG - Requesting: http://10.0.0.34:8082/domain/6c69f704-dec1-46ab-85b7-4bac4b91b473 2025-03-28 15:56:23,958 - DEBUG - Requesting: http://10.0.0.34:8082/project/41532f61-f1a0-4e1b-a038-86bc72ea10b3 2025-03-28 15:56:24,035 - INFO - Validated that VN ctest-vn-56341898 is not found in API Server 2025-03-28 15:56:24,047 - DEBUG - VN ctest-vn-56341898 is not present in Agent 10.0.0.34 2025-03-28 15:56:24,048 - INFO - Validated that VN ctest-vn-56341898 is not in any agent 2025-03-28 15:56:24,068 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-56341898 info 2025-03-28 15:56:24,343 - DEBUG - No XMPP flaps were noticed during the test
2025-03-28 15:56:24,343 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-03-28 15:56:24,343 - INFO - -------------------------------------------------------------------------------- 2025-03-28 15:56:25,031 - INFO - Deleted project: ctest-TestBasicPolicy-25687656, ID : 41532f61-f1a0-4e1b-a038-86bc72ea10b3