2024-11-09 08:54:50,080 - INFO - Domain Default found not creating 2024-11-09 08:54:50,260 - INFO - Project ctest-TestBasicPolicy-50219836 not found, creating it 2024-11-09 08:54:50,786 - INFO - Created Project:ctest-TestBasicPolicy-50219836, ID : cad35443-4364-44b7-9077-18d809286997 2024-11-09 08:54:52,375 - INFO - ================================================================================ 2024-11-09 08:54:52,376 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-09 08:54:52,376 - 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-09 08:54:52,644 - DEBUG - Nothing to compare xmpp stats {'10.0.0.43': {'10.20.0.29': '0'}} with 2024-11-09 08:54:52,644 - INFO - Initial checks done. Running the testcase now 2024-11-09 08:54:52,644 - INFO - 2024-11-09 08:54:53,238 - DEBUG - Response for create_network : {'network': {'id': 'b5e807a3-9963-4c53-91d7-7ab28132589c', 'name': 'ctest-vn-34617204', 'tenant_id': 'cad35443436444b7907718d809286997', 'project_id': 'cad35443436444b7907718d809286997', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50219836', 'ctest-vn-34617204'], 'port_security_enabled': True, 'description': ''}} 2024-11-09 08:54:53,459 - DEBUG - Response for create_subnet : {'subnet': {'id': '2c2cede6-5635-4d55-9302-c2df15b1c633', 'name': '', 'tenant_id': 'cad35443436444b7907718d809286997', 'network_id': 'b5e807a3-9963-4c53-91d7-7ab28132589c', 'ip_version': 4, 'cidr': '153.115.118.64/26', 'allocation_pools': [{'start': '153.115.118.66', 'end': '153.115.118.126'}], 'gateway_ip': '153.115.118.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '153.115.118.66', 'tags': [], 'project_id': 'cad35443436444b7907718d809286997'}} 2024-11-09 08:54:53,482 - INFO - Created VN ctest-vn-34617204 2024-11-09 08:54:53,541 - DEBUG - VN ctest-vn-34617204 UUID is b5e807a3-9963-4c53-91d7-7ab28132589c 2024-11-09 08:54:53,864 - DEBUG - Response for create_network : {'network': {'id': '973777ad-90a5-46e7-a3fa-02e21ffaf25e', 'name': 'ctest-vn-46279932', 'tenant_id': 'cad35443436444b7907718d809286997', 'project_id': 'cad35443436444b7907718d809286997', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50219836', 'ctest-vn-46279932'], 'port_security_enabled': True, 'description': ''}} 2024-11-09 08:54:54,065 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ce1de642-ac35-45ac-a350-bfabc55d6d49', 'name': '', 'tenant_id': 'cad35443436444b7907718d809286997', 'network_id': '973777ad-90a5-46e7-a3fa-02e21ffaf25e', 'ip_version': 4, 'cidr': '68.96.38.128/26', 'allocation_pools': [{'start': '68.96.38.130', 'end': '68.96.38.190'}], 'gateway_ip': '68.96.38.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '68.96.38.130', 'tags': [], 'project_id': 'cad35443436444b7907718d809286997'}} 2024-11-09 08:54:54,086 - INFO - Created VN ctest-vn-46279932 2024-11-09 08:54:54,145 - DEBUG - VN ctest-vn-46279932 UUID is 973777ad-90a5-46e7-a3fa-02e21ffaf25e 2024-11-09 08:54:54,271 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-50219836:ctest-vn-34617204, 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-50219836:ctest-vn-46279932, 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-09 08:54:54,601 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b5e807a3-9963-4c53-91d7-7ab28132589c', 'name': 'ctest-vn-34617204', 'tenant_id': 'cad35443436444b7907718d809286997', 'project_id': 'cad35443436444b7907718d809286997', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2c2cede6-5635-4d55-9302-c2df15b1c633'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50219836', 'ctest-vn-34617204'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50219836', 'ctest-policy-allow-all-42297195']], 'subnet_ipam': [{'subnet_cidr': '153.115.118.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-09 08:54:54,854 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '973777ad-90a5-46e7-a3fa-02e21ffaf25e', 'name': 'ctest-vn-46279932', 'tenant_id': 'cad35443436444b7907718d809286997', 'project_id': 'cad35443436444b7907718d809286997', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ce1de642-ac35-45ac-a350-bfabc55d6d49'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50219836', 'ctest-vn-46279932'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50219836', 'ctest-policy-allow-all-42297195']], 'subnet_ipam': [{'subnet_cidr': '68.96.38.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-09 08:54:55,033 - DEBUG - Requesting: http://10.0.0.43:8082/domains 2024-11-09 08:54:55,335 - DEBUG - Requesting: http://10.0.0.43:8082/domains 2024-11-09 08:54:55,371 - DEBUG - Requesting: http://10.0.0.43:8082/domain/e47d52c4-4199-48bd-b037-fdf5fb78362c 2024-11-09 08:54:55,386 - DEBUG - Requesting: http://10.0.0.43:8082/project/cad35443-4364-44b7-9077-18d809286997 2024-11-09 08:54:55,472 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/b5e807a3-9963-4c53-91d7-7ab28132589c 2024-11-09 08:54:55,491 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/b5e807a3-9963-4c53-91d7-7ab28132589c 2024-11-09 08:54:55,506 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/7108857c-1b1a-4b33-b96e-326b9b223858 2024-11-09 08:54:55,519 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/7108857c-1b1a-4b33-b96e-326b9b223858 2024-11-09 08:54:55,529 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/144ae1e2-dca2-4bea-a336-6a266ef0e4c9 2024-11-09 08:54:55,546 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-09 08:54:55,547 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/b5e807a3-9963-4c53-91d7-7ab28132589c 2024-11-09 08:54:55,563 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/7108857c-1b1a-4b33-b96e-326b9b223858 2024-11-09 08:54:55,585 - INFO - Verified VN network id 7 for VN b5e807a3-9963-4c53-91d7-7ab28132589c 2024-11-09 08:54:55,585 - INFO - Verifications in API Server for VN ctest-vn-34617204 passed 2024-11-09 08:54:55,585 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/b5e807a3-9963-4c53-91d7-7ab28132589c 2024-11-09 08:54:55,598 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/7108857c-1b1a-4b33-b96e-326b9b223858 2024-11-09 08:54:55,607 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/7108857c-1b1a-4b33-b96e-326b9b223858 2024-11-09 08:54:55,618 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/144ae1e2-dca2-4bea-a336-6a266ef0e4c9 2024-11-09 08:54:55,633 - DEBUG - Control-node 10.0.0.43 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50219836:ctest-vn-34617204', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50219836', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13107735114696313939', 'uuid-lslong': '10509003162582669468'}, 'enable': 'true', 'created': '2024-11-09T08:54:53', 'last-modified': '2024-11-09T08:54:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.053355'} 2024-11-09 08:54:55,640 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-09 08:54:55,640 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34617204 passed 2024-11-09 08:54:55,641 - DEBUG - ====Verifying policy data for ctest-vn-34617204 in API_Server ====== 2024-11-09 08:54:55,641 - DEBUG - Requesting: http://10.0.0.43:8082/domains 2024-11-09 08:54:55,648 - DEBUG - Requesting: http://10.0.0.43:8082/domain/e47d52c4-4199-48bd-b037-fdf5fb78362c 2024-11-09 08:54:55,663 - DEBUG - Requesting: http://10.0.0.43:8082/project/cad35443-4364-44b7-9077-18d809286997 2024-11-09 08:54:55,750 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/b5e807a3-9963-4c53-91d7-7ab28132589c 2024-11-09 08:54:55,767 - DEBUG - ==>Verifying data for policy with id: 03cd7613-fe01-4f35-a796-127c59237c44, fqn: ['default-domain', 'ctest-TestBasicPolicy-50219836', 'ctest-policy-allow-all-42297195'] 2024-11-09 08:54:55,767 - INFO - VN ctest-vn-34617204 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-09 08:54:55,767 - DEBUG - Verifying the vn in opserver 2024-11-09 08:54:55,767 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50219836:ctest-vn-34617204 virtual network link through opserver 10.0.0.43 2024-11-09 08:54:55,768 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks 2024-11-09 08:54:56,067 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks 2024-11-09 08:54:56,129 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50219836:ctest-vn-34617204', 'href': 'http://10.0.0.43:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50219836:ctest-vn-34617204?flat'} 2024-11-09 08:54:56,129 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50219836:ctest-vn-34617204 is found in opserver 2024-11-09 08:54:56,142 - DEBUG - Do not have enough data to verify VN in agent 2024-11-09 08:54:56,148 - DEBUG - VRF ids for VN ctest-vn-34617204: {} 2024-11-09 08:54:56,148 - DEBUG - Requesting: http://10.0.0.43:8082/domains 2024-11-09 08:54:56,154 - DEBUG - Requesting: http://10.0.0.43:8082/domain/e47d52c4-4199-48bd-b037-fdf5fb78362c 2024-11-09 08:54:56,168 - DEBUG - Requesting: http://10.0.0.43:8082/project/cad35443-4364-44b7-9077-18d809286997 2024-11-09 08:54:56,251 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/973777ad-90a5-46e7-a3fa-02e21ffaf25e 2024-11-09 08:54:56,268 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/973777ad-90a5-46e7-a3fa-02e21ffaf25e 2024-11-09 08:54:56,282 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/e848ad6c-6e2b-42b4-9589-46ee49586d1c 2024-11-09 08:54:56,292 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/e848ad6c-6e2b-42b4-9589-46ee49586d1c 2024-11-09 08:54:56,301 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/90927630-0c81-4525-9d3f-6dca6865264f 2024-11-09 08:54:56,308 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-09 08:54:56,309 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/973777ad-90a5-46e7-a3fa-02e21ffaf25e 2024-11-09 08:54:56,322 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/e848ad6c-6e2b-42b4-9589-46ee49586d1c 2024-11-09 08:54:56,343 - INFO - Verified VN network id 8 for VN 973777ad-90a5-46e7-a3fa-02e21ffaf25e 2024-11-09 08:54:56,343 - INFO - Verifications in API Server for VN ctest-vn-46279932 passed 2024-11-09 08:54:56,343 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/973777ad-90a5-46e7-a3fa-02e21ffaf25e 2024-11-09 08:54:56,357 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/e848ad6c-6e2b-42b4-9589-46ee49586d1c 2024-11-09 08:54:56,366 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/e848ad6c-6e2b-42b4-9589-46ee49586d1c 2024-11-09 08:54:56,377 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/90927630-0c81-4525-9d3f-6dca6865264f 2024-11-09 08:54:56,390 - DEBUG - Control-node 10.0.0.43 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50219836:ctest-vn-46279932', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50219836', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10896309410786002663', 'uuid-lslong': '11815759742582321758'}, 'enable': 'true', 'created': '2024-11-09T08:54:53', 'last-modified': '2024-11-09T08:54:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.562533'} 2024-11-09 08:54:56,396 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-09 08:54:56,397 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46279932 passed 2024-11-09 08:54:56,397 - DEBUG - ====Verifying policy data for ctest-vn-46279932 in API_Server ====== 2024-11-09 08:54:56,397 - DEBUG - Requesting: http://10.0.0.43:8082/domains 2024-11-09 08:54:56,403 - DEBUG - Requesting: http://10.0.0.43:8082/domain/e47d52c4-4199-48bd-b037-fdf5fb78362c 2024-11-09 08:54:56,416 - DEBUG - Requesting: http://10.0.0.43:8082/project/cad35443-4364-44b7-9077-18d809286997 2024-11-09 08:54:56,492 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/973777ad-90a5-46e7-a3fa-02e21ffaf25e 2024-11-09 08:54:56,506 - DEBUG - ==>Verifying data for policy with id: 03cd7613-fe01-4f35-a796-127c59237c44, fqn: ['default-domain', 'ctest-TestBasicPolicy-50219836', 'ctest-policy-allow-all-42297195'] 2024-11-09 08:54:56,506 - INFO - VN ctest-vn-46279932 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-09 08:54:56,506 - DEBUG - Verifying the vn in opserver 2024-11-09 08:54:56,506 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50219836:ctest-vn-46279932 virtual network link through opserver 10.0.0.43 2024-11-09 08:54:56,506 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks 2024-11-09 08:54:56,517 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50219836:ctest-vn-46279932', 'href': 'http://10.0.0.43:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50219836:ctest-vn-46279932?flat'} 2024-11-09 08:54:56,517 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50219836:ctest-vn-46279932 is found in opserver 2024-11-09 08:54:56,528 - DEBUG - Do not have enough data to verify VN in agent 2024-11-09 08:54:56,533 - DEBUG - VRF ids for VN ctest-vn-46279932: {} 2024-11-09 08:54:56,591 - DEBUG - Services list from nova: [, , ] 2024-11-09 08:54:57,662 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2244-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2244-1) 2024-11-09 08:54:59,037 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2244-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2244-1) 2024-11-09 08:54:59,038 - INFO - Waiting for VM ctest-TestBasicPolicy-50219836-86559428 to be up.. 2024-11-09 08:54:59,143 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-09 08:55:04,246 - DEBUG - VM is in ACTIVE state now 2024-11-09 08:55:04,247 - INFO - VM name : ctest-TestBasicPolicy-50219836-86559428 2024-11-09 08:55:04,353 - DEBUG - VM ctest-TestBasicPolicy-50219836-86559428 ID is 245253e7-2091-424a-8650-dcb826b37a1e 2024-11-09 08:55:04,377 - DEBUG - VM ctest-TestBasicPolicy-50219836-86559428 launched on Node cn-jenkins-deploy-platform-ansible-os-2244-1 2024-11-09 08:55:04,472 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine/245253e7-2091-424a-8650-dcb826b37a1e 2024-11-09 08:55:04,483 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine-interface/44304559-82b3-4244-918f-409738212524 2024-11-09 08:55:07,772 - 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 1027ms') 2024-11-09 08:55:07,772 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-50219836-86559428 failed! 2024-11-09 08:55:07,837 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-50219836:ctest-vn-34617204 is 153.115.118.65 and allocation pool is NOT set 2024-11-09 08:55:09,896 - 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.42 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.896 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 = 0.896/2.157/3.419/1.261 ms') 2024-11-09 08:55:09,897 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-50219836-86559428 passed 2024-11-09 08:55:10,069 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-09 08:55:10,069 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-50219836-86559428, IP 153.115.118.67, Port 22 2024-11-09 08:55:10,239 - DEBUG - VM ctest-TestBasicPolicy-50219836-86559428 is ready for SSH connections 2024-11-09 08:55:10,239 - INFO - Waiting for VM ctest-TestBasicPolicy-50219836-13800202 to be up.. 2024-11-09 08:55:10,330 - DEBUG - VM is in ACTIVE state now 2024-11-09 08:55:10,331 - INFO - VM name : ctest-TestBasicPolicy-50219836-13800202 2024-11-09 08:55:10,421 - DEBUG - VM ctest-TestBasicPolicy-50219836-13800202 ID is 2929b1f7-e4b2-43a8-825b-9983d392ee42 2024-11-09 08:55:10,422 - DEBUG - VM ctest-TestBasicPolicy-50219836-13800202 launched on Node cn-jenkins-deploy-platform-ansible-os-2244-1 2024-11-09 08:55:10,515 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine/2929b1f7-e4b2-43a8-825b-9983d392ee42 2024-11-09 08:55:10,529 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine-interface/22c43574-afe6-4483-9e8f-ca4ae50dca9f 2024-11-09 08:55:11,788 - 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.07 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.490 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.490/1.782/3.074/1.292 ms') 2024-11-09 08:55:11,788 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-50219836-13800202 passed 2024-11-09 08:55:11,953 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-09 08:55:11,953 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-50219836-13800202, IP 68.96.38.131, Port 22 2024-11-09 08:55:12,128 - DEBUG - VM ctest-TestBasicPolicy-50219836-13800202 is ready for SSH connections 2024-11-09 08:55:12,128 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-09 08:55:12,128 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 68.96.38.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.43, gateway password: c0ntrail123 2024-11-09 08:55:12,128 - DEBUG - ping -s 56 -c 3 -W 1 68.96.38.131 2024-11-09 08:55:16,137 - DEBUG - PING 68.96.38.131 (68.96.38.131): 56 data bytes 64 bytes from 68.96.38.131: seq=0 ttl=63 time=4.070 ms 64 bytes from 68.96.38.131: seq=1 ttl=63 time=1.399 ms 64 bytes from 68.96.38.131: seq=2 ttl=63 time=1.083 ms --- 68.96.38.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.083/2.184/4.070 ms 2024-11-09 08:55:16,137 - INFO - Ping to IP 68.96.38.131 from VM ctest-TestBasicPolicy-50219836-86559428 passed 2024-11-09 08:55:16,329 - DEBUG - Policy Update Response {"network-policy": {"uuid": "03cd7613-fe01-4f35-a796-127c59237c44", "href": "http://10.0.0.43:8082/network-policy/03cd7613-fe01-4f35-a796-127c59237c44"}} 2024-11-09 08:55:16,329 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-09 08:55:16,329 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 68.96.38.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.43, gateway password: c0ntrail123 2024-11-09 08:55:16,329 - DEBUG - ping -s 56 -c 3 -W 1 68.96.38.131 2024-11-09 08:55:19,535 - DEBUG - PING 68.96.38.131 (68.96.38.131): 56 data bytes 64 bytes from 68.96.38.131: seq=0 ttl=63 time=1.333 ms --- 68.96.38.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.333/1.333/1.333 ms 2024-11-09 08:55:19,535 - WARNING - Ping to IP 68.96.38.131 from VM ctest-TestBasicPolicy-50219836-86559428 failed 2024-11-09 08:55:19,535 - INFO - Deleting VM ctest-TestBasicPolicy-50219836-13800202 2024-11-09 08:55:19,608 - INFO - Deleting VM ctest-TestBasicPolicy-50219836-86559428 2024-11-09 08:55:20,068 - INFO - Deleted policy ctest-policy-allow-all-42297195 2024-11-09 08:55:20,068 - INFO - Deleting VN ctest-vn-46279932 2024-11-09 08:55:20,119 - DEBUG - VN 973777ad-90a5-46e7-a3fa-02e21ffaf25e still in use: Unable to complete operation on network 973777ad-90a5-46e7-a3fa-02e21ffaf25e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ccd5e732-cba5-494f-a910-9f0091bbed8e'] 2024-11-09 08:55:20,119 - WARNING - Deleting VN ctest-vn-46279932 failed..Will retry 2024-11-09 08:55:22,239 - DEBUG - Response for deleting network () 2024-11-09 08:55:22,239 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/e848ad6c-6e2b-42b4-9589-46ee49586d1c 2024-11-09 08:55:22,245 - DEBUG - Response Code: 404 2024-11-09 08:55:22,246 - DEBUG - Requesting: http://10.0.0.43:8082/domains 2024-11-09 08:55:22,252 - DEBUG - Requesting: http://10.0.0.43:8082/domain/e47d52c4-4199-48bd-b037-fdf5fb78362c 2024-11-09 08:55:22,316 - DEBUG - Requesting: http://10.0.0.43:8082/project/cad35443-4364-44b7-9077-18d809286997 2024-11-09 08:55:22,404 - INFO - Validated that VN ctest-vn-46279932 is not found in API Server 2024-11-09 08:55:22,416 - DEBUG - VN ctest-vn-46279932 is not present in Agent 10.0.0.43 2024-11-09 08:55:22,416 - INFO - Validated that VN ctest-vn-46279932 is not in any agent 2024-11-09 08:55:22,436 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-46279932 info 2024-11-09 08:55:22,436 - INFO - Deleting VN ctest-vn-34617204 2024-11-09 08:55:22,566 - DEBUG - Response for deleting network () 2024-11-09 08:55:22,566 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/7108857c-1b1a-4b33-b96e-326b9b223858 2024-11-09 08:55:22,573 - DEBUG - Response Code: 404 2024-11-09 08:55:22,574 - DEBUG - Requesting: http://10.0.0.43:8082/domains 2024-11-09 08:55:22,580 - DEBUG - Requesting: http://10.0.0.43:8082/domain/e47d52c4-4199-48bd-b037-fdf5fb78362c 2024-11-09 08:55:22,636 - DEBUG - Requesting: http://10.0.0.43:8082/project/cad35443-4364-44b7-9077-18d809286997 2024-11-09 08:55:22,719 - INFO - Validated that VN ctest-vn-34617204 is not found in API Server 2024-11-09 08:55:22,731 - DEBUG - VN ctest-vn-34617204 is not present in Agent 10.0.0.43 2024-11-09 08:55:22,731 - INFO - Validated that VN ctest-vn-34617204 is not in any agent 2024-11-09 08:55:22,747 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-34617204 info 2024-11-09 08:55:23,003 - DEBUG - No XMPP flaps were noticed during the test 2024-11-09 08:55:23,003 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31] 2024-11-09 08:55:23,003 - INFO - -------------------------------------------------------------------------------- 2024-11-09 08:55:23,695 - INFO - Deleted project: ctest-TestBasicPolicy-50219836, ID : cad35443-4364-44b7-9077-18d809286997