2025-02-06 20:28:25,511 - INFO - Domain Default found not creating 2025-02-06 20:28:25,650 - INFO - Project ctest-TestBasicPolicy-65325817 not found, creating it 2025-02-06 20:28:26,099 - INFO - Created Project:ctest-TestBasicPolicy-65325817, ID : 06dc7175-380f-49a6-9d12-d6b49db8b4b3 2025-02-06 20:28:27,642 - INFO - ================================================================================ 2025-02-06 20:28:27,642 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-02-06 20:28:27,642 - 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-02-06 20:28:27,900 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.10': '0'}} with 2025-02-06 20:28:27,900 - INFO - Initial checks done. Running the testcase now 2025-02-06 20:28:27,900 - INFO - 2025-02-06 20:28:28,496 - DEBUG - Response for create_network : {'network': {'id': '15cb8743-33f4-4679-ae9e-f6a8dc2755ab', 'name': 'ctest-vn-27128480', 'tenant_id': '06dc7175380f49a69d12d6b49db8b4b3', 'project_id': '06dc7175380f49a69d12d6b49db8b4b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65325817', 'ctest-vn-27128480'], 'port_security_enabled': True, 'description': ''}} 2025-02-06 20:28:28,691 - DEBUG - Response for create_subnet : {'subnet': {'id': '9bc82118-9696-4c82-bfb3-939bcf36858e', 'name': '', 'tenant_id': '06dc7175380f49a69d12d6b49db8b4b3', 'network_id': '15cb8743-33f4-4679-ae9e-f6a8dc2755ab', 'ip_version': 4, 'cidr': '165.91.20.64/26', 'allocation_pools': [{'start': '165.91.20.66', 'end': '165.91.20.126'}], 'gateway_ip': '165.91.20.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.91.20.66', 'tags': [], 'project_id': '06dc7175380f49a69d12d6b49db8b4b3'}} 2025-02-06 20:28:28,710 - INFO - Created VN ctest-vn-27128480 2025-02-06 20:28:28,762 - DEBUG - VN ctest-vn-27128480 UUID is 15cb8743-33f4-4679-ae9e-f6a8dc2755ab 2025-02-06 20:28:29,100 - DEBUG - Response for create_network : {'network': {'id': '75cf9c08-14b4-4327-b117-47abda8940a3', 'name': 'ctest-vn-76261692', 'tenant_id': '06dc7175380f49a69d12d6b49db8b4b3', 'project_id': '06dc7175380f49a69d12d6b49db8b4b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65325817', 'ctest-vn-76261692'], 'port_security_enabled': True, 'description': ''}} 2025-02-06 20:28:29,280 - DEBUG - Response for create_subnet : {'subnet': {'id': '0940e9b3-6f9b-4f3b-a260-2b53074584bc', 'name': '', 'tenant_id': '06dc7175380f49a69d12d6b49db8b4b3', 'network_id': '75cf9c08-14b4-4327-b117-47abda8940a3', 'ip_version': 4, 'cidr': '7.152.241.192/26', 'allocation_pools': [{'start': '7.152.241.194', 'end': '7.152.241.254'}], 'gateway_ip': '7.152.241.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.152.241.194', 'tags': [], 'project_id': '06dc7175380f49a69d12d6b49db8b4b3'}} 2025-02-06 20:28:29,298 - INFO - Created VN ctest-vn-76261692 2025-02-06 20:28:29,350 - DEBUG - VN ctest-vn-76261692 UUID is 75cf9c08-14b4-4327-b117-47abda8940a3 2025-02-06 20:28:29,465 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-65325817:ctest-vn-27128480, 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-65325817:ctest-vn-76261692, 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-02-06 20:28:29,765 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '15cb8743-33f4-4679-ae9e-f6a8dc2755ab', 'name': 'ctest-vn-27128480', 'tenant_id': '06dc7175380f49a69d12d6b49db8b4b3', 'project_id': '06dc7175380f49a69d12d6b49db8b4b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9bc82118-9696-4c82-bfb3-939bcf36858e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65325817', 'ctest-vn-27128480'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65325817', 'ctest-policy-allow-all-62356277']], 'subnet_ipam': [{'subnet_cidr': '165.91.20.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-06 20:28:30,043 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '75cf9c08-14b4-4327-b117-47abda8940a3', 'name': 'ctest-vn-76261692', 'tenant_id': '06dc7175380f49a69d12d6b49db8b4b3', 'project_id': '06dc7175380f49a69d12d6b49db8b4b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0940e9b3-6f9b-4f3b-a260-2b53074584bc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65325817', 'ctest-vn-76261692'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65325817', 'ctest-policy-allow-all-62356277']], 'subnet_ipam': [{'subnet_cidr': '7.152.241.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-06 20:28:30,194 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2025-02-06 20:28:30,533 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2025-02-06 20:28:30,562 - DEBUG - Requesting: http://10.0.0.34:8082/domain/61b844de-7d0e-4577-8f0b-9821e6aa983e 2025-02-06 20:28:30,576 - DEBUG - Requesting: http://10.0.0.34:8082/project/06dc7175-380f-49a6-9d12-d6b49db8b4b3 2025-02-06 20:28:30,651 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/15cb8743-33f4-4679-ae9e-f6a8dc2755ab 2025-02-06 20:28:30,663 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/15cb8743-33f4-4679-ae9e-f6a8dc2755ab 2025-02-06 20:28:30,674 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/752b3cd6-7361-4e70-9f92-b5148cafee4d 2025-02-06 20:28:30,683 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/752b3cd6-7361-4e70-9f92-b5148cafee4d 2025-02-06 20:28:30,689 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/90ef03c7-758f-4638-a9a3-c77c768f4146 2025-02-06 20:28:30,695 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-02-06 20:28:30,695 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/15cb8743-33f4-4679-ae9e-f6a8dc2755ab 2025-02-06 20:28:30,708 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/752b3cd6-7361-4e70-9f92-b5148cafee4d 2025-02-06 20:28:30,722 - INFO - Verified VN network id 8 for VN 15cb8743-33f4-4679-ae9e-f6a8dc2755ab 2025-02-06 20:28:30,722 - INFO - Verifications in API Server for VN ctest-vn-27128480 passed 2025-02-06 20:28:30,722 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/15cb8743-33f4-4679-ae9e-f6a8dc2755ab 2025-02-06 20:28:30,732 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/752b3cd6-7361-4e70-9f92-b5148cafee4d 2025-02-06 20:28:30,739 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/752b3cd6-7361-4e70-9f92-b5148cafee4d 2025-02-06 20:28:30,745 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/90ef03c7-758f-4638-a9a3-c77c768f4146 2025-02-06 20:28:30,758 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65325817:ctest-vn-27128480', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65325817', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1570497617772955257', 'uuid-lslong': '12582765614028248491'}, 'enable': 'true', 'created': '2025-02-06T20:28:28', 'last-modified': '2025-02-06T20:28:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.020918'} 2025-02-06 20:28:30,766 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-02-06 20:28:30,766 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27128480 passed 2025-02-06 20:28:30,766 - DEBUG - ====Verifying policy data for ctest-vn-27128480 in API_Server ====== 2025-02-06 20:28:30,766 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2025-02-06 20:28:30,772 - DEBUG - Requesting: http://10.0.0.34:8082/domain/61b844de-7d0e-4577-8f0b-9821e6aa983e 2025-02-06 20:28:30,784 - DEBUG - Requesting: http://10.0.0.34:8082/project/06dc7175-380f-49a6-9d12-d6b49db8b4b3 2025-02-06 20:28:30,856 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/15cb8743-33f4-4679-ae9e-f6a8dc2755ab 2025-02-06 20:28:30,868 - DEBUG - ==>Verifying data for policy with id: f6ec0f70-3f80-47ab-88dd-a6cf89c9f6f0, fqn: ['default-domain', 'ctest-TestBasicPolicy-65325817', 'ctest-policy-allow-all-62356277'] 2025-02-06 20:28:30,868 - INFO - VN ctest-vn-27128480 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-06 20:28:30,868 - DEBUG - Verifying the vn in opserver 2025-02-06 20:28:30,868 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65325817:ctest-vn-27128480 virtual network link through opserver 10.0.0.34 2025-02-06 20:28:30,868 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks 2025-02-06 20:28:31,198 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks 2025-02-06 20:28:31,252 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65325817:ctest-vn-27128480', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65325817:ctest-vn-27128480?flat'} 2025-02-06 20:28:31,252 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65325817:ctest-vn-27128480 is found in opserver 2025-02-06 20:28:31,263 - DEBUG - Do not have enough data to verify VN in agent 2025-02-06 20:28:31,269 - DEBUG - VRF ids for VN ctest-vn-27128480: {} 2025-02-06 20:28:31,269 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2025-02-06 20:28:31,275 - DEBUG - Requesting: http://10.0.0.34:8082/domain/61b844de-7d0e-4577-8f0b-9821e6aa983e 2025-02-06 20:28:31,286 - DEBUG - Requesting: http://10.0.0.34:8082/project/06dc7175-380f-49a6-9d12-d6b49db8b4b3 2025-02-06 20:28:31,355 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/75cf9c08-14b4-4327-b117-47abda8940a3 2025-02-06 20:28:31,368 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/75cf9c08-14b4-4327-b117-47abda8940a3 2025-02-06 20:28:31,378 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/8077eaa6-2c1e-4c06-bc08-648963210724 2025-02-06 20:28:31,384 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/8077eaa6-2c1e-4c06-bc08-648963210724 2025-02-06 20:28:31,391 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/5aa130e1-8c72-4452-9b12-c6e718654ce5 2025-02-06 20:28:31,397 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-06 20:28:31,397 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/75cf9c08-14b4-4327-b117-47abda8940a3 2025-02-06 20:28:31,406 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/8077eaa6-2c1e-4c06-bc08-648963210724 2025-02-06 20:28:31,420 - INFO - Verified VN network id 9 for VN 75cf9c08-14b4-4327-b117-47abda8940a3 2025-02-06 20:28:31,420 - INFO - Verifications in API Server for VN ctest-vn-76261692 passed 2025-02-06 20:28:31,420 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/75cf9c08-14b4-4327-b117-47abda8940a3 2025-02-06 20:28:31,430 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/8077eaa6-2c1e-4c06-bc08-648963210724 2025-02-06 20:28:31,437 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/8077eaa6-2c1e-4c06-bc08-648963210724 2025-02-06 20:28:31,443 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/5aa130e1-8c72-4452-9b12-c6e718654ce5 2025-02-06 20:28:31,455 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65325817:ctest-vn-76261692', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65325817', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8489175381137703719', 'uuid-lslong': '12760746872608997539'}, 'enable': 'true', 'created': '2025-02-06T20:28:29', 'last-modified': '2025-02-06T20:28:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.478271'} 2025-02-06 20:28:31,462 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-06 20:28:31,462 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76261692 passed 2025-02-06 20:28:31,462 - DEBUG - ====Verifying policy data for ctest-vn-76261692 in API_Server ====== 2025-02-06 20:28:31,462 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2025-02-06 20:28:31,467 - DEBUG - Requesting: http://10.0.0.34:8082/domain/61b844de-7d0e-4577-8f0b-9821e6aa983e 2025-02-06 20:28:31,479 - DEBUG - Requesting: http://10.0.0.34:8082/project/06dc7175-380f-49a6-9d12-d6b49db8b4b3 2025-02-06 20:28:31,555 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/75cf9c08-14b4-4327-b117-47abda8940a3 2025-02-06 20:28:31,565 - DEBUG - ==>Verifying data for policy with id: f6ec0f70-3f80-47ab-88dd-a6cf89c9f6f0, fqn: ['default-domain', 'ctest-TestBasicPolicy-65325817', 'ctest-policy-allow-all-62356277'] 2025-02-06 20:28:31,565 - INFO - VN ctest-vn-76261692 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-06 20:28:31,565 - DEBUG - Verifying the vn in opserver 2025-02-06 20:28:31,565 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65325817:ctest-vn-76261692 virtual network link through opserver 10.0.0.34 2025-02-06 20:28:31,566 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks 2025-02-06 20:28:31,576 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65325817:ctest-vn-76261692', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65325817:ctest-vn-76261692?flat'} 2025-02-06 20:28:31,576 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65325817:ctest-vn-76261692 is found in opserver 2025-02-06 20:28:31,587 - DEBUG - Do not have enough data to verify VN in agent 2025-02-06 20:28:31,593 - DEBUG - VRF ids for VN ctest-vn-76261692: {} 2025-02-06 20:28:31,649 - DEBUG - Services list from nova: [, , ] 2025-02-06 20:28:32,725 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2704-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2704-1) 2025-02-06 20:28:34,021 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2704-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2704-1) 2025-02-06 20:28:34,021 - INFO - Waiting for VM ctest-TestBasicPolicy-65325817-41044989 to be up.. 2025-02-06 20:28:34,104 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-02-06 20:28:39,183 - DEBUG - VM is in ACTIVE state now 2025-02-06 20:28:39,183 - INFO - VM name : ctest-TestBasicPolicy-65325817-41044989 2025-02-06 20:28:39,263 - DEBUG - VM ctest-TestBasicPolicy-65325817-41044989 ID is 8688e969-9c87-432d-b36f-2a9d2fd56619 2025-02-06 20:28:39,282 - DEBUG - VM ctest-TestBasicPolicy-65325817-41044989 launched on Node cn-jenkins-deploy-platform-ansible-os-2704-1 2025-02-06 20:28:39,355 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/8688e969-9c87-432d-b36f-2a9d2fd56619 2025-02-06 20:28:39,364 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/2b3b5705-6887-4801-b926-6e268d83be44 2025-02-06 20:28:42,614 - 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 1019ms') 2025-02-06 20:28:42,614 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-65325817-41044989 failed! 2025-02-06 20:28:42,670 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-65325817:ctest-vn-27128480 is 165.91.20.65 and allocation pool is NOT set 2025-02-06 20:28:44,734 - 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.7 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.84 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.836/6.784/10.732/3.948 ms') 2025-02-06 20:28:44,734 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-65325817-41044989 passed 2025-02-06 20:28:44,886 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-06 20:28:44,886 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-65325817-41044989, IP 165.91.20.67, Port 22 2025-02-06 20:28:44,952 - 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-02-06 20:28:45,040 - DEBUG - VM ctest-TestBasicPolicy-65325817-41044989 is NOT ready for SSH connections, VM status: ACTIVE 2025-02-06 20:28:50,040 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-06 20:28:50,040 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-65325817-41044989, IP 165.91.20.67, Port 22 2025-02-06 20:28:50,206 - DEBUG - VM ctest-TestBasicPolicy-65325817-41044989 is ready for SSH connections 2025-02-06 20:28:50,206 - INFO - Waiting for VM ctest-TestBasicPolicy-65325817-11027000 to be up.. 2025-02-06 20:28:50,281 - DEBUG - VM is in ACTIVE state now 2025-02-06 20:28:50,281 - INFO - VM name : ctest-TestBasicPolicy-65325817-11027000 2025-02-06 20:28:50,357 - DEBUG - VM ctest-TestBasicPolicy-65325817-11027000 ID is 5b15e64d-f19f-4385-ae89-e8b732d4f855 2025-02-06 20:28:50,357 - DEBUG - VM ctest-TestBasicPolicy-65325817-11027000 launched on Node cn-jenkins-deploy-platform-ansible-os-2704-1 2025-02-06 20:28:50,440 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/5b15e64d-f19f-4385-ae89-e8b732d4f855 2025-02-06 20:28:50,450 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/b3836356-c7c9-4b5e-b9cf-c9cbcaf25aa3 2025-02-06 20:28:51,701 - 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.21 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.450 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.450/1.829/3.208/1.379 ms') 2025-02-06 20:28:51,701 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-65325817-11027000 passed 2025-02-06 20:28:51,862 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-06 20:28:51,862 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-65325817-11027000, IP 7.152.241.195, Port 22 2025-02-06 20:28:52,018 - DEBUG - VM ctest-TestBasicPolicy-65325817-11027000 is ready for SSH connections 2025-02-06 20:28:52,018 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-06 20:28:52,018 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 7.152.241.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.34, gateway password: c0ntrail123 2025-02-06 20:28:52,018 - DEBUG - ping -s 56 -c 3 -W 1 7.152.241.195 2025-02-06 20:28:55,788 - DEBUG - PING 7.152.241.195 (7.152.241.195): 56 data bytes 64 bytes from 7.152.241.195: seq=0 ttl=63 time=3.834 ms 64 bytes from 7.152.241.195: seq=1 ttl=63 time=0.945 ms 64 bytes from 7.152.241.195: seq=2 ttl=63 time=0.809 ms --- 7.152.241.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.809/1.862/3.834 ms 2025-02-06 20:28:55,789 - INFO - Ping to IP 7.152.241.195 from VM ctest-TestBasicPolicy-65325817-41044989 passed 2025-02-06 20:28:55,970 - DEBUG - Policy Update Response {"network-policy": {"uuid": "f6ec0f70-3f80-47ab-88dd-a6cf89c9f6f0", "href": "http://10.0.0.34:8082/network-policy/f6ec0f70-3f80-47ab-88dd-a6cf89c9f6f0"}} 2025-02-06 20:28:55,970 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-06 20:28:55,970 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 7.152.241.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.34, gateway password: c0ntrail123 2025-02-06 20:28:55,970 - DEBUG - ping -s 56 -c 3 -W 1 7.152.241.195 2025-02-06 20:28:59,197 - DEBUG - PING 7.152.241.195 (7.152.241.195): 56 data bytes 64 bytes from 7.152.241.195: seq=0 ttl=63 time=1.513 ms --- 7.152.241.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.513/1.513/1.513 ms 2025-02-06 20:28:59,197 - WARNING - Ping to IP 7.152.241.195 from VM ctest-TestBasicPolicy-65325817-41044989 failed 2025-02-06 20:28:59,197 - INFO - Deleting VM ctest-TestBasicPolicy-65325817-11027000 2025-02-06 20:28:59,266 - INFO - Deleting VM ctest-TestBasicPolicy-65325817-41044989 2025-02-06 20:28:59,650 - INFO - Deleted policy ctest-policy-allow-all-62356277 2025-02-06 20:28:59,651 - INFO - Deleting VN ctest-vn-76261692 2025-02-06 20:28:59,691 - DEBUG - VN 75cf9c08-14b4-4327-b117-47abda8940a3 still in use: Unable to complete operation on network 75cf9c08-14b4-4327-b117-47abda8940a3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0a68b6fd-d721-468b-b724-5c1a038ed5a6'] 2025-02-06 20:28:59,691 - WARNING - Deleting VN ctest-vn-76261692 failed..Will retry 2025-02-06 20:29:01,803 - DEBUG - Response for deleting network () 2025-02-06 20:29:01,803 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/8077eaa6-2c1e-4c06-bc08-648963210724 2025-02-06 20:29:01,808 - DEBUG - Response Code: 404 2025-02-06 20:29:01,809 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2025-02-06 20:29:01,817 - DEBUG - Requesting: http://10.0.0.34:8082/domain/61b844de-7d0e-4577-8f0b-9821e6aa983e 2025-02-06 20:29:01,871 - DEBUG - Requesting: http://10.0.0.34:8082/project/06dc7175-380f-49a6-9d12-d6b49db8b4b3 2025-02-06 20:29:01,939 - INFO - Validated that VN ctest-vn-76261692 is not found in API Server 2025-02-06 20:29:01,951 - DEBUG - VN ctest-vn-76261692 is not present in Agent 10.0.0.34 2025-02-06 20:29:01,951 - INFO - Validated that VN ctest-vn-76261692 is not in any agent 2025-02-06 20:29:01,967 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-76261692 info 2025-02-06 20:29:01,967 - INFO - Deleting VN ctest-vn-27128480 2025-02-06 20:29:02,066 - DEBUG - Response for deleting network () 2025-02-06 20:29:02,066 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/752b3cd6-7361-4e70-9f92-b5148cafee4d 2025-02-06 20:29:02,073 - DEBUG - Response Code: 404 2025-02-06 20:29:02,073 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2025-02-06 20:29:02,078 - DEBUG - Requesting: http://10.0.0.34:8082/domain/61b844de-7d0e-4577-8f0b-9821e6aa983e 2025-02-06 20:29:02,131 - DEBUG - Requesting: http://10.0.0.34:8082/project/06dc7175-380f-49a6-9d12-d6b49db8b4b3 2025-02-06 20:29:02,199 - INFO - Validated that VN ctest-vn-27128480 is not found in API Server 2025-02-06 20:29:02,211 - DEBUG - VN ctest-vn-27128480 is not present in Agent 10.0.0.34 2025-02-06 20:29:02,211 - INFO - Validated that VN ctest-vn-27128480 is not in any agent 2025-02-06 20:29:02,227 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-27128480 info 2025-02-06 20:29:02,487 - DEBUG - No XMPP flaps were noticed during the test 2025-02-06 20:29:02,488 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-02-06 20:29:02,488 - INFO - -------------------------------------------------------------------------------- 2025-02-06 20:29:03,197 - INFO - Deleted project: ctest-TestBasicPolicy-65325817, ID : 06dc7175-380f-49a6-9d12-d6b49db8b4b3