2025-05-19 02:13:36,237 - INFO - Domain Default found not creating 2025-05-19 02:13:36,471 - INFO - Project ctest-TestBasicPolicy-02427462 not found, creating it 2025-05-19 02:13:36,953 - INFO - Created Project:ctest-TestBasicPolicy-02427462, ID : 8f2c2ac5-96a2-48a8-93cc-ce23ab9c0326 2025-05-19 02:13:38,417 - INFO - ================================================================================ 2025-05-19 02:13:38,417 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-05-19 02:13:38,417 - 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-19 02:13:38,678 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with 2025-05-19 02:13:38,678 - INFO - Initial checks done. Running the testcase now 2025-05-19 02:13:38,679 - INFO - 2025-05-19 02:13:39,244 - DEBUG - Response for create_network : {'network': {'id': '61afeeb4-0981-4590-bfc3-2959331d6c13', 'name': 'ctest-vn-12747536', 'tenant_id': '8f2c2ac596a248a893ccce23ab9c0326', 'project_id': '8f2c2ac596a248a893ccce23ab9c0326', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02427462', 'ctest-vn-12747536'], 'port_security_enabled': True, 'description': ''}} 2025-05-19 02:13:39,459 - DEBUG - Response for create_subnet : {'subnet': {'id': '49675d9b-113b-4373-8d45-25de7d0ec9ad', 'name': '', 'tenant_id': '8f2c2ac596a248a893ccce23ab9c0326', 'network_id': '61afeeb4-0981-4590-bfc3-2959331d6c13', 'ip_version': 4, 'cidr': '106.80.237.192/26', 'allocation_pools': [{'start': '106.80.237.194', 'end': '106.80.237.254'}], 'gateway_ip': '106.80.237.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.80.237.194', 'tags': [], 'project_id': '8f2c2ac596a248a893ccce23ab9c0326'}} 2025-05-19 02:13:39,477 - INFO - Created VN ctest-vn-12747536 2025-05-19 02:13:39,531 - DEBUG - VN ctest-vn-12747536 UUID is 61afeeb4-0981-4590-bfc3-2959331d6c13 2025-05-19 02:13:39,850 - DEBUG - Response for create_network : {'network': {'id': 'ed8c4593-d80b-4152-9dd3-6447519cd3ff', 'name': 'ctest-vn-76885055', 'tenant_id': '8f2c2ac596a248a893ccce23ab9c0326', 'project_id': '8f2c2ac596a248a893ccce23ab9c0326', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02427462', 'ctest-vn-76885055'], 'port_security_enabled': True, 'description': ''}} 2025-05-19 02:13:40,042 - DEBUG - Response for create_subnet : {'subnet': {'id': '7b150875-e46f-4637-b673-8a973a170e30', 'name': '', 'tenant_id': '8f2c2ac596a248a893ccce23ab9c0326', 'network_id': 'ed8c4593-d80b-4152-9dd3-6447519cd3ff', 'ip_version': 4, 'cidr': '65.158.79.64/26', 'allocation_pools': [{'start': '65.158.79.66', 'end': '65.158.79.126'}], 'gateway_ip': '65.158.79.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.158.79.66', 'tags': [], 'project_id': '8f2c2ac596a248a893ccce23ab9c0326'}} 2025-05-19 02:13:40,061 - INFO - Created VN ctest-vn-76885055 2025-05-19 02:13:40,115 - DEBUG - VN ctest-vn-76885055 UUID is ed8c4593-d80b-4152-9dd3-6447519cd3ff 2025-05-19 02:13:40,228 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-02427462:ctest-vn-12747536, 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-02427462:ctest-vn-76885055, 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-19 02:13:40,527 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '61afeeb4-0981-4590-bfc3-2959331d6c13', 'name': 'ctest-vn-12747536', 'tenant_id': '8f2c2ac596a248a893ccce23ab9c0326', 'project_id': '8f2c2ac596a248a893ccce23ab9c0326', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['49675d9b-113b-4373-8d45-25de7d0ec9ad'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02427462', 'ctest-vn-12747536'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02427462', 'ctest-policy-allow-all-47173274']], 'subnet_ipam': [{'subnet_cidr': '106.80.237.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-19 02:13:40,784 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ed8c4593-d80b-4152-9dd3-6447519cd3ff', 'name': 'ctest-vn-76885055', 'tenant_id': '8f2c2ac596a248a893ccce23ab9c0326', 'project_id': '8f2c2ac596a248a893ccce23ab9c0326', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7b150875-e46f-4637-b673-8a973a170e30'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02427462', 'ctest-vn-76885055'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02427462', 'ctest-policy-allow-all-47173274']], 'subnet_ipam': [{'subnet_cidr': '65.158.79.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-19 02:13:40,959 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-05-19 02:13:41,268 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-05-19 02:13:41,296 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a75bdef7-0b1e-4cae-9f06-2e5cb4bb0f23 2025-05-19 02:13:41,310 - DEBUG - Requesting: http://10.0.0.22:8082/project/8f2c2ac5-96a2-48a8-93cc-ce23ab9c0326 2025-05-19 02:13:41,392 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/61afeeb4-0981-4590-bfc3-2959331d6c13 2025-05-19 02:13:41,405 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/61afeeb4-0981-4590-bfc3-2959331d6c13 2025-05-19 02:13:41,415 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/635e75e8-355b-40df-bc64-8f6d2393b37b 2025-05-19 02:13:41,424 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/635e75e8-355b-40df-bc64-8f6d2393b37b 2025-05-19 02:13:41,432 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/f034a662-7ff4-40cf-a4ad-ed9783f510a3 2025-05-19 02:13:41,438 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-19 02:13:41,438 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/61afeeb4-0981-4590-bfc3-2959331d6c13 2025-05-19 02:13:41,448 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/635e75e8-355b-40df-bc64-8f6d2393b37b 2025-05-19 02:13:41,462 - INFO - Verified VN network id 8 for VN 61afeeb4-0981-4590-bfc3-2959331d6c13 2025-05-19 02:13:41,462 - INFO - Verifications in API Server for VN ctest-vn-12747536 passed 2025-05-19 02:13:41,462 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/61afeeb4-0981-4590-bfc3-2959331d6c13 2025-05-19 02:13:41,476 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/635e75e8-355b-40df-bc64-8f6d2393b37b 2025-05-19 02:13:41,484 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/635e75e8-355b-40df-bc64-8f6d2393b37b 2025-05-19 02:13:41,491 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/f034a662-7ff4-40cf-a4ad-ed9783f510a3 2025-05-19 02:13:41,504 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02427462:ctest-vn-12747536', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02427462', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7039107199624365456', 'uuid-lslong': '13817933544789208083'}, 'enable': 'true', 'created': '2025-05-19T02:13:39', 'last-modified': '2025-05-19T02:13:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.999375'} 2025-05-19 02:13:41,511 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-19 02:13:41,511 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12747536 passed 2025-05-19 02:13:41,511 - DEBUG - ====Verifying policy data for ctest-vn-12747536 in API_Server ====== 2025-05-19 02:13:41,511 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-05-19 02:13:41,517 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a75bdef7-0b1e-4cae-9f06-2e5cb4bb0f23 2025-05-19 02:13:41,529 - DEBUG - Requesting: http://10.0.0.22:8082/project/8f2c2ac5-96a2-48a8-93cc-ce23ab9c0326 2025-05-19 02:13:41,621 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/61afeeb4-0981-4590-bfc3-2959331d6c13 2025-05-19 02:13:41,631 - DEBUG - ==>Verifying data for policy with id: 37d09c95-1640-47fb-999b-562b5c3f74a4, fqn: ['default-domain', 'ctest-TestBasicPolicy-02427462', 'ctest-policy-allow-all-47173274'] 2025-05-19 02:13:41,631 - INFO - VN ctest-vn-12747536 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-19 02:13:41,632 - DEBUG - Verifying the vn in opserver 2025-05-19 02:13:41,632 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02427462:ctest-vn-12747536 virtual network link through opserver 10.0.0.22 2025-05-19 02:13:41,632 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-05-19 02:13:41,941 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-05-19 02:13:41,998 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02427462:ctest-vn-12747536', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02427462:ctest-vn-12747536?flat'} 2025-05-19 02:13:41,998 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02427462:ctest-vn-12747536 is found in opserver 2025-05-19 02:13:42,009 - DEBUG - Do not have enough data to verify VN in agent 2025-05-19 02:13:42,014 - DEBUG - VRF ids for VN ctest-vn-12747536: {} 2025-05-19 02:13:42,014 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-05-19 02:13:42,020 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a75bdef7-0b1e-4cae-9f06-2e5cb4bb0f23 2025-05-19 02:13:42,032 - DEBUG - Requesting: http://10.0.0.22:8082/project/8f2c2ac5-96a2-48a8-93cc-ce23ab9c0326 2025-05-19 02:13:42,117 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ed8c4593-d80b-4152-9dd3-6447519cd3ff 2025-05-19 02:13:42,131 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ed8c4593-d80b-4152-9dd3-6447519cd3ff 2025-05-19 02:13:42,143 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c9f1f03-8ce7-40cb-965d-222a78408f7a 2025-05-19 02:13:42,156 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c9f1f03-8ce7-40cb-965d-222a78408f7a 2025-05-19 02:13:42,166 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/9ba488d9-dfcf-472d-ab47-c8848eab61b4 2025-05-19 02:13:42,174 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-19 02:13:42,174 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ed8c4593-d80b-4152-9dd3-6447519cd3ff 2025-05-19 02:13:42,186 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c9f1f03-8ce7-40cb-965d-222a78408f7a 2025-05-19 02:13:42,206 - INFO - Verified VN network id 9 for VN ed8c4593-d80b-4152-9dd3-6447519cd3ff 2025-05-19 02:13:42,207 - INFO - Verifications in API Server for VN ctest-vn-76885055 passed 2025-05-19 02:13:42,207 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ed8c4593-d80b-4152-9dd3-6447519cd3ff 2025-05-19 02:13:42,218 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c9f1f03-8ce7-40cb-965d-222a78408f7a 2025-05-19 02:13:42,227 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c9f1f03-8ce7-40cb-965d-222a78408f7a 2025-05-19 02:13:42,239 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/9ba488d9-dfcf-472d-ab47-c8848eab61b4 2025-05-19 02:13:42,256 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02427462:ctest-vn-76885055', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02427462', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17117132785015538002', 'uuid-lslong': '11372543741515322367'}, 'enable': 'true', 'created': '2025-05-19T02:13:39', 'last-modified': '2025-05-19T02:13:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.510103'} 2025-05-19 02:13:42,262 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-19 02:13:42,262 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76885055 passed 2025-05-19 02:13:42,262 - DEBUG - ====Verifying policy data for ctest-vn-76885055 in API_Server ====== 2025-05-19 02:13:42,262 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-05-19 02:13:42,269 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a75bdef7-0b1e-4cae-9f06-2e5cb4bb0f23 2025-05-19 02:13:42,281 - DEBUG - Requesting: http://10.0.0.22:8082/project/8f2c2ac5-96a2-48a8-93cc-ce23ab9c0326 2025-05-19 02:13:42,359 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ed8c4593-d80b-4152-9dd3-6447519cd3ff 2025-05-19 02:13:42,370 - DEBUG - ==>Verifying data for policy with id: 37d09c95-1640-47fb-999b-562b5c3f74a4, fqn: ['default-domain', 'ctest-TestBasicPolicy-02427462', 'ctest-policy-allow-all-47173274'] 2025-05-19 02:13:42,370 - INFO - VN ctest-vn-76885055 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-19 02:13:42,370 - DEBUG - Verifying the vn in opserver 2025-05-19 02:13:42,370 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02427462:ctest-vn-76885055 virtual network link through opserver 10.0.0.22 2025-05-19 02:13:42,371 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-05-19 02:13:42,383 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02427462:ctest-vn-76885055', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02427462:ctest-vn-76885055?flat'} 2025-05-19 02:13:42,383 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02427462:ctest-vn-76885055 is found in opserver 2025-05-19 02:13:42,395 - DEBUG - Do not have enough data to verify VN in agent 2025-05-19 02:13:42,401 - DEBUG - VRF ids for VN ctest-vn-76885055: {} 2025-05-19 02:13:42,461 - DEBUG - Services list from nova: [, , ] 2025-05-19 02:13:43,517 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3324-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3324-1) 2025-05-19 02:13:44,797 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3324-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3324-1) 2025-05-19 02:13:44,797 - INFO - Waiting for VM ctest-TestBasicPolicy-02427462-68712764 to be up.. 2025-05-19 02:13:44,881 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-05-19 02:13:49,966 - DEBUG - VM is in ACTIVE state now 2025-05-19 02:13:49,966 - INFO - VM name : ctest-TestBasicPolicy-02427462-68712764 2025-05-19 02:13:50,048 - DEBUG - VM ctest-TestBasicPolicy-02427462-68712764 ID is cdfb7a07-5d0d-4ee6-bbf8-d14e73fe35ef 2025-05-19 02:13:50,070 - DEBUG - VM ctest-TestBasicPolicy-02427462-68712764 launched on Node cn-jenkins-deploy-platform-ansible-os-3324-1 2025-05-19 02:13:50,149 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/cdfb7a07-5d0d-4ee6-bbf8-d14e73fe35ef 2025-05-19 02:13:50,158 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/2d9510c6-115a-41ad-ad78-cb86ed2c6fbf 2025-05-19 02:13:53,427 - 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') 2025-05-19 02:13:53,427 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-02427462-68712764 failed! 2025-05-19 02:13:53,483 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-02427462:ctest-vn-12747536 is 106.80.237.193 and allocation pool is NOT set 2025-05-19 02:13:55,538 - 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.97 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.409 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.409/1.687/2.965/1.278 ms') 2025-05-19 02:13:55,538 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-02427462-68712764 passed 2025-05-19 02:13:55,691 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-19 02:13:55,691 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-02427462-68712764, IP 106.80.237.195, Port 22 2025-05-19 02:13:55,843 - DEBUG - VM ctest-TestBasicPolicy-02427462-68712764 is ready for SSH connections 2025-05-19 02:13:55,843 - INFO - Waiting for VM ctest-TestBasicPolicy-02427462-06994477 to be up.. 2025-05-19 02:13:55,919 - DEBUG - VM is in ACTIVE state now 2025-05-19 02:13:55,919 - INFO - VM name : ctest-TestBasicPolicy-02427462-06994477 2025-05-19 02:13:55,993 - DEBUG - VM ctest-TestBasicPolicy-02427462-06994477 ID is 55876b77-5a78-49da-84f1-266f974cc787 2025-05-19 02:13:55,993 - DEBUG - VM ctest-TestBasicPolicy-02427462-06994477 launched on Node cn-jenkins-deploy-platform-ansible-os-3324-1 2025-05-19 02:13:56,069 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/55876b77-5a78-49da-84f1-266f974cc787 2025-05-19 02:13:56,078 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/597fe49d-a320-414d-aa73-71559a66919a 2025-05-19 02:13:57,341 - 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.65 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.410 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.410/1.532/2.654/1.122 ms') 2025-05-19 02:13:57,341 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-02427462-06994477 passed 2025-05-19 02:13:57,495 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-19 02:13:57,495 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-02427462-06994477, IP 65.158.79.67, Port 22 2025-05-19 02:13:57,650 - DEBUG - VM ctest-TestBasicPolicy-02427462-06994477 is ready for SSH connections 2025-05-19 02:13:57,650 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-19 02:13:57,650 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 65.158.79.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-05-19 02:13:57,651 - DEBUG - ping -s 56 -c 3 -W 1 65.158.79.67 2025-05-19 02:14:01,337 - DEBUG - PING 65.158.79.67 (65.158.79.67): 56 data bytes 64 bytes from 65.158.79.67: seq=0 ttl=63 time=4.307 ms 64 bytes from 65.158.79.67: seq=1 ttl=63 time=0.820 ms 64 bytes from 65.158.79.67: seq=2 ttl=63 time=0.740 ms --- 65.158.79.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.740/1.955/4.307 ms 2025-05-19 02:14:01,337 - INFO - Ping to IP 65.158.79.67 from VM ctest-TestBasicPolicy-02427462-68712764 passed 2025-05-19 02:14:01,531 - DEBUG - Policy Update Response {"network-policy": {"uuid": "37d09c95-1640-47fb-999b-562b5c3f74a4", "href": "http://10.0.0.22:8082/network-policy/37d09c95-1640-47fb-999b-562b5c3f74a4"}} 2025-05-19 02:14:01,531 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-19 02:14:01,531 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 65.158.79.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-05-19 02:14:01,531 - DEBUG - ping -s 56 -c 3 -W 1 65.158.79.67 2025-05-19 02:14:04,752 - DEBUG - PING 65.158.79.67 (65.158.79.67): 56 data bytes --- 65.158.79.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-19 02:14:04,752 - WARNING - Ping to IP 65.158.79.67 from VM ctest-TestBasicPolicy-02427462-68712764 failed 2025-05-19 02:14:04,752 - INFO - Deleting VM ctest-TestBasicPolicy-02427462-06994477 2025-05-19 02:14:04,817 - INFO - Deleting VM ctest-TestBasicPolicy-02427462-68712764 2025-05-19 02:14:05,192 - INFO - Deleted policy ctest-policy-allow-all-47173274 2025-05-19 02:14:05,192 - INFO - Deleting VN ctest-vn-76885055 2025-05-19 02:14:05,228 - DEBUG - VN ed8c4593-d80b-4152-9dd3-6447519cd3ff still in use: Unable to complete operation on network ed8c4593-d80b-4152-9dd3-6447519cd3ff. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f4a8d06e-9835-4a97-af4d-2cb98be347a2'] 2025-05-19 02:14:05,228 - WARNING - Deleting VN ctest-vn-76885055 failed..Will retry 2025-05-19 02:14:07,341 - DEBUG - Response for deleting network () 2025-05-19 02:14:07,341 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c9f1f03-8ce7-40cb-965d-222a78408f7a 2025-05-19 02:14:07,346 - DEBUG - Response Code: 404 2025-05-19 02:14:07,346 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-05-19 02:14:07,352 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a75bdef7-0b1e-4cae-9f06-2e5cb4bb0f23 2025-05-19 02:14:07,406 - DEBUG - Requesting: http://10.0.0.22:8082/project/8f2c2ac5-96a2-48a8-93cc-ce23ab9c0326 2025-05-19 02:14:07,480 - INFO - Validated that VN ctest-vn-76885055 is not found in API Server 2025-05-19 02:14:07,493 - DEBUG - VN ctest-vn-76885055 is not present in Agent 10.0.0.22 2025-05-19 02:14:07,493 - INFO - Validated that VN ctest-vn-76885055 is not in any agent 2025-05-19 02:14:07,510 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-76885055 info 2025-05-19 02:14:07,510 - INFO - Deleting VN ctest-vn-12747536 2025-05-19 02:14:07,737 - DEBUG - Response for deleting network () 2025-05-19 02:14:07,737 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/635e75e8-355b-40df-bc64-8f6d2393b37b 2025-05-19 02:14:07,743 - DEBUG - Response Code: 404 2025-05-19 02:14:07,743 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-05-19 02:14:07,749 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a75bdef7-0b1e-4cae-9f06-2e5cb4bb0f23 2025-05-19 02:14:07,814 - DEBUG - Requesting: http://10.0.0.22:8082/project/8f2c2ac5-96a2-48a8-93cc-ce23ab9c0326 2025-05-19 02:14:07,928 - INFO - Validated that VN ctest-vn-12747536 is not found in API Server 2025-05-19 02:14:07,941 - DEBUG - VN ctest-vn-12747536 is not present in Agent 10.0.0.22 2025-05-19 02:14:07,941 - INFO - Validated that VN ctest-vn-12747536 is not in any agent 2025-05-19 02:14:07,965 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-12747536 info 2025-05-19 02:14:08,230 - DEBUG - No XMPP flaps were noticed during the test
2025-05-19 02:14:08,231 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2025-05-19 02:14:08,231 - INFO - -------------------------------------------------------------------------------- 2025-05-19 02:14:08,922 - INFO - Deleted project: ctest-TestBasicPolicy-02427462, ID : 8f2c2ac5-96a2-48a8-93cc-ce23ab9c0326