2025-05-22 02:15:26,215 - INFO - Domain Default found not creating 2025-05-22 02:15:26,397 - INFO - Project ctest-TestBasicPolicy-10771117 not found, creating it 2025-05-22 02:15:26,895 - INFO - Created Project:ctest-TestBasicPolicy-10771117, ID : 57f5c4b3-4f18-442f-a896-660e46cb85d6 2025-05-22 02:15:28,575 - INFO - ================================================================================ 2025-05-22 02:15:28,576 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-05-22 02:15:28,576 - 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-05-22 02:15:28,829 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-05-22 02:15:28,829 - INFO - Initial checks done. Running the testcase now 2025-05-22 02:15:28,829 - INFO - 2025-05-22 02:15:29,465 - DEBUG - Response for create_network : {'network': {'id': 'ec46085e-bec9-442c-aff7-6f62ac941280', 'name': 'ctest-vn-91099796', 'tenant_id': '57f5c4b34f18442fa896660e46cb85d6', 'project_id': '57f5c4b34f18442fa896660e46cb85d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10771117', 'ctest-vn-91099796'], 'port_security_enabled': True, 'description': ''}} 2025-05-22 02:15:29,644 - DEBUG - Response for create_subnet : {'subnet': {'id': '42266331-a88e-465a-b384-24bea193dd97', 'name': '', 'tenant_id': '57f5c4b34f18442fa896660e46cb85d6', 'network_id': 'ec46085e-bec9-442c-aff7-6f62ac941280', 'ip_version': 4, 'cidr': '95.244.62.0/26', 'allocation_pools': [{'start': '95.244.62.2', 'end': '95.244.62.62'}], 'gateway_ip': '95.244.62.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.244.62.2', 'tags': [], 'project_id': '57f5c4b34f18442fa896660e46cb85d6'}} 2025-05-22 02:15:29,718 - INFO - Created VN ctest-vn-91099796 2025-05-22 02:15:29,770 - DEBUG - VN ctest-vn-91099796 UUID is ec46085e-bec9-442c-aff7-6f62ac941280 2025-05-22 02:15:30,079 - DEBUG - Response for create_network : {'network': {'id': 'e0601c03-13cc-46fe-8c48-2253fc1127e0', 'name': 'ctest-vn-46392530', 'tenant_id': '57f5c4b34f18442fa896660e46cb85d6', 'project_id': '57f5c4b34f18442fa896660e46cb85d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10771117', 'ctest-vn-46392530'], 'port_security_enabled': True, 'description': ''}} 2025-05-22 02:15:30,291 - DEBUG - Response for create_subnet : {'subnet': {'id': '1dcbe517-0ba0-48db-baf4-b1ef778ff118', 'name': '', 'tenant_id': '57f5c4b34f18442fa896660e46cb85d6', 'network_id': 'e0601c03-13cc-46fe-8c48-2253fc1127e0', 'ip_version': 4, 'cidr': '188.240.39.128/26', 'allocation_pools': [{'start': '188.240.39.130', 'end': '188.240.39.190'}], 'gateway_ip': '188.240.39.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '188.240.39.130', 'tags': [], 'project_id': '57f5c4b34f18442fa896660e46cb85d6'}} 2025-05-22 02:15:30,313 - INFO - Created VN ctest-vn-46392530 2025-05-22 02:15:30,366 - DEBUG - VN ctest-vn-46392530 UUID is e0601c03-13cc-46fe-8c48-2253fc1127e0 2025-05-22 02:15:30,488 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-10771117:ctest-vn-91099796, 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-10771117:ctest-vn-46392530, 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-05-22 02:15:30,813 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ec46085e-bec9-442c-aff7-6f62ac941280', 'name': 'ctest-vn-91099796', 'tenant_id': '57f5c4b34f18442fa896660e46cb85d6', 'project_id': '57f5c4b34f18442fa896660e46cb85d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['42266331-a88e-465a-b384-24bea193dd97'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10771117', 'ctest-vn-91099796'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10771117', 'ctest-policy-allow-all-04754378']], 'subnet_ipam': [{'subnet_cidr': '95.244.62.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-22 02:15:31,054 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e0601c03-13cc-46fe-8c48-2253fc1127e0', 'name': 'ctest-vn-46392530', 'tenant_id': '57f5c4b34f18442fa896660e46cb85d6', 'project_id': '57f5c4b34f18442fa896660e46cb85d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1dcbe517-0ba0-48db-baf4-b1ef778ff118'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10771117', 'ctest-vn-46392530'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10771117', 'ctest-policy-allow-all-04754378']], 'subnet_ipam': [{'subnet_cidr': '188.240.39.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-22 02:15:31,231 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-22 02:15:31,573 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-22 02:15:31,612 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1503ea4d-2a48-4984-b408-44ce7c750056 2025-05-22 02:15:31,631 - DEBUG - Requesting: http://10.0.0.50:8082/project/57f5c4b3-4f18-442f-a896-660e46cb85d6 2025-05-22 02:15:31,721 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ec46085e-bec9-442c-aff7-6f62ac941280 2025-05-22 02:15:31,734 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ec46085e-bec9-442c-aff7-6f62ac941280 2025-05-22 02:15:31,746 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cd7974c8-189a-4b7d-9da8-519969d8f0c5 2025-05-22 02:15:31,756 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cd7974c8-189a-4b7d-9da8-519969d8f0c5 2025-05-22 02:15:31,765 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5aed3f2d-ab74-4c4d-8019-0460dcaa2308 2025-05-22 02:15:31,773 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-22 02:15:31,773 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ec46085e-bec9-442c-aff7-6f62ac941280 2025-05-22 02:15:31,786 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cd7974c8-189a-4b7d-9da8-519969d8f0c5 2025-05-22 02:15:31,805 - INFO - Verified VN network id 9 for VN ec46085e-bec9-442c-aff7-6f62ac941280 2025-05-22 02:15:31,805 - INFO - Verifications in API Server for VN ctest-vn-91099796 passed 2025-05-22 02:15:31,805 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ec46085e-bec9-442c-aff7-6f62ac941280 2025-05-22 02:15:31,816 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cd7974c8-189a-4b7d-9da8-519969d8f0c5 2025-05-22 02:15:31,825 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cd7974c8-189a-4b7d-9da8-519969d8f0c5 2025-05-22 02:15:31,833 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5aed3f2d-ab74-4c4d-8019-0460dcaa2308 2025-05-22 02:15:31,846 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10771117:ctest-vn-91099796', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10771117', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17025304644341548076', 'uuid-lslong': '12679725745477784192'}, 'enable': 'true', 'created': '2025-05-22T02:15:29', 'last-modified': '2025-05-22T02:15:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.078000'} 2025-05-22 02:15:31,855 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-22 02:15:31,855 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91099796 passed 2025-05-22 02:15:31,856 - DEBUG - ====Verifying policy data for ctest-vn-91099796 in API_Server ====== 2025-05-22 02:15:31,856 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-22 02:15:31,862 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1503ea4d-2a48-4984-b408-44ce7c750056 2025-05-22 02:15:31,878 - DEBUG - Requesting: http://10.0.0.50:8082/project/57f5c4b3-4f18-442f-a896-660e46cb85d6 2025-05-22 02:15:31,957 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ec46085e-bec9-442c-aff7-6f62ac941280 2025-05-22 02:15:31,969 - DEBUG - ==>Verifying data for policy with id: 8e9039d5-99da-44d8-96e3-2991f5c58840, fqn: ['default-domain', 'ctest-TestBasicPolicy-10771117', 'ctest-policy-allow-all-04754378'] 2025-05-22 02:15:31,970 - INFO - VN ctest-vn-91099796 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-22 02:15:31,970 - DEBUG - Verifying the vn in opserver 2025-05-22 02:15:31,970 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10771117:ctest-vn-91099796 virtual network link through opserver 10.0.0.50 2025-05-22 02:15:31,970 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-05-22 02:15:32,312 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-05-22 02:15:32,379 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10771117:ctest-vn-91099796', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10771117:ctest-vn-91099796?flat'} 2025-05-22 02:15:32,379 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10771117:ctest-vn-91099796 is found in opserver 2025-05-22 02:15:32,391 - DEBUG - Do not have enough data to verify VN in agent 2025-05-22 02:15:32,397 - DEBUG - VRF ids for VN ctest-vn-91099796: {} 2025-05-22 02:15:32,397 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-22 02:15:32,403 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1503ea4d-2a48-4984-b408-44ce7c750056 2025-05-22 02:15:32,418 - DEBUG - Requesting: http://10.0.0.50:8082/project/57f5c4b3-4f18-442f-a896-660e46cb85d6 2025-05-22 02:15:32,492 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e0601c03-13cc-46fe-8c48-2253fc1127e0 2025-05-22 02:15:32,507 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e0601c03-13cc-46fe-8c48-2253fc1127e0 2025-05-22 02:15:32,519 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0c515811-3b30-4f9a-8e7c-fc76ce7a78e0 2025-05-22 02:15:32,527 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0c515811-3b30-4f9a-8e7c-fc76ce7a78e0 2025-05-22 02:15:32,535 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9fcf37b9-cbb1-4610-96af-44024a4d69b0 2025-05-22 02:15:32,543 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-22 02:15:32,543 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e0601c03-13cc-46fe-8c48-2253fc1127e0 2025-05-22 02:15:32,557 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0c515811-3b30-4f9a-8e7c-fc76ce7a78e0 2025-05-22 02:15:32,579 - INFO - Verified VN network id 10 for VN e0601c03-13cc-46fe-8c48-2253fc1127e0 2025-05-22 02:15:32,579 - INFO - Verifications in API Server for VN ctest-vn-46392530 passed 2025-05-22 02:15:32,579 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e0601c03-13cc-46fe-8c48-2253fc1127e0 2025-05-22 02:15:32,593 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0c515811-3b30-4f9a-8e7c-fc76ce7a78e0 2025-05-22 02:15:32,605 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0c515811-3b30-4f9a-8e7c-fc76ce7a78e0 2025-05-22 02:15:32,616 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9fcf37b9-cbb1-4610-96af-44024a4d69b0 2025-05-22 02:15:32,634 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10771117:ctest-vn-46392530', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10771117', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16167953461802714878', 'uuid-lslong': '10108367107739690976'}, 'enable': 'true', 'created': '2025-05-22T02:15:30', 'last-modified': '2025-05-22T02:15:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.606628'} 2025-05-22 02:15:32,644 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-22 02:15:32,644 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46392530 passed 2025-05-22 02:15:32,644 - DEBUG - ====Verifying policy data for ctest-vn-46392530 in API_Server ====== 2025-05-22 02:15:32,644 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-22 02:15:32,652 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1503ea4d-2a48-4984-b408-44ce7c750056 2025-05-22 02:15:32,667 - DEBUG - Requesting: http://10.0.0.50:8082/project/57f5c4b3-4f18-442f-a896-660e46cb85d6 2025-05-22 02:15:32,746 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e0601c03-13cc-46fe-8c48-2253fc1127e0 2025-05-22 02:15:32,761 - DEBUG - ==>Verifying data for policy with id: 8e9039d5-99da-44d8-96e3-2991f5c58840, fqn: ['default-domain', 'ctest-TestBasicPolicy-10771117', 'ctest-policy-allow-all-04754378'] 2025-05-22 02:15:32,761 - INFO - VN ctest-vn-46392530 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-22 02:15:32,761 - DEBUG - Verifying the vn in opserver 2025-05-22 02:15:32,761 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10771117:ctest-vn-46392530 virtual network link through opserver 10.0.0.50 2025-05-22 02:15:32,761 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-05-22 02:15:32,776 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10771117:ctest-vn-46392530', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10771117:ctest-vn-46392530?flat'} 2025-05-22 02:15:32,776 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10771117:ctest-vn-46392530 is found in opserver 2025-05-22 02:15:32,791 - DEBUG - Do not have enough data to verify VN in agent 2025-05-22 02:15:32,798 - DEBUG - VRF ids for VN ctest-vn-46392530: {} 2025-05-22 02:15:32,864 - DEBUG - Services list from nova: [, , ] 2025-05-22 02:15:34,015 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3330-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3330-1) 2025-05-22 02:15:35,417 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3330-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3330-1) 2025-05-22 02:15:35,417 - INFO - Waiting for VM ctest-TestBasicPolicy-10771117-37271381 to be up.. 2025-05-22 02:15:35,515 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-05-22 02:15:40,605 - DEBUG - VM is in ACTIVE state now 2025-05-22 02:15:40,605 - INFO - VM name : ctest-TestBasicPolicy-10771117-37271381 2025-05-22 02:15:40,689 - DEBUG - VM ctest-TestBasicPolicy-10771117-37271381 ID is d99552af-ce7e-42f9-b195-1d84d8811846 2025-05-22 02:15:40,713 - DEBUG - VM ctest-TestBasicPolicy-10771117-37271381 launched on Node cn-jenkins-deploy-platform-ansible-os-3330-1 2025-05-22 02:15:40,808 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/d99552af-ce7e-42f9-b195-1d84d8811846 2025-05-22 02:15:40,818 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/7c15fefc-ea70-4c11-80a6-adc33f51738a 2025-05-22 02:15:44,106 - 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 1032ms') 2025-05-22 02:15:44,106 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-10771117-37271381 failed! 2025-05-22 02:15:44,162 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-10771117:ctest-vn-91099796 is 95.244.62.1 and allocation pool is NOT set 2025-05-22 02:15:46,226 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=10.0 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.13 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.130/6.071/10.013/3.941 ms') 2025-05-22 02:15:46,226 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-10771117-37271381 passed 2025-05-22 02:15:46,391 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-22 02:15:46,391 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-10771117-37271381, IP 95.244.62.3, Port 22 2025-05-22 02:15:46,457 - 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-05-22 02:15:46,567 - DEBUG - VM ctest-TestBasicPolicy-10771117-37271381 is NOT ready for SSH connections, VM status: ACTIVE 2025-05-22 02:15:51,567 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-22 02:15:51,567 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-10771117-37271381, IP 95.244.62.3, Port 22 2025-05-22 02:15:51,722 - DEBUG - VM ctest-TestBasicPolicy-10771117-37271381 is ready for SSH connections 2025-05-22 02:15:51,722 - INFO - Waiting for VM ctest-TestBasicPolicy-10771117-64945703 to be up.. 2025-05-22 02:15:51,808 - DEBUG - VM is in ACTIVE state now 2025-05-22 02:15:51,808 - INFO - VM name : ctest-TestBasicPolicy-10771117-64945703 2025-05-22 02:15:51,884 - DEBUG - VM ctest-TestBasicPolicy-10771117-64945703 ID is de64f66d-30b0-413f-b961-f2e020df0521 2025-05-22 02:15:51,885 - DEBUG - VM ctest-TestBasicPolicy-10771117-64945703 launched on Node cn-jenkins-deploy-platform-ansible-os-3330-1 2025-05-22 02:15:51,968 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/de64f66d-30b0-413f-b961-f2e020df0521 2025-05-22 02:15:51,978 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/da9989b8-ae05-47a5-95b9-e4c984bdd8cf 2025-05-22 02:15:53,232 - 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=4.26 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.490 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.490/2.372/4.255/1.882 ms') 2025-05-22 02:15:53,232 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-10771117-64945703 passed 2025-05-22 02:15:53,386 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-22 02:15:53,387 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-10771117-64945703, IP 188.240.39.131, Port 22 2025-05-22 02:15:53,546 - DEBUG - VM ctest-TestBasicPolicy-10771117-64945703 is ready for SSH connections 2025-05-22 02:15:53,547 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-22 02:15:53,547 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 188.240.39.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-05-22 02:15:53,547 - DEBUG - ping -s 56 -c 3 -W 1 188.240.39.131 2025-05-22 02:15:57,636 - DEBUG - PING 188.240.39.131 (188.240.39.131): 56 data bytes 64 bytes from 188.240.39.131: seq=0 ttl=63 time=4.106 ms 64 bytes from 188.240.39.131: seq=1 ttl=63 time=0.929 ms 64 bytes from 188.240.39.131: seq=2 ttl=63 time=0.873 ms --- 188.240.39.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.873/1.969/4.106 ms 2025-05-22 02:15:57,636 - INFO - Ping to IP 188.240.39.131 from VM ctest-TestBasicPolicy-10771117-37271381 passed 2025-05-22 02:15:57,834 - DEBUG - Policy Update Response {"network-policy": {"uuid": "8e9039d5-99da-44d8-96e3-2991f5c58840", "href": "http://10.0.0.50:8082/network-policy/8e9039d5-99da-44d8-96e3-2991f5c58840"}} 2025-05-22 02:15:57,834 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-22 02:15:57,835 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 188.240.39.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-05-22 02:15:57,835 - DEBUG - ping -s 56 -c 3 -W 1 188.240.39.131 2025-05-22 02:16:01,078 - DEBUG - PING 188.240.39.131 (188.240.39.131): 56 data bytes 64 bytes from 188.240.39.131: seq=0 ttl=63 time=1.545 ms --- 188.240.39.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.545/1.545/1.545 ms 2025-05-22 02:16:01,078 - WARNING - Ping to IP 188.240.39.131 from VM ctest-TestBasicPolicy-10771117-37271381 failed 2025-05-22 02:16:01,078 - INFO - Deleting VM ctest-TestBasicPolicy-10771117-64945703 2025-05-22 02:16:01,153 - INFO - Deleting VM ctest-TestBasicPolicy-10771117-37271381 2025-05-22 02:16:01,662 - INFO - Deleted policy ctest-policy-allow-all-04754378 2025-05-22 02:16:01,662 - INFO - Deleting VN ctest-vn-46392530 2025-05-22 02:16:01,708 - DEBUG - VN e0601c03-13cc-46fe-8c48-2253fc1127e0 still in use: Unable to complete operation on network e0601c03-13cc-46fe-8c48-2253fc1127e0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-98d4557e-a478-43ec-a1c0-51ac7b23b7a6'] 2025-05-22 02:16:01,708 - WARNING - Deleting VN ctest-vn-46392530 failed..Will retry 2025-05-22 02:16:03,835 - DEBUG - Response for deleting network () 2025-05-22 02:16:03,836 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0c515811-3b30-4f9a-8e7c-fc76ce7a78e0 2025-05-22 02:16:03,843 - DEBUG - Response Code: 404 2025-05-22 02:16:03,843 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-22 02:16:03,849 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1503ea4d-2a48-4984-b408-44ce7c750056 2025-05-22 02:16:03,906 - DEBUG - Requesting: http://10.0.0.50:8082/project/57f5c4b3-4f18-442f-a896-660e46cb85d6 2025-05-22 02:16:03,983 - INFO - Validated that VN ctest-vn-46392530 is not found in API Server 2025-05-22 02:16:03,996 - DEBUG - VN ctest-vn-46392530 is not present in Agent 10.0.0.50 2025-05-22 02:16:03,996 - INFO - Validated that VN ctest-vn-46392530 is not in any agent 2025-05-22 02:16:04,015 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-46392530 info 2025-05-22 02:16:04,015 - INFO - Deleting VN ctest-vn-91099796 2025-05-22 02:16:04,120 - DEBUG - Response for deleting network () 2025-05-22 02:16:04,120 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cd7974c8-189a-4b7d-9da8-519969d8f0c5 2025-05-22 02:16:04,128 - DEBUG - Response Code: 404 2025-05-22 02:16:04,129 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-22 02:16:04,137 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1503ea4d-2a48-4984-b408-44ce7c750056 2025-05-22 02:16:04,193 - DEBUG - Requesting: http://10.0.0.50:8082/project/57f5c4b3-4f18-442f-a896-660e46cb85d6 2025-05-22 02:16:04,266 - INFO - Validated that VN ctest-vn-91099796 is not found in API Server 2025-05-22 02:16:04,279 - DEBUG - VN ctest-vn-91099796 is not present in Agent 10.0.0.50 2025-05-22 02:16:04,279 - INFO - Validated that VN ctest-vn-91099796 is not in any agent 2025-05-22 02:16:04,296 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-91099796 info 2025-05-22 02:16:04,553 - DEBUG - No XMPP flaps were noticed during the test 2025-05-22 02:16:04,554 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2025-05-22 02:16:04,554 - INFO - -------------------------------------------------------------------------------- 2025-05-22 02:16:05,284 - INFO - Deleted project: ctest-TestBasicPolicy-10771117, ID : 57f5c4b3-4f18-442f-a896-660e46cb85d6