2025-05-06 11:37:47,760 - INFO - Domain Default found not creating 2025-05-06 11:37:47,875 - INFO - Project ctest-TestBasicPolicy-54967965 not found, creating it 2025-05-06 11:37:48,381 - INFO - Created Project:ctest-TestBasicPolicy-54967965, ID : 80fe83fe-42dc-4f0c-8e0d-0f7a296914c8 2025-05-06 11:37:49,739 - INFO - ================================================================================ 2025-05-06 11:37:49,739 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-05-06 11:37:49,739 - 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 2025-05-06 11:37:50,002 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.254': '0'}} with 2025-05-06 11:37:50,002 - INFO - Initial checks done. Running the testcase now 2025-05-06 11:37:50,002 - INFO - 2025-05-06 11:37:50,515 - DEBUG - Response for create_network : {'network': {'id': '7c116935-b27a-4c6d-b4d0-b9cdd8caa098', 'name': 'ctest-vn-09556020', 'tenant_id': '80fe83fe42dc4f0c8e0d0f7a296914c8', 'project_id': '80fe83fe42dc4f0c8e0d0f7a296914c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54967965', 'ctest-vn-09556020'], 'port_security_enabled': True, 'description': ''}} 2025-05-06 11:37:50,687 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e3d3c7b-7285-4d51-8bb5-a0e0282b4b14', 'name': '', 'tenant_id': '80fe83fe42dc4f0c8e0d0f7a296914c8', 'network_id': '7c116935-b27a-4c6d-b4d0-b9cdd8caa098', 'ip_version': 4, 'cidr': '2.110.75.0/26', 'allocation_pools': [{'start': '2.110.75.2', 'end': '2.110.75.62'}], 'gateway_ip': '2.110.75.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.110.75.2', 'tags': [], 'project_id': '80fe83fe42dc4f0c8e0d0f7a296914c8'}} 2025-05-06 11:37:50,703 - INFO - Created VN ctest-vn-09556020 2025-05-06 11:37:50,753 - DEBUG - VN ctest-vn-09556020 UUID is 7c116935-b27a-4c6d-b4d0-b9cdd8caa098 2025-05-06 11:37:51,046 - DEBUG - Response for create_network : {'network': {'id': 'a6605834-430c-4c05-b297-7fdbcb63358a', 'name': 'ctest-vn-21948071', 'tenant_id': '80fe83fe42dc4f0c8e0d0f7a296914c8', 'project_id': '80fe83fe42dc4f0c8e0d0f7a296914c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54967965', 'ctest-vn-21948071'], 'port_security_enabled': True, 'description': ''}} 2025-05-06 11:37:51,226 - DEBUG - Response for create_subnet : {'subnet': {'id': '96cd2731-6ab5-4044-a4cc-3d9ccce348da', 'name': '', 'tenant_id': '80fe83fe42dc4f0c8e0d0f7a296914c8', 'network_id': 'a6605834-430c-4c05-b297-7fdbcb63358a', 'ip_version': 4, 'cidr': '166.70.71.0/26', 'allocation_pools': [{'start': '166.70.71.2', 'end': '166.70.71.62'}], 'gateway_ip': '166.70.71.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.70.71.2', 'tags': [], 'project_id': '80fe83fe42dc4f0c8e0d0f7a296914c8'}} 2025-05-06 11:37:51,241 - INFO - Created VN ctest-vn-21948071 2025-05-06 11:37:51,297 - DEBUG - VN ctest-vn-21948071 UUID is a6605834-430c-4c05-b297-7fdbcb63358a 2025-05-06 11:37:51,521 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54967965:ctest-vn-09556020, 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-54967965:ctest-vn-21948071, 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] 2025-05-06 11:37:51,805 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7c116935-b27a-4c6d-b4d0-b9cdd8caa098', 'name': 'ctest-vn-09556020', 'tenant_id': '80fe83fe42dc4f0c8e0d0f7a296914c8', 'project_id': '80fe83fe42dc4f0c8e0d0f7a296914c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4e3d3c7b-7285-4d51-8bb5-a0e0282b4b14'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54967965', 'ctest-vn-09556020'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54967965', 'ctest-policy-allow-all-92069437']], 'subnet_ipam': [{'subnet_cidr': '2.110.75.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-06 11:37:52,048 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a6605834-430c-4c05-b297-7fdbcb63358a', 'name': 'ctest-vn-21948071', 'tenant_id': '80fe83fe42dc4f0c8e0d0f7a296914c8', 'project_id': '80fe83fe42dc4f0c8e0d0f7a296914c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['96cd2731-6ab5-4044-a4cc-3d9ccce348da'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54967965', 'ctest-vn-21948071'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54967965', 'ctest-policy-allow-all-92069437']], 'subnet_ipam': [{'subnet_cidr': '166.70.71.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-06 11:37:52,205 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-05-06 11:37:52,501 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-05-06 11:37:52,526 - DEBUG - Requesting: http://10.0.0.56:8082/domain/bee18e44-c6f4-430d-9162-eb0992cd3a63 2025-05-06 11:37:52,538 - DEBUG - Requesting: http://10.0.0.56:8082/project/80fe83fe-42dc-4f0c-8e0d-0f7a296914c8 2025-05-06 11:37:52,613 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/7c116935-b27a-4c6d-b4d0-b9cdd8caa098 2025-05-06 11:37:52,624 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/7c116935-b27a-4c6d-b4d0-b9cdd8caa098 2025-05-06 11:37:52,633 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/a5eca8cb-d926-41bd-8d5e-c50fb11d08c6 2025-05-06 11:37:52,639 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/a5eca8cb-d926-41bd-8d5e-c50fb11d08c6 2025-05-06 11:37:52,645 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/69181dc3-8051-45ef-8663-fd5ca78a171c 2025-05-06 11:37:52,650 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-06 11:37:52,650 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/7c116935-b27a-4c6d-b4d0-b9cdd8caa098 2025-05-06 11:37:52,658 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/a5eca8cb-d926-41bd-8d5e-c50fb11d08c6 2025-05-06 11:37:52,671 - INFO - Verified VN network id 8 for VN 7c116935-b27a-4c6d-b4d0-b9cdd8caa098 2025-05-06 11:37:52,671 - INFO - Verifications in API Server for VN ctest-vn-09556020 passed 2025-05-06 11:37:52,671 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/7c116935-b27a-4c6d-b4d0-b9cdd8caa098 2025-05-06 11:37:52,679 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/a5eca8cb-d926-41bd-8d5e-c50fb11d08c6 2025-05-06 11:37:52,685 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/a5eca8cb-d926-41bd-8d5e-c50fb11d08c6 2025-05-06 11:37:52,690 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/69181dc3-8051-45ef-8663-fd5ca78a171c 2025-05-06 11:37:52,701 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54967965:ctest-vn-09556020', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54967965', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8940042414655687789', 'uuid-lslong': '13029118015739437208'}, 'enable': 'true', 'created': '2025-05-06T11:37:50', 'last-modified': '2025-05-06T11:37:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.915572'} 2025-05-06 11:37:52,707 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-06 11:37:52,707 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09556020 passed 2025-05-06 11:37:52,707 - DEBUG - ====Verifying policy data for ctest-vn-09556020 in API_Server ====== 2025-05-06 11:37:52,707 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-05-06 11:37:52,711 - DEBUG - Requesting: http://10.0.0.56:8082/domain/bee18e44-c6f4-430d-9162-eb0992cd3a63 2025-05-06 11:37:52,723 - DEBUG - Requesting: http://10.0.0.56:8082/project/80fe83fe-42dc-4f0c-8e0d-0f7a296914c8 2025-05-06 11:37:52,807 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/7c116935-b27a-4c6d-b4d0-b9cdd8caa098 2025-05-06 11:37:52,816 - DEBUG - ==>Verifying data for policy with id: 5394f92d-4035-400f-9811-73b5f9f48f3f, fqn: ['default-domain', 'ctest-TestBasicPolicy-54967965', 'ctest-policy-allow-all-92069437'] 2025-05-06 11:37:52,816 - INFO - VN ctest-vn-09556020 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-06 11:37:52,817 - DEBUG - Verifying the vn in opserver 2025-05-06 11:37:52,817 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54967965:ctest-vn-09556020 virtual network link through opserver 10.0.0.56 2025-05-06 11:37:52,817 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-05-06 11:37:53,118 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-05-06 11:37:53,166 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54967965:ctest-vn-09556020', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54967965:ctest-vn-09556020?flat'} 2025-05-06 11:37:53,166 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54967965:ctest-vn-09556020 is found in opserver 2025-05-06 11:37:53,177 - DEBUG - Do not have enough data to verify VN in agent 2025-05-06 11:37:53,181 - DEBUG - VRF ids for VN ctest-vn-09556020: {} 2025-05-06 11:37:53,181 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-05-06 11:37:53,187 - DEBUG - Requesting: http://10.0.0.56:8082/domain/bee18e44-c6f4-430d-9162-eb0992cd3a63 2025-05-06 11:37:53,197 - DEBUG - Requesting: http://10.0.0.56:8082/project/80fe83fe-42dc-4f0c-8e0d-0f7a296914c8 2025-05-06 11:37:53,268 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/a6605834-430c-4c05-b297-7fdbcb63358a 2025-05-06 11:37:53,278 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/a6605834-430c-4c05-b297-7fdbcb63358a 2025-05-06 11:37:53,287 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/f8f8fc57-cc53-414d-82c6-3985e29db30c 2025-05-06 11:37:53,293 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/f8f8fc57-cc53-414d-82c6-3985e29db30c 2025-05-06 11:37:53,299 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/15d88289-b760-400a-a802-5d3babc28626 2025-05-06 11:37:53,305 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-06 11:37:53,305 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/a6605834-430c-4c05-b297-7fdbcb63358a 2025-05-06 11:37:53,313 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/f8f8fc57-cc53-414d-82c6-3985e29db30c 2025-05-06 11:37:53,324 - INFO - Verified VN network id 9 for VN a6605834-430c-4c05-b297-7fdbcb63358a 2025-05-06 11:37:53,324 - INFO - Verifications in API Server for VN ctest-vn-21948071 passed 2025-05-06 11:37:53,324 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/a6605834-430c-4c05-b297-7fdbcb63358a 2025-05-06 11:37:53,333 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/f8f8fc57-cc53-414d-82c6-3985e29db30c 2025-05-06 11:37:53,338 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/f8f8fc57-cc53-414d-82c6-3985e29db30c 2025-05-06 11:37:53,344 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/15d88289-b760-400a-a802-5d3babc28626 2025-05-06 11:37:53,355 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54967965:ctest-vn-21948071', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54967965', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11988679189546683397', 'uuid-lslong': '12868895042221323658'}, 'enable': 'true', 'created': '2025-05-06T11:37:51', 'last-modified': '2025-05-06T11:37:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.344665'} 2025-05-06 11:37:53,361 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-06 11:37:53,361 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21948071 passed 2025-05-06 11:37:53,361 - DEBUG - ====Verifying policy data for ctest-vn-21948071 in API_Server ====== 2025-05-06 11:37:53,361 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-05-06 11:37:53,366 - DEBUG - Requesting: http://10.0.0.56:8082/domain/bee18e44-c6f4-430d-9162-eb0992cd3a63 2025-05-06 11:37:53,376 - DEBUG - Requesting: http://10.0.0.56:8082/project/80fe83fe-42dc-4f0c-8e0d-0f7a296914c8 2025-05-06 11:37:53,443 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/a6605834-430c-4c05-b297-7fdbcb63358a 2025-05-06 11:37:53,452 - DEBUG - ==>Verifying data for policy with id: 5394f92d-4035-400f-9811-73b5f9f48f3f, fqn: ['default-domain', 'ctest-TestBasicPolicy-54967965', 'ctest-policy-allow-all-92069437'] 2025-05-06 11:37:53,452 - INFO - VN ctest-vn-21948071 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-06 11:37:53,452 - DEBUG - Verifying the vn in opserver 2025-05-06 11:37:53,452 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54967965:ctest-vn-21948071 virtual network link through opserver 10.0.0.56 2025-05-06 11:37:53,452 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-05-06 11:37:53,461 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54967965:ctest-vn-21948071', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54967965:ctest-vn-21948071?flat'} 2025-05-06 11:37:53,462 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54967965:ctest-vn-21948071 is found in opserver 2025-05-06 11:37:53,471 - DEBUG - Do not have enough data to verify VN in agent 2025-05-06 11:37:53,476 - DEBUG - VRF ids for VN ctest-vn-21948071: {} 2025-05-06 11:37:53,524 - DEBUG - Services list from nova: [, , ] 2025-05-06 11:37:54,462 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3278-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3278-1) 2025-05-06 11:37:55,590 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3278-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3278-1) 2025-05-06 11:37:55,590 - INFO - Waiting for VM ctest-TestBasicPolicy-54967965-74688695 to be up.. 2025-05-06 11:37:55,664 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-05-06 11:38:00,732 - DEBUG - VM is in ACTIVE state now 2025-05-06 11:38:00,732 - INFO - VM name : ctest-TestBasicPolicy-54967965-74688695 2025-05-06 11:38:00,798 - DEBUG - VM ctest-TestBasicPolicy-54967965-74688695 ID is 2eea4927-f993-4071-bc00-dcf137066f74 2025-05-06 11:38:00,815 - DEBUG - VM ctest-TestBasicPolicy-54967965-74688695 launched on Node cn-jenkins-deploy-platform-ansible-os-3278-1 2025-05-06 11:38:00,885 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine/2eea4927-f993-4071-bc00-dcf137066f74 2025-05-06 11:38:00,893 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine-interface/56426fab-8514-4c19-9d49-a5ff762cc857 2025-05-06 11:38:04,147 - 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 1016ms') 2025-05-06 11:38:04,147 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-54967965-74688695 failed! 2025-05-06 11:38:04,201 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-54967965:ctest-vn-09556020 is 2.110.75.1 and allocation pool is NOT set 2025-05-06 11:38:06,261 - 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.13 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.448 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.448/1.789/3.130/1.341 ms') 2025-05-06 11:38:06,261 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-54967965-74688695 passed 2025-05-06 11:38:06,413 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-06 11:38:06,413 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-54967965-74688695, IP 2.110.75.3, Port 22 2025-05-06 11:38:06,564 - DEBUG - VM ctest-TestBasicPolicy-54967965-74688695 is ready for SSH connections 2025-05-06 11:38:06,565 - INFO - Waiting for VM ctest-TestBasicPolicy-54967965-86509221 to be up.. 2025-05-06 11:38:06,632 - DEBUG - VM is in ACTIVE state now 2025-05-06 11:38:06,632 - INFO - VM name : ctest-TestBasicPolicy-54967965-86509221 2025-05-06 11:38:06,692 - DEBUG - VM ctest-TestBasicPolicy-54967965-86509221 ID is 6ce926c6-0a0f-4c42-83ea-21af340ac847 2025-05-06 11:38:06,692 - DEBUG - VM ctest-TestBasicPolicy-54967965-86509221 launched on Node cn-jenkins-deploy-platform-ansible-os-3278-1 2025-05-06 11:38:06,753 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine/6ce926c6-0a0f-4c42-83ea-21af340ac847 2025-05-06 11:38:06,761 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine-interface/dc3f43f5-e09c-419f-aebd-86c0fccc15cd 2025-05-06 11:38:07,987 - 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.87 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.427 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.427/1.648/2.869/1.221 ms') 2025-05-06 11:38:07,987 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-54967965-86509221 passed 2025-05-06 11:38:08,133 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-06 11:38:08,133 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-54967965-86509221, IP 166.70.71.3, Port 22 2025-05-06 11:38:08,289 - DEBUG - VM ctest-TestBasicPolicy-54967965-86509221 is ready for SSH connections 2025-05-06 11:38:08,289 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-06 11:38:08,289 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 166.70.71.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.56, gateway password: c0ntrail123 2025-05-06 11:38:08,289 - DEBUG - ping -s 56 -c 3 -W 1 166.70.71.3 2025-05-06 11:38:11,963 - DEBUG - PING 166.70.71.3 (166.70.71.3): 56 data bytes 64 bytes from 166.70.71.3: seq=0 ttl=63 time=3.462 ms 64 bytes from 166.70.71.3: seq=1 ttl=63 time=0.699 ms 64 bytes from 166.70.71.3: seq=2 ttl=63 time=0.790 ms --- 166.70.71.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.699/1.650/3.462 ms 2025-05-06 11:38:11,963 - INFO - Ping to IP 166.70.71.3 from VM ctest-TestBasicPolicy-54967965-74688695 passed 2025-05-06 11:38:12,149 - DEBUG - Policy Update Response {"network-policy": {"uuid": "5394f92d-4035-400f-9811-73b5f9f48f3f", "href": "http://10.0.0.56:8082/network-policy/5394f92d-4035-400f-9811-73b5f9f48f3f"}} 2025-05-06 11:38:12,149 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-06 11:38:12,149 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 166.70.71.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.56, gateway password: c0ntrail123 2025-05-06 11:38:12,149 - DEBUG - ping -s 56 -c 3 -W 1 166.70.71.3 2025-05-06 11:38:15,344 - DEBUG - PING 166.70.71.3 (166.70.71.3): 56 data bytes --- 166.70.71.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-06 11:38:15,344 - WARNING - Ping to IP 166.70.71.3 from VM ctest-TestBasicPolicy-54967965-74688695 failed 2025-05-06 11:38:15,344 - INFO - Deleting VM ctest-TestBasicPolicy-54967965-86509221 2025-05-06 11:38:15,401 - INFO - Deleting VM ctest-TestBasicPolicy-54967965-74688695 2025-05-06 11:38:15,773 - INFO - Deleted policy ctest-policy-allow-all-92069437 2025-05-06 11:38:15,773 - INFO - Deleting VN ctest-vn-21948071 2025-05-06 11:38:15,804 - DEBUG - VN a6605834-430c-4c05-b297-7fdbcb63358a still in use: Unable to complete operation on network a6605834-430c-4c05-b297-7fdbcb63358a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-95709138-0b3b-44a6-b992-6fb440a0b9ce'] 2025-05-06 11:38:15,805 - WARNING - Deleting VN ctest-vn-21948071 failed..Will retry 2025-05-06 11:38:17,897 - DEBUG - Response for deleting network () 2025-05-06 11:38:17,897 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/f8f8fc57-cc53-414d-82c6-3985e29db30c 2025-05-06 11:38:17,902 - DEBUG - Response Code: 404 2025-05-06 11:38:17,902 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-05-06 11:38:17,910 - DEBUG - Requesting: http://10.0.0.56:8082/domain/bee18e44-c6f4-430d-9162-eb0992cd3a63 2025-05-06 11:38:17,966 - DEBUG - Requesting: http://10.0.0.56:8082/project/80fe83fe-42dc-4f0c-8e0d-0f7a296914c8 2025-05-06 11:38:18,033 - INFO - Validated that VN ctest-vn-21948071 is not found in API Server 2025-05-06 11:38:18,043 - DEBUG - VN ctest-vn-21948071 is not present in Agent 10.0.0.56 2025-05-06 11:38:18,043 - INFO - Validated that VN ctest-vn-21948071 is not in any agent 2025-05-06 11:38:18,058 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-21948071 info 2025-05-06 11:38:18,058 - INFO - Deleting VN ctest-vn-09556020 2025-05-06 11:38:18,149 - DEBUG - Response for deleting network () 2025-05-06 11:38:18,149 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/a5eca8cb-d926-41bd-8d5e-c50fb11d08c6 2025-05-06 11:38:18,155 - DEBUG - Response Code: 404 2025-05-06 11:38:18,155 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-05-06 11:38:18,165 - DEBUG - Requesting: http://10.0.0.56:8082/domain/bee18e44-c6f4-430d-9162-eb0992cd3a63 2025-05-06 11:38:18,218 - DEBUG - Requesting: http://10.0.0.56:8082/project/80fe83fe-42dc-4f0c-8e0d-0f7a296914c8 2025-05-06 11:38:18,292 - INFO - Validated that VN ctest-vn-09556020 is not found in API Server 2025-05-06 11:38:18,302 - DEBUG - VN ctest-vn-09556020 is not present in Agent 10.0.0.56 2025-05-06 11:38:18,302 - INFO - Validated that VN ctest-vn-09556020 is not in any agent 2025-05-06 11:38:18,316 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-09556020 info 2025-05-06 11:38:18,574 - DEBUG - No XMPP flaps were noticed during the test
2025-05-06 11:38:18,574 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:29]
2025-05-06 11:38:18,574 - INFO - -------------------------------------------------------------------------------- 2025-05-06 11:38:19,234 - INFO - Deleted project: ctest-TestBasicPolicy-54967965, ID : 80fe83fe-42dc-4f0c-8e0d-0f7a296914c8