2024-11-06 17:58:23,440 - INFO - Domain Default found not creating 2024-11-06 17:58:23,621 - INFO - Project ctest-TestBasicPolicy-38255251 not found, creating it 2024-11-06 17:58:24,158 - INFO - Created Project:ctest-TestBasicPolicy-38255251, ID : 503e4ee0-e231-4d1e-83a2-805155daf1c0 2024-11-06 17:58:25,707 - INFO - ================================================================================ 2024-11-06 17:58:25,707 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-06 17:58:25,707 - 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-06 17:58:25,969 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.6': '0'}} with 2024-11-06 17:58:25,969 - INFO - Initial checks done. Running the testcase now 2024-11-06 17:58:25,970 - INFO - 2024-11-06 17:58:26,582 - DEBUG - Response for create_network : {'network': {'id': 'edded095-b2a3-43ae-b22d-5cb5c5990d5e', 'name': 'ctest-vn-28494085', 'tenant_id': '503e4ee0e2314d1e83a2805155daf1c0', 'project_id': '503e4ee0e2314d1e83a2805155daf1c0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38255251', 'ctest-vn-28494085'], 'port_security_enabled': True, 'description': ''}} 2024-11-06 17:58:26,808 - DEBUG - Response for create_subnet : {'subnet': {'id': '27af0178-e454-4bc5-9abf-1ddd398c11c3', 'name': '', 'tenant_id': '503e4ee0e2314d1e83a2805155daf1c0', 'network_id': 'edded095-b2a3-43ae-b22d-5cb5c5990d5e', 'ip_version': 4, 'cidr': '76.91.78.128/26', 'allocation_pools': [{'start': '76.91.78.130', 'end': '76.91.78.190'}], 'gateway_ip': '76.91.78.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '76.91.78.130', 'tags': [], 'project_id': '503e4ee0e2314d1e83a2805155daf1c0'}} 2024-11-06 17:58:26,828 - INFO - Created VN ctest-vn-28494085 2024-11-06 17:58:26,895 - DEBUG - VN ctest-vn-28494085 UUID is edded095-b2a3-43ae-b22d-5cb5c5990d5e 2024-11-06 17:58:27,249 - DEBUG - Response for create_network : {'network': {'id': '0b5e249d-3c55-4717-a9bf-d1fdca4b2c7b', 'name': 'ctest-vn-84264494', 'tenant_id': '503e4ee0e2314d1e83a2805155daf1c0', 'project_id': '503e4ee0e2314d1e83a2805155daf1c0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38255251', 'ctest-vn-84264494'], 'port_security_enabled': True, 'description': ''}} 2024-11-06 17:58:27,409 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ff9b7c40-8c6c-4ffd-a9c8-f56b0149c879', 'name': '', 'tenant_id': '503e4ee0e2314d1e83a2805155daf1c0', 'network_id': '0b5e249d-3c55-4717-a9bf-d1fdca4b2c7b', 'ip_version': 4, 'cidr': '205.118.70.64/26', 'allocation_pools': [{'start': '205.118.70.66', 'end': '205.118.70.126'}], 'gateway_ip': '205.118.70.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205.118.70.66', 'tags': [], 'project_id': '503e4ee0e2314d1e83a2805155daf1c0'}} 2024-11-06 17:58:27,429 - INFO - Created VN ctest-vn-84264494 2024-11-06 17:58:27,487 - DEBUG - VN ctest-vn-84264494 UUID is 0b5e249d-3c55-4717-a9bf-d1fdca4b2c7b 2024-11-06 17:58:27,620 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38255251:ctest-vn-28494085, 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-38255251:ctest-vn-84264494, 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-06 17:58:27,964 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'edded095-b2a3-43ae-b22d-5cb5c5990d5e', 'name': 'ctest-vn-28494085', 'tenant_id': '503e4ee0e2314d1e83a2805155daf1c0', 'project_id': '503e4ee0e2314d1e83a2805155daf1c0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['27af0178-e454-4bc5-9abf-1ddd398c11c3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38255251', 'ctest-vn-28494085'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38255251', 'ctest-policy-allow-all-80228868']], 'subnet_ipam': [{'subnet_cidr': '76.91.78.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-06 17:58:28,258 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0b5e249d-3c55-4717-a9bf-d1fdca4b2c7b', 'name': 'ctest-vn-84264494', 'tenant_id': '503e4ee0e2314d1e83a2805155daf1c0', 'project_id': '503e4ee0e2314d1e83a2805155daf1c0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ff9b7c40-8c6c-4ffd-a9c8-f56b0149c879'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38255251', 'ctest-vn-84264494'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38255251', 'ctest-policy-allow-all-80228868']], 'subnet_ipam': [{'subnet_cidr': '205.118.70.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-06 17:58:28,407 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-11-06 17:58:28,741 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-11-06 17:58:28,779 - DEBUG - Requesting: http://10.0.0.28:8082/domain/2ffe236a-e5ae-4c48-8709-39118676b8ac 2024-11-06 17:58:28,794 - DEBUG - Requesting: http://10.0.0.28:8082/project/503e4ee0-e231-4d1e-83a2-805155daf1c0 2024-11-06 17:58:28,879 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/edded095-b2a3-43ae-b22d-5cb5c5990d5e 2024-11-06 17:58:28,898 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/edded095-b2a3-43ae-b22d-5cb5c5990d5e 2024-11-06 17:58:28,913 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/2c97376a-cff7-4796-b6e4-9b80ed93dd9a 2024-11-06 17:58:28,923 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/2c97376a-cff7-4796-b6e4-9b80ed93dd9a 2024-11-06 17:58:28,934 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/9d3ce3ba-4e03-4a63-b7a7-c50dc3a0aeea 2024-11-06 17:58:28,944 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-06 17:58:28,944 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/edded095-b2a3-43ae-b22d-5cb5c5990d5e 2024-11-06 17:58:28,963 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/2c97376a-cff7-4796-b6e4-9b80ed93dd9a 2024-11-06 17:58:28,986 - INFO - Verified VN network id 8 for VN edded095-b2a3-43ae-b22d-5cb5c5990d5e 2024-11-06 17:58:28,986 - INFO - Verifications in API Server for VN ctest-vn-28494085 passed 2024-11-06 17:58:28,986 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/edded095-b2a3-43ae-b22d-5cb5c5990d5e 2024-11-06 17:58:29,003 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/2c97376a-cff7-4796-b6e4-9b80ed93dd9a 2024-11-06 17:58:29,012 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/2c97376a-cff7-4796-b6e4-9b80ed93dd9a 2024-11-06 17:58:29,020 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/9d3ce3ba-4e03-4a63-b7a7-c50dc3a0aeea 2024-11-06 17:58:29,033 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38255251:ctest-vn-28494085', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38255251', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17140366573184435118', 'uuid-lslong': '12839020048477130078'}, 'enable': 'true', 'created': '2024-11-06T17:58:26', 'last-modified': '2024-11-06T17:58:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.098359'} 2024-11-06 17:58:29,039 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-06 17:58:29,040 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28494085 passed 2024-11-06 17:58:29,040 - DEBUG - ====Verifying policy data for ctest-vn-28494085 in API_Server ====== 2024-11-06 17:58:29,040 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-11-06 17:58:29,046 - DEBUG - Requesting: http://10.0.0.28:8082/domain/2ffe236a-e5ae-4c48-8709-39118676b8ac 2024-11-06 17:58:29,065 - DEBUG - Requesting: http://10.0.0.28:8082/project/503e4ee0-e231-4d1e-83a2-805155daf1c0 2024-11-06 17:58:29,151 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/edded095-b2a3-43ae-b22d-5cb5c5990d5e 2024-11-06 17:58:29,165 - DEBUG - ==>Verifying data for policy with id: 0b444ee0-1a1f-4e7b-b387-bb1de1210f2e, fqn: ['default-domain', 'ctest-TestBasicPolicy-38255251', 'ctest-policy-allow-all-80228868'] 2024-11-06 17:58:29,166 - INFO - VN ctest-vn-28494085 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-06 17:58:29,166 - DEBUG - Verifying the vn in opserver 2024-11-06 17:58:29,166 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38255251:ctest-vn-28494085 virtual network link through opserver 10.0.0.28 2024-11-06 17:58:29,166 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2024-11-06 17:58:29,467 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2024-11-06 17:58:29,541 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38255251:ctest-vn-28494085', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38255251:ctest-vn-28494085?flat'} 2024-11-06 17:58:29,541 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38255251:ctest-vn-28494085 is found in opserver 2024-11-06 17:58:29,552 - DEBUG - Do not have enough data to verify VN in agent 2024-11-06 17:58:29,558 - DEBUG - VRF ids for VN ctest-vn-28494085: {} 2024-11-06 17:58:29,558 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-11-06 17:58:29,563 - DEBUG - Requesting: http://10.0.0.28:8082/domain/2ffe236a-e5ae-4c48-8709-39118676b8ac 2024-11-06 17:58:29,580 - DEBUG - Requesting: http://10.0.0.28:8082/project/503e4ee0-e231-4d1e-83a2-805155daf1c0 2024-11-06 17:58:29,664 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/0b5e249d-3c55-4717-a9bf-d1fdca4b2c7b 2024-11-06 17:58:29,680 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/0b5e249d-3c55-4717-a9bf-d1fdca4b2c7b 2024-11-06 17:58:29,694 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/a1d1abb8-55da-46dc-a4d8-fc8dbf2d2ffc 2024-11-06 17:58:29,703 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/a1d1abb8-55da-46dc-a4d8-fc8dbf2d2ffc 2024-11-06 17:58:29,714 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/6243778a-afbd-4ff6-84db-200de8fd6581 2024-11-06 17:58:29,721 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-06 17:58:29,721 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/0b5e249d-3c55-4717-a9bf-d1fdca4b2c7b 2024-11-06 17:58:29,735 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/a1d1abb8-55da-46dc-a4d8-fc8dbf2d2ffc 2024-11-06 17:58:29,758 - INFO - Verified VN network id 9 for VN 0b5e249d-3c55-4717-a9bf-d1fdca4b2c7b 2024-11-06 17:58:29,758 - INFO - Verifications in API Server for VN ctest-vn-84264494 passed 2024-11-06 17:58:29,758 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/0b5e249d-3c55-4717-a9bf-d1fdca4b2c7b 2024-11-06 17:58:29,773 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/a1d1abb8-55da-46dc-a4d8-fc8dbf2d2ffc 2024-11-06 17:58:29,782 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/a1d1abb8-55da-46dc-a4d8-fc8dbf2d2ffc 2024-11-06 17:58:29,789 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/6243778a-afbd-4ff6-84db-200de8fd6581 2024-11-06 17:58:29,802 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38255251:ctest-vn-84264494', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38255251', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '819132439968696087', 'uuid-lslong': '12231726000912411771'}, 'enable': 'true', 'created': '2024-11-06T17:58:27', 'last-modified': '2024-11-06T17:58:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.617416'} 2024-11-06 17:58:29,808 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-06 17:58:29,808 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84264494 passed 2024-11-06 17:58:29,809 - DEBUG - ====Verifying policy data for ctest-vn-84264494 in API_Server ====== 2024-11-06 17:58:29,809 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-11-06 17:58:29,815 - DEBUG - Requesting: http://10.0.0.28:8082/domain/2ffe236a-e5ae-4c48-8709-39118676b8ac 2024-11-06 17:58:29,833 - DEBUG - Requesting: http://10.0.0.28:8082/project/503e4ee0-e231-4d1e-83a2-805155daf1c0 2024-11-06 17:58:29,909 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/0b5e249d-3c55-4717-a9bf-d1fdca4b2c7b 2024-11-06 17:58:29,923 - DEBUG - ==>Verifying data for policy with id: 0b444ee0-1a1f-4e7b-b387-bb1de1210f2e, fqn: ['default-domain', 'ctest-TestBasicPolicy-38255251', 'ctest-policy-allow-all-80228868'] 2024-11-06 17:58:29,923 - INFO - VN ctest-vn-84264494 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-06 17:58:29,923 - DEBUG - Verifying the vn in opserver 2024-11-06 17:58:29,923 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38255251:ctest-vn-84264494 virtual network link through opserver 10.0.0.28 2024-11-06 17:58:29,923 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2024-11-06 17:58:29,937 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38255251:ctest-vn-84264494', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38255251:ctest-vn-84264494?flat'} 2024-11-06 17:58:29,937 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38255251:ctest-vn-84264494 is found in opserver 2024-11-06 17:58:29,948 - DEBUG - Do not have enough data to verify VN in agent 2024-11-06 17:58:29,954 - DEBUG - VRF ids for VN ctest-vn-84264494: {} 2024-11-06 17:58:30,010 - DEBUG - Services list from nova: [, , ] 2024-11-06 17:58:31,085 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2203-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2203-1) 2024-11-06 17:58:32,447 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2203-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2203-1) 2024-11-06 17:58:32,447 - INFO - Waiting for VM ctest-TestBasicPolicy-38255251-27377421 to be up.. 2024-11-06 17:58:32,532 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-06 17:58:37,620 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-06 17:58:42,710 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-06 17:58:47,818 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-06 17:58:52,916 - DEBUG - VM is in ACTIVE state now 2024-11-06 17:58:52,916 - INFO - VM name : ctest-TestBasicPolicy-38255251-27377421 2024-11-06 17:58:53,016 - DEBUG - VM ctest-TestBasicPolicy-38255251-27377421 ID is 5c768d37-d198-4d31-9643-1ea63adbbbe1 2024-11-06 17:58:53,035 - DEBUG - VM ctest-TestBasicPolicy-38255251-27377421 launched on Node cn-jenkins-deploy-platform-ansible-os-2203-1 2024-11-06 17:58:53,138 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/5c768d37-d198-4d31-9643-1ea63adbbbe1 2024-11-06 17:58:53,149 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/6e818592-7011-4f88-8cd6-04d9c14a1a2f 2024-11-06 17:58:56,425 - 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 1035ms') 2024-11-06 17:58:56,425 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38255251-27377421 failed! 2024-11-06 17:58:56,487 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38255251:ctest-vn-28494085 is 76.91.78.129 and allocation pool is NOT set 2024-11-06 17:59:00,550 - 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-11-06 17:59:00,550 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38255251-27377421 failed! 2024-11-06 17:59:00,615 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38255251:ctest-vn-28494085 is 76.91.78.129 and allocation pool is NOT set 2024-11-06 17:59:02,675 - 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=8.72 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.573 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.573/4.647/8.721/4.074 ms') 2024-11-06 17:59:02,675 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38255251-27377421 passed 2024-11-06 17:59:02,835 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-06 17:59:02,835 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38255251-27377421, IP 76.91.78.131, Port 22 2024-11-06 17:59:02,991 - DEBUG - VM ctest-TestBasicPolicy-38255251-27377421 is ready for SSH connections 2024-11-06 17:59:02,991 - INFO - Waiting for VM ctest-TestBasicPolicy-38255251-12525474 to be up.. 2024-11-06 17:59:03,084 - DEBUG - VM is in ACTIVE state now 2024-11-06 17:59:03,084 - INFO - VM name : ctest-TestBasicPolicy-38255251-12525474 2024-11-06 17:59:03,166 - DEBUG - VM ctest-TestBasicPolicy-38255251-12525474 ID is 57653915-cf8b-4dcb-9f66-40d82bd14dcc 2024-11-06 17:59:03,166 - DEBUG - VM ctest-TestBasicPolicy-38255251-12525474 launched on Node cn-jenkins-deploy-platform-ansible-os-2203-1 2024-11-06 17:59:03,257 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/57653915-cf8b-4dcb-9f66-40d82bd14dcc 2024-11-06 17:59:03,267 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/41db5502-e64e-4354-b329-3aa884df8117 2024-11-06 17:59:04,523 - 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.06 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.570 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.570/1.813/3.056/1.243 ms') 2024-11-06 17:59:04,523 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-38255251-12525474 passed 2024-11-06 17:59:04,682 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-06 17:59:04,683 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38255251-12525474, IP 205.118.70.67, Port 22 2024-11-06 17:59:04,838 - DEBUG - VM ctest-TestBasicPolicy-38255251-12525474 is ready for SSH connections 2024-11-06 17:59:04,838 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-06 17:59:04,838 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 205.118.70.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-11-06 17:59:04,838 - DEBUG - ping -s 56 -c 3 -W 1 205.118.70.67 2024-11-06 17:59:08,857 - DEBUG - PING 205.118.70.67 (205.118.70.67): 56 data bytes 64 bytes from 205.118.70.67: seq=0 ttl=63 time=3.415 ms 64 bytes from 205.118.70.67: seq=1 ttl=63 time=0.917 ms 64 bytes from 205.118.70.67: seq=2 ttl=63 time=0.871 ms --- 205.118.70.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.871/1.734/3.415 ms 2024-11-06 17:59:08,857 - INFO - Ping to IP 205.118.70.67 from VM ctest-TestBasicPolicy-38255251-27377421 passed 2024-11-06 17:59:09,046 - DEBUG - Policy Update Response {"network-policy": {"uuid": "0b444ee0-1a1f-4e7b-b387-bb1de1210f2e", "href": "http://10.0.0.28:8082/network-policy/0b444ee0-1a1f-4e7b-b387-bb1de1210f2e"}} 2024-11-06 17:59:09,046 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-06 17:59:09,047 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 205.118.70.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-11-06 17:59:09,047 - DEBUG - ping -s 56 -c 3 -W 1 205.118.70.67 2024-11-06 17:59:12,244 - DEBUG - PING 205.118.70.67 (205.118.70.67): 56 data bytes --- 205.118.70.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-11-06 17:59:12,245 - WARNING - Ping to IP 205.118.70.67 from VM ctest-TestBasicPolicy-38255251-27377421 failed 2024-11-06 17:59:12,245 - INFO - Deleting VM ctest-TestBasicPolicy-38255251-12525474 2024-11-06 17:59:12,314 - INFO - Deleting VM ctest-TestBasicPolicy-38255251-27377421 2024-11-06 17:59:12,805 - INFO - Deleted policy ctest-policy-allow-all-80228868 2024-11-06 17:59:12,805 - INFO - Deleting VN ctest-vn-84264494 2024-11-06 17:59:12,870 - DEBUG - VN 0b5e249d-3c55-4717-a9bf-d1fdca4b2c7b still in use: Unable to complete operation on network 0b5e249d-3c55-4717-a9bf-d1fdca4b2c7b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-45d7dd57-a56f-443f-aad4-bd91ca808689'] 2024-11-06 17:59:12,870 - WARNING - Deleting VN ctest-vn-84264494 failed..Will retry 2024-11-06 17:59:14,995 - DEBUG - Response for deleting network () 2024-11-06 17:59:14,995 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/a1d1abb8-55da-46dc-a4d8-fc8dbf2d2ffc 2024-11-06 17:59:15,005 - DEBUG - Response Code: 404 2024-11-06 17:59:15,005 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-11-06 17:59:15,012 - DEBUG - Requesting: http://10.0.0.28:8082/domain/2ffe236a-e5ae-4c48-8709-39118676b8ac 2024-11-06 17:59:15,073 - DEBUG - Requesting: http://10.0.0.28:8082/project/503e4ee0-e231-4d1e-83a2-805155daf1c0 2024-11-06 17:59:15,173 - INFO - Validated that VN ctest-vn-84264494 is not found in API Server 2024-11-06 17:59:15,185 - DEBUG - VN ctest-vn-84264494 is not present in Agent 10.0.0.28 2024-11-06 17:59:15,185 - INFO - Validated that VN ctest-vn-84264494 is not in any agent 2024-11-06 17:59:15,200 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-84264494 info 2024-11-06 17:59:15,200 - INFO - Deleting VN ctest-vn-28494085 2024-11-06 17:59:15,337 - DEBUG - Response for deleting network () 2024-11-06 17:59:15,337 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/2c97376a-cff7-4796-b6e4-9b80ed93dd9a 2024-11-06 17:59:15,346 - DEBUG - Response Code: 404 2024-11-06 17:59:15,346 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-11-06 17:59:15,352 - DEBUG - Requesting: http://10.0.0.28:8082/domain/2ffe236a-e5ae-4c48-8709-39118676b8ac 2024-11-06 17:59:15,409 - DEBUG - Requesting: http://10.0.0.28:8082/project/503e4ee0-e231-4d1e-83a2-805155daf1c0 2024-11-06 17:59:15,521 - INFO - Validated that VN ctest-vn-28494085 is not found in API Server 2024-11-06 17:59:15,532 - DEBUG - VN ctest-vn-28494085 is not present in Agent 10.0.0.28 2024-11-06 17:59:15,532 - INFO - Validated that VN ctest-vn-28494085 is not in any agent 2024-11-06 17:59:15,555 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-28494085 info 2024-11-06 17:59:15,812 - DEBUG - No XMPP flaps were noticed during the test
2024-11-06 17:59:15,812 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:50]
2024-11-06 17:59:15,812 - INFO - -------------------------------------------------------------------------------- 2024-11-06 17:59:16,585 - INFO - Deleted project: ctest-TestBasicPolicy-38255251, ID : 503e4ee0-e231-4d1e-83a2-805155daf1c0