2025-04-25 10:45:02,005 - INFO - Domain Default found not creating 2025-04-25 10:45:02,126 - INFO - Project ctest-TestBasicPolicy-95949408 not found, creating it 2025-04-25 10:45:02,624 - INFO - Created Project:ctest-TestBasicPolicy-95949408, ID : e9fd66f8-20bc-4184-be1d-f309eceb15ae 2025-04-25 10:45:03,981 - INFO - ================================================================================ 2025-04-25 10:45:03,982 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-25 10:45:03,982 - 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-25 10:45:04,238 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-04-25 10:45:04,238 - INFO - Initial checks done. Running the testcase now 2025-04-25 10:45:04,238 - INFO - 2025-04-25 10:45:04,748 - DEBUG - Response for create_network : {'network': {'id': '0b6847a4-aa54-45aa-966b-04e5cb8422af', 'name': 'ctest-vn-52754779', 'tenant_id': 'e9fd66f820bc4184be1df309eceb15ae', 'project_id': 'e9fd66f820bc4184be1df309eceb15ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95949408', 'ctest-vn-52754779'], 'port_security_enabled': True, 'description': ''}} 2025-04-25 10:45:04,954 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b5cf3eea-19cc-4151-96fd-6dd25dbecb99', 'name': '', 'tenant_id': 'e9fd66f820bc4184be1df309eceb15ae', 'network_id': '0b6847a4-aa54-45aa-966b-04e5cb8422af', 'ip_version': 4, 'cidr': '201.165.24.0/26', 'allocation_pools': [{'start': '201.165.24.2', 'end': '201.165.24.62'}], 'gateway_ip': '201.165.24.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.165.24.2', 'tags': [], 'project_id': 'e9fd66f820bc4184be1df309eceb15ae'}} 2025-04-25 10:45:04,970 - INFO - Created VN ctest-vn-52754779 2025-04-25 10:45:05,024 - DEBUG - VN ctest-vn-52754779 UUID is 0b6847a4-aa54-45aa-966b-04e5cb8422af 2025-04-25 10:45:05,322 - DEBUG - Response for create_network : {'network': {'id': '334a7fbf-8d29-4e40-a1bd-78dd8689a30b', 'name': 'ctest-vn-26637886', 'tenant_id': 'e9fd66f820bc4184be1df309eceb15ae', 'project_id': 'e9fd66f820bc4184be1df309eceb15ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95949408', 'ctest-vn-26637886'], 'port_security_enabled': True, 'description': ''}} 2025-04-25 10:45:05,522 - DEBUG - Response for create_subnet : {'subnet': {'id': '909ea3ab-11aa-4b25-bf50-557a05cc3258', 'name': '', 'tenant_id': 'e9fd66f820bc4184be1df309eceb15ae', 'network_id': '334a7fbf-8d29-4e40-a1bd-78dd8689a30b', 'ip_version': 4, 'cidr': '129.198.170.128/26', 'allocation_pools': [{'start': '129.198.170.130', 'end': '129.198.170.190'}], 'gateway_ip': '129.198.170.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.198.170.130', 'tags': [], 'project_id': 'e9fd66f820bc4184be1df309eceb15ae'}} 2025-04-25 10:45:05,537 - INFO - Created VN ctest-vn-26637886 2025-04-25 10:45:05,592 - DEBUG - VN ctest-vn-26637886 UUID is 334a7fbf-8d29-4e40-a1bd-78dd8689a30b 2025-04-25 10:45:05,736 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-95949408:ctest-vn-52754779, 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-95949408:ctest-vn-26637886, 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-25 10:45:06,039 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0b6847a4-aa54-45aa-966b-04e5cb8422af', 'name': 'ctest-vn-52754779', 'tenant_id': 'e9fd66f820bc4184be1df309eceb15ae', 'project_id': 'e9fd66f820bc4184be1df309eceb15ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b5cf3eea-19cc-4151-96fd-6dd25dbecb99'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95949408', 'ctest-vn-52754779'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95949408', 'ctest-policy-allow-all-95209259']], 'subnet_ipam': [{'subnet_cidr': '201.165.24.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-25 10:45:06,302 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '334a7fbf-8d29-4e40-a1bd-78dd8689a30b', 'name': 'ctest-vn-26637886', 'tenant_id': 'e9fd66f820bc4184be1df309eceb15ae', 'project_id': 'e9fd66f820bc4184be1df309eceb15ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['909ea3ab-11aa-4b25-bf50-557a05cc3258'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95949408', 'ctest-vn-26637886'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95949408', 'ctest-policy-allow-all-95209259']], 'subnet_ipam': [{'subnet_cidr': '129.198.170.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-25 10:45:06,452 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-04-25 10:45:06,745 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-04-25 10:45:06,769 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b786af23-0baa-4c54-b4e6-5a87065ca263 2025-04-25 10:45:06,781 - DEBUG - Requesting: http://10.0.0.38:8082/project/e9fd66f8-20bc-4184-be1d-f309eceb15ae 2025-04-25 10:45:06,850 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0b6847a4-aa54-45aa-966b-04e5cb8422af 2025-04-25 10:45:06,860 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0b6847a4-aa54-45aa-966b-04e5cb8422af 2025-04-25 10:45:06,869 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/526acd1d-d774-4f7c-a672-14d21bbefac8 2025-04-25 10:45:06,875 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/526acd1d-d774-4f7c-a672-14d21bbefac8 2025-04-25 10:45:06,880 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e9507b86-e311-4576-926a-2d34e5f8ab62 2025-04-25 10:45:06,886 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-25 10:45:06,886 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0b6847a4-aa54-45aa-966b-04e5cb8422af 2025-04-25 10:45:06,894 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/526acd1d-d774-4f7c-a672-14d21bbefac8 2025-04-25 10:45:06,906 - INFO - Verified VN network id 8 for VN 0b6847a4-aa54-45aa-966b-04e5cb8422af 2025-04-25 10:45:06,907 - INFO - Verifications in API Server for VN ctest-vn-52754779 passed 2025-04-25 10:45:06,907 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0b6847a4-aa54-45aa-966b-04e5cb8422af 2025-04-25 10:45:06,916 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/526acd1d-d774-4f7c-a672-14d21bbefac8 2025-04-25 10:45:06,925 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/526acd1d-d774-4f7c-a672-14d21bbefac8 2025-04-25 10:45:06,932 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e9507b86-e311-4576-926a-2d34e5f8ab62 2025-04-25 10:45:06,943 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95949408:ctest-vn-52754779', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95949408', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '821985704552973738', 'uuid-lslong': '10838762313205686959'}, 'enable': 'true', 'created': '2025-04-25T10:45:04', 'last-modified': '2025-04-25T10:45:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.932860'} 2025-04-25 10:45:06,950 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-25 10:45:06,950 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52754779 passed 2025-04-25 10:45:06,950 - DEBUG - ====Verifying policy data for ctest-vn-52754779 in API_Server ====== 2025-04-25 10:45:06,950 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-04-25 10:45:06,956 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b786af23-0baa-4c54-b4e6-5a87065ca263 2025-04-25 10:45:06,966 - DEBUG - Requesting: http://10.0.0.38:8082/project/e9fd66f8-20bc-4184-be1d-f309eceb15ae 2025-04-25 10:45:07,038 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0b6847a4-aa54-45aa-966b-04e5cb8422af 2025-04-25 10:45:07,047 - DEBUG - ==>Verifying data for policy with id: 2132065a-7474-4fc6-a773-67c70bd417df, fqn: ['default-domain', 'ctest-TestBasicPolicy-95949408', 'ctest-policy-allow-all-95209259'] 2025-04-25 10:45:07,047 - INFO - VN ctest-vn-52754779 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-25 10:45:07,047 - DEBUG - Verifying the vn in opserver 2025-04-25 10:45:07,047 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95949408:ctest-vn-52754779 virtual network link through opserver 10.0.0.38 2025-04-25 10:45:07,047 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-04-25 10:45:07,338 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-04-25 10:45:07,383 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95949408:ctest-vn-52754779', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95949408:ctest-vn-52754779?flat'} 2025-04-25 10:45:07,384 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95949408:ctest-vn-52754779 is found in opserver 2025-04-25 10:45:07,393 - DEBUG - Do not have enough data to verify VN in agent 2025-04-25 10:45:07,398 - DEBUG - VRF ids for VN ctest-vn-52754779: {} 2025-04-25 10:45:07,398 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-04-25 10:45:07,403 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b786af23-0baa-4c54-b4e6-5a87065ca263 2025-04-25 10:45:07,414 - DEBUG - Requesting: http://10.0.0.38:8082/project/e9fd66f8-20bc-4184-be1d-f309eceb15ae 2025-04-25 10:45:07,484 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/334a7fbf-8d29-4e40-a1bd-78dd8689a30b 2025-04-25 10:45:07,495 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/334a7fbf-8d29-4e40-a1bd-78dd8689a30b 2025-04-25 10:45:07,503 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/32d20773-8340-4e51-a88c-fbfaf5296250 2025-04-25 10:45:07,509 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/32d20773-8340-4e51-a88c-fbfaf5296250 2025-04-25 10:45:07,515 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8451507e-d50a-41c2-be5a-800c75298f71 2025-04-25 10:45:07,521 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-25 10:45:07,521 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/334a7fbf-8d29-4e40-a1bd-78dd8689a30b 2025-04-25 10:45:07,529 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/32d20773-8340-4e51-a88c-fbfaf5296250 2025-04-25 10:45:07,541 - INFO - Verified VN network id 9 for VN 334a7fbf-8d29-4e40-a1bd-78dd8689a30b 2025-04-25 10:45:07,541 - INFO - Verifications in API Server for VN ctest-vn-26637886 passed 2025-04-25 10:45:07,542 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/334a7fbf-8d29-4e40-a1bd-78dd8689a30b 2025-04-25 10:45:07,549 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/32d20773-8340-4e51-a88c-fbfaf5296250 2025-04-25 10:45:07,555 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/32d20773-8340-4e51-a88c-fbfaf5296250 2025-04-25 10:45:07,561 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8451507e-d50a-41c2-be5a-800c75298f71 2025-04-25 10:45:07,571 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95949408:ctest-vn-26637886', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95949408', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3695906904894688832', 'uuid-lslong': '11654604303544984331'}, 'enable': 'true', 'created': '2025-04-25T10:45:05', 'last-modified': '2025-04-25T10:45:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.331023'} 2025-04-25 10:45:07,576 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-25 10:45:07,577 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26637886 passed 2025-04-25 10:45:07,577 - DEBUG - ====Verifying policy data for ctest-vn-26637886 in API_Server ====== 2025-04-25 10:45:07,577 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-04-25 10:45:07,581 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b786af23-0baa-4c54-b4e6-5a87065ca263 2025-04-25 10:45:07,591 - DEBUG - Requesting: http://10.0.0.38:8082/project/e9fd66f8-20bc-4184-be1d-f309eceb15ae 2025-04-25 10:45:07,665 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/334a7fbf-8d29-4e40-a1bd-78dd8689a30b 2025-04-25 10:45:07,674 - DEBUG - ==>Verifying data for policy with id: 2132065a-7474-4fc6-a773-67c70bd417df, fqn: ['default-domain', 'ctest-TestBasicPolicy-95949408', 'ctest-policy-allow-all-95209259'] 2025-04-25 10:45:07,674 - INFO - VN ctest-vn-26637886 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-25 10:45:07,674 - DEBUG - Verifying the vn in opserver 2025-04-25 10:45:07,674 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95949408:ctest-vn-26637886 virtual network link through opserver 10.0.0.38 2025-04-25 10:45:07,674 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-04-25 10:45:07,682 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95949408:ctest-vn-26637886', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95949408:ctest-vn-26637886?flat'} 2025-04-25 10:45:07,683 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95949408:ctest-vn-26637886 is found in opserver 2025-04-25 10:45:07,692 - DEBUG - Do not have enough data to verify VN in agent 2025-04-25 10:45:07,697 - DEBUG - VRF ids for VN ctest-vn-26637886: {} 2025-04-25 10:45:07,746 - DEBUG - Services list from nova: [, , ] 2025-04-25 10:45:08,682 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3216-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3216-1) 2025-04-25 10:45:09,857 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3216-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3216-1) 2025-04-25 10:45:09,857 - INFO - Waiting for VM ctest-TestBasicPolicy-95949408-02934217 to be up.. 2025-04-25 10:45:09,938 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-25 10:45:15,020 - DEBUG - VM is in ACTIVE state now 2025-04-25 10:45:15,020 - INFO - VM name : ctest-TestBasicPolicy-95949408-02934217 2025-04-25 10:45:15,094 - DEBUG - VM ctest-TestBasicPolicy-95949408-02934217 ID is 67d135d5-8942-4a37-9a8a-35249476ee2e 2025-04-25 10:45:15,111 - DEBUG - VM ctest-TestBasicPolicy-95949408-02934217 launched on Node cn-jenkins-deploy-platform-ansible-os-3216-1 2025-04-25 10:45:15,200 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/67d135d5-8942-4a37-9a8a-35249476ee2e 2025-04-25 10:45:15,208 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/f3be0901-05fb-422f-8119-c3639ec304d4 2025-04-25 10:45:18,458 - 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 1016ms') 2025-04-25 10:45:18,458 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-95949408-02934217 failed! 2025-04-25 10:45:18,516 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-95949408:ctest-vn-52754779 is 201.165.24.1 and allocation pool is NOT set 2025-04-25 10:45:20,573 - 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=3.73 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.909 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.909/2.319/3.729/1.410 ms') 2025-04-25 10:45:20,573 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-95949408-02934217 passed 2025-04-25 10:45:20,724 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-25 10:45:20,724 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-95949408-02934217, IP 201.165.24.3, Port 22 2025-04-25 10:45:20,784 - 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-25 10:45:20,850 - DEBUG - VM ctest-TestBasicPolicy-95949408-02934217 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-25 10:45:25,851 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-25 10:45:25,852 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-95949408-02934217, IP 201.165.24.3, Port 22 2025-04-25 10:45:26,007 - DEBUG - VM ctest-TestBasicPolicy-95949408-02934217 is ready for SSH connections 2025-04-25 10:45:26,007 - INFO - Waiting for VM ctest-TestBasicPolicy-95949408-94332182 to be up.. 2025-04-25 10:45:26,073 - DEBUG - VM is in ACTIVE state now 2025-04-25 10:45:26,073 - INFO - VM name : ctest-TestBasicPolicy-95949408-94332182 2025-04-25 10:45:26,140 - DEBUG - VM ctest-TestBasicPolicy-95949408-94332182 ID is d40978a8-3aa6-4a22-9390-dd42bfaa3e32 2025-04-25 10:45:26,140 - DEBUG - VM ctest-TestBasicPolicy-95949408-94332182 launched on Node cn-jenkins-deploy-platform-ansible-os-3216-1 2025-04-25 10:45:26,207 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/d40978a8-3aa6-4a22-9390-dd42bfaa3e32 2025-04-25 10:45:26,215 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/5fc09614-5599-4395-8536-eb09234a3358 2025-04-25 10:45:27,456 - 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.384 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.384/1.544/2.704/1.160 ms') 2025-04-25 10:45:27,456 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-95949408-94332182 passed 2025-04-25 10:45:27,604 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-25 10:45:27,604 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-95949408-94332182, IP 129.198.170.131, Port 22 2025-04-25 10:45:27,755 - DEBUG - VM ctest-TestBasicPolicy-95949408-94332182 is ready for SSH connections 2025-04-25 10:45:27,756 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-25 10:45:27,756 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 129.198.170.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-04-25 10:45:27,756 - DEBUG - ping -s 56 -c 3 -W 1 129.198.170.131 2025-04-25 10:45:31,673 - DEBUG - PING 129.198.170.131 (129.198.170.131): 56 data bytes 64 bytes from 129.198.170.131: seq=0 ttl=63 time=3.457 ms 64 bytes from 129.198.170.131: seq=1 ttl=63 time=0.715 ms 64 bytes from 129.198.170.131: seq=2 ttl=63 time=0.749 ms --- 129.198.170.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.715/1.640/3.457 ms 2025-04-25 10:45:31,673 - INFO - Ping to IP 129.198.170.131 from VM ctest-TestBasicPolicy-95949408-02934217 passed 2025-04-25 10:45:31,876 - DEBUG - Policy Update Response {"network-policy": {"uuid": "2132065a-7474-4fc6-a773-67c70bd417df", "href": "http://10.0.0.38:8082/network-policy/2132065a-7474-4fc6-a773-67c70bd417df"}} 2025-04-25 10:45:31,876 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-25 10:45:31,876 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 129.198.170.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-04-25 10:45:31,876 - DEBUG - ping -s 56 -c 3 -W 1 129.198.170.131 2025-04-25 10:45:35,071 - DEBUG - PING 129.198.170.131 (129.198.170.131): 56 data bytes --- 129.198.170.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-04-25 10:45:35,071 - WARNING - Ping to IP 129.198.170.131 from VM ctest-TestBasicPolicy-95949408-02934217 failed 2025-04-25 10:45:35,071 - INFO - Deleting VM ctest-TestBasicPolicy-95949408-94332182 2025-04-25 10:45:35,141 - INFO - Deleting VM ctest-TestBasicPolicy-95949408-02934217 2025-04-25 10:45:35,493 - INFO - Deleted policy ctest-policy-allow-all-95209259 2025-04-25 10:45:35,493 - INFO - Deleting VN ctest-vn-26637886 2025-04-25 10:45:35,526 - DEBUG - VN 334a7fbf-8d29-4e40-a1bd-78dd8689a30b still in use: Unable to complete operation on network 334a7fbf-8d29-4e40-a1bd-78dd8689a30b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2fd863c2-79a6-47e1-86ad-a2d87110b9dc'] 2025-04-25 10:45:35,526 - WARNING - Deleting VN ctest-vn-26637886 failed..Will retry 2025-04-25 10:45:37,639 - DEBUG - Response for deleting network () 2025-04-25 10:45:37,639 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/32d20773-8340-4e51-a88c-fbfaf5296250 2025-04-25 10:45:37,648 - DEBUG - Response Code: 404 2025-04-25 10:45:37,648 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-04-25 10:45:37,654 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b786af23-0baa-4c54-b4e6-5a87065ca263 2025-04-25 10:45:37,710 - DEBUG - Requesting: http://10.0.0.38:8082/project/e9fd66f8-20bc-4184-be1d-f309eceb15ae 2025-04-25 10:45:37,777 - INFO - Validated that VN ctest-vn-26637886 is not found in API Server 2025-04-25 10:45:37,789 - DEBUG - VN ctest-vn-26637886 is not present in Agent 10.0.0.38 2025-04-25 10:45:37,789 - INFO - Validated that VN ctest-vn-26637886 is not in any agent 2025-04-25 10:45:37,805 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-26637886 info 2025-04-25 10:45:37,806 - INFO - Deleting VN ctest-vn-52754779 2025-04-25 10:45:37,900 - DEBUG - Response for deleting network () 2025-04-25 10:45:37,900 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/526acd1d-d774-4f7c-a672-14d21bbefac8 2025-04-25 10:45:37,909 - DEBUG - Response Code: 404 2025-04-25 10:45:37,909 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-04-25 10:45:37,914 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b786af23-0baa-4c54-b4e6-5a87065ca263 2025-04-25 10:45:37,965 - DEBUG - Requesting: http://10.0.0.38:8082/project/e9fd66f8-20bc-4184-be1d-f309eceb15ae 2025-04-25 10:45:38,033 - INFO - Validated that VN ctest-vn-52754779 is not found in API Server 2025-04-25 10:45:38,042 - DEBUG - VN ctest-vn-52754779 is not present in Agent 10.0.0.38 2025-04-25 10:45:38,042 - INFO - Validated that VN ctest-vn-52754779 is not in any agent 2025-04-25 10:45:38,056 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-52754779 info 2025-04-25 10:45:38,310 - DEBUG - No XMPP flaps were noticed during the test
2025-04-25 10:45:38,310 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-04-25 10:45:38,310 - INFO - -------------------------------------------------------------------------------- 2025-04-25 10:45:38,958 - INFO - Deleted project: ctest-TestBasicPolicy-95949408, ID : e9fd66f8-20bc-4184-be1d-f309eceb15ae