2025-07-16 12:31:39,276 - INFO - Domain Default found not creating 2025-07-16 12:31:39,522 - INFO - Project ctest-TestBasicPolicy-15338498 not found, creating it 2025-07-16 12:31:40,104 - INFO - Created Project:ctest-TestBasicPolicy-15338498, ID : 3202ee06-a9cd-435b-bae2-59200c87006e 2025-07-16 12:31:42,033 - INFO - ================================================================================ 2025-07-16 12:31:42,034 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-07-16 12:31:42,034 - 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-16 12:31:42,341 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2025-07-16 12:31:42,342 - INFO - Initial checks done. Running the testcase now 2025-07-16 12:31:42,342 - INFO - 2025-07-16 12:31:43,146 - DEBUG - Response for create_network : {'network': {'id': 'e970a07c-f324-4245-8772-404904c83bff', 'name': 'ctest-vn-50629672', 'tenant_id': '3202ee06a9cd435bbae259200c87006e', 'project_id': '3202ee06a9cd435bbae259200c87006e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15338498', 'ctest-vn-50629672'], 'port_security_enabled': True, 'description': ''}} 2025-07-16 12:31:43,364 - DEBUG - Response for create_subnet : {'subnet': {'id': '382c1af1-36ea-4062-a30e-403cf533697e', 'name': '', 'tenant_id': '3202ee06a9cd435bbae259200c87006e', 'network_id': 'e970a07c-f324-4245-8772-404904c83bff', 'ip_version': 4, 'cidr': '25.128.85.64/26', 'allocation_pools': [{'start': '25.128.85.66', 'end': '25.128.85.126'}], 'gateway_ip': '25.128.85.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.128.85.66', 'tags': [], 'project_id': '3202ee06a9cd435bbae259200c87006e'}} 2025-07-16 12:31:43,382 - INFO - Created VN ctest-vn-50629672 2025-07-16 12:31:43,439 - DEBUG - VN ctest-vn-50629672 UUID is e970a07c-f324-4245-8772-404904c83bff 2025-07-16 12:31:43,891 - DEBUG - Response for create_network : {'network': {'id': '8e107633-6e67-4c42-b6d0-667ad5d5e2e1', 'name': 'ctest-vn-68194970', 'tenant_id': '3202ee06a9cd435bbae259200c87006e', 'project_id': '3202ee06a9cd435bbae259200c87006e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15338498', 'ctest-vn-68194970'], 'port_security_enabled': True, 'description': ''}} 2025-07-16 12:31:44,072 - DEBUG - Response for create_subnet : {'subnet': {'id': '0c2fe231-1214-4bb7-a959-3c2416ccaf24', 'name': '', 'tenant_id': '3202ee06a9cd435bbae259200c87006e', 'network_id': '8e107633-6e67-4c42-b6d0-667ad5d5e2e1', 'ip_version': 4, 'cidr': '96.207.20.0/26', 'allocation_pools': [{'start': '96.207.20.2', 'end': '96.207.20.62'}], 'gateway_ip': '96.207.20.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.207.20.2', 'tags': [], 'project_id': '3202ee06a9cd435bbae259200c87006e'}} 2025-07-16 12:31:44,096 - INFO - Created VN ctest-vn-68194970 2025-07-16 12:31:44,154 - DEBUG - VN ctest-vn-68194970 UUID is 8e107633-6e67-4c42-b6d0-667ad5d5e2e1 2025-07-16 12:31:44,327 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15338498:ctest-vn-50629672, 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-15338498:ctest-vn-68194970, 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-16 12:31:44,771 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e970a07c-f324-4245-8772-404904c83bff', 'name': 'ctest-vn-50629672', 'tenant_id': '3202ee06a9cd435bbae259200c87006e', 'project_id': '3202ee06a9cd435bbae259200c87006e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['382c1af1-36ea-4062-a30e-403cf533697e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15338498', 'ctest-vn-50629672'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15338498', 'ctest-policy-allow-all-26623822']], 'subnet_ipam': [{'subnet_cidr': '25.128.85.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-16 12:31:45,061 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8e107633-6e67-4c42-b6d0-667ad5d5e2e1', 'name': 'ctest-vn-68194970', 'tenant_id': '3202ee06a9cd435bbae259200c87006e', 'project_id': '3202ee06a9cd435bbae259200c87006e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0c2fe231-1214-4bb7-a959-3c2416ccaf24'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15338498', 'ctest-vn-68194970'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15338498', 'ctest-policy-allow-all-26623822']], 'subnet_ipam': [{'subnet_cidr': '96.207.20.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-16 12:31:45,234 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-16 12:31:45,563 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-16 12:31:45,646 - DEBUG - Requesting: http://10.0.0.50:8082/domain/11823ae5-c42b-4c8f-982a-d4d8a107457e 2025-07-16 12:31:45,690 - DEBUG - Requesting: http://10.0.0.50:8082/project/3202ee06-a9cd-435b-bae2-59200c87006e 2025-07-16 12:31:45,780 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e970a07c-f324-4245-8772-404904c83bff 2025-07-16 12:31:45,820 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e970a07c-f324-4245-8772-404904c83bff 2025-07-16 12:31:45,853 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2bb0c21d-96a5-4002-b695-6d405f7d48f9 2025-07-16 12:31:45,871 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2bb0c21d-96a5-4002-b695-6d405f7d48f9 2025-07-16 12:31:45,883 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/48e2feed-ebf5-4da8-bcb9-6fe4ab9c5c2d 2025-07-16 12:31:45,893 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-16 12:31:45,893 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e970a07c-f324-4245-8772-404904c83bff 2025-07-16 12:31:45,921 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2bb0c21d-96a5-4002-b695-6d405f7d48f9 2025-07-16 12:31:45,957 - INFO - Verified VN network id 8 for VN e970a07c-f324-4245-8772-404904c83bff 2025-07-16 12:31:45,957 - INFO - Verifications in API Server for VN ctest-vn-50629672 passed 2025-07-16 12:31:45,957 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e970a07c-f324-4245-8772-404904c83bff 2025-07-16 12:31:45,982 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2bb0c21d-96a5-4002-b695-6d405f7d48f9 2025-07-16 12:31:45,999 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2bb0c21d-96a5-4002-b695-6d405f7d48f9 2025-07-16 12:31:46,014 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/48e2feed-ebf5-4da8-bcb9-6fe4ab9c5c2d 2025-07-16 12:31:46,041 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15338498:ctest-vn-50629672', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15338498', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16821121066744431173', 'uuid-lslong': '9759934024822307839'}, 'enable': 'true', 'created': '2025-07-16T12:31:43', 'last-modified': '2025-07-16T12:31:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.306701'} 2025-07-16 12:31:46,059 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-16 12:31:46,059 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50629672 passed 2025-07-16 12:31:46,060 - DEBUG - ====Verifying policy data for ctest-vn-50629672 in API_Server ====== 2025-07-16 12:31:46,060 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-16 12:31:46,073 - DEBUG - Requesting: http://10.0.0.50:8082/domain/11823ae5-c42b-4c8f-982a-d4d8a107457e 2025-07-16 12:31:46,092 - DEBUG - Requesting: http://10.0.0.50:8082/project/3202ee06-a9cd-435b-bae2-59200c87006e 2025-07-16 12:31:46,195 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e970a07c-f324-4245-8772-404904c83bff 2025-07-16 12:31:46,212 - DEBUG - ==>Verifying data for policy with id: 045dcdf8-cc92-4ba3-9f59-13e72b511126, fqn: ['default-domain', 'ctest-TestBasicPolicy-15338498', 'ctest-policy-allow-all-26623822'] 2025-07-16 12:31:46,212 - INFO - VN ctest-vn-50629672 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-16 12:31:46,212 - DEBUG - Verifying the vn in opserver 2025-07-16 12:31:46,212 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15338498:ctest-vn-50629672 virtual network link through opserver 10.0.0.50 2025-07-16 12:31:46,212 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-16 12:31:46,529 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-16 12:31:46,613 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15338498:ctest-vn-50629672', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15338498:ctest-vn-50629672?flat'} 2025-07-16 12:31:46,613 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15338498:ctest-vn-50629672 is found in opserver 2025-07-16 12:31:46,632 - DEBUG - Do not have enough data to verify VN in agent 2025-07-16 12:31:46,643 - DEBUG - VRF ids for VN ctest-vn-50629672: {} 2025-07-16 12:31:46,643 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-16 12:31:46,654 - DEBUG - Requesting: http://10.0.0.50:8082/domain/11823ae5-c42b-4c8f-982a-d4d8a107457e 2025-07-16 12:31:46,680 - DEBUG - Requesting: http://10.0.0.50:8082/project/3202ee06-a9cd-435b-bae2-59200c87006e 2025-07-16 12:31:46,796 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8e107633-6e67-4c42-b6d0-667ad5d5e2e1 2025-07-16 12:31:46,817 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8e107633-6e67-4c42-b6d0-667ad5d5e2e1 2025-07-16 12:31:46,830 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5c8acb4c-6f7d-4996-b528-67756a4deced 2025-07-16 12:31:46,840 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5c8acb4c-6f7d-4996-b528-67756a4deced 2025-07-16 12:31:46,852 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/14af2572-85e5-46d7-8296-97f9440cce33 2025-07-16 12:31:46,863 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-16 12:31:46,863 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8e107633-6e67-4c42-b6d0-667ad5d5e2e1 2025-07-16 12:31:46,877 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5c8acb4c-6f7d-4996-b528-67756a4deced 2025-07-16 12:31:46,898 - INFO - Verified VN network id 9 for VN 8e107633-6e67-4c42-b6d0-667ad5d5e2e1 2025-07-16 12:31:46,898 - INFO - Verifications in API Server for VN ctest-vn-68194970 passed 2025-07-16 12:31:46,899 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8e107633-6e67-4c42-b6d0-667ad5d5e2e1 2025-07-16 12:31:46,915 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5c8acb4c-6f7d-4996-b528-67756a4deced 2025-07-16 12:31:46,926 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5c8acb4c-6f7d-4996-b528-67756a4deced 2025-07-16 12:31:46,937 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/14af2572-85e5-46d7-8296-97f9440cce33 2025-07-16 12:31:46,957 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15338498:ctest-vn-68194970', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15338498', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10236811916280810562', 'uuid-lslong': '13173141587818308321'}, 'enable': 'true', 'created': '2025-07-16T12:31:43', 'last-modified': '2025-07-16T12:31:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.927704'} 2025-07-16 12:31:46,969 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-16 12:31:46,969 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68194970 passed 2025-07-16 12:31:46,969 - DEBUG - ====Verifying policy data for ctest-vn-68194970 in API_Server ====== 2025-07-16 12:31:46,969 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-16 12:31:46,978 - DEBUG - Requesting: http://10.0.0.50:8082/domain/11823ae5-c42b-4c8f-982a-d4d8a107457e 2025-07-16 12:31:47,000 - DEBUG - Requesting: http://10.0.0.50:8082/project/3202ee06-a9cd-435b-bae2-59200c87006e 2025-07-16 12:31:47,118 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8e107633-6e67-4c42-b6d0-667ad5d5e2e1 2025-07-16 12:31:47,139 - DEBUG - ==>Verifying data for policy with id: 045dcdf8-cc92-4ba3-9f59-13e72b511126, fqn: ['default-domain', 'ctest-TestBasicPolicy-15338498', 'ctest-policy-allow-all-26623822'] 2025-07-16 12:31:47,139 - INFO - VN ctest-vn-68194970 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-16 12:31:47,139 - DEBUG - Verifying the vn in opserver 2025-07-16 12:31:47,139 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15338498:ctest-vn-68194970 virtual network link through opserver 10.0.0.50 2025-07-16 12:31:47,139 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-16 12:31:47,156 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15338498:ctest-vn-68194970', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15338498:ctest-vn-68194970?flat'} 2025-07-16 12:31:47,156 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15338498:ctest-vn-68194970 is found in opserver 2025-07-16 12:31:47,181 - DEBUG - Do not have enough data to verify VN in agent 2025-07-16 12:31:47,192 - DEBUG - VRF ids for VN ctest-vn-68194970: {} 2025-07-16 12:31:47,267 - DEBUG - Services list from nova: [, , ] 2025-07-16 12:31:48,619 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3643-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3643-1) 2025-07-16 12:31:50,068 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3643-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3643-1) 2025-07-16 12:31:50,069 - INFO - Waiting for VM ctest-TestBasicPolicy-15338498-53998779 to be up.. 2025-07-16 12:31:50,171 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-16 12:31:55,353 - DEBUG - VM is in ACTIVE state now 2025-07-16 12:31:55,353 - INFO - VM name : ctest-TestBasicPolicy-15338498-53998779 2025-07-16 12:31:55,460 - DEBUG - VM ctest-TestBasicPolicy-15338498-53998779 ID is d5b67097-83d6-4904-a8fb-16984ca882e1 2025-07-16 12:31:55,482 - DEBUG - VM ctest-TestBasicPolicy-15338498-53998779 launched on Node cn-jenkins-deploy-platform-ansible-os-3643-1 2025-07-16 12:31:55,590 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/d5b67097-83d6-4904-a8fb-16984ca882e1 2025-07-16 12:31:55,610 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/fc4ff3cb-75ff-43f3-a567-e1a1fa4f6b2c 2025-07-16 12:31:58,892 - 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 1002ms') 2025-07-16 12:31:58,892 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-15338498-53998779 failed! 2025-07-16 12:31:58,950 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-15338498:ctest-vn-50629672 is 25.128.85.65 and allocation pool is NOT set 2025-07-16 12:32:01,025 - 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=6.08 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.674 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.674/3.375/6.076/2.701 ms') 2025-07-16 12:32:01,025 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-15338498-53998779 passed 2025-07-16 12:32:01,202 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-16 12:32:01,202 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-15338498-53998779, IP 25.128.85.67, Port 22 2025-07-16 12:32:01,269 - 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-16 12:32:01,417 - DEBUG - VM ctest-TestBasicPolicy-15338498-53998779 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-16 12:32:06,418 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-16 12:32:06,418 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-15338498-53998779, IP 25.128.85.67, Port 22 2025-07-16 12:32:06,608 - DEBUG - VM ctest-TestBasicPolicy-15338498-53998779 is ready for SSH connections 2025-07-16 12:32:06,609 - INFO - Waiting for VM ctest-TestBasicPolicy-15338498-47648626 to be up.. 2025-07-16 12:32:06,770 - DEBUG - VM is in ACTIVE state now 2025-07-16 12:32:06,770 - INFO - VM name : ctest-TestBasicPolicy-15338498-47648626 2025-07-16 12:32:06,933 - DEBUG - VM ctest-TestBasicPolicy-15338498-47648626 ID is bf7f4217-5349-47cd-b64d-d3b7832d3817 2025-07-16 12:32:06,933 - DEBUG - VM ctest-TestBasicPolicy-15338498-47648626 launched on Node cn-jenkins-deploy-platform-ansible-os-3643-1 2025-07-16 12:32:07,068 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/bf7f4217-5349-47cd-b64d-d3b7832d3817 2025-07-16 12:32:07,084 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/04cced19-1b75-4eac-903c-018fac5b9427 2025-07-16 12:32:08,383 - 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=6.14 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.581 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.581/3.358/6.135/2.777 ms') 2025-07-16 12:32:08,384 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-15338498-47648626 passed 2025-07-16 12:32:08,558 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-16 12:32:08,558 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-15338498-47648626, IP 96.207.20.3, Port 22 2025-07-16 12:32:08,753 - DEBUG - VM ctest-TestBasicPolicy-15338498-47648626 is ready for SSH connections 2025-07-16 12:32:08,753 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-16 12:32:08,754 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 96.207.20.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-07-16 12:32:08,754 - DEBUG - ping -s 56 -c 3 -W 1 96.207.20.3 2025-07-16 12:32:13,139 - DEBUG - PING 96.207.20.3 (96.207.20.3): 56 data bytes 64 bytes from 96.207.20.3: seq=0 ttl=63 time=5.515 ms 64 bytes from 96.207.20.3: seq=1 ttl=63 time=1.250 ms 64 bytes from 96.207.20.3: seq=2 ttl=63 time=1.656 ms --- 96.207.20.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.250/2.807/5.515 ms 2025-07-16 12:32:13,140 - INFO - Ping to IP 96.207.20.3 from VM ctest-TestBasicPolicy-15338498-53998779 passed 2025-07-16 12:32:13,370 - DEBUG - Policy Update Response {"network-policy": {"uuid": "045dcdf8-cc92-4ba3-9f59-13e72b511126", "href": "http://10.0.0.50:8082/network-policy/045dcdf8-cc92-4ba3-9f59-13e72b511126"}} 2025-07-16 12:32:13,370 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-16 12:32:13,370 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 96.207.20.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-07-16 12:32:13,370 - DEBUG - ping -s 56 -c 3 -W 1 96.207.20.3 2025-07-16 12:32:16,649 - DEBUG - PING 96.207.20.3 (96.207.20.3): 56 data bytes --- 96.207.20.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-07-16 12:32:16,650 - WARNING - Ping to IP 96.207.20.3 from VM ctest-TestBasicPolicy-15338498-53998779 failed 2025-07-16 12:32:16,650 - INFO - Deleting VM ctest-TestBasicPolicy-15338498-47648626 2025-07-16 12:32:16,809 - INFO - Deleting VM ctest-TestBasicPolicy-15338498-53998779 2025-07-16 12:32:17,374 - INFO - Deleted policy ctest-policy-allow-all-26623822 2025-07-16 12:32:17,374 - INFO - Deleting VN ctest-vn-68194970 2025-07-16 12:32:17,434 - DEBUG - VN 8e107633-6e67-4c42-b6d0-667ad5d5e2e1 still in use: Unable to complete operation on network 8e107633-6e67-4c42-b6d0-667ad5d5e2e1. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-be46a3f1-5999-4d36-8e3c-526722f88476'] 2025-07-16 12:32:17,434 - WARNING - Deleting VN ctest-vn-68194970 failed..Will retry 2025-07-16 12:32:19,646 - DEBUG - Response for deleting network () 2025-07-16 12:32:19,646 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5c8acb4c-6f7d-4996-b528-67756a4deced 2025-07-16 12:32:19,654 - DEBUG - Response Code: 404 2025-07-16 12:32:19,654 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-16 12:32:19,669 - DEBUG - Requesting: http://10.0.0.50:8082/domain/11823ae5-c42b-4c8f-982a-d4d8a107457e 2025-07-16 12:32:19,726 - DEBUG - Requesting: http://10.0.0.50:8082/project/3202ee06-a9cd-435b-bae2-59200c87006e 2025-07-16 12:32:19,822 - INFO - Validated that VN ctest-vn-68194970 is not found in API Server 2025-07-16 12:32:19,839 - DEBUG - VN ctest-vn-68194970 is not present in Agent 10.0.0.50 2025-07-16 12:32:19,839 - INFO - Validated that VN ctest-vn-68194970 is not in any agent 2025-07-16 12:32:19,865 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-68194970 info 2025-07-16 12:32:19,865 - INFO - Deleting VN ctest-vn-50629672 2025-07-16 12:32:20,037 - DEBUG - Response for deleting network () 2025-07-16 12:32:20,037 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2bb0c21d-96a5-4002-b695-6d405f7d48f9 2025-07-16 12:32:20,044 - DEBUG - Response Code: 404 2025-07-16 12:32:20,044 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-16 12:32:20,050 - DEBUG - Requesting: http://10.0.0.50:8082/domain/11823ae5-c42b-4c8f-982a-d4d8a107457e 2025-07-16 12:32:20,110 - DEBUG - Requesting: http://10.0.0.50:8082/project/3202ee06-a9cd-435b-bae2-59200c87006e 2025-07-16 12:32:20,199 - INFO - Validated that VN ctest-vn-50629672 is not found in API Server 2025-07-16 12:32:20,214 - DEBUG - VN ctest-vn-50629672 is not present in Agent 10.0.0.50 2025-07-16 12:32:20,214 - INFO - Validated that VN ctest-vn-50629672 is not in any agent 2025-07-16 12:32:20,235 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-50629672 info 2025-07-16 12:32:20,512 - DEBUG - No XMPP flaps were noticed during the test 2025-07-16 12:32:20,512 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:38] 2025-07-16 12:32:20,512 - INFO - -------------------------------------------------------------------------------- 2025-07-16 12:32:21,347 - INFO - Deleted project: ctest-TestBasicPolicy-15338498, ID : 3202ee06-a9cd-435b-bae2-59200c87006e