2025-08-08 02:59:53,728 - INFO - Domain Default found not creating 2025-08-08 02:59:53,872 - INFO - Project ctest-TestBasicPolicy-03377469 not found, creating it 2025-08-08 02:59:54,308 - INFO - Created Project:ctest-TestBasicPolicy-03377469, ID : 988d5233-4918-4d3e-8740-b2e5d1233bf5 2025-08-08 02:59:55,846 - INFO - ================================================================================ 2025-08-08 02:59:55,846 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-08-08 02:59:55,846 - 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-08-08 02:59:56,114 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-08-08 02:59:56,114 - INFO - Initial checks done. Running the testcase now 2025-08-08 02:59:56,115 - INFO - 2025-08-08 02:59:56,734 - DEBUG - Response for create_network : {'network': {'id': 'cea63e33-37da-423b-8ef1-3cc2e136e026', 'name': 'ctest-vn-42589215', 'tenant_id': '988d523349184d3e8740b2e5d1233bf5', 'project_id': '988d523349184d3e8740b2e5d1233bf5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03377469', 'ctest-vn-42589215'], 'port_security_enabled': True, 'description': ''}} 2025-08-08 02:59:56,943 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dc586212-13f6-47a5-a1ea-42a7f93df298', 'name': '', 'tenant_id': '988d523349184d3e8740b2e5d1233bf5', 'network_id': 'cea63e33-37da-423b-8ef1-3cc2e136e026', 'ip_version': 4, 'cidr': '173.150.78.64/26', 'allocation_pools': [{'start': '173.150.78.66', 'end': '173.150.78.126'}], 'gateway_ip': '173.150.78.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.150.78.66', 'tags': [], 'project_id': '988d523349184d3e8740b2e5d1233bf5'}} 2025-08-08 02:59:56,962 - INFO - Created VN ctest-vn-42589215 2025-08-08 02:59:57,013 - DEBUG - VN ctest-vn-42589215 UUID is cea63e33-37da-423b-8ef1-3cc2e136e026 2025-08-08 02:59:57,349 - DEBUG - Response for create_network : {'network': {'id': 'f8e31153-7a91-4aff-b75b-e19151d255e0', 'name': 'ctest-vn-82330870', 'tenant_id': '988d523349184d3e8740b2e5d1233bf5', 'project_id': '988d523349184d3e8740b2e5d1233bf5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03377469', 'ctest-vn-82330870'], 'port_security_enabled': True, 'description': ''}} 2025-08-08 02:59:57,563 - DEBUG - Response for create_subnet : {'subnet': {'id': '160bb994-409e-42c0-831b-425a5076a3ce', 'name': '', 'tenant_id': '988d523349184d3e8740b2e5d1233bf5', 'network_id': 'f8e31153-7a91-4aff-b75b-e19151d255e0', 'ip_version': 4, 'cidr': '107.37.40.0/26', 'allocation_pools': [{'start': '107.37.40.2', 'end': '107.37.40.62'}], 'gateway_ip': '107.37.40.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '107.37.40.2', 'tags': [], 'project_id': '988d523349184d3e8740b2e5d1233bf5'}} 2025-08-08 02:59:57,581 - INFO - Created VN ctest-vn-82330870 2025-08-08 02:59:57,633 - DEBUG - VN ctest-vn-82330870 UUID is f8e31153-7a91-4aff-b75b-e19151d255e0 2025-08-08 02:59:57,746 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-03377469:ctest-vn-42589215, 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-03377469:ctest-vn-82330870, 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-08-08 02:59:58,041 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cea63e33-37da-423b-8ef1-3cc2e136e026', 'name': 'ctest-vn-42589215', 'tenant_id': '988d523349184d3e8740b2e5d1233bf5', 'project_id': '988d523349184d3e8740b2e5d1233bf5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dc586212-13f6-47a5-a1ea-42a7f93df298'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03377469', 'ctest-vn-42589215'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03377469', 'ctest-policy-allow-all-54875288']], 'subnet_ipam': [{'subnet_cidr': '173.150.78.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-08 02:59:58,309 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f8e31153-7a91-4aff-b75b-e19151d255e0', 'name': 'ctest-vn-82330870', 'tenant_id': '988d523349184d3e8740b2e5d1233bf5', 'project_id': '988d523349184d3e8740b2e5d1233bf5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['160bb994-409e-42c0-831b-425a5076a3ce'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03377469', 'ctest-vn-82330870'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03377469', 'ctest-policy-allow-all-54875288']], 'subnet_ipam': [{'subnet_cidr': '107.37.40.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-08 02:59:58,473 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-08 02:59:58,810 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-08 02:59:58,839 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ec7420f7-6e46-4225-aa03-44be25833719 2025-08-08 02:59:58,852 - DEBUG - Requesting: http://10.0.0.38:8082/project/988d5233-4918-4d3e-8740-b2e5d1233bf5 2025-08-08 02:59:58,928 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cea63e33-37da-423b-8ef1-3cc2e136e026 2025-08-08 02:59:58,940 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cea63e33-37da-423b-8ef1-3cc2e136e026 2025-08-08 02:59:58,950 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/374fa5b4-d2aa-4239-bd45-c845464e553d 2025-08-08 02:59:58,957 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/374fa5b4-d2aa-4239-bd45-c845464e553d 2025-08-08 02:59:58,963 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/08ebdb56-1de0-4acb-b55f-8c79a879cfbe 2025-08-08 02:59:58,970 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-08 02:59:58,970 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cea63e33-37da-423b-8ef1-3cc2e136e026 2025-08-08 02:59:58,980 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/374fa5b4-d2aa-4239-bd45-c845464e553d 2025-08-08 02:59:58,994 - INFO - Verified VN network id 11 for VN cea63e33-37da-423b-8ef1-3cc2e136e026 2025-08-08 02:59:58,994 - INFO - Verifications in API Server for VN ctest-vn-42589215 passed 2025-08-08 02:59:58,994 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cea63e33-37da-423b-8ef1-3cc2e136e026 2025-08-08 02:59:59,004 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/374fa5b4-d2aa-4239-bd45-c845464e553d 2025-08-08 02:59:59,012 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/374fa5b4-d2aa-4239-bd45-c845464e553d 2025-08-08 02:59:59,020 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/08ebdb56-1de0-4acb-b55f-8c79a879cfbe 2025-08-08 02:59:59,034 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03377469:ctest-vn-42589215', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03377469', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14890657607648428603', 'uuid-lslong': '10300080630472826918'}, 'enable': 'true', 'created': '2025-08-08T02:59:56', 'last-modified': '2025-08-08T02:59:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.014390'} 2025-08-08 02:59:59,041 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-08 02:59:59,041 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42589215 passed 2025-08-08 02:59:59,041 - DEBUG - ====Verifying policy data for ctest-vn-42589215 in API_Server ====== 2025-08-08 02:59:59,041 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-08 02:59:59,047 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ec7420f7-6e46-4225-aa03-44be25833719 2025-08-08 02:59:59,060 - DEBUG - Requesting: http://10.0.0.38:8082/project/988d5233-4918-4d3e-8740-b2e5d1233bf5 2025-08-08 02:59:59,135 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cea63e33-37da-423b-8ef1-3cc2e136e026 2025-08-08 02:59:59,146 - DEBUG - ==>Verifying data for policy with id: 8b3cbd33-92e9-445b-ba5e-9e3ab990383a, fqn: ['default-domain', 'ctest-TestBasicPolicy-03377469', 'ctest-policy-allow-all-54875288'] 2025-08-08 02:59:59,146 - INFO - VN ctest-vn-42589215 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-08 02:59:59,146 - DEBUG - Verifying the vn in opserver 2025-08-08 02:59:59,146 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03377469:ctest-vn-42589215 virtual network link through opserver 10.0.0.38 2025-08-08 02:59:59,147 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-08 02:59:59,482 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-08 02:59:59,538 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03377469:ctest-vn-42589215', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03377469:ctest-vn-42589215?flat'} 2025-08-08 02:59:59,538 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03377469:ctest-vn-42589215 is found in opserver 2025-08-08 02:59:59,550 - DEBUG - Do not have enough data to verify VN in agent 2025-08-08 02:59:59,555 - DEBUG - VRF ids for VN ctest-vn-42589215: {} 2025-08-08 02:59:59,555 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-08 02:59:59,561 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ec7420f7-6e46-4225-aa03-44be25833719 2025-08-08 02:59:59,572 - DEBUG - Requesting: http://10.0.0.38:8082/project/988d5233-4918-4d3e-8740-b2e5d1233bf5 2025-08-08 02:59:59,645 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f8e31153-7a91-4aff-b75b-e19151d255e0 2025-08-08 02:59:59,658 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f8e31153-7a91-4aff-b75b-e19151d255e0 2025-08-08 02:59:59,668 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d37f0014-6b02-4edd-8bc6-fdb7e40a1ff9 2025-08-08 02:59:59,675 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d37f0014-6b02-4edd-8bc6-fdb7e40a1ff9 2025-08-08 02:59:59,681 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/548abac9-53b1-49ed-bbf2-108213c18f39 2025-08-08 02:59:59,688 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-08 02:59:59,688 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f8e31153-7a91-4aff-b75b-e19151d255e0 2025-08-08 02:59:59,698 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d37f0014-6b02-4edd-8bc6-fdb7e40a1ff9 2025-08-08 02:59:59,711 - INFO - Verified VN network id 12 for VN f8e31153-7a91-4aff-b75b-e19151d255e0 2025-08-08 02:59:59,711 - INFO - Verifications in API Server for VN ctest-vn-82330870 passed 2025-08-08 02:59:59,711 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f8e31153-7a91-4aff-b75b-e19151d255e0 2025-08-08 02:59:59,721 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d37f0014-6b02-4edd-8bc6-fdb7e40a1ff9 2025-08-08 02:59:59,728 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d37f0014-6b02-4edd-8bc6-fdb7e40a1ff9 2025-08-08 02:59:59,734 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/548abac9-53b1-49ed-bbf2-108213c18f39 2025-08-08 02:59:59,748 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03377469:ctest-vn-82330870', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03377469', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17934197191355747071', 'uuid-lslong': '13212401946080728544'}, 'enable': 'true', 'created': '2025-08-08T02:59:57', 'last-modified': '2025-08-08T02:59:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.501396'} 2025-08-08 02:59:59,755 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-08 02:59:59,755 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82330870 passed 2025-08-08 02:59:59,755 - DEBUG - ====Verifying policy data for ctest-vn-82330870 in API_Server ====== 2025-08-08 02:59:59,755 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-08 02:59:59,760 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ec7420f7-6e46-4225-aa03-44be25833719 2025-08-08 02:59:59,772 - DEBUG - Requesting: http://10.0.0.38:8082/project/988d5233-4918-4d3e-8740-b2e5d1233bf5 2025-08-08 02:59:59,843 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f8e31153-7a91-4aff-b75b-e19151d255e0 2025-08-08 02:59:59,853 - DEBUG - ==>Verifying data for policy with id: 8b3cbd33-92e9-445b-ba5e-9e3ab990383a, fqn: ['default-domain', 'ctest-TestBasicPolicy-03377469', 'ctest-policy-allow-all-54875288'] 2025-08-08 02:59:59,853 - INFO - VN ctest-vn-82330870 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-08 02:59:59,853 - DEBUG - Verifying the vn in opserver 2025-08-08 02:59:59,854 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03377469:ctest-vn-82330870 virtual network link through opserver 10.0.0.38 2025-08-08 02:59:59,854 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-08 02:59:59,864 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03377469:ctest-vn-82330870', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03377469:ctest-vn-82330870?flat'} 2025-08-08 02:59:59,864 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03377469:ctest-vn-82330870 is found in opserver 2025-08-08 02:59:59,875 - DEBUG - Do not have enough data to verify VN in agent 2025-08-08 02:59:59,880 - DEBUG - VRF ids for VN ctest-vn-82330870: {} 2025-08-08 02:59:59,931 - DEBUG - Services list from nova: [, , ] 2025-08-08 03:00:01,030 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3779-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3779-1) 2025-08-08 03:00:02,262 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3779-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3779-1) 2025-08-08 03:00:02,263 - INFO - Waiting for VM ctest-TestBasicPolicy-03377469-90161475 to be up.. 2025-08-08 03:00:02,375 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-08 03:00:07,462 - DEBUG - VM is in ACTIVE state now 2025-08-08 03:00:07,462 - INFO - VM name : ctest-TestBasicPolicy-03377469-90161475 2025-08-08 03:00:07,560 - DEBUG - VM ctest-TestBasicPolicy-03377469-90161475 ID is 178c6cbb-636b-47d5-884c-31650ae6e508 2025-08-08 03:00:07,579 - DEBUG - VM ctest-TestBasicPolicy-03377469-90161475 launched on Node cn-jenkins-deploy-platform-ansible-os-3779-1 2025-08-08 03:00:07,657 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/178c6cbb-636b-47d5-884c-31650ae6e508 2025-08-08 03:00:07,668 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/33f01894-ea0f-4ed7-80b9-94d354947424 2025-08-08 03:00:10,917 - 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 1006ms') 2025-08-08 03:00:10,917 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-03377469-90161475 failed! 2025-08-08 03:00:10,973 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-03377469:ctest-vn-42589215 is 173.150.78.65 and allocation pool is NOT set 2025-08-08 03:00:13,036 - 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=8.23 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.57 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 1.570/4.901/8.233/3.331 ms') 2025-08-08 03:00:13,036 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-03377469-90161475 passed 2025-08-08 03:00:13,189 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-08 03:00:13,189 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-03377469-90161475, IP 173.150.78.67, Port 22 2025-08-08 03:00:13,349 - DEBUG - VM ctest-TestBasicPolicy-03377469-90161475 is ready for SSH connections 2025-08-08 03:00:13,349 - INFO - Waiting for VM ctest-TestBasicPolicy-03377469-97284512 to be up.. 2025-08-08 03:00:13,423 - DEBUG - VM is in ACTIVE state now 2025-08-08 03:00:13,423 - INFO - VM name : ctest-TestBasicPolicy-03377469-97284512 2025-08-08 03:00:13,497 - DEBUG - VM ctest-TestBasicPolicy-03377469-97284512 ID is 9ff71a8f-8fc1-4899-a743-e524d9adbb99 2025-08-08 03:00:13,497 - DEBUG - VM ctest-TestBasicPolicy-03377469-97284512 launched on Node cn-jenkins-deploy-platform-ansible-os-3779-1 2025-08-08 03:00:13,569 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/9ff71a8f-8fc1-4899-a743-e524d9adbb99 2025-08-08 03:00:13,578 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/239bfcaa-8ed6-4cfc-97b6-88717062cc3d 2025-08-08 03:00:14,822 - 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.28 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.10 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 2.096/3.186/4.277/1.090 ms') 2025-08-08 03:00:14,822 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-03377469-97284512 passed 2025-08-08 03:00:14,973 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-08 03:00:14,973 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-03377469-97284512, IP 107.37.40.3, Port 22 2025-08-08 03:00:15,038 - 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-08-08 03:00:15,112 - DEBUG - VM ctest-TestBasicPolicy-03377469-97284512 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-08 03:00:20,113 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-08 03:00:20,113 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-03377469-97284512, IP 107.37.40.3, Port 22 2025-08-08 03:00:20,269 - DEBUG - VM ctest-TestBasicPolicy-03377469-97284512 is ready for SSH connections 2025-08-08 03:00:20,269 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-08 03:00:20,269 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 107.37.40.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-08-08 03:00:20,269 - DEBUG - ping -s 56 -c 3 -W 1 107.37.40.3 2025-08-08 03:00:24,319 - DEBUG - PING 107.37.40.3 (107.37.40.3): 56 data bytes 64 bytes from 107.37.40.3: seq=0 ttl=63 time=3.927 ms 64 bytes from 107.37.40.3: seq=1 ttl=63 time=0.905 ms 64 bytes from 107.37.40.3: seq=2 ttl=63 time=0.778 ms --- 107.37.40.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.778/1.870/3.927 ms 2025-08-08 03:00:24,320 - INFO - Ping to IP 107.37.40.3 from VM ctest-TestBasicPolicy-03377469-90161475 passed 2025-08-08 03:00:24,497 - DEBUG - Policy Update Response {"network-policy": {"uuid": "8b3cbd33-92e9-445b-ba5e-9e3ab990383a", "href": "http://10.0.0.38:8082/network-policy/8b3cbd33-92e9-445b-ba5e-9e3ab990383a"}} 2025-08-08 03:00:24,497 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-08 03:00:24,497 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 107.37.40.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-08-08 03:00:24,497 - DEBUG - ping -s 56 -c 3 -W 1 107.37.40.3 2025-08-08 03:00:27,723 - DEBUG - PING 107.37.40.3 (107.37.40.3): 56 data bytes --- 107.37.40.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-08-08 03:00:27,723 - WARNING - Ping to IP 107.37.40.3 from VM ctest-TestBasicPolicy-03377469-90161475 failed 2025-08-08 03:00:27,723 - INFO - Deleting VM ctest-TestBasicPolicy-03377469-97284512 2025-08-08 03:00:27,792 - INFO - Deleting VM ctest-TestBasicPolicy-03377469-90161475 2025-08-08 03:00:28,183 - INFO - Deleted policy ctest-policy-allow-all-54875288 2025-08-08 03:00:28,183 - INFO - Deleting VN ctest-vn-82330870 2025-08-08 03:00:28,216 - DEBUG - VN f8e31153-7a91-4aff-b75b-e19151d255e0 still in use: Unable to complete operation on network f8e31153-7a91-4aff-b75b-e19151d255e0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-caf7df4e-cab0-4c44-9160-6c16b2f1a14b'] 2025-08-08 03:00:28,216 - WARNING - Deleting VN ctest-vn-82330870 failed..Will retry 2025-08-08 03:00:30,319 - DEBUG - Response for deleting network () 2025-08-08 03:00:30,319 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d37f0014-6b02-4edd-8bc6-fdb7e40a1ff9 2025-08-08 03:00:30,326 - DEBUG - Response Code: 404 2025-08-08 03:00:30,326 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-08 03:00:30,332 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ec7420f7-6e46-4225-aa03-44be25833719 2025-08-08 03:00:30,386 - DEBUG - Requesting: http://10.0.0.38:8082/project/988d5233-4918-4d3e-8740-b2e5d1233bf5 2025-08-08 03:00:30,460 - INFO - Validated that VN ctest-vn-82330870 is not found in API Server 2025-08-08 03:00:30,471 - DEBUG - VN ctest-vn-82330870 is not present in Agent 10.0.0.38 2025-08-08 03:00:30,472 - INFO - Validated that VN ctest-vn-82330870 is not in any agent 2025-08-08 03:00:30,490 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-82330870 info 2025-08-08 03:00:30,490 - INFO - Deleting VN ctest-vn-42589215 2025-08-08 03:00:30,602 - DEBUG - Response for deleting network () 2025-08-08 03:00:30,602 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/374fa5b4-d2aa-4239-bd45-c845464e553d 2025-08-08 03:00:30,609 - DEBUG - Response Code: 404 2025-08-08 03:00:30,610 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-08 03:00:30,615 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ec7420f7-6e46-4225-aa03-44be25833719 2025-08-08 03:00:30,671 - DEBUG - Requesting: http://10.0.0.38:8082/project/988d5233-4918-4d3e-8740-b2e5d1233bf5 2025-08-08 03:00:30,746 - INFO - Validated that VN ctest-vn-42589215 is not found in API Server 2025-08-08 03:00:30,758 - DEBUG - VN ctest-vn-42589215 is not present in Agent 10.0.0.38 2025-08-08 03:00:30,758 - INFO - Validated that VN ctest-vn-42589215 is not in any agent 2025-08-08 03:00:30,776 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-42589215 info 2025-08-08 03:00:31,030 - DEBUG - No XMPP flaps were noticed during the test 2025-08-08 03:00:31,030 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2025-08-08 03:00:31,031 - INFO - -------------------------------------------------------------------------------- 2025-08-08 03:00:31,749 - INFO - Deleted project: ctest-TestBasicPolicy-03377469, ID : 988d5233-4918-4d3e-8740-b2e5d1233bf5