2024-08-21 03:23:32,683 - INFO - Domain Default found not creating 2024-08-21 03:23:32,871 - INFO - Project ctest-TestBasicPolicy-41964045 not found, creating it 2024-08-21 03:23:33,383 - INFO - Created Project:ctest-TestBasicPolicy-41964045, ID : 3d99991d-da5c-4539-aed9-fe335322a91e 2024-08-21 03:23:35,196 - INFO - ================================================================================ 2024-08-21 03:23:35,196 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-21 03:23:35,197 - 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-08-21 03:23:35,486 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.26': '0'}} with 2024-08-21 03:23:35,486 - INFO - Initial checks done. Running the testcase now 2024-08-21 03:23:35,487 - INFO - 2024-08-21 03:23:36,086 - DEBUG - Response for create_network : {'network': {'id': '76e4a43c-e083-4b5e-8ad1-4dc0db6f5c02', 'name': 'ctest-vn-75509368', 'tenant_id': '3d99991dda5c4539aed9fe335322a91e', 'project_id': '3d99991dda5c4539aed9fe335322a91e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41964045', 'ctest-vn-75509368'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 03:23:36,331 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b773a907-1e9a-482f-933b-42584a731ad7', 'name': '', 'tenant_id': '3d99991dda5c4539aed9fe335322a91e', 'network_id': '76e4a43c-e083-4b5e-8ad1-4dc0db6f5c02', 'ip_version': 4, 'cidr': '11.215.215.192/26', 'allocation_pools': [{'start': '11.215.215.194', 'end': '11.215.215.254'}], 'gateway_ip': '11.215.215.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.215.215.194', 'tags': [], 'project_id': '3d99991dda5c4539aed9fe335322a91e'}} 2024-08-21 03:23:36,354 - INFO - Created VN ctest-vn-75509368 2024-08-21 03:23:36,408 - DEBUG - VN ctest-vn-75509368 UUID is 76e4a43c-e083-4b5e-8ad1-4dc0db6f5c02 2024-08-21 03:23:36,755 - DEBUG - Response for create_network : {'network': {'id': '079c1d57-77e1-4163-bfa1-354affd7819c', 'name': 'ctest-vn-43893371', 'tenant_id': '3d99991dda5c4539aed9fe335322a91e', 'project_id': '3d99991dda5c4539aed9fe335322a91e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41964045', 'ctest-vn-43893371'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 03:23:36,969 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f7f6d535-8b48-4cc0-a152-b76094018252', 'name': '', 'tenant_id': '3d99991dda5c4539aed9fe335322a91e', 'network_id': '079c1d57-77e1-4163-bfa1-354affd7819c', 'ip_version': 4, 'cidr': '204.157.91.128/26', 'allocation_pools': [{'start': '204.157.91.130', 'end': '204.157.91.190'}], 'gateway_ip': '204.157.91.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '204.157.91.130', 'tags': [], 'project_id': '3d99991dda5c4539aed9fe335322a91e'}} 2024-08-21 03:23:36,991 - INFO - Created VN ctest-vn-43893371 2024-08-21 03:23:37,044 - DEBUG - VN ctest-vn-43893371 UUID is 079c1d57-77e1-4163-bfa1-354affd7819c 2024-08-21 03:23:37,176 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-41964045:ctest-vn-75509368, 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-41964045:ctest-vn-43893371, 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-08-21 03:23:37,496 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '76e4a43c-e083-4b5e-8ad1-4dc0db6f5c02', 'name': 'ctest-vn-75509368', 'tenant_id': '3d99991dda5c4539aed9fe335322a91e', 'project_id': '3d99991dda5c4539aed9fe335322a91e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b773a907-1e9a-482f-933b-42584a731ad7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41964045', 'ctest-vn-75509368'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41964045', 'ctest-policy-allow-all-28351592']], 'subnet_ipam': [{'subnet_cidr': '11.215.215.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-21 03:23:37,758 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '079c1d57-77e1-4163-bfa1-354affd7819c', 'name': 'ctest-vn-43893371', 'tenant_id': '3d99991dda5c4539aed9fe335322a91e', 'project_id': '3d99991dda5c4539aed9fe335322a91e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f7f6d535-8b48-4cc0-a152-b76094018252'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41964045', 'ctest-vn-43893371'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41964045', 'ctest-policy-allow-all-28351592']], 'subnet_ipam': [{'subnet_cidr': '204.157.91.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-21 03:23:37,932 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-08-21 03:23:38,284 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-08-21 03:23:38,322 - DEBUG - Requesting: http://10.0.0.17:8082/domain/088116c3-083a-439a-b691-a7a7647462aa 2024-08-21 03:23:38,343 - DEBUG - Requesting: http://10.0.0.17:8082/project/3d99991d-da5c-4539-aed9-fe335322a91e 2024-08-21 03:23:38,424 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/76e4a43c-e083-4b5e-8ad1-4dc0db6f5c02 2024-08-21 03:23:38,435 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/76e4a43c-e083-4b5e-8ad1-4dc0db6f5c02 2024-08-21 03:23:38,445 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/6a8550fc-8754-4d74-8005-be2766538b24 2024-08-21 03:23:38,454 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/6a8550fc-8754-4d74-8005-be2766538b24 2024-08-21 03:23:38,462 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/75d224fb-d2ed-447c-82e6-8928773e6181 2024-08-21 03:23:38,470 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-21 03:23:38,471 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/76e4a43c-e083-4b5e-8ad1-4dc0db6f5c02 2024-08-21 03:23:38,482 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/6a8550fc-8754-4d74-8005-be2766538b24 2024-08-21 03:23:38,499 - INFO - Verified VN network id 9 for VN 76e4a43c-e083-4b5e-8ad1-4dc0db6f5c02 2024-08-21 03:23:38,499 - INFO - Verifications in API Server for VN ctest-vn-75509368 passed 2024-08-21 03:23:38,499 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/76e4a43c-e083-4b5e-8ad1-4dc0db6f5c02 2024-08-21 03:23:38,510 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/6a8550fc-8754-4d74-8005-be2766538b24 2024-08-21 03:23:38,519 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/6a8550fc-8754-4d74-8005-be2766538b24 2024-08-21 03:23:38,527 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/75d224fb-d2ed-447c-82e6-8928773e6181 2024-08-21 03:23:38,542 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41964045:ctest-vn-75509368', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41964045', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8567152972537219934', 'uuid-lslong': '10002861738077150210'}, 'enable': 'true', 'created': '2024-08-21T03:23:36', 'last-modified': '2024-08-21T03:23:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.076203'} 2024-08-21 03:23:38,550 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-21 03:23:38,550 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75509368 passed 2024-08-21 03:23:38,550 - DEBUG - ====Verifying policy data for ctest-vn-75509368 in API_Server ====== 2024-08-21 03:23:38,550 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-08-21 03:23:38,558 - DEBUG - Requesting: http://10.0.0.17:8082/domain/088116c3-083a-439a-b691-a7a7647462aa 2024-08-21 03:23:38,572 - DEBUG - Requesting: http://10.0.0.17:8082/project/3d99991d-da5c-4539-aed9-fe335322a91e 2024-08-21 03:23:38,652 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/76e4a43c-e083-4b5e-8ad1-4dc0db6f5c02 2024-08-21 03:23:38,662 - DEBUG - ==>Verifying data for policy with id: b394b8f6-0b31-460b-8d23-26f81a2fe42b, fqn: ['default-domain', 'ctest-TestBasicPolicy-41964045', 'ctest-policy-allow-all-28351592'] 2024-08-21 03:23:38,662 - INFO - VN ctest-vn-75509368 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-21 03:23:38,662 - DEBUG - Verifying the vn in opserver 2024-08-21 03:23:38,662 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41964045:ctest-vn-75509368 virtual network link through opserver 10.0.0.17 2024-08-21 03:23:38,663 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2024-08-21 03:23:38,999 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2024-08-21 03:23:39,074 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41964045:ctest-vn-75509368', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41964045:ctest-vn-75509368?flat'} 2024-08-21 03:23:39,074 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41964045:ctest-vn-75509368 is found in opserver 2024-08-21 03:23:39,089 - DEBUG - Do not have enough data to verify VN in agent 2024-08-21 03:23:39,096 - DEBUG - VRF ids for VN ctest-vn-75509368: {} 2024-08-21 03:23:39,097 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-08-21 03:23:39,105 - DEBUG - Requesting: http://10.0.0.17:8082/domain/088116c3-083a-439a-b691-a7a7647462aa 2024-08-21 03:23:39,119 - DEBUG - Requesting: http://10.0.0.17:8082/project/3d99991d-da5c-4539-aed9-fe335322a91e 2024-08-21 03:23:39,196 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/079c1d57-77e1-4163-bfa1-354affd7819c 2024-08-21 03:23:39,208 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/079c1d57-77e1-4163-bfa1-354affd7819c 2024-08-21 03:23:39,217 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/8d3aa1c8-f743-42e3-a97b-7e581601d1a4 2024-08-21 03:23:39,226 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/8d3aa1c8-f743-42e3-a97b-7e581601d1a4 2024-08-21 03:23:39,234 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/9f755569-1507-49da-8788-a2bc8bd9ae67 2024-08-21 03:23:39,241 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-21 03:23:39,241 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/079c1d57-77e1-4163-bfa1-354affd7819c 2024-08-21 03:23:39,250 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/8d3aa1c8-f743-42e3-a97b-7e581601d1a4 2024-08-21 03:23:39,266 - INFO - Verified VN network id 10 for VN 079c1d57-77e1-4163-bfa1-354affd7819c 2024-08-21 03:23:39,266 - INFO - Verifications in API Server for VN ctest-vn-43893371 passed 2024-08-21 03:23:39,267 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/079c1d57-77e1-4163-bfa1-354affd7819c 2024-08-21 03:23:39,277 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/8d3aa1c8-f743-42e3-a97b-7e581601d1a4 2024-08-21 03:23:39,287 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/8d3aa1c8-f743-42e3-a97b-7e581601d1a4 2024-08-21 03:23:39,295 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/9f755569-1507-49da-8788-a2bc8bd9ae67 2024-08-21 03:23:39,311 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41964045:ctest-vn-43893371', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41964045', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '548345516142969187', 'uuid-lslong': '13808376528730816924'}, 'enable': 'true', 'created': '2024-08-21T03:23:36', 'last-modified': '2024-08-21T03:23:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.586438'} 2024-08-21 03:23:39,318 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-21 03:23:39,318 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43893371 passed 2024-08-21 03:23:39,318 - DEBUG - ====Verifying policy data for ctest-vn-43893371 in API_Server ====== 2024-08-21 03:23:39,319 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-08-21 03:23:39,327 - DEBUG - Requesting: http://10.0.0.17:8082/domain/088116c3-083a-439a-b691-a7a7647462aa 2024-08-21 03:23:39,343 - DEBUG - Requesting: http://10.0.0.17:8082/project/3d99991d-da5c-4539-aed9-fe335322a91e 2024-08-21 03:23:39,417 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/079c1d57-77e1-4163-bfa1-354affd7819c 2024-08-21 03:23:39,427 - DEBUG - ==>Verifying data for policy with id: b394b8f6-0b31-460b-8d23-26f81a2fe42b, fqn: ['default-domain', 'ctest-TestBasicPolicy-41964045', 'ctest-policy-allow-all-28351592'] 2024-08-21 03:23:39,427 - INFO - VN ctest-vn-43893371 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-21 03:23:39,427 - DEBUG - Verifying the vn in opserver 2024-08-21 03:23:39,427 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41964045:ctest-vn-43893371 virtual network link through opserver 10.0.0.17 2024-08-21 03:23:39,427 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2024-08-21 03:23:39,441 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41964045:ctest-vn-43893371', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41964045:ctest-vn-43893371?flat'} 2024-08-21 03:23:39,441 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41964045:ctest-vn-43893371 is found in opserver 2024-08-21 03:23:39,453 - DEBUG - Do not have enough data to verify VN in agent 2024-08-21 03:23:39,459 - DEBUG - VRF ids for VN ctest-vn-43893371: {} 2024-08-21 03:23:39,540 - DEBUG - Services list from nova: [, , ] 2024-08-21 03:23:40,713 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1679-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1679-1) 2024-08-21 03:23:42,152 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1679-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1679-1) 2024-08-21 03:23:42,152 - INFO - Waiting for VM ctest-TestBasicPolicy-41964045-86409734 to be up.. 2024-08-21 03:23:42,256 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-21 03:23:47,354 - DEBUG - VM is in ACTIVE state now 2024-08-21 03:23:47,354 - INFO - VM name : ctest-TestBasicPolicy-41964045-86409734 2024-08-21 03:23:47,452 - DEBUG - VM ctest-TestBasicPolicy-41964045-86409734 ID is 856333f8-5d00-47ab-af73-fa6bb890d4f2 2024-08-21 03:23:47,478 - DEBUG - VM ctest-TestBasicPolicy-41964045-86409734 launched on Node cn-jenkins-deploy-platform-ansible-os-1679-1 2024-08-21 03:23:47,586 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/856333f8-5d00-47ab-af73-fa6bb890d4f2 2024-08-21 03:23:47,597 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/dfe16f86-2e4c-4cfb-8a70-26b4c9f6b231 2024-08-21 03:23:50,867 - 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 1017ms') 2024-08-21 03:23:50,867 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-41964045-86409734 failed! 2024-08-21 03:23:50,940 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-41964045:ctest-vn-75509368 is 11.215.215.193 and allocation pool is NOT set 2024-08-21 03:23:53,002 - 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=15.1 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.40 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 = 1.401/8.245/15.089/6.844 ms') 2024-08-21 03:23:53,002 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-41964045-86409734 passed 2024-08-21 03:23:53,160 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 03:23:53,160 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-41964045-86409734, IP 11.215.215.195, Port 22 2024-08-21 03:23:53,326 - DEBUG - VM ctest-TestBasicPolicy-41964045-86409734 is ready for SSH connections 2024-08-21 03:23:53,326 - INFO - Waiting for VM ctest-TestBasicPolicy-41964045-42925484 to be up.. 2024-08-21 03:23:53,423 - DEBUG - VM is in ACTIVE state now 2024-08-21 03:23:53,423 - INFO - VM name : ctest-TestBasicPolicy-41964045-42925484 2024-08-21 03:23:53,517 - DEBUG - VM ctest-TestBasicPolicy-41964045-42925484 ID is 2a02073b-bbbd-459f-8824-568e331eff67 2024-08-21 03:23:53,518 - DEBUG - VM ctest-TestBasicPolicy-41964045-42925484 launched on Node cn-jenkins-deploy-platform-ansible-os-1679-1 2024-08-21 03:23:53,607 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/2a02073b-bbbd-459f-8824-568e331eff67 2024-08-21 03:23:53,617 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/5fbf2c7b-9e22-42e4-9e27-feec4e69b176 2024-08-21 03:23:54,865 - 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.42 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.439 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.439/1.927/3.415/1.488 ms') 2024-08-21 03:23:54,865 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-41964045-42925484 passed 2024-08-21 03:23:55,016 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 03:23:55,016 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-41964045-42925484, IP 204.157.91.131, Port 22 2024-08-21 03:23:55,183 - DEBUG - VM ctest-TestBasicPolicy-41964045-42925484 is ready for SSH connections 2024-08-21 03:23:55,183 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 03:23:55,183 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 204.157.91.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2024-08-21 03:23:55,183 - DEBUG - ping -s 56 -c 3 -W 1 204.157.91.131 2024-08-21 03:23:59,287 - DEBUG - PING 204.157.91.131 (204.157.91.131): 56 data bytes 64 bytes from 204.157.91.131: seq=0 ttl=63 time=3.737 ms 64 bytes from 204.157.91.131: seq=1 ttl=63 time=0.966 ms 64 bytes from 204.157.91.131: seq=2 ttl=63 time=1.245 ms --- 204.157.91.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.966/1.982/3.737 ms 2024-08-21 03:23:59,287 - INFO - Ping to IP 204.157.91.131 from VM ctest-TestBasicPolicy-41964045-86409734 passed 2024-08-21 03:23:59,476 - DEBUG - Policy Update Response {"network-policy": {"uuid": "b394b8f6-0b31-460b-8d23-26f81a2fe42b", "href": "http://10.0.0.17:8082/network-policy/b394b8f6-0b31-460b-8d23-26f81a2fe42b"}} 2024-08-21 03:23:59,476 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 03:23:59,476 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 204.157.91.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2024-08-21 03:23:59,476 - DEBUG - ping -s 56 -c 3 -W 1 204.157.91.131 2024-08-21 03:24:02,717 - DEBUG - PING 204.157.91.131 (204.157.91.131): 56 data bytes 64 bytes from 204.157.91.131: seq=0 ttl=63 time=2.044 ms --- 204.157.91.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.044/2.044/2.044 ms 2024-08-21 03:24:02,717 - WARNING - Ping to IP 204.157.91.131 from VM ctest-TestBasicPolicy-41964045-86409734 failed 2024-08-21 03:24:02,717 - INFO - Deleting VM ctest-TestBasicPolicy-41964045-42925484 2024-08-21 03:24:02,801 - INFO - Deleting VM ctest-TestBasicPolicy-41964045-86409734 2024-08-21 03:24:03,251 - INFO - Deleted policy ctest-policy-allow-all-28351592 2024-08-21 03:24:03,251 - INFO - Deleting VN ctest-vn-43893371 2024-08-21 03:24:03,306 - DEBUG - VN 079c1d57-77e1-4163-bfa1-354affd7819c still in use: Unable to complete operation on network 079c1d57-77e1-4163-bfa1-354affd7819c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f3c6f546-305a-46bb-bc44-26f1e1ea9f14'] 2024-08-21 03:24:03,306 - WARNING - Deleting VN ctest-vn-43893371 failed..Will retry 2024-08-21 03:24:05,442 - DEBUG - Response for deleting network () 2024-08-21 03:24:05,442 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/8d3aa1c8-f743-42e3-a97b-7e581601d1a4 2024-08-21 03:24:05,458 - DEBUG - Response Code: 404 2024-08-21 03:24:05,459 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-08-21 03:24:05,467 - DEBUG - Requesting: http://10.0.0.17:8082/domain/088116c3-083a-439a-b691-a7a7647462aa 2024-08-21 03:24:05,530 - DEBUG - Requesting: http://10.0.0.17:8082/project/3d99991d-da5c-4539-aed9-fe335322a91e 2024-08-21 03:24:05,609 - INFO - Validated that VN ctest-vn-43893371 is not found in API Server 2024-08-21 03:24:05,626 - DEBUG - VN ctest-vn-43893371 is not present in Agent 10.0.0.17 2024-08-21 03:24:05,626 - INFO - Validated that VN ctest-vn-43893371 is not in any agent 2024-08-21 03:24:05,647 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-43893371 info 2024-08-21 03:24:05,648 - INFO - Deleting VN ctest-vn-75509368 2024-08-21 03:24:05,787 - DEBUG - Response for deleting network () 2024-08-21 03:24:05,788 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/6a8550fc-8754-4d74-8005-be2766538b24 2024-08-21 03:24:05,796 - DEBUG - Response Code: 404 2024-08-21 03:24:05,796 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-08-21 03:24:05,805 - DEBUG - Requesting: http://10.0.0.17:8082/domain/088116c3-083a-439a-b691-a7a7647462aa 2024-08-21 03:24:05,862 - DEBUG - Requesting: http://10.0.0.17:8082/project/3d99991d-da5c-4539-aed9-fe335322a91e 2024-08-21 03:24:05,938 - INFO - Validated that VN ctest-vn-75509368 is not found in API Server 2024-08-21 03:24:05,951 - DEBUG - VN ctest-vn-75509368 is not present in Agent 10.0.0.17 2024-08-21 03:24:05,951 - INFO - Validated that VN ctest-vn-75509368 is not in any agent 2024-08-21 03:24:05,970 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-75509368 info 2024-08-21 03:24:06,244 - DEBUG - No XMPP flaps were noticed during the test 2024-08-21 03:24:06,244 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31] 2024-08-21 03:24:06,244 - INFO - -------------------------------------------------------------------------------- 2024-08-21 03:24:07,015 - INFO - Deleted project: ctest-TestBasicPolicy-41964045, ID : 3d99991d-da5c-4539-aed9-fe335322a91e