2024-11-11 11:38:19,219 - INFO - Domain Default found not creating 2024-11-11 11:38:19,387 - INFO - Project ctest-TestBasicPolicy-60018262 not found, creating it 2024-11-11 11:38:19,892 - INFO - Created Project:ctest-TestBasicPolicy-60018262, ID : 740ab96f-c2fc-4798-8e12-c7089a1b891c 2024-11-11 11:38:21,399 - INFO - ================================================================================ 2024-11-11 11:38:21,399 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-11 11:38:21,400 - 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-11 11:38:21,663 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.8': '0'}} with 2024-11-11 11:38:21,663 - INFO - Initial checks done. Running the testcase now 2024-11-11 11:38:21,663 - INFO - 2024-11-11 11:38:22,239 - DEBUG - Response for create_network : {'network': {'id': 'f483324e-00a9-42bd-8d9d-b0bf21bac1b2', 'name': 'ctest-vn-20260611', 'tenant_id': '740ab96fc2fc47988e12c7089a1b891c', 'project_id': '740ab96fc2fc47988e12c7089a1b891c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60018262', 'ctest-vn-20260611'], 'port_security_enabled': True, 'description': ''}} 2024-11-11 11:38:22,422 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b4f4b6b3-f758-47da-88c7-c1facce24e60', 'name': '', 'tenant_id': '740ab96fc2fc47988e12c7089a1b891c', 'network_id': 'f483324e-00a9-42bd-8d9d-b0bf21bac1b2', 'ip_version': 4, 'cidr': '182.38.214.0/26', 'allocation_pools': [{'start': '182.38.214.2', 'end': '182.38.214.62'}], 'gateway_ip': '182.38.214.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '182.38.214.2', 'tags': [], 'project_id': '740ab96fc2fc47988e12c7089a1b891c'}} 2024-11-11 11:38:22,442 - INFO - Created VN ctest-vn-20260611 2024-11-11 11:38:22,500 - DEBUG - VN ctest-vn-20260611 UUID is f483324e-00a9-42bd-8d9d-b0bf21bac1b2 2024-11-11 11:38:22,825 - DEBUG - Response for create_network : {'network': {'id': 'f3778a1e-253f-4f26-aa1d-763c407aa9c3', 'name': 'ctest-vn-81939381', 'tenant_id': '740ab96fc2fc47988e12c7089a1b891c', 'project_id': '740ab96fc2fc47988e12c7089a1b891c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60018262', 'ctest-vn-81939381'], 'port_security_enabled': True, 'description': ''}} 2024-11-11 11:38:22,987 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ae6b6479-f35b-4187-88d6-ae3bcacdbba1', 'name': '', 'tenant_id': '740ab96fc2fc47988e12c7089a1b891c', 'network_id': 'f3778a1e-253f-4f26-aa1d-763c407aa9c3', 'ip_version': 4, 'cidr': '96.61.161.128/26', 'allocation_pools': [{'start': '96.61.161.130', 'end': '96.61.161.190'}], 'gateway_ip': '96.61.161.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.61.161.130', 'tags': [], 'project_id': '740ab96fc2fc47988e12c7089a1b891c'}} 2024-11-11 11:38:23,006 - INFO - Created VN ctest-vn-81939381 2024-11-11 11:38:23,064 - DEBUG - VN ctest-vn-81939381 UUID is f3778a1e-253f-4f26-aa1d-763c407aa9c3 2024-11-11 11:38:23,192 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-60018262:ctest-vn-20260611, 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-60018262:ctest-vn-81939381, 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-11 11:38:23,518 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f483324e-00a9-42bd-8d9d-b0bf21bac1b2', 'name': 'ctest-vn-20260611', 'tenant_id': '740ab96fc2fc47988e12c7089a1b891c', 'project_id': '740ab96fc2fc47988e12c7089a1b891c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b4f4b6b3-f758-47da-88c7-c1facce24e60'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60018262', 'ctest-vn-20260611'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60018262', 'ctest-policy-allow-all-15135583']], 'subnet_ipam': [{'subnet_cidr': '182.38.214.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-11 11:38:23,761 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f3778a1e-253f-4f26-aa1d-763c407aa9c3', 'name': 'ctest-vn-81939381', 'tenant_id': '740ab96fc2fc47988e12c7089a1b891c', 'project_id': '740ab96fc2fc47988e12c7089a1b891c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ae6b6479-f35b-4187-88d6-ae3bcacdbba1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60018262', 'ctest-vn-81939381'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60018262', 'ctest-policy-allow-all-15135583']], 'subnet_ipam': [{'subnet_cidr': '96.61.161.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-11 11:38:23,948 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-11-11 11:38:24,243 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-11-11 11:38:24,278 - DEBUG - Requesting: http://10.0.0.42:8082/domain/ee4434e3-7e57-4ca4-aff2-60cffa6a39ef 2024-11-11 11:38:24,294 - DEBUG - Requesting: http://10.0.0.42:8082/project/740ab96f-c2fc-4798-8e12-c7089a1b891c 2024-11-11 11:38:24,383 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f483324e-00a9-42bd-8d9d-b0bf21bac1b2 2024-11-11 11:38:24,400 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f483324e-00a9-42bd-8d9d-b0bf21bac1b2 2024-11-11 11:38:24,414 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/ab2c2a4c-ed36-4b68-b5eb-5870bb9ce480 2024-11-11 11:38:24,425 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/ab2c2a4c-ed36-4b68-b5eb-5870bb9ce480 2024-11-11 11:38:24,438 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/1d565d27-6fb2-4974-a9aa-6ebfbb606e4f 2024-11-11 11:38:24,447 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-11 11:38:24,447 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f483324e-00a9-42bd-8d9d-b0bf21bac1b2 2024-11-11 11:38:24,461 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/ab2c2a4c-ed36-4b68-b5eb-5870bb9ce480 2024-11-11 11:38:24,481 - INFO - Verified VN network id 8 for VN f483324e-00a9-42bd-8d9d-b0bf21bac1b2 2024-11-11 11:38:24,481 - INFO - Verifications in API Server for VN ctest-vn-20260611 passed 2024-11-11 11:38:24,481 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f483324e-00a9-42bd-8d9d-b0bf21bac1b2 2024-11-11 11:38:24,496 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/ab2c2a4c-ed36-4b68-b5eb-5870bb9ce480 2024-11-11 11:38:24,505 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/ab2c2a4c-ed36-4b68-b5eb-5870bb9ce480 2024-11-11 11:38:24,514 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/1d565d27-6fb2-4974-a9aa-6ebfbb606e4f 2024-11-11 11:38:24,527 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60018262:ctest-vn-20260611', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60018262', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17618981477803442877', 'uuid-lslong': '10204506665642541490'}, 'enable': 'true', 'created': '2024-11-11T11:38:22', 'last-modified': '2024-11-11T11:38:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.041149'} 2024-11-11 11:38:24,534 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-11 11:38:24,534 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20260611 passed 2024-11-11 11:38:24,534 - DEBUG - ====Verifying policy data for ctest-vn-20260611 in API_Server ====== 2024-11-11 11:38:24,534 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-11-11 11:38:24,541 - DEBUG - Requesting: http://10.0.0.42:8082/domain/ee4434e3-7e57-4ca4-aff2-60cffa6a39ef 2024-11-11 11:38:24,553 - DEBUG - Requesting: http://10.0.0.42:8082/project/740ab96f-c2fc-4798-8e12-c7089a1b891c 2024-11-11 11:38:24,640 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f483324e-00a9-42bd-8d9d-b0bf21bac1b2 2024-11-11 11:38:24,654 - DEBUG - ==>Verifying data for policy with id: 75ac8454-f321-49f7-a01d-ed91e42f9043, fqn: ['default-domain', 'ctest-TestBasicPolicy-60018262', 'ctest-policy-allow-all-15135583'] 2024-11-11 11:38:24,655 - INFO - VN ctest-vn-20260611 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-11 11:38:24,655 - DEBUG - Verifying the vn in opserver 2024-11-11 11:38:24,655 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60018262:ctest-vn-20260611 virtual network link through opserver 10.0.0.42 2024-11-11 11:38:24,655 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-11-11 11:38:24,953 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-11-11 11:38:25,021 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60018262:ctest-vn-20260611', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60018262:ctest-vn-20260611?flat'} 2024-11-11 11:38:25,021 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60018262:ctest-vn-20260611 is found in opserver 2024-11-11 11:38:25,033 - DEBUG - Do not have enough data to verify VN in agent 2024-11-11 11:38:25,038 - DEBUG - VRF ids for VN ctest-vn-20260611: {} 2024-11-11 11:38:25,038 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-11-11 11:38:25,044 - DEBUG - Requesting: http://10.0.0.42:8082/domain/ee4434e3-7e57-4ca4-aff2-60cffa6a39ef 2024-11-11 11:38:25,056 - DEBUG - Requesting: http://10.0.0.42:8082/project/740ab96f-c2fc-4798-8e12-c7089a1b891c 2024-11-11 11:38:25,133 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f3778a1e-253f-4f26-aa1d-763c407aa9c3 2024-11-11 11:38:25,150 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f3778a1e-253f-4f26-aa1d-763c407aa9c3 2024-11-11 11:38:25,171 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/67bd7189-7ef4-4594-bfaf-ecc75c44b802 2024-11-11 11:38:25,181 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/67bd7189-7ef4-4594-bfaf-ecc75c44b802 2024-11-11 11:38:25,191 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/913d0244-951c-4569-b1ed-7b7841b19717 2024-11-11 11:38:25,199 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-11 11:38:25,199 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f3778a1e-253f-4f26-aa1d-763c407aa9c3 2024-11-11 11:38:25,213 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/67bd7189-7ef4-4594-bfaf-ecc75c44b802 2024-11-11 11:38:25,235 - INFO - Verified VN network id 9 for VN f3778a1e-253f-4f26-aa1d-763c407aa9c3 2024-11-11 11:38:25,235 - INFO - Verifications in API Server for VN ctest-vn-81939381 passed 2024-11-11 11:38:25,235 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f3778a1e-253f-4f26-aa1d-763c407aa9c3 2024-11-11 11:38:25,249 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/67bd7189-7ef4-4594-bfaf-ecc75c44b802 2024-11-11 11:38:25,258 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/67bd7189-7ef4-4594-bfaf-ecc75c44b802 2024-11-11 11:38:25,269 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/913d0244-951c-4569-b1ed-7b7841b19717 2024-11-11 11:38:25,283 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60018262:ctest-vn-81939381', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60018262', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17543642735523614502', 'uuid-lslong': '12258083761924254147'}, 'enable': 'true', 'created': '2024-11-11T11:38:22', 'last-modified': '2024-11-11T11:38:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.543011'} 2024-11-11 11:38:25,292 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-11 11:38:25,292 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81939381 passed 2024-11-11 11:38:25,292 - DEBUG - ====Verifying policy data for ctest-vn-81939381 in API_Server ====== 2024-11-11 11:38:25,292 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-11-11 11:38:25,298 - DEBUG - Requesting: http://10.0.0.42:8082/domain/ee4434e3-7e57-4ca4-aff2-60cffa6a39ef 2024-11-11 11:38:25,312 - DEBUG - Requesting: http://10.0.0.42:8082/project/740ab96f-c2fc-4798-8e12-c7089a1b891c 2024-11-11 11:38:25,401 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f3778a1e-253f-4f26-aa1d-763c407aa9c3 2024-11-11 11:38:25,417 - DEBUG - ==>Verifying data for policy with id: 75ac8454-f321-49f7-a01d-ed91e42f9043, fqn: ['default-domain', 'ctest-TestBasicPolicy-60018262', 'ctest-policy-allow-all-15135583'] 2024-11-11 11:38:25,417 - INFO - VN ctest-vn-81939381 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-11 11:38:25,417 - DEBUG - Verifying the vn in opserver 2024-11-11 11:38:25,417 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60018262:ctest-vn-81939381 virtual network link through opserver 10.0.0.42 2024-11-11 11:38:25,417 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-11-11 11:38:25,429 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60018262:ctest-vn-81939381', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60018262:ctest-vn-81939381?flat'} 2024-11-11 11:38:25,429 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60018262:ctest-vn-81939381 is found in opserver 2024-11-11 11:38:25,441 - DEBUG - Do not have enough data to verify VN in agent 2024-11-11 11:38:25,446 - DEBUG - VRF ids for VN ctest-vn-81939381: {} 2024-11-11 11:38:25,504 - DEBUG - Services list from nova: [, , ] 2024-11-11 11:38:26,666 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2276-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2276-1) 2024-11-11 11:38:27,910 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2276-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2276-1) 2024-11-11 11:38:27,911 - INFO - Waiting for VM ctest-TestBasicPolicy-60018262-18031132 to be up.. 2024-11-11 11:38:28,003 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-11 11:38:33,094 - DEBUG - VM is in ACTIVE state now 2024-11-11 11:38:33,094 - INFO - VM name : ctest-TestBasicPolicy-60018262-18031132 2024-11-11 11:38:33,181 - DEBUG - VM ctest-TestBasicPolicy-60018262-18031132 ID is a5607d2a-8438-4781-8de8-4cb916408dab 2024-11-11 11:38:33,200 - DEBUG - VM ctest-TestBasicPolicy-60018262-18031132 launched on Node cn-jenkins-deploy-platform-ansible-os-2276-1 2024-11-11 11:38:33,286 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/a5607d2a-8438-4781-8de8-4cb916408dab 2024-11-11 11:38:33,296 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/65da2867-ad62-47bd-84b2-282b76013df2 2024-11-11 11:38:36,587 - 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-11 11:38:36,587 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-60018262-18031132 failed! 2024-11-11 11:38:36,648 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-60018262:ctest-vn-20260611 is 182.38.214.1 and allocation pool is NOT set 2024-11-11 11:38:38,711 - 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=4.50 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.74 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.739/3.117/4.496/1.378 ms') 2024-11-11 11:38:38,711 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-60018262-18031132 passed 2024-11-11 11:38:38,868 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-11 11:38:38,868 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-60018262-18031132, IP 182.38.214.3, Port 22 2024-11-11 11:38:39,024 - DEBUG - VM ctest-TestBasicPolicy-60018262-18031132 is ready for SSH connections 2024-11-11 11:38:39,024 - INFO - Waiting for VM ctest-TestBasicPolicy-60018262-70703337 to be up.. 2024-11-11 11:38:39,101 - DEBUG - VM is in ACTIVE state now 2024-11-11 11:38:39,101 - INFO - VM name : ctest-TestBasicPolicy-60018262-70703337 2024-11-11 11:38:39,176 - DEBUG - VM ctest-TestBasicPolicy-60018262-70703337 ID is 6a85fec5-8847-4a66-9579-86e42d128d2b 2024-11-11 11:38:39,176 - DEBUG - VM ctest-TestBasicPolicy-60018262-70703337 launched on Node cn-jenkins-deploy-platform-ansible-os-2276-1 2024-11-11 11:38:39,253 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/6a85fec5-8847-4a66-9579-86e42d128d2b 2024-11-11 11:38:39,262 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/5d06f5cb-9003-4113-b3d9-d11fa036ad86 2024-11-11 11:38:40,506 - 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.11 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.487 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.487/1.796/3.105/1.309 ms') 2024-11-11 11:38:40,506 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-60018262-70703337 passed 2024-11-11 11:38:40,668 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-11 11:38:40,668 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-60018262-70703337, IP 96.61.161.131, Port 22 2024-11-11 11:38:40,842 - DEBUG - VM ctest-TestBasicPolicy-60018262-70703337 is ready for SSH connections 2024-11-11 11:38:40,842 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-11 11:38:40,842 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 96.61.161.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2024-11-11 11:38:40,842 - DEBUG - ping -s 56 -c 3 -W 1 96.61.161.131 2024-11-11 11:38:44,828 - DEBUG - PING 96.61.161.131 (96.61.161.131): 56 data bytes 64 bytes from 96.61.161.131: seq=0 ttl=63 time=4.055 ms 64 bytes from 96.61.161.131: seq=1 ttl=63 time=0.892 ms 64 bytes from 96.61.161.131: seq=2 ttl=63 time=1.000 ms --- 96.61.161.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.892/1.982/4.055 ms 2024-11-11 11:38:44,829 - INFO - Ping to IP 96.61.161.131 from VM ctest-TestBasicPolicy-60018262-18031132 passed 2024-11-11 11:38:45,020 - DEBUG - Policy Update Response {"network-policy": {"uuid": "75ac8454-f321-49f7-a01d-ed91e42f9043", "href": "http://10.0.0.42:8082/network-policy/75ac8454-f321-49f7-a01d-ed91e42f9043"}} 2024-11-11 11:38:45,020 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-11 11:38:45,020 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 96.61.161.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2024-11-11 11:38:45,020 - DEBUG - ping -s 56 -c 3 -W 1 96.61.161.131 2024-11-11 11:38:48,226 - DEBUG - PING 96.61.161.131 (96.61.161.131): 56 data bytes 64 bytes from 96.61.161.131: seq=0 ttl=63 time=1.539 ms --- 96.61.161.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.539/1.539/1.539 ms 2024-11-11 11:38:48,226 - WARNING - Ping to IP 96.61.161.131 from VM ctest-TestBasicPolicy-60018262-18031132 failed 2024-11-11 11:38:48,226 - INFO - Deleting VM ctest-TestBasicPolicy-60018262-70703337 2024-11-11 11:38:48,292 - INFO - Deleting VM ctest-TestBasicPolicy-60018262-18031132 2024-11-11 11:38:48,748 - INFO - Deleted policy ctest-policy-allow-all-15135583 2024-11-11 11:38:48,749 - INFO - Deleting VN ctest-vn-81939381 2024-11-11 11:38:48,806 - DEBUG - VN f3778a1e-253f-4f26-aa1d-763c407aa9c3 still in use: Unable to complete operation on network f3778a1e-253f-4f26-aa1d-763c407aa9c3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ad46614b-93c4-4871-924b-3b86c980665b'] 2024-11-11 11:38:48,806 - WARNING - Deleting VN ctest-vn-81939381 failed..Will retry 2024-11-11 11:38:50,928 - DEBUG - Response for deleting network () 2024-11-11 11:38:50,928 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/67bd7189-7ef4-4594-bfaf-ecc75c44b802 2024-11-11 11:38:50,933 - DEBUG - Response Code: 404 2024-11-11 11:38:50,934 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-11-11 11:38:50,939 - DEBUG - Requesting: http://10.0.0.42:8082/domain/ee4434e3-7e57-4ca4-aff2-60cffa6a39ef 2024-11-11 11:38:50,994 - DEBUG - Requesting: http://10.0.0.42:8082/project/740ab96f-c2fc-4798-8e12-c7089a1b891c 2024-11-11 11:38:51,077 - INFO - Validated that VN ctest-vn-81939381 is not found in API Server 2024-11-11 11:38:51,089 - DEBUG - VN ctest-vn-81939381 is not present in Agent 10.0.0.42 2024-11-11 11:38:51,089 - INFO - Validated that VN ctest-vn-81939381 is not in any agent 2024-11-11 11:38:51,107 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-81939381 info 2024-11-11 11:38:51,108 - INFO - Deleting VN ctest-vn-20260611 2024-11-11 11:38:51,220 - DEBUG - Response for deleting network () 2024-11-11 11:38:51,220 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/ab2c2a4c-ed36-4b68-b5eb-5870bb9ce480 2024-11-11 11:38:51,227 - DEBUG - Response Code: 404 2024-11-11 11:38:51,227 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-11-11 11:38:51,232 - DEBUG - Requesting: http://10.0.0.42:8082/domain/ee4434e3-7e57-4ca4-aff2-60cffa6a39ef 2024-11-11 11:38:51,291 - DEBUG - Requesting: http://10.0.0.42:8082/project/740ab96f-c2fc-4798-8e12-c7089a1b891c 2024-11-11 11:38:51,371 - INFO - Validated that VN ctest-vn-20260611 is not found in API Server 2024-11-11 11:38:51,384 - DEBUG - VN ctest-vn-20260611 is not present in Agent 10.0.0.42 2024-11-11 11:38:51,384 - INFO - Validated that VN ctest-vn-20260611 is not in any agent 2024-11-11 11:38:51,400 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-20260611 info 2024-11-11 11:38:51,660 - DEBUG - No XMPP flaps were noticed during the test
2024-11-11 11:38:51,660 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-11-11 11:38:51,660 - INFO - -------------------------------------------------------------------------------- 2024-11-11 11:38:52,392 - INFO - Deleted project: ctest-TestBasicPolicy-60018262, ID : 740ab96f-c2fc-4798-8e12-c7089a1b891c