2024-09-17 07:08:33,313 - INFO - Domain Default found not creating 2024-09-17 07:08:33,497 - INFO - Project ctest-TestBasicPolicy-54832642 not found, creating it 2024-09-17 07:08:34,005 - INFO - Created Project:ctest-TestBasicPolicy-54832642, ID : d6342153-6841-49c6-b717-c70dd8b85017 2024-09-17 07:08:35,692 - INFO - ================================================================================ 2024-09-17 07:08:35,692 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-17 07:08:35,692 - 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-09-17 07:08:35,962 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.7': '0'}} with 2024-09-17 07:08:35,962 - INFO - Initial checks done. Running the testcase now 2024-09-17 07:08:35,962 - INFO - 2024-09-17 07:08:36,621 - DEBUG - Response for create_network : {'network': {'id': 'd96c9784-7eed-4d18-86f3-d9e94c311c36', 'name': 'ctest-vn-95443800', 'tenant_id': 'd6342153684149c6b717c70dd8b85017', 'project_id': 'd6342153684149c6b717c70dd8b85017', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54832642', 'ctest-vn-95443800'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 07:08:36,852 - DEBUG - Response for create_subnet : {'subnet': {'id': '5fe8347a-7425-4d3b-a639-dd4262632300', 'name': '', 'tenant_id': 'd6342153684149c6b717c70dd8b85017', 'network_id': 'd96c9784-7eed-4d18-86f3-d9e94c311c36', 'ip_version': 4, 'cidr': '215.43.52.128/26', 'allocation_pools': [{'start': '215.43.52.130', 'end': '215.43.52.190'}], 'gateway_ip': '215.43.52.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '215.43.52.130', 'tags': [], 'project_id': 'd6342153684149c6b717c70dd8b85017'}} 2024-09-17 07:08:36,874 - INFO - Created VN ctest-vn-95443800 2024-09-17 07:08:36,933 - DEBUG - VN ctest-vn-95443800 UUID is d96c9784-7eed-4d18-86f3-d9e94c311c36 2024-09-17 07:08:37,293 - DEBUG - Response for create_network : {'network': {'id': '7946ca69-9fda-4277-b137-9b702dc505e4', 'name': 'ctest-vn-86882117', 'tenant_id': 'd6342153684149c6b717c70dd8b85017', 'project_id': 'd6342153684149c6b717c70dd8b85017', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54832642', 'ctest-vn-86882117'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 07:08:37,485 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f6c49ff5-9031-4986-822f-0b03160519ba', 'name': '', 'tenant_id': 'd6342153684149c6b717c70dd8b85017', 'network_id': '7946ca69-9fda-4277-b137-9b702dc505e4', 'ip_version': 4, 'cidr': '79.143.160.64/26', 'allocation_pools': [{'start': '79.143.160.66', 'end': '79.143.160.126'}], 'gateway_ip': '79.143.160.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.143.160.66', 'tags': [], 'project_id': 'd6342153684149c6b717c70dd8b85017'}} 2024-09-17 07:08:37,507 - INFO - Created VN ctest-vn-86882117 2024-09-17 07:08:37,565 - DEBUG - VN ctest-vn-86882117 UUID is 7946ca69-9fda-4277-b137-9b702dc505e4 2024-09-17 07:08:37,697 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54832642:ctest-vn-95443800, 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-54832642:ctest-vn-86882117, 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-09-17 07:08:38,029 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd96c9784-7eed-4d18-86f3-d9e94c311c36', 'name': 'ctest-vn-95443800', 'tenant_id': 'd6342153684149c6b717c70dd8b85017', 'project_id': 'd6342153684149c6b717c70dd8b85017', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5fe8347a-7425-4d3b-a639-dd4262632300'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54832642', 'ctest-vn-95443800'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54832642', 'ctest-policy-allow-all-29042505']], 'subnet_ipam': [{'subnet_cidr': '215.43.52.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-17 07:08:38,288 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7946ca69-9fda-4277-b137-9b702dc505e4', 'name': 'ctest-vn-86882117', 'tenant_id': 'd6342153684149c6b717c70dd8b85017', 'project_id': 'd6342153684149c6b717c70dd8b85017', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f6c49ff5-9031-4986-822f-0b03160519ba'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54832642', 'ctest-vn-86882117'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54832642', 'ctest-policy-allow-all-29042505']], 'subnet_ipam': [{'subnet_cidr': '79.143.160.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-17 07:08:38,445 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-09-17 07:08:38,810 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-09-17 07:08:38,846 - DEBUG - Requesting: http://10.0.0.37:8082/domain/8fc24e1e-d1f1-4dee-b3af-a8b458a7a398 2024-09-17 07:08:38,863 - DEBUG - Requesting: http://10.0.0.37:8082/project/d6342153-6841-49c6-b717-c70dd8b85017 2024-09-17 07:08:38,953 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/d96c9784-7eed-4d18-86f3-d9e94c311c36 2024-09-17 07:08:38,969 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/d96c9784-7eed-4d18-86f3-d9e94c311c36 2024-09-17 07:08:38,989 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/4f6ad6d4-7edd-4fb2-bdae-5718023dfe5f 2024-09-17 07:08:38,999 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/4f6ad6d4-7edd-4fb2-bdae-5718023dfe5f 2024-09-17 07:08:39,009 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/fe869b67-69de-48df-b1b0-e5c8ec35250f 2024-09-17 07:08:39,020 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-17 07:08:39,020 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/d96c9784-7eed-4d18-86f3-d9e94c311c36 2024-09-17 07:08:39,039 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/4f6ad6d4-7edd-4fb2-bdae-5718023dfe5f 2024-09-17 07:08:39,061 - INFO - Verified VN network id 8 for VN d96c9784-7eed-4d18-86f3-d9e94c311c36 2024-09-17 07:08:39,061 - INFO - Verifications in API Server for VN ctest-vn-95443800 passed 2024-09-17 07:08:39,062 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/d96c9784-7eed-4d18-86f3-d9e94c311c36 2024-09-17 07:08:39,078 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/4f6ad6d4-7edd-4fb2-bdae-5718023dfe5f 2024-09-17 07:08:39,088 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/4f6ad6d4-7edd-4fb2-bdae-5718023dfe5f 2024-09-17 07:08:39,102 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/fe869b67-69de-48df-b1b0-e5c8ec35250f 2024-09-17 07:08:39,121 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54832642:ctest-vn-95443800', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54832642', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15667063799036071192', 'uuid-lslong': '9724355616451927094'}, 'enable': 'true', 'created': '2024-09-17T07:08:36', 'last-modified': '2024-09-17T07:08:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.126510'} 2024-09-17 07:08:39,128 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-17 07:08:39,128 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95443800 passed 2024-09-17 07:08:39,129 - DEBUG - ====Verifying policy data for ctest-vn-95443800 in API_Server ====== 2024-09-17 07:08:39,129 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-09-17 07:08:39,135 - DEBUG - Requesting: http://10.0.0.37:8082/domain/8fc24e1e-d1f1-4dee-b3af-a8b458a7a398 2024-09-17 07:08:39,149 - DEBUG - Requesting: http://10.0.0.37:8082/project/d6342153-6841-49c6-b717-c70dd8b85017 2024-09-17 07:08:39,245 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/d96c9784-7eed-4d18-86f3-d9e94c311c36 2024-09-17 07:08:39,261 - DEBUG - ==>Verifying data for policy with id: 8786b2dd-c069-4641-ae2d-4d5e384c3ef5, fqn: ['default-domain', 'ctest-TestBasicPolicy-54832642', 'ctest-policy-allow-all-29042505'] 2024-09-17 07:08:39,261 - INFO - VN ctest-vn-95443800 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-17 07:08:39,261 - DEBUG - Verifying the vn in opserver 2024-09-17 07:08:39,261 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54832642:ctest-vn-95443800 virtual network link through opserver 10.0.0.37 2024-09-17 07:08:39,261 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks 2024-09-17 07:08:39,597 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks 2024-09-17 07:08:39,664 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54832642:ctest-vn-95443800', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54832642:ctest-vn-95443800?flat'} 2024-09-17 07:08:39,664 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54832642:ctest-vn-95443800 is found in opserver 2024-09-17 07:08:39,678 - DEBUG - Do not have enough data to verify VN in agent 2024-09-17 07:08:39,683 - DEBUG - VRF ids for VN ctest-vn-95443800: {} 2024-09-17 07:08:39,683 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-09-17 07:08:39,690 - DEBUG - Requesting: http://10.0.0.37:8082/domain/8fc24e1e-d1f1-4dee-b3af-a8b458a7a398 2024-09-17 07:08:39,703 - DEBUG - Requesting: http://10.0.0.37:8082/project/d6342153-6841-49c6-b717-c70dd8b85017 2024-09-17 07:08:39,788 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/7946ca69-9fda-4277-b137-9b702dc505e4 2024-09-17 07:08:39,808 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/7946ca69-9fda-4277-b137-9b702dc505e4 2024-09-17 07:08:39,823 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/6cf5b43c-ebec-45fd-8830-25df59e695c7 2024-09-17 07:08:39,832 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/6cf5b43c-ebec-45fd-8830-25df59e695c7 2024-09-17 07:08:39,842 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/9661ac0f-b565-467c-828e-c77c783ecc83 2024-09-17 07:08:39,850 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-17 07:08:39,850 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/7946ca69-9fda-4277-b137-9b702dc505e4 2024-09-17 07:08:39,865 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/6cf5b43c-ebec-45fd-8830-25df59e695c7 2024-09-17 07:08:39,887 - INFO - Verified VN network id 9 for VN 7946ca69-9fda-4277-b137-9b702dc505e4 2024-09-17 07:08:39,887 - INFO - Verifications in API Server for VN ctest-vn-86882117 passed 2024-09-17 07:08:39,887 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/7946ca69-9fda-4277-b137-9b702dc505e4 2024-09-17 07:08:39,904 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/6cf5b43c-ebec-45fd-8830-25df59e695c7 2024-09-17 07:08:39,913 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/6cf5b43c-ebec-45fd-8830-25df59e695c7 2024-09-17 07:08:39,923 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/9661ac0f-b565-467c-828e-c77c783ecc83 2024-09-17 07:08:39,938 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54832642:ctest-vn-86882117', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54832642', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8738894681961284215', 'uuid-lslong': '12769846174538860004'}, 'enable': 'true', 'created': '2024-09-17T07:08:37', 'last-modified': '2024-09-17T07:08:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.680894'} 2024-09-17 07:08:39,946 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-17 07:08:39,946 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86882117 passed 2024-09-17 07:08:39,946 - DEBUG - ====Verifying policy data for ctest-vn-86882117 in API_Server ====== 2024-09-17 07:08:39,946 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-09-17 07:08:39,952 - DEBUG - Requesting: http://10.0.0.37:8082/domain/8fc24e1e-d1f1-4dee-b3af-a8b458a7a398 2024-09-17 07:08:39,966 - DEBUG - Requesting: http://10.0.0.37:8082/project/d6342153-6841-49c6-b717-c70dd8b85017 2024-09-17 07:08:40,050 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/7946ca69-9fda-4277-b137-9b702dc505e4 2024-09-17 07:08:40,066 - DEBUG - ==>Verifying data for policy with id: 8786b2dd-c069-4641-ae2d-4d5e384c3ef5, fqn: ['default-domain', 'ctest-TestBasicPolicy-54832642', 'ctest-policy-allow-all-29042505'] 2024-09-17 07:08:40,066 - INFO - VN ctest-vn-86882117 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-17 07:08:40,066 - DEBUG - Verifying the vn in opserver 2024-09-17 07:08:40,066 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54832642:ctest-vn-86882117 virtual network link through opserver 10.0.0.37 2024-09-17 07:08:40,066 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks 2024-09-17 07:08:40,078 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54832642:ctest-vn-86882117', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54832642:ctest-vn-86882117?flat'} 2024-09-17 07:08:40,078 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54832642:ctest-vn-86882117 is found in opserver 2024-09-17 07:08:40,096 - DEBUG - Do not have enough data to verify VN in agent 2024-09-17 07:08:40,102 - DEBUG - VRF ids for VN ctest-vn-86882117: {} 2024-09-17 07:08:40,161 - DEBUG - Services list from nova: [, , ] 2024-09-17 07:08:41,426 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1955-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1955-1) 2024-09-17 07:08:42,781 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1955-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1955-1) 2024-09-17 07:08:42,781 - INFO - Waiting for VM ctest-TestBasicPolicy-54832642-50066230 to be up.. 2024-09-17 07:08:42,883 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-17 07:08:47,983 - DEBUG - VM is in ACTIVE state now 2024-09-17 07:08:47,983 - INFO - VM name : ctest-TestBasicPolicy-54832642-50066230 2024-09-17 07:08:48,085 - DEBUG - VM ctest-TestBasicPolicy-54832642-50066230 ID is 6b84b09d-71a6-4213-babc-35d35395c4da 2024-09-17 07:08:48,108 - DEBUG - VM ctest-TestBasicPolicy-54832642-50066230 launched on Node cn-jenkins-deploy-platform-ansible-os-1955-1 2024-09-17 07:08:48,199 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/6b84b09d-71a6-4213-babc-35d35395c4da 2024-09-17 07:08:48,211 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/7b672779-a42e-4857-aa94-2ed05a84ba25 2024-09-17 07:08:51,496 - 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 1026ms') 2024-09-17 07:08:51,496 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-54832642-50066230 failed! 2024-09-17 07:08:51,557 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-54832642:ctest-vn-95443800 is 215.43.52.129 and allocation pool is NOT set 2024-09-17 07:08:53,615 - 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=9.58 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.29 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 = 1.286/5.431/9.577/4.145 ms') 2024-09-17 07:08:53,615 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-54832642-50066230 passed 2024-09-17 07:08:53,805 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 07:08:53,805 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-54832642-50066230, IP 215.43.52.131, Port 22 2024-09-17 07:08:53,864 - 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-09-17 07:08:53,975 - DEBUG - VM ctest-TestBasicPolicy-54832642-50066230 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-17 07:08:58,976 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 07:08:58,977 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-54832642-50066230, IP 215.43.52.131, Port 22 2024-09-17 07:08:59,133 - DEBUG - VM ctest-TestBasicPolicy-54832642-50066230 is ready for SSH connections 2024-09-17 07:08:59,133 - INFO - Waiting for VM ctest-TestBasicPolicy-54832642-61741812 to be up.. 2024-09-17 07:08:59,223 - DEBUG - VM is in ACTIVE state now 2024-09-17 07:08:59,223 - INFO - VM name : ctest-TestBasicPolicy-54832642-61741812 2024-09-17 07:08:59,308 - DEBUG - VM ctest-TestBasicPolicy-54832642-61741812 ID is 4963e782-d3a3-4747-9a39-2717febc04aa 2024-09-17 07:08:59,308 - DEBUG - VM ctest-TestBasicPolicy-54832642-61741812 launched on Node cn-jenkins-deploy-platform-ansible-os-1955-1 2024-09-17 07:08:59,389 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/4963e782-d3a3-4747-9a39-2717febc04aa 2024-09-17 07:08:59,398 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/7c987ce8-06d6-4489-bb71-0afeb25ed4cc 2024-09-17 07:09:00,650 - 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.54 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.350 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.350/1.943/3.537/1.593 ms') 2024-09-17 07:09:00,650 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-54832642-61741812 passed 2024-09-17 07:09:00,813 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 07:09:00,813 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-54832642-61741812, IP 79.143.160.67, Port 22 2024-09-17 07:09:00,980 - DEBUG - VM ctest-TestBasicPolicy-54832642-61741812 is ready for SSH connections 2024-09-17 07:09:00,980 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 07:09:00,981 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 79.143.160.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.37, gateway password: c0ntrail123 2024-09-17 07:09:00,981 - DEBUG - ping -s 56 -c 3 -W 1 79.143.160.67 2024-09-17 07:09:05,061 - DEBUG - PING 79.143.160.67 (79.143.160.67): 56 data bytes 64 bytes from 79.143.160.67: seq=0 ttl=63 time=5.465 ms 64 bytes from 79.143.160.67: seq=1 ttl=63 time=1.103 ms 64 bytes from 79.143.160.67: seq=2 ttl=63 time=0.770 ms --- 79.143.160.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.770/2.446/5.465 ms 2024-09-17 07:09:05,062 - INFO - Ping to IP 79.143.160.67 from VM ctest-TestBasicPolicy-54832642-50066230 passed 2024-09-17 07:09:05,249 - DEBUG - Policy Update Response {"network-policy": {"uuid": "8786b2dd-c069-4641-ae2d-4d5e384c3ef5", "href": "http://10.0.0.37:8082/network-policy/8786b2dd-c069-4641-ae2d-4d5e384c3ef5"}} 2024-09-17 07:09:05,249 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 07:09:05,249 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 79.143.160.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.37, gateway password: c0ntrail123 2024-09-17 07:09:05,249 - DEBUG - ping -s 56 -c 3 -W 1 79.143.160.67 2024-09-17 07:09:08,476 - DEBUG - PING 79.143.160.67 (79.143.160.67): 56 data bytes 64 bytes from 79.143.160.67: seq=0 ttl=63 time=1.649 ms --- 79.143.160.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.649/1.649/1.649 ms 2024-09-17 07:09:08,476 - WARNING - Ping to IP 79.143.160.67 from VM ctest-TestBasicPolicy-54832642-50066230 failed 2024-09-17 07:09:08,476 - INFO - Deleting VM ctest-TestBasicPolicy-54832642-61741812 2024-09-17 07:09:08,550 - INFO - Deleting VM ctest-TestBasicPolicy-54832642-50066230 2024-09-17 07:09:09,010 - INFO - Deleted policy ctest-policy-allow-all-29042505 2024-09-17 07:09:09,010 - INFO - Deleting VN ctest-vn-86882117 2024-09-17 07:09:09,056 - DEBUG - VN 7946ca69-9fda-4277-b137-9b702dc505e4 still in use: Unable to complete operation on network 7946ca69-9fda-4277-b137-9b702dc505e4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-bbb51d88-7487-4275-8cff-dbc369189106'] 2024-09-17 07:09:09,056 - WARNING - Deleting VN ctest-vn-86882117 failed..Will retry 2024-09-17 07:09:11,176 - DEBUG - Response for deleting network () 2024-09-17 07:09:11,176 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/6cf5b43c-ebec-45fd-8830-25df59e695c7 2024-09-17 07:09:11,183 - DEBUG - Response Code: 404 2024-09-17 07:09:11,183 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-09-17 07:09:11,192 - DEBUG - Requesting: http://10.0.0.37:8082/domain/8fc24e1e-d1f1-4dee-b3af-a8b458a7a398 2024-09-17 07:09:11,250 - DEBUG - Requesting: http://10.0.0.37:8082/project/d6342153-6841-49c6-b717-c70dd8b85017 2024-09-17 07:09:11,340 - INFO - Validated that VN ctest-vn-86882117 is not found in API Server 2024-09-17 07:09:11,353 - DEBUG - VN ctest-vn-86882117 is not present in Agent 10.0.0.37 2024-09-17 07:09:11,353 - INFO - Validated that VN ctest-vn-86882117 is not in any agent 2024-09-17 07:09:11,370 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-86882117 info 2024-09-17 07:09:11,370 - INFO - Deleting VN ctest-vn-95443800 2024-09-17 07:09:11,493 - DEBUG - Response for deleting network () 2024-09-17 07:09:11,493 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/4f6ad6d4-7edd-4fb2-bdae-5718023dfe5f 2024-09-17 07:09:11,500 - DEBUG - Response Code: 404 2024-09-17 07:09:11,501 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-09-17 07:09:11,507 - DEBUG - Requesting: http://10.0.0.37:8082/domain/8fc24e1e-d1f1-4dee-b3af-a8b458a7a398 2024-09-17 07:09:11,567 - DEBUG - Requesting: http://10.0.0.37:8082/project/d6342153-6841-49c6-b717-c70dd8b85017 2024-09-17 07:09:11,651 - INFO - Validated that VN ctest-vn-95443800 is not found in API Server 2024-09-17 07:09:11,663 - DEBUG - VN ctest-vn-95443800 is not present in Agent 10.0.0.37 2024-09-17 07:09:11,663 - INFO - Validated that VN ctest-vn-95443800 is not in any agent 2024-09-17 07:09:11,680 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-95443800 info 2024-09-17 07:09:11,940 - DEBUG - No XMPP flaps were noticed during the test
2024-09-17 07:09:11,940 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2024-09-17 07:09:11,940 - INFO - -------------------------------------------------------------------------------- 2024-09-17 07:09:12,701 - INFO - Deleted project: ctest-TestBasicPolicy-54832642, ID : d6342153-6841-49c6-b717-c70dd8b85017