2024-08-26 21:20:08,247 - INFO - Domain Default found not creating 2024-08-26 21:20:08,500 - INFO - Project ctest-TestBasicPolicy-10533057 not found, creating it 2024-08-26 21:20:09,031 - INFO - Created Project:ctest-TestBasicPolicy-10533057, ID : f1c40f66-8bbd-4e7a-abd3-784d4d482b5b 2024-08-26 21:20:10,718 - INFO - ================================================================================ 2024-08-26 21:20:10,719 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-26 21:20:10,719 - 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-08-26 21:20:10,984 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.8': '0'}} with 2024-08-26 21:20:10,984 - INFO - Initial checks done. Running the testcase now 2024-08-26 21:20:10,984 - INFO - 2024-08-26 21:20:11,612 - DEBUG - Response for create_network : {'network': {'id': '3abb2e30-7045-41bd-b7f1-aa07d7a080eb', 'name': 'ctest-vn-35444063', 'tenant_id': 'f1c40f668bbd4e7aabd3784d4d482b5b', 'project_id': 'f1c40f668bbd4e7aabd3784d4d482b5b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10533057', 'ctest-vn-35444063'], 'port_security_enabled': True, 'description': ''}} 2024-08-26 21:20:11,821 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f743de55-6176-4476-be8f-cf56b0ef1e20', 'name': '', 'tenant_id': 'f1c40f668bbd4e7aabd3784d4d482b5b', 'network_id': '3abb2e30-7045-41bd-b7f1-aa07d7a080eb', 'ip_version': 4, 'cidr': '134.28.97.192/26', 'allocation_pools': [{'start': '134.28.97.194', 'end': '134.28.97.254'}], 'gateway_ip': '134.28.97.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.28.97.194', 'tags': [], 'project_id': 'f1c40f668bbd4e7aabd3784d4d482b5b'}} 2024-08-26 21:20:11,847 - INFO - Created VN ctest-vn-35444063 2024-08-26 21:20:11,902 - DEBUG - VN ctest-vn-35444063 UUID is 3abb2e30-7045-41bd-b7f1-aa07d7a080eb 2024-08-26 21:20:12,227 - DEBUG - Response for create_network : {'network': {'id': '4feaf3fc-9fb4-45aa-b0f5-23cb6c4ad15c', 'name': 'ctest-vn-96880447', 'tenant_id': 'f1c40f668bbd4e7aabd3784d4d482b5b', 'project_id': 'f1c40f668bbd4e7aabd3784d4d482b5b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10533057', 'ctest-vn-96880447'], 'port_security_enabled': True, 'description': ''}} 2024-08-26 21:20:12,453 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eb41426d-b22a-4343-a89f-29b43c637e2a', 'name': '', 'tenant_id': 'f1c40f668bbd4e7aabd3784d4d482b5b', 'network_id': '4feaf3fc-9fb4-45aa-b0f5-23cb6c4ad15c', 'ip_version': 4, 'cidr': '36.37.173.192/26', 'allocation_pools': [{'start': '36.37.173.194', 'end': '36.37.173.254'}], 'gateway_ip': '36.37.173.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36.37.173.194', 'tags': [], 'project_id': 'f1c40f668bbd4e7aabd3784d4d482b5b'}} 2024-08-26 21:20:12,475 - INFO - Created VN ctest-vn-96880447 2024-08-26 21:20:12,526 - DEBUG - VN ctest-vn-96880447 UUID is 4feaf3fc-9fb4-45aa-b0f5-23cb6c4ad15c 2024-08-26 21:20:12,650 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-10533057:ctest-vn-35444063, 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-10533057:ctest-vn-96880447, 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-08-26 21:20:12,967 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3abb2e30-7045-41bd-b7f1-aa07d7a080eb', 'name': 'ctest-vn-35444063', 'tenant_id': 'f1c40f668bbd4e7aabd3784d4d482b5b', 'project_id': 'f1c40f668bbd4e7aabd3784d4d482b5b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f743de55-6176-4476-be8f-cf56b0ef1e20'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10533057', 'ctest-vn-35444063'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10533057', 'ctest-policy-allow-all-49273465']], 'subnet_ipam': [{'subnet_cidr': '134.28.97.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-26 21:20:13,240 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4feaf3fc-9fb4-45aa-b0f5-23cb6c4ad15c', 'name': 'ctest-vn-96880447', 'tenant_id': 'f1c40f668bbd4e7aabd3784d4d482b5b', 'project_id': 'f1c40f668bbd4e7aabd3784d4d482b5b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eb41426d-b22a-4343-a89f-29b43c637e2a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10533057', 'ctest-vn-96880447'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10533057', 'ctest-policy-allow-all-49273465']], 'subnet_ipam': [{'subnet_cidr': '36.37.173.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-26 21:20:13,390 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-08-26 21:20:13,695 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-08-26 21:20:13,737 - DEBUG - Requesting: http://10.0.0.42:8082/domain/6f9261e8-a573-46b2-bfbf-df82b142bf01 2024-08-26 21:20:13,755 - DEBUG - Requesting: http://10.0.0.42:8082/project/f1c40f66-8bbd-4e7a-abd3-784d4d482b5b 2024-08-26 21:20:13,841 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/3abb2e30-7045-41bd-b7f1-aa07d7a080eb 2024-08-26 21:20:13,853 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/3abb2e30-7045-41bd-b7f1-aa07d7a080eb 2024-08-26 21:20:13,866 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/7a1ac017-441b-4640-be2c-d50931c2f49e 2024-08-26 21:20:13,878 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/7a1ac017-441b-4640-be2c-d50931c2f49e 2024-08-26 21:20:13,889 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/5790a036-ca44-418d-8b1e-ddc8aa6f2dc0 2024-08-26 21:20:13,899 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-26 21:20:13,899 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/3abb2e30-7045-41bd-b7f1-aa07d7a080eb 2024-08-26 21:20:13,909 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/7a1ac017-441b-4640-be2c-d50931c2f49e 2024-08-26 21:20:13,926 - INFO - Verified VN network id 8 for VN 3abb2e30-7045-41bd-b7f1-aa07d7a080eb 2024-08-26 21:20:13,926 - INFO - Verifications in API Server for VN ctest-vn-35444063 passed 2024-08-26 21:20:13,927 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/3abb2e30-7045-41bd-b7f1-aa07d7a080eb 2024-08-26 21:20:13,939 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/7a1ac017-441b-4640-be2c-d50931c2f49e 2024-08-26 21:20:13,949 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/7a1ac017-441b-4640-be2c-d50931c2f49e 2024-08-26 21:20:13,958 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/5790a036-ca44-418d-8b1e-ddc8aa6f2dc0 2024-08-26 21:20:13,975 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10533057:ctest-vn-35444063', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10533057', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4232027060421607869', 'uuid-lslong': '13254562128987193579'}, 'enable': 'true', 'created': '2024-08-26T21:20:11', 'last-modified': '2024-08-26T21:20:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.034768'} 2024-08-26 21:20:13,983 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-26 21:20:13,983 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35444063 passed 2024-08-26 21:20:13,984 - DEBUG - ====Verifying policy data for ctest-vn-35444063 in API_Server ====== 2024-08-26 21:20:13,984 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-08-26 21:20:13,993 - DEBUG - Requesting: http://10.0.0.42:8082/domain/6f9261e8-a573-46b2-bfbf-df82b142bf01 2024-08-26 21:20:14,010 - DEBUG - Requesting: http://10.0.0.42:8082/project/f1c40f66-8bbd-4e7a-abd3-784d4d482b5b 2024-08-26 21:20:14,088 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/3abb2e30-7045-41bd-b7f1-aa07d7a080eb 2024-08-26 21:20:14,098 - DEBUG - ==>Verifying data for policy with id: 2905fb78-9060-459a-bf12-bf5b885d3522, fqn: ['default-domain', 'ctest-TestBasicPolicy-10533057', 'ctest-policy-allow-all-49273465'] 2024-08-26 21:20:14,098 - INFO - VN ctest-vn-35444063 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-26 21:20:14,098 - DEBUG - Verifying the vn in opserver 2024-08-26 21:20:14,098 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10533057:ctest-vn-35444063 virtual network link through opserver 10.0.0.42 2024-08-26 21:20:14,098 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-08-26 21:20:14,416 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-08-26 21:20:14,488 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10533057:ctest-vn-35444063', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10533057:ctest-vn-35444063?flat'} 2024-08-26 21:20:14,488 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10533057:ctest-vn-35444063 is found in opserver 2024-08-26 21:20:14,500 - DEBUG - Do not have enough data to verify VN in agent 2024-08-26 21:20:14,506 - DEBUG - VRF ids for VN ctest-vn-35444063: {} 2024-08-26 21:20:14,506 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-08-26 21:20:14,514 - DEBUG - Requesting: http://10.0.0.42:8082/domain/6f9261e8-a573-46b2-bfbf-df82b142bf01 2024-08-26 21:20:14,527 - DEBUG - Requesting: http://10.0.0.42:8082/project/f1c40f66-8bbd-4e7a-abd3-784d4d482b5b 2024-08-26 21:20:14,604 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/4feaf3fc-9fb4-45aa-b0f5-23cb6c4ad15c 2024-08-26 21:20:14,624 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/4feaf3fc-9fb4-45aa-b0f5-23cb6c4ad15c 2024-08-26 21:20:14,634 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/3768aedb-040f-4430-a2af-c129ce66e5e4 2024-08-26 21:20:14,644 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/3768aedb-040f-4430-a2af-c129ce66e5e4 2024-08-26 21:20:14,653 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/d0e1bda7-1b9c-4fb6-a337-ac3b0b346686 2024-08-26 21:20:14,662 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-26 21:20:14,662 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/4feaf3fc-9fb4-45aa-b0f5-23cb6c4ad15c 2024-08-26 21:20:14,672 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/3768aedb-040f-4430-a2af-c129ce66e5e4 2024-08-26 21:20:14,690 - INFO - Verified VN network id 9 for VN 4feaf3fc-9fb4-45aa-b0f5-23cb6c4ad15c 2024-08-26 21:20:14,690 - INFO - Verifications in API Server for VN ctest-vn-96880447 passed 2024-08-26 21:20:14,690 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/4feaf3fc-9fb4-45aa-b0f5-23cb6c4ad15c 2024-08-26 21:20:14,703 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/3768aedb-040f-4430-a2af-c129ce66e5e4 2024-08-26 21:20:14,713 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/3768aedb-040f-4430-a2af-c129ce66e5e4 2024-08-26 21:20:14,723 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/d0e1bda7-1b9c-4fb6-a337-ac3b0b346686 2024-08-26 21:20:14,740 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10533057:ctest-vn-96880447', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10533057', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5758683339883300266', 'uuid-lslong': '12751137276571603292'}, 'enable': 'true', 'created': '2024-08-26T21:20:12', 'last-modified': '2024-08-26T21:20:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.531096'} 2024-08-26 21:20:14,766 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-26 21:20:14,767 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96880447 passed 2024-08-26 21:20:14,767 - DEBUG - ====Verifying policy data for ctest-vn-96880447 in API_Server ====== 2024-08-26 21:20:14,767 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-08-26 21:20:14,779 - DEBUG - Requesting: http://10.0.0.42:8082/domain/6f9261e8-a573-46b2-bfbf-df82b142bf01 2024-08-26 21:20:14,795 - DEBUG - Requesting: http://10.0.0.42:8082/project/f1c40f66-8bbd-4e7a-abd3-784d4d482b5b 2024-08-26 21:20:14,874 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/4feaf3fc-9fb4-45aa-b0f5-23cb6c4ad15c 2024-08-26 21:20:14,884 - DEBUG - ==>Verifying data for policy with id: 2905fb78-9060-459a-bf12-bf5b885d3522, fqn: ['default-domain', 'ctest-TestBasicPolicy-10533057', 'ctest-policy-allow-all-49273465'] 2024-08-26 21:20:14,884 - INFO - VN ctest-vn-96880447 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-26 21:20:14,884 - DEBUG - Verifying the vn in opserver 2024-08-26 21:20:14,884 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10533057:ctest-vn-96880447 virtual network link through opserver 10.0.0.42 2024-08-26 21:20:14,884 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-08-26 21:20:14,899 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10533057:ctest-vn-96880447', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10533057:ctest-vn-96880447?flat'} 2024-08-26 21:20:14,899 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10533057:ctest-vn-96880447 is found in opserver 2024-08-26 21:20:14,912 - DEBUG - Do not have enough data to verify VN in agent 2024-08-26 21:20:14,917 - DEBUG - VRF ids for VN ctest-vn-96880447: {} 2024-08-26 21:20:14,985 - DEBUG - Services list from nova: [, , ] 2024-08-26 21:20:17,075 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1772-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1772-1) 2024-08-26 21:20:18,466 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1772-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1772-1) 2024-08-26 21:20:18,467 - INFO - Waiting for VM ctest-TestBasicPolicy-10533057-08618599 to be up.. 2024-08-26 21:20:18,557 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-26 21:20:23,672 - DEBUG - VM is in ACTIVE state now 2024-08-26 21:20:23,672 - INFO - VM name : ctest-TestBasicPolicy-10533057-08618599 2024-08-26 21:20:23,774 - DEBUG - VM ctest-TestBasicPolicy-10533057-08618599 ID is 9f9ae3de-f0ae-40c2-b0d5-f9f00aa49b14 2024-08-26 21:20:23,798 - DEBUG - VM ctest-TestBasicPolicy-10533057-08618599 launched on Node cn-jenkins-deploy-platform-ansible-os-1772-1 2024-08-26 21:20:23,894 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/9f9ae3de-f0ae-40c2-b0d5-f9f00aa49b14 2024-08-26 21:20:23,907 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/81b19133-55fb-472a-9ae4-bf9ba8a15edd 2024-08-26 21:20:27,186 - 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') 2024-08-26 21:20:27,187 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-10533057-08618599 failed! 2024-08-26 21:20:27,246 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-10533057:ctest-vn-35444063 is 134.28.97.193 and allocation pool is NOT set 2024-08-26 21:20:29,316 - 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.78 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.871 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.871/2.323/3.776/1.452 ms') 2024-08-26 21:20:29,316 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-10533057-08618599 passed 2024-08-26 21:20:29,474 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 21:20:29,474 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-10533057-08618599, IP 134.28.97.195, Port 22 2024-08-26 21:20:29,530 - 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-08-26 21:20:29,639 - DEBUG - VM ctest-TestBasicPolicy-10533057-08618599 is NOT ready for SSH connections, VM status: ACTIVE 2024-08-26 21:20:34,640 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 21:20:34,640 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-10533057-08618599, IP 134.28.97.195, Port 22 2024-08-26 21:20:34,802 - DEBUG - VM ctest-TestBasicPolicy-10533057-08618599 is ready for SSH connections 2024-08-26 21:20:34,802 - INFO - Waiting for VM ctest-TestBasicPolicy-10533057-49168740 to be up.. 2024-08-26 21:20:34,895 - DEBUG - VM is in ACTIVE state now 2024-08-26 21:20:34,895 - INFO - VM name : ctest-TestBasicPolicy-10533057-49168740 2024-08-26 21:20:34,987 - DEBUG - VM ctest-TestBasicPolicy-10533057-49168740 ID is c4f98dd9-55d1-437d-b92e-492d27eb0857 2024-08-26 21:20:34,987 - DEBUG - VM ctest-TestBasicPolicy-10533057-49168740 launched on Node cn-jenkins-deploy-platform-ansible-os-1772-1 2024-08-26 21:20:35,081 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/c4f98dd9-55d1-437d-b92e-492d27eb0857 2024-08-26 21:20:35,093 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/033eead5-2e08-4bc2-8013-bc30fa720caa 2024-08-26 21:20:36,357 - 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.55 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.432 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.432/1.991/3.550/1.559 ms') 2024-08-26 21:20:36,357 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-10533057-49168740 passed 2024-08-26 21:20:36,510 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 21:20:36,511 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-10533057-49168740, IP 36.37.173.195, Port 22 2024-08-26 21:20:36,684 - DEBUG - VM ctest-TestBasicPolicy-10533057-49168740 is ready for SSH connections 2024-08-26 21:20:36,684 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 21:20:36,684 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 36.37.173.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2024-08-26 21:20:36,685 - DEBUG - ping -s 56 -c 3 -W 1 36.37.173.195 2024-08-26 21:20:40,797 - DEBUG - PING 36.37.173.195 (36.37.173.195): 56 data bytes 64 bytes from 36.37.173.195: seq=0 ttl=63 time=8.336 ms 64 bytes from 36.37.173.195: seq=1 ttl=63 time=1.167 ms 64 bytes from 36.37.173.195: seq=2 ttl=63 time=1.142 ms --- 36.37.173.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.142/3.548/8.336 ms 2024-08-26 21:20:40,797 - INFO - Ping to IP 36.37.173.195 from VM ctest-TestBasicPolicy-10533057-08618599 passed 2024-08-26 21:20:40,994 - DEBUG - Policy Update Response {"network-policy": {"uuid": "2905fb78-9060-459a-bf12-bf5b885d3522", "href": "http://10.0.0.42:8082/network-policy/2905fb78-9060-459a-bf12-bf5b885d3522"}} 2024-08-26 21:20:40,994 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 21:20:40,994 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 36.37.173.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2024-08-26 21:20:40,995 - DEBUG - ping -s 56 -c 3 -W 1 36.37.173.195 2024-08-26 21:20:44,220 - DEBUG - PING 36.37.173.195 (36.37.173.195): 56 data bytes --- 36.37.173.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-08-26 21:20:44,221 - WARNING - Ping to IP 36.37.173.195 from VM ctest-TestBasicPolicy-10533057-08618599 failed 2024-08-26 21:20:44,221 - INFO - Deleting VM ctest-TestBasicPolicy-10533057-49168740 2024-08-26 21:20:44,303 - INFO - Deleting VM ctest-TestBasicPolicy-10533057-08618599 2024-08-26 21:20:44,747 - INFO - Deleted policy ctest-policy-allow-all-49273465 2024-08-26 21:20:44,747 - INFO - Deleting VN ctest-vn-96880447 2024-08-26 21:20:44,807 - DEBUG - VN 4feaf3fc-9fb4-45aa-b0f5-23cb6c4ad15c still in use: Unable to complete operation on network 4feaf3fc-9fb4-45aa-b0f5-23cb6c4ad15c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-59f72304-4b3f-46b8-8b6f-6e4d3629171e'] 2024-08-26 21:20:44,808 - WARNING - Deleting VN ctest-vn-96880447 failed..Will retry 2024-08-26 21:20:46,948 - DEBUG - Response for deleting network () 2024-08-26 21:20:46,948 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/3768aedb-040f-4430-a2af-c129ce66e5e4 2024-08-26 21:20:46,955 - DEBUG - Response Code: 404 2024-08-26 21:20:46,956 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-08-26 21:20:46,965 - DEBUG - Requesting: http://10.0.0.42:8082/domain/6f9261e8-a573-46b2-bfbf-df82b142bf01 2024-08-26 21:20:47,021 - DEBUG - Requesting: http://10.0.0.42:8082/project/f1c40f66-8bbd-4e7a-abd3-784d4d482b5b 2024-08-26 21:20:47,101 - INFO - Validated that VN ctest-vn-96880447 is not found in API Server 2024-08-26 21:20:47,115 - DEBUG - VN ctest-vn-96880447 is not present in Agent 10.0.0.42 2024-08-26 21:20:47,116 - INFO - Validated that VN ctest-vn-96880447 is not in any agent 2024-08-26 21:20:47,136 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-96880447 info 2024-08-26 21:20:47,136 - INFO - Deleting VN ctest-vn-35444063 2024-08-26 21:20:47,274 - DEBUG - Response for deleting network () 2024-08-26 21:20:47,274 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/7a1ac017-441b-4640-be2c-d50931c2f49e 2024-08-26 21:20:47,281 - DEBUG - Response Code: 404 2024-08-26 21:20:47,281 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-08-26 21:20:47,292 - DEBUG - Requesting: http://10.0.0.42:8082/domain/6f9261e8-a573-46b2-bfbf-df82b142bf01 2024-08-26 21:20:47,349 - DEBUG - Requesting: http://10.0.0.42:8082/project/f1c40f66-8bbd-4e7a-abd3-784d4d482b5b 2024-08-26 21:20:47,426 - INFO - Validated that VN ctest-vn-35444063 is not found in API Server 2024-08-26 21:20:47,439 - DEBUG - VN ctest-vn-35444063 is not present in Agent 10.0.0.42 2024-08-26 21:20:47,439 - INFO - Validated that VN ctest-vn-35444063 is not in any agent 2024-08-26 21:20:47,456 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-35444063 info 2024-08-26 21:20:47,713 - DEBUG - No XMPP flaps were noticed during the test 2024-08-26 21:20:47,713 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37] 2024-08-26 21:20:47,713 - INFO - -------------------------------------------------------------------------------- 2024-08-26 21:20:48,433 - INFO - Deleted project: ctest-TestBasicPolicy-10533057, ID : f1c40f66-8bbd-4e7a-abd3-784d4d482b5b