2025-11-05 15:55:44,966 - INFO - Domain Default found not creating 2025-11-05 15:55:45,135 - INFO - Project ctest-TestBasicPolicy-28710367 not found, creating it 2025-11-05 15:55:45,584 - INFO - Created Project:ctest-TestBasicPolicy-28710367, ID : 8d5b9c5d-0a0a-481b-887d-3ba9c9dd01bf 2025-11-05 15:55:47,151 - INFO - ================================================================================ 2025-11-05 15:55:47,151 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-11-05 15:55:47,151 - 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-11-05 15:55:47,407 - WARNING - Test is running with cores: {'10.0.0.40': ['core.isc-loop-0003.72957.cn-jenkins-deploy-platform-ansible-os-4646-1.1762357600']} 2025-11-05 15:55:47,413 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.200': '0'}} with 2025-11-05 15:55:47,414 - INFO - Initial checks done. Running the testcase now 2025-11-05 15:55:47,414 - INFO - 2025-11-05 15:55:48,517 - DEBUG - Response for create_network : {'network': {'id': '55541c14-eb45-4931-b629-7cdd801397c3', 'name': 'ctest-vn-98186872', 'tenant_id': '8d5b9c5d0a0a481b887d3ba9c9dd01bf', 'project_id': '8d5b9c5d0a0a481b887d3ba9c9dd01bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28710367', 'ctest-vn-98186872'], 'port_security_enabled': True, 'description': ''}} 2025-11-05 15:55:48,759 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd5d86bae-df65-426b-a32b-125ff0c2131e', 'name': '', 'tenant_id': '8d5b9c5d0a0a481b887d3ba9c9dd01bf', 'network_id': '55541c14-eb45-4931-b629-7cdd801397c3', 'ip_version': 4, 'cidr': '2.12.159.64/26', 'allocation_pools': [{'start': '2.12.159.66', 'end': '2.12.159.126'}], 'gateway_ip': '2.12.159.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.12.159.66', 'tags': [], 'project_id': '8d5b9c5d0a0a481b887d3ba9c9dd01bf'}} 2025-11-05 15:55:48,779 - INFO - Created VN ctest-vn-98186872 2025-11-05 15:55:48,835 - DEBUG - VN ctest-vn-98186872 UUID is 55541c14-eb45-4931-b629-7cdd801397c3 2025-11-05 15:55:49,135 - DEBUG - Response for create_network : {'network': {'id': 'e8e135c4-80bd-4afd-84c6-e5e3883150b6', 'name': 'ctest-vn-12246759', 'tenant_id': '8d5b9c5d0a0a481b887d3ba9c9dd01bf', 'project_id': '8d5b9c5d0a0a481b887d3ba9c9dd01bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28710367', 'ctest-vn-12246759'], 'port_security_enabled': True, 'description': ''}} 2025-11-05 15:55:49,291 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e1b781b1-cd2a-49f5-aa42-5c0595b01124', 'name': '', 'tenant_id': '8d5b9c5d0a0a481b887d3ba9c9dd01bf', 'network_id': 'e8e135c4-80bd-4afd-84c6-e5e3883150b6', 'ip_version': 4, 'cidr': '180.120.227.64/26', 'allocation_pools': [{'start': '180.120.227.66', 'end': '180.120.227.126'}], 'gateway_ip': '180.120.227.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.120.227.66', 'tags': [], 'project_id': '8d5b9c5d0a0a481b887d3ba9c9dd01bf'}} 2025-11-05 15:55:49,309 - INFO - Created VN ctest-vn-12246759 2025-11-05 15:55:49,359 - DEBUG - VN ctest-vn-12246759 UUID is e8e135c4-80bd-4afd-84c6-e5e3883150b6 2025-11-05 15:55:49,515 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-28710367:ctest-vn-98186872, 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-28710367:ctest-vn-12246759, 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-11-05 15:55:49,817 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '55541c14-eb45-4931-b629-7cdd801397c3', 'name': 'ctest-vn-98186872', 'tenant_id': '8d5b9c5d0a0a481b887d3ba9c9dd01bf', 'project_id': '8d5b9c5d0a0a481b887d3ba9c9dd01bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d5d86bae-df65-426b-a32b-125ff0c2131e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28710367', 'ctest-vn-98186872'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28710367', 'ctest-policy-allow-all-36828368']], 'subnet_ipam': [{'subnet_cidr': '2.12.159.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-05 15:55:50,042 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e8e135c4-80bd-4afd-84c6-e5e3883150b6', 'name': 'ctest-vn-12246759', 'tenant_id': '8d5b9c5d0a0a481b887d3ba9c9dd01bf', 'project_id': '8d5b9c5d0a0a481b887d3ba9c9dd01bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e1b781b1-cd2a-49f5-aa42-5c0595b01124'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28710367', 'ctest-vn-12246759'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28710367', 'ctest-policy-allow-all-36828368']], 'subnet_ipam': [{'subnet_cidr': '180.120.227.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-05 15:55:50,203 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2025-11-05 15:55:50,544 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2025-11-05 15:55:50,576 - DEBUG - Requesting: http://10.0.0.40:8082/domain/4db89bc9-d504-4028-b1c4-d835675a8b75 2025-11-05 15:55:50,588 - DEBUG - Requesting: http://10.0.0.40:8082/project/8d5b9c5d-0a0a-481b-887d-3ba9c9dd01bf 2025-11-05 15:55:50,664 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/55541c14-eb45-4931-b629-7cdd801397c3 2025-11-05 15:55:50,676 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/55541c14-eb45-4931-b629-7cdd801397c3 2025-11-05 15:55:50,686 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/cf92b9be-a4e4-43d1-b65d-53fc6795b61f 2025-11-05 15:55:50,694 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/cf92b9be-a4e4-43d1-b65d-53fc6795b61f 2025-11-05 15:55:50,701 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/a2fc9ea6-844c-48d5-8920-2aeec7a42941 2025-11-05 15:55:50,707 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 15:55:50,707 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/55541c14-eb45-4931-b629-7cdd801397c3 2025-11-05 15:55:50,716 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/cf92b9be-a4e4-43d1-b65d-53fc6795b61f 2025-11-05 15:55:50,730 - INFO - Verified VN network id 10 for VN 55541c14-eb45-4931-b629-7cdd801397c3 2025-11-05 15:55:50,730 - INFO - Verifications in API Server for VN ctest-vn-98186872 passed 2025-11-05 15:55:50,731 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/55541c14-eb45-4931-b629-7cdd801397c3 2025-11-05 15:55:50,739 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/cf92b9be-a4e4-43d1-b65d-53fc6795b61f 2025-11-05 15:55:50,745 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/cf92b9be-a4e4-43d1-b65d-53fc6795b61f 2025-11-05 15:55:50,751 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/a2fc9ea6-844c-48d5-8920-2aeec7a42941 2025-11-05 15:55:50,763 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28710367:ctest-vn-98186872', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28710367', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6148570267439679793', 'uuid-lslong': '13126159879726405571'}, 'enable': 'true', 'created': '2025-11-05T15:55:48', 'last-modified': '2025-11-05T15:55:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.969437'} 2025-11-05 15:55:50,769 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 15:55:50,769 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98186872 passed 2025-11-05 15:55:50,769 - DEBUG - ====Verifying policy data for ctest-vn-98186872 in API_Server ====== 2025-11-05 15:55:50,769 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2025-11-05 15:55:50,774 - DEBUG - Requesting: http://10.0.0.40:8082/domain/4db89bc9-d504-4028-b1c4-d835675a8b75 2025-11-05 15:55:50,784 - DEBUG - Requesting: http://10.0.0.40:8082/project/8d5b9c5d-0a0a-481b-887d-3ba9c9dd01bf 2025-11-05 15:55:50,854 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/55541c14-eb45-4931-b629-7cdd801397c3 2025-11-05 15:55:50,863 - DEBUG - ==>Verifying data for policy with id: 86e6aab4-aa5f-4b6f-b2a1-0661b3d3c658, fqn: ['default-domain', 'ctest-TestBasicPolicy-28710367', 'ctest-policy-allow-all-36828368'] 2025-11-05 15:55:50,863 - INFO - VN ctest-vn-98186872 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-05 15:55:50,863 - DEBUG - Verifying the vn in opserver 2025-11-05 15:55:50,863 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28710367:ctest-vn-98186872 virtual network link through opserver 10.0.0.40 2025-11-05 15:55:50,863 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2025-11-05 15:55:51,195 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2025-11-05 15:55:51,253 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28710367:ctest-vn-98186872', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28710367:ctest-vn-98186872?flat'} 2025-11-05 15:55:51,253 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28710367:ctest-vn-98186872 is found in opserver 2025-11-05 15:55:51,264 - DEBUG - Do not have enough data to verify VN in agent 2025-11-05 15:55:51,269 - DEBUG - VRF ids for VN ctest-vn-98186872: {} 2025-11-05 15:55:51,269 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2025-11-05 15:55:51,274 - DEBUG - Requesting: http://10.0.0.40:8082/domain/4db89bc9-d504-4028-b1c4-d835675a8b75 2025-11-05 15:55:51,285 - DEBUG - Requesting: http://10.0.0.40:8082/project/8d5b9c5d-0a0a-481b-887d-3ba9c9dd01bf 2025-11-05 15:55:51,357 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/e8e135c4-80bd-4afd-84c6-e5e3883150b6 2025-11-05 15:55:51,369 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/e8e135c4-80bd-4afd-84c6-e5e3883150b6 2025-11-05 15:55:51,378 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/7caa9ad8-c289-4a8e-8cad-e6cdbc1eeda2 2025-11-05 15:55:51,385 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/7caa9ad8-c289-4a8e-8cad-e6cdbc1eeda2 2025-11-05 15:55:51,392 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/3bc5d8af-c207-4206-951b-aea6354734d7 2025-11-05 15:55:51,398 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-05 15:55:51,398 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/e8e135c4-80bd-4afd-84c6-e5e3883150b6 2025-11-05 15:55:51,409 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/7caa9ad8-c289-4a8e-8cad-e6cdbc1eeda2 2025-11-05 15:55:51,423 - INFO - Verified VN network id 11 for VN e8e135c4-80bd-4afd-84c6-e5e3883150b6 2025-11-05 15:55:51,423 - INFO - Verifications in API Server for VN ctest-vn-12246759 passed 2025-11-05 15:55:51,423 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/e8e135c4-80bd-4afd-84c6-e5e3883150b6 2025-11-05 15:55:51,432 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/7caa9ad8-c289-4a8e-8cad-e6cdbc1eeda2 2025-11-05 15:55:51,438 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/7caa9ad8-c289-4a8e-8cad-e6cdbc1eeda2 2025-11-05 15:55:51,444 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/3bc5d8af-c207-4206-951b-aea6354734d7 2025-11-05 15:55:51,457 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28710367:ctest-vn-12246759', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28710367', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16780752804648930045', 'uuid-lslong': '9567587223800467638'}, 'enable': 'true', 'created': '2025-11-05T15:55:49', 'last-modified': '2025-11-05T15:55:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.437683'} 2025-11-05 15:55:51,463 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-05 15:55:51,463 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12246759 passed 2025-11-05 15:55:51,463 - DEBUG - ====Verifying policy data for ctest-vn-12246759 in API_Server ====== 2025-11-05 15:55:51,463 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2025-11-05 15:55:51,470 - DEBUG - Requesting: http://10.0.0.40:8082/domain/4db89bc9-d504-4028-b1c4-d835675a8b75 2025-11-05 15:55:51,481 - DEBUG - Requesting: http://10.0.0.40:8082/project/8d5b9c5d-0a0a-481b-887d-3ba9c9dd01bf 2025-11-05 15:55:51,551 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/e8e135c4-80bd-4afd-84c6-e5e3883150b6 2025-11-05 15:55:51,561 - DEBUG - ==>Verifying data for policy with id: 86e6aab4-aa5f-4b6f-b2a1-0661b3d3c658, fqn: ['default-domain', 'ctest-TestBasicPolicy-28710367', 'ctest-policy-allow-all-36828368'] 2025-11-05 15:55:51,561 - INFO - VN ctest-vn-12246759 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-05 15:55:51,561 - DEBUG - Verifying the vn in opserver 2025-11-05 15:55:51,561 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28710367:ctest-vn-12246759 virtual network link through opserver 10.0.0.40 2025-11-05 15:55:51,561 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2025-11-05 15:55:51,571 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28710367:ctest-vn-12246759', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28710367:ctest-vn-12246759?flat'} 2025-11-05 15:55:51,571 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28710367:ctest-vn-12246759 is found in opserver 2025-11-05 15:55:51,581 - DEBUG - Do not have enough data to verify VN in agent 2025-11-05 15:55:51,585 - DEBUG - VRF ids for VN ctest-vn-12246759: {} 2025-11-05 15:55:51,644 - DEBUG - Services list from nova: [, , ] 2025-11-05 15:55:52,762 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4646-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4646-1) 2025-11-05 15:55:54,022 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4646-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4646-1) 2025-11-05 15:55:54,023 - INFO - Waiting for VM ctest-TestBasicPolicy-28710367-43005481 to be up.. 2025-11-05 15:55:54,109 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-05 15:55:59,187 - DEBUG - VM is in ACTIVE state now 2025-11-05 15:55:59,187 - INFO - VM name : ctest-TestBasicPolicy-28710367-43005481 2025-11-05 15:55:59,266 - DEBUG - VM ctest-TestBasicPolicy-28710367-43005481 ID is 651df9b7-bd74-497f-9f82-5c7115f9e76c 2025-11-05 15:55:59,289 - DEBUG - VM ctest-TestBasicPolicy-28710367-43005481 launched on Node cn-jenkins-deploy-platform-ansible-os-4646-1 2025-11-05 15:55:59,375 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/651df9b7-bd74-497f-9f82-5c7115f9e76c 2025-11-05 15:55:59,384 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/08e6cfa5-2dc7-40c0-b844-002df0ed10a2 2025-11-05 15:56:02,642 - 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 1018ms') 2025-11-05 15:56:02,642 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-28710367-43005481 failed! 2025-11-05 15:56:02,707 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-28710367:ctest-vn-98186872 is 2.12.159.65 and allocation pool is NOT set 2025-11-05 15:56:04,769 - 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=7.80 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.60 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.603/4.703/7.804/3.100 ms') 2025-11-05 15:56:04,770 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-28710367-43005481 passed 2025-11-05 15:56:04,924 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 15:56:04,924 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-28710367-43005481, IP 2.12.159.67, Port 22 2025-11-05 15:56:04,989 - 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-11-05 15:56:05,072 - DEBUG - VM ctest-TestBasicPolicy-28710367-43005481 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-05 15:56:10,073 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 15:56:10,073 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-28710367-43005481, IP 2.12.159.67, Port 22 2025-11-05 15:56:10,235 - DEBUG - VM ctest-TestBasicPolicy-28710367-43005481 is ready for SSH connections 2025-11-05 15:56:10,235 - INFO - Waiting for VM ctest-TestBasicPolicy-28710367-92461255 to be up.. 2025-11-05 15:56:10,321 - DEBUG - VM is in ACTIVE state now 2025-11-05 15:56:10,321 - INFO - VM name : ctest-TestBasicPolicy-28710367-92461255 2025-11-05 15:56:10,398 - DEBUG - VM ctest-TestBasicPolicy-28710367-92461255 ID is 691900c8-c53a-497d-b5db-ce0e8dc19e77 2025-11-05 15:56:10,399 - DEBUG - VM ctest-TestBasicPolicy-28710367-92461255 launched on Node cn-jenkins-deploy-platform-ansible-os-4646-1 2025-11-05 15:56:10,474 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/691900c8-c53a-497d-b5db-ce0e8dc19e77 2025-11-05 15:56:10,483 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/27a9a5d8-8a3b-4066-98f0-5741d815ba47 2025-11-05 15:56:11,714 - 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=3.34 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.466 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.466/1.903/3.340/1.437 ms') 2025-11-05 15:56:11,714 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-28710367-92461255 passed 2025-11-05 15:56:11,863 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 15:56:11,863 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-28710367-92461255, IP 180.120.227.67, Port 22 2025-11-05 15:56:12,023 - DEBUG - VM ctest-TestBasicPolicy-28710367-92461255 is ready for SSH connections 2025-11-05 15:56:12,023 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 15:56:12,023 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 180.120.227.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2025-11-05 15:56:12,023 - DEBUG - ping -s 56 -c 3 -W 1 180.120.227.67 2025-11-05 15:56:16,171 - DEBUG - PING 180.120.227.67 (180.120.227.67): 56 data bytes 64 bytes from 180.120.227.67: seq=0 ttl=63 time=5.210 ms 64 bytes from 180.120.227.67: seq=1 ttl=63 time=1.172 ms 64 bytes from 180.120.227.67: seq=2 ttl=63 time=1.251 ms --- 180.120.227.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.172/2.544/5.210 ms 2025-11-05 15:56:16,171 - INFO - Ping to IP 180.120.227.67 from VM ctest-TestBasicPolicy-28710367-43005481 passed 2025-11-05 15:56:16,355 - DEBUG - Policy Update Response {"network-policy": {"uuid": "86e6aab4-aa5f-4b6f-b2a1-0661b3d3c658", "href": "http://10.0.0.40:8082/network-policy/86e6aab4-aa5f-4b6f-b2a1-0661b3d3c658"}} 2025-11-05 15:56:16,355 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 15:56:16,355 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 180.120.227.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2025-11-05 15:56:16,356 - DEBUG - ping -s 56 -c 3 -W 1 180.120.227.67 2025-11-05 15:56:19,580 - DEBUG - PING 180.120.227.67 (180.120.227.67): 56 data bytes --- 180.120.227.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-11-05 15:56:19,580 - WARNING - Ping to IP 180.120.227.67 from VM ctest-TestBasicPolicy-28710367-43005481 failed 2025-11-05 15:56:19,580 - INFO - Deleting VM ctest-TestBasicPolicy-28710367-92461255 2025-11-05 15:56:19,657 - INFO - Deleting VM ctest-TestBasicPolicy-28710367-43005481 2025-11-05 15:56:20,053 - INFO - Deleted policy ctest-policy-allow-all-36828368 2025-11-05 15:56:20,053 - INFO - Deleting VN ctest-vn-12246759 2025-11-05 15:56:20,090 - DEBUG - VN e8e135c4-80bd-4afd-84c6-e5e3883150b6 still in use: Unable to complete operation on network e8e135c4-80bd-4afd-84c6-e5e3883150b6. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-532868f4-d25b-4805-9764-9e3e8660189d'] 2025-11-05 15:56:20,090 - WARNING - Deleting VN ctest-vn-12246759 failed..Will retry 2025-11-05 15:56:22,211 - DEBUG - Response for deleting network () 2025-11-05 15:56:22,211 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/7caa9ad8-c289-4a8e-8cad-e6cdbc1eeda2 2025-11-05 15:56:22,221 - DEBUG - Response Code: 404 2025-11-05 15:56:22,221 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2025-11-05 15:56:22,232 - DEBUG - Requesting: http://10.0.0.40:8082/domain/4db89bc9-d504-4028-b1c4-d835675a8b75 2025-11-05 15:56:22,285 - DEBUG - Requesting: http://10.0.0.40:8082/project/8d5b9c5d-0a0a-481b-887d-3ba9c9dd01bf 2025-11-05 15:56:22,359 - INFO - Validated that VN ctest-vn-12246759 is not found in API Server 2025-11-05 15:56:22,370 - DEBUG - VN ctest-vn-12246759 is not present in Agent 10.0.0.40 2025-11-05 15:56:22,370 - INFO - Validated that VN ctest-vn-12246759 is not in any agent 2025-11-05 15:56:22,385 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-12246759 info 2025-11-05 15:56:22,385 - INFO - Deleting VN ctest-vn-98186872 2025-11-05 15:56:22,499 - DEBUG - Response for deleting network () 2025-11-05 15:56:22,499 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/cf92b9be-a4e4-43d1-b65d-53fc6795b61f 2025-11-05 15:56:22,505 - DEBUG - Response Code: 404 2025-11-05 15:56:22,505 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2025-11-05 15:56:22,513 - DEBUG - Requesting: http://10.0.0.40:8082/domain/4db89bc9-d504-4028-b1c4-d835675a8b75 2025-11-05 15:56:22,568 - DEBUG - Requesting: http://10.0.0.40:8082/project/8d5b9c5d-0a0a-481b-887d-3ba9c9dd01bf 2025-11-05 15:56:22,642 - INFO - Validated that VN ctest-vn-98186872 is not found in API Server 2025-11-05 15:56:22,654 - DEBUG - VN ctest-vn-98186872 is not present in Agent 10.0.0.40 2025-11-05 15:56:22,654 - INFO - Validated that VN ctest-vn-98186872 is not in any agent 2025-11-05 15:56:22,671 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-98186872 info 2025-11-05 15:56:22,933 - DEBUG - No XMPP flaps were noticed during the test
2025-11-05 15:56:22,933 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-11-05 15:56:22,933 - INFO - -------------------------------------------------------------------------------- 2025-11-05 15:56:23,701 - INFO - Deleted project: ctest-TestBasicPolicy-28710367, ID : 8d5b9c5d-0a0a-481b-887d-3ba9c9dd01bf