2025-07-09 18:01:05,233 - INFO - Domain Default found not creating 2025-07-09 18:01:05,407 - INFO - Project ctest-TestBasicPolicy-01161364 not found, creating it 2025-07-09 18:01:05,916 - INFO - Created Project:ctest-TestBasicPolicy-01161364, ID : 34579ced-adb4-4d83-a3a8-acc3511f0727 2025-07-09 18:01:07,414 - INFO - ================================================================================ 2025-07-09 18:01:07,414 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-07-09 18:01:07,414 - 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-07-09 18:01:07,670 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.14': '0'}} with 2025-07-09 18:01:07,671 - INFO - Initial checks done. Running the testcase now 2025-07-09 18:01:07,671 - INFO - 2025-07-09 18:01:08,217 - DEBUG - Response for create_network : {'network': {'id': 'b45480cc-b220-4e0f-822e-db52c1fe8621', 'name': 'ctest-vn-94941738', 'tenant_id': '34579cedadb44d83a3a8acc3511f0727', 'project_id': '34579cedadb44d83a3a8acc3511f0727', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01161364', 'ctest-vn-94941738'], 'port_security_enabled': True, 'description': ''}} 2025-07-09 18:01:08,384 - DEBUG - Response for create_subnet : {'subnet': {'id': '7593637a-4a14-4d36-b23a-b08e9421b3a5', 'name': '', 'tenant_id': '34579cedadb44d83a3a8acc3511f0727', 'network_id': 'b45480cc-b220-4e0f-822e-db52c1fe8621', 'ip_version': 4, 'cidr': '123.116.71.192/26', 'allocation_pools': [{'start': '123.116.71.194', 'end': '123.116.71.254'}], 'gateway_ip': '123.116.71.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.116.71.194', 'tags': [], 'project_id': '34579cedadb44d83a3a8acc3511f0727'}} 2025-07-09 18:01:08,407 - INFO - Created VN ctest-vn-94941738 2025-07-09 18:01:08,461 - DEBUG - VN ctest-vn-94941738 UUID is b45480cc-b220-4e0f-822e-db52c1fe8621 2025-07-09 18:01:08,789 - DEBUG - Response for create_network : {'network': {'id': 'b6aa16c1-b71e-499d-b33a-5c35a6874a78', 'name': 'ctest-vn-47251189', 'tenant_id': '34579cedadb44d83a3a8acc3511f0727', 'project_id': '34579cedadb44d83a3a8acc3511f0727', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01161364', 'ctest-vn-47251189'], 'port_security_enabled': True, 'description': ''}} 2025-07-09 18:01:09,020 - DEBUG - Response for create_subnet : {'subnet': {'id': '3df93e45-8278-472f-bbcd-3f53e47f1a14', 'name': '', 'tenant_id': '34579cedadb44d83a3a8acc3511f0727', 'network_id': 'b6aa16c1-b71e-499d-b33a-5c35a6874a78', 'ip_version': 4, 'cidr': '193.242.153.128/26', 'allocation_pools': [{'start': '193.242.153.130', 'end': '193.242.153.190'}], 'gateway_ip': '193.242.153.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '193.242.153.130', 'tags': [], 'project_id': '34579cedadb44d83a3a8acc3511f0727'}} 2025-07-09 18:01:09,040 - INFO - Created VN ctest-vn-47251189 2025-07-09 18:01:09,093 - DEBUG - VN ctest-vn-47251189 UUID is b6aa16c1-b71e-499d-b33a-5c35a6874a78 2025-07-09 18:01:09,204 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-01161364:ctest-vn-94941738, 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-01161364:ctest-vn-47251189, 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-07-09 18:01:09,501 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b45480cc-b220-4e0f-822e-db52c1fe8621', 'name': 'ctest-vn-94941738', 'tenant_id': '34579cedadb44d83a3a8acc3511f0727', 'project_id': '34579cedadb44d83a3a8acc3511f0727', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7593637a-4a14-4d36-b23a-b08e9421b3a5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01161364', 'ctest-vn-94941738'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01161364', 'ctest-policy-allow-all-30548988']], 'subnet_ipam': [{'subnet_cidr': '123.116.71.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-09 18:01:09,734 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b6aa16c1-b71e-499d-b33a-5c35a6874a78', 'name': 'ctest-vn-47251189', 'tenant_id': '34579cedadb44d83a3a8acc3511f0727', 'project_id': '34579cedadb44d83a3a8acc3511f0727', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3df93e45-8278-472f-bbcd-3f53e47f1a14'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01161364', 'ctest-vn-47251189'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01161364', 'ctest-policy-allow-all-30548988']], 'subnet_ipam': [{'subnet_cidr': '193.242.153.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-09 18:01:09,905 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-07-09 18:01:10,203 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-07-09 18:01:10,231 - DEBUG - Requesting: http://10.0.0.49:8082/domain/c951c737-1849-435c-9807-6b2a8a2f042e 2025-07-09 18:01:10,245 - DEBUG - Requesting: http://10.0.0.49:8082/project/34579ced-adb4-4d83-a3a8-acc3511f0727 2025-07-09 18:01:10,323 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b45480cc-b220-4e0f-822e-db52c1fe8621 2025-07-09 18:01:10,339 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b45480cc-b220-4e0f-822e-db52c1fe8621 2025-07-09 18:01:10,350 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7ca326a1-72c1-4024-9fda-a12bd727f4a9 2025-07-09 18:01:10,358 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7ca326a1-72c1-4024-9fda-a12bd727f4a9 2025-07-09 18:01:10,365 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/c5c546f4-c836-4828-adbd-efe364b564c0 2025-07-09 18:01:10,372 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-09 18:01:10,372 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b45480cc-b220-4e0f-822e-db52c1fe8621 2025-07-09 18:01:10,382 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7ca326a1-72c1-4024-9fda-a12bd727f4a9 2025-07-09 18:01:10,396 - INFO - Verified VN network id 8 for VN b45480cc-b220-4e0f-822e-db52c1fe8621 2025-07-09 18:01:10,396 - INFO - Verifications in API Server for VN ctest-vn-94941738 passed 2025-07-09 18:01:10,396 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b45480cc-b220-4e0f-822e-db52c1fe8621 2025-07-09 18:01:10,405 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7ca326a1-72c1-4024-9fda-a12bd727f4a9 2025-07-09 18:01:10,413 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7ca326a1-72c1-4024-9fda-a12bd727f4a9 2025-07-09 18:01:10,420 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/c5c546f4-c836-4828-adbd-efe364b564c0 2025-07-09 18:01:10,432 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01161364:ctest-vn-94941738', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01161364', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12994152441520868879', 'uuid-lslong': '9380676222347806241'}, 'enable': 'true', 'created': '2025-07-09T18:01:08', 'last-modified': '2025-07-09T18:01:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.954202'} 2025-07-09 18:01:10,439 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-09 18:01:10,440 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94941738 passed 2025-07-09 18:01:10,440 - DEBUG - ====Verifying policy data for ctest-vn-94941738 in API_Server ====== 2025-07-09 18:01:10,440 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-07-09 18:01:10,446 - DEBUG - Requesting: http://10.0.0.49:8082/domain/c951c737-1849-435c-9807-6b2a8a2f042e 2025-07-09 18:01:10,457 - DEBUG - Requesting: http://10.0.0.49:8082/project/34579ced-adb4-4d83-a3a8-acc3511f0727 2025-07-09 18:01:10,536 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b45480cc-b220-4e0f-822e-db52c1fe8621 2025-07-09 18:01:10,546 - DEBUG - ==>Verifying data for policy with id: 138382b4-c768-4822-b78e-2be058b50426, fqn: ['default-domain', 'ctest-TestBasicPolicy-01161364', 'ctest-policy-allow-all-30548988'] 2025-07-09 18:01:10,546 - INFO - VN ctest-vn-94941738 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-09 18:01:10,546 - DEBUG - Verifying the vn in opserver 2025-07-09 18:01:10,546 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01161364:ctest-vn-94941738 virtual network link through opserver 10.0.0.49 2025-07-09 18:01:10,546 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-07-09 18:01:10,838 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-07-09 18:01:10,894 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01161364:ctest-vn-94941738', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01161364:ctest-vn-94941738?flat'} 2025-07-09 18:01:10,894 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01161364:ctest-vn-94941738 is found in opserver 2025-07-09 18:01:10,905 - DEBUG - Do not have enough data to verify VN in agent 2025-07-09 18:01:10,911 - DEBUG - VRF ids for VN ctest-vn-94941738: {} 2025-07-09 18:01:10,911 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-07-09 18:01:10,918 - DEBUG - Requesting: http://10.0.0.49:8082/domain/c951c737-1849-435c-9807-6b2a8a2f042e 2025-07-09 18:01:10,929 - DEBUG - Requesting: http://10.0.0.49:8082/project/34579ced-adb4-4d83-a3a8-acc3511f0727 2025-07-09 18:01:11,005 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b6aa16c1-b71e-499d-b33a-5c35a6874a78 2025-07-09 18:01:11,018 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b6aa16c1-b71e-499d-b33a-5c35a6874a78 2025-07-09 18:01:11,029 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/32db0bf5-0911-40fd-ba61-a70a1e73f770 2025-07-09 18:01:11,037 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/32db0bf5-0911-40fd-ba61-a70a1e73f770 2025-07-09 18:01:11,044 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/7429eef4-8155-4993-9ec1-2447ed508d5b 2025-07-09 18:01:11,052 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-09 18:01:11,052 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b6aa16c1-b71e-499d-b33a-5c35a6874a78 2025-07-09 18:01:11,062 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/32db0bf5-0911-40fd-ba61-a70a1e73f770 2025-07-09 18:01:11,077 - INFO - Verified VN network id 9 for VN b6aa16c1-b71e-499d-b33a-5c35a6874a78 2025-07-09 18:01:11,077 - INFO - Verifications in API Server for VN ctest-vn-47251189 passed 2025-07-09 18:01:11,077 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b6aa16c1-b71e-499d-b33a-5c35a6874a78 2025-07-09 18:01:11,086 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/32db0bf5-0911-40fd-ba61-a70a1e73f770 2025-07-09 18:01:11,093 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/32db0bf5-0911-40fd-ba61-a70a1e73f770 2025-07-09 18:01:11,100 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/7429eef4-8155-4993-9ec1-2447ed508d5b 2025-07-09 18:01:11,112 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01161364:ctest-vn-47251189', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01161364', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13162357882200410525', 'uuid-lslong': '12914736266935224952'}, 'enable': 'true', 'created': '2025-07-09T18:01:08', 'last-modified': '2025-07-09T18:01:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.399813'} 2025-07-09 18:01:11,119 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-09 18:01:11,119 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47251189 passed 2025-07-09 18:01:11,119 - DEBUG - ====Verifying policy data for ctest-vn-47251189 in API_Server ====== 2025-07-09 18:01:11,119 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-07-09 18:01:11,124 - DEBUG - Requesting: http://10.0.0.49:8082/domain/c951c737-1849-435c-9807-6b2a8a2f042e 2025-07-09 18:01:11,137 - DEBUG - Requesting: http://10.0.0.49:8082/project/34579ced-adb4-4d83-a3a8-acc3511f0727 2025-07-09 18:01:11,213 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b6aa16c1-b71e-499d-b33a-5c35a6874a78 2025-07-09 18:01:11,227 - DEBUG - ==>Verifying data for policy with id: 138382b4-c768-4822-b78e-2be058b50426, fqn: ['default-domain', 'ctest-TestBasicPolicy-01161364', 'ctest-policy-allow-all-30548988'] 2025-07-09 18:01:11,227 - INFO - VN ctest-vn-47251189 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-09 18:01:11,227 - DEBUG - Verifying the vn in opserver 2025-07-09 18:01:11,227 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01161364:ctest-vn-47251189 virtual network link through opserver 10.0.0.49 2025-07-09 18:01:11,227 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-07-09 18:01:11,241 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01161364:ctest-vn-47251189', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01161364:ctest-vn-47251189?flat'} 2025-07-09 18:01:11,241 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01161364:ctest-vn-47251189 is found in opserver 2025-07-09 18:01:11,254 - DEBUG - Do not have enough data to verify VN in agent 2025-07-09 18:01:11,260 - DEBUG - VRF ids for VN ctest-vn-47251189: {} 2025-07-09 18:01:11,313 - DEBUG - Services list from nova: [, , ] 2025-07-09 18:01:12,310 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3620-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3620-1) 2025-07-09 18:01:13,513 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3620-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3620-1) 2025-07-09 18:01:13,514 - INFO - Waiting for VM ctest-TestBasicPolicy-01161364-15693840 to be up.. 2025-07-09 18:01:13,586 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-09 18:01:18,671 - DEBUG - VM is in ACTIVE state now 2025-07-09 18:01:18,671 - INFO - VM name : ctest-TestBasicPolicy-01161364-15693840 2025-07-09 18:01:18,745 - DEBUG - VM ctest-TestBasicPolicy-01161364-15693840 ID is b7b0e762-814b-4ffb-9b96-713dcd8cfb01 2025-07-09 18:01:18,763 - DEBUG - VM ctest-TestBasicPolicy-01161364-15693840 launched on Node cn-jenkins-deploy-platform-ansible-os-3620-1 2025-07-09 18:01:18,843 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/b7b0e762-814b-4ffb-9b96-713dcd8cfb01 2025-07-09 18:01:18,854 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/d3c33431-43c1-4817-bcfd-44eb5e14d184 2025-07-09 18:01:22,099 - 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-07-09 18:01:22,099 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-01161364-15693840 failed! 2025-07-09 18:01:22,153 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-01161364:ctest-vn-94941738 is 123.116.71.193 and allocation pool is NOT set 2025-07-09 18:01:24,211 - 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=10.2 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.24 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 = 2.238/6.229/10.220/3.991 ms') 2025-07-09 18:01:24,211 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-01161364-15693840 passed 2025-07-09 18:01:24,369 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-09 18:01:24,369 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-01161364-15693840, IP 123.116.71.195, Port 22 2025-07-09 18:01:24,434 - 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-07-09 18:01:24,508 - DEBUG - VM ctest-TestBasicPolicy-01161364-15693840 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-09 18:01:29,508 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-09 18:01:29,508 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-01161364-15693840, IP 123.116.71.195, Port 22 2025-07-09 18:01:29,661 - DEBUG - VM ctest-TestBasicPolicy-01161364-15693840 is ready for SSH connections 2025-07-09 18:01:29,661 - INFO - Waiting for VM ctest-TestBasicPolicy-01161364-25077555 to be up.. 2025-07-09 18:01:29,733 - DEBUG - VM is in ACTIVE state now 2025-07-09 18:01:29,733 - INFO - VM name : ctest-TestBasicPolicy-01161364-25077555 2025-07-09 18:01:29,805 - DEBUG - VM ctest-TestBasicPolicy-01161364-25077555 ID is 494f95a9-554d-472f-8607-21ee6babf102 2025-07-09 18:01:29,805 - DEBUG - VM ctest-TestBasicPolicy-01161364-25077555 launched on Node cn-jenkins-deploy-platform-ansible-os-3620-1 2025-07-09 18:01:29,876 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/494f95a9-554d-472f-8607-21ee6babf102 2025-07-09 18:01:29,885 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/18a761ef-400a-4e78-b7bc-34e8f271c76a 2025-07-09 18:01:31,119 - 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.67 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.355 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.355/1.512/2.670/1.157 ms') 2025-07-09 18:01:31,119 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-01161364-25077555 passed 2025-07-09 18:01:31,273 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-09 18:01:31,273 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-01161364-25077555, IP 193.242.153.131, Port 22 2025-07-09 18:01:31,432 - DEBUG - VM ctest-TestBasicPolicy-01161364-25077555 is ready for SSH connections 2025-07-09 18:01:31,432 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-09 18:01:31,432 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 193.242.153.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.49, gateway password: c0ntrail123 2025-07-09 18:01:31,433 - DEBUG - ping -s 56 -c 3 -W 1 193.242.153.131 2025-07-09 18:01:35,524 - DEBUG - PING 193.242.153.131 (193.242.153.131): 56 data bytes 64 bytes from 193.242.153.131: seq=0 ttl=63 time=3.916 ms 64 bytes from 193.242.153.131: seq=1 ttl=63 time=0.737 ms 64 bytes from 193.242.153.131: seq=2 ttl=63 time=0.812 ms --- 193.242.153.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.737/1.821/3.916 ms 2025-07-09 18:01:35,524 - INFO - Ping to IP 193.242.153.131 from VM ctest-TestBasicPolicy-01161364-15693840 passed 2025-07-09 18:01:35,700 - DEBUG - Policy Update Response {"network-policy": {"uuid": "138382b4-c768-4822-b78e-2be058b50426", "href": "http://10.0.0.49:8082/network-policy/138382b4-c768-4822-b78e-2be058b50426"}} 2025-07-09 18:01:35,701 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-09 18:01:35,701 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 193.242.153.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.49, gateway password: c0ntrail123 2025-07-09 18:01:35,701 - DEBUG - ping -s 56 -c 3 -W 1 193.242.153.131 2025-07-09 18:01:38,922 - DEBUG - PING 193.242.153.131 (193.242.153.131): 56 data bytes 64 bytes from 193.242.153.131: seq=0 ttl=63 time=1.435 ms --- 193.242.153.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.435/1.435/1.435 ms 2025-07-09 18:01:38,922 - WARNING - Ping to IP 193.242.153.131 from VM ctest-TestBasicPolicy-01161364-15693840 failed 2025-07-09 18:01:38,922 - INFO - Deleting VM ctest-TestBasicPolicy-01161364-25077555 2025-07-09 18:01:38,988 - INFO - Deleting VM ctest-TestBasicPolicy-01161364-15693840 2025-07-09 18:01:39,392 - INFO - Deleted policy ctest-policy-allow-all-30548988 2025-07-09 18:01:39,392 - INFO - Deleting VN ctest-vn-47251189 2025-07-09 18:01:39,430 - DEBUG - VN b6aa16c1-b71e-499d-b33a-5c35a6874a78 still in use: Unable to complete operation on network b6aa16c1-b71e-499d-b33a-5c35a6874a78. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b5e4fbb5-8a7f-4b3b-901d-e4c27acf1833'] 2025-07-09 18:01:39,431 - WARNING - Deleting VN ctest-vn-47251189 failed..Will retry 2025-07-09 18:01:41,545 - DEBUG - Response for deleting network () 2025-07-09 18:01:41,545 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/32db0bf5-0911-40fd-ba61-a70a1e73f770 2025-07-09 18:01:41,554 - DEBUG - Response Code: 404 2025-07-09 18:01:41,554 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-07-09 18:01:41,559 - DEBUG - Requesting: http://10.0.0.49:8082/domain/c951c737-1849-435c-9807-6b2a8a2f042e 2025-07-09 18:01:41,617 - DEBUG - Requesting: http://10.0.0.49:8082/project/34579ced-adb4-4d83-a3a8-acc3511f0727 2025-07-09 18:01:41,691 - INFO - Validated that VN ctest-vn-47251189 is not found in API Server 2025-07-09 18:01:41,703 - DEBUG - VN ctest-vn-47251189 is not present in Agent 10.0.0.49 2025-07-09 18:01:41,703 - INFO - Validated that VN ctest-vn-47251189 is not in any agent 2025-07-09 18:01:41,719 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-47251189 info 2025-07-09 18:01:41,720 - INFO - Deleting VN ctest-vn-94941738 2025-07-09 18:01:41,840 - DEBUG - Response for deleting network () 2025-07-09 18:01:41,840 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7ca326a1-72c1-4024-9fda-a12bd727f4a9 2025-07-09 18:01:41,849 - DEBUG - Response Code: 404 2025-07-09 18:01:41,849 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-07-09 18:01:41,855 - DEBUG - Requesting: http://10.0.0.49:8082/domain/c951c737-1849-435c-9807-6b2a8a2f042e 2025-07-09 18:01:41,912 - DEBUG - Requesting: http://10.0.0.49:8082/project/34579ced-adb4-4d83-a3a8-acc3511f0727 2025-07-09 18:01:41,985 - INFO - Validated that VN ctest-vn-94941738 is not found in API Server 2025-07-09 18:01:41,995 - DEBUG - VN ctest-vn-94941738 is not present in Agent 10.0.0.49 2025-07-09 18:01:41,995 - INFO - Validated that VN ctest-vn-94941738 is not in any agent 2025-07-09 18:01:42,012 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-94941738 info 2025-07-09 18:01:42,268 - DEBUG - No XMPP flaps were noticed during the test
2025-07-09 18:01:42,268 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-07-09 18:01:42,268 - INFO - -------------------------------------------------------------------------------- 2025-07-09 18:01:42,966 - INFO - Deleted project: ctest-TestBasicPolicy-01161364, ID : 34579ced-adb4-4d83-a3a8-acc3511f0727