2025-11-02 10:28:26,404 - INFO - Domain Default found not creating 2025-11-02 10:28:26,610 - INFO - Project ctest-TestBasicPolicy-41277364 not found, creating it 2025-11-02 10:28:27,222 - INFO - Created Project:ctest-TestBasicPolicy-41277364, ID : 49e8180b-0a31-4224-a8d4-69df80aafbb8 2025-11-02 10:28:29,087 - INFO - ================================================================================ 2025-11-02 10:28:29,087 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-11-02 10:28:29,087 - 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-11-02 10:28:29,367 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with 2025-11-02 10:28:29,367 - INFO - Initial checks done. Running the testcase now 2025-11-02 10:28:29,367 - INFO - 2025-11-02 10:28:30,166 - DEBUG - Response for create_network : {'network': {'id': 'c8553da2-4b6f-45cd-868a-753a2cc2d83c', 'name': 'ctest-vn-95237093', 'tenant_id': '49e8180b0a314224a8d469df80aafbb8', 'project_id': '49e8180b0a314224a8d469df80aafbb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41277364', 'ctest-vn-95237093'], 'port_security_enabled': True, 'description': ''}} 2025-11-02 10:28:30,430 - DEBUG - Response for create_subnet : {'subnet': {'id': '645fd2ce-62a0-4bff-85f7-57563a2891bd', 'name': '', 'tenant_id': '49e8180b0a314224a8d469df80aafbb8', 'network_id': 'c8553da2-4b6f-45cd-868a-753a2cc2d83c', 'ip_version': 4, 'cidr': '138.138.68.0/26', 'allocation_pools': [{'start': '138.138.68.2', 'end': '138.138.68.62'}], 'gateway_ip': '138.138.68.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '138.138.68.2', 'tags': [], 'project_id': '49e8180b0a314224a8d469df80aafbb8'}} 2025-11-02 10:28:30,453 - INFO - Created VN ctest-vn-95237093 2025-11-02 10:28:30,510 - DEBUG - VN ctest-vn-95237093 UUID is c8553da2-4b6f-45cd-868a-753a2cc2d83c 2025-11-02 10:28:30,866 - DEBUG - Response for create_network : {'network': {'id': 'f795e3c2-a992-456d-849a-593bfe314fbe', 'name': 'ctest-vn-66128156', 'tenant_id': '49e8180b0a314224a8d469df80aafbb8', 'project_id': '49e8180b0a314224a8d469df80aafbb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41277364', 'ctest-vn-66128156'], 'port_security_enabled': True, 'description': ''}} 2025-11-02 10:28:31,028 - DEBUG - Response for create_subnet : {'subnet': {'id': '77ef8a39-8d5b-4ada-b05f-3182bc11e8e9', 'name': '', 'tenant_id': '49e8180b0a314224a8d469df80aafbb8', 'network_id': 'f795e3c2-a992-456d-849a-593bfe314fbe', 'ip_version': 4, 'cidr': '67.185.1.128/26', 'allocation_pools': [{'start': '67.185.1.130', 'end': '67.185.1.190'}], 'gateway_ip': '67.185.1.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '67.185.1.130', 'tags': [], 'project_id': '49e8180b0a314224a8d469df80aafbb8'}} 2025-11-02 10:28:31,048 - INFO - Created VN ctest-vn-66128156 2025-11-02 10:28:31,102 - DEBUG - VN ctest-vn-66128156 UUID is f795e3c2-a992-456d-849a-593bfe314fbe 2025-11-02 10:28:31,229 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-41277364:ctest-vn-95237093, 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-41277364:ctest-vn-66128156, 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-11-02 10:28:31,534 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c8553da2-4b6f-45cd-868a-753a2cc2d83c', 'name': 'ctest-vn-95237093', 'tenant_id': '49e8180b0a314224a8d469df80aafbb8', 'project_id': '49e8180b0a314224a8d469df80aafbb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['645fd2ce-62a0-4bff-85f7-57563a2891bd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41277364', 'ctest-vn-95237093'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41277364', 'ctest-policy-allow-all-21853785']], 'subnet_ipam': [{'subnet_cidr': '138.138.68.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-02 10:28:31,768 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f795e3c2-a992-456d-849a-593bfe314fbe', 'name': 'ctest-vn-66128156', 'tenant_id': '49e8180b0a314224a8d469df80aafbb8', 'project_id': '49e8180b0a314224a8d469df80aafbb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['77ef8a39-8d5b-4ada-b05f-3182bc11e8e9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41277364', 'ctest-vn-66128156'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41277364', 'ctest-policy-allow-all-21853785']], 'subnet_ipam': [{'subnet_cidr': '67.185.1.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-02 10:28:31,942 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-11-02 10:28:32,285 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-11-02 10:28:32,316 - DEBUG - Requesting: http://10.0.0.48:8082/domain/acbe4b74-975a-4a45-be44-71065b65aab0 2025-11-02 10:28:32,328 - DEBUG - Requesting: http://10.0.0.48:8082/project/49e8180b-0a31-4224-a8d4-69df80aafbb8 2025-11-02 10:28:32,400 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c8553da2-4b6f-45cd-868a-753a2cc2d83c 2025-11-02 10:28:32,411 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c8553da2-4b6f-45cd-868a-753a2cc2d83c 2025-11-02 10:28:32,422 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/7f497423-7d94-48ad-8590-f07efa1547dd 2025-11-02 10:28:32,430 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/7f497423-7d94-48ad-8590-f07efa1547dd 2025-11-02 10:28:32,439 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/b55346d3-39f4-4c65-aaf0-0d1051400247 2025-11-02 10:28:32,447 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-02 10:28:32,447 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c8553da2-4b6f-45cd-868a-753a2cc2d83c 2025-11-02 10:28:32,459 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/7f497423-7d94-48ad-8590-f07efa1547dd 2025-11-02 10:28:32,474 - INFO - Verified VN network id 11 for VN c8553da2-4b6f-45cd-868a-753a2cc2d83c 2025-11-02 10:28:32,474 - INFO - Verifications in API Server for VN ctest-vn-95237093 passed 2025-11-02 10:28:32,474 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c8553da2-4b6f-45cd-868a-753a2cc2d83c 2025-11-02 10:28:32,484 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/7f497423-7d94-48ad-8590-f07efa1547dd 2025-11-02 10:28:32,492 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/7f497423-7d94-48ad-8590-f07efa1547dd 2025-11-02 10:28:32,500 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/b55346d3-39f4-4c65-aaf0-0d1051400247 2025-11-02 10:28:32,513 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41277364:ctest-vn-95237093', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41277364', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14435511947865572813', 'uuid-lslong': '9694690040587933756'}, 'enable': 'true', 'created': '2025-11-02T10:28:30', 'last-modified': '2025-11-02T10:28:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.009323'} 2025-11-02 10:28:32,519 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-02 10:28:32,519 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95237093 passed 2025-11-02 10:28:32,519 - DEBUG - ====Verifying policy data for ctest-vn-95237093 in API_Server ====== 2025-11-02 10:28:32,519 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-11-02 10:28:32,526 - DEBUG - Requesting: http://10.0.0.48:8082/domain/acbe4b74-975a-4a45-be44-71065b65aab0 2025-11-02 10:28:32,539 - DEBUG - Requesting: http://10.0.0.48:8082/project/49e8180b-0a31-4224-a8d4-69df80aafbb8 2025-11-02 10:28:32,612 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c8553da2-4b6f-45cd-868a-753a2cc2d83c 2025-11-02 10:28:32,621 - DEBUG - ==>Verifying data for policy with id: 60c922c1-0aff-4cae-8f3b-5b69b86a3e22, fqn: ['default-domain', 'ctest-TestBasicPolicy-41277364', 'ctest-policy-allow-all-21853785'] 2025-11-02 10:28:32,621 - INFO - VN ctest-vn-95237093 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-02 10:28:32,621 - DEBUG - Verifying the vn in opserver 2025-11-02 10:28:32,621 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41277364:ctest-vn-95237093 virtual network link through opserver 10.0.0.48 2025-11-02 10:28:32,621 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-11-02 10:28:32,966 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-11-02 10:28:33,043 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41277364:ctest-vn-95237093', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41277364:ctest-vn-95237093?flat'} 2025-11-02 10:28:33,043 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41277364:ctest-vn-95237093 is found in opserver 2025-11-02 10:28:33,056 - DEBUG - Do not have enough data to verify VN in agent 2025-11-02 10:28:33,062 - DEBUG - VRF ids for VN ctest-vn-95237093: {} 2025-11-02 10:28:33,062 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-11-02 10:28:33,069 - DEBUG - Requesting: http://10.0.0.48:8082/domain/acbe4b74-975a-4a45-be44-71065b65aab0 2025-11-02 10:28:33,081 - DEBUG - Requesting: http://10.0.0.48:8082/project/49e8180b-0a31-4224-a8d4-69df80aafbb8 2025-11-02 10:28:33,159 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f795e3c2-a992-456d-849a-593bfe314fbe 2025-11-02 10:28:33,172 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f795e3c2-a992-456d-849a-593bfe314fbe 2025-11-02 10:28:33,185 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/cc379bce-1e21-43d0-bcc2-e819aae22f16 2025-11-02 10:28:33,193 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/cc379bce-1e21-43d0-bcc2-e819aae22f16 2025-11-02 10:28:33,200 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/e511dfa8-1629-48cf-a17f-c005a05a33b2 2025-11-02 10:28:33,207 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-02 10:28:33,207 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f795e3c2-a992-456d-849a-593bfe314fbe 2025-11-02 10:28:33,218 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/cc379bce-1e21-43d0-bcc2-e819aae22f16 2025-11-02 10:28:33,237 - INFO - Verified VN network id 12 for VN f795e3c2-a992-456d-849a-593bfe314fbe 2025-11-02 10:28:33,237 - INFO - Verifications in API Server for VN ctest-vn-66128156 passed 2025-11-02 10:28:33,237 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f795e3c2-a992-456d-849a-593bfe314fbe 2025-11-02 10:28:33,251 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/cc379bce-1e21-43d0-bcc2-e819aae22f16 2025-11-02 10:28:33,261 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/cc379bce-1e21-43d0-bcc2-e819aae22f16 2025-11-02 10:28:33,270 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/e511dfa8-1629-48cf-a17f-c005a05a33b2 2025-11-02 10:28:33,287 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41277364:ctest-vn-66128156', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41277364', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17840415924106184045', 'uuid-lslong': '9555047673622515646'}, 'enable': 'true', 'created': '2025-11-02T10:28:30', 'last-modified': '2025-11-02T10:28:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.545169'} 2025-11-02 10:28:33,296 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-02 10:28:33,296 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66128156 passed 2025-11-02 10:28:33,296 - DEBUG - ====Verifying policy data for ctest-vn-66128156 in API_Server ====== 2025-11-02 10:28:33,296 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-11-02 10:28:33,304 - DEBUG - Requesting: http://10.0.0.48:8082/domain/acbe4b74-975a-4a45-be44-71065b65aab0 2025-11-02 10:28:33,316 - DEBUG - Requesting: http://10.0.0.48:8082/project/49e8180b-0a31-4224-a8d4-69df80aafbb8 2025-11-02 10:28:33,392 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f795e3c2-a992-456d-849a-593bfe314fbe 2025-11-02 10:28:33,402 - DEBUG - ==>Verifying data for policy with id: 60c922c1-0aff-4cae-8f3b-5b69b86a3e22, fqn: ['default-domain', 'ctest-TestBasicPolicy-41277364', 'ctest-policy-allow-all-21853785'] 2025-11-02 10:28:33,402 - INFO - VN ctest-vn-66128156 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-02 10:28:33,402 - DEBUG - Verifying the vn in opserver 2025-11-02 10:28:33,402 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41277364:ctest-vn-66128156 virtual network link through opserver 10.0.0.48 2025-11-02 10:28:33,402 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-11-02 10:28:33,412 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41277364:ctest-vn-66128156', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41277364:ctest-vn-66128156?flat'} 2025-11-02 10:28:33,412 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41277364:ctest-vn-66128156 is found in opserver 2025-11-02 10:28:33,422 - DEBUG - Do not have enough data to verify VN in agent 2025-11-02 10:28:33,428 - DEBUG - VRF ids for VN ctest-vn-66128156: {} 2025-11-02 10:28:33,501 - DEBUG - Services list from nova: [, , ] 2025-11-02 10:28:34,627 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4593-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4593-1) 2025-11-02 10:28:35,832 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4593-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4593-1) 2025-11-02 10:28:35,835 - INFO - Waiting for VM ctest-TestBasicPolicy-41277364-84418123 to be up.. 2025-11-02 10:28:35,944 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-02 10:28:41,023 - DEBUG - VM is in ACTIVE state now 2025-11-02 10:28:41,024 - INFO - VM name : ctest-TestBasicPolicy-41277364-84418123 2025-11-02 10:28:41,100 - DEBUG - VM ctest-TestBasicPolicy-41277364-84418123 ID is 5a555c02-2500-48c0-9147-2f25893b8c76 2025-11-02 10:28:41,120 - DEBUG - VM ctest-TestBasicPolicy-41277364-84418123 launched on Node cn-jenkins-deploy-platform-ansible-os-4593-1 2025-11-02 10:28:41,194 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/5a555c02-2500-48c0-9147-2f25893b8c76 2025-11-02 10:28:41,202 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/e1864b89-c091-41c9-a9b6-088e82883185 2025-11-02 10:28:44,451 - 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 1018ms') 2025-11-02 10:28:44,451 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-41277364-84418123 failed! 2025-11-02 10:28:44,506 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-41277364:ctest-vn-95237093 is 138.138.68.1 and allocation pool is NOT set 2025-11-02 10:28:46,570 - 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.40 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.484 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.484/4.441/8.399/3.957 ms') 2025-11-02 10:28:46,570 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-41277364-84418123 passed 2025-11-02 10:28:46,718 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-02 10:28:46,718 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-41277364-84418123, IP 138.138.68.3, Port 22 2025-11-02 10:28:46,877 - DEBUG - VM ctest-TestBasicPolicy-41277364-84418123 is ready for SSH connections 2025-11-02 10:28:46,878 - INFO - Waiting for VM ctest-TestBasicPolicy-41277364-78727218 to be up.. 2025-11-02 10:28:46,948 - DEBUG - VM is in ACTIVE state now 2025-11-02 10:28:46,949 - INFO - VM name : ctest-TestBasicPolicy-41277364-78727218 2025-11-02 10:28:47,020 - DEBUG - VM ctest-TestBasicPolicy-41277364-78727218 ID is df60a861-1218-4d3e-b944-e25f443ec336 2025-11-02 10:28:47,021 - DEBUG - VM ctest-TestBasicPolicy-41277364-78727218 launched on Node cn-jenkins-deploy-platform-ansible-os-4593-1 2025-11-02 10:28:47,089 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/df60a861-1218-4d3e-b944-e25f443ec336 2025-11-02 10:28:47,098 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/8fa9eb2e-d0c4-4533-af26-1cf820295d0c 2025-11-02 10:28:48,338 - 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=6.24 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.43 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.428/4.333/6.239/1.905 ms') 2025-11-02 10:28:48,338 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-41277364-78727218 passed 2025-11-02 10:28:48,486 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-02 10:28:48,486 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-41277364-78727218, IP 67.185.1.131, Port 22 2025-11-02 10:28:48,552 - 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-11-02 10:28:48,636 - DEBUG - VM ctest-TestBasicPolicy-41277364-78727218 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-02 10:28:53,637 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-02 10:28:53,637 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-41277364-78727218, IP 67.185.1.131, Port 22 2025-11-02 10:28:53,793 - DEBUG - VM ctest-TestBasicPolicy-41277364-78727218 is ready for SSH connections 2025-11-02 10:28:53,794 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-02 10:28:53,794 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 67.185.1.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2025-11-02 10:28:53,794 - DEBUG - ping -s 56 -c 3 -W 1 67.185.1.131 2025-11-02 10:28:57,864 - DEBUG - PING 67.185.1.131 (67.185.1.131): 56 data bytes 64 bytes from 67.185.1.131: seq=0 ttl=63 time=4.475 ms 64 bytes from 67.185.1.131: seq=1 ttl=63 time=1.010 ms 64 bytes from 67.185.1.131: seq=2 ttl=63 time=0.760 ms --- 67.185.1.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.760/2.081/4.475 ms 2025-11-02 10:28:57,864 - INFO - Ping to IP 67.185.1.131 from VM ctest-TestBasicPolicy-41277364-84418123 passed 2025-11-02 10:28:58,042 - DEBUG - Policy Update Response {"network-policy": {"uuid": "60c922c1-0aff-4cae-8f3b-5b69b86a3e22", "href": "http://10.0.0.48:8082/network-policy/60c922c1-0aff-4cae-8f3b-5b69b86a3e22"}} 2025-11-02 10:28:58,042 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-02 10:28:58,042 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 67.185.1.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2025-11-02 10:28:58,042 - DEBUG - ping -s 56 -c 3 -W 1 67.185.1.131 2025-11-02 10:29:01,266 - DEBUG - PING 67.185.1.131 (67.185.1.131): 56 data bytes --- 67.185.1.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-11-02 10:29:01,267 - WARNING - Ping to IP 67.185.1.131 from VM ctest-TestBasicPolicy-41277364-84418123 failed 2025-11-02 10:29:01,267 - INFO - Deleting VM ctest-TestBasicPolicy-41277364-78727218 2025-11-02 10:29:01,340 - INFO - Deleting VM ctest-TestBasicPolicy-41277364-84418123 2025-11-02 10:29:01,935 - INFO - Deleted policy ctest-policy-allow-all-21853785 2025-11-02 10:29:01,935 - INFO - Deleting VN ctest-vn-66128156 2025-11-02 10:29:02,036 - DEBUG - VN f795e3c2-a992-456d-849a-593bfe314fbe still in use: Unable to complete operation on network f795e3c2-a992-456d-849a-593bfe314fbe. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-df71cba5-a333-4d5f-9014-9845f4c3615b'] 2025-11-02 10:29:02,036 - WARNING - Deleting VN ctest-vn-66128156 failed..Will retry 2025-11-02 10:29:04,173 - DEBUG - Response for deleting network () 2025-11-02 10:29:04,174 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/cc379bce-1e21-43d0-bcc2-e819aae22f16 2025-11-02 10:29:04,180 - DEBUG - Response Code: 404 2025-11-02 10:29:04,180 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-11-02 10:29:04,186 - DEBUG - Requesting: http://10.0.0.48:8082/domain/acbe4b74-975a-4a45-be44-71065b65aab0 2025-11-02 10:29:04,244 - DEBUG - Requesting: http://10.0.0.48:8082/project/49e8180b-0a31-4224-a8d4-69df80aafbb8 2025-11-02 10:29:04,317 - INFO - Validated that VN ctest-vn-66128156 is not found in API Server 2025-11-02 10:29:04,326 - DEBUG - VN ctest-vn-66128156 is not present in Agent 10.0.0.48 2025-11-02 10:29:04,326 - INFO - Validated that VN ctest-vn-66128156 is not in any agent 2025-11-02 10:29:04,340 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-66128156 info 2025-11-02 10:29:04,340 - INFO - Deleting VN ctest-vn-95237093 2025-11-02 10:29:04,470 - DEBUG - Response for deleting network () 2025-11-02 10:29:04,470 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/7f497423-7d94-48ad-8590-f07efa1547dd 2025-11-02 10:29:04,476 - DEBUG - Response Code: 404 2025-11-02 10:29:04,476 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-11-02 10:29:04,483 - DEBUG - Requesting: http://10.0.0.48:8082/domain/acbe4b74-975a-4a45-be44-71065b65aab0 2025-11-02 10:29:04,538 - DEBUG - Requesting: http://10.0.0.48:8082/project/49e8180b-0a31-4224-a8d4-69df80aafbb8 2025-11-02 10:29:04,613 - INFO - Validated that VN ctest-vn-95237093 is not found in API Server 2025-11-02 10:29:04,622 - DEBUG - VN ctest-vn-95237093 is not present in Agent 10.0.0.48 2025-11-02 10:29:04,622 - INFO - Validated that VN ctest-vn-95237093 is not in any agent 2025-11-02 10:29:04,636 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-95237093 info 2025-11-02 10:29:04,899 - DEBUG - No XMPP flaps were noticed during the test
2025-11-02 10:29:04,899 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-11-02 10:29:04,900 - INFO - -------------------------------------------------------------------------------- 2025-11-02 10:29:05,600 - INFO - Deleted project: ctest-TestBasicPolicy-41277364, ID : 49e8180b-0a31-4224-a8d4-69df80aafbb8