2025-01-15 09:21:12,305 - INFO - Domain Default found not creating 2025-01-15 09:21:12,477 - INFO - Project ctest-TestBasicPolicy-46960505 not found, creating it 2025-01-15 09:21:12,953 - INFO - Created Project:ctest-TestBasicPolicy-46960505, ID : a596b038-cd23-48d6-aa8c-4c4b8c9641b2 2025-01-15 09:21:14,444 - INFO - ================================================================================ 2025-01-15 09:21:14,444 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-15 09:21:14,445 - 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-01-15 09:21:14,703 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.33': '0'}} with 2025-01-15 09:21:14,704 - INFO - Initial checks done. Running the testcase now 2025-01-15 09:21:14,704 - INFO - 2025-01-15 09:21:15,271 - DEBUG - Response for create_network : {'network': {'id': '04c2ac3b-08fb-4174-aa01-27e4fcd60919', 'name': 'ctest-vn-71621001', 'tenant_id': 'a596b038cd2348d6aa8c4c4b8c9641b2', 'project_id': 'a596b038cd2348d6aa8c4c4b8c9641b2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46960505', 'ctest-vn-71621001'], 'port_security_enabled': True, 'description': ''}} 2025-01-15 09:21:15,501 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bc71a2b9-535e-49cb-a8a6-117f31a9ec3d', 'name': '', 'tenant_id': 'a596b038cd2348d6aa8c4c4b8c9641b2', 'network_id': '04c2ac3b-08fb-4174-aa01-27e4fcd60919', 'ip_version': 4, 'cidr': '18.123.130.192/26', 'allocation_pools': [{'start': '18.123.130.194', 'end': '18.123.130.254'}], 'gateway_ip': '18.123.130.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.123.130.194', 'tags': [], 'project_id': 'a596b038cd2348d6aa8c4c4b8c9641b2'}} 2025-01-15 09:21:15,523 - INFO - Created VN ctest-vn-71621001 2025-01-15 09:21:15,582 - DEBUG - VN ctest-vn-71621001 UUID is 04c2ac3b-08fb-4174-aa01-27e4fcd60919 2025-01-15 09:21:15,873 - DEBUG - Response for create_network : {'network': {'id': 'cab5c35d-1dcc-4e08-8f7d-9b37b706a8ff', 'name': 'ctest-vn-83625794', 'tenant_id': 'a596b038cd2348d6aa8c4c4b8c9641b2', 'project_id': 'a596b038cd2348d6aa8c4c4b8c9641b2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46960505', 'ctest-vn-83625794'], 'port_security_enabled': True, 'description': ''}} 2025-01-15 09:21:16,074 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd6be8e7f-5d4d-4e1d-a568-0d9f84bfc481', 'name': '', 'tenant_id': 'a596b038cd2348d6aa8c4c4b8c9641b2', 'network_id': 'cab5c35d-1dcc-4e08-8f7d-9b37b706a8ff', 'ip_version': 4, 'cidr': '40.246.228.64/26', 'allocation_pools': [{'start': '40.246.228.66', 'end': '40.246.228.126'}], 'gateway_ip': '40.246.228.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.246.228.66', 'tags': [], 'project_id': 'a596b038cd2348d6aa8c4c4b8c9641b2'}} 2025-01-15 09:21:16,093 - INFO - Created VN ctest-vn-83625794 2025-01-15 09:21:16,146 - DEBUG - VN ctest-vn-83625794 UUID is cab5c35d-1dcc-4e08-8f7d-9b37b706a8ff 2025-01-15 09:21:16,271 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-46960505:ctest-vn-71621001, 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-46960505:ctest-vn-83625794, 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-01-15 09:21:16,579 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '04c2ac3b-08fb-4174-aa01-27e4fcd60919', 'name': 'ctest-vn-71621001', 'tenant_id': 'a596b038cd2348d6aa8c4c4b8c9641b2', 'project_id': 'a596b038cd2348d6aa8c4c4b8c9641b2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bc71a2b9-535e-49cb-a8a6-117f31a9ec3d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46960505', 'ctest-vn-71621001'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46960505', 'ctest-policy-allow-all-61876662']], 'subnet_ipam': [{'subnet_cidr': '18.123.130.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-15 09:21:16,821 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cab5c35d-1dcc-4e08-8f7d-9b37b706a8ff', 'name': 'ctest-vn-83625794', 'tenant_id': 'a596b038cd2348d6aa8c4c4b8c9641b2', 'project_id': 'a596b038cd2348d6aa8c4c4b8c9641b2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d6be8e7f-5d4d-4e1d-a568-0d9f84bfc481'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46960505', 'ctest-vn-83625794'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46960505', 'ctest-policy-allow-all-61876662']], 'subnet_ipam': [{'subnet_cidr': '40.246.228.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-15 09:21:16,998 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-01-15 09:21:17,306 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-01-15 09:21:17,339 - DEBUG - Requesting: http://10.0.0.22:8082/domain/26f6f4fe-da6c-43d8-9b2e-61ab1b6fbbea 2025-01-15 09:21:17,352 - DEBUG - Requesting: http://10.0.0.22:8082/project/a596b038-cd23-48d6-aa8c-4c4b8c9641b2 2025-01-15 09:21:17,430 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/04c2ac3b-08fb-4174-aa01-27e4fcd60919 2025-01-15 09:21:17,444 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/04c2ac3b-08fb-4174-aa01-27e4fcd60919 2025-01-15 09:21:17,454 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0fda970f-d319-4e4d-bd7d-13422d6849dd 2025-01-15 09:21:17,462 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0fda970f-d319-4e4d-bd7d-13422d6849dd 2025-01-15 09:21:17,471 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/f5bbca21-c4fe-4740-89be-cec1dc7104b5 2025-01-15 09:21:17,479 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-15 09:21:17,479 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/04c2ac3b-08fb-4174-aa01-27e4fcd60919 2025-01-15 09:21:17,489 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0fda970f-d319-4e4d-bd7d-13422d6849dd 2025-01-15 09:21:17,504 - INFO - Verified VN network id 7 for VN 04c2ac3b-08fb-4174-aa01-27e4fcd60919 2025-01-15 09:21:17,504 - INFO - Verifications in API Server for VN ctest-vn-71621001 passed 2025-01-15 09:21:17,504 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/04c2ac3b-08fb-4174-aa01-27e4fcd60919 2025-01-15 09:21:17,516 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0fda970f-d319-4e4d-bd7d-13422d6849dd 2025-01-15 09:21:17,525 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0fda970f-d319-4e4d-bd7d-13422d6849dd 2025-01-15 09:21:17,533 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/f5bbca21-c4fe-4740-89be-cec1dc7104b5 2025-01-15 09:21:17,546 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46960505:ctest-vn-71621001', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46960505', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '343025891187310964', 'uuid-lslong': '12250116325872371993'}, 'enable': 'true', 'created': '2025-01-15T09:21:15', 'last-modified': '2025-01-15T09:21:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.990590'} 2025-01-15 09:21:17,553 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-15 09:21:17,553 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71621001 passed 2025-01-15 09:21:17,553 - DEBUG - ====Verifying policy data for ctest-vn-71621001 in API_Server ====== 2025-01-15 09:21:17,553 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-01-15 09:21:17,561 - DEBUG - Requesting: http://10.0.0.22:8082/domain/26f6f4fe-da6c-43d8-9b2e-61ab1b6fbbea 2025-01-15 09:21:17,576 - DEBUG - Requesting: http://10.0.0.22:8082/project/a596b038-cd23-48d6-aa8c-4c4b8c9641b2 2025-01-15 09:21:17,647 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/04c2ac3b-08fb-4174-aa01-27e4fcd60919 2025-01-15 09:21:17,659 - DEBUG - ==>Verifying data for policy with id: 66168972-65c1-41f2-9382-65c8688883f8, fqn: ['default-domain', 'ctest-TestBasicPolicy-46960505', 'ctest-policy-allow-all-61876662'] 2025-01-15 09:21:17,659 - INFO - VN ctest-vn-71621001 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-15 09:21:17,659 - DEBUG - Verifying the vn in opserver 2025-01-15 09:21:17,659 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46960505:ctest-vn-71621001 virtual network link through opserver 10.0.0.22 2025-01-15 09:21:17,659 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-01-15 09:21:17,952 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-01-15 09:21:18,010 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46960505:ctest-vn-71621001', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46960505:ctest-vn-71621001?flat'} 2025-01-15 09:21:18,010 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46960505:ctest-vn-71621001 is found in opserver 2025-01-15 09:21:18,022 - DEBUG - Do not have enough data to verify VN in agent 2025-01-15 09:21:18,028 - DEBUG - VRF ids for VN ctest-vn-71621001: {} 2025-01-15 09:21:18,028 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-01-15 09:21:18,035 - DEBUG - Requesting: http://10.0.0.22:8082/domain/26f6f4fe-da6c-43d8-9b2e-61ab1b6fbbea 2025-01-15 09:21:18,048 - DEBUG - Requesting: http://10.0.0.22:8082/project/a596b038-cd23-48d6-aa8c-4c4b8c9641b2 2025-01-15 09:21:18,136 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cab5c35d-1dcc-4e08-8f7d-9b37b706a8ff 2025-01-15 09:21:18,149 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cab5c35d-1dcc-4e08-8f7d-9b37b706a8ff 2025-01-15 09:21:18,160 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e63e8f5c-ba37-41dc-ae02-ada55fde5e58 2025-01-15 09:21:18,169 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e63e8f5c-ba37-41dc-ae02-ada55fde5e58 2025-01-15 09:21:18,177 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/9172ccdd-3370-466f-9f01-64d979d26b7f 2025-01-15 09:21:18,184 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-15 09:21:18,184 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cab5c35d-1dcc-4e08-8f7d-9b37b706a8ff 2025-01-15 09:21:18,194 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e63e8f5c-ba37-41dc-ae02-ada55fde5e58 2025-01-15 09:21:18,211 - INFO - Verified VN network id 8 for VN cab5c35d-1dcc-4e08-8f7d-9b37b706a8ff 2025-01-15 09:21:18,211 - INFO - Verifications in API Server for VN ctest-vn-83625794 passed 2025-01-15 09:21:18,211 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cab5c35d-1dcc-4e08-8f7d-9b37b706a8ff 2025-01-15 09:21:18,224 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e63e8f5c-ba37-41dc-ae02-ada55fde5e58 2025-01-15 09:21:18,233 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e63e8f5c-ba37-41dc-ae02-ada55fde5e58 2025-01-15 09:21:18,242 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/9172ccdd-3370-466f-9f01-64d979d26b7f 2025-01-15 09:21:18,256 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46960505:ctest-vn-83625794', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46960505', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14606795771145375240', 'uuid-lslong': '10339590983108700415'}, 'enable': 'true', 'created': '2025-01-15T09:21:15', 'last-modified': '2025-01-15T09:21:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.453108'} 2025-01-15 09:21:18,263 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-15 09:21:18,263 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83625794 passed 2025-01-15 09:21:18,263 - DEBUG - ====Verifying policy data for ctest-vn-83625794 in API_Server ====== 2025-01-15 09:21:18,263 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-01-15 09:21:18,270 - DEBUG - Requesting: http://10.0.0.22:8082/domain/26f6f4fe-da6c-43d8-9b2e-61ab1b6fbbea 2025-01-15 09:21:18,283 - DEBUG - Requesting: http://10.0.0.22:8082/project/a596b038-cd23-48d6-aa8c-4c4b8c9641b2 2025-01-15 09:21:18,362 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cab5c35d-1dcc-4e08-8f7d-9b37b706a8ff 2025-01-15 09:21:18,372 - DEBUG - ==>Verifying data for policy with id: 66168972-65c1-41f2-9382-65c8688883f8, fqn: ['default-domain', 'ctest-TestBasicPolicy-46960505', 'ctest-policy-allow-all-61876662'] 2025-01-15 09:21:18,372 - INFO - VN ctest-vn-83625794 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-15 09:21:18,372 - DEBUG - Verifying the vn in opserver 2025-01-15 09:21:18,372 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46960505:ctest-vn-83625794 virtual network link through opserver 10.0.0.22 2025-01-15 09:21:18,372 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-01-15 09:21:18,385 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46960505:ctest-vn-83625794', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46960505:ctest-vn-83625794?flat'} 2025-01-15 09:21:18,386 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46960505:ctest-vn-83625794 is found in opserver 2025-01-15 09:21:18,397 - DEBUG - Do not have enough data to verify VN in agent 2025-01-15 09:21:18,402 - DEBUG - VRF ids for VN ctest-vn-83625794: {} 2025-01-15 09:21:18,481 - DEBUG - Services list from nova: [, , ] 2025-01-15 09:21:19,626 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2637-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2637-1) 2025-01-15 09:21:20,826 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2637-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2637-1) 2025-01-15 09:21:20,826 - INFO - Waiting for VM ctest-TestBasicPolicy-46960505-54556571 to be up.. 2025-01-15 09:21:20,923 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-15 09:21:26,003 - DEBUG - VM is in ACTIVE state now 2025-01-15 09:21:26,003 - INFO - VM name : ctest-TestBasicPolicy-46960505-54556571 2025-01-15 09:21:26,086 - DEBUG - VM ctest-TestBasicPolicy-46960505-54556571 ID is 5769ab65-50d2-42a9-8a7e-329d953035d9 2025-01-15 09:21:26,107 - DEBUG - VM ctest-TestBasicPolicy-46960505-54556571 launched on Node cn-jenkins-deploy-platform-ansible-os-2637-1 2025-01-15 09:21:26,192 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/5769ab65-50d2-42a9-8a7e-329d953035d9 2025-01-15 09:21:26,203 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/4c14f764-5618-4608-87e0-d6d2e3650a6d 2025-01-15 09:21:29,440 - 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 1027ms') 2025-01-15 09:21:29,440 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-46960505-54556571 failed! 2025-01-15 09:21:29,498 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-46960505:ctest-vn-71621001 is 18.123.130.193 and allocation pool is NOT set 2025-01-15 09:21:31,556 - 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.10 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.506 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.506/3.301/6.096/2.795 ms') 2025-01-15 09:21:31,556 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-46960505-54556571 passed 2025-01-15 09:21:31,710 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-15 09:21:31,710 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-46960505-54556571, IP 18.123.130.195, Port 22 2025-01-15 09:21:31,870 - DEBUG - VM ctest-TestBasicPolicy-46960505-54556571 is ready for SSH connections 2025-01-15 09:21:31,870 - INFO - Waiting for VM ctest-TestBasicPolicy-46960505-25594436 to be up.. 2025-01-15 09:21:31,958 - DEBUG - VM is in ACTIVE state now 2025-01-15 09:21:31,958 - INFO - VM name : ctest-TestBasicPolicy-46960505-25594436 2025-01-15 09:21:32,049 - DEBUG - VM ctest-TestBasicPolicy-46960505-25594436 ID is 0787065f-4f0e-4a58-ba48-aade126ecfea 2025-01-15 09:21:32,050 - DEBUG - VM ctest-TestBasicPolicy-46960505-25594436 launched on Node cn-jenkins-deploy-platform-ansible-os-2637-1 2025-01-15 09:21:32,139 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/0787065f-4f0e-4a58-ba48-aade126ecfea 2025-01-15 09:21:32,150 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/bfbb1830-c861-4f41-855a-ab525b896bbd 2025-01-15 09:21:33,406 - 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=2.70 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.621 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.621/1.660/2.699/1.039 ms') 2025-01-15 09:21:33,406 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-46960505-25594436 passed 2025-01-15 09:21:33,566 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-15 09:21:33,566 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-46960505-25594436, IP 40.246.228.67, Port 22 2025-01-15 09:21:33,744 - DEBUG - VM ctest-TestBasicPolicy-46960505-25594436 is ready for SSH connections 2025-01-15 09:21:33,744 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-15 09:21:33,745 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 40.246.228.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-01-15 09:21:33,745 - DEBUG - ping -s 56 -c 3 -W 1 40.246.228.67 2025-01-15 09:21:37,476 - DEBUG - PING 40.246.228.67 (40.246.228.67): 56 data bytes 64 bytes from 40.246.228.67: seq=0 ttl=63 time=3.632 ms 64 bytes from 40.246.228.67: seq=1 ttl=63 time=0.948 ms 64 bytes from 40.246.228.67: seq=2 ttl=63 time=0.895 ms --- 40.246.228.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.895/1.825/3.632 ms 2025-01-15 09:21:37,476 - INFO - Ping to IP 40.246.228.67 from VM ctest-TestBasicPolicy-46960505-54556571 passed 2025-01-15 09:21:37,658 - DEBUG - Policy Update Response {"network-policy": {"uuid": "66168972-65c1-41f2-9382-65c8688883f8", "href": "http://10.0.0.22:8082/network-policy/66168972-65c1-41f2-9382-65c8688883f8"}} 2025-01-15 09:21:37,658 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-15 09:21:37,658 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 40.246.228.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-01-15 09:21:37,658 - DEBUG - ping -s 56 -c 3 -W 1 40.246.228.67 2025-01-15 09:21:40,857 - DEBUG - PING 40.246.228.67 (40.246.228.67): 56 data bytes 64 bytes from 40.246.228.67: seq=0 ttl=63 time=1.678 ms --- 40.246.228.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.678/1.678/1.678 ms 2025-01-15 09:21:40,857 - WARNING - Ping to IP 40.246.228.67 from VM ctest-TestBasicPolicy-46960505-54556571 failed 2025-01-15 09:21:40,858 - INFO - Deleting VM ctest-TestBasicPolicy-46960505-25594436 2025-01-15 09:21:40,929 - INFO - Deleting VM ctest-TestBasicPolicy-46960505-54556571 2025-01-15 09:21:41,398 - INFO - Deleted policy ctest-policy-allow-all-61876662 2025-01-15 09:21:41,398 - INFO - Deleting VN ctest-vn-83625794 2025-01-15 09:21:41,438 - DEBUG - VN cab5c35d-1dcc-4e08-8f7d-9b37b706a8ff still in use: Unable to complete operation on network cab5c35d-1dcc-4e08-8f7d-9b37b706a8ff. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-12b80ce1-12e4-4309-8a03-df335ef433d7'] 2025-01-15 09:21:41,438 - WARNING - Deleting VN ctest-vn-83625794 failed..Will retry 2025-01-15 09:21:43,554 - DEBUG - Response for deleting network () 2025-01-15 09:21:43,554 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e63e8f5c-ba37-41dc-ae02-ada55fde5e58 2025-01-15 09:21:43,560 - DEBUG - Response Code: 404 2025-01-15 09:21:43,560 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-01-15 09:21:43,571 - DEBUG - Requesting: http://10.0.0.22:8082/domain/26f6f4fe-da6c-43d8-9b2e-61ab1b6fbbea 2025-01-15 09:21:43,629 - DEBUG - Requesting: http://10.0.0.22:8082/project/a596b038-cd23-48d6-aa8c-4c4b8c9641b2 2025-01-15 09:21:43,701 - INFO - Validated that VN ctest-vn-83625794 is not found in API Server 2025-01-15 09:21:43,714 - DEBUG - VN ctest-vn-83625794 is not present in Agent 10.0.0.22 2025-01-15 09:21:43,714 - INFO - Validated that VN ctest-vn-83625794 is not in any agent 2025-01-15 09:21:43,728 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-83625794 info 2025-01-15 09:21:43,729 - INFO - Deleting VN ctest-vn-71621001 2025-01-15 09:21:43,844 - DEBUG - Response for deleting network () 2025-01-15 09:21:43,844 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0fda970f-d319-4e4d-bd7d-13422d6849dd 2025-01-15 09:21:43,854 - DEBUG - Response Code: 404 2025-01-15 09:21:43,854 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-01-15 09:21:43,863 - DEBUG - Requesting: http://10.0.0.22:8082/domain/26f6f4fe-da6c-43d8-9b2e-61ab1b6fbbea 2025-01-15 09:21:43,920 - DEBUG - Requesting: http://10.0.0.22:8082/project/a596b038-cd23-48d6-aa8c-4c4b8c9641b2 2025-01-15 09:21:43,995 - INFO - Validated that VN ctest-vn-71621001 is not found in API Server 2025-01-15 09:21:44,007 - DEBUG - VN ctest-vn-71621001 is not present in Agent 10.0.0.22 2025-01-15 09:21:44,007 - INFO - Validated that VN ctest-vn-71621001 is not in any agent 2025-01-15 09:21:44,026 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-71621001 info 2025-01-15 09:21:44,283 - DEBUG - No XMPP flaps were noticed during the test 2025-01-15 09:21:44,283 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2025-01-15 09:21:44,283 - INFO - -------------------------------------------------------------------------------- 2025-01-15 09:21:44,999 - INFO - Deleted project: ctest-TestBasicPolicy-46960505, ID : a596b038-cd23-48d6-aa8c-4c4b8c9641b2