2024-11-10 21:07:26,266 - INFO - Domain Default found not creating 2024-11-10 21:07:26,534 - INFO - Project ctest-TestBasicPolicy-81488743 not found, creating it 2024-11-10 21:07:27,066 - INFO - Created Project:ctest-TestBasicPolicy-81488743, ID : 5dac5572-88d4-4e62-9121-6dd0dce632f1 2024-11-10 21:07:29,052 - INFO - ================================================================================ 2024-11-10 21:07:29,052 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-10 21:07:29,053 - 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-11-10 21:07:29,321 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.5': '0'}} with 2024-11-10 21:07:29,321 - INFO - Initial checks done. Running the testcase now 2024-11-10 21:07:29,321 - INFO - 2024-11-10 21:07:29,996 - DEBUG - Response for create_network : {'network': {'id': '2c2fa01d-431d-4a6b-b398-f32e39efd798', 'name': 'ctest-vn-36406363', 'tenant_id': '5dac557288d44e6291216dd0dce632f1', 'project_id': '5dac557288d44e6291216dd0dce632f1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81488743', 'ctest-vn-36406363'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 21:07:30,246 - DEBUG - Response for create_subnet : {'subnet': {'id': '1258479d-114a-40d6-a673-dfc6c17ad82e', 'name': '', 'tenant_id': '5dac557288d44e6291216dd0dce632f1', 'network_id': '2c2fa01d-431d-4a6b-b398-f32e39efd798', 'ip_version': 4, 'cidr': '113.212.114.192/26', 'allocation_pools': [{'start': '113.212.114.194', 'end': '113.212.114.254'}], 'gateway_ip': '113.212.114.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.212.114.194', 'tags': [], 'project_id': '5dac557288d44e6291216dd0dce632f1'}} 2024-11-10 21:07:30,309 - INFO - Created VN ctest-vn-36406363 2024-11-10 21:07:30,371 - DEBUG - VN ctest-vn-36406363 UUID is 2c2fa01d-431d-4a6b-b398-f32e39efd798 2024-11-10 21:07:30,821 - DEBUG - Response for create_network : {'network': {'id': 'a5909e35-f88d-4c10-9c66-f53626bd0b5e', 'name': 'ctest-vn-39964874', 'tenant_id': '5dac557288d44e6291216dd0dce632f1', 'project_id': '5dac557288d44e6291216dd0dce632f1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81488743', 'ctest-vn-39964874'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 21:07:31,043 - DEBUG - Response for create_subnet : {'subnet': {'id': '739edd5f-31b7-4d18-9bd1-5c9ebc83f667', 'name': '', 'tenant_id': '5dac557288d44e6291216dd0dce632f1', 'network_id': 'a5909e35-f88d-4c10-9c66-f53626bd0b5e', 'ip_version': 4, 'cidr': '222.215.230.0/26', 'allocation_pools': [{'start': '222.215.230.2', 'end': '222.215.230.62'}], 'gateway_ip': '222.215.230.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.215.230.2', 'tags': [], 'project_id': '5dac557288d44e6291216dd0dce632f1'}} 2024-11-10 21:07:31,069 - INFO - Created VN ctest-vn-39964874 2024-11-10 21:07:31,167 - DEBUG - VN ctest-vn-39964874 UUID is a5909e35-f88d-4c10-9c66-f53626bd0b5e 2024-11-10 21:07:31,324 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-81488743:ctest-vn-36406363, 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-81488743:ctest-vn-39964874, 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-11-10 21:07:31,742 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2c2fa01d-431d-4a6b-b398-f32e39efd798', 'name': 'ctest-vn-36406363', 'tenant_id': '5dac557288d44e6291216dd0dce632f1', 'project_id': '5dac557288d44e6291216dd0dce632f1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1258479d-114a-40d6-a673-dfc6c17ad82e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81488743', 'ctest-vn-36406363'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-81488743', 'ctest-policy-allow-all-72647727']], 'subnet_ipam': [{'subnet_cidr': '113.212.114.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-10 21:07:32,087 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a5909e35-f88d-4c10-9c66-f53626bd0b5e', 'name': 'ctest-vn-39964874', 'tenant_id': '5dac557288d44e6291216dd0dce632f1', 'project_id': '5dac557288d44e6291216dd0dce632f1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['739edd5f-31b7-4d18-9bd1-5c9ebc83f667'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81488743', 'ctest-vn-39964874'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-81488743', 'ctest-policy-allow-all-72647727']], 'subnet_ipam': [{'subnet_cidr': '222.215.230.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-10 21:07:32,287 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-11-10 21:07:32,614 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-11-10 21:07:32,649 - DEBUG - Requesting: http://10.0.0.23:8082/domain/4d49b6cf-6b5a-49b8-92cd-1b6a35011282 2024-11-10 21:07:32,664 - DEBUG - Requesting: http://10.0.0.23:8082/project/5dac5572-88d4-4e62-9121-6dd0dce632f1 2024-11-10 21:07:32,751 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/2c2fa01d-431d-4a6b-b398-f32e39efd798 2024-11-10 21:07:32,767 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/2c2fa01d-431d-4a6b-b398-f32e39efd798 2024-11-10 21:07:32,782 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/316af5b1-9181-4110-b563-ea5ff5d36848 2024-11-10 21:07:32,792 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/316af5b1-9181-4110-b563-ea5ff5d36848 2024-11-10 21:07:32,808 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/b9f554c1-1d62-4eec-921c-bd14a9cb23ec 2024-11-10 21:07:32,817 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-10 21:07:32,817 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/2c2fa01d-431d-4a6b-b398-f32e39efd798 2024-11-10 21:07:32,834 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/316af5b1-9181-4110-b563-ea5ff5d36848 2024-11-10 21:07:32,857 - INFO - Verified VN network id 8 for VN 2c2fa01d-431d-4a6b-b398-f32e39efd798 2024-11-10 21:07:32,857 - INFO - Verifications in API Server for VN ctest-vn-36406363 passed 2024-11-10 21:07:32,857 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/2c2fa01d-431d-4a6b-b398-f32e39efd798 2024-11-10 21:07:32,874 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/316af5b1-9181-4110-b563-ea5ff5d36848 2024-11-10 21:07:32,886 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/316af5b1-9181-4110-b563-ea5ff5d36848 2024-11-10 21:07:32,898 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/b9f554c1-1d62-4eec-921c-bd14a9cb23ec 2024-11-10 21:07:32,914 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-81488743:ctest-vn-36406363', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-81488743', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3183939509114718827', 'uuid-lslong': '12941360909115185048'}, 'enable': 'true', 'created': '2024-11-10T21:07:29', 'last-modified': '2024-11-10T21:07:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.211473'} 2024-11-10 21:07:32,922 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-10 21:07:32,922 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36406363 passed 2024-11-10 21:07:32,922 - DEBUG - ====Verifying policy data for ctest-vn-36406363 in API_Server ====== 2024-11-10 21:07:32,922 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-11-10 21:07:32,934 - DEBUG - Requesting: http://10.0.0.23:8082/domain/4d49b6cf-6b5a-49b8-92cd-1b6a35011282 2024-11-10 21:07:32,949 - DEBUG - Requesting: http://10.0.0.23:8082/project/5dac5572-88d4-4e62-9121-6dd0dce632f1 2024-11-10 21:07:33,046 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/2c2fa01d-431d-4a6b-b398-f32e39efd798 2024-11-10 21:07:33,063 - DEBUG - ==>Verifying data for policy with id: 54964b5b-752b-4630-ac27-fc272a72ecea, fqn: ['default-domain', 'ctest-TestBasicPolicy-81488743', 'ctest-policy-allow-all-72647727'] 2024-11-10 21:07:33,063 - INFO - VN ctest-vn-36406363 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-10 21:07:33,063 - DEBUG - Verifying the vn in opserver 2024-11-10 21:07:33,063 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-81488743:ctest-vn-36406363 virtual network link through opserver 10.0.0.23 2024-11-10 21:07:33,063 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-11-10 21:07:33,373 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-11-10 21:07:33,458 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-81488743:ctest-vn-36406363', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-81488743:ctest-vn-36406363?flat'} 2024-11-10 21:07:33,458 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-81488743:ctest-vn-36406363 is found in opserver 2024-11-10 21:07:33,470 - DEBUG - Do not have enough data to verify VN in agent 2024-11-10 21:07:33,476 - DEBUG - VRF ids for VN ctest-vn-36406363: {} 2024-11-10 21:07:33,476 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-11-10 21:07:33,484 - DEBUG - Requesting: http://10.0.0.23:8082/domain/4d49b6cf-6b5a-49b8-92cd-1b6a35011282 2024-11-10 21:07:33,501 - DEBUG - Requesting: http://10.0.0.23:8082/project/5dac5572-88d4-4e62-9121-6dd0dce632f1 2024-11-10 21:07:33,590 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/a5909e35-f88d-4c10-9c66-f53626bd0b5e 2024-11-10 21:07:33,612 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/a5909e35-f88d-4c10-9c66-f53626bd0b5e 2024-11-10 21:07:33,632 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/773b5563-0986-43ee-b84a-32679c9605eb 2024-11-10 21:07:33,646 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/773b5563-0986-43ee-b84a-32679c9605eb 2024-11-10 21:07:33,667 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/9f9e7520-fc74-47b2-8cea-77cd7ce44a5f 2024-11-10 21:07:33,683 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-10 21:07:33,683 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/a5909e35-f88d-4c10-9c66-f53626bd0b5e 2024-11-10 21:07:33,704 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/773b5563-0986-43ee-b84a-32679c9605eb 2024-11-10 21:07:33,744 - INFO - Verified VN network id 9 for VN a5909e35-f88d-4c10-9c66-f53626bd0b5e 2024-11-10 21:07:33,744 - INFO - Verifications in API Server for VN ctest-vn-39964874 passed 2024-11-10 21:07:33,744 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/a5909e35-f88d-4c10-9c66-f53626bd0b5e 2024-11-10 21:07:33,762 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/773b5563-0986-43ee-b84a-32679c9605eb 2024-11-10 21:07:33,774 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/773b5563-0986-43ee-b84a-32679c9605eb 2024-11-10 21:07:33,785 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/9f9e7520-fc74-47b2-8cea-77cd7ce44a5f 2024-11-10 21:07:33,800 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-81488743:ctest-vn-39964874', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-81488743', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11930209367544908816', 'uuid-lslong': '11269964730468207454'}, 'enable': 'true', 'created': '2024-11-10T21:07:30', 'last-modified': '2024-11-10T21:07:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.749237'} 2024-11-10 21:07:33,807 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-10 21:07:33,807 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39964874 passed 2024-11-10 21:07:33,808 - DEBUG - ====Verifying policy data for ctest-vn-39964874 in API_Server ====== 2024-11-10 21:07:33,808 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-11-10 21:07:33,815 - DEBUG - Requesting: http://10.0.0.23:8082/domain/4d49b6cf-6b5a-49b8-92cd-1b6a35011282 2024-11-10 21:07:33,833 - DEBUG - Requesting: http://10.0.0.23:8082/project/5dac5572-88d4-4e62-9121-6dd0dce632f1 2024-11-10 21:07:33,918 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/a5909e35-f88d-4c10-9c66-f53626bd0b5e 2024-11-10 21:07:33,934 - DEBUG - ==>Verifying data for policy with id: 54964b5b-752b-4630-ac27-fc272a72ecea, fqn: ['default-domain', 'ctest-TestBasicPolicy-81488743', 'ctest-policy-allow-all-72647727'] 2024-11-10 21:07:33,934 - INFO - VN ctest-vn-39964874 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-10 21:07:33,935 - DEBUG - Verifying the vn in opserver 2024-11-10 21:07:33,935 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-81488743:ctest-vn-39964874 virtual network link through opserver 10.0.0.23 2024-11-10 21:07:33,935 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-11-10 21:07:33,949 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-81488743:ctest-vn-39964874', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-81488743:ctest-vn-39964874?flat'} 2024-11-10 21:07:33,950 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-81488743:ctest-vn-39964874 is found in opserver 2024-11-10 21:07:33,962 - DEBUG - Do not have enough data to verify VN in agent 2024-11-10 21:07:33,967 - DEBUG - VRF ids for VN ctest-vn-39964874: {} 2024-11-10 21:07:34,033 - DEBUG - Services list from nova: [, , ] 2024-11-10 21:07:35,440 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2265-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2265-1) 2024-11-10 21:07:36,792 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2265-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2265-1) 2024-11-10 21:07:36,792 - INFO - Waiting for VM ctest-TestBasicPolicy-81488743-72558992 to be up.. 2024-11-10 21:07:36,907 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-10 21:07:42,034 - DEBUG - VM is in ACTIVE state now 2024-11-10 21:07:42,034 - INFO - VM name : ctest-TestBasicPolicy-81488743-72558992 2024-11-10 21:07:42,176 - DEBUG - VM ctest-TestBasicPolicy-81488743-72558992 ID is 0e99565d-b42b-4432-8b3a-69bc9545e41a 2024-11-10 21:07:42,203 - DEBUG - VM ctest-TestBasicPolicy-81488743-72558992 launched on Node cn-jenkins-deploy-platform-ansible-os-2265-1 2024-11-10 21:07:42,325 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/0e99565d-b42b-4432-8b3a-69bc9545e41a 2024-11-10 21:07:42,339 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/e0c046e6-727e-4f0c-a741-5de55ca89017 2024-11-10 21:07:45,588 - 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 1028ms') 2024-11-10 21:07:45,589 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-81488743-72558992 failed! 2024-11-10 21:07:45,654 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-81488743:ctest-vn-36406363 is 113.212.114.193 and allocation pool is NOT set 2024-11-10 21:07:47,716 - 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=12.2 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.84 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.837/7.508/12.180/4.671 ms') 2024-11-10 21:07:47,716 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-81488743-72558992 passed 2024-11-10 21:07:47,903 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 21:07:47,904 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-81488743-72558992, IP 113.212.114.195, Port 22 2024-11-10 21:07:47,976 - 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-11-10 21:07:48,099 - DEBUG - VM ctest-TestBasicPolicy-81488743-72558992 is NOT ready for SSH connections, VM status: ACTIVE 2024-11-10 21:07:53,100 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 21:07:53,100 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-81488743-72558992, IP 113.212.114.195, Port 22 2024-11-10 21:07:53,266 - DEBUG - VM ctest-TestBasicPolicy-81488743-72558992 is ready for SSH connections 2024-11-10 21:07:53,266 - INFO - Waiting for VM ctest-TestBasicPolicy-81488743-30029845 to be up.. 2024-11-10 21:07:53,356 - DEBUG - VM is in ACTIVE state now 2024-11-10 21:07:53,356 - INFO - VM name : ctest-TestBasicPolicy-81488743-30029845 2024-11-10 21:07:53,448 - DEBUG - VM ctest-TestBasicPolicy-81488743-30029845 ID is cda594e9-bf66-4c78-a5bc-8777d0f629e1 2024-11-10 21:07:53,448 - DEBUG - VM ctest-TestBasicPolicy-81488743-30029845 launched on Node cn-jenkins-deploy-platform-ansible-os-2265-1 2024-11-10 21:07:53,533 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/cda594e9-bf66-4c78-a5bc-8777d0f629e1 2024-11-10 21:07:53,546 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/054554c4-7e7c-40b4-af3b-c842188551fa 2024-11-10 21:07:54,808 - 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.58 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.449 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.449/2.016/3.583/1.567 ms') 2024-11-10 21:07:54,808 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-81488743-30029845 passed 2024-11-10 21:07:54,987 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 21:07:54,988 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-81488743-30029845, IP 222.215.230.3, Port 22 2024-11-10 21:07:55,156 - DEBUG - VM ctest-TestBasicPolicy-81488743-30029845 is ready for SSH connections 2024-11-10 21:07:55,156 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 21:07:55,156 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 222.215.230.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-11-10 21:07:55,156 - DEBUG - ping -s 56 -c 3 -W 1 222.215.230.3 2024-11-10 21:07:59,273 - DEBUG - PING 222.215.230.3 (222.215.230.3): 56 data bytes 64 bytes from 222.215.230.3: seq=0 ttl=63 time=4.127 ms 64 bytes from 222.215.230.3: seq=1 ttl=63 time=1.187 ms 64 bytes from 222.215.230.3: seq=2 ttl=63 time=0.913 ms --- 222.215.230.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.913/2.075/4.127 ms 2024-11-10 21:07:59,273 - INFO - Ping to IP 222.215.230.3 from VM ctest-TestBasicPolicy-81488743-72558992 passed 2024-11-10 21:07:59,494 - DEBUG - Policy Update Response {"network-policy": {"uuid": "54964b5b-752b-4630-ac27-fc272a72ecea", "href": "http://10.0.0.23:8082/network-policy/54964b5b-752b-4630-ac27-fc272a72ecea"}} 2024-11-10 21:07:59,495 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 21:07:59,495 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 222.215.230.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-11-10 21:07:59,495 - DEBUG - ping -s 56 -c 3 -W 1 222.215.230.3 2024-11-10 21:08:02,732 - DEBUG - PING 222.215.230.3 (222.215.230.3): 56 data bytes --- 222.215.230.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-11-10 21:08:02,732 - WARNING - Ping to IP 222.215.230.3 from VM ctest-TestBasicPolicy-81488743-72558992 failed 2024-11-10 21:08:02,732 - INFO - Deleting VM ctest-TestBasicPolicy-81488743-30029845 2024-11-10 21:08:02,829 - INFO - Deleting VM ctest-TestBasicPolicy-81488743-72558992 2024-11-10 21:08:03,386 - INFO - Deleted policy ctest-policy-allow-all-72647727 2024-11-10 21:08:03,387 - INFO - Deleting VN ctest-vn-39964874 2024-11-10 21:08:03,461 - DEBUG - VN a5909e35-f88d-4c10-9c66-f53626bd0b5e still in use: Unable to complete operation on network a5909e35-f88d-4c10-9c66-f53626bd0b5e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-092a278f-cc9d-4b46-b936-255639a9d558'] 2024-11-10 21:08:03,461 - WARNING - Deleting VN ctest-vn-39964874 failed..Will retry 2024-11-10 21:08:05,664 - DEBUG - Response for deleting network () 2024-11-10 21:08:05,664 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/773b5563-0986-43ee-b84a-32679c9605eb 2024-11-10 21:08:05,673 - DEBUG - Response Code: 404 2024-11-10 21:08:05,673 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-11-10 21:08:05,682 - DEBUG - Requesting: http://10.0.0.23:8082/domain/4d49b6cf-6b5a-49b8-92cd-1b6a35011282 2024-11-10 21:08:05,745 - DEBUG - Requesting: http://10.0.0.23:8082/project/5dac5572-88d4-4e62-9121-6dd0dce632f1 2024-11-10 21:08:05,840 - INFO - Validated that VN ctest-vn-39964874 is not found in API Server 2024-11-10 21:08:05,852 - DEBUG - VN ctest-vn-39964874 is not present in Agent 10.0.0.23 2024-11-10 21:08:05,853 - INFO - Validated that VN ctest-vn-39964874 is not in any agent 2024-11-10 21:08:06,584 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-39964874 info 2024-11-10 21:08:06,584 - INFO - Deleting VN ctest-vn-36406363 2024-11-10 21:08:06,738 - DEBUG - Response for deleting network () 2024-11-10 21:08:06,739 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/316af5b1-9181-4110-b563-ea5ff5d36848 2024-11-10 21:08:06,745 - DEBUG - Response Code: 404 2024-11-10 21:08:06,746 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-11-10 21:08:06,755 - DEBUG - Requesting: http://10.0.0.23:8082/domain/4d49b6cf-6b5a-49b8-92cd-1b6a35011282 2024-11-10 21:08:06,819 - DEBUG - Requesting: http://10.0.0.23:8082/project/5dac5572-88d4-4e62-9121-6dd0dce632f1 2024-11-10 21:08:06,908 - INFO - Validated that VN ctest-vn-36406363 is not found in API Server 2024-11-10 21:08:06,921 - DEBUG - VN ctest-vn-36406363 is not present in Agent 10.0.0.23 2024-11-10 21:08:06,921 - INFO - Validated that VN ctest-vn-36406363 is not in any agent 2024-11-10 21:08:06,940 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-36406363 info 2024-11-10 21:08:07,201 - DEBUG - No XMPP flaps were noticed during the test 2024-11-10 21:08:07,201 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:38] 2024-11-10 21:08:07,201 - INFO - -------------------------------------------------------------------------------- 2024-11-10 21:08:07,999 - INFO - Deleted project: ctest-TestBasicPolicy-81488743, ID : 5dac5572-88d4-4e62-9121-6dd0dce632f1