2024-11-06 13:15:51,192 - INFO - Domain Default found not creating 2024-11-06 13:15:51,359 - INFO - Project ctest-TestBasicPolicy-97730954 not found, creating it 2024-11-06 13:15:51,860 - INFO - Created Project:ctest-TestBasicPolicy-97730954, ID : 40773a5a-14e5-475f-985d-465f04405bdf 2024-11-06 13:15:53,369 - INFO - ================================================================================ 2024-11-06 13:15:53,370 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-06 13:15:53,370 - 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 2024-11-06 13:15:53,624 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.20': '0'}} with 2024-11-06 13:15:53,624 - INFO - Initial checks done. Running the testcase now 2024-11-06 13:15:53,624 - INFO - 2024-11-06 13:15:54,201 - DEBUG - Response for create_network : {'network': {'id': 'be09f67c-c4d0-4200-ba47-bedb53b169e5', 'name': 'ctest-vn-53918610', 'tenant_id': '40773a5a14e5475f985d465f04405bdf', 'project_id': '40773a5a14e5475f985d465f04405bdf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97730954', 'ctest-vn-53918610'], 'port_security_enabled': True, 'description': ''}} 2024-11-06 13:15:54,379 - DEBUG - Response for create_subnet : {'subnet': {'id': '083b1b2f-e4d7-4596-8f00-d6cef87947b6', 'name': '', 'tenant_id': '40773a5a14e5475f985d465f04405bdf', 'network_id': 'be09f67c-c4d0-4200-ba47-bedb53b169e5', 'ip_version': 4, 'cidr': '187.208.239.192/26', 'allocation_pools': [{'start': '187.208.239.194', 'end': '187.208.239.254'}], 'gateway_ip': '187.208.239.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.208.239.194', 'tags': [], 'project_id': '40773a5a14e5475f985d465f04405bdf'}} 2024-11-06 13:15:54,399 - INFO - Created VN ctest-vn-53918610 2024-11-06 13:15:54,458 - DEBUG - VN ctest-vn-53918610 UUID is be09f67c-c4d0-4200-ba47-bedb53b169e5 2024-11-06 13:15:54,781 - DEBUG - Response for create_network : {'network': {'id': '7e3fef03-2b35-4bd6-89f9-516a0568413d', 'name': 'ctest-vn-67069990', 'tenant_id': '40773a5a14e5475f985d465f04405bdf', 'project_id': '40773a5a14e5475f985d465f04405bdf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97730954', 'ctest-vn-67069990'], 'port_security_enabled': True, 'description': ''}} 2024-11-06 13:15:54,947 - DEBUG - Response for create_subnet : {'subnet': {'id': '90f0b74c-5362-41d3-8726-98326c30f7b9', 'name': '', 'tenant_id': '40773a5a14e5475f985d465f04405bdf', 'network_id': '7e3fef03-2b35-4bd6-89f9-516a0568413d', 'ip_version': 4, 'cidr': '170.53.153.0/26', 'allocation_pools': [{'start': '170.53.153.2', 'end': '170.53.153.62'}], 'gateway_ip': '170.53.153.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.53.153.2', 'tags': [], 'project_id': '40773a5a14e5475f985d465f04405bdf'}} 2024-11-06 13:15:54,967 - INFO - Created VN ctest-vn-67069990 2024-11-06 13:15:55,026 - DEBUG - VN ctest-vn-67069990 UUID is 7e3fef03-2b35-4bd6-89f9-516a0568413d 2024-11-06 13:15:55,148 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-97730954:ctest-vn-53918610, 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-97730954:ctest-vn-67069990, 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] 2024-11-06 13:15:55,463 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'be09f67c-c4d0-4200-ba47-bedb53b169e5', 'name': 'ctest-vn-53918610', 'tenant_id': '40773a5a14e5475f985d465f04405bdf', 'project_id': '40773a5a14e5475f985d465f04405bdf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['083b1b2f-e4d7-4596-8f00-d6cef87947b6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97730954', 'ctest-vn-53918610'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97730954', 'ctest-policy-allow-all-04843922']], 'subnet_ipam': [{'subnet_cidr': '187.208.239.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-06 13:15:55,745 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7e3fef03-2b35-4bd6-89f9-516a0568413d', 'name': 'ctest-vn-67069990', 'tenant_id': '40773a5a14e5475f985d465f04405bdf', 'project_id': '40773a5a14e5475f985d465f04405bdf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['90f0b74c-5362-41d3-8726-98326c30f7b9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97730954', 'ctest-vn-67069990'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97730954', 'ctest-policy-allow-all-04843922']], 'subnet_ipam': [{'subnet_cidr': '170.53.153.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-06 13:15:55,898 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-11-06 13:15:56,199 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-11-06 13:15:56,229 - DEBUG - Requesting: http://10.0.0.22:8082/domain/793d1171-f4cf-445e-9ae7-1ac3d8dfd7b1 2024-11-06 13:15:56,245 - DEBUG - Requesting: http://10.0.0.22:8082/project/40773a5a-14e5-475f-985d-465f04405bdf 2024-11-06 13:15:56,327 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/be09f67c-c4d0-4200-ba47-bedb53b169e5 2024-11-06 13:15:56,342 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/be09f67c-c4d0-4200-ba47-bedb53b169e5 2024-11-06 13:15:56,356 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f0a7a672-ba2c-4446-b8ff-a134110d7851 2024-11-06 13:15:56,364 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f0a7a672-ba2c-4446-b8ff-a134110d7851 2024-11-06 13:15:56,373 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/faeca86e-d250-4b22-ae41-d9eea6c239ff 2024-11-06 13:15:56,381 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-06 13:15:56,381 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/be09f67c-c4d0-4200-ba47-bedb53b169e5 2024-11-06 13:15:56,394 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f0a7a672-ba2c-4446-b8ff-a134110d7851 2024-11-06 13:15:56,412 - INFO - Verified VN network id 7 for VN be09f67c-c4d0-4200-ba47-bedb53b169e5 2024-11-06 13:15:56,412 - INFO - Verifications in API Server for VN ctest-vn-53918610 passed 2024-11-06 13:15:56,412 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/be09f67c-c4d0-4200-ba47-bedb53b169e5 2024-11-06 13:15:56,429 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f0a7a672-ba2c-4446-b8ff-a134110d7851 2024-11-06 13:15:56,438 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f0a7a672-ba2c-4446-b8ff-a134110d7851 2024-11-06 13:15:56,447 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/faeca86e-d250-4b22-ae41-d9eea6c239ff 2024-11-06 13:15:56,459 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97730954:ctest-vn-53918610', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97730954', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13693747157735064064', 'uuid-lslong': '13422907063612303845'}, 'enable': 'true', 'created': '2024-11-06T13:15:54', 'last-modified': '2024-11-06T13:15:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.024585'} 2024-11-06 13:15:56,466 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-06 13:15:56,466 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53918610 passed 2024-11-06 13:15:56,466 - DEBUG - ====Verifying policy data for ctest-vn-53918610 in API_Server ====== 2024-11-06 13:15:56,466 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-11-06 13:15:56,472 - DEBUG - Requesting: http://10.0.0.22:8082/domain/793d1171-f4cf-445e-9ae7-1ac3d8dfd7b1 2024-11-06 13:15:56,485 - DEBUG - Requesting: http://10.0.0.22:8082/project/40773a5a-14e5-475f-985d-465f04405bdf 2024-11-06 13:15:56,562 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/be09f67c-c4d0-4200-ba47-bedb53b169e5 2024-11-06 13:15:56,575 - DEBUG - ==>Verifying data for policy with id: 65e5b67e-2ecb-42cb-a5d1-092399a48c48, fqn: ['default-domain', 'ctest-TestBasicPolicy-97730954', 'ctest-policy-allow-all-04843922'] 2024-11-06 13:15:56,575 - INFO - VN ctest-vn-53918610 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-06 13:15:56,575 - DEBUG - Verifying the vn in opserver 2024-11-06 13:15:56,575 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97730954:ctest-vn-53918610 virtual network link through opserver 10.0.0.22 2024-11-06 13:15:56,576 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2024-11-06 13:15:56,870 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2024-11-06 13:15:56,996 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97730954:ctest-vn-53918610', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97730954:ctest-vn-53918610?flat'} 2024-11-06 13:15:56,996 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97730954:ctest-vn-53918610 is found in opserver 2024-11-06 13:15:57,007 - DEBUG - Do not have enough data to verify VN in agent 2024-11-06 13:15:57,014 - DEBUG - VRF ids for VN ctest-vn-53918610: {} 2024-11-06 13:15:57,014 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-11-06 13:15:57,021 - DEBUG - Requesting: http://10.0.0.22:8082/domain/793d1171-f4cf-445e-9ae7-1ac3d8dfd7b1 2024-11-06 13:15:57,041 - DEBUG - Requesting: http://10.0.0.22:8082/project/40773a5a-14e5-475f-985d-465f04405bdf 2024-11-06 13:15:57,132 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7e3fef03-2b35-4bd6-89f9-516a0568413d 2024-11-06 13:15:57,153 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7e3fef03-2b35-4bd6-89f9-516a0568413d 2024-11-06 13:15:57,166 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/693900cb-825b-4970-a7ad-2d9adf4fd1f3 2024-11-06 13:15:57,176 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/693900cb-825b-4970-a7ad-2d9adf4fd1f3 2024-11-06 13:15:57,185 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/2c43aa07-d340-4b79-ad9d-6f0ac18b9a4e 2024-11-06 13:15:57,193 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-06 13:15:57,193 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7e3fef03-2b35-4bd6-89f9-516a0568413d 2024-11-06 13:15:57,209 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/693900cb-825b-4970-a7ad-2d9adf4fd1f3 2024-11-06 13:15:57,232 - INFO - Verified VN network id 8 for VN 7e3fef03-2b35-4bd6-89f9-516a0568413d 2024-11-06 13:15:57,233 - INFO - Verifications in API Server for VN ctest-vn-67069990 passed 2024-11-06 13:15:57,233 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7e3fef03-2b35-4bd6-89f9-516a0568413d 2024-11-06 13:15:57,248 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/693900cb-825b-4970-a7ad-2d9adf4fd1f3 2024-11-06 13:15:57,257 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/693900cb-825b-4970-a7ad-2d9adf4fd1f3 2024-11-06 13:15:57,266 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/2c43aa07-d340-4b79-ad9d-6f0ac18b9a4e 2024-11-06 13:15:57,280 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97730954:ctest-vn-67069990', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97730954', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9097252569200544726', 'uuid-lslong': '9942067168196182333'}, 'enable': 'true', 'created': '2024-11-06T13:15:54', 'last-modified': '2024-11-06T13:15:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.602432'} 2024-11-06 13:15:57,289 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-06 13:15:57,289 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67069990 passed 2024-11-06 13:15:57,289 - DEBUG - ====Verifying policy data for ctest-vn-67069990 in API_Server ====== 2024-11-06 13:15:57,289 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-11-06 13:15:57,296 - DEBUG - Requesting: http://10.0.0.22:8082/domain/793d1171-f4cf-445e-9ae7-1ac3d8dfd7b1 2024-11-06 13:15:57,309 - DEBUG - Requesting: http://10.0.0.22:8082/project/40773a5a-14e5-475f-985d-465f04405bdf 2024-11-06 13:15:57,409 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7e3fef03-2b35-4bd6-89f9-516a0568413d 2024-11-06 13:15:57,424 - DEBUG - ==>Verifying data for policy with id: 65e5b67e-2ecb-42cb-a5d1-092399a48c48, fqn: ['default-domain', 'ctest-TestBasicPolicy-97730954', 'ctest-policy-allow-all-04843922'] 2024-11-06 13:15:57,424 - INFO - VN ctest-vn-67069990 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-06 13:15:57,424 - DEBUG - Verifying the vn in opserver 2024-11-06 13:15:57,424 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97730954:ctest-vn-67069990 virtual network link through opserver 10.0.0.22 2024-11-06 13:15:57,424 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2024-11-06 13:15:57,435 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97730954:ctest-vn-67069990', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97730954:ctest-vn-67069990?flat'} 2024-11-06 13:15:57,436 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97730954:ctest-vn-67069990 is found in opserver 2024-11-06 13:15:57,446 - DEBUG - Do not have enough data to verify VN in agent 2024-11-06 13:15:57,453 - DEBUG - VRF ids for VN ctest-vn-67069990: {} 2024-11-06 13:15:57,510 - DEBUG - Services list from nova: [, , ] 2024-11-06 13:15:58,669 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2202-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2202-1) 2024-11-06 13:15:59,863 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2202-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2202-1) 2024-11-06 13:15:59,863 - INFO - Waiting for VM ctest-TestBasicPolicy-97730954-20787568 to be up.. 2024-11-06 13:15:59,973 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-06 13:16:05,055 - DEBUG - VM is in ACTIVE state now 2024-11-06 13:16:05,055 - INFO - VM name : ctest-TestBasicPolicy-97730954-20787568 2024-11-06 13:16:05,139 - DEBUG - VM ctest-TestBasicPolicy-97730954-20787568 ID is 149b124b-96b4-4016-88c2-26b20a342def 2024-11-06 13:16:05,158 - DEBUG - VM ctest-TestBasicPolicy-97730954-20787568 launched on Node cn-jenkins-deploy-platform-ansible-os-2202-1 2024-11-06 13:16:05,242 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/149b124b-96b4-4016-88c2-26b20a342def 2024-11-06 13:16:05,252 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/fa7ccfe0-47fa-42a4-b228-05efa26f260c 2024-11-06 13:16:08,548 - 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') 2024-11-06 13:16:08,549 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-97730954-20787568 failed! 2024-11-06 13:16:08,610 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-97730954:ctest-vn-53918610 is 187.208.239.193 and allocation pool is NOT set 2024-11-06 13:16:10,675 - 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=5.43 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.568 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.568/2.998/5.429/2.430 ms') 2024-11-06 13:16:10,675 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-97730954-20787568 passed 2024-11-06 13:16:10,834 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-06 13:16:10,834 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-97730954-20787568, IP 187.208.239.195, Port 22 2024-11-06 13:16:10,992 - DEBUG - VM ctest-TestBasicPolicy-97730954-20787568 is ready for SSH connections 2024-11-06 13:16:10,992 - INFO - Waiting for VM ctest-TestBasicPolicy-97730954-67927179 to be up.. 2024-11-06 13:16:11,081 - DEBUG - VM is in ACTIVE state now 2024-11-06 13:16:11,081 - INFO - VM name : ctest-TestBasicPolicy-97730954-67927179 2024-11-06 13:16:11,170 - DEBUG - VM ctest-TestBasicPolicy-97730954-67927179 ID is 738d23e6-989d-48b5-8fab-6446a303545d 2024-11-06 13:16:11,170 - DEBUG - VM ctest-TestBasicPolicy-97730954-67927179 launched on Node cn-jenkins-deploy-platform-ansible-os-2202-1 2024-11-06 13:16:11,255 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/738d23e6-989d-48b5-8fab-6446a303545d 2024-11-06 13:16:11,265 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/6a5dffb7-6e4b-4a5d-9d94-e32410c4744e 2024-11-06 13:16:12,518 - 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.39 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.438 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.438/1.914/3.390/1.476 ms') 2024-11-06 13:16:12,518 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-97730954-67927179 passed 2024-11-06 13:16:12,686 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-06 13:16:12,686 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-97730954-67927179, IP 170.53.153.3, Port 22 2024-11-06 13:16:12,856 - DEBUG - VM ctest-TestBasicPolicy-97730954-67927179 is ready for SSH connections 2024-11-06 13:16:12,856 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-06 13:16:12,856 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 170.53.153.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2024-11-06 13:16:12,856 - DEBUG - ping -s 56 -c 3 -W 1 170.53.153.3 2024-11-06 13:16:16,864 - DEBUG - PING 170.53.153.3 (170.53.153.3): 56 data bytes 64 bytes from 170.53.153.3: seq=0 ttl=63 time=3.961 ms 64 bytes from 170.53.153.3: seq=1 ttl=63 time=1.075 ms 64 bytes from 170.53.153.3: seq=2 ttl=63 time=0.931 ms --- 170.53.153.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.931/1.989/3.961 ms 2024-11-06 13:16:16,864 - INFO - Ping to IP 170.53.153.3 from VM ctest-TestBasicPolicy-97730954-20787568 passed 2024-11-06 13:16:17,046 - DEBUG - Policy Update Response {"network-policy": {"uuid": "65e5b67e-2ecb-42cb-a5d1-092399a48c48", "href": "http://10.0.0.22:8082/network-policy/65e5b67e-2ecb-42cb-a5d1-092399a48c48"}} 2024-11-06 13:16:17,046 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-06 13:16:17,046 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 170.53.153.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2024-11-06 13:16:17,046 - DEBUG - ping -s 56 -c 3 -W 1 170.53.153.3 2024-11-06 13:16:20,244 - DEBUG - PING 170.53.153.3 (170.53.153.3): 56 data bytes 64 bytes from 170.53.153.3: seq=0 ttl=63 time=1.335 ms --- 170.53.153.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.335/1.335/1.335 ms 2024-11-06 13:16:20,244 - WARNING - Ping to IP 170.53.153.3 from VM ctest-TestBasicPolicy-97730954-20787568 failed 2024-11-06 13:16:20,244 - INFO - Deleting VM ctest-TestBasicPolicy-97730954-67927179 2024-11-06 13:16:20,313 - INFO - Deleting VM ctest-TestBasicPolicy-97730954-20787568 2024-11-06 13:16:20,714 - INFO - Deleted policy ctest-policy-allow-all-04843922 2024-11-06 13:16:20,714 - INFO - Deleting VN ctest-vn-67069990 2024-11-06 13:16:20,755 - DEBUG - VN 7e3fef03-2b35-4bd6-89f9-516a0568413d still in use: Unable to complete operation on network 7e3fef03-2b35-4bd6-89f9-516a0568413d. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d4e2b404-9073-462e-966c-cf238afadb7e'] 2024-11-06 13:16:20,755 - WARNING - Deleting VN ctest-vn-67069990 failed..Will retry 2024-11-06 13:16:22,869 - DEBUG - Response for deleting network () 2024-11-06 13:16:22,869 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/693900cb-825b-4970-a7ad-2d9adf4fd1f3 2024-11-06 13:16:22,879 - DEBUG - Response Code: 404 2024-11-06 13:16:22,879 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-11-06 13:16:22,887 - DEBUG - Requesting: http://10.0.0.22:8082/domain/793d1171-f4cf-445e-9ae7-1ac3d8dfd7b1 2024-11-06 13:16:22,940 - DEBUG - Requesting: http://10.0.0.22:8082/project/40773a5a-14e5-475f-985d-465f04405bdf 2024-11-06 13:16:23,021 - INFO - Validated that VN ctest-vn-67069990 is not found in API Server 2024-11-06 13:16:23,031 - DEBUG - VN ctest-vn-67069990 is not present in Agent 10.0.0.22 2024-11-06 13:16:23,031 - INFO - Validated that VN ctest-vn-67069990 is not in any agent 2024-11-06 13:16:23,048 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-67069990 info 2024-11-06 13:16:23,048 - INFO - Deleting VN ctest-vn-53918610 2024-11-06 13:16:23,165 - DEBUG - Response for deleting network () 2024-11-06 13:16:23,166 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f0a7a672-ba2c-4446-b8ff-a134110d7851 2024-11-06 13:16:23,172 - DEBUG - Response Code: 404 2024-11-06 13:16:23,172 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-11-06 13:16:23,179 - DEBUG - Requesting: http://10.0.0.22:8082/domain/793d1171-f4cf-445e-9ae7-1ac3d8dfd7b1 2024-11-06 13:16:23,237 - DEBUG - Requesting: http://10.0.0.22:8082/project/40773a5a-14e5-475f-985d-465f04405bdf 2024-11-06 13:16:23,317 - INFO - Validated that VN ctest-vn-53918610 is not found in API Server 2024-11-06 13:16:23,327 - DEBUG - VN ctest-vn-53918610 is not present in Agent 10.0.0.22 2024-11-06 13:16:23,328 - INFO - Validated that VN ctest-vn-53918610 is not in any agent 2024-11-06 13:16:23,344 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-53918610 info 2024-11-06 13:16:23,599 - DEBUG - No XMPP flaps were noticed during the test
2024-11-06 13:16:23,599 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-11-06 13:16:23,599 - INFO - -------------------------------------------------------------------------------- 2024-11-06 13:16:24,336 - INFO - Deleted project: ctest-TestBasicPolicy-97730954, ID : 40773a5a-14e5-475f-985d-465f04405bdf