2024-11-08 14:29:18,199 - INFO - Domain Default found not creating 2024-11-08 14:29:18,374 - INFO - Project ctest-TestBasicPolicy-57943653 not found, creating it 2024-11-08 14:29:18,894 - INFO - Created Project:ctest-TestBasicPolicy-57943653, ID : 8ff65fd2-b20d-4764-a85f-8aedd0689336 2024-11-08 14:29:20,568 - INFO - ================================================================================ 2024-11-08 14:29:20,568 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-08 14:29:20,568 - 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-08 14:29:20,828 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.5': '0'}} with 2024-11-08 14:29:20,828 - INFO - Initial checks done. Running the testcase now 2024-11-08 14:29:20,829 - INFO - 2024-11-08 14:29:21,465 - DEBUG - Response for create_network : {'network': {'id': '6bfc1006-a585-4e98-8bfd-e8ae13dc9ee7', 'name': 'ctest-vn-71976182', 'tenant_id': '8ff65fd2b20d4764a85f8aedd0689336', 'project_id': '8ff65fd2b20d4764a85f8aedd0689336', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57943653', 'ctest-vn-71976182'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 14:29:21,732 - DEBUG - Response for create_subnet : {'subnet': {'id': '49e54685-719c-44c1-8229-53a1dca35a8e', 'name': '', 'tenant_id': '8ff65fd2b20d4764a85f8aedd0689336', 'network_id': '6bfc1006-a585-4e98-8bfd-e8ae13dc9ee7', 'ip_version': 4, 'cidr': '129.143.112.192/26', 'allocation_pools': [{'start': '129.143.112.194', 'end': '129.143.112.254'}], 'gateway_ip': '129.143.112.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.143.112.194', 'tags': [], 'project_id': '8ff65fd2b20d4764a85f8aedd0689336'}} 2024-11-08 14:29:21,755 - INFO - Created VN ctest-vn-71976182 2024-11-08 14:29:21,818 - DEBUG - VN ctest-vn-71976182 UUID is 6bfc1006-a585-4e98-8bfd-e8ae13dc9ee7 2024-11-08 14:29:22,150 - DEBUG - Response for create_network : {'network': {'id': 'c11146e3-e408-4fe3-90dd-af59a5221fa3', 'name': 'ctest-vn-22972727', 'tenant_id': '8ff65fd2b20d4764a85f8aedd0689336', 'project_id': '8ff65fd2b20d4764a85f8aedd0689336', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57943653', 'ctest-vn-22972727'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 14:29:22,344 - DEBUG - Response for create_subnet : {'subnet': {'id': '3d2f7ed0-a1c0-48e1-b3a7-b60c1e65998d', 'name': '', 'tenant_id': '8ff65fd2b20d4764a85f8aedd0689336', 'network_id': 'c11146e3-e408-4fe3-90dd-af59a5221fa3', 'ip_version': 4, 'cidr': '7.81.189.0/26', 'allocation_pools': [{'start': '7.81.189.2', 'end': '7.81.189.62'}], 'gateway_ip': '7.81.189.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.81.189.2', 'tags': [], 'project_id': '8ff65fd2b20d4764a85f8aedd0689336'}} 2024-11-08 14:29:22,364 - INFO - Created VN ctest-vn-22972727 2024-11-08 14:29:22,422 - DEBUG - VN ctest-vn-22972727 UUID is c11146e3-e408-4fe3-90dd-af59a5221fa3 2024-11-08 14:29:22,557 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-57943653:ctest-vn-71976182, 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-57943653:ctest-vn-22972727, 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-08 14:29:22,928 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6bfc1006-a585-4e98-8bfd-e8ae13dc9ee7', 'name': 'ctest-vn-71976182', 'tenant_id': '8ff65fd2b20d4764a85f8aedd0689336', 'project_id': '8ff65fd2b20d4764a85f8aedd0689336', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['49e54685-719c-44c1-8229-53a1dca35a8e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57943653', 'ctest-vn-71976182'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57943653', 'ctest-policy-allow-all-20686640']], 'subnet_ipam': [{'subnet_cidr': '129.143.112.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-08 14:29:23,243 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c11146e3-e408-4fe3-90dd-af59a5221fa3', 'name': 'ctest-vn-22972727', 'tenant_id': '8ff65fd2b20d4764a85f8aedd0689336', 'project_id': '8ff65fd2b20d4764a85f8aedd0689336', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3d2f7ed0-a1c0-48e1-b3a7-b60c1e65998d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57943653', 'ctest-vn-22972727'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57943653', 'ctest-policy-allow-all-20686640']], 'subnet_ipam': [{'subnet_cidr': '7.81.189.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-08 14:29:23,390 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-11-08 14:29:23,740 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-11-08 14:29:23,773 - DEBUG - Requesting: http://10.0.0.34:8082/domain/1c2e11aa-3db9-48eb-8d30-012b65578b6f 2024-11-08 14:29:23,791 - DEBUG - Requesting: http://10.0.0.34:8082/project/8ff65fd2-b20d-4764-a85f-8aedd0689336 2024-11-08 14:29:23,886 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/6bfc1006-a585-4e98-8bfd-e8ae13dc9ee7 2024-11-08 14:29:23,903 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/6bfc1006-a585-4e98-8bfd-e8ae13dc9ee7 2024-11-08 14:29:23,917 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/57efd533-840b-48a4-97a6-ceff4be1c651 2024-11-08 14:29:23,928 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/57efd533-840b-48a4-97a6-ceff4be1c651 2024-11-08 14:29:23,937 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/5dfb2daf-2fec-4e8f-a7b0-c28c16afbc18 2024-11-08 14:29:23,945 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-08 14:29:23,945 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/6bfc1006-a585-4e98-8bfd-e8ae13dc9ee7 2024-11-08 14:29:23,960 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/57efd533-840b-48a4-97a6-ceff4be1c651 2024-11-08 14:29:23,980 - INFO - Verified VN network id 8 for VN 6bfc1006-a585-4e98-8bfd-e8ae13dc9ee7 2024-11-08 14:29:23,980 - INFO - Verifications in API Server for VN ctest-vn-71976182 passed 2024-11-08 14:29:23,980 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/6bfc1006-a585-4e98-8bfd-e8ae13dc9ee7 2024-11-08 14:29:23,994 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/57efd533-840b-48a4-97a6-ceff4be1c651 2024-11-08 14:29:24,002 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/57efd533-840b-48a4-97a6-ceff4be1c651 2024-11-08 14:29:24,014 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/5dfb2daf-2fec-4e8f-a7b0-c28c16afbc18 2024-11-08 14:29:24,029 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57943653:ctest-vn-71976182', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57943653', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7781111876922199704', 'uuid-lslong': '10087474574734958311'}, 'enable': 'true', 'created': '2024-11-08T14:29:21', 'last-modified': '2024-11-08T14:29:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.134560'} 2024-11-08 14:29:24,036 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-08 14:29:24,036 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71976182 passed 2024-11-08 14:29:24,037 - DEBUG - ====Verifying policy data for ctest-vn-71976182 in API_Server ====== 2024-11-08 14:29:24,037 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-11-08 14:29:24,043 - DEBUG - Requesting: http://10.0.0.34:8082/domain/1c2e11aa-3db9-48eb-8d30-012b65578b6f 2024-11-08 14:29:24,057 - DEBUG - Requesting: http://10.0.0.34:8082/project/8ff65fd2-b20d-4764-a85f-8aedd0689336 2024-11-08 14:29:24,152 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/6bfc1006-a585-4e98-8bfd-e8ae13dc9ee7 2024-11-08 14:29:24,169 - DEBUG - ==>Verifying data for policy with id: 8794ca89-8f93-4936-88c4-425ea823dc9b, fqn: ['default-domain', 'ctest-TestBasicPolicy-57943653', 'ctest-policy-allow-all-20686640'] 2024-11-08 14:29:24,169 - INFO - VN ctest-vn-71976182 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-08 14:29:24,169 - DEBUG - Verifying the vn in opserver 2024-11-08 14:29:24,169 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57943653:ctest-vn-71976182 virtual network link through opserver 10.0.0.34 2024-11-08 14:29:24,169 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks 2024-11-08 14:29:24,526 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks 2024-11-08 14:29:24,600 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57943653:ctest-vn-71976182', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57943653:ctest-vn-71976182?flat'} 2024-11-08 14:29:24,600 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57943653:ctest-vn-71976182 is found in opserver 2024-11-08 14:29:24,612 - DEBUG - Do not have enough data to verify VN in agent 2024-11-08 14:29:24,617 - DEBUG - VRF ids for VN ctest-vn-71976182: {} 2024-11-08 14:29:24,617 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-11-08 14:29:24,623 - DEBUG - Requesting: http://10.0.0.34:8082/domain/1c2e11aa-3db9-48eb-8d30-012b65578b6f 2024-11-08 14:29:24,637 - DEBUG - Requesting: http://10.0.0.34:8082/project/8ff65fd2-b20d-4764-a85f-8aedd0689336 2024-11-08 14:29:24,723 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/c11146e3-e408-4fe3-90dd-af59a5221fa3 2024-11-08 14:29:24,740 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/c11146e3-e408-4fe3-90dd-af59a5221fa3 2024-11-08 14:29:24,756 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/66fc0ef2-cf59-4ac2-ac4d-e747c170e7d1 2024-11-08 14:29:24,767 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/66fc0ef2-cf59-4ac2-ac4d-e747c170e7d1 2024-11-08 14:29:24,777 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/2b5910b9-4d83-4ded-9096-21ca553a6803 2024-11-08 14:29:24,785 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-08 14:29:24,785 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/c11146e3-e408-4fe3-90dd-af59a5221fa3 2024-11-08 14:29:24,802 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/66fc0ef2-cf59-4ac2-ac4d-e747c170e7d1 2024-11-08 14:29:24,826 - INFO - Verified VN network id 9 for VN c11146e3-e408-4fe3-90dd-af59a5221fa3 2024-11-08 14:29:24,826 - INFO - Verifications in API Server for VN ctest-vn-22972727 passed 2024-11-08 14:29:24,826 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/c11146e3-e408-4fe3-90dd-af59a5221fa3 2024-11-08 14:29:24,841 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/66fc0ef2-cf59-4ac2-ac4d-e747c170e7d1 2024-11-08 14:29:24,851 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/66fc0ef2-cf59-4ac2-ac4d-e747c170e7d1 2024-11-08 14:29:24,863 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/2b5910b9-4d83-4ded-9096-21ca553a6803 2024-11-08 14:29:24,880 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57943653:ctest-vn-22972727', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57943653', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13911978668521443299', 'uuid-lslong': '10438692310872104867'}, 'enable': 'true', 'created': '2024-11-08T14:29:22', 'last-modified': '2024-11-08T14:29:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.715266'} 2024-11-08 14:29:24,887 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-08 14:29:24,888 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22972727 passed 2024-11-08 14:29:24,888 - DEBUG - ====Verifying policy data for ctest-vn-22972727 in API_Server ====== 2024-11-08 14:29:24,888 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-11-08 14:29:24,895 - DEBUG - Requesting: http://10.0.0.34:8082/domain/1c2e11aa-3db9-48eb-8d30-012b65578b6f 2024-11-08 14:29:24,909 - DEBUG - Requesting: http://10.0.0.34:8082/project/8ff65fd2-b20d-4764-a85f-8aedd0689336 2024-11-08 14:29:25,005 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/c11146e3-e408-4fe3-90dd-af59a5221fa3 2024-11-08 14:29:25,020 - DEBUG - ==>Verifying data for policy with id: 8794ca89-8f93-4936-88c4-425ea823dc9b, fqn: ['default-domain', 'ctest-TestBasicPolicy-57943653', 'ctest-policy-allow-all-20686640'] 2024-11-08 14:29:25,020 - INFO - VN ctest-vn-22972727 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-08 14:29:25,020 - DEBUG - Verifying the vn in opserver 2024-11-08 14:29:25,020 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57943653:ctest-vn-22972727 virtual network link through opserver 10.0.0.34 2024-11-08 14:29:25,020 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks 2024-11-08 14:29:25,032 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57943653:ctest-vn-22972727', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57943653:ctest-vn-22972727?flat'} 2024-11-08 14:29:25,032 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57943653:ctest-vn-22972727 is found in opserver 2024-11-08 14:29:25,043 - DEBUG - Do not have enough data to verify VN in agent 2024-11-08 14:29:25,048 - DEBUG - VRF ids for VN ctest-vn-22972727: {} 2024-11-08 14:29:25,113 - DEBUG - Services list from nova: [, , ] 2024-11-08 14:29:26,315 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2230-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2230-1) 2024-11-08 14:29:27,778 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2230-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2230-1) 2024-11-08 14:29:27,778 - INFO - Waiting for VM ctest-TestBasicPolicy-57943653-90778358 to be up.. 2024-11-08 14:29:27,880 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-08 14:29:32,972 - DEBUG - VM is in ACTIVE state now 2024-11-08 14:29:32,972 - INFO - VM name : ctest-TestBasicPolicy-57943653-90778358 2024-11-08 14:29:33,073 - DEBUG - VM ctest-TestBasicPolicy-57943653-90778358 ID is 6ba01638-5abf-42ca-8f95-b575f924ac75 2024-11-08 14:29:33,093 - DEBUG - VM ctest-TestBasicPolicy-57943653-90778358 launched on Node cn-jenkins-deploy-platform-ansible-os-2230-1 2024-11-08 14:29:33,195 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/6ba01638-5abf-42ca-8f95-b575f924ac75 2024-11-08 14:29:33,209 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/57ebe7fd-b423-4f65-a67f-05057276f1ab 2024-11-08 14:29:36,504 - 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') 2024-11-08 14:29:36,504 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-57943653-90778358 failed! 2024-11-08 14:29:36,562 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-57943653:ctest-vn-71976182 is 129.143.112.193 and allocation pool is NOT set 2024-11-08 14:29:38,620 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=8.01 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.785 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.785/4.396/8.007/3.611 ms') 2024-11-08 14:29:38,620 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-57943653-90778358 passed 2024-11-08 14:29:38,782 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 14:29:38,782 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-57943653-90778358, IP 129.143.112.195, Port 22 2024-11-08 14:29:38,952 - DEBUG - VM ctest-TestBasicPolicy-57943653-90778358 is ready for SSH connections 2024-11-08 14:29:38,952 - INFO - Waiting for VM ctest-TestBasicPolicy-57943653-77210343 to be up.. 2024-11-08 14:29:39,044 - DEBUG - VM is in ACTIVE state now 2024-11-08 14:29:39,045 - INFO - VM name : ctest-TestBasicPolicy-57943653-77210343 2024-11-08 14:29:39,146 - DEBUG - VM ctest-TestBasicPolicy-57943653-77210343 ID is ba5b3b17-edd3-4777-8071-2ac05739ea0a 2024-11-08 14:29:39,146 - DEBUG - VM ctest-TestBasicPolicy-57943653-77210343 launched on Node cn-jenkins-deploy-platform-ansible-os-2230-1 2024-11-08 14:29:39,246 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/ba5b3b17-edd3-4777-8071-2ac05739ea0a 2024-11-08 14:29:39,258 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/8f5c7e0a-a19a-4db7-82aa-792356928033 2024-11-08 14:29:40,516 - 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.99 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.452 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.452/2.219/3.987/1.767 ms') 2024-11-08 14:29:40,516 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-57943653-77210343 passed 2024-11-08 14:29:40,686 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 14:29:40,686 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-57943653-77210343, IP 7.81.189.3, Port 22 2024-11-08 14:29:40,841 - DEBUG - VM ctest-TestBasicPolicy-57943653-77210343 is ready for SSH connections 2024-11-08 14:29:40,842 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 14:29:40,842 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 7.81.189.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.34, gateway password: c0ntrail123 2024-11-08 14:29:40,842 - DEBUG - ping -s 56 -c 3 -W 1 7.81.189.3 2024-11-08 14:29:44,924 - DEBUG - PING 7.81.189.3 (7.81.189.3): 56 data bytes 64 bytes from 7.81.189.3: seq=0 ttl=63 time=3.922 ms 64 bytes from 7.81.189.3: seq=1 ttl=63 time=0.931 ms 64 bytes from 7.81.189.3: seq=2 ttl=63 time=0.928 ms --- 7.81.189.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.928/1.927/3.922 ms 2024-11-08 14:29:44,925 - INFO - Ping to IP 7.81.189.3 from VM ctest-TestBasicPolicy-57943653-90778358 passed 2024-11-08 14:29:45,113 - DEBUG - Policy Update Response {"network-policy": {"uuid": "8794ca89-8f93-4936-88c4-425ea823dc9b", "href": "http://10.0.0.34:8082/network-policy/8794ca89-8f93-4936-88c4-425ea823dc9b"}} 2024-11-08 14:29:45,114 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 14:29:45,114 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 7.81.189.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.34, gateway password: c0ntrail123 2024-11-08 14:29:45,114 - DEBUG - ping -s 56 -c 3 -W 1 7.81.189.3 2024-11-08 14:29:48,331 - DEBUG - PING 7.81.189.3 (7.81.189.3): 56 data bytes 64 bytes from 7.81.189.3: seq=0 ttl=63 time=1.406 ms --- 7.81.189.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.406/1.406/1.406 ms 2024-11-08 14:29:48,331 - WARNING - Ping to IP 7.81.189.3 from VM ctest-TestBasicPolicy-57943653-90778358 failed 2024-11-08 14:29:48,331 - INFO - Deleting VM ctest-TestBasicPolicy-57943653-77210343 2024-11-08 14:29:48,402 - INFO - Deleting VM ctest-TestBasicPolicy-57943653-90778358 2024-11-08 14:29:48,911 - INFO - Deleted policy ctest-policy-allow-all-20686640 2024-11-08 14:29:48,912 - INFO - Deleting VN ctest-vn-22972727 2024-11-08 14:29:48,975 - DEBUG - VN c11146e3-e408-4fe3-90dd-af59a5221fa3 still in use: Unable to complete operation on network c11146e3-e408-4fe3-90dd-af59a5221fa3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-abd78b02-4bb3-42ac-8e1e-9176aaef1a52'] 2024-11-08 14:29:48,975 - WARNING - Deleting VN ctest-vn-22972727 failed..Will retry 2024-11-08 14:29:51,105 - DEBUG - Response for deleting network () 2024-11-08 14:29:51,105 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/66fc0ef2-cf59-4ac2-ac4d-e747c170e7d1 2024-11-08 14:29:51,122 - DEBUG - Response Code: 404 2024-11-08 14:29:51,122 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-11-08 14:29:51,129 - DEBUG - Requesting: http://10.0.0.34:8082/domain/1c2e11aa-3db9-48eb-8d30-012b65578b6f 2024-11-08 14:29:51,143 - DEBUG - Requesting: http://10.0.0.34:8082/project/8ff65fd2-b20d-4764-a85f-8aedd0689336 2024-11-08 14:29:51,233 - INFO - Validated that VN ctest-vn-22972727 is not found in API Server 2024-11-08 14:29:51,246 - DEBUG - VN ctest-vn-22972727 is not present in Agent 10.0.0.34 2024-11-08 14:29:51,246 - INFO - Validated that VN ctest-vn-22972727 is not in any agent 2024-11-08 14:29:51,264 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-22972727 info 2024-11-08 14:29:51,264 - INFO - Deleting VN ctest-vn-71976182 2024-11-08 14:29:51,405 - DEBUG - Response for deleting network () 2024-11-08 14:29:51,406 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/57efd533-840b-48a4-97a6-ceff4be1c651 2024-11-08 14:29:51,421 - DEBUG - Response Code: 404 2024-11-08 14:29:51,421 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-11-08 14:29:51,430 - DEBUG - Requesting: http://10.0.0.34:8082/domain/1c2e11aa-3db9-48eb-8d30-012b65578b6f 2024-11-08 14:29:51,489 - DEBUG - Requesting: http://10.0.0.34:8082/project/8ff65fd2-b20d-4764-a85f-8aedd0689336 2024-11-08 14:29:51,579 - INFO - Validated that VN ctest-vn-71976182 is not found in API Server 2024-11-08 14:29:51,593 - DEBUG - VN ctest-vn-71976182 is not present in Agent 10.0.0.34 2024-11-08 14:29:51,593 - INFO - Validated that VN ctest-vn-71976182 is not in any agent 2024-11-08 14:29:51,616 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-71976182 info 2024-11-08 14:29:51,879 - DEBUG - No XMPP flaps were noticed during the test
2024-11-08 14:29:51,880 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2024-11-08 14:29:51,880 - INFO - -------------------------------------------------------------------------------- 2024-11-08 14:29:52,632 - INFO - Deleted project: ctest-TestBasicPolicy-57943653, ID : 8ff65fd2-b20d-4764-a85f-8aedd0689336