2024-09-02 12:33:08,595 - INFO - Reading existing Domain with UUID fe57c7f3-7b6c-41e2-9cbd-18f55724bf05 2024-09-02 12:33:08,606 - INFO - Using existing domain ['admin_domain'](fe57c7f3-7b6c-41e2-9cbd-18f55724bf05) 2024-09-02 12:33:08,824 - INFO - Project ctest-TestBasicPolicy-60546220 not found, creating it 2024-09-02 12:33:09,326 - INFO - Created Project:ctest-TestBasicPolicy-60546220, ID : 15ed628e-e0b4-412e-bf62-d9d8f4453875 2024-09-02 12:33:11,110 - INFO - ================================================================================ 2024-09-02 12:33:11,110 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-02 12:33:11,110 - 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-02 12:33:11,506 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.0.0.12': '0'}} with 2024-09-02 12:33:11,506 - INFO - Initial checks done. Running the testcase now 2024-09-02 12:33:11,506 - INFO - 2024-09-02 12:33:12,315 - DEBUG - Response for create_network : {'network': {'id': '603a26a0-f353-4118-abd2-887e93717ba7', 'name': 'ctest-vn-63941130', 'tenant_id': '15ed628ee0b4412ebf62d9d8f4453875', 'project_id': '15ed628ee0b4412ebf62d9d8f4453875', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-60546220', 'ctest-vn-63941130'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-09-02 12:33:12,536 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd1354551-c45d-4d80-a658-636ee10ea965', 'name': '', 'tenant_id': '15ed628ee0b4412ebf62d9d8f4453875', 'network_id': '603a26a0-f353-4118-abd2-887e93717ba7', 'ip_version': 4, 'cidr': '212.55.149.64/26', 'allocation_pools': [{'start': '212.55.149.66', 'end': '212.55.149.126'}], 'gateway_ip': '212.55.149.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-02T12:33:12.432182', 'updated_at': '2024-09-02T12:33:12.432182', 'dns_server_address': '212.55.149.66', 'tags': [], 'project_id': '15ed628ee0b4412ebf62d9d8f4453875'}} 2024-09-02 12:33:12,602 - INFO - Created VN ctest-vn-63941130 2024-09-02 12:33:12,660 - DEBUG - VN ctest-vn-63941130 UUID is 603a26a0-f353-4118-abd2-887e93717ba7 2024-09-02 12:33:13,177 - DEBUG - Response for create_network : {'network': {'id': '58f9f025-ec80-4b6d-a1bc-be57eb6d6ddc', 'name': 'ctest-vn-15176406', 'tenant_id': '15ed628ee0b4412ebf62d9d8f4453875', 'project_id': '15ed628ee0b4412ebf62d9d8f4453875', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-60546220', 'ctest-vn-15176406'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-09-02 12:33:13,417 - DEBUG - Response for create_subnet : {'subnet': {'id': '6ff42b13-13db-4ee5-b837-c8d969656690', 'name': '', 'tenant_id': '15ed628ee0b4412ebf62d9d8f4453875', 'network_id': '58f9f025-ec80-4b6d-a1bc-be57eb6d6ddc', 'ip_version': 4, 'cidr': '5.130.236.192/26', 'allocation_pools': [{'start': '5.130.236.194', 'end': '5.130.236.254'}], 'gateway_ip': '5.130.236.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-02T12:33:13.302310', 'updated_at': '2024-09-02T12:33:13.302310', 'dns_server_address': '5.130.236.194', 'tags': [], 'project_id': '15ed628ee0b4412ebf62d9d8f4453875'}} 2024-09-02 12:33:13,486 - INFO - Created VN ctest-vn-15176406 2024-09-02 12:33:13,540 - DEBUG - VN ctest-vn-15176406 UUID is 58f9f025-ec80-4b6d-a1bc-be57eb6d6ddc 2024-09-02 12:33:13,766 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-60546220:ctest-vn-63941130, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-60546220:ctest-vn-15176406, 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-02 12:33:14,196 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '603a26a0-f353-4118-abd2-887e93717ba7', 'name': 'ctest-vn-63941130', 'tenant_id': '15ed628ee0b4412ebf62d9d8f4453875', 'project_id': '15ed628ee0b4412ebf62d9d8f4453875', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d1354551-c45d-4d80-a658-636ee10ea965'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-60546220', 'ctest-vn-63941130'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-60546220', 'ctest-policy-allow-all-07378938']], 'subnet_ipam': [{'subnet_cidr': '212.55.149.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-09-02T12:33:12.233792', 'updated_at': '2024-09-02T12:33:12.448006'}} 2024-09-02 12:33:14,563 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '58f9f025-ec80-4b6d-a1bc-be57eb6d6ddc', 'name': 'ctest-vn-15176406', 'tenant_id': '15ed628ee0b4412ebf62d9d8f4453875', 'project_id': '15ed628ee0b4412ebf62d9d8f4453875', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6ff42b13-13db-4ee5-b837-c8d969656690'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-60546220', 'ctest-vn-15176406'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-60546220', 'ctest-policy-allow-all-07378938']], 'subnet_ipam': [{'subnet_cidr': '5.130.236.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-09-02T12:33:13.096090', 'updated_at': '2024-09-02T12:33:13.321115'}} 2024-09-02 12:33:14,788 - DEBUG - Requesting: https://10.0.0.12:8082/domains 2024-09-02 12:33:15,162 - DEBUG - Requesting: https://10.0.0.12:8082/domains 2024-09-02 12:33:15,248 - DEBUG - Requesting: https://10.0.0.12:8082/domain/fe57c7f3-7b6c-41e2-9cbd-18f55724bf05 2024-09-02 12:33:15,322 - DEBUG - Requesting: https://10.0.0.12:8082/project/15ed628e-e0b4-412e-bf62-d9d8f4453875 2024-09-02 12:33:15,498 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/603a26a0-f353-4118-abd2-887e93717ba7 2024-09-02 12:33:15,578 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/603a26a0-f353-4118-abd2-887e93717ba7 2024-09-02 12:33:15,638 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/6b4c732d-1a5e-4c4f-8a47-147f55e589fd 2024-09-02 12:33:15,701 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/6b4c732d-1a5e-4c4f-8a47-147f55e589fd 2024-09-02 12:33:15,765 - DEBUG - Requesting: https://10.0.0.12:8082/route-target/6893ec89-6407-4c60-9228-3f0f15f435e5 2024-09-02 12:33:15,821 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-02 12:33:15,821 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/603a26a0-f353-4118-abd2-887e93717ba7 2024-09-02 12:33:15,883 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/6b4c732d-1a5e-4c4f-8a47-147f55e589fd 2024-09-02 12:33:15,979 - INFO - Verified VN network id 7 for VN 603a26a0-f353-4118-abd2-887e93717ba7 2024-09-02 12:33:15,980 - INFO - Verifications in API Server for VN ctest-vn-63941130 passed 2024-09-02 12:33:15,980 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/603a26a0-f353-4118-abd2-887e93717ba7 2024-09-02 12:33:16,044 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/6b4c732d-1a5e-4c4f-8a47-147f55e589fd 2024-09-02 12:33:16,117 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/6b4c732d-1a5e-4c4f-8a47-147f55e589fd 2024-09-02 12:33:16,180 - DEBUG - Requesting: https://10.0.0.12:8082/route-target/6893ec89-6407-4c60-9228-3f0f15f435e5 2024-09-02 12:33:16,313 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-60546220:ctest-vn-63941130', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60546220', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6933897049009242392', 'uuid-lslong': '12381108402815859623'}, 'enable': 'true', 'created': '2024-09-02T12:33:12', 'last-modified': '2024-09-02T12:33:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.145396'} 2024-09-02 12:33:16,382 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-02 12:33:16,382 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63941130 passed 2024-09-02 12:33:16,382 - DEBUG - ====Verifying policy data for ctest-vn-63941130 in API_Server ====== 2024-09-02 12:33:16,382 - DEBUG - Requesting: https://10.0.0.12:8082/domains 2024-09-02 12:33:16,444 - DEBUG - Requesting: https://10.0.0.12:8082/domain/fe57c7f3-7b6c-41e2-9cbd-18f55724bf05 2024-09-02 12:33:16,509 - DEBUG - Requesting: https://10.0.0.12:8082/project/15ed628e-e0b4-412e-bf62-d9d8f4453875 2024-09-02 12:33:16,694 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/603a26a0-f353-4118-abd2-887e93717ba7 2024-09-02 12:33:16,783 - DEBUG - ==>Verifying data for policy with id: bf9c6693-cb86-4632-91d3-628b4392213b, fqn: ['admin_domain', 'ctest-TestBasicPolicy-60546220', 'ctest-policy-allow-all-07378938'] 2024-09-02 12:33:16,783 - INFO - VN ctest-vn-63941130 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-02 12:33:16,783 - DEBUG - Verifying the vn in opserver 2024-09-02 12:33:16,783 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-60546220:ctest-vn-63941130 virtual network link through opserver 10.0.0.12 2024-09-02 12:33:16,783 - DEBUG - Requesting: https://10.0.0.12:8081/analytics/uves/virtual-networks 2024-09-02 12:33:17,181 - DEBUG - Requesting: https://10.0.0.12:8081/analytics/uves/virtual-networks 2024-09-02 12:33:17,362 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-60546220:ctest-vn-63941130', 'href': 'https://10.0.0.12:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-60546220:ctest-vn-63941130?flat'} 2024-09-02 12:33:17,362 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-60546220:ctest-vn-63941130 is found in opserver 2024-09-02 12:33:17,468 - DEBUG - Do not have enough data to verify VN in agent 2024-09-02 12:33:17,521 - DEBUG - VRF ids for VN ctest-vn-63941130: {} 2024-09-02 12:33:17,521 - DEBUG - Requesting: https://10.0.0.12:8082/domains 2024-09-02 12:33:17,576 - DEBUG - Requesting: https://10.0.0.12:8082/domain/fe57c7f3-7b6c-41e2-9cbd-18f55724bf05 2024-09-02 12:33:17,647 - DEBUG - Requesting: https://10.0.0.12:8082/project/15ed628e-e0b4-412e-bf62-d9d8f4453875 2024-09-02 12:33:17,729 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/58f9f025-ec80-4b6d-a1bc-be57eb6d6ddc 2024-09-02 12:33:17,806 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/58f9f025-ec80-4b6d-a1bc-be57eb6d6ddc 2024-09-02 12:33:17,875 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/d4602fb8-984b-4fb4-a477-4d98f8b3ae74 2024-09-02 12:33:17,941 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/d4602fb8-984b-4fb4-a477-4d98f8b3ae74 2024-09-02 12:33:18,009 - DEBUG - Requesting: https://10.0.0.12:8082/route-target/b16e7e4b-4a96-48f3-9c43-d81c3a4d1754 2024-09-02 12:33:18,076 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-02 12:33:18,077 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/58f9f025-ec80-4b6d-a1bc-be57eb6d6ddc 2024-09-02 12:33:18,147 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/d4602fb8-984b-4fb4-a477-4d98f8b3ae74 2024-09-02 12:33:18,223 - INFO - Verified VN network id 8 for VN 58f9f025-ec80-4b6d-a1bc-be57eb6d6ddc 2024-09-02 12:33:18,223 - INFO - Verifications in API Server for VN ctest-vn-15176406 passed 2024-09-02 12:33:18,223 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/58f9f025-ec80-4b6d-a1bc-be57eb6d6ddc 2024-09-02 12:33:18,282 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/d4602fb8-984b-4fb4-a477-4d98f8b3ae74 2024-09-02 12:33:18,347 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/d4602fb8-984b-4fb4-a477-4d98f8b3ae74 2024-09-02 12:33:18,414 - DEBUG - Requesting: https://10.0.0.12:8082/route-target/b16e7e4b-4a96-48f3-9c43-d81c3a4d1754 2024-09-02 12:33:18,585 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-60546220:ctest-vn-15176406', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60546220', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6411419590210898797', 'uuid-lslong': '11654399220549250524'}, 'enable': 'true', 'created': '2024-09-02T12:33:13', 'last-modified': '2024-09-02T12:33:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:04.030037'} 2024-09-02 12:33:18,670 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-02 12:33:18,671 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15176406 passed 2024-09-02 12:33:18,671 - DEBUG - ====Verifying policy data for ctest-vn-15176406 in API_Server ====== 2024-09-02 12:33:18,671 - DEBUG - Requesting: https://10.0.0.12:8082/domains 2024-09-02 12:33:18,732 - DEBUG - Requesting: https://10.0.0.12:8082/domain/fe57c7f3-7b6c-41e2-9cbd-18f55724bf05 2024-09-02 12:33:18,793 - DEBUG - Requesting: https://10.0.0.12:8082/project/15ed628e-e0b4-412e-bf62-d9d8f4453875 2024-09-02 12:33:18,918 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/58f9f025-ec80-4b6d-a1bc-be57eb6d6ddc 2024-09-02 12:33:18,982 - DEBUG - ==>Verifying data for policy with id: bf9c6693-cb86-4632-91d3-628b4392213b, fqn: ['admin_domain', 'ctest-TestBasicPolicy-60546220', 'ctest-policy-allow-all-07378938'] 2024-09-02 12:33:18,982 - INFO - VN ctest-vn-15176406 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-02 12:33:18,982 - DEBUG - Verifying the vn in opserver 2024-09-02 12:33:18,982 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-60546220:ctest-vn-15176406 virtual network link through opserver 10.0.0.12 2024-09-02 12:33:18,982 - DEBUG - Requesting: https://10.0.0.12:8081/analytics/uves/virtual-networks 2024-09-02 12:33:19,053 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-60546220:ctest-vn-15176406', 'href': 'https://10.0.0.12:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-60546220:ctest-vn-15176406?flat'} 2024-09-02 12:33:19,053 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-60546220:ctest-vn-15176406 is found in opserver 2024-09-02 12:33:19,185 - DEBUG - Do not have enough data to verify VN in agent 2024-09-02 12:33:19,242 - DEBUG - VRF ids for VN ctest-vn-15176406: {} 2024-09-02 12:33:19,349 - DEBUG - Services list from nova: [, , ] 2024-09-02 12:33:20,776 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-391-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-391-1) 2024-09-02 12:33:22,448 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-391-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-391-1) 2024-09-02 12:33:22,448 - INFO - Waiting for VM ctest-TestBasicPolicy-60546220-77879810 to be up.. 2024-09-02 12:33:22,656 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-02 12:33:27,812 - DEBUG - VM is in ACTIVE state now 2024-09-02 12:33:27,812 - INFO - VM name : ctest-TestBasicPolicy-60546220-77879810 2024-09-02 12:33:27,977 - DEBUG - VM ctest-TestBasicPolicy-60546220-77879810 ID is fe96a16b-e82c-44be-8092-a938a81c410e 2024-09-02 12:33:28,010 - DEBUG - VM ctest-TestBasicPolicy-60546220-77879810 launched on Node cn-jenkins-deploy-platform-juju-os-391-1 2024-09-02 12:33:28,161 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-machine/fe96a16b-e82c-44be-8092-a938a81c410e 2024-09-02 12:33:28,220 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-machine-interface/217f6a10-aaf9-4200-b356-ddedfef8e5cf 2024-09-02 12:33:31,728 - 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 1004ms') 2024-09-02 12:33:31,728 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-60546220-77879810 failed! 2024-09-02 12:33:31,784 - DEBUG - Gateway for vn admin_domain:ctest-TestBasicPolicy-60546220:ctest-vn-63941130 is 212.55.149.65 and allocation pool is NOT set 2024-09-02 12:33:33,871 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=3.95 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.38 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 2.375/3.162/3.949/0.787 ms') 2024-09-02 12:33:33,871 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-60546220-77879810 passed 2024-09-02 12:33:34,028 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 12:33:34,028 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-60546220-77879810, IP 212.55.149.67, Port 22 2024-09-02 12:33:34,238 - DEBUG - VM ctest-TestBasicPolicy-60546220-77879810 is ready for SSH connections 2024-09-02 12:33:34,238 - INFO - Waiting for VM ctest-TestBasicPolicy-60546220-66369990 to be up.. 2024-09-02 12:33:34,381 - DEBUG - VM is in ACTIVE state now 2024-09-02 12:33:34,381 - INFO - VM name : ctest-TestBasicPolicy-60546220-66369990 2024-09-02 12:33:34,578 - DEBUG - VM ctest-TestBasicPolicy-60546220-66369990 ID is 0c864e11-f61c-4ccb-a186-a8696693d887 2024-09-02 12:33:34,578 - DEBUG - VM ctest-TestBasicPolicy-60546220-66369990 launched on Node cn-jenkins-deploy-platform-juju-os-391-1 2024-09-02 12:33:34,752 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-machine/0c864e11-f61c-4ccb-a186-a8696693d887 2024-09-02 12:33:34,815 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-machine-interface/9bcf60d6-a376-436c-8135-c0e7e2aa3673 2024-09-02 12:33:36,294 - 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.22 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.462 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.462/1.839/3.217/1.377 ms') 2024-09-02 12:33:36,294 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-60546220-66369990 passed 2024-09-02 12:33:36,444 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 12:33:36,444 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-60546220-66369990, IP 5.130.236.195, Port 22 2024-09-02 12:33:36,668 - DEBUG - VM ctest-TestBasicPolicy-60546220-66369990 is ready for SSH connections 2024-09-02 12:33:36,668 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 12:33:36,668 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 5.130.236.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-09-02 12:33:36,668 - DEBUG - ping -s 56 -c 3 -W 1 5.130.236.195 2024-09-02 12:33:40,353 - DEBUG - PING 5.130.236.195 (5.130.236.195): 56 data bytes 64 bytes from 5.130.236.195: seq=0 ttl=63 time=3.434 ms 64 bytes from 5.130.236.195: seq=1 ttl=63 time=0.826 ms 64 bytes from 5.130.236.195: seq=2 ttl=63 time=1.009 ms --- 5.130.236.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.826/1.756/3.434 ms 2024-09-02 12:33:40,353 - INFO - Ping to IP 5.130.236.195 from VM ctest-TestBasicPolicy-60546220-77879810 passed 2024-09-02 12:33:40,543 - DEBUG - Policy Update Response {"network-policy": {"uuid": "bf9c6693-cb86-4632-91d3-628b4392213b", "href": "https://10.0.0.12:8082/network-policy/bf9c6693-cb86-4632-91d3-628b4392213b"}} 2024-09-02 12:33:40,543 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 12:33:40,544 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 5.130.236.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-09-02 12:33:40,544 - DEBUG - ping -s 56 -c 3 -W 1 5.130.236.195 2024-09-02 12:33:43,743 - DEBUG - PING 5.130.236.195 (5.130.236.195): 56 data bytes --- 5.130.236.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-02 12:33:43,743 - WARNING - Ping to IP 5.130.236.195 from VM ctest-TestBasicPolicy-60546220-77879810 failed 2024-09-02 12:33:43,744 - INFO - Deleting VM ctest-TestBasicPolicy-60546220-66369990 2024-09-02 12:33:43,855 - INFO - Deleting VM ctest-TestBasicPolicy-60546220-77879810 2024-09-02 12:33:44,573 - INFO - Deleted policy ctest-policy-allow-all-07378938 2024-09-02 12:33:44,573 - INFO - Deleting VN ctest-vn-15176406 2024-09-02 12:33:44,719 - DEBUG - VN 58f9f025-ec80-4b6d-a1bc-be57eb6d6ddc still in use: Unable to complete operation on network 58f9f025-ec80-4b6d-a1bc-be57eb6d6ddc. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-faf14f25-0688-4290-9b25-3944e9ddb45e'] 2024-09-02 12:33:44,719 - WARNING - Deleting VN ctest-vn-15176406 failed..Will retry 2024-09-02 12:33:46,896 - DEBUG - Response for deleting network () 2024-09-02 12:33:46,896 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/d4602fb8-984b-4fb4-a477-4d98f8b3ae74 2024-09-02 12:33:46,948 - DEBUG - Response Code: 404 2024-09-02 12:33:46,948 - DEBUG - Requesting: https://10.0.0.12:8082/domains 2024-09-02 12:33:47,009 - DEBUG - Requesting: https://10.0.0.12:8082/domain/fe57c7f3-7b6c-41e2-9cbd-18f55724bf05 2024-09-02 12:33:47,069 - DEBUG - Requesting: https://10.0.0.12:8082/project/15ed628e-e0b4-412e-bf62-d9d8f4453875 2024-09-02 12:33:47,145 - INFO - Validated that VN ctest-vn-15176406 is not found in API Server 2024-09-02 12:33:47,248 - DEBUG - VN ctest-vn-15176406 is not present in Agent 10.0.0.12 2024-09-02 12:33:47,248 - INFO - Validated that VN ctest-vn-15176406 is not in any agent 2024-09-02 12:33:47,409 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-15176406 info 2024-09-02 12:33:47,409 - INFO - Deleting VN ctest-vn-63941130 2024-09-02 12:33:47,640 - DEBUG - Response for deleting network () 2024-09-02 12:33:47,641 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/6b4c732d-1a5e-4c4f-8a47-147f55e589fd 2024-09-02 12:33:47,692 - DEBUG - Response Code: 404 2024-09-02 12:33:47,692 - DEBUG - Requesting: https://10.0.0.12:8082/domains 2024-09-02 12:33:47,744 - DEBUG - Requesting: https://10.0.0.12:8082/domain/fe57c7f3-7b6c-41e2-9cbd-18f55724bf05 2024-09-02 12:33:47,801 - DEBUG - Requesting: https://10.0.0.12:8082/project/15ed628e-e0b4-412e-bf62-d9d8f4453875 2024-09-02 12:33:47,877 - INFO - Validated that VN ctest-vn-63941130 is not found in API Server 2024-09-02 12:33:47,981 - DEBUG - VN ctest-vn-63941130 is not present in Agent 10.0.0.12 2024-09-02 12:33:47,981 - INFO - Validated that VN ctest-vn-63941130 is not in any agent 2024-09-02 12:33:48,140 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-63941130 info 2024-09-02 12:33:48,525 - DEBUG - No XMPP flaps were noticed during the test
2024-09-02 12:33:48,525 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37]
2024-09-02 12:33:48,525 - INFO - -------------------------------------------------------------------------------- 2024-09-02 12:33:49,278 - INFO - Deleted project: ctest-TestBasicPolicy-60546220, ID : 15ed628e-e0b4-412e-bf62-d9d8f4453875