2025-04-15 15:49:36,029 - INFO - Domain Default found not creating 2025-04-15 15:49:36,210 - INFO - Project ctest-TestBasicPolicy-34920764 not found, creating it 2025-04-15 15:49:36,725 - INFO - Created Project:ctest-TestBasicPolicy-34920764, ID : 0e9ff6b1-e62d-4ba0-a36a-21233b839e55 2025-04-15 15:49:38,254 - INFO - ================================================================================ 2025-04-15 15:49:38,254 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-15 15:49:38,255 - 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-04-15 15:49:38,519 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-04-15 15:49:38,519 - INFO - Initial checks done. Running the testcase now 2025-04-15 15:49:38,519 - INFO - 2025-04-15 15:49:39,138 - DEBUG - Response for create_network : {'network': {'id': '7bf26af0-0648-45b7-a883-a616998dbc9a', 'name': 'ctest-vn-77161628', 'tenant_id': '0e9ff6b1e62d4ba0a36a21233b839e55', 'project_id': '0e9ff6b1e62d4ba0a36a21233b839e55', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34920764', 'ctest-vn-77161628'], 'port_security_enabled': True, 'description': ''}} 2025-04-15 15:49:39,368 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b7e5c6ed-8a1b-44f5-9553-ec436d4f2c08', 'name': '', 'tenant_id': '0e9ff6b1e62d4ba0a36a21233b839e55', 'network_id': '7bf26af0-0648-45b7-a883-a616998dbc9a', 'ip_version': 4, 'cidr': '115.118.39.128/26', 'allocation_pools': [{'start': '115.118.39.130', 'end': '115.118.39.190'}], 'gateway_ip': '115.118.39.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.118.39.130', 'tags': [], 'project_id': '0e9ff6b1e62d4ba0a36a21233b839e55'}} 2025-04-15 15:49:39,392 - INFO - Created VN ctest-vn-77161628 2025-04-15 15:49:39,448 - DEBUG - VN ctest-vn-77161628 UUID is 7bf26af0-0648-45b7-a883-a616998dbc9a 2025-04-15 15:49:39,739 - DEBUG - Response for create_network : {'network': {'id': '9a0e499c-6f78-47bf-aa0e-6659c24caa21', 'name': 'ctest-vn-59756529', 'tenant_id': '0e9ff6b1e62d4ba0a36a21233b839e55', 'project_id': '0e9ff6b1e62d4ba0a36a21233b839e55', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34920764', 'ctest-vn-59756529'], 'port_security_enabled': True, 'description': ''}} 2025-04-15 15:49:39,952 - DEBUG - Response for create_subnet : {'subnet': {'id': '0b8ff25e-35b1-4acb-b968-a43600a37112', 'name': '', 'tenant_id': '0e9ff6b1e62d4ba0a36a21233b839e55', 'network_id': '9a0e499c-6f78-47bf-aa0e-6659c24caa21', 'ip_version': 4, 'cidr': '60.129.21.192/26', 'allocation_pools': [{'start': '60.129.21.194', 'end': '60.129.21.254'}], 'gateway_ip': '60.129.21.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.129.21.194', 'tags': [], 'project_id': '0e9ff6b1e62d4ba0a36a21233b839e55'}} 2025-04-15 15:49:39,972 - INFO - Created VN ctest-vn-59756529 2025-04-15 15:49:40,028 - DEBUG - VN ctest-vn-59756529 UUID is 9a0e499c-6f78-47bf-aa0e-6659c24caa21 2025-04-15 15:49:40,184 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-34920764:ctest-vn-77161628, 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-34920764:ctest-vn-59756529, 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-04-15 15:49:40,489 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7bf26af0-0648-45b7-a883-a616998dbc9a', 'name': 'ctest-vn-77161628', 'tenant_id': '0e9ff6b1e62d4ba0a36a21233b839e55', 'project_id': '0e9ff6b1e62d4ba0a36a21233b839e55', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b7e5c6ed-8a1b-44f5-9553-ec436d4f2c08'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34920764', 'ctest-vn-77161628'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34920764', 'ctest-policy-allow-all-80909073']], 'subnet_ipam': [{'subnet_cidr': '115.118.39.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-15 15:49:40,729 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9a0e499c-6f78-47bf-aa0e-6659c24caa21', 'name': 'ctest-vn-59756529', 'tenant_id': '0e9ff6b1e62d4ba0a36a21233b839e55', 'project_id': '0e9ff6b1e62d4ba0a36a21233b839e55', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0b8ff25e-35b1-4acb-b968-a43600a37112'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34920764', 'ctest-vn-59756529'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34920764', 'ctest-policy-allow-all-80909073']], 'subnet_ipam': [{'subnet_cidr': '60.129.21.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-15 15:49:40,900 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-04-15 15:49:41,209 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-04-15 15:49:41,239 - DEBUG - Requesting: http://10.0.0.22:8082/domain/be2cd41e-edb8-4787-99b0-1739f2661f4f 2025-04-15 15:49:41,253 - DEBUG - Requesting: http://10.0.0.22:8082/project/0e9ff6b1-e62d-4ba0-a36a-21233b839e55 2025-04-15 15:49:41,336 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7bf26af0-0648-45b7-a883-a616998dbc9a 2025-04-15 15:49:41,348 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7bf26af0-0648-45b7-a883-a616998dbc9a 2025-04-15 15:49:41,360 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/87410f2f-8b89-42f1-8e2e-62b2a0642423 2025-04-15 15:49:41,369 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/87410f2f-8b89-42f1-8e2e-62b2a0642423 2025-04-15 15:49:41,376 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/bb4f870d-4f0d-4409-8207-43df1e22948a 2025-04-15 15:49:41,383 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-15 15:49:41,383 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7bf26af0-0648-45b7-a883-a616998dbc9a 2025-04-15 15:49:41,393 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/87410f2f-8b89-42f1-8e2e-62b2a0642423 2025-04-15 15:49:41,410 - INFO - Verified VN network id 8 for VN 7bf26af0-0648-45b7-a883-a616998dbc9a 2025-04-15 15:49:41,410 - INFO - Verifications in API Server for VN ctest-vn-77161628 passed 2025-04-15 15:49:41,410 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7bf26af0-0648-45b7-a883-a616998dbc9a 2025-04-15 15:49:41,420 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/87410f2f-8b89-42f1-8e2e-62b2a0642423 2025-04-15 15:49:41,427 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/87410f2f-8b89-42f1-8e2e-62b2a0642423 2025-04-15 15:49:41,435 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/bb4f870d-4f0d-4409-8207-43df1e22948a 2025-04-15 15:49:41,447 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34920764:ctest-vn-77161628', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34920764', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8931318590159209911', 'uuid-lslong': '12142731636316683418'}, 'enable': 'true', 'created': '2025-04-15T15:49:39', 'last-modified': '2025-04-15T15:49:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.988361'} 2025-04-15 15:49:41,454 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-15 15:49:41,454 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77161628 passed 2025-04-15 15:49:41,454 - DEBUG - ====Verifying policy data for ctest-vn-77161628 in API_Server ====== 2025-04-15 15:49:41,454 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-04-15 15:49:41,460 - DEBUG - Requesting: http://10.0.0.22:8082/domain/be2cd41e-edb8-4787-99b0-1739f2661f4f 2025-04-15 15:49:41,476 - DEBUG - Requesting: http://10.0.0.22:8082/project/0e9ff6b1-e62d-4ba0-a36a-21233b839e55 2025-04-15 15:49:41,551 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7bf26af0-0648-45b7-a883-a616998dbc9a 2025-04-15 15:49:41,562 - DEBUG - ==>Verifying data for policy with id: a79af3bb-9bf6-4622-8070-67285bdc618b, fqn: ['default-domain', 'ctest-TestBasicPolicy-34920764', 'ctest-policy-allow-all-80909073'] 2025-04-15 15:49:41,562 - INFO - VN ctest-vn-77161628 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-15 15:49:41,562 - DEBUG - Verifying the vn in opserver 2025-04-15 15:49:41,563 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34920764:ctest-vn-77161628 virtual network link through opserver 10.0.0.22 2025-04-15 15:49:41,563 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-04-15 15:49:41,855 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-04-15 15:49:41,914 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34920764:ctest-vn-77161628', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34920764:ctest-vn-77161628?flat'} 2025-04-15 15:49:41,914 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34920764:ctest-vn-77161628 is found in opserver 2025-04-15 15:49:41,926 - DEBUG - Do not have enough data to verify VN in agent 2025-04-15 15:49:41,931 - DEBUG - VRF ids for VN ctest-vn-77161628: {} 2025-04-15 15:49:41,931 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-04-15 15:49:41,938 - DEBUG - Requesting: http://10.0.0.22:8082/domain/be2cd41e-edb8-4787-99b0-1739f2661f4f 2025-04-15 15:49:41,952 - DEBUG - Requesting: http://10.0.0.22:8082/project/0e9ff6b1-e62d-4ba0-a36a-21233b839e55 2025-04-15 15:49:42,026 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9a0e499c-6f78-47bf-aa0e-6659c24caa21 2025-04-15 15:49:42,040 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9a0e499c-6f78-47bf-aa0e-6659c24caa21 2025-04-15 15:49:42,050 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dde8b6e0-f529-4e48-990c-a9181e63c94c 2025-04-15 15:49:42,058 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dde8b6e0-f529-4e48-990c-a9181e63c94c 2025-04-15 15:49:42,066 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/22471cfd-b345-4f9e-98c7-02bf07136812 2025-04-15 15:49:42,074 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-15 15:49:42,074 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9a0e499c-6f78-47bf-aa0e-6659c24caa21 2025-04-15 15:49:42,085 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dde8b6e0-f529-4e48-990c-a9181e63c94c 2025-04-15 15:49:42,101 - INFO - Verified VN network id 9 for VN 9a0e499c-6f78-47bf-aa0e-6659c24caa21 2025-04-15 15:49:42,101 - INFO - Verifications in API Server for VN ctest-vn-59756529 passed 2025-04-15 15:49:42,102 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9a0e499c-6f78-47bf-aa0e-6659c24caa21 2025-04-15 15:49:42,111 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dde8b6e0-f529-4e48-990c-a9181e63c94c 2025-04-15 15:49:42,119 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dde8b6e0-f529-4e48-990c-a9181e63c94c 2025-04-15 15:49:42,127 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/22471cfd-b345-4f9e-98c7-02bf07136812 2025-04-15 15:49:42,139 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34920764:ctest-vn-59756529', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34920764', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11100891067748730815', 'uuid-lslong': '12253844171819624993'}, 'enable': 'true', 'created': '2025-04-15T15:49:39', 'last-modified': '2025-04-15T15:49:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.436214'} 2025-04-15 15:49:42,145 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-15 15:49:42,145 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59756529 passed 2025-04-15 15:49:42,146 - DEBUG - ====Verifying policy data for ctest-vn-59756529 in API_Server ====== 2025-04-15 15:49:42,146 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-04-15 15:49:42,151 - DEBUG - Requesting: http://10.0.0.22:8082/domain/be2cd41e-edb8-4787-99b0-1739f2661f4f 2025-04-15 15:49:42,163 - DEBUG - Requesting: http://10.0.0.22:8082/project/0e9ff6b1-e62d-4ba0-a36a-21233b839e55 2025-04-15 15:49:42,238 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9a0e499c-6f78-47bf-aa0e-6659c24caa21 2025-04-15 15:49:42,247 - DEBUG - ==>Verifying data for policy with id: a79af3bb-9bf6-4622-8070-67285bdc618b, fqn: ['default-domain', 'ctest-TestBasicPolicy-34920764', 'ctest-policy-allow-all-80909073'] 2025-04-15 15:49:42,248 - INFO - VN ctest-vn-59756529 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-15 15:49:42,248 - DEBUG - Verifying the vn in opserver 2025-04-15 15:49:42,248 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34920764:ctest-vn-59756529 virtual network link through opserver 10.0.0.22 2025-04-15 15:49:42,248 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-04-15 15:49:42,259 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34920764:ctest-vn-59756529', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34920764:ctest-vn-59756529?flat'} 2025-04-15 15:49:42,259 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34920764:ctest-vn-59756529 is found in opserver 2025-04-15 15:49:42,270 - DEBUG - Do not have enough data to verify VN in agent 2025-04-15 15:49:42,277 - DEBUG - VRF ids for VN ctest-vn-59756529: {} 2025-04-15 15:49:42,338 - DEBUG - Services list from nova: [, , ] 2025-04-15 15:49:43,390 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3119-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3119-1) 2025-04-15 15:49:44,659 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3119-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3119-1) 2025-04-15 15:49:44,659 - INFO - Waiting for VM ctest-TestBasicPolicy-34920764-37329095 to be up.. 2025-04-15 15:49:44,764 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-15 15:49:49,851 - DEBUG - VM is in ACTIVE state now 2025-04-15 15:49:49,851 - INFO - VM name : ctest-TestBasicPolicy-34920764-37329095 2025-04-15 15:49:49,957 - DEBUG - VM ctest-TestBasicPolicy-34920764-37329095 ID is 57a88cf5-ee65-4d64-a3e3-fa724a5acf86 2025-04-15 15:49:49,982 - DEBUG - VM ctest-TestBasicPolicy-34920764-37329095 launched on Node cn-jenkins-deploy-platform-ansible-os-3119-1 2025-04-15 15:49:50,065 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/57a88cf5-ee65-4d64-a3e3-fa724a5acf86 2025-04-15 15:49:50,075 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/be81e3ed-218f-48c7-b12e-74e12ea0d6d5 2025-04-15 15:49:53,351 - 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 1030ms') 2025-04-15 15:49:53,351 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-34920764-37329095 failed! 2025-04-15 15:49:53,412 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-34920764:ctest-vn-77161628 is 115.118.39.129 and allocation pool is NOT set 2025-04-15 15:49:55,475 - 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=7.82 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.77 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.768/5.293/7.818/2.525 ms') 2025-04-15 15:49:55,475 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-34920764-37329095 passed 2025-04-15 15:49:55,632 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-15 15:49:55,632 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-34920764-37329095, IP 115.118.39.131, Port 22 2025-04-15 15:49:55,688 - 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-04-15 15:49:55,769 - DEBUG - VM ctest-TestBasicPolicy-34920764-37329095 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-15 15:50:00,769 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-15 15:50:00,769 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-34920764-37329095, IP 115.118.39.131, Port 22 2025-04-15 15:50:00,928 - DEBUG - VM ctest-TestBasicPolicy-34920764-37329095 is ready for SSH connections 2025-04-15 15:50:00,928 - INFO - Waiting for VM ctest-TestBasicPolicy-34920764-59324479 to be up.. 2025-04-15 15:50:01,005 - DEBUG - VM is in ACTIVE state now 2025-04-15 15:50:01,005 - INFO - VM name : ctest-TestBasicPolicy-34920764-59324479 2025-04-15 15:50:01,088 - DEBUG - VM ctest-TestBasicPolicy-34920764-59324479 ID is 3b28cde5-017c-4634-8ca3-a2d26ea6ecab 2025-04-15 15:50:01,089 - DEBUG - VM ctest-TestBasicPolicy-34920764-59324479 launched on Node cn-jenkins-deploy-platform-ansible-os-3119-1 2025-04-15 15:50:01,173 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/3b28cde5-017c-4634-8ca3-a2d26ea6ecab 2025-04-15 15:50:01,182 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/3bdf27a5-2d26-4c8a-9a5f-22056ea31761 2025-04-15 15:50:02,429 - 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.46 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.389 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.389/1.923/3.457/1.534 ms') 2025-04-15 15:50:02,429 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-34920764-59324479 passed 2025-04-15 15:50:02,592 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-15 15:50:02,592 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-34920764-59324479, IP 60.129.21.195, Port 22 2025-04-15 15:50:02,748 - DEBUG - VM ctest-TestBasicPolicy-34920764-59324479 is ready for SSH connections 2025-04-15 15:50:02,748 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-15 15:50:02,748 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 60.129.21.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-04-15 15:50:02,749 - DEBUG - ping -s 56 -c 3 -W 1 60.129.21.195 2025-04-15 15:50:06,446 - DEBUG - PING 60.129.21.195 (60.129.21.195): 56 data bytes 64 bytes from 60.129.21.195: seq=0 ttl=63 time=4.006 ms 64 bytes from 60.129.21.195: seq=1 ttl=63 time=0.979 ms 64 bytes from 60.129.21.195: seq=2 ttl=63 time=1.061 ms --- 60.129.21.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.979/2.015/4.006 ms 2025-04-15 15:50:06,446 - INFO - Ping to IP 60.129.21.195 from VM ctest-TestBasicPolicy-34920764-37329095 passed 2025-04-15 15:50:06,648 - DEBUG - Policy Update Response {"network-policy": {"uuid": "a79af3bb-9bf6-4622-8070-67285bdc618b", "href": "http://10.0.0.22:8082/network-policy/a79af3bb-9bf6-4622-8070-67285bdc618b"}} 2025-04-15 15:50:06,648 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-15 15:50:06,648 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 60.129.21.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-04-15 15:50:06,648 - DEBUG - ping -s 56 -c 3 -W 1 60.129.21.195 2025-04-15 15:50:09,857 - DEBUG - PING 60.129.21.195 (60.129.21.195): 56 data bytes 64 bytes from 60.129.21.195: seq=0 ttl=63 time=1.730 ms --- 60.129.21.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.730/1.730/1.730 ms 2025-04-15 15:50:09,857 - WARNING - Ping to IP 60.129.21.195 from VM ctest-TestBasicPolicy-34920764-37329095 failed 2025-04-15 15:50:09,857 - INFO - Deleting VM ctest-TestBasicPolicy-34920764-59324479 2025-04-15 15:50:09,929 - INFO - Deleting VM ctest-TestBasicPolicy-34920764-37329095 2025-04-15 15:50:10,352 - INFO - Deleted policy ctest-policy-allow-all-80909073 2025-04-15 15:50:10,353 - INFO - Deleting VN ctest-vn-59756529 2025-04-15 15:50:10,396 - DEBUG - VN 9a0e499c-6f78-47bf-aa0e-6659c24caa21 still in use: Unable to complete operation on network 9a0e499c-6f78-47bf-aa0e-6659c24caa21. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-252c849d-5047-4a21-9b3c-52becf4dab34'] 2025-04-15 15:50:10,396 - WARNING - Deleting VN ctest-vn-59756529 failed..Will retry 2025-04-15 15:50:12,504 - DEBUG - Response for deleting network () 2025-04-15 15:50:12,504 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dde8b6e0-f529-4e48-990c-a9181e63c94c 2025-04-15 15:50:12,512 - DEBUG - Response Code: 404 2025-04-15 15:50:12,512 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-04-15 15:50:12,518 - DEBUG - Requesting: http://10.0.0.22:8082/domain/be2cd41e-edb8-4787-99b0-1739f2661f4f 2025-04-15 15:50:12,579 - DEBUG - Requesting: http://10.0.0.22:8082/project/0e9ff6b1-e62d-4ba0-a36a-21233b839e55 2025-04-15 15:50:12,661 - INFO - Validated that VN ctest-vn-59756529 is not found in API Server 2025-04-15 15:50:12,671 - DEBUG - VN ctest-vn-59756529 is not present in Agent 10.0.0.22 2025-04-15 15:50:12,671 - INFO - Validated that VN ctest-vn-59756529 is not in any agent 2025-04-15 15:50:12,687 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-59756529 info 2025-04-15 15:50:12,687 - INFO - Deleting VN ctest-vn-77161628 2025-04-15 15:50:12,795 - DEBUG - Response for deleting network () 2025-04-15 15:50:12,795 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/87410f2f-8b89-42f1-8e2e-62b2a0642423 2025-04-15 15:50:12,801 - DEBUG - Response Code: 404 2025-04-15 15:50:12,801 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-04-15 15:50:12,807 - DEBUG - Requesting: http://10.0.0.22:8082/domain/be2cd41e-edb8-4787-99b0-1739f2661f4f 2025-04-15 15:50:12,866 - DEBUG - Requesting: http://10.0.0.22:8082/project/0e9ff6b1-e62d-4ba0-a36a-21233b839e55 2025-04-15 15:50:12,946 - INFO - Validated that VN ctest-vn-77161628 is not found in API Server 2025-04-15 15:50:12,959 - DEBUG - VN ctest-vn-77161628 is not present in Agent 10.0.0.22 2025-04-15 15:50:12,959 - INFO - Validated that VN ctest-vn-77161628 is not in any agent 2025-04-15 15:50:12,976 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-77161628 info 2025-04-15 15:50:13,230 - DEBUG - No XMPP flaps were noticed during the test 2025-04-15 15:50:13,230 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-04-15 15:50:13,230 - INFO - -------------------------------------------------------------------------------- 2025-04-15 15:50:13,931 - INFO - Deleted project: ctest-TestBasicPolicy-34920764, ID : 0e9ff6b1-e62d-4ba0-a36a-21233b839e55