2025-04-03 16:51:33,882 - INFO - Domain Default found not creating 2025-04-03 16:51:34,057 - INFO - Project ctest-TestBasicPolicy-89154005 not found, creating it 2025-04-03 16:51:34,606 - INFO - Created Project:ctest-TestBasicPolicy-89154005, ID : ee9e0aa6-9bdf-4d83-b7e6-0e50e0589fba 2025-04-03 16:51:36,293 - INFO - ================================================================================ 2025-04-03 16:51:36,293 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-03 16:51:36,293 - 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-04-03 16:51:36,575 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.10': '0'}} with 2025-04-03 16:51:36,575 - INFO - Initial checks done. Running the testcase now 2025-04-03 16:51:36,575 - INFO - 2025-04-03 16:51:37,198 - DEBUG - Response for create_network : {'network': {'id': '4bae0a9d-fac5-4fd4-a23b-26533686e448', 'name': 'ctest-vn-57344675', 'tenant_id': 'ee9e0aa69bdf4d83b7e60e50e0589fba', 'project_id': 'ee9e0aa69bdf4d83b7e60e50e0589fba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89154005', 'ctest-vn-57344675'], 'port_security_enabled': True, 'description': ''}} 2025-04-03 16:51:37,402 - DEBUG - Response for create_subnet : {'subnet': {'id': 'db3c5238-83d0-4315-9199-ef560de31481', 'name': '', 'tenant_id': 'ee9e0aa69bdf4d83b7e60e50e0589fba', 'network_id': '4bae0a9d-fac5-4fd4-a23b-26533686e448', 'ip_version': 4, 'cidr': '171.175.134.192/26', 'allocation_pools': [{'start': '171.175.134.194', 'end': '171.175.134.254'}], 'gateway_ip': '171.175.134.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.175.134.194', 'tags': [], 'project_id': 'ee9e0aa69bdf4d83b7e60e50e0589fba'}} 2025-04-03 16:51:37,422 - INFO - Created VN ctest-vn-57344675 2025-04-03 16:51:37,477 - DEBUG - VN ctest-vn-57344675 UUID is 4bae0a9d-fac5-4fd4-a23b-26533686e448 2025-04-03 16:51:37,788 - DEBUG - Response for create_network : {'network': {'id': 'fdfee521-5a15-4968-93e2-0a30d4370b67', 'name': 'ctest-vn-12654525', 'tenant_id': 'ee9e0aa69bdf4d83b7e60e50e0589fba', 'project_id': 'ee9e0aa69bdf4d83b7e60e50e0589fba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89154005', 'ctest-vn-12654525'], 'port_security_enabled': True, 'description': ''}} 2025-04-03 16:51:38,024 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd7b86904-e692-493e-a354-a06ad3b0717c', 'name': '', 'tenant_id': 'ee9e0aa69bdf4d83b7e60e50e0589fba', 'network_id': 'fdfee521-5a15-4968-93e2-0a30d4370b67', 'ip_version': 4, 'cidr': '138.105.39.0/26', 'allocation_pools': [{'start': '138.105.39.2', 'end': '138.105.39.62'}], 'gateway_ip': '138.105.39.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '138.105.39.2', 'tags': [], 'project_id': 'ee9e0aa69bdf4d83b7e60e50e0589fba'}} 2025-04-03 16:51:38,042 - INFO - Created VN ctest-vn-12654525 2025-04-03 16:51:38,097 - DEBUG - VN ctest-vn-12654525 UUID is fdfee521-5a15-4968-93e2-0a30d4370b67 2025-04-03 16:51:38,227 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89154005:ctest-vn-57344675, 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-89154005:ctest-vn-12654525, 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-04-03 16:51:38,535 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4bae0a9d-fac5-4fd4-a23b-26533686e448', 'name': 'ctest-vn-57344675', 'tenant_id': 'ee9e0aa69bdf4d83b7e60e50e0589fba', 'project_id': 'ee9e0aa69bdf4d83b7e60e50e0589fba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['db3c5238-83d0-4315-9199-ef560de31481'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89154005', 'ctest-vn-57344675'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89154005', 'ctest-policy-allow-all-41272777']], 'subnet_ipam': [{'subnet_cidr': '171.175.134.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-03 16:51:38,871 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fdfee521-5a15-4968-93e2-0a30d4370b67', 'name': 'ctest-vn-12654525', 'tenant_id': 'ee9e0aa69bdf4d83b7e60e50e0589fba', 'project_id': 'ee9e0aa69bdf4d83b7e60e50e0589fba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d7b86904-e692-493e-a354-a06ad3b0717c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89154005', 'ctest-vn-12654525'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89154005', 'ctest-policy-allow-all-41272777']], 'subnet_ipam': [{'subnet_cidr': '138.105.39.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-03 16:51:39,037 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2025-04-03 16:51:39,341 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2025-04-03 16:51:39,379 - DEBUG - Requesting: http://10.0.0.31:8082/domain/a99a4786-bfe3-4e87-b868-c4f67e81a60f 2025-04-03 16:51:39,396 - DEBUG - Requesting: http://10.0.0.31:8082/project/ee9e0aa6-9bdf-4d83-b7e6-0e50e0589fba 2025-04-03 16:51:39,476 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/4bae0a9d-fac5-4fd4-a23b-26533686e448 2025-04-03 16:51:39,492 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/4bae0a9d-fac5-4fd4-a23b-26533686e448 2025-04-03 16:51:39,505 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/02df1d8b-4d20-462c-84e8-4416b1fe6abb 2025-04-03 16:51:39,514 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/02df1d8b-4d20-462c-84e8-4416b1fe6abb 2025-04-03 16:51:39,523 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/247ca330-7ab9-4cc1-98c2-f7ab40f6f772 2025-04-03 16:51:39,532 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-04-03 16:51:39,532 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/4bae0a9d-fac5-4fd4-a23b-26533686e448 2025-04-03 16:51:39,544 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/02df1d8b-4d20-462c-84e8-4416b1fe6abb 2025-04-03 16:51:39,564 - INFO - Verified VN network id 9 for VN 4bae0a9d-fac5-4fd4-a23b-26533686e448 2025-04-03 16:51:39,564 - INFO - Verifications in API Server for VN ctest-vn-57344675 passed 2025-04-03 16:51:39,565 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/4bae0a9d-fac5-4fd4-a23b-26533686e448 2025-04-03 16:51:39,577 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/02df1d8b-4d20-462c-84e8-4416b1fe6abb 2025-04-03 16:51:39,587 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/02df1d8b-4d20-462c-84e8-4416b1fe6abb 2025-04-03 16:51:39,596 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/247ca330-7ab9-4cc1-98c2-f7ab40f6f772 2025-04-03 16:51:39,612 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89154005:ctest-vn-57344675', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89154005', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5453307872425627604', 'uuid-lslong': '11689979396609205320'}, 'enable': 'true', 'created': '2025-04-03T16:51:37', 'last-modified': '2025-04-03T16:51:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.105508'} 2025-04-03 16:51:39,619 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-04-03 16:51:39,620 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57344675 passed 2025-04-03 16:51:39,620 - DEBUG - ====Verifying policy data for ctest-vn-57344675 in API_Server ====== 2025-04-03 16:51:39,620 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2025-04-03 16:51:39,627 - DEBUG - Requesting: http://10.0.0.31:8082/domain/a99a4786-bfe3-4e87-b868-c4f67e81a60f 2025-04-03 16:51:39,640 - DEBUG - Requesting: http://10.0.0.31:8082/project/ee9e0aa6-9bdf-4d83-b7e6-0e50e0589fba 2025-04-03 16:51:39,716 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/4bae0a9d-fac5-4fd4-a23b-26533686e448 2025-04-03 16:51:39,726 - DEBUG - ==>Verifying data for policy with id: b7e6bcc9-9857-42c9-87d5-7241cf28fbb6, fqn: ['default-domain', 'ctest-TestBasicPolicy-89154005', 'ctest-policy-allow-all-41272777'] 2025-04-03 16:51:39,727 - INFO - VN ctest-vn-57344675 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-03 16:51:39,727 - DEBUG - Verifying the vn in opserver 2025-04-03 16:51:39,727 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89154005:ctest-vn-57344675 virtual network link through opserver 10.0.0.31 2025-04-03 16:51:39,727 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2025-04-03 16:51:40,026 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2025-04-03 16:51:40,105 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89154005:ctest-vn-57344675', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89154005:ctest-vn-57344675?flat'} 2025-04-03 16:51:40,105 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89154005:ctest-vn-57344675 is found in opserver 2025-04-03 16:51:40,116 - DEBUG - Do not have enough data to verify VN in agent 2025-04-03 16:51:40,122 - DEBUG - VRF ids for VN ctest-vn-57344675: {} 2025-04-03 16:51:40,122 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2025-04-03 16:51:40,128 - DEBUG - Requesting: http://10.0.0.31:8082/domain/a99a4786-bfe3-4e87-b868-c4f67e81a60f 2025-04-03 16:51:40,142 - DEBUG - Requesting: http://10.0.0.31:8082/project/ee9e0aa6-9bdf-4d83-b7e6-0e50e0589fba 2025-04-03 16:51:40,228 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/fdfee521-5a15-4968-93e2-0a30d4370b67 2025-04-03 16:51:40,246 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/fdfee521-5a15-4968-93e2-0a30d4370b67 2025-04-03 16:51:40,259 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e6ea9f81-7c13-4e7a-8d7d-eb1ffadc269b 2025-04-03 16:51:40,268 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e6ea9f81-7c13-4e7a-8d7d-eb1ffadc269b 2025-04-03 16:51:40,277 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/a112484c-deb6-406f-b4c0-f26df8a89879 2025-04-03 16:51:40,285 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-03 16:51:40,286 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/fdfee521-5a15-4968-93e2-0a30d4370b67 2025-04-03 16:51:40,299 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e6ea9f81-7c13-4e7a-8d7d-eb1ffadc269b 2025-04-03 16:51:40,316 - INFO - Verified VN network id 10 for VN fdfee521-5a15-4968-93e2-0a30d4370b67 2025-04-03 16:51:40,316 - INFO - Verifications in API Server for VN ctest-vn-12654525 passed 2025-04-03 16:51:40,317 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/fdfee521-5a15-4968-93e2-0a30d4370b67 2025-04-03 16:51:40,330 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e6ea9f81-7c13-4e7a-8d7d-eb1ffadc269b 2025-04-03 16:51:40,339 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e6ea9f81-7c13-4e7a-8d7d-eb1ffadc269b 2025-04-03 16:51:40,351 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/a112484c-deb6-406f-b4c0-f26df8a89879 2025-04-03 16:51:40,376 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89154005:ctest-vn-12654525', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89154005', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18302317867088300392', 'uuid-lslong': '10656090873147100007'}, 'enable': 'true', 'created': '2025-04-03T16:51:37', 'last-modified': '2025-04-03T16:51:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.586972'} 2025-04-03 16:51:40,388 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-03 16:51:40,388 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12654525 passed 2025-04-03 16:51:40,388 - DEBUG - ====Verifying policy data for ctest-vn-12654525 in API_Server ====== 2025-04-03 16:51:40,388 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2025-04-03 16:51:40,400 - DEBUG - Requesting: http://10.0.0.31:8082/domain/a99a4786-bfe3-4e87-b868-c4f67e81a60f 2025-04-03 16:51:40,417 - DEBUG - Requesting: http://10.0.0.31:8082/project/ee9e0aa6-9bdf-4d83-b7e6-0e50e0589fba 2025-04-03 16:51:40,518 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/fdfee521-5a15-4968-93e2-0a30d4370b67 2025-04-03 16:51:40,539 - DEBUG - ==>Verifying data for policy with id: b7e6bcc9-9857-42c9-87d5-7241cf28fbb6, fqn: ['default-domain', 'ctest-TestBasicPolicy-89154005', 'ctest-policy-allow-all-41272777'] 2025-04-03 16:51:40,539 - INFO - VN ctest-vn-12654525 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-03 16:51:40,539 - DEBUG - Verifying the vn in opserver 2025-04-03 16:51:40,539 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89154005:ctest-vn-12654525 virtual network link through opserver 10.0.0.31 2025-04-03 16:51:40,539 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2025-04-03 16:51:40,560 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89154005:ctest-vn-12654525', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89154005:ctest-vn-12654525?flat'} 2025-04-03 16:51:40,560 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89154005:ctest-vn-12654525 is found in opserver 2025-04-03 16:51:40,575 - DEBUG - Do not have enough data to verify VN in agent 2025-04-03 16:51:40,581 - DEBUG - VRF ids for VN ctest-vn-12654525: {} 2025-04-03 16:51:40,706 - DEBUG - Services list from nova: [, , ] 2025-04-03 16:51:41,927 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3029-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3029-1) 2025-04-03 16:51:43,325 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3029-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3029-1) 2025-04-03 16:51:43,326 - INFO - Waiting for VM ctest-TestBasicPolicy-89154005-38920489 to be up.. 2025-04-03 16:51:43,420 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-03 16:51:48,547 - DEBUG - VM is in ACTIVE state now 2025-04-03 16:51:48,547 - INFO - VM name : ctest-TestBasicPolicy-89154005-38920489 2025-04-03 16:51:48,633 - DEBUG - VM ctest-TestBasicPolicy-89154005-38920489 ID is 7ae3fb00-936b-4c3e-89d0-79e4d70603ba 2025-04-03 16:51:48,652 - DEBUG - VM ctest-TestBasicPolicy-89154005-38920489 launched on Node cn-jenkins-deploy-platform-ansible-os-3029-1 2025-04-03 16:51:48,731 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/7ae3fb00-936b-4c3e-89d0-79e4d70603ba 2025-04-03 16:51:48,741 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/45f9fe82-4846-4ed5-94d2-f4c5d916a8bf 2025-04-03 16:51:51,999 - 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 1011ms') 2025-04-03 16:51:51,999 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-89154005-38920489 failed! 2025-04-03 16:51:52,057 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-89154005:ctest-vn-57344675 is 171.175.134.193 and allocation pool is NOT set 2025-04-03 16:51:54,120 - 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=8.92 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.427 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.427/4.673/8.919/4.246 ms') 2025-04-03 16:51:54,120 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-89154005-38920489 passed 2025-04-03 16:51:54,277 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-03 16:51:54,277 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-89154005-38920489, IP 171.175.134.195, Port 22 2025-04-03 16:51:54,432 - DEBUG - VM ctest-TestBasicPolicy-89154005-38920489 is ready for SSH connections 2025-04-03 16:51:54,432 - INFO - Waiting for VM ctest-TestBasicPolicy-89154005-11320093 to be up.. 2025-04-03 16:51:54,517 - DEBUG - VM is in ACTIVE state now 2025-04-03 16:51:54,517 - INFO - VM name : ctest-TestBasicPolicy-89154005-11320093 2025-04-03 16:51:54,613 - DEBUG - VM ctest-TestBasicPolicy-89154005-11320093 ID is 10209193-09ad-43bf-9ec4-94e63d93e152 2025-04-03 16:51:54,614 - DEBUG - VM ctest-TestBasicPolicy-89154005-11320093 launched on Node cn-jenkins-deploy-platform-ansible-os-3029-1 2025-04-03 16:51:54,710 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/10209193-09ad-43bf-9ec4-94e63d93e152 2025-04-03 16:51:54,721 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/8412a557-c1bc-4743-805f-c73d06206e69 2025-04-03 16:51:55,973 - 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.96 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.899 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.899/1.930/2.962/1.031 ms') 2025-04-03 16:51:55,974 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-89154005-11320093 passed 2025-04-03 16:51:56,129 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-03 16:51:56,129 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-89154005-11320093, IP 138.105.39.3, Port 22 2025-04-03 16:51:56,284 - DEBUG - VM ctest-TestBasicPolicy-89154005-11320093 is ready for SSH connections 2025-04-03 16:51:56,284 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-03 16:51:56,285 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 138.105.39.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2025-04-03 16:51:56,285 - DEBUG - ping -s 56 -c 3 -W 1 138.105.39.3 2025-04-03 16:52:00,029 - DEBUG - PING 138.105.39.3 (138.105.39.3): 56 data bytes 64 bytes from 138.105.39.3: seq=0 ttl=63 time=3.704 ms 64 bytes from 138.105.39.3: seq=1 ttl=63 time=0.927 ms 64 bytes from 138.105.39.3: seq=2 ttl=63 time=0.799 ms --- 138.105.39.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.799/1.810/3.704 ms 2025-04-03 16:52:00,030 - INFO - Ping to IP 138.105.39.3 from VM ctest-TestBasicPolicy-89154005-38920489 passed 2025-04-03 16:52:00,233 - DEBUG - Policy Update Response {"network-policy": {"uuid": "b7e6bcc9-9857-42c9-87d5-7241cf28fbb6", "href": "http://10.0.0.31:8082/network-policy/b7e6bcc9-9857-42c9-87d5-7241cf28fbb6"}} 2025-04-03 16:52:00,233 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-03 16:52:00,233 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 138.105.39.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2025-04-03 16:52:00,233 - DEBUG - ping -s 56 -c 3 -W 1 138.105.39.3 2025-04-03 16:52:03,472 - DEBUG - PING 138.105.39.3 (138.105.39.3): 56 data bytes 64 bytes from 138.105.39.3: seq=0 ttl=63 time=1.559 ms --- 138.105.39.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.559/1.559/1.559 ms 2025-04-03 16:52:03,472 - WARNING - Ping to IP 138.105.39.3 from VM ctest-TestBasicPolicy-89154005-38920489 failed 2025-04-03 16:52:03,472 - INFO - Deleting VM ctest-TestBasicPolicy-89154005-11320093 2025-04-03 16:52:03,560 - INFO - Deleting VM ctest-TestBasicPolicy-89154005-38920489 2025-04-03 16:52:03,995 - INFO - Deleted policy ctest-policy-allow-all-41272777 2025-04-03 16:52:03,995 - INFO - Deleting VN ctest-vn-12654525 2025-04-03 16:52:04,040 - DEBUG - VN fdfee521-5a15-4968-93e2-0a30d4370b67 still in use: Unable to complete operation on network fdfee521-5a15-4968-93e2-0a30d4370b67. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-cbc46980-8ee1-4a3e-87d1-611e951982b0'] 2025-04-03 16:52:04,040 - WARNING - Deleting VN ctest-vn-12654525 failed..Will retry 2025-04-03 16:52:06,186 - DEBUG - Response for deleting network () 2025-04-03 16:52:06,186 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e6ea9f81-7c13-4e7a-8d7d-eb1ffadc269b 2025-04-03 16:52:06,194 - DEBUG - Response Code: 404 2025-04-03 16:52:06,194 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2025-04-03 16:52:06,201 - DEBUG - Requesting: http://10.0.0.31:8082/domain/a99a4786-bfe3-4e87-b868-c4f67e81a60f 2025-04-03 16:52:06,262 - DEBUG - Requesting: http://10.0.0.31:8082/project/ee9e0aa6-9bdf-4d83-b7e6-0e50e0589fba 2025-04-03 16:52:06,346 - INFO - Validated that VN ctest-vn-12654525 is not found in API Server 2025-04-03 16:52:06,360 - DEBUG - VN ctest-vn-12654525 is not present in Agent 10.0.0.31 2025-04-03 16:52:06,360 - INFO - Validated that VN ctest-vn-12654525 is not in any agent 2025-04-03 16:52:06,380 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-12654525 info 2025-04-03 16:52:06,380 - INFO - Deleting VN ctest-vn-57344675 2025-04-03 16:52:06,508 - DEBUG - Response for deleting network () 2025-04-03 16:52:06,509 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/02df1d8b-4d20-462c-84e8-4416b1fe6abb 2025-04-03 16:52:06,514 - DEBUG - Response Code: 404 2025-04-03 16:52:06,514 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2025-04-03 16:52:06,524 - DEBUG - Requesting: http://10.0.0.31:8082/domain/a99a4786-bfe3-4e87-b868-c4f67e81a60f 2025-04-03 16:52:06,579 - DEBUG - Requesting: http://10.0.0.31:8082/project/ee9e0aa6-9bdf-4d83-b7e6-0e50e0589fba 2025-04-03 16:52:06,655 - INFO - Validated that VN ctest-vn-57344675 is not found in API Server 2025-04-03 16:52:06,667 - DEBUG - VN ctest-vn-57344675 is not present in Agent 10.0.0.31 2025-04-03 16:52:06,667 - INFO - Validated that VN ctest-vn-57344675 is not in any agent 2025-04-03 16:52:06,686 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-57344675 info 2025-04-03 16:52:06,958 - DEBUG - No XMPP flaps were noticed during the test
2025-04-03 16:52:06,958 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2025-04-03 16:52:06,958 - INFO - -------------------------------------------------------------------------------- 2025-04-03 16:52:07,651 - INFO - Deleted project: ctest-TestBasicPolicy-89154005, ID : ee9e0aa6-9bdf-4d83-b7e6-0e50e0589fba