2024-10-19 17:59:40,326 - INFO - Domain Default found not creating 2024-10-19 17:59:40,504 - INFO - Project ctest-TestBasicPolicy-35111111 not found, creating it 2024-10-19 17:59:41,034 - INFO - Created Project:ctest-TestBasicPolicy-35111111, ID : a41df6a5-097a-423b-817f-a1d4827acb0c 2024-10-19 17:59:42,617 - INFO - ================================================================================ 2024-10-19 17:59:42,618 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-19 17:59:42,618 - 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-19 17:59:42,887 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.11': '0'}} with 2024-10-19 17:59:42,887 - INFO - Initial checks done. Running the testcase now 2024-10-19 17:59:42,887 - INFO - 2024-10-19 17:59:43,467 - DEBUG - Response for create_network : {'network': {'id': 'd195c55d-fbe0-4338-a7d7-4be582721b51', 'name': 'ctest-vn-68910390', 'tenant_id': 'a41df6a5097a423b817fa1d4827acb0c', 'project_id': 'a41df6a5097a423b817fa1d4827acb0c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35111111', 'ctest-vn-68910390'], 'port_security_enabled': True, 'description': ''}} 2024-10-19 17:59:43,679 - DEBUG - Response for create_subnet : {'subnet': {'id': '64a69c20-fe3b-4f56-9ae0-80743afb9dcc', 'name': '', 'tenant_id': 'a41df6a5097a423b817fa1d4827acb0c', 'network_id': 'd195c55d-fbe0-4338-a7d7-4be582721b51', 'ip_version': 4, 'cidr': '98.83.183.0/26', 'allocation_pools': [{'start': '98.83.183.2', 'end': '98.83.183.62'}], 'gateway_ip': '98.83.183.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '98.83.183.2', 'tags': [], 'project_id': 'a41df6a5097a423b817fa1d4827acb0c'}} 2024-10-19 17:59:43,703 - INFO - Created VN ctest-vn-68910390 2024-10-19 17:59:43,760 - DEBUG - VN ctest-vn-68910390 UUID is d195c55d-fbe0-4338-a7d7-4be582721b51 2024-10-19 17:59:44,089 - DEBUG - Response for create_network : {'network': {'id': '0e7a1459-1f26-4f10-b465-a551dd7f6b95', 'name': 'ctest-vn-63223307', 'tenant_id': 'a41df6a5097a423b817fa1d4827acb0c', 'project_id': 'a41df6a5097a423b817fa1d4827acb0c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35111111', 'ctest-vn-63223307'], 'port_security_enabled': True, 'description': ''}} 2024-10-19 17:59:44,319 - DEBUG - Response for create_subnet : {'subnet': {'id': '85647acc-31fb-4738-8236-2135a9bba863', 'name': '', 'tenant_id': 'a41df6a5097a423b817fa1d4827acb0c', 'network_id': '0e7a1459-1f26-4f10-b465-a551dd7f6b95', 'ip_version': 4, 'cidr': '151.238.157.64/26', 'allocation_pools': [{'start': '151.238.157.66', 'end': '151.238.157.126'}], 'gateway_ip': '151.238.157.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.238.157.66', 'tags': [], 'project_id': 'a41df6a5097a423b817fa1d4827acb0c'}} 2024-10-19 17:59:44,341 - INFO - Created VN ctest-vn-63223307 2024-10-19 17:59:44,400 - DEBUG - VN ctest-vn-63223307 UUID is 0e7a1459-1f26-4f10-b465-a551dd7f6b95 2024-10-19 17:59:44,531 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-35111111:ctest-vn-68910390, 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-35111111:ctest-vn-63223307, 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-19 17:59:44,864 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd195c55d-fbe0-4338-a7d7-4be582721b51', 'name': 'ctest-vn-68910390', 'tenant_id': 'a41df6a5097a423b817fa1d4827acb0c', 'project_id': 'a41df6a5097a423b817fa1d4827acb0c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['64a69c20-fe3b-4f56-9ae0-80743afb9dcc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35111111', 'ctest-vn-68910390'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35111111', 'ctest-policy-allow-all-67093751']], 'subnet_ipam': [{'subnet_cidr': '98.83.183.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-19 17:59:45,175 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0e7a1459-1f26-4f10-b465-a551dd7f6b95', 'name': 'ctest-vn-63223307', 'tenant_id': 'a41df6a5097a423b817fa1d4827acb0c', 'project_id': 'a41df6a5097a423b817fa1d4827acb0c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['85647acc-31fb-4738-8236-2135a9bba863'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35111111', 'ctest-vn-63223307'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35111111', 'ctest-policy-allow-all-67093751']], 'subnet_ipam': [{'subnet_cidr': '151.238.157.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-19 17:59:45,328 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-10-19 17:59:45,649 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-10-19 17:59:45,684 - DEBUG - Requesting: http://10.0.0.40:8082/domain/46a1865c-c8cf-4efd-9ed3-5a7ae3fa7e2a 2024-10-19 17:59:45,700 - DEBUG - Requesting: http://10.0.0.40:8082/project/a41df6a5-097a-423b-817f-a1d4827acb0c 2024-10-19 17:59:45,786 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/d195c55d-fbe0-4338-a7d7-4be582721b51 2024-10-19 17:59:45,803 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/d195c55d-fbe0-4338-a7d7-4be582721b51 2024-10-19 17:59:45,820 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/3c148dd2-b5db-4629-9f03-acec53ee8260 2024-10-19 17:59:45,831 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/3c148dd2-b5db-4629-9f03-acec53ee8260 2024-10-19 17:59:45,840 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/5762c964-953a-4355-a527-57cc77591e0e 2024-10-19 17:59:45,848 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-19 17:59:45,848 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/d195c55d-fbe0-4338-a7d7-4be582721b51 2024-10-19 17:59:45,863 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/3c148dd2-b5db-4629-9f03-acec53ee8260 2024-10-19 17:59:45,883 - INFO - Verified VN network id 8 for VN d195c55d-fbe0-4338-a7d7-4be582721b51 2024-10-19 17:59:45,883 - INFO - Verifications in API Server for VN ctest-vn-68910390 passed 2024-10-19 17:59:45,883 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/d195c55d-fbe0-4338-a7d7-4be582721b51 2024-10-19 17:59:45,901 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/3c148dd2-b5db-4629-9f03-acec53ee8260 2024-10-19 17:59:45,910 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/3c148dd2-b5db-4629-9f03-acec53ee8260 2024-10-19 17:59:45,919 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/5762c964-953a-4355-a527-57cc77591e0e 2024-10-19 17:59:45,934 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35111111:ctest-vn-68910390', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35111111', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15102193932905235256', 'uuid-lslong': '12094218773434866513'}, 'enable': 'true', 'created': '2024-10-19T17:59:43', 'last-modified': '2024-10-19T17:59:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.094255'} 2024-10-19 17:59:45,941 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-19 17:59:45,941 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68910390 passed 2024-10-19 17:59:45,942 - DEBUG - ====Verifying policy data for ctest-vn-68910390 in API_Server ====== 2024-10-19 17:59:45,942 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-10-19 17:59:45,948 - DEBUG - Requesting: http://10.0.0.40:8082/domain/46a1865c-c8cf-4efd-9ed3-5a7ae3fa7e2a 2024-10-19 17:59:45,964 - DEBUG - Requesting: http://10.0.0.40:8082/project/a41df6a5-097a-423b-817f-a1d4827acb0c 2024-10-19 17:59:46,046 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/d195c55d-fbe0-4338-a7d7-4be582721b51 2024-10-19 17:59:46,060 - DEBUG - ==>Verifying data for policy with id: 4568d590-4a70-4665-b434-f58f5ccc88a3, fqn: ['default-domain', 'ctest-TestBasicPolicy-35111111', 'ctest-policy-allow-all-67093751'] 2024-10-19 17:59:46,060 - INFO - VN ctest-vn-68910390 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-19 17:59:46,060 - DEBUG - Verifying the vn in opserver 2024-10-19 17:59:46,060 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35111111:ctest-vn-68910390 virtual network link through opserver 10.0.0.40 2024-10-19 17:59:46,060 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2024-10-19 17:59:46,353 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2024-10-19 17:59:46,416 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35111111:ctest-vn-68910390', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35111111:ctest-vn-68910390?flat'} 2024-10-19 17:59:46,416 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35111111:ctest-vn-68910390 is found in opserver 2024-10-19 17:59:46,426 - DEBUG - Do not have enough data to verify VN in agent 2024-10-19 17:59:46,431 - DEBUG - VRF ids for VN ctest-vn-68910390: {} 2024-10-19 17:59:46,432 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-10-19 17:59:46,438 - DEBUG - Requesting: http://10.0.0.40:8082/domain/46a1865c-c8cf-4efd-9ed3-5a7ae3fa7e2a 2024-10-19 17:59:46,451 - DEBUG - Requesting: http://10.0.0.40:8082/project/a41df6a5-097a-423b-817f-a1d4827acb0c 2024-10-19 17:59:46,535 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/0e7a1459-1f26-4f10-b465-a551dd7f6b95 2024-10-19 17:59:46,557 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/0e7a1459-1f26-4f10-b465-a551dd7f6b95 2024-10-19 17:59:46,571 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/f6da987c-ef8f-4305-bfc5-3e8350042a97 2024-10-19 17:59:46,581 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/f6da987c-ef8f-4305-bfc5-3e8350042a97 2024-10-19 17:59:46,591 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/03d72aa2-e38f-4454-a54c-b4ab776d3dc0 2024-10-19 17:59:46,599 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-19 17:59:46,600 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/0e7a1459-1f26-4f10-b465-a551dd7f6b95 2024-10-19 17:59:46,614 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/f6da987c-ef8f-4305-bfc5-3e8350042a97 2024-10-19 17:59:46,637 - INFO - Verified VN network id 9 for VN 0e7a1459-1f26-4f10-b465-a551dd7f6b95 2024-10-19 17:59:46,637 - INFO - Verifications in API Server for VN ctest-vn-63223307 passed 2024-10-19 17:59:46,637 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/0e7a1459-1f26-4f10-b465-a551dd7f6b95 2024-10-19 17:59:46,651 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/f6da987c-ef8f-4305-bfc5-3e8350042a97 2024-10-19 17:59:46,660 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/f6da987c-ef8f-4305-bfc5-3e8350042a97 2024-10-19 17:59:46,669 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/03d72aa2-e38f-4454-a54c-b4ab776d3dc0 2024-10-19 17:59:46,684 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35111111:ctest-vn-63223307', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35111111', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1043168636696940304', 'uuid-lslong': '12998977670501854101'}, 'enable': 'true', 'created': '2024-10-19T17:59:44', 'last-modified': '2024-10-19T17:59:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.582051'} 2024-10-19 17:59:46,691 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-19 17:59:46,691 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63223307 passed 2024-10-19 17:59:46,691 - DEBUG - ====Verifying policy data for ctest-vn-63223307 in API_Server ====== 2024-10-19 17:59:46,691 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-10-19 17:59:46,698 - DEBUG - Requesting: http://10.0.0.40:8082/domain/46a1865c-c8cf-4efd-9ed3-5a7ae3fa7e2a 2024-10-19 17:59:46,713 - DEBUG - Requesting: http://10.0.0.40:8082/project/a41df6a5-097a-423b-817f-a1d4827acb0c 2024-10-19 17:59:46,799 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/0e7a1459-1f26-4f10-b465-a551dd7f6b95 2024-10-19 17:59:46,814 - DEBUG - ==>Verifying data for policy with id: 4568d590-4a70-4665-b434-f58f5ccc88a3, fqn: ['default-domain', 'ctest-TestBasicPolicy-35111111', 'ctest-policy-allow-all-67093751'] 2024-10-19 17:59:46,814 - INFO - VN ctest-vn-63223307 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-19 17:59:46,814 - DEBUG - Verifying the vn in opserver 2024-10-19 17:59:46,814 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35111111:ctest-vn-63223307 virtual network link through opserver 10.0.0.40 2024-10-19 17:59:46,814 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2024-10-19 17:59:46,827 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35111111:ctest-vn-63223307', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35111111:ctest-vn-63223307?flat'} 2024-10-19 17:59:46,827 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35111111:ctest-vn-63223307 is found in opserver 2024-10-19 17:59:46,839 - DEBUG - Do not have enough data to verify VN in agent 2024-10-19 17:59:46,844 - DEBUG - VRF ids for VN ctest-vn-63223307: {} 2024-10-19 17:59:46,902 - DEBUG - Services list from nova: [, , ] 2024-10-19 17:59:48,106 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2118-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2118-1) 2024-10-19 17:59:49,373 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2118-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2118-1) 2024-10-19 17:59:49,373 - INFO - Waiting for VM ctest-TestBasicPolicy-35111111-84837513 to be up.. 2024-10-19 17:59:49,464 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-19 17:59:54,573 - DEBUG - VM is in ACTIVE state now 2024-10-19 17:59:54,573 - INFO - VM name : ctest-TestBasicPolicy-35111111-84837513 2024-10-19 17:59:54,663 - DEBUG - VM ctest-TestBasicPolicy-35111111-84837513 ID is ae4b4539-8e86-442d-9e21-49b3172528b3 2024-10-19 17:59:54,688 - DEBUG - VM ctest-TestBasicPolicy-35111111-84837513 launched on Node cn-jenkins-deploy-platform-ansible-os-2118-1 2024-10-19 17:59:54,802 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/ae4b4539-8e86-442d-9e21-49b3172528b3 2024-10-19 17:59:54,814 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/35dcd109-b593-4e1e-8f5d-065b988720e5 2024-10-19 17:59:58,076 - 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 1007ms') 2024-10-19 17:59:58,076 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-35111111-84837513 failed! 2024-10-19 17:59:58,137 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-35111111:ctest-vn-68910390 is 98.83.183.1 and allocation pool is NOT set 2024-10-19 18:00:00,208 - 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=10.2 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.54 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.537/6.346/10.156/3.809 ms') 2024-10-19 18:00:00,208 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-35111111-84837513 passed 2024-10-19 18:00:00,368 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-19 18:00:00,368 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-35111111-84837513, IP 98.83.183.3, Port 22 2024-10-19 18:00:00,427 - 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-19 18:00:00,524 - DEBUG - VM ctest-TestBasicPolicy-35111111-84837513 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-19 18:00:05,525 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-19 18:00:05,525 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-35111111-84837513, IP 98.83.183.3, Port 22 2024-10-19 18:00:05,680 - DEBUG - VM ctest-TestBasicPolicy-35111111-84837513 is ready for SSH connections 2024-10-19 18:00:05,680 - INFO - Waiting for VM ctest-TestBasicPolicy-35111111-74622456 to be up.. 2024-10-19 18:00:05,767 - DEBUG - VM is in ACTIVE state now 2024-10-19 18:00:05,767 - INFO - VM name : ctest-TestBasicPolicy-35111111-74622456 2024-10-19 18:00:05,855 - DEBUG - VM ctest-TestBasicPolicy-35111111-74622456 ID is 8c660b83-38da-4903-8ac8-1a5ecb55ca4a 2024-10-19 18:00:05,856 - DEBUG - VM ctest-TestBasicPolicy-35111111-74622456 launched on Node cn-jenkins-deploy-platform-ansible-os-2118-1 2024-10-19 18:00:05,944 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/8c660b83-38da-4903-8ac8-1a5ecb55ca4a 2024-10-19 18:00:05,955 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/9515a573-db3e-4a0a-81af-068fd4d78076 2024-10-19 18:00:07,210 - 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.65 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.476 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.476/2.064/3.652/1.588 ms') 2024-10-19 18:00:07,210 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-35111111-74622456 passed 2024-10-19 18:00:07,368 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-19 18:00:07,368 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-35111111-74622456, IP 151.238.157.67, Port 22 2024-10-19 18:00:07,528 - DEBUG - VM ctest-TestBasicPolicy-35111111-74622456 is ready for SSH connections 2024-10-19 18:00:07,528 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-19 18:00:07,528 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 151.238.157.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2024-10-19 18:00:07,528 - DEBUG - ping -s 56 -c 3 -W 1 151.238.157.67 2024-10-19 18:00:11,534 - DEBUG - PING 151.238.157.67 (151.238.157.67): 56 data bytes 64 bytes from 151.238.157.67: seq=0 ttl=63 time=5.758 ms 64 bytes from 151.238.157.67: seq=1 ttl=63 time=0.749 ms 64 bytes from 151.238.157.67: seq=2 ttl=63 time=1.095 ms --- 151.238.157.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.749/2.534/5.758 ms 2024-10-19 18:00:11,534 - INFO - Ping to IP 151.238.157.67 from VM ctest-TestBasicPolicy-35111111-84837513 passed 2024-10-19 18:00:11,724 - DEBUG - Policy Update Response {"network-policy": {"uuid": "4568d590-4a70-4665-b434-f58f5ccc88a3", "href": "http://10.0.0.40:8082/network-policy/4568d590-4a70-4665-b434-f58f5ccc88a3"}} 2024-10-19 18:00:11,724 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-19 18:00:11,724 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 151.238.157.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2024-10-19 18:00:11,724 - DEBUG - ping -s 56 -c 3 -W 1 151.238.157.67 2024-10-19 18:00:14,938 - DEBUG - PING 151.238.157.67 (151.238.157.67): 56 data bytes 64 bytes from 151.238.157.67: seq=0 ttl=63 time=2.079 ms --- 151.238.157.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.079/2.079/2.079 ms 2024-10-19 18:00:14,938 - WARNING - Ping to IP 151.238.157.67 from VM ctest-TestBasicPolicy-35111111-84837513 failed 2024-10-19 18:00:14,938 - INFO - Deleting VM ctest-TestBasicPolicy-35111111-74622456 2024-10-19 18:00:15,013 - INFO - Deleting VM ctest-TestBasicPolicy-35111111-84837513 2024-10-19 18:00:15,430 - INFO - Deleted policy ctest-policy-allow-all-67093751 2024-10-19 18:00:15,431 - INFO - Deleting VN ctest-vn-63223307 2024-10-19 18:00:15,476 - DEBUG - VN 0e7a1459-1f26-4f10-b465-a551dd7f6b95 still in use: Unable to complete operation on network 0e7a1459-1f26-4f10-b465-a551dd7f6b95. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-3bd5532f-e1be-415b-a778-ed9518d82bb3'] 2024-10-19 18:00:15,476 - WARNING - Deleting VN ctest-vn-63223307 failed..Will retry 2024-10-19 18:00:17,604 - DEBUG - Response for deleting network () 2024-10-19 18:00:17,604 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/f6da987c-ef8f-4305-bfc5-3e8350042a97 2024-10-19 18:00:17,614 - DEBUG - Response Code: 404 2024-10-19 18:00:17,614 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-10-19 18:00:17,621 - DEBUG - Requesting: http://10.0.0.40:8082/domain/46a1865c-c8cf-4efd-9ed3-5a7ae3fa7e2a 2024-10-19 18:00:17,679 - DEBUG - Requesting: http://10.0.0.40:8082/project/a41df6a5-097a-423b-817f-a1d4827acb0c 2024-10-19 18:00:17,756 - INFO - Validated that VN ctest-vn-63223307 is not found in API Server 2024-10-19 18:00:17,767 - DEBUG - VN ctest-vn-63223307 is not present in Agent 10.0.0.40 2024-10-19 18:00:17,767 - INFO - Validated that VN ctest-vn-63223307 is not in any agent 2024-10-19 18:00:17,782 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-63223307 info 2024-10-19 18:00:17,783 - INFO - Deleting VN ctest-vn-68910390 2024-10-19 18:00:17,896 - DEBUG - Response for deleting network () 2024-10-19 18:00:17,896 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/3c148dd2-b5db-4629-9f03-acec53ee8260 2024-10-19 18:00:17,903 - DEBUG - Response Code: 404 2024-10-19 18:00:17,903 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-10-19 18:00:17,911 - DEBUG - Requesting: http://10.0.0.40:8082/domain/46a1865c-c8cf-4efd-9ed3-5a7ae3fa7e2a 2024-10-19 18:00:17,966 - DEBUG - Requesting: http://10.0.0.40:8082/project/a41df6a5-097a-423b-817f-a1d4827acb0c 2024-10-19 18:00:18,050 - INFO - Validated that VN ctest-vn-68910390 is not found in API Server 2024-10-19 18:00:18,061 - DEBUG - VN ctest-vn-68910390 is not present in Agent 10.0.0.40 2024-10-19 18:00:18,061 - INFO - Validated that VN ctest-vn-68910390 is not in any agent 2024-10-19 18:00:18,078 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-68910390 info 2024-10-19 18:00:18,334 - DEBUG - No XMPP flaps were noticed during the test 2024-10-19 18:00:18,334 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2024-10-19 18:00:18,335 - INFO - -------------------------------------------------------------------------------- 2024-10-19 18:00:19,027 - INFO - Deleted project: ctest-TestBasicPolicy-35111111, ID : a41df6a5-097a-423b-817f-a1d4827acb0c