2025-07-10 13:21:59,592 - INFO - Domain Default found not creating 2025-07-10 13:21:59,732 - INFO - Project ctest-TestBasicPolicy-03939430 not found, creating it 2025-07-10 13:22:00,187 - INFO - Created Project:ctest-TestBasicPolicy-03939430, ID : 0bf20cd5-a6e1-4e6e-acd3-a1ee30b6b235 2025-07-10 13:22:01,605 - INFO - ================================================================================ 2025-07-10 13:22:01,605 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-07-10 13:22:01,605 - 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-07-10 13:22:01,866 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2025-07-10 13:22:01,867 - INFO - Initial checks done. Running the testcase now 2025-07-10 13:22:01,867 - INFO - 2025-07-10 13:22:02,403 - DEBUG - Response for create_network : {'network': {'id': '4787af10-6039-4696-a1ef-6e973b413ea7', 'name': 'ctest-vn-30629625', 'tenant_id': '0bf20cd5a6e14e6eacd3a1ee30b6b235', 'project_id': '0bf20cd5a6e14e6eacd3a1ee30b6b235', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03939430', 'ctest-vn-30629625'], 'port_security_enabled': True, 'description': ''}} 2025-07-10 13:22:02,567 - DEBUG - Response for create_subnet : {'subnet': {'id': '68498078-c063-42f1-8410-f372957a8c1e', 'name': '', 'tenant_id': '0bf20cd5a6e14e6eacd3a1ee30b6b235', 'network_id': '4787af10-6039-4696-a1ef-6e973b413ea7', 'ip_version': 4, 'cidr': '166.253.68.192/26', 'allocation_pools': [{'start': '166.253.68.194', 'end': '166.253.68.254'}], 'gateway_ip': '166.253.68.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.253.68.194', 'tags': [], 'project_id': '0bf20cd5a6e14e6eacd3a1ee30b6b235'}} 2025-07-10 13:22:02,587 - INFO - Created VN ctest-vn-30629625 2025-07-10 13:22:02,638 - DEBUG - VN ctest-vn-30629625 UUID is 4787af10-6039-4696-a1ef-6e973b413ea7 2025-07-10 13:22:02,925 - DEBUG - Response for create_network : {'network': {'id': 'ec2872c4-aedc-4823-9fc2-07e5a56840f7', 'name': 'ctest-vn-81075028', 'tenant_id': '0bf20cd5a6e14e6eacd3a1ee30b6b235', 'project_id': '0bf20cd5a6e14e6eacd3a1ee30b6b235', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03939430', 'ctest-vn-81075028'], 'port_security_enabled': True, 'description': ''}} 2025-07-10 13:22:03,084 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd1fad8a6-97f0-45fc-bb16-aea956f511df', 'name': '', 'tenant_id': '0bf20cd5a6e14e6eacd3a1ee30b6b235', 'network_id': 'ec2872c4-aedc-4823-9fc2-07e5a56840f7', 'ip_version': 4, 'cidr': '212.114.187.192/26', 'allocation_pools': [{'start': '212.114.187.194', 'end': '212.114.187.254'}], 'gateway_ip': '212.114.187.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212.114.187.194', 'tags': [], 'project_id': '0bf20cd5a6e14e6eacd3a1ee30b6b235'}} 2025-07-10 13:22:03,105 - INFO - Created VN ctest-vn-81075028 2025-07-10 13:22:03,158 - DEBUG - VN ctest-vn-81075028 UUID is ec2872c4-aedc-4823-9fc2-07e5a56840f7 2025-07-10 13:22:03,275 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-03939430:ctest-vn-30629625, 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-03939430:ctest-vn-81075028, 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-07-10 13:22:03,571 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4787af10-6039-4696-a1ef-6e973b413ea7', 'name': 'ctest-vn-30629625', 'tenant_id': '0bf20cd5a6e14e6eacd3a1ee30b6b235', 'project_id': '0bf20cd5a6e14e6eacd3a1ee30b6b235', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['68498078-c063-42f1-8410-f372957a8c1e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03939430', 'ctest-vn-30629625'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03939430', 'ctest-policy-allow-all-80946613']], 'subnet_ipam': [{'subnet_cidr': '166.253.68.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-10 13:22:03,801 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ec2872c4-aedc-4823-9fc2-07e5a56840f7', 'name': 'ctest-vn-81075028', 'tenant_id': '0bf20cd5a6e14e6eacd3a1ee30b6b235', 'project_id': '0bf20cd5a6e14e6eacd3a1ee30b6b235', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d1fad8a6-97f0-45fc-bb16-aea956f511df'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03939430', 'ctest-vn-81075028'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03939430', 'ctest-policy-allow-all-80946613']], 'subnet_ipam': [{'subnet_cidr': '212.114.187.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-10 13:22:03,954 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-10 13:22:04,255 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-10 13:22:04,282 - DEBUG - Requesting: http://10.0.0.50:8082/domain/556e160f-2b96-45b2-8145-5bc5232fad97 2025-07-10 13:22:04,295 - DEBUG - Requesting: http://10.0.0.50:8082/project/0bf20cd5-a6e1-4e6e-acd3-a1ee30b6b235 2025-07-10 13:22:04,370 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4787af10-6039-4696-a1ef-6e973b413ea7 2025-07-10 13:22:04,382 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4787af10-6039-4696-a1ef-6e973b413ea7 2025-07-10 13:22:04,392 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/38113eab-6bc9-4706-b862-042afedc7689 2025-07-10 13:22:04,400 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/38113eab-6bc9-4706-b862-042afedc7689 2025-07-10 13:22:04,406 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d0f0dce7-c868-401b-ae02-120af3863948 2025-07-10 13:22:04,412 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-10 13:22:04,413 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4787af10-6039-4696-a1ef-6e973b413ea7 2025-07-10 13:22:04,421 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/38113eab-6bc9-4706-b862-042afedc7689 2025-07-10 13:22:04,435 - INFO - Verified VN network id 8 for VN 4787af10-6039-4696-a1ef-6e973b413ea7 2025-07-10 13:22:04,435 - INFO - Verifications in API Server for VN ctest-vn-30629625 passed 2025-07-10 13:22:04,435 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4787af10-6039-4696-a1ef-6e973b413ea7 2025-07-10 13:22:04,445 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/38113eab-6bc9-4706-b862-042afedc7689 2025-07-10 13:22:04,452 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/38113eab-6bc9-4706-b862-042afedc7689 2025-07-10 13:22:04,458 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d0f0dce7-c868-401b-ae02-120af3863948 2025-07-10 13:22:04,469 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03939430:ctest-vn-30629625', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03939430', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5154280783417525910', 'uuid-lslong': '11668666755353493159'}, 'enable': 'true', 'created': '2025-07-10T13:22:02', 'last-modified': '2025-07-10T13:22:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.923911'} 2025-07-10 13:22:04,476 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-10 13:22:04,476 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30629625 passed 2025-07-10 13:22:04,476 - DEBUG - ====Verifying policy data for ctest-vn-30629625 in API_Server ====== 2025-07-10 13:22:04,476 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-10 13:22:04,482 - DEBUG - Requesting: http://10.0.0.50:8082/domain/556e160f-2b96-45b2-8145-5bc5232fad97 2025-07-10 13:22:04,493 - DEBUG - Requesting: http://10.0.0.50:8082/project/0bf20cd5-a6e1-4e6e-acd3-a1ee30b6b235 2025-07-10 13:22:04,563 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4787af10-6039-4696-a1ef-6e973b413ea7 2025-07-10 13:22:04,573 - DEBUG - ==>Verifying data for policy with id: 326d2d58-1cd9-4bfa-9bf1-72ca62f0dc8a, fqn: ['default-domain', 'ctest-TestBasicPolicy-03939430', 'ctest-policy-allow-all-80946613'] 2025-07-10 13:22:04,573 - INFO - VN ctest-vn-30629625 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-10 13:22:04,573 - DEBUG - Verifying the vn in opserver 2025-07-10 13:22:04,573 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03939430:ctest-vn-30629625 virtual network link through opserver 10.0.0.50 2025-07-10 13:22:04,573 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-10 13:22:04,868 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-10 13:22:04,923 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03939430:ctest-vn-30629625', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03939430:ctest-vn-30629625?flat'} 2025-07-10 13:22:04,923 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03939430:ctest-vn-30629625 is found in opserver 2025-07-10 13:22:04,934 - DEBUG - Do not have enough data to verify VN in agent 2025-07-10 13:22:04,939 - DEBUG - VRF ids for VN ctest-vn-30629625: {} 2025-07-10 13:22:04,939 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-10 13:22:04,946 - DEBUG - Requesting: http://10.0.0.50:8082/domain/556e160f-2b96-45b2-8145-5bc5232fad97 2025-07-10 13:22:04,958 - DEBUG - Requesting: http://10.0.0.50:8082/project/0bf20cd5-a6e1-4e6e-acd3-a1ee30b6b235 2025-07-10 13:22:05,027 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ec2872c4-aedc-4823-9fc2-07e5a56840f7 2025-07-10 13:22:05,040 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ec2872c4-aedc-4823-9fc2-07e5a56840f7 2025-07-10 13:22:05,050 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3747acdc-f147-485d-b185-33018ceefc85 2025-07-10 13:22:05,058 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3747acdc-f147-485d-b185-33018ceefc85 2025-07-10 13:22:05,065 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/193550ec-3fd0-461d-8ab2-99c7d79f9f7b 2025-07-10 13:22:05,071 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-10 13:22:05,072 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ec2872c4-aedc-4823-9fc2-07e5a56840f7 2025-07-10 13:22:05,081 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3747acdc-f147-485d-b185-33018ceefc85 2025-07-10 13:22:05,096 - INFO - Verified VN network id 9 for VN ec2872c4-aedc-4823-9fc2-07e5a56840f7 2025-07-10 13:22:05,096 - INFO - Verifications in API Server for VN ctest-vn-81075028 passed 2025-07-10 13:22:05,096 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ec2872c4-aedc-4823-9fc2-07e5a56840f7 2025-07-10 13:22:05,106 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3747acdc-f147-485d-b185-33018ceefc85 2025-07-10 13:22:05,114 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3747acdc-f147-485d-b185-33018ceefc85 2025-07-10 13:22:05,121 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/193550ec-3fd0-461d-8ab2-99c7d79f9f7b 2025-07-10 13:22:05,134 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03939430:ctest-vn-81075028', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03939430', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17016977381092247587', 'uuid-lslong': '11511772280416387319'}, 'enable': 'true', 'created': '2025-07-10T13:22:02', 'last-modified': '2025-07-10T13:22:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.351695'} 2025-07-10 13:22:05,140 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-10 13:22:05,140 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81075028 passed 2025-07-10 13:22:05,141 - DEBUG - ====Verifying policy data for ctest-vn-81075028 in API_Server ====== 2025-07-10 13:22:05,141 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-10 13:22:05,147 - DEBUG - Requesting: http://10.0.0.50:8082/domain/556e160f-2b96-45b2-8145-5bc5232fad97 2025-07-10 13:22:05,159 - DEBUG - Requesting: http://10.0.0.50:8082/project/0bf20cd5-a6e1-4e6e-acd3-a1ee30b6b235 2025-07-10 13:22:05,232 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ec2872c4-aedc-4823-9fc2-07e5a56840f7 2025-07-10 13:22:05,243 - DEBUG - ==>Verifying data for policy with id: 326d2d58-1cd9-4bfa-9bf1-72ca62f0dc8a, fqn: ['default-domain', 'ctest-TestBasicPolicy-03939430', 'ctest-policy-allow-all-80946613'] 2025-07-10 13:22:05,243 - INFO - VN ctest-vn-81075028 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-10 13:22:05,243 - DEBUG - Verifying the vn in opserver 2025-07-10 13:22:05,243 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03939430:ctest-vn-81075028 virtual network link through opserver 10.0.0.50 2025-07-10 13:22:05,243 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-10 13:22:05,258 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03939430:ctest-vn-81075028', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03939430:ctest-vn-81075028?flat'} 2025-07-10 13:22:05,258 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03939430:ctest-vn-81075028 is found in opserver 2025-07-10 13:22:05,272 - DEBUG - Do not have enough data to verify VN in agent 2025-07-10 13:22:05,279 - DEBUG - VRF ids for VN ctest-vn-81075028: {} 2025-07-10 13:22:05,344 - DEBUG - Services list from nova: [, , ] 2025-07-10 13:22:06,347 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3626-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3626-1) 2025-07-10 13:22:07,560 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3626-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3626-1) 2025-07-10 13:22:07,561 - INFO - Waiting for VM ctest-TestBasicPolicy-03939430-53293502 to be up.. 2025-07-10 13:22:07,633 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-10 13:22:12,724 - DEBUG - VM is in ACTIVE state now 2025-07-10 13:22:12,724 - INFO - VM name : ctest-TestBasicPolicy-03939430-53293502 2025-07-10 13:22:12,817 - DEBUG - VM ctest-TestBasicPolicy-03939430-53293502 ID is 7c63a30f-0e40-443c-84dc-7eb4eff3acd5 2025-07-10 13:22:12,840 - DEBUG - VM ctest-TestBasicPolicy-03939430-53293502 launched on Node cn-jenkins-deploy-platform-ansible-os-3626-1 2025-07-10 13:22:12,935 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/7c63a30f-0e40-443c-84dc-7eb4eff3acd5 2025-07-10 13:22:12,948 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/33f3ea9b-499a-47d2-bbe3-ed7b0ee7a96a 2025-07-10 13:22:16,205 - 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 1011ms') 2025-07-10 13:22:16,205 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-03939430-53293502 failed! 2025-07-10 13:22:16,262 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-03939430:ctest-vn-30629625 is 166.253.68.193 and allocation pool is NOT set 2025-07-10 13:22:18,317 - 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=9.21 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.848 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.848/5.030/9.212/4.182 ms') 2025-07-10 13:22:18,317 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-03939430-53293502 passed 2025-07-10 13:22:18,470 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-10 13:22:18,470 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-03939430-53293502, IP 166.253.68.195, Port 22 2025-07-10 13:22:18,626 - DEBUG - VM ctest-TestBasicPolicy-03939430-53293502 is ready for SSH connections 2025-07-10 13:22:18,626 - INFO - Waiting for VM ctest-TestBasicPolicy-03939430-35997264 to be up.. 2025-07-10 13:22:18,701 - DEBUG - VM is in ACTIVE state now 2025-07-10 13:22:18,701 - INFO - VM name : ctest-TestBasicPolicy-03939430-35997264 2025-07-10 13:22:18,773 - DEBUG - VM ctest-TestBasicPolicy-03939430-35997264 ID is 58a70e5e-3bd1-40d5-9654-230e3254d493 2025-07-10 13:22:18,773 - DEBUG - VM ctest-TestBasicPolicy-03939430-35997264 launched on Node cn-jenkins-deploy-platform-ansible-os-3626-1 2025-07-10 13:22:18,842 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/58a70e5e-3bd1-40d5-9654-230e3254d493 2025-07-10 13:22:18,850 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/1e997962-ca16-40f0-99d3-57bb83044710 2025-07-10 13:22:20,098 - 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.02 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.588 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.588/1.802/3.016/1.214 ms') 2025-07-10 13:22:20,098 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-03939430-35997264 passed 2025-07-10 13:22:20,254 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-10 13:22:20,254 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-03939430-35997264, IP 212.114.187.195, Port 22 2025-07-10 13:22:20,414 - DEBUG - VM ctest-TestBasicPolicy-03939430-35997264 is ready for SSH connections 2025-07-10 13:22:20,414 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-10 13:22:20,414 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 212.114.187.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-07-10 13:22:20,414 - DEBUG - ping -s 56 -c 3 -W 1 212.114.187.195 2025-07-10 13:22:24,366 - DEBUG - PING 212.114.187.195 (212.114.187.195): 56 data bytes 64 bytes from 212.114.187.195: seq=0 ttl=63 time=3.301 ms 64 bytes from 212.114.187.195: seq=1 ttl=63 time=0.832 ms 64 bytes from 212.114.187.195: seq=2 ttl=63 time=0.937 ms --- 212.114.187.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.832/1.690/3.301 ms 2025-07-10 13:22:24,366 - INFO - Ping to IP 212.114.187.195 from VM ctest-TestBasicPolicy-03939430-53293502 passed 2025-07-10 13:22:24,554 - DEBUG - Policy Update Response {"network-policy": {"uuid": "326d2d58-1cd9-4bfa-9bf1-72ca62f0dc8a", "href": "http://10.0.0.50:8082/network-policy/326d2d58-1cd9-4bfa-9bf1-72ca62f0dc8a"}} 2025-07-10 13:22:24,554 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-10 13:22:24,554 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 212.114.187.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-07-10 13:22:24,554 - DEBUG - ping -s 56 -c 3 -W 1 212.114.187.195 2025-07-10 13:22:27,761 - DEBUG - PING 212.114.187.195 (212.114.187.195): 56 data bytes --- 212.114.187.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-07-10 13:22:27,761 - WARNING - Ping to IP 212.114.187.195 from VM ctest-TestBasicPolicy-03939430-53293502 failed 2025-07-10 13:22:27,761 - INFO - Deleting VM ctest-TestBasicPolicy-03939430-35997264 2025-07-10 13:22:27,826 - INFO - Deleting VM ctest-TestBasicPolicy-03939430-53293502 2025-07-10 13:22:28,275 - INFO - Deleted policy ctest-policy-allow-all-80946613 2025-07-10 13:22:28,275 - INFO - Deleting VN ctest-vn-81075028 2025-07-10 13:22:28,318 - DEBUG - VN ec2872c4-aedc-4823-9fc2-07e5a56840f7 still in use: Unable to complete operation on network ec2872c4-aedc-4823-9fc2-07e5a56840f7. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0a1a7246-3d3a-4a14-9796-9f98fd38fd41'] 2025-07-10 13:22:28,318 - WARNING - Deleting VN ctest-vn-81075028 failed..Will retry 2025-07-10 13:22:30,419 - DEBUG - Response for deleting network () 2025-07-10 13:22:30,419 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3747acdc-f147-485d-b185-33018ceefc85 2025-07-10 13:22:30,425 - DEBUG - Response Code: 404 2025-07-10 13:22:30,425 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-10 13:22:30,431 - DEBUG - Requesting: http://10.0.0.50:8082/domain/556e160f-2b96-45b2-8145-5bc5232fad97 2025-07-10 13:22:30,488 - DEBUG - Requesting: http://10.0.0.50:8082/project/0bf20cd5-a6e1-4e6e-acd3-a1ee30b6b235 2025-07-10 13:22:30,559 - INFO - Validated that VN ctest-vn-81075028 is not found in API Server 2025-07-10 13:22:30,570 - DEBUG - VN ctest-vn-81075028 is not present in Agent 10.0.0.50 2025-07-10 13:22:30,570 - INFO - Validated that VN ctest-vn-81075028 is not in any agent 2025-07-10 13:22:30,585 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-81075028 info 2025-07-10 13:22:30,585 - INFO - Deleting VN ctest-vn-30629625 2025-07-10 13:22:30,689 - DEBUG - Response for deleting network () 2025-07-10 13:22:30,690 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/38113eab-6bc9-4706-b862-042afedc7689 2025-07-10 13:22:30,695 - DEBUG - Response Code: 404 2025-07-10 13:22:30,695 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-10 13:22:30,702 - DEBUG - Requesting: http://10.0.0.50:8082/domain/556e160f-2b96-45b2-8145-5bc5232fad97 2025-07-10 13:22:30,756 - DEBUG - Requesting: http://10.0.0.50:8082/project/0bf20cd5-a6e1-4e6e-acd3-a1ee30b6b235 2025-07-10 13:22:30,832 - INFO - Validated that VN ctest-vn-30629625 is not found in API Server 2025-07-10 13:22:30,843 - DEBUG - VN ctest-vn-30629625 is not present in Agent 10.0.0.50 2025-07-10 13:22:30,843 - INFO - Validated that VN ctest-vn-30629625 is not in any agent 2025-07-10 13:22:30,857 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-30629625 info 2025-07-10 13:22:31,115 - DEBUG - No XMPP flaps were noticed during the test
2025-07-10 13:22:31,116 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2025-07-10 13:22:31,116 - INFO - -------------------------------------------------------------------------------- 2025-07-10 13:22:31,835 - INFO - Deleted project: ctest-TestBasicPolicy-03939430, ID : 0bf20cd5-a6e1-4e6e-acd3-a1ee30b6b235