2024-09-04 11:15:26,239 - INFO - Reading existing Domain with UUID 5fc23b5e-6535-4002-b7dc-a80fda751e6b 2024-09-04 11:15:26,270 - INFO - Using existing domain ['admin_domain'](5fc23b5e-6535-4002-b7dc-a80fda751e6b) 2024-09-04 11:15:26,713 - INFO - Project ctest-TestBasicPolicy-34175055 not found, creating it 2024-09-04 11:15:27,581 - INFO - Created Project:ctest-TestBasicPolicy-34175055, ID : c78265a5-23a5-4edd-b9ac-6abfa1db4727 2024-09-04 11:15:29,913 - INFO - ================================================================================ 2024-09-04 11:15:29,913 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-04 11:15:29,913 - 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-04 11:15:30,389 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.0.0.17': '0'}} with 2024-09-04 11:15:30,389 - INFO - Initial checks done. Running the testcase now 2024-09-04 11:15:30,389 - INFO - 2024-09-04 11:15:31,461 - DEBUG - Response for create_network : {'network': {'id': 'efabff22-3e11-44e0-920f-697de94c43dc', 'name': 'ctest-vn-51566451', 'tenant_id': 'c78265a523a54eddb9ac6abfa1db4727', 'project_id': 'c78265a523a54eddb9ac6abfa1db4727', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-34175055', 'ctest-vn-51566451'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-09-04 11:15:31,703 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c73b5600-77e5-4b97-a56a-9a3479198f0a', 'name': '', 'tenant_id': 'c78265a523a54eddb9ac6abfa1db4727', 'network_id': 'efabff22-3e11-44e0-920f-697de94c43dc', 'ip_version': 4, 'cidr': '93.63.60.0/26', 'allocation_pools': [{'start': '93.63.60.2', 'end': '93.63.60.62'}], 'gateway_ip': '93.63.60.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-04T11:15:31.580627', 'updated_at': '2024-09-04T11:15:31.580627', 'dns_server_address': '93.63.60.2', 'tags': [], 'project_id': 'c78265a523a54eddb9ac6abfa1db4727'}} 2024-09-04 11:15:31,799 - INFO - Created VN ctest-vn-51566451 2024-09-04 11:15:31,860 - DEBUG - VN ctest-vn-51566451 UUID is efabff22-3e11-44e0-920f-697de94c43dc 2024-09-04 11:15:32,449 - DEBUG - Response for create_network : {'network': {'id': '1c0188c8-74d4-4314-b39f-d9cea3ac4837', 'name': 'ctest-vn-06889436', 'tenant_id': 'c78265a523a54eddb9ac6abfa1db4727', 'project_id': 'c78265a523a54eddb9ac6abfa1db4727', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-34175055', 'ctest-vn-06889436'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-09-04 11:15:32,821 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f8107b6e-7ccf-453f-9845-989076815a7b', 'name': '', 'tenant_id': 'c78265a523a54eddb9ac6abfa1db4727', 'network_id': '1c0188c8-74d4-4314-b39f-d9cea3ac4837', 'ip_version': 4, 'cidr': '15.236.68.192/26', 'allocation_pools': [{'start': '15.236.68.194', 'end': '15.236.68.254'}], 'gateway_ip': '15.236.68.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-04T11:15:32.680227', 'updated_at': '2024-09-04T11:15:32.680227', 'dns_server_address': '15.236.68.194', 'tags': [], 'project_id': 'c78265a523a54eddb9ac6abfa1db4727'}} 2024-09-04 11:15:32,891 - INFO - Created VN ctest-vn-06889436 2024-09-04 11:15:32,948 - DEBUG - VN ctest-vn-06889436 UUID is 1c0188c8-74d4-4314-b39f-d9cea3ac4837 2024-09-04 11:15:33,196 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-34175055:ctest-vn-51566451, 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-34175055:ctest-vn-06889436, 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-04 11:15:33,704 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'efabff22-3e11-44e0-920f-697de94c43dc', 'name': 'ctest-vn-51566451', 'tenant_id': 'c78265a523a54eddb9ac6abfa1db4727', 'project_id': 'c78265a523a54eddb9ac6abfa1db4727', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c73b5600-77e5-4b97-a56a-9a3479198f0a'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-34175055', 'ctest-vn-51566451'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-34175055', 'ctest-policy-allow-all-13651768']], 'subnet_ipam': [{'subnet_cidr': '93.63.60.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-09-04T11:15:31.370174', 'updated_at': '2024-09-04T11:15:31.596818'}} 2024-09-04 11:15:34,150 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1c0188c8-74d4-4314-b39f-d9cea3ac4837', 'name': 'ctest-vn-06889436', 'tenant_id': 'c78265a523a54eddb9ac6abfa1db4727', 'project_id': 'c78265a523a54eddb9ac6abfa1db4727', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f8107b6e-7ccf-453f-9845-989076815a7b'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-34175055', 'ctest-vn-06889436'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-34175055', 'ctest-policy-allow-all-13651768']], 'subnet_ipam': [{'subnet_cidr': '15.236.68.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-09-04T11:15:32.365922', 'updated_at': '2024-09-04T11:15:32.716014'}} 2024-09-04 11:15:34,384 - DEBUG - Requesting: https://10.0.0.17:8082/domains 2024-09-04 11:15:34,739 - DEBUG - Requesting: https://10.0.0.17:8082/domains 2024-09-04 11:15:34,862 - DEBUG - Requesting: https://10.0.0.17:8082/domain/5fc23b5e-6535-4002-b7dc-a80fda751e6b 2024-09-04 11:15:34,937 - DEBUG - Requesting: https://10.0.0.17:8082/project/c78265a5-23a5-4edd-b9ac-6abfa1db4727 2024-09-04 11:15:35,042 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/efabff22-3e11-44e0-920f-697de94c43dc 2024-09-04 11:15:35,111 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/efabff22-3e11-44e0-920f-697de94c43dc 2024-09-04 11:15:35,186 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/0eb2a7b8-7d77-4816-b1bf-297013f773bf 2024-09-04 11:15:35,254 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/0eb2a7b8-7d77-4816-b1bf-297013f773bf 2024-09-04 11:15:35,314 - DEBUG - Requesting: https://10.0.0.17:8082/route-target/401735ac-2355-4789-bdfd-f42a285918ba 2024-09-04 11:15:35,375 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-04 11:15:35,375 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/efabff22-3e11-44e0-920f-697de94c43dc 2024-09-04 11:15:35,442 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/0eb2a7b8-7d77-4816-b1bf-297013f773bf 2024-09-04 11:15:35,524 - INFO - Verified VN network id 7 for VN efabff22-3e11-44e0-920f-697de94c43dc 2024-09-04 11:15:35,524 - INFO - Verifications in API Server for VN ctest-vn-51566451 passed 2024-09-04 11:15:35,524 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/efabff22-3e11-44e0-920f-697de94c43dc 2024-09-04 11:15:35,610 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/0eb2a7b8-7d77-4816-b1bf-297013f773bf 2024-09-04 11:15:35,686 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/0eb2a7b8-7d77-4816-b1bf-297013f773bf 2024-09-04 11:15:35,760 - DEBUG - Requesting: https://10.0.0.17:8082/route-target/401735ac-2355-4789-bdfd-f42a285918ba 2024-09-04 11:15:35,910 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-34175055:ctest-vn-51566451', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34175055', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17270177718617588960', 'uuid-lslong': '10524746843694056412'}, 'enable': 'true', 'created': '2024-09-04T11:15:31', 'last-modified': '2024-09-04T11:15:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.231700'} 2024-09-04 11:15:35,970 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-04 11:15:35,970 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51566451 passed 2024-09-04 11:15:35,970 - DEBUG - ====Verifying policy data for ctest-vn-51566451 in API_Server ====== 2024-09-04 11:15:35,971 - DEBUG - Requesting: https://10.0.0.17:8082/domains 2024-09-04 11:15:36,029 - DEBUG - Requesting: https://10.0.0.17:8082/domain/5fc23b5e-6535-4002-b7dc-a80fda751e6b 2024-09-04 11:15:36,110 - DEBUG - Requesting: https://10.0.0.17:8082/project/c78265a5-23a5-4edd-b9ac-6abfa1db4727 2024-09-04 11:15:36,243 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/efabff22-3e11-44e0-920f-697de94c43dc 2024-09-04 11:15:36,308 - DEBUG - ==>Verifying data for policy with id: b0b00b81-885c-45c9-9d33-0b87e5846723, fqn: ['admin_domain', 'ctest-TestBasicPolicy-34175055', 'ctest-policy-allow-all-13651768'] 2024-09-04 11:15:36,308 - INFO - VN ctest-vn-51566451 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-04 11:15:36,308 - DEBUG - Verifying the vn in opserver 2024-09-04 11:15:36,308 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-34175055:ctest-vn-51566451 virtual network link through opserver 10.0.0.17 2024-09-04 11:15:36,308 - DEBUG - Requesting: https://10.0.0.17:8081/analytics/uves/virtual-networks 2024-09-04 11:15:36,712 - DEBUG - Requesting: https://10.0.0.17:8081/analytics/uves/virtual-networks 2024-09-04 11:15:37,029 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-34175055:ctest-vn-51566451', 'href': 'https://10.0.0.17:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-34175055:ctest-vn-51566451?flat'} 2024-09-04 11:15:37,029 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-34175055:ctest-vn-51566451 is found in opserver 2024-09-04 11:15:37,151 - DEBUG - Do not have enough data to verify VN in agent 2024-09-04 11:15:37,219 - DEBUG - VRF ids for VN ctest-vn-51566451: {} 2024-09-04 11:15:37,220 - DEBUG - Requesting: https://10.0.0.17:8082/domains 2024-09-04 11:15:37,298 - DEBUG - Requesting: https://10.0.0.17:8082/domain/5fc23b5e-6535-4002-b7dc-a80fda751e6b 2024-09-04 11:15:37,390 - DEBUG - Requesting: https://10.0.0.17:8082/project/c78265a5-23a5-4edd-b9ac-6abfa1db4727 2024-09-04 11:15:37,490 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/1c0188c8-74d4-4314-b39f-d9cea3ac4837 2024-09-04 11:15:37,561 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/1c0188c8-74d4-4314-b39f-d9cea3ac4837 2024-09-04 11:15:37,638 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/3af6ae6d-0fdf-491c-a4c2-82452a53f1fb 2024-09-04 11:15:37,721 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/3af6ae6d-0fdf-491c-a4c2-82452a53f1fb 2024-09-04 11:15:37,796 - DEBUG - Requesting: https://10.0.0.17:8082/route-target/e171742e-f975-46f2-a10f-5a9856a30f36 2024-09-04 11:15:37,869 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-04 11:15:37,869 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/1c0188c8-74d4-4314-b39f-d9cea3ac4837 2024-09-04 11:15:37,952 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/3af6ae6d-0fdf-491c-a4c2-82452a53f1fb 2024-09-04 11:15:38,047 - INFO - Verified VN network id 8 for VN 1c0188c8-74d4-4314-b39f-d9cea3ac4837 2024-09-04 11:15:38,048 - INFO - Verifications in API Server for VN ctest-vn-06889436 passed 2024-09-04 11:15:38,048 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/1c0188c8-74d4-4314-b39f-d9cea3ac4837 2024-09-04 11:15:38,130 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/3af6ae6d-0fdf-491c-a4c2-82452a53f1fb 2024-09-04 11:15:38,202 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/3af6ae6d-0fdf-491c-a4c2-82452a53f1fb 2024-09-04 11:15:38,269 - DEBUG - Requesting: https://10.0.0.17:8082/route-target/e171742e-f975-46f2-a10f-5a9856a30f36 2024-09-04 11:15:38,407 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-34175055:ctest-vn-06889436', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34175055', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2018044502573597460', 'uuid-lslong': '12943303335618562103'}, 'enable': 'true', 'created': '2024-09-04T11:15:32', 'last-modified': '2024-09-04T11:15:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:04.301325'} 2024-09-04 11:15:38,476 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-04 11:15:38,476 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06889436 passed 2024-09-04 11:15:38,477 - DEBUG - ====Verifying policy data for ctest-vn-06889436 in API_Server ====== 2024-09-04 11:15:38,478 - DEBUG - Requesting: https://10.0.0.17:8082/domains 2024-09-04 11:15:38,548 - DEBUG - Requesting: https://10.0.0.17:8082/domain/5fc23b5e-6535-4002-b7dc-a80fda751e6b 2024-09-04 11:15:38,628 - DEBUG - Requesting: https://10.0.0.17:8082/project/c78265a5-23a5-4edd-b9ac-6abfa1db4727 2024-09-04 11:15:38,759 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/1c0188c8-74d4-4314-b39f-d9cea3ac4837 2024-09-04 11:15:38,841 - DEBUG - ==>Verifying data for policy with id: b0b00b81-885c-45c9-9d33-0b87e5846723, fqn: ['admin_domain', 'ctest-TestBasicPolicy-34175055', 'ctest-policy-allow-all-13651768'] 2024-09-04 11:15:38,841 - INFO - VN ctest-vn-06889436 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-04 11:15:38,841 - DEBUG - Verifying the vn in opserver 2024-09-04 11:15:38,841 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-34175055:ctest-vn-06889436 virtual network link through opserver 10.0.0.17 2024-09-04 11:15:38,841 - DEBUG - Requesting: https://10.0.0.17:8081/analytics/uves/virtual-networks 2024-09-04 11:15:38,913 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-34175055:ctest-vn-06889436', 'href': 'https://10.0.0.17:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-34175055:ctest-vn-06889436?flat'} 2024-09-04 11:15:38,913 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-34175055:ctest-vn-06889436 is found in opserver 2024-09-04 11:15:39,029 - DEBUG - Do not have enough data to verify VN in agent 2024-09-04 11:15:39,094 - DEBUG - VRF ids for VN ctest-vn-06889436: {} 2024-09-04 11:15:39,196 - DEBUG - Services list from nova: [, , ] 2024-09-04 11:15:41,418 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-402-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-402-1) 2024-09-04 11:15:44,397 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-402-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-402-1) 2024-09-04 11:15:44,397 - INFO - Waiting for VM ctest-TestBasicPolicy-34175055-60076859 to be up.. 2024-09-04 11:15:44,583 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-04 11:15:49,751 - DEBUG - VM is in ACTIVE state now 2024-09-04 11:15:49,752 - INFO - VM name : ctest-TestBasicPolicy-34175055-60076859 2024-09-04 11:15:49,925 - DEBUG - VM ctest-TestBasicPolicy-34175055-60076859 ID is 30939278-21aa-4d67-9711-bc413eba2c23 2024-09-04 11:15:49,969 - DEBUG - VM ctest-TestBasicPolicy-34175055-60076859 launched on Node cn-jenkins-deploy-platform-juju-os-402-1 2024-09-04 11:15:50,177 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-machine/30939278-21aa-4d67-9711-bc413eba2c23 2024-09-04 11:15:50,237 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-machine-interface/7b86ed67-a923-44b5-bd68-7b55f35b97f4 2024-09-04 11:15:53,784 - 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 1018ms') 2024-09-04 11:15:53,784 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-34175055-60076859 failed! 2024-09-04 11:15:53,853 - DEBUG - Gateway for vn admin_domain:ctest-TestBasicPolicy-34175055:ctest-vn-51566451 is 93.63.60.1 and allocation pool is NOT set 2024-09-04 11:15:55,948 - 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.73 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.72 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 = 2.716/6.223/9.730/3.507 ms') 2024-09-04 11:15:55,948 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-34175055-60076859 passed 2024-09-04 11:15:56,116 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 11:15:56,116 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-34175055-60076859, IP 93.63.60.3, Port 22 2024-09-04 11:15:56,251 - 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-04 11:15:56,509 - DEBUG - VM ctest-TestBasicPolicy-34175055-60076859 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-04 11:16:01,510 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 11:16:01,510 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-34175055-60076859, IP 93.63.60.3, Port 22 2024-09-04 11:16:01,812 - DEBUG - VM ctest-TestBasicPolicy-34175055-60076859 is ready for SSH connections 2024-09-04 11:16:01,812 - INFO - Waiting for VM ctest-TestBasicPolicy-34175055-14321378 to be up.. 2024-09-04 11:16:02,047 - DEBUG - VM is in ACTIVE state now 2024-09-04 11:16:02,047 - INFO - VM name : ctest-TestBasicPolicy-34175055-14321378 2024-09-04 11:16:02,228 - DEBUG - VM ctest-TestBasicPolicy-34175055-14321378 ID is cf328373-104e-40eb-8ac1-3eb418e361a3 2024-09-04 11:16:02,229 - DEBUG - VM ctest-TestBasicPolicy-34175055-14321378 launched on Node cn-jenkins-deploy-platform-juju-os-402-1 2024-09-04 11:16:02,438 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-machine/cf328373-104e-40eb-8ac1-3eb418e361a3 2024-09-04 11:16:02,510 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-machine-interface/b2a06310-7211-4557-b9ac-630d0d4aea0e 2024-09-04 11:16:04,095 - 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=6.69 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.727 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.727/3.708/6.689/2.981 ms') 2024-09-04 11:16:04,095 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-34175055-14321378 passed 2024-09-04 11:16:04,280 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 11:16:04,280 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-34175055-14321378, IP 15.236.68.195, Port 22 2024-09-04 11:16:04,551 - DEBUG - VM ctest-TestBasicPolicy-34175055-14321378 is ready for SSH connections 2024-09-04 11:16:04,551 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 11:16:04,551 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 15.236.68.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2024-09-04 11:16:04,551 - DEBUG - ping -s 56 -c 3 -W 1 15.236.68.195 2024-09-04 11:16:08,541 - DEBUG - PING 15.236.68.195 (15.236.68.195): 56 data bytes 64 bytes from 15.236.68.195: seq=0 ttl=63 time=4.438 ms 64 bytes from 15.236.68.195: seq=1 ttl=63 time=2.724 ms 64 bytes from 15.236.68.195: seq=2 ttl=63 time=2.395 ms --- 15.236.68.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 2.395/3.185/4.438 ms 2024-09-04 11:16:08,542 - INFO - Ping to IP 15.236.68.195 from VM ctest-TestBasicPolicy-34175055-60076859 passed 2024-09-04 11:16:08,812 - DEBUG - Policy Update Response {"network-policy": {"uuid": "b0b00b81-885c-45c9-9d33-0b87e5846723", "href": "https://10.0.0.17:8082/network-policy/b0b00b81-885c-45c9-9d33-0b87e5846723"}} 2024-09-04 11:16:08,812 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 11:16:08,812 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 15.236.68.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2024-09-04 11:16:08,813 - DEBUG - ping -s 56 -c 3 -W 1 15.236.68.195 2024-09-04 11:16:12,081 - DEBUG - PING 15.236.68.195 (15.236.68.195): 56 data bytes --- 15.236.68.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-04 11:16:12,082 - WARNING - Ping to IP 15.236.68.195 from VM ctest-TestBasicPolicy-34175055-60076859 failed 2024-09-04 11:16:12,083 - INFO - Deleting VM ctest-TestBasicPolicy-34175055-14321378 2024-09-04 11:16:12,362 - INFO - Deleting VM ctest-TestBasicPolicy-34175055-60076859 2024-09-04 11:16:13,352 - INFO - Deleted policy ctest-policy-allow-all-13651768 2024-09-04 11:16:13,352 - INFO - Deleting VN ctest-vn-06889436 2024-09-04 11:16:13,527 - DEBUG - VN 1c0188c8-74d4-4314-b39f-d9cea3ac4837 still in use: Unable to complete operation on network 1c0188c8-74d4-4314-b39f-d9cea3ac4837. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-91816a98-80b5-4e3c-a284-c3f1805cb717'] 2024-09-04 11:16:13,527 - WARNING - Deleting VN ctest-vn-06889436 failed..Will retry 2024-09-04 11:16:15,847 - DEBUG - Response for deleting network () 2024-09-04 11:16:15,847 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/3af6ae6d-0fdf-491c-a4c2-82452a53f1fb 2024-09-04 11:16:15,904 - DEBUG - Response Code: 404 2024-09-04 11:16:15,904 - DEBUG - Requesting: https://10.0.0.17:8082/domains 2024-09-04 11:16:15,965 - DEBUG - Requesting: https://10.0.0.17:8082/domain/5fc23b5e-6535-4002-b7dc-a80fda751e6b 2024-09-04 11:16:16,039 - DEBUG - Requesting: https://10.0.0.17:8082/project/c78265a5-23a5-4edd-b9ac-6abfa1db4727 2024-09-04 11:16:16,164 - INFO - Validated that VN ctest-vn-06889436 is not found in API Server 2024-09-04 11:16:16,294 - DEBUG - VN ctest-vn-06889436 is not present in Agent 10.0.0.17 2024-09-04 11:16:16,294 - INFO - Validated that VN ctest-vn-06889436 is not in any agent 2024-09-04 11:16:16,499 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-06889436 info 2024-09-04 11:16:16,500 - INFO - Deleting VN ctest-vn-51566451 2024-09-04 11:16:16,857 - DEBUG - Response for deleting network () 2024-09-04 11:16:16,857 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/0eb2a7b8-7d77-4816-b1bf-297013f773bf 2024-09-04 11:16:16,924 - DEBUG - Response Code: 404 2024-09-04 11:16:16,925 - DEBUG - Requesting: https://10.0.0.17:8082/domains 2024-09-04 11:16:16,994 - DEBUG - Requesting: https://10.0.0.17:8082/domain/5fc23b5e-6535-4002-b7dc-a80fda751e6b 2024-09-04 11:16:17,075 - DEBUG - Requesting: https://10.0.0.17:8082/project/c78265a5-23a5-4edd-b9ac-6abfa1db4727 2024-09-04 11:16:17,214 - INFO - Validated that VN ctest-vn-51566451 is not found in API Server 2024-09-04 11:16:17,334 - DEBUG - VN ctest-vn-51566451 is not present in Agent 10.0.0.17 2024-09-04 11:16:17,334 - INFO - Validated that VN ctest-vn-51566451 is not in any agent 2024-09-04 11:16:17,540 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-51566451 info 2024-09-04 11:16:18,123 - DEBUG - No XMPP flaps were noticed during the test
2024-09-04 11:16:18,124 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:49]
2024-09-04 11:16:18,124 - INFO - -------------------------------------------------------------------------------- 2024-09-04 11:16:19,078 - INFO - Deleted project: ctest-TestBasicPolicy-34175055, ID : c78265a5-23a5-4edd-b9ac-6abfa1db4727