2025-04-15 16:19:50,649 - INFO - Domain Default found not creating 2025-04-15 16:19:50,794 - INFO - Project ctest-TestBasicPolicy-58757307 not found, creating it 2025-04-15 16:19:51,251 - INFO - Created Project:ctest-TestBasicPolicy-58757307, ID : 98390195-f2ba-4514-818d-69dc71e74215 2025-04-15 16:19:52,723 - INFO - ================================================================================ 2025-04-15 16:19:52,723 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-15 16:19:52,723 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2025-04-15 16:19:52,976 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.0.0.65': '0'}} with 2025-04-15 16:19:52,976 - INFO - Initial checks done. Running the testcase now 2025-04-15 16:19:52,977 - INFO - 2025-04-15 16:19:53,531 - DEBUG - Response for create_network : {'network': {'id': '8268ee5d-5b4f-4b7b-b3c4-ff6f39b26926', 'name': 'ctest-vn-76549126', 'tenant_id': '98390195f2ba4514818d69dc71e74215', 'project_id': '98390195f2ba4514818d69dc71e74215', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58757307', 'ctest-vn-76549126'], 'port_security_enabled': True, 'description': ''}} 2025-04-15 16:19:53,700 - DEBUG - Response for create_subnet : {'subnet': {'id': '66dbbe3f-c1a7-4dee-9383-8093297fe349', 'name': '', 'tenant_id': '98390195f2ba4514818d69dc71e74215', 'network_id': '8268ee5d-5b4f-4b7b-b3c4-ff6f39b26926', 'ip_version': 4, 'cidr': '64.0.177.128/26', 'allocation_pools': [{'start': '64.0.177.130', 'end': '64.0.177.190'}], 'gateway_ip': '64.0.177.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '64.0.177.130', 'tags': [], 'project_id': '98390195f2ba4514818d69dc71e74215'}} 2025-04-15 16:19:53,719 - INFO - Created VN ctest-vn-76549126 2025-04-15 16:19:53,775 - DEBUG - VN ctest-vn-76549126 UUID is 8268ee5d-5b4f-4b7b-b3c4-ff6f39b26926 2025-04-15 16:19:54,132 - DEBUG - Response for create_network : {'network': {'id': 'e2d77f7f-e239-4bd1-8996-a92e6933c724', 'name': 'ctest-vn-26325574', 'tenant_id': '98390195f2ba4514818d69dc71e74215', 'project_id': '98390195f2ba4514818d69dc71e74215', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58757307', 'ctest-vn-26325574'], 'port_security_enabled': True, 'description': ''}} 2025-04-15 16:19:54,312 - DEBUG - Response for create_subnet : {'subnet': {'id': '169f40bd-ff26-42d7-b90c-7745b9c2ea83', 'name': '', 'tenant_id': '98390195f2ba4514818d69dc71e74215', 'network_id': 'e2d77f7f-e239-4bd1-8996-a92e6933c724', 'ip_version': 4, 'cidr': '46.166.0.128/26', 'allocation_pools': [{'start': '46.166.0.130', 'end': '46.166.0.190'}], 'gateway_ip': '46.166.0.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '46.166.0.130', 'tags': [], 'project_id': '98390195f2ba4514818d69dc71e74215'}} 2025-04-15 16:19:54,330 - INFO - Created VN ctest-vn-26325574 2025-04-15 16:19:54,379 - DEBUG - VN ctest-vn-26325574 UUID is e2d77f7f-e239-4bd1-8996-a92e6933c724 2025-04-15 16:19:54,511 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-58757307:ctest-vn-76549126, 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-58757307:ctest-vn-26325574, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2025-04-15 16:19:54,827 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8268ee5d-5b4f-4b7b-b3c4-ff6f39b26926', 'name': 'ctest-vn-76549126', 'tenant_id': '98390195f2ba4514818d69dc71e74215', 'project_id': '98390195f2ba4514818d69dc71e74215', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['66dbbe3f-c1a7-4dee-9383-8093297fe349'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58757307', 'ctest-vn-76549126'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58757307', 'ctest-policy-allow-all-73296491']], 'subnet_ipam': [{'subnet_cidr': '64.0.177.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-15 16:19:55,108 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e2d77f7f-e239-4bd1-8996-a92e6933c724', 'name': 'ctest-vn-26325574', 'tenant_id': '98390195f2ba4514818d69dc71e74215', 'project_id': '98390195f2ba4514818d69dc71e74215', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['169f40bd-ff26-42d7-b90c-7745b9c2ea83'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58757307', 'ctest-vn-26325574'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58757307', 'ctest-policy-allow-all-73296491']], 'subnet_ipam': [{'subnet_cidr': '46.166.0.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-15 16:19:55,251 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-04-15 16:19:55,554 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-04-15 16:19:55,584 - DEBUG - Requesting: http://10.0.0.65:8082/domain/29ed20a0-debe-424b-8fd5-2b37b09e2008 2025-04-15 16:19:55,596 - DEBUG - Requesting: http://10.0.0.65:8082/project/98390195-f2ba-4514-818d-69dc71e74215 2025-04-15 16:19:55,672 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8268ee5d-5b4f-4b7b-b3c4-ff6f39b26926 2025-04-15 16:19:55,684 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8268ee5d-5b4f-4b7b-b3c4-ff6f39b26926 2025-04-15 16:19:55,694 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/93aa70ff-f158-42e9-94aa-44c88ff3ab98 2025-04-15 16:19:55,705 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/93aa70ff-f158-42e9-94aa-44c88ff3ab98 2025-04-15 16:19:55,712 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/29f5151f-9e76-4661-be14-1a4edfb03b17 2025-04-15 16:19:55,719 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-15 16:19:55,719 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8268ee5d-5b4f-4b7b-b3c4-ff6f39b26926 2025-04-15 16:19:55,729 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/93aa70ff-f158-42e9-94aa-44c88ff3ab98 2025-04-15 16:19:55,745 - INFO - Verified VN network id 7 for VN 8268ee5d-5b4f-4b7b-b3c4-ff6f39b26926 2025-04-15 16:19:55,745 - INFO - Verifications in API Server for VN ctest-vn-76549126 passed 2025-04-15 16:19:55,745 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8268ee5d-5b4f-4b7b-b3c4-ff6f39b26926 2025-04-15 16:19:55,755 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/93aa70ff-f158-42e9-94aa-44c88ff3ab98 2025-04-15 16:19:55,761 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/93aa70ff-f158-42e9-94aa-44c88ff3ab98 2025-04-15 16:19:55,768 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/29f5151f-9e76-4661-be14-1a4edfb03b17 2025-04-15 16:19:55,782 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58757307:ctest-vn-76549126', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58757307', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9397022707239832443', 'uuid-lslong': '12953759281398835494'}, 'enable': 'true', 'created': '2025-04-15T16:19:53', 'last-modified': '2025-04-15T16:19:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.983609'} 2025-04-15 16:19:55,789 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-15 16:19:55,789 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76549126 passed 2025-04-15 16:19:55,789 - DEBUG - ====Verifying policy data for ctest-vn-76549126 in API_Server ====== 2025-04-15 16:19:55,789 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-04-15 16:19:55,794 - DEBUG - Requesting: http://10.0.0.65:8082/domain/29ed20a0-debe-424b-8fd5-2b37b09e2008 2025-04-15 16:19:55,806 - DEBUG - Requesting: http://10.0.0.65:8082/project/98390195-f2ba-4514-818d-69dc71e74215 2025-04-15 16:19:55,877 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8268ee5d-5b4f-4b7b-b3c4-ff6f39b26926 2025-04-15 16:19:55,887 - DEBUG - ==>Verifying data for policy with id: b1d14c9e-ebdd-434d-a5e0-254873981032, fqn: ['default-domain', 'ctest-TestBasicPolicy-58757307', 'ctest-policy-allow-all-73296491'] 2025-04-15 16:19:55,887 - INFO - VN ctest-vn-76549126 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-15 16:19:55,887 - DEBUG - Verifying the vn in opserver 2025-04-15 16:19:55,887 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58757307:ctest-vn-76549126 virtual network link through opserver 10.0.0.65 2025-04-15 16:19:55,887 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-04-15 16:19:56,175 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-04-15 16:19:56,233 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58757307:ctest-vn-76549126', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58757307:ctest-vn-76549126?flat'} 2025-04-15 16:19:56,233 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58757307:ctest-vn-76549126 is found in opserver 2025-04-15 16:19:56,243 - DEBUG - Do not have enough data to verify VN in agent 2025-04-15 16:19:56,248 - DEBUG - VRF ids for VN ctest-vn-76549126: {} 2025-04-15 16:19:56,248 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-04-15 16:19:56,252 - DEBUG - Requesting: http://10.0.0.65:8082/domain/29ed20a0-debe-424b-8fd5-2b37b09e2008 2025-04-15 16:19:56,270 - DEBUG - Requesting: http://10.0.0.65:8082/project/98390195-f2ba-4514-818d-69dc71e74215 2025-04-15 16:19:56,344 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/e2d77f7f-e239-4bd1-8996-a92e6933c724 2025-04-15 16:19:56,355 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/e2d77f7f-e239-4bd1-8996-a92e6933c724 2025-04-15 16:19:56,364 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/bca1a328-40eb-45c0-973d-5e50c0cc4557 2025-04-15 16:19:56,370 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/bca1a328-40eb-45c0-973d-5e50c0cc4557 2025-04-15 16:19:56,376 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/15505daf-2a49-42b8-81d9-76cc819a3761 2025-04-15 16:19:56,382 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-15 16:19:56,382 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/e2d77f7f-e239-4bd1-8996-a92e6933c724 2025-04-15 16:19:56,390 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/bca1a328-40eb-45c0-973d-5e50c0cc4557 2025-04-15 16:19:56,402 - INFO - Verified VN network id 8 for VN e2d77f7f-e239-4bd1-8996-a92e6933c724 2025-04-15 16:19:56,402 - INFO - Verifications in API Server for VN ctest-vn-26325574 passed 2025-04-15 16:19:56,402 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/e2d77f7f-e239-4bd1-8996-a92e6933c724 2025-04-15 16:19:56,410 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/bca1a328-40eb-45c0-973d-5e50c0cc4557 2025-04-15 16:19:56,416 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/bca1a328-40eb-45c0-973d-5e50c0cc4557 2025-04-15 16:19:56,422 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/15505daf-2a49-42b8-81d9-76cc819a3761 2025-04-15 16:19:56,435 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58757307:ctest-vn-26325574', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58757307', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16345673559797484497', 'uuid-lslong': '9914297646501316388'}, 'enable': 'true', 'created': '2025-04-15T16:19:54', 'last-modified': '2025-04-15T16:19:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.395731'} 2025-04-15 16:19:56,445 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-15 16:19:56,445 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26325574 passed 2025-04-15 16:19:56,445 - DEBUG - ====Verifying policy data for ctest-vn-26325574 in API_Server ====== 2025-04-15 16:19:56,445 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-04-15 16:19:56,452 - DEBUG - Requesting: http://10.0.0.65:8082/domain/29ed20a0-debe-424b-8fd5-2b37b09e2008 2025-04-15 16:19:56,465 - DEBUG - Requesting: http://10.0.0.65:8082/project/98390195-f2ba-4514-818d-69dc71e74215 2025-04-15 16:19:56,544 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/e2d77f7f-e239-4bd1-8996-a92e6933c724 2025-04-15 16:19:56,554 - DEBUG - ==>Verifying data for policy with id: b1d14c9e-ebdd-434d-a5e0-254873981032, fqn: ['default-domain', 'ctest-TestBasicPolicy-58757307', 'ctest-policy-allow-all-73296491'] 2025-04-15 16:19:56,554 - INFO - VN ctest-vn-26325574 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-15 16:19:56,554 - DEBUG - Verifying the vn in opserver 2025-04-15 16:19:56,554 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58757307:ctest-vn-26325574 virtual network link through opserver 10.0.0.65 2025-04-15 16:19:56,554 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-04-15 16:19:56,566 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58757307:ctest-vn-26325574', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58757307:ctest-vn-26325574?flat'} 2025-04-15 16:19:56,566 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58757307:ctest-vn-26325574 is found in opserver 2025-04-15 16:19:56,577 - DEBUG - Do not have enough data to verify VN in agent 2025-04-15 16:19:56,581 - DEBUG - VRF ids for VN ctest-vn-26325574: {} 2025-04-15 16:19:56,640 - DEBUG - Services list from nova: [, , ] 2025-04-15 16:19:57,660 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3120-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3120-1) 2025-04-15 16:19:58,960 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3120-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3120-1) 2025-04-15 16:19:58,960 - INFO - Waiting for VM ctest-TestBasicPolicy-58757307-66706559 to be up.. 2025-04-15 16:19:59,048 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-15 16:20:04,160 - DEBUG - VM is in ACTIVE state now 2025-04-15 16:20:04,161 - INFO - VM name : ctest-TestBasicPolicy-58757307-66706559 2025-04-15 16:20:04,273 - DEBUG - VM ctest-TestBasicPolicy-58757307-66706559 ID is 51478629-14c5-4f3b-a8cc-cbe06e48210e 2025-04-15 16:20:04,294 - DEBUG - VM ctest-TestBasicPolicy-58757307-66706559 launched on Node cn-jenkins-deploy-platform-ansible-os-3120-1. 2025-04-15 16:20:04,378 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/51478629-14c5-4f3b-a8cc-cbe06e48210e 2025-04-15 16:20:04,387 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/731d6ead-dc12-42d0-9d36-0e827555e6c2 2025-04-15 16:20:07,633 - 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 1009ms') 2025-04-15 16:20:07,633 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58757307-66706559 failed! 2025-04-15 16:20:07,687 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-58757307:ctest-vn-76549126 is 64.0.177.129 and allocation pool is NOT set 2025-04-15 16:20:09,755 - 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=12.4 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.02 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.024/7.236/12.449/5.212 ms') 2025-04-15 16:20:09,755 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58757307-66706559 passed 2025-04-15 16:20:09,903 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-15 16:20:09,903 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-58757307-66706559, IP 64.0.177.131, Port 22 2025-04-15 16:20:09,968 - 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-04-15 16:20:10,072 - DEBUG - VM ctest-TestBasicPolicy-58757307-66706559 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-15 16:20:15,073 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-15 16:20:15,073 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-58757307-66706559, IP 64.0.177.131, Port 22 2025-04-15 16:20:15,230 - DEBUG - VM ctest-TestBasicPolicy-58757307-66706559 is ready for SSH connections 2025-04-15 16:20:15,230 - INFO - Waiting for VM ctest-TestBasicPolicy-58757307-93812146 to be up.. 2025-04-15 16:20:15,318 - DEBUG - VM is in ACTIVE state now 2025-04-15 16:20:15,318 - INFO - VM name : ctest-TestBasicPolicy-58757307-93812146 2025-04-15 16:20:15,396 - DEBUG - VM ctest-TestBasicPolicy-58757307-93812146 ID is 300d8e42-412a-4037-a0d6-cb9b48cfc268 2025-04-15 16:20:15,396 - DEBUG - VM ctest-TestBasicPolicy-58757307-93812146 launched on Node cn-jenkins-deploy-platform-ansible-os-3120-1. 2025-04-15 16:20:15,480 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/300d8e42-412a-4037-a0d6-cb9b48cfc268 2025-04-15 16:20:15,489 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/1818fb67-048c-4b95-b765-2af9c7403643 2025-04-15 16:20:16,725 - 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.70 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.321 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.321/1.512/2.704/1.191 ms') 2025-04-15 16:20:16,725 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-58757307-93812146 passed 2025-04-15 16:20:16,875 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-15 16:20:16,875 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-58757307-93812146, IP 46.166.0.131, Port 22 2025-04-15 16:20:17,030 - DEBUG - VM ctest-TestBasicPolicy-58757307-93812146 is ready for SSH connections 2025-04-15 16:20:17,030 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-15 16:20:17,031 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 46.166.0.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-04-15 16:20:17,031 - DEBUG - ping -s 56 -c 3 -W 1 46.166.0.131 2025-04-15 16:20:20,763 - DEBUG - PING 46.166.0.131 (46.166.0.131): 56 data bytes 64 bytes from 46.166.0.131: seq=0 ttl=63 time=4.705 ms 64 bytes from 46.166.0.131: seq=1 ttl=63 time=0.697 ms 64 bytes from 46.166.0.131: seq=2 ttl=63 time=0.927 ms --- 46.166.0.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.697/2.109/4.705 ms 2025-04-15 16:20:20,764 - INFO - Ping to IP 46.166.0.131 from VM ctest-TestBasicPolicy-58757307-66706559 passed 2025-04-15 16:20:20,943 - DEBUG - Policy Update Response {"network-policy": {"uuid": "b1d14c9e-ebdd-434d-a5e0-254873981032", "href": "http://10.0.0.65:8082/network-policy/b1d14c9e-ebdd-434d-a5e0-254873981032"}} 2025-04-15 16:20:20,943 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-15 16:20:20,943 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 46.166.0.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-04-15 16:20:20,943 - DEBUG - ping -s 56 -c 3 -W 1 46.166.0.131 2025-04-15 16:20:24,190 - DEBUG - PING 46.166.0.131 (46.166.0.131): 56 data bytes --- 46.166.0.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-04-15 16:20:24,190 - WARNING - Ping to IP 46.166.0.131 from VM ctest-TestBasicPolicy-58757307-66706559 failed 2025-04-15 16:20:24,190 - INFO - Deleting VM ctest-TestBasicPolicy-58757307-93812146 2025-04-15 16:20:24,258 - INFO - Deleting VM ctest-TestBasicPolicy-58757307-66706559 2025-04-15 16:20:24,669 - INFO - Deleted policy ctest-policy-allow-all-73296491 2025-04-15 16:20:24,669 - INFO - Deleting VN ctest-vn-26325574 2025-04-15 16:20:24,705 - DEBUG - VN e2d77f7f-e239-4bd1-8996-a92e6933c724 still in use: Unable to complete operation on network e2d77f7f-e239-4bd1-8996-a92e6933c724. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-28d92f36-5a53-423b-ba21-82e3827587fc'] 2025-04-15 16:20:24,705 - WARNING - Deleting VN ctest-vn-26325574 failed..Will retry 2025-04-15 16:20:26,800 - DEBUG - Response for deleting network () 2025-04-15 16:20:26,801 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/bca1a328-40eb-45c0-973d-5e50c0cc4557 2025-04-15 16:20:26,806 - DEBUG - Response Code: 404 2025-04-15 16:20:26,806 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-04-15 16:20:26,811 - DEBUG - Requesting: http://10.0.0.65:8082/domain/29ed20a0-debe-424b-8fd5-2b37b09e2008 2025-04-15 16:20:26,865 - DEBUG - Requesting: http://10.0.0.65:8082/project/98390195-f2ba-4514-818d-69dc71e74215 2025-04-15 16:20:26,939 - INFO - Validated that VN ctest-vn-26325574 is not found in API Server 2025-04-15 16:20:26,948 - DEBUG - VN ctest-vn-26325574 is not present in Agent 10.0.0.65 2025-04-15 16:20:26,948 - INFO - Validated that VN ctest-vn-26325574 is not in any agent 2025-04-15 16:20:26,962 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-26325574 info 2025-04-15 16:20:26,963 - INFO - Deleting VN ctest-vn-76549126 2025-04-15 16:20:27,064 - DEBUG - Response for deleting network () 2025-04-15 16:20:27,064 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/93aa70ff-f158-42e9-94aa-44c88ff3ab98 2025-04-15 16:20:27,069 - DEBUG - Response Code: 404 2025-04-15 16:20:27,069 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-04-15 16:20:27,075 - DEBUG - Requesting: http://10.0.0.65:8082/domain/29ed20a0-debe-424b-8fd5-2b37b09e2008 2025-04-15 16:20:27,127 - DEBUG - Requesting: http://10.0.0.65:8082/project/98390195-f2ba-4514-818d-69dc71e74215 2025-04-15 16:20:27,198 - INFO - Validated that VN ctest-vn-76549126 is not found in API Server 2025-04-15 16:20:27,207 - DEBUG - VN ctest-vn-76549126 is not present in Agent 10.0.0.65 2025-04-15 16:20:27,207 - INFO - Validated that VN ctest-vn-76549126 is not in any agent 2025-04-15 16:20:27,220 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-76549126 info 2025-04-15 16:20:27,475 - DEBUG - No XMPP flaps were noticed during the test
2025-04-15 16:20:27,475 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-04-15 16:20:27,475 - INFO - -------------------------------------------------------------------------------- 2025-04-15 16:20:28,153 - INFO - Deleted project: ctest-TestBasicPolicy-58757307, ID : 98390195-f2ba-4514-818d-69dc71e74215