2024-11-08 15:36:26,420 - INFO - Domain Default found not creating 2024-11-08 15:36:26,606 - INFO - Project ctest-TestBasicPolicy-03163002 not found, creating it 2024-11-08 15:36:27,110 - INFO - Created Project:ctest-TestBasicPolicy-03163002, ID : 1faaf989-9170-49d1-bf0b-d03c8af9302a 2024-11-08 15:36:28,719 - INFO - ================================================================================ 2024-11-08 15:36:28,720 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-08 15:36:28,720 - 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 15:36:28,976 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.6': '0'}} with 2024-11-08 15:36:28,976 - INFO - Initial checks done. Running the testcase now 2024-11-08 15:36:28,976 - INFO - 2024-11-08 15:36:29,563 - DEBUG - Response for create_network : {'network': {'id': '0b2ce711-3527-4537-9eb8-173fd45f232e', 'name': 'ctest-vn-17067181', 'tenant_id': '1faaf989917049d1bf0bd03c8af9302a', 'project_id': '1faaf989917049d1bf0bd03c8af9302a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03163002', 'ctest-vn-17067181'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 15:36:29,802 - DEBUG - Response for create_subnet : {'subnet': {'id': 'edfa9654-ac0e-4867-af25-ab5b07b09d9e', 'name': '', 'tenant_id': '1faaf989917049d1bf0bd03c8af9302a', 'network_id': '0b2ce711-3527-4537-9eb8-173fd45f232e', 'ip_version': 4, 'cidr': '220.166.89.64/26', 'allocation_pools': [{'start': '220.166.89.66', 'end': '220.166.89.126'}], 'gateway_ip': '220.166.89.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.166.89.66', 'tags': [], 'project_id': '1faaf989917049d1bf0bd03c8af9302a'}} 2024-11-08 15:36:29,827 - INFO - Created VN ctest-vn-17067181 2024-11-08 15:36:29,886 - DEBUG - VN ctest-vn-17067181 UUID is 0b2ce711-3527-4537-9eb8-173fd45f232e 2024-11-08 15:36:30,249 - DEBUG - Response for create_network : {'network': {'id': 'dfc1723a-af43-4d95-8b67-934219103d2a', 'name': 'ctest-vn-16901609', 'tenant_id': '1faaf989917049d1bf0bd03c8af9302a', 'project_id': '1faaf989917049d1bf0bd03c8af9302a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03163002', 'ctest-vn-16901609'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 15:36:30,434 - DEBUG - Response for create_subnet : {'subnet': {'id': '959ff502-5c64-43e6-be87-4e10050d5af1', 'name': '', 'tenant_id': '1faaf989917049d1bf0bd03c8af9302a', 'network_id': 'dfc1723a-af43-4d95-8b67-934219103d2a', 'ip_version': 4, 'cidr': '134.209.12.0/26', 'allocation_pools': [{'start': '134.209.12.2', 'end': '134.209.12.62'}], 'gateway_ip': '134.209.12.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.209.12.2', 'tags': [], 'project_id': '1faaf989917049d1bf0bd03c8af9302a'}} 2024-11-08 15:36:30,457 - INFO - Created VN ctest-vn-16901609 2024-11-08 15:36:30,518 - DEBUG - VN ctest-vn-16901609 UUID is dfc1723a-af43-4d95-8b67-934219103d2a 2024-11-08 15:36:30,644 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-03163002:ctest-vn-17067181, 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-03163002:ctest-vn-16901609, 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 15:36:30,984 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0b2ce711-3527-4537-9eb8-173fd45f232e', 'name': 'ctest-vn-17067181', 'tenant_id': '1faaf989917049d1bf0bd03c8af9302a', 'project_id': '1faaf989917049d1bf0bd03c8af9302a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['edfa9654-ac0e-4867-af25-ab5b07b09d9e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03163002', 'ctest-vn-17067181'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03163002', 'ctest-policy-allow-all-51876885']], 'subnet_ipam': [{'subnet_cidr': '220.166.89.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-08 15:36:31,268 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dfc1723a-af43-4d95-8b67-934219103d2a', 'name': 'ctest-vn-16901609', 'tenant_id': '1faaf989917049d1bf0bd03c8af9302a', 'project_id': '1faaf989917049d1bf0bd03c8af9302a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['959ff502-5c64-43e6-be87-4e10050d5af1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03163002', 'ctest-vn-16901609'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03163002', 'ctest-policy-allow-all-51876885']], 'subnet_ipam': [{'subnet_cidr': '134.209.12.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-08 15:36:31,466 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-11-08 15:36:31,789 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-11-08 15:36:31,831 - DEBUG - Requesting: http://10.0.0.12:8082/domain/55a36a77-f325-48d8-a3d5-8f547d9f5482 2024-11-08 15:36:31,848 - DEBUG - Requesting: http://10.0.0.12:8082/project/1faaf989-9170-49d1-bf0b-d03c8af9302a 2024-11-08 15:36:31,940 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0b2ce711-3527-4537-9eb8-173fd45f232e 2024-11-08 15:36:31,958 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0b2ce711-3527-4537-9eb8-173fd45f232e 2024-11-08 15:36:31,974 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e9b48f3f-b725-4aff-bebe-3f5d2992a597 2024-11-08 15:36:31,984 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e9b48f3f-b725-4aff-bebe-3f5d2992a597 2024-11-08 15:36:31,994 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/22b56a25-9044-4f82-8b52-ee993ce89ee3 2024-11-08 15:36:32,005 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-08 15:36:32,005 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0b2ce711-3527-4537-9eb8-173fd45f232e 2024-11-08 15:36:32,025 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e9b48f3f-b725-4aff-bebe-3f5d2992a597 2024-11-08 15:36:32,053 - INFO - Verified VN network id 8 for VN 0b2ce711-3527-4537-9eb8-173fd45f232e 2024-11-08 15:36:32,053 - INFO - Verifications in API Server for VN ctest-vn-17067181 passed 2024-11-08 15:36:32,053 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0b2ce711-3527-4537-9eb8-173fd45f232e 2024-11-08 15:36:32,068 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e9b48f3f-b725-4aff-bebe-3f5d2992a597 2024-11-08 15:36:32,078 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e9b48f3f-b725-4aff-bebe-3f5d2992a597 2024-11-08 15:36:32,087 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/22b56a25-9044-4f82-8b52-ee993ce89ee3 2024-11-08 15:36:32,101 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03163002:ctest-vn-17067181', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03163002', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '805272494484702519', 'uuid-lslong': '11436916816620757806'}, 'enable': 'true', 'created': '2024-11-08T15:36:29', 'last-modified': '2024-11-08T15:36:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.150593'} 2024-11-08 15:36:32,109 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-08 15:36:32,109 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17067181 passed 2024-11-08 15:36:32,109 - DEBUG - ====Verifying policy data for ctest-vn-17067181 in API_Server ====== 2024-11-08 15:36:32,109 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-11-08 15:36:32,117 - DEBUG - Requesting: http://10.0.0.12:8082/domain/55a36a77-f325-48d8-a3d5-8f547d9f5482 2024-11-08 15:36:32,138 - DEBUG - Requesting: http://10.0.0.12:8082/project/1faaf989-9170-49d1-bf0b-d03c8af9302a 2024-11-08 15:36:32,224 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0b2ce711-3527-4537-9eb8-173fd45f232e 2024-11-08 15:36:32,243 - DEBUG - ==>Verifying data for policy with id: f603f730-4812-4769-b53c-cb57e4defda9, fqn: ['default-domain', 'ctest-TestBasicPolicy-03163002', 'ctest-policy-allow-all-51876885'] 2024-11-08 15:36:32,243 - INFO - VN ctest-vn-17067181 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-08 15:36:32,244 - DEBUG - Verifying the vn in opserver 2024-11-08 15:36:32,244 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03163002:ctest-vn-17067181 virtual network link through opserver 10.0.0.12 2024-11-08 15:36:32,244 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-11-08 15:36:32,550 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-11-08 15:36:32,628 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03163002:ctest-vn-17067181', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03163002:ctest-vn-17067181?flat'} 2024-11-08 15:36:32,628 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03163002:ctest-vn-17067181 is found in opserver 2024-11-08 15:36:32,642 - DEBUG - Do not have enough data to verify VN in agent 2024-11-08 15:36:32,649 - DEBUG - VRF ids for VN ctest-vn-17067181: {} 2024-11-08 15:36:32,649 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-11-08 15:36:32,657 - DEBUG - Requesting: http://10.0.0.12:8082/domain/55a36a77-f325-48d8-a3d5-8f547d9f5482 2024-11-08 15:36:32,680 - DEBUG - Requesting: http://10.0.0.12:8082/project/1faaf989-9170-49d1-bf0b-d03c8af9302a 2024-11-08 15:36:32,782 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/dfc1723a-af43-4d95-8b67-934219103d2a 2024-11-08 15:36:32,802 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/dfc1723a-af43-4d95-8b67-934219103d2a 2024-11-08 15:36:32,818 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/07237af7-6b0a-469f-89b3-e74f7ed2f97e 2024-11-08 15:36:32,828 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/07237af7-6b0a-469f-89b3-e74f7ed2f97e 2024-11-08 15:36:32,838 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/93d2d2b1-ab1f-4986-961b-5afe3c548b7f 2024-11-08 15:36:32,848 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-08 15:36:32,848 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/dfc1723a-af43-4d95-8b67-934219103d2a 2024-11-08 15:36:32,866 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/07237af7-6b0a-469f-89b3-e74f7ed2f97e 2024-11-08 15:36:32,889 - INFO - Verified VN network id 9 for VN dfc1723a-af43-4d95-8b67-934219103d2a 2024-11-08 15:36:32,889 - INFO - Verifications in API Server for VN ctest-vn-16901609 passed 2024-11-08 15:36:32,889 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/dfc1723a-af43-4d95-8b67-934219103d2a 2024-11-08 15:36:32,904 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/07237af7-6b0a-469f-89b3-e74f7ed2f97e 2024-11-08 15:36:32,914 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/07237af7-6b0a-469f-89b3-e74f7ed2f97e 2024-11-08 15:36:32,926 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/93d2d2b1-ab1f-4986-961b-5afe3c548b7f 2024-11-08 15:36:32,951 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03163002:ctest-vn-16901609', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03163002', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16123293737337179541', 'uuid-lslong': '10045159405970799914'}, 'enable': 'true', 'created': '2024-11-08T15:36:30', 'last-modified': '2024-11-08T15:36:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.727216'} 2024-11-08 15:36:32,961 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-08 15:36:32,961 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16901609 passed 2024-11-08 15:36:32,961 - DEBUG - ====Verifying policy data for ctest-vn-16901609 in API_Server ====== 2024-11-08 15:36:32,961 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-11-08 15:36:32,969 - DEBUG - Requesting: http://10.0.0.12:8082/domain/55a36a77-f325-48d8-a3d5-8f547d9f5482 2024-11-08 15:36:32,988 - DEBUG - Requesting: http://10.0.0.12:8082/project/1faaf989-9170-49d1-bf0b-d03c8af9302a 2024-11-08 15:36:33,076 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/dfc1723a-af43-4d95-8b67-934219103d2a 2024-11-08 15:36:33,093 - DEBUG - ==>Verifying data for policy with id: f603f730-4812-4769-b53c-cb57e4defda9, fqn: ['default-domain', 'ctest-TestBasicPolicy-03163002', 'ctest-policy-allow-all-51876885'] 2024-11-08 15:36:33,093 - INFO - VN ctest-vn-16901609 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-08 15:36:33,093 - DEBUG - Verifying the vn in opserver 2024-11-08 15:36:33,094 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03163002:ctest-vn-16901609 virtual network link through opserver 10.0.0.12 2024-11-08 15:36:33,094 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-11-08 15:36:33,105 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03163002:ctest-vn-16901609', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03163002:ctest-vn-16901609?flat'} 2024-11-08 15:36:33,106 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03163002:ctest-vn-16901609 is found in opserver 2024-11-08 15:36:33,122 - DEBUG - Do not have enough data to verify VN in agent 2024-11-08 15:36:33,132 - DEBUG - VRF ids for VN ctest-vn-16901609: {} 2024-11-08 15:36:33,208 - DEBUG - Services list from nova: [, , ] 2024-11-08 15:36:34,306 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2233-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2233-1) 2024-11-08 15:36:35,647 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2233-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2233-1) 2024-11-08 15:36:35,648 - INFO - Waiting for VM ctest-TestBasicPolicy-03163002-29541328 to be up.. 2024-11-08 15:36:35,740 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-08 15:36:40,839 - DEBUG - VM is in ACTIVE state now 2024-11-08 15:36:40,839 - INFO - VM name : ctest-TestBasicPolicy-03163002-29541328 2024-11-08 15:36:40,935 - DEBUG - VM ctest-TestBasicPolicy-03163002-29541328 ID is 7809eea5-1960-410c-b57c-1a74c5b64fef 2024-11-08 15:36:40,959 - DEBUG - VM ctest-TestBasicPolicy-03163002-29541328 launched on Node cn-jenkins-deploy-platform-ansible-os-2233-1 2024-11-08 15:36:41,061 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/7809eea5-1960-410c-b57c-1a74c5b64fef 2024-11-08 15:36:41,074 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/85b0177e-21af-4669-b265-705ee1fa4f3d 2024-11-08 15:36:44,336 - 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 1003ms') 2024-11-08 15:36:44,336 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-03163002-29541328 failed! 2024-11-08 15:36:44,398 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-03163002:ctest-vn-17067181 is 220.166.89.65 and allocation pool is NOT set 2024-11-08 15:36:46,463 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=7.20 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.507 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.507/3.851/7.195/3.344 ms') 2024-11-08 15:36:46,463 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-03163002-29541328 passed 2024-11-08 15:36:46,630 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 15:36:46,630 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-03163002-29541328, IP 220.166.89.67, Port 22 2024-11-08 15:36:46,797 - DEBUG - VM ctest-TestBasicPolicy-03163002-29541328 is ready for SSH connections 2024-11-08 15:36:46,797 - INFO - Waiting for VM ctest-TestBasicPolicy-03163002-66841576 to be up.. 2024-11-08 15:36:46,890 - DEBUG - VM is in ACTIVE state now 2024-11-08 15:36:46,890 - INFO - VM name : ctest-TestBasicPolicy-03163002-66841576 2024-11-08 15:36:46,974 - DEBUG - VM ctest-TestBasicPolicy-03163002-66841576 ID is 6b8666e8-12b0-46ca-859a-24f9b9eaeaef 2024-11-08 15:36:46,974 - DEBUG - VM ctest-TestBasicPolicy-03163002-66841576 launched on Node cn-jenkins-deploy-platform-ansible-os-2233-1 2024-11-08 15:36:47,057 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/6b8666e8-12b0-46ca-859a-24f9b9eaeaef 2024-11-08 15:36:47,068 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/244b8b4a-e483-4e08-9618-49101d390037 2024-11-08 15:36:48,322 - 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.97 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.492 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.492/1.732/2.972/1.240 ms') 2024-11-08 15:36:48,322 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-03163002-66841576 passed 2024-11-08 15:36:48,478 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 15:36:48,478 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-03163002-66841576, IP 134.209.12.3, Port 22 2024-11-08 15:36:48,633 - DEBUG - VM ctest-TestBasicPolicy-03163002-66841576 is ready for SSH connections 2024-11-08 15:36:48,634 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 15:36:48,634 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 134.209.12.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-11-08 15:36:48,634 - DEBUG - ping -s 56 -c 3 -W 1 134.209.12.3 2024-11-08 15:36:52,653 - DEBUG - PING 134.209.12.3 (134.209.12.3): 56 data bytes 64 bytes from 134.209.12.3: seq=0 ttl=63 time=3.303 ms 64 bytes from 134.209.12.3: seq=1 ttl=63 time=0.963 ms 64 bytes from 134.209.12.3: seq=2 ttl=63 time=1.015 ms --- 134.209.12.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.963/1.760/3.303 ms 2024-11-08 15:36:52,653 - INFO - Ping to IP 134.209.12.3 from VM ctest-TestBasicPolicy-03163002-29541328 passed 2024-11-08 15:36:52,849 - DEBUG - Policy Update Response {"network-policy": {"uuid": "f603f730-4812-4769-b53c-cb57e4defda9", "href": "http://10.0.0.12:8082/network-policy/f603f730-4812-4769-b53c-cb57e4defda9"}} 2024-11-08 15:36:52,849 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 15:36:52,850 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 134.209.12.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-11-08 15:36:52,850 - DEBUG - ping -s 56 -c 3 -W 1 134.209.12.3 2024-11-08 15:36:56,067 - DEBUG - PING 134.209.12.3 (134.209.12.3): 56 data bytes 64 bytes from 134.209.12.3: seq=0 ttl=63 time=1.801 ms --- 134.209.12.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.801/1.801/1.801 ms 2024-11-08 15:36:56,067 - WARNING - Ping to IP 134.209.12.3 from VM ctest-TestBasicPolicy-03163002-29541328 failed 2024-11-08 15:36:56,068 - INFO - Deleting VM ctest-TestBasicPolicy-03163002-66841576 2024-11-08 15:36:56,145 - INFO - Deleting VM ctest-TestBasicPolicy-03163002-29541328 2024-11-08 15:36:56,569 - INFO - Deleted policy ctest-policy-allow-all-51876885 2024-11-08 15:36:56,569 - INFO - Deleting VN ctest-vn-16901609 2024-11-08 15:36:56,612 - DEBUG - VN dfc1723a-af43-4d95-8b67-934219103d2a still in use: Unable to complete operation on network dfc1723a-af43-4d95-8b67-934219103d2a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0230e61c-dd00-4149-8dfa-9e2a1eb8c671'] 2024-11-08 15:36:56,613 - WARNING - Deleting VN ctest-vn-16901609 failed..Will retry 2024-11-08 15:36:58,739 - DEBUG - Response for deleting network () 2024-11-08 15:36:58,740 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/07237af7-6b0a-469f-89b3-e74f7ed2f97e 2024-11-08 15:36:58,749 - DEBUG - Response Code: 404 2024-11-08 15:36:58,749 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-11-08 15:36:58,755 - DEBUG - Requesting: http://10.0.0.12:8082/domain/55a36a77-f325-48d8-a3d5-8f547d9f5482 2024-11-08 15:36:58,812 - DEBUG - Requesting: http://10.0.0.12:8082/project/1faaf989-9170-49d1-bf0b-d03c8af9302a 2024-11-08 15:36:58,898 - INFO - Validated that VN ctest-vn-16901609 is not found in API Server 2024-11-08 15:36:58,909 - DEBUG - VN ctest-vn-16901609 is not present in Agent 10.0.0.12 2024-11-08 15:36:58,909 - INFO - Validated that VN ctest-vn-16901609 is not in any agent 2024-11-08 15:36:58,925 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-16901609 info 2024-11-08 15:36:58,925 - INFO - Deleting VN ctest-vn-17067181 2024-11-08 15:36:59,043 - DEBUG - Response for deleting network () 2024-11-08 15:36:59,043 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e9b48f3f-b725-4aff-bebe-3f5d2992a597 2024-11-08 15:36:59,049 - DEBUG - Response Code: 404 2024-11-08 15:36:59,049 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-11-08 15:36:59,059 - DEBUG - Requesting: http://10.0.0.12:8082/domain/55a36a77-f325-48d8-a3d5-8f547d9f5482 2024-11-08 15:36:59,117 - DEBUG - Requesting: http://10.0.0.12:8082/project/1faaf989-9170-49d1-bf0b-d03c8af9302a 2024-11-08 15:36:59,201 - INFO - Validated that VN ctest-vn-17067181 is not found in API Server 2024-11-08 15:36:59,212 - DEBUG - VN ctest-vn-17067181 is not present in Agent 10.0.0.12 2024-11-08 15:36:59,212 - INFO - Validated that VN ctest-vn-17067181 is not in any agent 2024-11-08 15:36:59,229 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-17067181 info 2024-11-08 15:36:59,484 - DEBUG - No XMPP flaps were noticed during the test 2024-11-08 15:36:59,485 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31] 2024-11-08 15:36:59,485 - INFO - -------------------------------------------------------------------------------- 2024-11-08 15:37:00,209 - INFO - Deleted project: ctest-TestBasicPolicy-03163002, ID : 1faaf989-9170-49d1-bf0b-d03c8af9302a