2024-09-02 02:30:19,301 - INFO - Reading existing Domain with UUID defd8f32-afd5-4b15-a3c8-9368d3af4005 2024-09-02 02:30:19,313 - INFO - Using existing domain ['admin_domain'](defd8f32-afd5-4b15-a3c8-9368d3af4005) 2024-09-02 02:30:19,518 - INFO - Project ctest-TestBasicPolicy-88173385 not found, creating it 2024-09-02 02:30:20,091 - INFO - Created Project:ctest-TestBasicPolicy-88173385, ID : 02236ca0-1c9c-47ad-ae45-c0c27045b3d8 2024-09-02 02:30:25,791 - INFO - ================================================================================ 2024-09-02 02:30:25,792 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-02 02:30:25,792 - 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 02:30:26,171 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.0.0.24': '0'}} with 2024-09-02 02:30:26,171 - INFO - Initial checks done. Running the testcase now 2024-09-02 02:30:26,171 - INFO - 2024-09-02 02:30:28,006 - DEBUG - Response for create_network : {'network': {'id': 'adf56d05-643b-41a3-b42f-dec44af9e475', 'name': 'ctest-vn-55726768', 'tenant_id': '02236ca01c9c47adae45c0c27045b3d8', 'project_id': '02236ca01c9c47adae45c0c27045b3d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-88173385', 'ctest-vn-55726768'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-09-02 02:30:28,270 - DEBUG - Response for create_subnet : {'subnet': {'id': 'af12252d-6555-43d4-a760-5db1ea888a37', 'name': '', 'tenant_id': '02236ca01c9c47adae45c0c27045b3d8', 'network_id': 'adf56d05-643b-41a3-b42f-dec44af9e475', 'ip_version': 4, 'cidr': '38.73.197.64/26', 'allocation_pools': [{'start': '38.73.197.66', 'end': '38.73.197.126'}], 'gateway_ip': '38.73.197.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-02T02:30:28.169363', 'updated_at': '2024-09-02T02:30:28.169363', 'dns_server_address': '38.73.197.66', 'tags': [], 'project_id': '02236ca01c9c47adae45c0c27045b3d8'}} 2024-09-02 02:30:28,335 - INFO - Created VN ctest-vn-55726768 2024-09-02 02:30:28,389 - DEBUG - VN ctest-vn-55726768 UUID is adf56d05-643b-41a3-b42f-dec44af9e475 2024-09-02 02:30:28,911 - DEBUG - Response for create_network : {'network': {'id': '85f2d03c-59b7-45dd-8a98-93ed54192b15', 'name': 'ctest-vn-34374482', 'tenant_id': '02236ca01c9c47adae45c0c27045b3d8', 'project_id': '02236ca01c9c47adae45c0c27045b3d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-88173385', 'ctest-vn-34374482'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-09-02 02:30:30,370 - DEBUG - Response for create_subnet : {'subnet': {'id': '2e66762e-794c-4d89-bb71-3d76f687e7e5', 'name': '', 'tenant_id': '02236ca01c9c47adae45c0c27045b3d8', 'network_id': '85f2d03c-59b7-45dd-8a98-93ed54192b15', 'ip_version': 4, 'cidr': '55.214.5.0/26', 'allocation_pools': [{'start': '55.214.5.2', 'end': '55.214.5.62'}], 'gateway_ip': '55.214.5.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-02T02:30:30.277867', 'updated_at': '2024-09-02T02:30:30.277867', 'dns_server_address': '55.214.5.2', 'tags': [], 'project_id': '02236ca01c9c47adae45c0c27045b3d8'}} 2024-09-02 02:30:30,435 - INFO - Created VN ctest-vn-34374482 2024-09-02 02:30:30,489 - DEBUG - VN ctest-vn-34374482 UUID is 85f2d03c-59b7-45dd-8a98-93ed54192b15 2024-09-02 02:30:30,698 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-88173385:ctest-vn-55726768, 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-88173385:ctest-vn-34374482, 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 02:30:31,109 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'adf56d05-643b-41a3-b42f-dec44af9e475', 'name': 'ctest-vn-55726768', 'tenant_id': '02236ca01c9c47adae45c0c27045b3d8', 'project_id': '02236ca01c9c47adae45c0c27045b3d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['af12252d-6555-43d4-a760-5db1ea888a37'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-88173385', 'ctest-vn-55726768'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-88173385', 'ctest-policy-allow-all-55490317']], 'subnet_ipam': [{'subnet_cidr': '38.73.197.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-09-02T02:30:27.923907', 'updated_at': '2024-09-02T02:30:28.183760'}} 2024-09-02 02:30:31,506 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '85f2d03c-59b7-45dd-8a98-93ed54192b15', 'name': 'ctest-vn-34374482', 'tenant_id': '02236ca01c9c47adae45c0c27045b3d8', 'project_id': '02236ca01c9c47adae45c0c27045b3d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2e66762e-794c-4d89-bb71-3d76f687e7e5'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-88173385', 'ctest-vn-34374482'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-88173385', 'ctest-policy-allow-all-55490317']], 'subnet_ipam': [{'subnet_cidr': '55.214.5.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-09-02T02:30:28.821423', 'updated_at': '2024-09-02T02:30:30.291654'}} 2024-09-02 02:30:31,713 - DEBUG - Requesting: https://10.0.0.24:8082/domains 2024-09-02 02:30:32,060 - DEBUG - Requesting: https://10.0.0.24:8082/domains 2024-09-02 02:30:32,142 - DEBUG - Requesting: https://10.0.0.24:8082/domain/defd8f32-afd5-4b15-a3c8-9368d3af4005 2024-09-02 02:30:32,203 - DEBUG - Requesting: https://10.0.0.24:8082/project/02236ca0-1c9c-47ad-ae45-c0c27045b3d8 2024-09-02 02:30:32,284 - DEBUG - Requesting: https://10.0.0.24:8082/virtual-network/adf56d05-643b-41a3-b42f-dec44af9e475 2024-09-02 02:30:32,340 - DEBUG - Requesting: https://10.0.0.24:8082/virtual-network/adf56d05-643b-41a3-b42f-dec44af9e475 2024-09-02 02:30:32,400 - DEBUG - Requesting: https://10.0.0.24:8082/routing-instance/6252e282-c9dc-4f3e-b89e-ca6672ca10a9 2024-09-02 02:30:32,455 - DEBUG - Requesting: https://10.0.0.24:8082/routing-instance/6252e282-c9dc-4f3e-b89e-ca6672ca10a9 2024-09-02 02:30:32,507 - DEBUG - Requesting: https://10.0.0.24:8082/route-target/28e59e0f-3d6c-46eb-83ae-d94fef3e93b6 2024-09-02 02:30:32,562 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-02 02:30:32,562 - DEBUG - Requesting: https://10.0.0.24:8082/virtual-network/adf56d05-643b-41a3-b42f-dec44af9e475 2024-09-02 02:30:32,615 - DEBUG - Requesting: https://10.0.0.24:8082/routing-instance/6252e282-c9dc-4f3e-b89e-ca6672ca10a9 2024-09-02 02:30:32,678 - INFO - Verified VN network id 7 for VN adf56d05-643b-41a3-b42f-dec44af9e475 2024-09-02 02:30:32,678 - INFO - Verifications in API Server for VN ctest-vn-55726768 passed 2024-09-02 02:30:32,679 - DEBUG - Requesting: https://10.0.0.24:8082/virtual-network/adf56d05-643b-41a3-b42f-dec44af9e475 2024-09-02 02:30:32,732 - DEBUG - Requesting: https://10.0.0.24:8082/routing-instance/6252e282-c9dc-4f3e-b89e-ca6672ca10a9 2024-09-02 02:30:32,786 - DEBUG - Requesting: https://10.0.0.24:8082/routing-instance/6252e282-c9dc-4f3e-b89e-ca6672ca10a9 2024-09-02 02:30:32,843 - DEBUG - Requesting: https://10.0.0.24:8082/route-target/28e59e0f-3d6c-46eb-83ae-d94fef3e93b6 2024-09-02 02:30:32,954 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-88173385:ctest-vn-55726768', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88173385', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12535045007779512739', 'uuid-lslong': '12983841185385276533'}, 'enable': 'true', 'created': '2024-09-02T02:30:27', 'last-modified': '2024-09-02T02:30:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.864414'} 2024-09-02 02:30:33,007 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-02 02:30:33,007 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55726768 passed 2024-09-02 02:30:33,007 - DEBUG - ====Verifying policy data for ctest-vn-55726768 in API_Server ====== 2024-09-02 02:30:33,007 - DEBUG - Requesting: https://10.0.0.24:8082/domains 2024-09-02 02:30:33,058 - DEBUG - Requesting: https://10.0.0.24:8082/domain/defd8f32-afd5-4b15-a3c8-9368d3af4005 2024-09-02 02:30:33,120 - DEBUG - Requesting: https://10.0.0.24:8082/project/02236ca0-1c9c-47ad-ae45-c0c27045b3d8 2024-09-02 02:30:33,195 - DEBUG - Requesting: https://10.0.0.24:8082/virtual-network/adf56d05-643b-41a3-b42f-dec44af9e475 2024-09-02 02:30:33,248 - DEBUG - ==>Verifying data for policy with id: be700883-ac08-4b5e-a837-c49f3367ee89, fqn: ['admin_domain', 'ctest-TestBasicPolicy-88173385', 'ctest-policy-allow-all-55490317'] 2024-09-02 02:30:33,248 - INFO - VN ctest-vn-55726768 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-02 02:30:33,248 - DEBUG - Verifying the vn in opserver 2024-09-02 02:30:33,248 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-88173385:ctest-vn-55726768 virtual network link through opserver 10.0.0.24 2024-09-02 02:30:33,248 - DEBUG - Requesting: https://10.0.0.24:8081/analytics/uves/virtual-networks 2024-09-02 02:30:33,592 - DEBUG - Requesting: https://10.0.0.24:8081/analytics/uves/virtual-networks 2024-09-02 02:30:33,718 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-88173385:ctest-vn-55726768', 'href': 'https://10.0.0.24:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-88173385:ctest-vn-55726768?flat'} 2024-09-02 02:30:33,718 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-88173385:ctest-vn-55726768 is found in opserver 2024-09-02 02:30:33,842 - DEBUG - Do not have enough data to verify VN in agent 2024-09-02 02:30:33,894 - DEBUG - VRF ids for VN ctest-vn-55726768: {} 2024-09-02 02:30:33,894 - DEBUG - Requesting: https://10.0.0.24:8082/domains 2024-09-02 02:30:33,946 - DEBUG - Requesting: https://10.0.0.24:8082/domain/defd8f32-afd5-4b15-a3c8-9368d3af4005 2024-09-02 02:30:34,007 - DEBUG - Requesting: https://10.0.0.24:8082/project/02236ca0-1c9c-47ad-ae45-c0c27045b3d8 2024-09-02 02:30:34,083 - DEBUG - Requesting: https://10.0.0.24:8082/virtual-network/85f2d03c-59b7-45dd-8a98-93ed54192b15 2024-09-02 02:30:34,140 - DEBUG - Requesting: https://10.0.0.24:8082/virtual-network/85f2d03c-59b7-45dd-8a98-93ed54192b15 2024-09-02 02:30:34,196 - DEBUG - Requesting: https://10.0.0.24:8082/routing-instance/5809c5a0-b65c-453b-9fd0-7a54b7add9cb 2024-09-02 02:30:34,251 - DEBUG - Requesting: https://10.0.0.24:8082/routing-instance/5809c5a0-b65c-453b-9fd0-7a54b7add9cb 2024-09-02 02:30:34,303 - DEBUG - Requesting: https://10.0.0.24:8082/route-target/8b5ca61f-4e41-438f-89f5-4825dbb3ed3d 2024-09-02 02:30:34,354 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-02 02:30:34,354 - DEBUG - Requesting: https://10.0.0.24:8082/virtual-network/85f2d03c-59b7-45dd-8a98-93ed54192b15 2024-09-02 02:30:34,408 - DEBUG - Requesting: https://10.0.0.24:8082/routing-instance/5809c5a0-b65c-453b-9fd0-7a54b7add9cb 2024-09-02 02:30:34,465 - INFO - Verified VN network id 8 for VN 85f2d03c-59b7-45dd-8a98-93ed54192b15 2024-09-02 02:30:34,465 - INFO - Verifications in API Server for VN ctest-vn-34374482 passed 2024-09-02 02:30:34,465 - DEBUG - Requesting: https://10.0.0.24:8082/virtual-network/85f2d03c-59b7-45dd-8a98-93ed54192b15 2024-09-02 02:30:34,524 - DEBUG - Requesting: https://10.0.0.24:8082/routing-instance/5809c5a0-b65c-453b-9fd0-7a54b7add9cb 2024-09-02 02:30:34,575 - DEBUG - Requesting: https://10.0.0.24:8082/routing-instance/5809c5a0-b65c-453b-9fd0-7a54b7add9cb 2024-09-02 02:30:34,627 - DEBUG - Requesting: https://10.0.0.24:8082/route-target/8b5ca61f-4e41-438f-89f5-4825dbb3ed3d 2024-09-02 02:30:34,735 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-88173385:ctest-vn-34374482', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88173385', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9652005909030192605', 'uuid-lslong': '9986894821221542677'}, 'enable': 'true', 'created': '2024-09-02T02:30:28', 'last-modified': '2024-09-02T02:30:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.303107'} 2024-09-02 02:30:34,787 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-02 02:30:34,787 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34374482 passed 2024-09-02 02:30:34,787 - DEBUG - ====Verifying policy data for ctest-vn-34374482 in API_Server ====== 2024-09-02 02:30:34,788 - DEBUG - Requesting: https://10.0.0.24:8082/domains 2024-09-02 02:30:34,842 - DEBUG - Requesting: https://10.0.0.24:8082/domain/defd8f32-afd5-4b15-a3c8-9368d3af4005 2024-09-02 02:30:34,899 - DEBUG - Requesting: https://10.0.0.24:8082/project/02236ca0-1c9c-47ad-ae45-c0c27045b3d8 2024-09-02 02:30:34,971 - DEBUG - Requesting: https://10.0.0.24:8082/virtual-network/85f2d03c-59b7-45dd-8a98-93ed54192b15 2024-09-02 02:30:35,024 - DEBUG - ==>Verifying data for policy with id: be700883-ac08-4b5e-a837-c49f3367ee89, fqn: ['admin_domain', 'ctest-TestBasicPolicy-88173385', 'ctest-policy-allow-all-55490317'] 2024-09-02 02:30:35,024 - INFO - VN ctest-vn-34374482 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-02 02:30:35,024 - DEBUG - Verifying the vn in opserver 2024-09-02 02:30:35,024 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-88173385:ctest-vn-34374482 virtual network link through opserver 10.0.0.24 2024-09-02 02:30:35,024 - DEBUG - Requesting: https://10.0.0.24:8081/analytics/uves/virtual-networks 2024-09-02 02:30:35,079 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-88173385:ctest-vn-34374482', 'href': 'https://10.0.0.24:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-88173385:ctest-vn-34374482?flat'} 2024-09-02 02:30:35,079 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-88173385:ctest-vn-34374482 is found in opserver 2024-09-02 02:30:35,182 - DEBUG - Do not have enough data to verify VN in agent 2024-09-02 02:30:35,234 - DEBUG - VRF ids for VN ctest-vn-34374482: {} 2024-09-02 02:30:35,296 - DEBUG - Services list from nova: [, , ] 2024-09-02 02:30:37,107 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-390-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-390-1) 2024-09-02 02:30:38,559 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-390-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-390-1) 2024-09-02 02:30:38,559 - INFO - Waiting for VM ctest-TestBasicPolicy-88173385-07302043 to be up.. 2024-09-02 02:30:38,702 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-02 02:30:43,864 - DEBUG - VM is in ACTIVE state now 2024-09-02 02:30:43,864 - INFO - VM name : ctest-TestBasicPolicy-88173385-07302043 2024-09-02 02:30:44,012 - DEBUG - VM ctest-TestBasicPolicy-88173385-07302043 ID is 123c7c65-2d9f-40c4-9b20-6a39e49eb6b8 2024-09-02 02:30:44,050 - DEBUG - VM ctest-TestBasicPolicy-88173385-07302043 launched on Node cn-jenkins-deploy-platform-juju-os-390-1 2024-09-02 02:30:44,196 - DEBUG - Requesting: https://10.0.0.24:8082/virtual-machine/123c7c65-2d9f-40c4-9b20-6a39e49eb6b8 2024-09-02 02:30:44,254 - DEBUG - Requesting: https://10.0.0.24:8082/virtual-machine-interface/5bc0cadd-216c-4688-ad2c-3060adeac190 2024-09-02 02:30:47,705 - 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 1013ms') 2024-09-02 02:30:47,706 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-88173385-07302043 failed! 2024-09-02 02:30:47,761 - DEBUG - Gateway for vn admin_domain:ctest-TestBasicPolicy-88173385:ctest-vn-55726768 is 38.73.197.65 and allocation pool is NOT set 2024-09-02 02:30:49,855 - 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.99 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.68 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 = 1.681/2.835/3.990/1.154 ms') 2024-09-02 02:30:49,875 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-88173385-07302043 passed 2024-09-02 02:30:50,029 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 02:30:50,030 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-88173385-07302043, IP 38.73.197.67, Port 22 2024-09-02 02:30:50,117 - 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-02 02:30:50,277 - DEBUG - VM ctest-TestBasicPolicy-88173385-07302043 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-02 02:30:55,279 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 02:30:55,279 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-88173385-07302043, IP 38.73.197.67, Port 22 2024-09-02 02:30:55,492 - DEBUG - VM ctest-TestBasicPolicy-88173385-07302043 is ready for SSH connections 2024-09-02 02:30:55,492 - INFO - Waiting for VM ctest-TestBasicPolicy-88173385-67056632 to be up.. 2024-09-02 02:30:55,628 - DEBUG - VM is in ACTIVE state now 2024-09-02 02:30:55,628 - INFO - VM name : ctest-TestBasicPolicy-88173385-67056632 2024-09-02 02:30:55,762 - DEBUG - VM ctest-TestBasicPolicy-88173385-67056632 ID is 50e758dc-d40c-4b2e-ba4f-fc33d1370073 2024-09-02 02:30:55,762 - DEBUG - VM ctest-TestBasicPolicy-88173385-67056632 launched on Node cn-jenkins-deploy-platform-juju-os-390-1 2024-09-02 02:30:55,923 - DEBUG - Requesting: https://10.0.0.24:8082/virtual-machine/50e758dc-d40c-4b2e-ba4f-fc33d1370073 2024-09-02 02:30:55,978 - DEBUG - Requesting: https://10.0.0.24:8082/virtual-machine-interface/b0be9f0e-e377-4f93-a5b8-3bca8d97a7e3 2024-09-02 02:30:57,427 - 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=2.81 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.406 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.406/1.608/2.811/1.202 ms') 2024-09-02 02:30:57,428 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-88173385-67056632 passed 2024-09-02 02:30:57,577 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 02:30:57,577 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-88173385-67056632, IP 55.214.5.3, Port 22 2024-09-02 02:30:57,788 - DEBUG - VM ctest-TestBasicPolicy-88173385-67056632 is ready for SSH connections 2024-09-02 02:30:57,788 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 02:30:57,788 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 55.214.5.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2024-09-02 02:30:57,788 - DEBUG - ping -s 56 -c 3 -W 1 55.214.5.3 2024-09-02 02:31:01,457 - DEBUG - PING 55.214.5.3 (55.214.5.3): 56 data bytes 64 bytes from 55.214.5.3: seq=0 ttl=63 time=3.766 ms 64 bytes from 55.214.5.3: seq=1 ttl=63 time=0.765 ms 64 bytes from 55.214.5.3: seq=2 ttl=63 time=0.885 ms --- 55.214.5.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.765/1.805/3.766 ms 2024-09-02 02:31:01,457 - INFO - Ping to IP 55.214.5.3 from VM ctest-TestBasicPolicy-88173385-07302043 passed 2024-09-02 02:31:01,637 - DEBUG - Policy Update Response {"network-policy": {"uuid": "be700883-ac08-4b5e-a837-c49f3367ee89", "href": "https://10.0.0.24:8082/network-policy/be700883-ac08-4b5e-a837-c49f3367ee89"}} 2024-09-02 02:31:01,637 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 02:31:01,637 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 55.214.5.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2024-09-02 02:31:01,637 - DEBUG - ping -s 56 -c 3 -W 1 55.214.5.3 2024-09-02 02:31:04,838 - DEBUG - PING 55.214.5.3 (55.214.5.3): 56 data bytes 64 bytes from 55.214.5.3: seq=0 ttl=63 time=1.407 ms --- 55.214.5.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.407/1.407/1.407 ms 2024-09-02 02:31:04,839 - WARNING - Ping to IP 55.214.5.3 from VM ctest-TestBasicPolicy-88173385-07302043 failed 2024-09-02 02:31:04,839 - INFO - Deleting VM ctest-TestBasicPolicy-88173385-67056632 2024-09-02 02:31:05,156 - INFO - Deleting VM ctest-TestBasicPolicy-88173385-07302043 2024-09-02 02:31:09,562 - INFO - Deleted policy ctest-policy-allow-all-55490317 2024-09-02 02:31:09,562 - INFO - Deleting VN ctest-vn-34374482 2024-09-02 02:31:09,740 - DEBUG - VN 85f2d03c-59b7-45dd-8a98-93ed54192b15 still in use: Unable to complete operation on network 85f2d03c-59b7-45dd-8a98-93ed54192b15. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2077acad-ac1d-4c82-bff4-ae3f1f08e451'] 2024-09-02 02:31:09,741 - WARNING - Deleting VN ctest-vn-34374482 failed..Will retry 2024-09-02 02:31:11,903 - DEBUG - Response for deleting network () 2024-09-02 02:31:11,903 - DEBUG - Requesting: https://10.0.0.24:8082/routing-instance/5809c5a0-b65c-453b-9fd0-7a54b7add9cb 2024-09-02 02:31:11,957 - DEBUG - Response Code: 404 2024-09-02 02:31:11,957 - DEBUG - Requesting: https://10.0.0.24:8082/domains 2024-09-02 02:31:12,010 - DEBUG - Requesting: https://10.0.0.24:8082/domain/defd8f32-afd5-4b15-a3c8-9368d3af4005 2024-09-02 02:31:12,067 - DEBUG - Requesting: https://10.0.0.24:8082/project/02236ca0-1c9c-47ad-ae45-c0c27045b3d8 2024-09-02 02:31:12,147 - INFO - Validated that VN ctest-vn-34374482 is not found in API Server 2024-09-02 02:31:12,250 - DEBUG - VN ctest-vn-34374482 is not present in Agent 10.0.0.24 2024-09-02 02:31:12,250 - INFO - Validated that VN ctest-vn-34374482 is not in any agent 2024-09-02 02:31:12,402 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-34374482 info 2024-09-02 02:31:12,402 - INFO - Deleting VN ctest-vn-55726768 2024-09-02 02:31:14,139 - DEBUG - Response for deleting network () 2024-09-02 02:31:14,139 - DEBUG - Requesting: https://10.0.0.24:8082/routing-instance/6252e282-c9dc-4f3e-b89e-ca6672ca10a9 2024-09-02 02:31:14,194 - DEBUG - Response Code: 404 2024-09-02 02:31:14,194 - DEBUG - Requesting: https://10.0.0.24:8082/domains 2024-09-02 02:31:14,250 - DEBUG - Requesting: https://10.0.0.24:8082/domain/defd8f32-afd5-4b15-a3c8-9368d3af4005 2024-09-02 02:31:14,306 - DEBUG - Requesting: https://10.0.0.24:8082/project/02236ca0-1c9c-47ad-ae45-c0c27045b3d8 2024-09-02 02:31:14,379 - INFO - Validated that VN ctest-vn-55726768 is not found in API Server 2024-09-02 02:31:14,478 - DEBUG - VN ctest-vn-55726768 is not present in Agent 10.0.0.24 2024-09-02 02:31:14,478 - INFO - Validated that VN ctest-vn-55726768 is not in any agent 2024-09-02 02:31:14,634 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-55726768 info 2024-09-02 02:31:15,015 - DEBUG - No XMPP flaps were noticed during the test
2024-09-02 02:31:15,015 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:50]
2024-09-02 02:31:15,016 - INFO - -------------------------------------------------------------------------------- 2024-09-02 02:31:16,375 - INFO - Deleted project: ctest-TestBasicPolicy-88173385, ID : 02236ca0-1c9c-47ad-ae45-c0c27045b3d8