2024-10-25 10:25:01,117 - INFO - Domain Default found not creating 2024-10-25 10:25:01,324 - INFO - Project ctest-TestBasicPolicy-60157155 not found, creating it 2024-10-25 10:25:01,864 - INFO - Created Project:ctest-TestBasicPolicy-60157155, ID : e979feb2-6fbb-488d-9b34-0b8427a324cb 2024-10-25 10:25:03,679 - INFO - ================================================================================ 2024-10-25 10:25:03,679 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-25 10:25:03,679 - 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 2024-10-25 10:25:03,951 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.10': '0'}} with 2024-10-25 10:25:03,951 - INFO - Initial checks done. Running the testcase now 2024-10-25 10:25:03,951 - INFO - 2024-10-25 10:25:04,657 - DEBUG - Response for create_network : {'network': {'id': '7a027fd1-36c4-4487-8a7f-ae1a1f770dfc', 'name': 'ctest-vn-23161512', 'tenant_id': 'e979feb26fbb488d9b340b8427a324cb', 'project_id': 'e979feb26fbb488d9b340b8427a324cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60157155', 'ctest-vn-23161512'], 'port_security_enabled': True, 'description': ''}} 2024-10-25 10:25:04,869 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c8075127-7e9a-4922-b4f3-f8bbf884be4c', 'name': '', 'tenant_id': 'e979feb26fbb488d9b340b8427a324cb', 'network_id': '7a027fd1-36c4-4487-8a7f-ae1a1f770dfc', 'ip_version': 4, 'cidr': '107.241.28.64/26', 'allocation_pools': [{'start': '107.241.28.66', 'end': '107.241.28.126'}], 'gateway_ip': '107.241.28.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '107.241.28.66', 'tags': [], 'project_id': 'e979feb26fbb488d9b340b8427a324cb'}} 2024-10-25 10:25:04,895 - INFO - Created VN ctest-vn-23161512 2024-10-25 10:25:04,960 - DEBUG - VN ctest-vn-23161512 UUID is 7a027fd1-36c4-4487-8a7f-ae1a1f770dfc 2024-10-25 10:25:05,349 - DEBUG - Response for create_network : {'network': {'id': '265c15ce-5c74-4854-83af-caa84ceed6cb', 'name': 'ctest-vn-36642534', 'tenant_id': 'e979feb26fbb488d9b340b8427a324cb', 'project_id': 'e979feb26fbb488d9b340b8427a324cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60157155', 'ctest-vn-36642534'], 'port_security_enabled': True, 'description': ''}} 2024-10-25 10:25:05,534 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b07c28b1-9523-4255-a2e8-20842bbfccf6', 'name': '', 'tenant_id': 'e979feb26fbb488d9b340b8427a324cb', 'network_id': '265c15ce-5c74-4854-83af-caa84ceed6cb', 'ip_version': 4, 'cidr': '184.5.54.128/26', 'allocation_pools': [{'start': '184.5.54.130', 'end': '184.5.54.190'}], 'gateway_ip': '184.5.54.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '184.5.54.130', 'tags': [], 'project_id': 'e979feb26fbb488d9b340b8427a324cb'}} 2024-10-25 10:25:05,557 - INFO - Created VN ctest-vn-36642534 2024-10-25 10:25:05,617 - DEBUG - VN ctest-vn-36642534 UUID is 265c15ce-5c74-4854-83af-caa84ceed6cb 2024-10-25 10:25:05,756 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-60157155:ctest-vn-23161512, 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-60157155:ctest-vn-36642534, 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] 2024-10-25 10:25:06,116 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7a027fd1-36c4-4487-8a7f-ae1a1f770dfc', 'name': 'ctest-vn-23161512', 'tenant_id': 'e979feb26fbb488d9b340b8427a324cb', 'project_id': 'e979feb26fbb488d9b340b8427a324cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c8075127-7e9a-4922-b4f3-f8bbf884be4c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60157155', 'ctest-vn-23161512'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60157155', 'ctest-policy-allow-all-13545743']], 'subnet_ipam': [{'subnet_cidr': '107.241.28.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-25 10:25:06,390 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '265c15ce-5c74-4854-83af-caa84ceed6cb', 'name': 'ctest-vn-36642534', 'tenant_id': 'e979feb26fbb488d9b340b8427a324cb', 'project_id': 'e979feb26fbb488d9b340b8427a324cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b07c28b1-9523-4255-a2e8-20842bbfccf6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60157155', 'ctest-vn-36642534'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60157155', 'ctest-policy-allow-all-13545743']], 'subnet_ipam': [{'subnet_cidr': '184.5.54.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-25 10:25:06,577 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-10-25 10:25:06,929 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-10-25 10:25:06,967 - DEBUG - Requesting: http://10.0.0.37:8082/domain/12a889b9-5e07-443a-8a27-77f0734807fd 2024-10-25 10:25:06,986 - DEBUG - Requesting: http://10.0.0.37:8082/project/e979feb2-6fbb-488d-9b34-0b8427a324cb 2024-10-25 10:25:07,084 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/7a027fd1-36c4-4487-8a7f-ae1a1f770dfc 2024-10-25 10:25:07,103 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/7a027fd1-36c4-4487-8a7f-ae1a1f770dfc 2024-10-25 10:25:07,122 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/5663bd1f-b1d8-4360-aaa7-caf9be8640b4 2024-10-25 10:25:07,133 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/5663bd1f-b1d8-4360-aaa7-caf9be8640b4 2024-10-25 10:25:07,145 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/076bf8ef-8f06-42d0-b6da-d256cd331e82 2024-10-25 10:25:07,155 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-25 10:25:07,156 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/7a027fd1-36c4-4487-8a7f-ae1a1f770dfc 2024-10-25 10:25:07,185 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/5663bd1f-b1d8-4360-aaa7-caf9be8640b4 2024-10-25 10:25:07,214 - INFO - Verified VN network id 7 for VN 7a027fd1-36c4-4487-8a7f-ae1a1f770dfc 2024-10-25 10:25:07,214 - INFO - Verifications in API Server for VN ctest-vn-23161512 passed 2024-10-25 10:25:07,214 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/7a027fd1-36c4-4487-8a7f-ae1a1f770dfc 2024-10-25 10:25:07,234 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/5663bd1f-b1d8-4360-aaa7-caf9be8640b4 2024-10-25 10:25:07,246 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/5663bd1f-b1d8-4360-aaa7-caf9be8640b4 2024-10-25 10:25:07,256 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/076bf8ef-8f06-42d0-b6da-d256cd331e82 2024-10-25 10:25:07,273 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60157155:ctest-vn-23161512', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60157155', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8791729959124354183', 'uuid-lslong': '9979886726496587260'}, 'enable': 'true', 'created': '2024-10-25T10:25:04', 'last-modified': '2024-10-25T10:25:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.196296'} 2024-10-25 10:25:07,283 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-25 10:25:07,283 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23161512 passed 2024-10-25 10:25:07,284 - DEBUG - ====Verifying policy data for ctest-vn-23161512 in API_Server ====== 2024-10-25 10:25:07,284 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-10-25 10:25:07,292 - DEBUG - Requesting: http://10.0.0.37:8082/domain/12a889b9-5e07-443a-8a27-77f0734807fd 2024-10-25 10:25:07,310 - DEBUG - Requesting: http://10.0.0.37:8082/project/e979feb2-6fbb-488d-9b34-0b8427a324cb 2024-10-25 10:25:07,396 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/7a027fd1-36c4-4487-8a7f-ae1a1f770dfc 2024-10-25 10:25:07,413 - DEBUG - ==>Verifying data for policy with id: f474b5e9-607c-441b-91e6-afe77e4d33d3, fqn: ['default-domain', 'ctest-TestBasicPolicy-60157155', 'ctest-policy-allow-all-13545743'] 2024-10-25 10:25:07,413 - INFO - VN ctest-vn-23161512 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-25 10:25:07,413 - DEBUG - Verifying the vn in opserver 2024-10-25 10:25:07,413 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60157155:ctest-vn-23161512 virtual network link through opserver 10.0.0.37 2024-10-25 10:25:07,413 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks 2024-10-25 10:25:07,760 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks 2024-10-25 10:25:07,840 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60157155:ctest-vn-23161512', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60157155:ctest-vn-23161512?flat'} 2024-10-25 10:25:07,840 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60157155:ctest-vn-23161512 is found in opserver 2024-10-25 10:25:07,853 - DEBUG - Do not have enough data to verify VN in agent 2024-10-25 10:25:07,861 - DEBUG - VRF ids for VN ctest-vn-23161512: {} 2024-10-25 10:25:07,861 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-10-25 10:25:07,869 - DEBUG - Requesting: http://10.0.0.37:8082/domain/12a889b9-5e07-443a-8a27-77f0734807fd 2024-10-25 10:25:07,887 - DEBUG - Requesting: http://10.0.0.37:8082/project/e979feb2-6fbb-488d-9b34-0b8427a324cb 2024-10-25 10:25:07,982 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/265c15ce-5c74-4854-83af-caa84ceed6cb 2024-10-25 10:25:08,002 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/265c15ce-5c74-4854-83af-caa84ceed6cb 2024-10-25 10:25:08,019 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/242dd55c-5826-4635-b1e0-06a658bc4603 2024-10-25 10:25:08,031 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/242dd55c-5826-4635-b1e0-06a658bc4603 2024-10-25 10:25:08,043 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/d6b42fac-7be0-426c-acc0-c31d5415b2f4 2024-10-25 10:25:08,054 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-25 10:25:08,054 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/265c15ce-5c74-4854-83af-caa84ceed6cb 2024-10-25 10:25:08,070 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/242dd55c-5826-4635-b1e0-06a658bc4603 2024-10-25 10:25:08,101 - INFO - Verified VN network id 8 for VN 265c15ce-5c74-4854-83af-caa84ceed6cb 2024-10-25 10:25:08,101 - INFO - Verifications in API Server for VN ctest-vn-36642534 passed 2024-10-25 10:25:08,101 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/265c15ce-5c74-4854-83af-caa84ceed6cb 2024-10-25 10:25:08,127 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/242dd55c-5826-4635-b1e0-06a658bc4603 2024-10-25 10:25:08,141 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/242dd55c-5826-4635-b1e0-06a658bc4603 2024-10-25 10:25:08,152 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/d6b42fac-7be0-426c-acc0-c31d5415b2f4 2024-10-25 10:25:08,168 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60157155:ctest-vn-36642534', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60157155', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2764108247357212756', 'uuid-lslong': '9489025764086961867'}, 'enable': 'true', 'created': '2024-10-25T10:25:05', 'last-modified': '2024-10-25T10:25:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.806522'} 2024-10-25 10:25:08,177 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-25 10:25:08,177 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36642534 passed 2024-10-25 10:25:08,177 - DEBUG - ====Verifying policy data for ctest-vn-36642534 in API_Server ====== 2024-10-25 10:25:08,177 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-10-25 10:25:08,185 - DEBUG - Requesting: http://10.0.0.37:8082/domain/12a889b9-5e07-443a-8a27-77f0734807fd 2024-10-25 10:25:08,201 - DEBUG - Requesting: http://10.0.0.37:8082/project/e979feb2-6fbb-488d-9b34-0b8427a324cb 2024-10-25 10:25:08,297 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/265c15ce-5c74-4854-83af-caa84ceed6cb 2024-10-25 10:25:08,320 - DEBUG - ==>Verifying data for policy with id: f474b5e9-607c-441b-91e6-afe77e4d33d3, fqn: ['default-domain', 'ctest-TestBasicPolicy-60157155', 'ctest-policy-allow-all-13545743'] 2024-10-25 10:25:08,320 - INFO - VN ctest-vn-36642534 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-25 10:25:08,320 - DEBUG - Verifying the vn in opserver 2024-10-25 10:25:08,320 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60157155:ctest-vn-36642534 virtual network link through opserver 10.0.0.37 2024-10-25 10:25:08,321 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks 2024-10-25 10:25:08,336 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60157155:ctest-vn-36642534', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60157155:ctest-vn-36642534?flat'} 2024-10-25 10:25:08,336 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60157155:ctest-vn-36642534 is found in opserver 2024-10-25 10:25:08,350 - DEBUG - Do not have enough data to verify VN in agent 2024-10-25 10:25:08,356 - DEBUG - VRF ids for VN ctest-vn-36642534: {} 2024-10-25 10:25:08,432 - DEBUG - Services list from nova: [, , ] 2024-10-25 10:25:09,666 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2144-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2144-1) 2024-10-25 10:25:11,309 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2144-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2144-1) 2024-10-25 10:25:11,309 - INFO - Waiting for VM ctest-TestBasicPolicy-60157155-40181008 to be up.. 2024-10-25 10:25:11,438 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-25 10:25:16,534 - DEBUG - VM is in ACTIVE state now 2024-10-25 10:25:16,534 - INFO - VM name : ctest-TestBasicPolicy-60157155-40181008 2024-10-25 10:25:16,638 - DEBUG - VM ctest-TestBasicPolicy-60157155-40181008 ID is 98679483-410b-483e-9c51-a129355f4458 2024-10-25 10:25:16,660 - DEBUG - VM ctest-TestBasicPolicy-60157155-40181008 launched on Node cn-jenkins-deploy-platform-ansible-os-2144-1 2024-10-25 10:25:16,759 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/98679483-410b-483e-9c51-a129355f4458 2024-10-25 10:25:16,772 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/0813ad0e-7171-45aa-8267-b31f452ccef8 2024-10-25 10:25:20,073 - 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 1033ms') 2024-10-25 10:25:20,073 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-60157155-40181008 failed! 2024-10-25 10:25:20,144 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-60157155:ctest-vn-23161512 is 107.241.28.65 and allocation pool is NOT set 2024-10-25 10:25:22,213 - 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=15.0 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.50 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.495/8.744/14.993/6.249 ms') 2024-10-25 10:25:22,214 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-60157155-40181008 passed 2024-10-25 10:25:22,385 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-25 10:25:22,386 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-60157155-40181008, IP 107.241.28.67, Port 22 2024-10-25 10:25:22,455 - 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': ''} 2024-10-25 10:25:22,554 - DEBUG - VM ctest-TestBasicPolicy-60157155-40181008 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-25 10:25:27,555 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-25 10:25:27,555 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-60157155-40181008, IP 107.241.28.67, Port 22 2024-10-25 10:25:27,716 - DEBUG - VM ctest-TestBasicPolicy-60157155-40181008 is ready for SSH connections 2024-10-25 10:25:27,717 - INFO - Waiting for VM ctest-TestBasicPolicy-60157155-89766694 to be up.. 2024-10-25 10:25:27,809 - DEBUG - VM is in ACTIVE state now 2024-10-25 10:25:27,809 - INFO - VM name : ctest-TestBasicPolicy-60157155-89766694 2024-10-25 10:25:27,904 - DEBUG - VM ctest-TestBasicPolicy-60157155-89766694 ID is 572a736b-cbb9-48fb-9cac-e2093d1e4977 2024-10-25 10:25:27,904 - DEBUG - VM ctest-TestBasicPolicy-60157155-89766694 launched on Node cn-jenkins-deploy-platform-ansible-os-2144-1 2024-10-25 10:25:28,002 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/572a736b-cbb9-48fb-9cac-e2093d1e4977 2024-10-25 10:25:28,017 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/31c0bada-e955-4b0e-abe5-940dee69235d 2024-10-25 10:25:29,288 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=4.00 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.452 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.452/2.224/3.996/1.772 ms') 2024-10-25 10:25:29,288 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-60157155-89766694 passed 2024-10-25 10:25:29,457 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-25 10:25:29,457 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-60157155-89766694, IP 184.5.54.131, Port 22 2024-10-25 10:25:29,612 - DEBUG - VM ctest-TestBasicPolicy-60157155-89766694 is ready for SSH connections 2024-10-25 10:25:29,612 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-25 10:25:29,613 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 184.5.54.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.37, gateway password: c0ntrail123 2024-10-25 10:25:29,613 - DEBUG - ping -s 56 -c 3 -W 1 184.5.54.131 2024-10-25 10:25:33,840 - DEBUG - PING 184.5.54.131 (184.5.54.131): 56 data bytes 64 bytes from 184.5.54.131: seq=0 ttl=63 time=5.078 ms 64 bytes from 184.5.54.131: seq=1 ttl=63 time=1.041 ms 64 bytes from 184.5.54.131: seq=2 ttl=63 time=2.001 ms --- 184.5.54.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.041/2.706/5.078 ms 2024-10-25 10:25:33,840 - INFO - Ping to IP 184.5.54.131 from VM ctest-TestBasicPolicy-60157155-40181008 passed 2024-10-25 10:25:34,052 - DEBUG - Policy Update Response {"network-policy": {"uuid": "f474b5e9-607c-441b-91e6-afe77e4d33d3", "href": "http://10.0.0.37:8082/network-policy/f474b5e9-607c-441b-91e6-afe77e4d33d3"}} 2024-10-25 10:25:34,052 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-25 10:25:34,053 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 184.5.54.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.37, gateway password: c0ntrail123 2024-10-25 10:25:34,053 - DEBUG - ping -s 56 -c 3 -W 1 184.5.54.131 2024-10-25 10:25:37,311 - DEBUG - PING 184.5.54.131 (184.5.54.131): 56 data bytes --- 184.5.54.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-25 10:25:37,311 - WARNING - Ping to IP 184.5.54.131 from VM ctest-TestBasicPolicy-60157155-40181008 failed 2024-10-25 10:25:37,311 - INFO - Deleting VM ctest-TestBasicPolicy-60157155-89766694 2024-10-25 10:25:37,410 - INFO - Deleting VM ctest-TestBasicPolicy-60157155-40181008 2024-10-25 10:25:37,959 - INFO - Deleted policy ctest-policy-allow-all-13545743 2024-10-25 10:25:37,959 - INFO - Deleting VN ctest-vn-36642534 2024-10-25 10:25:38,009 - DEBUG - VN 265c15ce-5c74-4854-83af-caa84ceed6cb still in use: Unable to complete operation on network 265c15ce-5c74-4854-83af-caa84ceed6cb. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-054cdd4a-22bd-436f-871b-322ea9f549b5'] 2024-10-25 10:25:38,009 - WARNING - Deleting VN ctest-vn-36642534 failed..Will retry 2024-10-25 10:25:40,156 - DEBUG - Response for deleting network () 2024-10-25 10:25:40,156 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/242dd55c-5826-4635-b1e0-06a658bc4603 2024-10-25 10:25:40,165 - DEBUG - Response Code: 404 2024-10-25 10:25:40,165 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-10-25 10:25:40,174 - DEBUG - Requesting: http://10.0.0.37:8082/domain/12a889b9-5e07-443a-8a27-77f0734807fd 2024-10-25 10:25:40,240 - DEBUG - Requesting: http://10.0.0.37:8082/project/e979feb2-6fbb-488d-9b34-0b8427a324cb 2024-10-25 10:25:40,335 - INFO - Validated that VN ctest-vn-36642534 is not found in API Server 2024-10-25 10:25:40,349 - DEBUG - VN ctest-vn-36642534 is not present in Agent 10.0.0.37 2024-10-25 10:25:40,349 - INFO - Validated that VN ctest-vn-36642534 is not in any agent 2024-10-25 10:25:40,368 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-36642534 info 2024-10-25 10:25:40,369 - INFO - Deleting VN ctest-vn-23161512 2024-10-25 10:25:40,525 - DEBUG - Response for deleting network () 2024-10-25 10:25:40,525 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/5663bd1f-b1d8-4360-aaa7-caf9be8640b4 2024-10-25 10:25:40,533 - DEBUG - Response Code: 404 2024-10-25 10:25:40,534 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-10-25 10:25:40,548 - DEBUG - Requesting: http://10.0.0.37:8082/domain/12a889b9-5e07-443a-8a27-77f0734807fd 2024-10-25 10:25:40,565 - DEBUG - Requesting: http://10.0.0.37:8082/project/e979feb2-6fbb-488d-9b34-0b8427a324cb 2024-10-25 10:25:40,658 - INFO - Validated that VN ctest-vn-23161512 is not found in API Server 2024-10-25 10:25:40,670 - DEBUG - VN ctest-vn-23161512 is not present in Agent 10.0.0.37 2024-10-25 10:25:40,670 - INFO - Validated that VN ctest-vn-23161512 is not in any agent 2024-10-25 10:25:40,692 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-23161512 info 2024-10-25 10:25:40,961 - DEBUG - No XMPP flaps were noticed during the test 2024-10-25 10:25:40,961 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37] 2024-10-25 10:25:40,961 - INFO - -------------------------------------------------------------------------------- 2024-10-25 10:25:41,795 - INFO - Deleted project: ctest-TestBasicPolicy-60157155, ID : e979feb2-6fbb-488d-9b34-0b8427a324cb