2025-08-14 13:03:38,858 - INFO - Domain Default found not creating 2025-08-14 13:03:38,991 - INFO - Project ctest-TestBasicPolicy-76832846 not found, creating it 2025-08-14 13:03:39,417 - INFO - Created Project:ctest-TestBasicPolicy-76832846, ID : 129ff15a-2e2f-482d-abe5-ee7e11fe0ae9 2025-08-14 13:03:40,805 - INFO - ================================================================================ 2025-08-14 13:03:40,806 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-08-14 13:03:40,806 - 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-08-14 13:03:41,059 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2025-08-14 13:03:41,059 - INFO - Initial checks done. Running the testcase now 2025-08-14 13:03:41,059 - INFO - 2025-08-14 13:03:41,577 - DEBUG - Response for create_network : {'network': {'id': '632b3cb2-98da-4b97-90f7-35d3d54c3446', 'name': 'ctest-vn-64389481', 'tenant_id': '129ff15a2e2f482dabe5ee7e11fe0ae9', 'project_id': '129ff15a2e2f482dabe5ee7e11fe0ae9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76832846', 'ctest-vn-64389481'], 'port_security_enabled': True, 'description': ''}} 2025-08-14 13:03:41,770 - DEBUG - Response for create_subnet : {'subnet': {'id': '5b3c4cff-60c3-4bf9-b0c4-d378dc358369', 'name': '', 'tenant_id': '129ff15a2e2f482dabe5ee7e11fe0ae9', 'network_id': '632b3cb2-98da-4b97-90f7-35d3d54c3446', 'ip_version': 4, 'cidr': '143.127.193.128/26', 'allocation_pools': [{'start': '143.127.193.130', 'end': '143.127.193.190'}], 'gateway_ip': '143.127.193.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.127.193.130', 'tags': [], 'project_id': '129ff15a2e2f482dabe5ee7e11fe0ae9'}} 2025-08-14 13:03:41,787 - INFO - Created VN ctest-vn-64389481 2025-08-14 13:03:41,837 - DEBUG - VN ctest-vn-64389481 UUID is 632b3cb2-98da-4b97-90f7-35d3d54c3446 2025-08-14 13:03:42,141 - DEBUG - Response for create_network : {'network': {'id': '8d3ba50d-b059-431c-bce5-e82ba92cf071', 'name': 'ctest-vn-94172574', 'tenant_id': '129ff15a2e2f482dabe5ee7e11fe0ae9', 'project_id': '129ff15a2e2f482dabe5ee7e11fe0ae9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76832846', 'ctest-vn-94172574'], 'port_security_enabled': True, 'description': ''}} 2025-08-14 13:03:42,334 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c93f7095-1d38-4b4e-b2ed-7e7f48c01ea1', 'name': '', 'tenant_id': '129ff15a2e2f482dabe5ee7e11fe0ae9', 'network_id': '8d3ba50d-b059-431c-bce5-e82ba92cf071', 'ip_version': 4, 'cidr': '65.244.17.128/26', 'allocation_pools': [{'start': '65.244.17.130', 'end': '65.244.17.190'}], 'gateway_ip': '65.244.17.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.244.17.130', 'tags': [], 'project_id': '129ff15a2e2f482dabe5ee7e11fe0ae9'}} 2025-08-14 13:03:42,350 - INFO - Created VN ctest-vn-94172574 2025-08-14 13:03:42,401 - DEBUG - VN ctest-vn-94172574 UUID is 8d3ba50d-b059-431c-bce5-e82ba92cf071 2025-08-14 13:03:42,553 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-76832846:ctest-vn-64389481, 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-76832846:ctest-vn-94172574, 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-08-14 13:03:42,837 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '632b3cb2-98da-4b97-90f7-35d3d54c3446', 'name': 'ctest-vn-64389481', 'tenant_id': '129ff15a2e2f482dabe5ee7e11fe0ae9', 'project_id': '129ff15a2e2f482dabe5ee7e11fe0ae9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5b3c4cff-60c3-4bf9-b0c4-d378dc358369'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76832846', 'ctest-vn-64389481'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76832846', 'ctest-policy-allow-all-09237096']], 'subnet_ipam': [{'subnet_cidr': '143.127.193.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-14 13:03:43,108 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8d3ba50d-b059-431c-bce5-e82ba92cf071', 'name': 'ctest-vn-94172574', 'tenant_id': '129ff15a2e2f482dabe5ee7e11fe0ae9', 'project_id': '129ff15a2e2f482dabe5ee7e11fe0ae9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c93f7095-1d38-4b4e-b2ed-7e7f48c01ea1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76832846', 'ctest-vn-94172574'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76832846', 'ctest-policy-allow-all-09237096']], 'subnet_ipam': [{'subnet_cidr': '65.244.17.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-14 13:03:43,253 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-14 13:03:43,550 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-14 13:03:43,583 - DEBUG - Requesting: http://10.0.0.249:8082/domain/773ff5d6-597b-47dc-8c7e-5427535535b7 2025-08-14 13:03:43,595 - DEBUG - Requesting: http://10.0.0.249:8082/project/129ff15a-2e2f-482d-abe5-ee7e11fe0ae9 2025-08-14 13:03:43,668 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/632b3cb2-98da-4b97-90f7-35d3d54c3446 2025-08-14 13:03:43,678 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/632b3cb2-98da-4b97-90f7-35d3d54c3446 2025-08-14 13:03:43,687 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/20a1d8e8-7cbc-47f8-a6aa-c7992e961e35 2025-08-14 13:03:43,693 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/20a1d8e8-7cbc-47f8-a6aa-c7992e961e35 2025-08-14 13:03:43,699 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/f4c64834-bb44-4b8c-935b-3314e2ec6c30 2025-08-14 13:03:43,704 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-14 13:03:43,704 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/632b3cb2-98da-4b97-90f7-35d3d54c3446 2025-08-14 13:03:43,712 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/20a1d8e8-7cbc-47f8-a6aa-c7992e961e35 2025-08-14 13:03:43,724 - INFO - Verified VN network id 11 for VN 632b3cb2-98da-4b97-90f7-35d3d54c3446 2025-08-14 13:03:43,724 - INFO - Verifications in API Server for VN ctest-vn-64389481 passed 2025-08-14 13:03:43,724 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/632b3cb2-98da-4b97-90f7-35d3d54c3446 2025-08-14 13:03:43,732 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/20a1d8e8-7cbc-47f8-a6aa-c7992e961e35 2025-08-14 13:03:43,738 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/20a1d8e8-7cbc-47f8-a6aa-c7992e961e35 2025-08-14 13:03:43,744 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/f4c64834-bb44-4b8c-935b-3314e2ec6c30 2025-08-14 13:03:43,755 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76832846:ctest-vn-64389481', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76832846', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7145871971519712151', 'uuid-lslong': '10445877044642067526'}, 'enable': 'true', 'created': '2025-08-14T13:03:41', 'last-modified': '2025-08-14T13:03:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.939641'} 2025-08-14 13:03:43,761 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-14 13:03:43,761 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64389481 passed 2025-08-14 13:03:43,761 - DEBUG - ====Verifying policy data for ctest-vn-64389481 in API_Server ====== 2025-08-14 13:03:43,761 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-14 13:03:43,766 - DEBUG - Requesting: http://10.0.0.249:8082/domain/773ff5d6-597b-47dc-8c7e-5427535535b7 2025-08-14 13:03:43,776 - DEBUG - Requesting: http://10.0.0.249:8082/project/129ff15a-2e2f-482d-abe5-ee7e11fe0ae9 2025-08-14 13:03:43,844 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/632b3cb2-98da-4b97-90f7-35d3d54c3446 2025-08-14 13:03:43,853 - DEBUG - ==>Verifying data for policy with id: bfa86ed4-4d41-4ae2-af48-d47163219bdb, fqn: ['default-domain', 'ctest-TestBasicPolicy-76832846', 'ctest-policy-allow-all-09237096'] 2025-08-14 13:03:43,853 - INFO - VN ctest-vn-64389481 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-14 13:03:43,853 - DEBUG - Verifying the vn in opserver 2025-08-14 13:03:43,853 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76832846:ctest-vn-64389481 virtual network link through opserver 10.0.0.249 2025-08-14 13:03:43,853 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-08-14 13:03:44,147 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-08-14 13:03:44,198 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76832846:ctest-vn-64389481', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76832846:ctest-vn-64389481?flat'} 2025-08-14 13:03:44,198 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76832846:ctest-vn-64389481 is found in opserver 2025-08-14 13:03:44,208 - DEBUG - Do not have enough data to verify VN in agent 2025-08-14 13:03:44,213 - DEBUG - VRF ids for VN ctest-vn-64389481: {} 2025-08-14 13:03:44,213 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-14 13:03:44,219 - DEBUG - Requesting: http://10.0.0.249:8082/domain/773ff5d6-597b-47dc-8c7e-5427535535b7 2025-08-14 13:03:44,229 - DEBUG - Requesting: http://10.0.0.249:8082/project/129ff15a-2e2f-482d-abe5-ee7e11fe0ae9 2025-08-14 13:03:44,300 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/8d3ba50d-b059-431c-bce5-e82ba92cf071 2025-08-14 13:03:44,311 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/8d3ba50d-b059-431c-bce5-e82ba92cf071 2025-08-14 13:03:44,319 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/087fcf8b-7ea6-4b5e-90a6-e0f740b2aa6e 2025-08-14 13:03:44,326 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/087fcf8b-7ea6-4b5e-90a6-e0f740b2aa6e 2025-08-14 13:03:44,332 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/acc4a8ea-e537-4369-a793-504f7c03c905 2025-08-14 13:03:44,338 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-14 13:03:44,338 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/8d3ba50d-b059-431c-bce5-e82ba92cf071 2025-08-14 13:03:44,346 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/087fcf8b-7ea6-4b5e-90a6-e0f740b2aa6e 2025-08-14 13:03:44,358 - INFO - Verified VN network id 12 for VN 8d3ba50d-b059-431c-bce5-e82ba92cf071 2025-08-14 13:03:44,358 - INFO - Verifications in API Server for VN ctest-vn-94172574 passed 2025-08-14 13:03:44,358 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/8d3ba50d-b059-431c-bce5-e82ba92cf071 2025-08-14 13:03:44,367 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/087fcf8b-7ea6-4b5e-90a6-e0f740b2aa6e 2025-08-14 13:03:44,373 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/087fcf8b-7ea6-4b5e-90a6-e0f740b2aa6e 2025-08-14 13:03:44,380 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/acc4a8ea-e537-4369-a793-504f7c03c905 2025-08-14 13:03:44,392 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76832846:ctest-vn-94172574', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76832846', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10176909261185565468', 'uuid-lslong': '13611540723016724593'}, 'enable': 'true', 'created': '2025-08-14T13:03:42', 'last-modified': '2025-08-14T13:03:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.352904'} 2025-08-14 13:03:44,399 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-14 13:03:44,400 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94172574 passed 2025-08-14 13:03:44,400 - DEBUG - ====Verifying policy data for ctest-vn-94172574 in API_Server ====== 2025-08-14 13:03:44,400 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-14 13:03:44,405 - DEBUG - Requesting: http://10.0.0.249:8082/domain/773ff5d6-597b-47dc-8c7e-5427535535b7 2025-08-14 13:03:44,416 - DEBUG - Requesting: http://10.0.0.249:8082/project/129ff15a-2e2f-482d-abe5-ee7e11fe0ae9 2025-08-14 13:03:44,488 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/8d3ba50d-b059-431c-bce5-e82ba92cf071 2025-08-14 13:03:44,497 - DEBUG - ==>Verifying data for policy with id: bfa86ed4-4d41-4ae2-af48-d47163219bdb, fqn: ['default-domain', 'ctest-TestBasicPolicy-76832846', 'ctest-policy-allow-all-09237096'] 2025-08-14 13:03:44,497 - INFO - VN ctest-vn-94172574 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-14 13:03:44,497 - DEBUG - Verifying the vn in opserver 2025-08-14 13:03:44,497 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76832846:ctest-vn-94172574 virtual network link through opserver 10.0.0.249 2025-08-14 13:03:44,497 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-08-14 13:03:44,507 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76832846:ctest-vn-94172574', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76832846:ctest-vn-94172574?flat'} 2025-08-14 13:03:44,507 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76832846:ctest-vn-94172574 is found in opserver 2025-08-14 13:03:44,517 - DEBUG - Do not have enough data to verify VN in agent 2025-08-14 13:03:44,521 - DEBUG - VRF ids for VN ctest-vn-94172574: {} 2025-08-14 13:03:44,574 - DEBUG - Services list from nova: [, , ] 2025-08-14 13:03:45,531 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3854-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3854-1) 2025-08-14 13:03:46,596 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3854-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3854-1) 2025-08-14 13:03:46,596 - INFO - Waiting for VM ctest-TestBasicPolicy-76832846-96253010 to be up.. 2025-08-14 13:03:46,673 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-14 13:03:51,736 - DEBUG - VM is in ACTIVE state now 2025-08-14 13:03:51,736 - INFO - VM name : ctest-TestBasicPolicy-76832846-96253010 2025-08-14 13:03:51,794 - DEBUG - VM ctest-TestBasicPolicy-76832846-96253010 ID is 9ed49a14-4d9f-4e7b-a80b-1a9efb430468 2025-08-14 13:03:51,809 - DEBUG - VM ctest-TestBasicPolicy-76832846-96253010 launched on Node cn-jenkins-deploy-platform-ansible-os-3854-1 2025-08-14 13:03:51,867 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/9ed49a14-4d9f-4e7b-a80b-1a9efb430468 2025-08-14 13:03:51,874 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/3e3d809c-47b2-46b0-9b40-341e8144262a 2025-08-14 13:03:55,126 - 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 1024ms') 2025-08-14 13:03:55,126 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-76832846-96253010 failed! 2025-08-14 13:03:55,181 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-76832846:ctest-vn-64389481 is 143.127.193.129 and allocation pool is NOT set 2025-08-14 13:03:57,236 - 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=2.63 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.372 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.372/1.500/2.629/1.128 ms') 2025-08-14 13:03:57,236 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-76832846-96253010 passed 2025-08-14 13:03:57,385 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-14 13:03:57,385 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-76832846-96253010, IP 143.127.193.131, Port 22 2025-08-14 13:03:57,536 - DEBUG - VM ctest-TestBasicPolicy-76832846-96253010 is ready for SSH connections 2025-08-14 13:03:57,537 - INFO - Waiting for VM ctest-TestBasicPolicy-76832846-83961096 to be up.. 2025-08-14 13:03:57,599 - DEBUG - VM is in ACTIVE state now 2025-08-14 13:03:57,599 - INFO - VM name : ctest-TestBasicPolicy-76832846-83961096 2025-08-14 13:03:57,659 - DEBUG - VM ctest-TestBasicPolicy-76832846-83961096 ID is d2e043d5-cbf7-4d1f-a014-0bb819092082 2025-08-14 13:03:57,659 - DEBUG - VM ctest-TestBasicPolicy-76832846-83961096 launched on Node cn-jenkins-deploy-platform-ansible-os-3854-1 2025-08-14 13:03:57,718 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/d2e043d5-cbf7-4d1f-a014-0bb819092082 2025-08-14 13:03:57,725 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/547f5af9-fdbe-49c0-a27b-ad224b010bd2 2025-08-14 13:03:58,949 - 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.62 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.343 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.343/1.479/2.615/1.136 ms') 2025-08-14 13:03:58,950 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-76832846-83961096 passed 2025-08-14 13:03:59,097 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-14 13:03:59,097 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-76832846-83961096, IP 65.244.17.131, Port 22 2025-08-14 13:03:59,248 - DEBUG - VM ctest-TestBasicPolicy-76832846-83961096 is ready for SSH connections 2025-08-14 13:03:59,248 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-14 13:03:59,248 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 65.244.17.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.249, gateway password: c0ntrail123 2025-08-14 13:03:59,249 - DEBUG - ping -s 56 -c 3 -W 1 65.244.17.131 2025-08-14 13:04:02,925 - DEBUG - PING 65.244.17.131 (65.244.17.131): 56 data bytes 64 bytes from 65.244.17.131: seq=0 ttl=63 time=2.914 ms 64 bytes from 65.244.17.131: seq=1 ttl=63 time=0.915 ms 64 bytes from 65.244.17.131: seq=2 ttl=63 time=0.658 ms --- 65.244.17.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.658/1.495/2.914 ms 2025-08-14 13:04:02,925 - INFO - Ping to IP 65.244.17.131 from VM ctest-TestBasicPolicy-76832846-96253010 passed 2025-08-14 13:04:03,093 - DEBUG - Policy Update Response {"network-policy": {"uuid": "bfa86ed4-4d41-4ae2-af48-d47163219bdb", "href": "http://10.0.0.249:8082/network-policy/bfa86ed4-4d41-4ae2-af48-d47163219bdb"}} 2025-08-14 13:04:03,093 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-14 13:04:03,093 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 65.244.17.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.249, gateway password: c0ntrail123 2025-08-14 13:04:03,093 - DEBUG - ping -s 56 -c 3 -W 1 65.244.17.131 2025-08-14 13:04:06,285 - DEBUG - PING 65.244.17.131 (65.244.17.131): 56 data bytes --- 65.244.17.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-08-14 13:04:06,286 - WARNING - Ping to IP 65.244.17.131 from VM ctest-TestBasicPolicy-76832846-96253010 failed 2025-08-14 13:04:06,286 - INFO - Deleting VM ctest-TestBasicPolicy-76832846-83961096 2025-08-14 13:04:06,340 - INFO - Deleting VM ctest-TestBasicPolicy-76832846-96253010 2025-08-14 13:04:06,660 - INFO - Deleted policy ctest-policy-allow-all-09237096 2025-08-14 13:04:06,660 - INFO - Deleting VN ctest-vn-94172574 2025-08-14 13:04:06,692 - DEBUG - VN 8d3ba50d-b059-431c-bce5-e82ba92cf071 still in use: Unable to complete operation on network 8d3ba50d-b059-431c-bce5-e82ba92cf071. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a68ee4fc-7015-4768-a695-8dd8cc562c70'] 2025-08-14 13:04:06,692 - WARNING - Deleting VN ctest-vn-94172574 failed..Will retry 2025-08-14 13:04:08,781 - DEBUG - Response for deleting network () 2025-08-14 13:04:08,781 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/087fcf8b-7ea6-4b5e-90a6-e0f740b2aa6e 2025-08-14 13:04:08,787 - DEBUG - Response Code: 404 2025-08-14 13:04:08,788 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-14 13:04:08,794 - DEBUG - Requesting: http://10.0.0.249:8082/domain/773ff5d6-597b-47dc-8c7e-5427535535b7 2025-08-14 13:04:08,846 - DEBUG - Requesting: http://10.0.0.249:8082/project/129ff15a-2e2f-482d-abe5-ee7e11fe0ae9 2025-08-14 13:04:08,951 - INFO - Validated that VN ctest-vn-94172574 is not found in API Server 2025-08-14 13:04:08,961 - DEBUG - VN ctest-vn-94172574 is not present in Agent 10.0.0.249 2025-08-14 13:04:08,961 - INFO - Validated that VN ctest-vn-94172574 is not in any agent 2025-08-14 13:04:08,975 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-94172574 info 2025-08-14 13:04:08,976 - INFO - Deleting VN ctest-vn-64389481 2025-08-14 13:04:09,260 - DEBUG - Response for deleting network () 2025-08-14 13:04:09,260 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/20a1d8e8-7cbc-47f8-a6aa-c7992e961e35 2025-08-14 13:04:09,266 - DEBUG - Response Code: 404 2025-08-14 13:04:09,266 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-14 13:04:09,273 - DEBUG - Requesting: http://10.0.0.249:8082/domain/773ff5d6-597b-47dc-8c7e-5427535535b7 2025-08-14 13:04:09,332 - DEBUG - Requesting: http://10.0.0.249:8082/project/129ff15a-2e2f-482d-abe5-ee7e11fe0ae9 2025-08-14 13:04:09,419 - INFO - Validated that VN ctest-vn-64389481 is not found in API Server 2025-08-14 13:04:09,429 - DEBUG - VN ctest-vn-64389481 is not present in Agent 10.0.0.249 2025-08-14 13:04:09,429 - INFO - Validated that VN ctest-vn-64389481 is not in any agent 2025-08-14 13:04:09,444 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-64389481 info 2025-08-14 13:04:09,698 - DEBUG - No XMPP flaps were noticed during the test
2025-08-14 13:04:09,698 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:29]
2025-08-14 13:04:09,698 - INFO - -------------------------------------------------------------------------------- 2025-08-14 13:04:10,332 - INFO - Deleted project: ctest-TestBasicPolicy-76832846, ID : 129ff15a-2e2f-482d-abe5-ee7e11fe0ae9