2025-06-01 15:20:57,762 - INFO - Domain Default found not creating 2025-06-01 15:20:57,900 - INFO - Project ctest-TestBasicPolicy-01286794 not found, creating it 2025-06-01 15:20:58,337 - INFO - Created Project:ctest-TestBasicPolicy-01286794, ID : 483ff39a-d5fc-47c8-90f7-55df7146949f 2025-06-01 15:20:59,864 - INFO - ================================================================================ 2025-06-01 15:20:59,864 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-01 15:20:59,864 - 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-06-01 15:21:00,126 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-06-01 15:21:00,126 - INFO - Initial checks done. Running the testcase now 2025-06-01 15:21:00,126 - INFO - 2025-06-01 15:21:00,695 - DEBUG - Response for create_network : {'network': {'id': 'e64684dc-49e5-43c1-a431-3dc13fb70a4f', 'name': 'ctest-vn-89610305', 'tenant_id': '483ff39ad5fc47c890f755df7146949f', 'project_id': '483ff39ad5fc47c890f755df7146949f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01286794', 'ctest-vn-89610305'], 'port_security_enabled': True, 'description': ''}} 2025-06-01 15:21:00,900 - DEBUG - Response for create_subnet : {'subnet': {'id': '1ab5736f-99e4-49b8-82e9-ed06c8521d3a', 'name': '', 'tenant_id': '483ff39ad5fc47c890f755df7146949f', 'network_id': 'e64684dc-49e5-43c1-a431-3dc13fb70a4f', 'ip_version': 4, 'cidr': '186.216.225.128/26', 'allocation_pools': [{'start': '186.216.225.130', 'end': '186.216.225.190'}], 'gateway_ip': '186.216.225.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '186.216.225.130', 'tags': [], 'project_id': '483ff39ad5fc47c890f755df7146949f'}} 2025-06-01 15:21:00,917 - INFO - Created VN ctest-vn-89610305 2025-06-01 15:21:00,971 - DEBUG - VN ctest-vn-89610305 UUID is e64684dc-49e5-43c1-a431-3dc13fb70a4f 2025-06-01 15:21:01,283 - DEBUG - Response for create_network : {'network': {'id': '8c024d49-8e31-4854-85cc-3a4efb4d78f8', 'name': 'ctest-vn-78561682', 'tenant_id': '483ff39ad5fc47c890f755df7146949f', 'project_id': '483ff39ad5fc47c890f755df7146949f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01286794', 'ctest-vn-78561682'], 'port_security_enabled': True, 'description': ''}} 2025-06-01 15:21:01,424 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b258f262-e5f6-4563-bb8f-8432e85eafdf', 'name': '', 'tenant_id': '483ff39ad5fc47c890f755df7146949f', 'network_id': '8c024d49-8e31-4854-85cc-3a4efb4d78f8', 'ip_version': 4, 'cidr': '4.85.12.192/26', 'allocation_pools': [{'start': '4.85.12.194', 'end': '4.85.12.254'}], 'gateway_ip': '4.85.12.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.85.12.194', 'tags': [], 'project_id': '483ff39ad5fc47c890f755df7146949f'}} 2025-06-01 15:21:01,440 - INFO - Created VN ctest-vn-78561682 2025-06-01 15:21:01,491 - DEBUG - VN ctest-vn-78561682 UUID is 8c024d49-8e31-4854-85cc-3a4efb4d78f8 2025-06-01 15:21:01,643 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-01286794:ctest-vn-89610305, 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-01286794:ctest-vn-78561682, 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-06-01 15:21:01,936 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e64684dc-49e5-43c1-a431-3dc13fb70a4f', 'name': 'ctest-vn-89610305', 'tenant_id': '483ff39ad5fc47c890f755df7146949f', 'project_id': '483ff39ad5fc47c890f755df7146949f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1ab5736f-99e4-49b8-82e9-ed06c8521d3a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01286794', 'ctest-vn-89610305'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01286794', 'ctest-policy-allow-all-06317572']], 'subnet_ipam': [{'subnet_cidr': '186.216.225.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-01 15:21:02,167 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8c024d49-8e31-4854-85cc-3a4efb4d78f8', 'name': 'ctest-vn-78561682', 'tenant_id': '483ff39ad5fc47c890f755df7146949f', 'project_id': '483ff39ad5fc47c890f755df7146949f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b258f262-e5f6-4563-bb8f-8432e85eafdf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01286794', 'ctest-vn-78561682'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01286794', 'ctest-policy-allow-all-06317572']], 'subnet_ipam': [{'subnet_cidr': '4.85.12.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-01 15:21:02,315 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-01 15:21:02,659 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-01 15:21:02,687 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6de24177-6521-4d98-952d-4140375f1a5e 2025-06-01 15:21:02,700 - DEBUG - Requesting: http://10.0.0.38:8082/project/483ff39a-d5fc-47c8-90f7-55df7146949f 2025-06-01 15:21:02,779 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e64684dc-49e5-43c1-a431-3dc13fb70a4f 2025-06-01 15:21:02,791 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e64684dc-49e5-43c1-a431-3dc13fb70a4f 2025-06-01 15:21:02,800 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f7aa9f75-5cf3-45ab-ae83-386497d954c8 2025-06-01 15:21:02,807 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f7aa9f75-5cf3-45ab-ae83-386497d954c8 2025-06-01 15:21:02,814 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7c062f4b-7ab9-4717-ab35-aa2e9fd720db 2025-06-01 15:21:02,820 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-01 15:21:02,820 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e64684dc-49e5-43c1-a431-3dc13fb70a4f 2025-06-01 15:21:02,829 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f7aa9f75-5cf3-45ab-ae83-386497d954c8 2025-06-01 15:21:02,842 - INFO - Verified VN network id 8 for VN e64684dc-49e5-43c1-a431-3dc13fb70a4f 2025-06-01 15:21:02,843 - INFO - Verifications in API Server for VN ctest-vn-89610305 passed 2025-06-01 15:21:02,843 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e64684dc-49e5-43c1-a431-3dc13fb70a4f 2025-06-01 15:21:02,852 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f7aa9f75-5cf3-45ab-ae83-386497d954c8 2025-06-01 15:21:02,859 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f7aa9f75-5cf3-45ab-ae83-386497d954c8 2025-06-01 15:21:02,865 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7c062f4b-7ab9-4717-ab35-aa2e9fd720db 2025-06-01 15:21:02,877 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01286794:ctest-vn-89610305', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01286794', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16593095958760604609', 'uuid-lslong': '11831305596285946447'}, 'enable': 'true', 'created': '2025-06-01T15:21:00', 'last-modified': '2025-06-01T15:21:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.969291'} 2025-06-01 15:21:02,883 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-01 15:21:02,884 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89610305 passed 2025-06-01 15:21:02,884 - DEBUG - ====Verifying policy data for ctest-vn-89610305 in API_Server ====== 2025-06-01 15:21:02,884 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-01 15:21:02,889 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6de24177-6521-4d98-952d-4140375f1a5e 2025-06-01 15:21:02,900 - DEBUG - Requesting: http://10.0.0.38:8082/project/483ff39a-d5fc-47c8-90f7-55df7146949f 2025-06-01 15:21:02,973 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e64684dc-49e5-43c1-a431-3dc13fb70a4f 2025-06-01 15:21:02,984 - DEBUG - ==>Verifying data for policy with id: fabd7da6-b9aa-4250-8247-54d63b87f8ef, fqn: ['default-domain', 'ctest-TestBasicPolicy-01286794', 'ctest-policy-allow-all-06317572'] 2025-06-01 15:21:02,984 - INFO - VN ctest-vn-89610305 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-01 15:21:02,984 - DEBUG - Verifying the vn in opserver 2025-06-01 15:21:02,984 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01286794:ctest-vn-89610305 virtual network link through opserver 10.0.0.38 2025-06-01 15:21:02,984 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-06-01 15:21:03,319 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-06-01 15:21:03,375 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01286794:ctest-vn-89610305', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01286794:ctest-vn-89610305?flat'} 2025-06-01 15:21:03,375 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01286794:ctest-vn-89610305 is found in opserver 2025-06-01 15:21:03,386 - DEBUG - Do not have enough data to verify VN in agent 2025-06-01 15:21:03,391 - DEBUG - VRF ids for VN ctest-vn-89610305: {} 2025-06-01 15:21:03,391 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-01 15:21:03,396 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6de24177-6521-4d98-952d-4140375f1a5e 2025-06-01 15:21:03,408 - DEBUG - Requesting: http://10.0.0.38:8082/project/483ff39a-d5fc-47c8-90f7-55df7146949f 2025-06-01 15:21:03,482 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8c024d49-8e31-4854-85cc-3a4efb4d78f8 2025-06-01 15:21:03,495 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8c024d49-8e31-4854-85cc-3a4efb4d78f8 2025-06-01 15:21:03,505 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/53de1993-036f-4652-858a-0b6d60c7b420 2025-06-01 15:21:03,517 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/53de1993-036f-4652-858a-0b6d60c7b420 2025-06-01 15:21:03,524 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b161e4b5-7b43-4a1f-9d8d-e32ec32d2718 2025-06-01 15:21:03,530 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-01 15:21:03,530 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8c024d49-8e31-4854-85cc-3a4efb4d78f8 2025-06-01 15:21:03,543 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/53de1993-036f-4652-858a-0b6d60c7b420 2025-06-01 15:21:03,561 - INFO - Verified VN network id 9 for VN 8c024d49-8e31-4854-85cc-3a4efb4d78f8 2025-06-01 15:21:03,561 - INFO - Verifications in API Server for VN ctest-vn-78561682 passed 2025-06-01 15:21:03,561 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8c024d49-8e31-4854-85cc-3a4efb4d78f8 2025-06-01 15:21:03,571 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/53de1993-036f-4652-858a-0b6d60c7b420 2025-06-01 15:21:03,578 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/53de1993-036f-4652-858a-0b6d60c7b420 2025-06-01 15:21:03,587 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b161e4b5-7b43-4a1f-9d8d-e32ec32d2718 2025-06-01 15:21:03,602 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01286794:ctest-vn-78561682', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01286794', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10088711093576878164', 'uuid-lslong': '9641145013191407864'}, 'enable': 'true', 'created': '2025-06-01T15:21:01', 'last-modified': '2025-06-01T15:21:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.449060'} 2025-06-01 15:21:03,608 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-01 15:21:03,608 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78561682 passed 2025-06-01 15:21:03,608 - DEBUG - ====Verifying policy data for ctest-vn-78561682 in API_Server ====== 2025-06-01 15:21:03,608 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-01 15:21:03,615 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6de24177-6521-4d98-952d-4140375f1a5e 2025-06-01 15:21:03,629 - DEBUG - Requesting: http://10.0.0.38:8082/project/483ff39a-d5fc-47c8-90f7-55df7146949f 2025-06-01 15:21:03,717 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8c024d49-8e31-4854-85cc-3a4efb4d78f8 2025-06-01 15:21:03,731 - DEBUG - ==>Verifying data for policy with id: fabd7da6-b9aa-4250-8247-54d63b87f8ef, fqn: ['default-domain', 'ctest-TestBasicPolicy-01286794', 'ctest-policy-allow-all-06317572'] 2025-06-01 15:21:03,731 - INFO - VN ctest-vn-78561682 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-01 15:21:03,731 - DEBUG - Verifying the vn in opserver 2025-06-01 15:21:03,731 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01286794:ctest-vn-78561682 virtual network link through opserver 10.0.0.38 2025-06-01 15:21:03,731 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-06-01 15:21:03,743 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01286794:ctest-vn-78561682', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01286794:ctest-vn-78561682?flat'} 2025-06-01 15:21:03,743 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01286794:ctest-vn-78561682 is found in opserver 2025-06-01 15:21:03,754 - DEBUG - Do not have enough data to verify VN in agent 2025-06-01 15:21:03,759 - DEBUG - VRF ids for VN ctest-vn-78561682: {} 2025-06-01 15:21:03,812 - DEBUG - Services list from nova: [, , ] 2025-06-01 15:21:04,889 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3380-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3380-1) 2025-06-01 15:21:06,229 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3380-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3380-1) 2025-06-01 15:21:06,229 - INFO - Waiting for VM ctest-TestBasicPolicy-01286794-04575616 to be up.. 2025-06-01 15:21:06,310 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-01 15:21:11,384 - DEBUG - VM is in ACTIVE state now 2025-06-01 15:21:11,384 - INFO - VM name : ctest-TestBasicPolicy-01286794-04575616 2025-06-01 15:21:11,454 - DEBUG - VM ctest-TestBasicPolicy-01286794-04575616 ID is 9d54e0b5-b60a-4d42-8087-0c6cc457d938 2025-06-01 15:21:11,472 - DEBUG - VM ctest-TestBasicPolicy-01286794-04575616 launched on Node cn-jenkins-deploy-platform-ansible-os-3380-1 2025-06-01 15:21:11,543 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/9d54e0b5-b60a-4d42-8087-0c6cc457d938 2025-06-01 15:21:11,551 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/ea1bff66-062f-4988-949d-6c4af7ff416a 2025-06-01 15:21:14,810 - 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 1025ms') 2025-06-01 15:21:14,810 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-01286794-04575616 failed! 2025-06-01 15:21:14,864 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-01286794:ctest-vn-89610305 is 186.216.225.129 and allocation pool is NOT set 2025-06-01 15:21:16,921 - 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=1.72 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 = 1.724/5.321/8.919/3.597 ms') 2025-06-01 15:21:16,921 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-01286794-04575616 passed 2025-06-01 15:21:17,075 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-01 15:21:17,076 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-01286794-04575616, IP 186.216.225.131, Port 22 2025-06-01 15:21:17,131 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-06-01 15:21:17,207 - DEBUG - VM ctest-TestBasicPolicy-01286794-04575616 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-01 15:21:22,207 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-01 15:21:22,208 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-01286794-04575616, IP 186.216.225.131, Port 22 2025-06-01 15:21:22,363 - DEBUG - VM ctest-TestBasicPolicy-01286794-04575616 is ready for SSH connections 2025-06-01 15:21:22,363 - INFO - Waiting for VM ctest-TestBasicPolicy-01286794-69282600 to be up.. 2025-06-01 15:21:22,433 - DEBUG - VM is in ACTIVE state now 2025-06-01 15:21:22,433 - INFO - VM name : ctest-TestBasicPolicy-01286794-69282600 2025-06-01 15:21:22,499 - DEBUG - VM ctest-TestBasicPolicy-01286794-69282600 ID is 03675cdb-1011-4b75-b2cd-38deaac2fda8 2025-06-01 15:21:22,499 - DEBUG - VM ctest-TestBasicPolicy-01286794-69282600 launched on Node cn-jenkins-deploy-platform-ansible-os-3380-1 2025-06-01 15:21:22,567 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/03675cdb-1011-4b75-b2cd-38deaac2fda8 2025-06-01 15:21:22,574 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/7ae35ddf-879b-4162-9b0c-7eef8d3c2733 2025-06-01 15:21:23,812 - 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.83 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.326 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.326/1.576/2.827/1.250 ms') 2025-06-01 15:21:23,812 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-01286794-69282600 passed 2025-06-01 15:21:23,959 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-01 15:21:23,959 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-01286794-69282600, IP 4.85.12.195, Port 22 2025-06-01 15:21:24,119 - DEBUG - VM ctest-TestBasicPolicy-01286794-69282600 is ready for SSH connections 2025-06-01 15:21:24,119 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-01 15:21:24,119 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 4.85.12.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-06-01 15:21:24,119 - DEBUG - ping -s 56 -c 3 -W 1 4.85.12.195 2025-06-01 15:21:27,835 - DEBUG - PING 4.85.12.195 (4.85.12.195): 56 data bytes 64 bytes from 4.85.12.195: seq=0 ttl=63 time=3.316 ms 64 bytes from 4.85.12.195: seq=1 ttl=63 time=0.946 ms 64 bytes from 4.85.12.195: seq=2 ttl=63 time=0.805 ms --- 4.85.12.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.805/1.689/3.316 ms 2025-06-01 15:21:27,835 - INFO - Ping to IP 4.85.12.195 from VM ctest-TestBasicPolicy-01286794-04575616 passed 2025-06-01 15:21:28,011 - DEBUG - Policy Update Response {"network-policy": {"uuid": "fabd7da6-b9aa-4250-8247-54d63b87f8ef", "href": "http://10.0.0.38:8082/network-policy/fabd7da6-b9aa-4250-8247-54d63b87f8ef"}} 2025-06-01 15:21:28,011 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-01 15:21:28,011 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 4.85.12.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-06-01 15:21:28,012 - DEBUG - ping -s 56 -c 3 -W 1 4.85.12.195 2025-06-01 15:21:31,231 - DEBUG - PING 4.85.12.195 (4.85.12.195): 56 data bytes 64 bytes from 4.85.12.195: seq=0 ttl=63 time=1.346 ms --- 4.85.12.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.346/1.346/1.346 ms 2025-06-01 15:21:31,232 - WARNING - Ping to IP 4.85.12.195 from VM ctest-TestBasicPolicy-01286794-04575616 failed 2025-06-01 15:21:31,232 - INFO - Deleting VM ctest-TestBasicPolicy-01286794-69282600 2025-06-01 15:21:31,301 - INFO - Deleting VM ctest-TestBasicPolicy-01286794-04575616 2025-06-01 15:21:31,713 - INFO - Deleted policy ctest-policy-allow-all-06317572 2025-06-01 15:21:31,713 - INFO - Deleting VN ctest-vn-78561682 2025-06-01 15:21:31,754 - DEBUG - VN 8c024d49-8e31-4854-85cc-3a4efb4d78f8 still in use: Unable to complete operation on network 8c024d49-8e31-4854-85cc-3a4efb4d78f8. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6a348eb0-7dc8-4134-96bf-398aa184ab5a'] 2025-06-01 15:21:31,754 - WARNING - Deleting VN ctest-vn-78561682 failed..Will retry 2025-06-01 15:21:33,875 - DEBUG - Response for deleting network () 2025-06-01 15:21:33,875 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/53de1993-036f-4652-858a-0b6d60c7b420 2025-06-01 15:21:33,884 - DEBUG - Response Code: 404 2025-06-01 15:21:33,884 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-01 15:21:33,890 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6de24177-6521-4d98-952d-4140375f1a5e 2025-06-01 15:21:33,952 - DEBUG - Requesting: http://10.0.0.38:8082/project/483ff39a-d5fc-47c8-90f7-55df7146949f 2025-06-01 15:21:34,037 - INFO - Validated that VN ctest-vn-78561682 is not found in API Server 2025-06-01 15:21:34,052 - DEBUG - VN ctest-vn-78561682 is not present in Agent 10.0.0.38 2025-06-01 15:21:34,052 - INFO - Validated that VN ctest-vn-78561682 is not in any agent 2025-06-01 15:21:34,071 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-78561682 info 2025-06-01 15:21:34,071 - INFO - Deleting VN ctest-vn-89610305 2025-06-01 15:21:34,225 - DEBUG - Response for deleting network () 2025-06-01 15:21:34,226 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f7aa9f75-5cf3-45ab-ae83-386497d954c8 2025-06-01 15:21:34,233 - DEBUG - Response Code: 404 2025-06-01 15:21:34,234 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-01 15:21:34,239 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6de24177-6521-4d98-952d-4140375f1a5e 2025-06-01 15:21:34,297 - DEBUG - Requesting: http://10.0.0.38:8082/project/483ff39a-d5fc-47c8-90f7-55df7146949f 2025-06-01 15:21:34,377 - INFO - Validated that VN ctest-vn-89610305 is not found in API Server 2025-06-01 15:21:34,389 - DEBUG - VN ctest-vn-89610305 is not present in Agent 10.0.0.38 2025-06-01 15:21:34,389 - INFO - Validated that VN ctest-vn-89610305 is not in any agent 2025-06-01 15:21:34,406 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-89610305 info 2025-06-01 15:21:34,669 - DEBUG - No XMPP flaps were noticed during the test 2025-06-01 15:21:34,669 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-06-01 15:21:34,669 - INFO - -------------------------------------------------------------------------------- 2025-06-01 15:21:35,383 - INFO - Deleted project: ctest-TestBasicPolicy-01286794, ID : 483ff39a-d5fc-47c8-90f7-55df7146949f