2025-03-27 20:27:26,666 - INFO - Domain Default found not creating 2025-03-27 20:27:26,849 - INFO - Project ctest-TestBasicPolicy-69581537 not found, creating it 2025-03-27 20:27:27,375 - INFO - Created Project:ctest-TestBasicPolicy-69581537, ID : 4648e5fa-12de-46f9-80d1-b9de1d71e30d 2025-03-27 20:27:29,013 - INFO - ================================================================================ 2025-03-27 20:27:29,013 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-27 20:27:29,013 - 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-03-27 20:27:29,276 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.7': '0'}} with 2025-03-27 20:27:29,277 - INFO - Initial checks done. Running the testcase now 2025-03-27 20:27:29,277 - INFO - 2025-03-27 20:27:29,890 - DEBUG - Response for create_network : {'network': {'id': 'f109e895-8e30-4936-984e-d32ae62de7c7', 'name': 'ctest-vn-60162118', 'tenant_id': '4648e5fa12de46f980d1b9de1d71e30d', 'project_id': '4648e5fa12de46f980d1b9de1d71e30d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69581537', 'ctest-vn-60162118'], 'port_security_enabled': True, 'description': ''}} 2025-03-27 20:27:30,086 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b3ea0acc-c1a5-4fcc-92e2-9f0eda0c5715', 'name': '', 'tenant_id': '4648e5fa12de46f980d1b9de1d71e30d', 'network_id': 'f109e895-8e30-4936-984e-d32ae62de7c7', 'ip_version': 4, 'cidr': '12.73.69.64/26', 'allocation_pools': [{'start': '12.73.69.66', 'end': '12.73.69.126'}], 'gateway_ip': '12.73.69.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '12.73.69.66', 'tags': [], 'project_id': '4648e5fa12de46f980d1b9de1d71e30d'}} 2025-03-27 20:27:30,107 - INFO - Created VN ctest-vn-60162118 2025-03-27 20:27:30,162 - DEBUG - VN ctest-vn-60162118 UUID is f109e895-8e30-4936-984e-d32ae62de7c7 2025-03-27 20:27:30,471 - DEBUG - Response for create_network : {'network': {'id': '3b0f047f-44a8-473b-b213-4a278ecafb73', 'name': 'ctest-vn-12464782', 'tenant_id': '4648e5fa12de46f980d1b9de1d71e30d', 'project_id': '4648e5fa12de46f980d1b9de1d71e30d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69581537', 'ctest-vn-12464782'], 'port_security_enabled': True, 'description': ''}} 2025-03-27 20:27:30,679 - DEBUG - Response for create_subnet : {'subnet': {'id': '460e9c16-6300-4b18-9623-0f56e6fd9c8f', 'name': '', 'tenant_id': '4648e5fa12de46f980d1b9de1d71e30d', 'network_id': '3b0f047f-44a8-473b-b213-4a278ecafb73', 'ip_version': 4, 'cidr': '63.155.234.64/26', 'allocation_pools': [{'start': '63.155.234.66', 'end': '63.155.234.126'}], 'gateway_ip': '63.155.234.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '63.155.234.66', 'tags': [], 'project_id': '4648e5fa12de46f980d1b9de1d71e30d'}} 2025-03-27 20:27:30,698 - INFO - Created VN ctest-vn-12464782 2025-03-27 20:27:30,750 - DEBUG - VN ctest-vn-12464782 UUID is 3b0f047f-44a8-473b-b213-4a278ecafb73 2025-03-27 20:27:30,872 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-69581537:ctest-vn-60162118, 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-69581537:ctest-vn-12464782, 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-03-27 20:27:31,183 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f109e895-8e30-4936-984e-d32ae62de7c7', 'name': 'ctest-vn-60162118', 'tenant_id': '4648e5fa12de46f980d1b9de1d71e30d', 'project_id': '4648e5fa12de46f980d1b9de1d71e30d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b3ea0acc-c1a5-4fcc-92e2-9f0eda0c5715'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69581537', 'ctest-vn-60162118'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69581537', 'ctest-policy-allow-all-27385329']], 'subnet_ipam': [{'subnet_cidr': '12.73.69.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-27 20:27:31,476 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3b0f047f-44a8-473b-b213-4a278ecafb73', 'name': 'ctest-vn-12464782', 'tenant_id': '4648e5fa12de46f980d1b9de1d71e30d', 'project_id': '4648e5fa12de46f980d1b9de1d71e30d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['460e9c16-6300-4b18-9623-0f56e6fd9c8f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69581537', 'ctest-vn-12464782'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69581537', 'ctest-policy-allow-all-27385329']], 'subnet_ipam': [{'subnet_cidr': '63.155.234.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-27 20:27:31,638 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-03-27 20:27:31,948 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-03-27 20:27:31,983 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ec595330-5ea8-4339-958b-f4a3f46f18d1 2025-03-27 20:27:31,998 - DEBUG - Requesting: http://10.0.0.22:8082/project/4648e5fa-12de-46f9-80d1-b9de1d71e30d 2025-03-27 20:27:32,083 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f109e895-8e30-4936-984e-d32ae62de7c7 2025-03-27 20:27:32,096 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f109e895-8e30-4936-984e-d32ae62de7c7 2025-03-27 20:27:32,108 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2aff4512-33e2-44df-a08e-51ff765e1920 2025-03-27 20:27:32,118 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2aff4512-33e2-44df-a08e-51ff765e1920 2025-03-27 20:27:32,127 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5b5f1549-cdd5-487a-aa69-cf41a8e29222 2025-03-27 20:27:32,135 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-27 20:27:32,136 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f109e895-8e30-4936-984e-d32ae62de7c7 2025-03-27 20:27:32,148 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2aff4512-33e2-44df-a08e-51ff765e1920 2025-03-27 20:27:32,166 - INFO - Verified VN network id 9 for VN f109e895-8e30-4936-984e-d32ae62de7c7 2025-03-27 20:27:32,166 - INFO - Verifications in API Server for VN ctest-vn-60162118 passed 2025-03-27 20:27:32,166 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f109e895-8e30-4936-984e-d32ae62de7c7 2025-03-27 20:27:32,179 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2aff4512-33e2-44df-a08e-51ff765e1920 2025-03-27 20:27:32,190 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2aff4512-33e2-44df-a08e-51ff765e1920 2025-03-27 20:27:32,201 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5b5f1549-cdd5-487a-aa69-cf41a8e29222 2025-03-27 20:27:32,216 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69581537:ctest-vn-60162118', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69581537', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17368669166964328758', 'uuid-lslong': '10974941523152332743'}, 'enable': 'true', 'created': '2025-03-27T20:27:29', 'last-modified': '2025-03-27T20:27:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.059770'} 2025-03-27 20:27:32,224 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-27 20:27:32,224 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60162118 passed 2025-03-27 20:27:32,224 - DEBUG - ====Verifying policy data for ctest-vn-60162118 in API_Server ====== 2025-03-27 20:27:32,224 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-03-27 20:27:32,231 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ec595330-5ea8-4339-958b-f4a3f46f18d1 2025-03-27 20:27:32,244 - DEBUG - Requesting: http://10.0.0.22:8082/project/4648e5fa-12de-46f9-80d1-b9de1d71e30d 2025-03-27 20:27:32,333 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f109e895-8e30-4936-984e-d32ae62de7c7 2025-03-27 20:27:32,346 - DEBUG - ==>Verifying data for policy with id: 4d956d69-3df5-44f8-ab77-f21aafc98813, fqn: ['default-domain', 'ctest-TestBasicPolicy-69581537', 'ctest-policy-allow-all-27385329'] 2025-03-27 20:27:32,347 - INFO - VN ctest-vn-60162118 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-27 20:27:32,347 - DEBUG - Verifying the vn in opserver 2025-03-27 20:27:32,347 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69581537:ctest-vn-60162118 virtual network link through opserver 10.0.0.22 2025-03-27 20:27:32,347 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-03-27 20:27:32,674 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-03-27 20:27:32,749 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69581537:ctest-vn-60162118', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69581537:ctest-vn-60162118?flat'} 2025-03-27 20:27:32,749 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69581537:ctest-vn-60162118 is found in opserver 2025-03-27 20:27:32,764 - DEBUG - Do not have enough data to verify VN in agent 2025-03-27 20:27:32,770 - DEBUG - VRF ids for VN ctest-vn-60162118: {} 2025-03-27 20:27:32,770 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-03-27 20:27:32,776 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ec595330-5ea8-4339-958b-f4a3f46f18d1 2025-03-27 20:27:32,789 - DEBUG - Requesting: http://10.0.0.22:8082/project/4648e5fa-12de-46f9-80d1-b9de1d71e30d 2025-03-27 20:27:32,864 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3b0f047f-44a8-473b-b213-4a278ecafb73 2025-03-27 20:27:32,877 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3b0f047f-44a8-473b-b213-4a278ecafb73 2025-03-27 20:27:32,887 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f41cfce1-d350-4296-a529-c98d8dd7b972 2025-03-27 20:27:32,895 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f41cfce1-d350-4296-a529-c98d8dd7b972 2025-03-27 20:27:32,903 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/6389c67e-04ba-45c9-b21d-2f2a83ef4bfc 2025-03-27 20:27:32,911 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-27 20:27:32,911 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3b0f047f-44a8-473b-b213-4a278ecafb73 2025-03-27 20:27:32,923 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f41cfce1-d350-4296-a529-c98d8dd7b972 2025-03-27 20:27:32,940 - INFO - Verified VN network id 10 for VN 3b0f047f-44a8-473b-b213-4a278ecafb73 2025-03-27 20:27:32,940 - INFO - Verifications in API Server for VN ctest-vn-12464782 passed 2025-03-27 20:27:32,940 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3b0f047f-44a8-473b-b213-4a278ecafb73 2025-03-27 20:27:32,952 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f41cfce1-d350-4296-a529-c98d8dd7b972 2025-03-27 20:27:32,960 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f41cfce1-d350-4296-a529-c98d8dd7b972 2025-03-27 20:27:32,968 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/6389c67e-04ba-45c9-b21d-2f2a83ef4bfc 2025-03-27 20:27:32,983 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69581537:ctest-vn-12464782', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69581537', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4255625117547644731', 'uuid-lslong': '12831681297068522355'}, 'enable': 'true', 'created': '2025-03-27T20:27:30', 'last-modified': '2025-03-27T20:27:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.575730'} 2025-03-27 20:27:32,992 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-27 20:27:32,992 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12464782 passed 2025-03-27 20:27:32,992 - DEBUG - ====Verifying policy data for ctest-vn-12464782 in API_Server ====== 2025-03-27 20:27:32,992 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-03-27 20:27:32,999 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ec595330-5ea8-4339-958b-f4a3f46f18d1 2025-03-27 20:27:33,013 - DEBUG - Requesting: http://10.0.0.22:8082/project/4648e5fa-12de-46f9-80d1-b9de1d71e30d 2025-03-27 20:27:33,090 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3b0f047f-44a8-473b-b213-4a278ecafb73 2025-03-27 20:27:33,101 - DEBUG - ==>Verifying data for policy with id: 4d956d69-3df5-44f8-ab77-f21aafc98813, fqn: ['default-domain', 'ctest-TestBasicPolicy-69581537', 'ctest-policy-allow-all-27385329'] 2025-03-27 20:27:33,101 - INFO - VN ctest-vn-12464782 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-27 20:27:33,101 - DEBUG - Verifying the vn in opserver 2025-03-27 20:27:33,101 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69581537:ctest-vn-12464782 virtual network link through opserver 10.0.0.22 2025-03-27 20:27:33,102 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-03-27 20:27:33,115 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69581537:ctest-vn-12464782', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69581537:ctest-vn-12464782?flat'} 2025-03-27 20:27:33,115 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69581537:ctest-vn-12464782 is found in opserver 2025-03-27 20:27:33,127 - DEBUG - Do not have enough data to verify VN in agent 2025-03-27 20:27:33,132 - DEBUG - VRF ids for VN ctest-vn-12464782: {} 2025-03-27 20:27:33,196 - DEBUG - Services list from nova: [, , ] 2025-03-27 20:27:34,389 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2984-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2984-1) 2025-03-27 20:27:35,747 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2984-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2984-1) 2025-03-27 20:27:35,747 - INFO - Waiting for VM ctest-TestBasicPolicy-69581537-27574686 to be up.. 2025-03-27 20:27:35,865 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-27 20:27:40,970 - DEBUG - VM is in ACTIVE state now 2025-03-27 20:27:40,970 - INFO - VM name : ctest-TestBasicPolicy-69581537-27574686 2025-03-27 20:27:41,071 - DEBUG - VM ctest-TestBasicPolicy-69581537-27574686 ID is 215ec692-f892-4517-a107-786e01792977 2025-03-27 20:27:41,095 - DEBUG - VM ctest-TestBasicPolicy-69581537-27574686 launched on Node cn-jenkins-deploy-platform-ansible-os-2984-1 2025-03-27 20:27:41,195 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/215ec692-f892-4517-a107-786e01792977 2025-03-27 20:27:41,206 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/d5be2223-7e95-41e0-9350-3ae0a7c7e948 2025-03-27 20:27:44,468 - 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 1010ms') 2025-03-27 20:27:44,469 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-69581537-27574686 failed! 2025-03-27 20:27:44,526 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-69581537:ctest-vn-60162118 is 12.73.69.65 and allocation pool is NOT set 2025-03-27 20:27:46,596 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=6.72 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.45 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 = 2.445/4.582/6.720/2.137 ms') 2025-03-27 20:27:46,597 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-69581537-27574686 passed 2025-03-27 20:27:46,750 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 20:27:46,750 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-69581537-27574686, IP 12.73.69.67, Port 22 2025-03-27 20:27:46,907 - DEBUG - VM ctest-TestBasicPolicy-69581537-27574686 is ready for SSH connections 2025-03-27 20:27:46,907 - INFO - Waiting for VM ctest-TestBasicPolicy-69581537-16772960 to be up.. 2025-03-27 20:27:46,996 - DEBUG - VM is in ACTIVE state now 2025-03-27 20:27:46,996 - INFO - VM name : ctest-TestBasicPolicy-69581537-16772960 2025-03-27 20:27:47,079 - DEBUG - VM ctest-TestBasicPolicy-69581537-16772960 ID is 6e97bd1b-9c90-4af5-ac1d-cdd33341e386 2025-03-27 20:27:47,080 - DEBUG - VM ctest-TestBasicPolicy-69581537-16772960 launched on Node cn-jenkins-deploy-platform-ansible-os-2984-1 2025-03-27 20:27:47,175 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/6e97bd1b-9c90-4af5-ac1d-cdd33341e386 2025-03-27 20:27:47,186 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/d97283ce-7b0b-454c-8b4f-8cc212986c7a 2025-03-27 20:27:48,438 - 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=5.48 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.26 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 = 2.258/3.868/5.478/1.610 ms') 2025-03-27 20:27:48,439 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-69581537-16772960 passed 2025-03-27 20:27:48,594 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 20:27:48,594 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-69581537-16772960, IP 63.155.234.67, Port 22 2025-03-27 20:27:48,660 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-03-27 20:27:48,750 - DEBUG - VM ctest-TestBasicPolicy-69581537-16772960 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-27 20:27:53,750 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 20:27:53,751 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-69581537-16772960, IP 63.155.234.67, Port 22 2025-03-27 20:27:53,918 - DEBUG - VM ctest-TestBasicPolicy-69581537-16772960 is ready for SSH connections 2025-03-27 20:27:53,918 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 20:27:53,918 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 63.155.234.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-03-27 20:27:53,918 - DEBUG - ping -s 56 -c 3 -W 1 63.155.234.67 2025-03-27 20:27:58,027 - DEBUG - PING 63.155.234.67 (63.155.234.67): 56 data bytes 64 bytes from 63.155.234.67: seq=0 ttl=63 time=11.110 ms 64 bytes from 63.155.234.67: seq=1 ttl=63 time=0.936 ms 64 bytes from 63.155.234.67: seq=2 ttl=63 time=0.909 ms --- 63.155.234.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.909/4.318/11.110 ms 2025-03-27 20:27:58,027 - INFO - Ping to IP 63.155.234.67 from VM ctest-TestBasicPolicy-69581537-27574686 passed 2025-03-27 20:27:58,214 - DEBUG - Policy Update Response {"network-policy": {"uuid": "4d956d69-3df5-44f8-ab77-f21aafc98813", "href": "http://10.0.0.22:8082/network-policy/4d956d69-3df5-44f8-ab77-f21aafc98813"}} 2025-03-27 20:27:58,214 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 20:27:58,214 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 63.155.234.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-03-27 20:27:58,214 - DEBUG - ping -s 56 -c 3 -W 1 63.155.234.67 2025-03-27 20:28:01,453 - DEBUG - PING 63.155.234.67 (63.155.234.67): 56 data bytes 64 bytes from 63.155.234.67: seq=0 ttl=63 time=1.414 ms --- 63.155.234.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.414/1.414/1.414 ms 2025-03-27 20:28:01,453 - WARNING - Ping to IP 63.155.234.67 from VM ctest-TestBasicPolicy-69581537-27574686 failed 2025-03-27 20:28:01,453 - INFO - Deleting VM ctest-TestBasicPolicy-69581537-16772960 2025-03-27 20:28:01,523 - INFO - Deleting VM ctest-TestBasicPolicy-69581537-27574686 2025-03-27 20:28:02,032 - INFO - Deleted policy ctest-policy-allow-all-27385329 2025-03-27 20:28:02,033 - INFO - Deleting VN ctest-vn-12464782 2025-03-27 20:28:02,083 - DEBUG - VN 3b0f047f-44a8-473b-b213-4a278ecafb73 still in use: Unable to complete operation on network 3b0f047f-44a8-473b-b213-4a278ecafb73. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7b621a73-0891-412d-af44-ce5d93a47323'] 2025-03-27 20:28:02,083 - WARNING - Deleting VN ctest-vn-12464782 failed..Will retry 2025-03-27 20:28:04,207 - DEBUG - Response for deleting network () 2025-03-27 20:28:04,208 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f41cfce1-d350-4296-a529-c98d8dd7b972 2025-03-27 20:28:04,217 - DEBUG - Response Code: 404 2025-03-27 20:28:04,218 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-03-27 20:28:04,227 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ec595330-5ea8-4339-958b-f4a3f46f18d1 2025-03-27 20:28:04,287 - DEBUG - Requesting: http://10.0.0.22:8082/project/4648e5fa-12de-46f9-80d1-b9de1d71e30d 2025-03-27 20:28:04,366 - INFO - Validated that VN ctest-vn-12464782 is not found in API Server 2025-03-27 20:28:04,380 - DEBUG - VN ctest-vn-12464782 is not present in Agent 10.0.0.22 2025-03-27 20:28:04,380 - INFO - Validated that VN ctest-vn-12464782 is not in any agent 2025-03-27 20:28:04,399 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-12464782 info 2025-03-27 20:28:04,399 - INFO - Deleting VN ctest-vn-60162118 2025-03-27 20:28:04,514 - DEBUG - Response for deleting network () 2025-03-27 20:28:04,514 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2aff4512-33e2-44df-a08e-51ff765e1920 2025-03-27 20:28:04,524 - DEBUG - Response Code: 404 2025-03-27 20:28:04,525 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-03-27 20:28:04,532 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ec595330-5ea8-4339-958b-f4a3f46f18d1 2025-03-27 20:28:04,593 - DEBUG - Requesting: http://10.0.0.22:8082/project/4648e5fa-12de-46f9-80d1-b9de1d71e30d 2025-03-27 20:28:04,684 - INFO - Validated that VN ctest-vn-60162118 is not found in API Server 2025-03-27 20:28:04,700 - DEBUG - VN ctest-vn-60162118 is not present in Agent 10.0.0.22 2025-03-27 20:28:04,700 - INFO - Validated that VN ctest-vn-60162118 is not in any agent 2025-03-27 20:28:04,720 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-60162118 info 2025-03-27 20:28:04,978 - DEBUG - No XMPP flaps were noticed during the test 2025-03-27 20:28:04,978 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-03-27 20:28:04,978 - INFO - -------------------------------------------------------------------------------- 2025-03-27 20:28:05,720 - INFO - Deleted project: ctest-TestBasicPolicy-69581537, ID : 4648e5fa-12de-46f9-80d1-b9de1d71e30d