2024-10-22 22:10:36,718 - INFO - Domain Default found not creating 2024-10-22 22:10:36,865 - INFO - Project ctest-TestBasicPolicy-85816677 not found, creating it 2024-10-22 22:10:37,581 - INFO - Created Project:ctest-TestBasicPolicy-85816677, ID : dc8eb196-a0ea-4d9d-9991-6db00f4c5963 2024-10-22 22:10:39,159 - INFO - ================================================================================ 2024-10-22 22:10:39,160 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-22 22:10:39,160 - 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-10-22 22:10:39,418 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.20.0.24': '0'}} with 2024-10-22 22:10:39,418 - INFO - Initial checks done. Running the testcase now 2024-10-22 22:10:39,418 - INFO - 2024-10-22 22:10:39,973 - DEBUG - Response for create_network : {'network': {'id': '16418e89-30b9-4caa-bf18-6fd8c89e6ecd', 'name': 'ctest-vn-13578177', 'tenant_id': 'dc8eb196a0ea4d9d99916db00f4c5963', 'project_id': 'dc8eb196a0ea4d9d99916db00f4c5963', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85816677', 'ctest-vn-13578177'], 'port_security_enabled': True, 'description': ''}} 2024-10-22 22:10:40,154 - DEBUG - Response for create_subnet : {'subnet': {'id': '7a70dfbd-e613-47b6-8f82-e78936df36d2', 'name': '', 'tenant_id': 'dc8eb196a0ea4d9d99916db00f4c5963', 'network_id': '16418e89-30b9-4caa-bf18-6fd8c89e6ecd', 'ip_version': 4, 'cidr': '173.137.147.128/26', 'allocation_pools': [{'start': '173.137.147.130', 'end': '173.137.147.190'}], 'gateway_ip': '173.137.147.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.137.147.130', 'tags': [], 'project_id': 'dc8eb196a0ea4d9d99916db00f4c5963'}} 2024-10-22 22:10:40,173 - INFO - Created VN ctest-vn-13578177 2024-10-22 22:10:40,232 - DEBUG - VN ctest-vn-13578177 UUID is 16418e89-30b9-4caa-bf18-6fd8c89e6ecd 2024-10-22 22:10:40,530 - DEBUG - Response for create_network : {'network': {'id': 'd034bc71-7099-4ddb-83b3-82702ef6011a', 'name': 'ctest-vn-91762112', 'tenant_id': 'dc8eb196a0ea4d9d99916db00f4c5963', 'project_id': 'dc8eb196a0ea4d9d99916db00f4c5963', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85816677', 'ctest-vn-91762112'], 'port_security_enabled': True, 'description': ''}} 2024-10-22 22:10:40,758 - DEBUG - Response for create_subnet : {'subnet': {'id': '4a1ee0cc-e505-4771-8983-586dd3dd2891', 'name': '', 'tenant_id': 'dc8eb196a0ea4d9d99916db00f4c5963', 'network_id': 'd034bc71-7099-4ddb-83b3-82702ef6011a', 'ip_version': 4, 'cidr': '168.248.132.64/26', 'allocation_pools': [{'start': '168.248.132.66', 'end': '168.248.132.126'}], 'gateway_ip': '168.248.132.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.248.132.66', 'tags': [], 'project_id': 'dc8eb196a0ea4d9d99916db00f4c5963'}} 2024-10-22 22:10:40,776 - INFO - Created VN ctest-vn-91762112 2024-10-22 22:10:40,832 - DEBUG - VN ctest-vn-91762112 UUID is d034bc71-7099-4ddb-83b3-82702ef6011a 2024-10-22 22:10:40,948 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-85816677:ctest-vn-13578177, 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-85816677:ctest-vn-91762112, 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-10-22 22:10:41,262 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '16418e89-30b9-4caa-bf18-6fd8c89e6ecd', 'name': 'ctest-vn-13578177', 'tenant_id': 'dc8eb196a0ea4d9d99916db00f4c5963', 'project_id': 'dc8eb196a0ea4d9d99916db00f4c5963', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7a70dfbd-e613-47b6-8f82-e78936df36d2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85816677', 'ctest-vn-13578177'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85816677', 'ctest-policy-allow-all-65091577']], 'subnet_ipam': [{'subnet_cidr': '173.137.147.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-22 22:10:41,571 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd034bc71-7099-4ddb-83b3-82702ef6011a', 'name': 'ctest-vn-91762112', 'tenant_id': 'dc8eb196a0ea4d9d99916db00f4c5963', 'project_id': 'dc8eb196a0ea4d9d99916db00f4c5963', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4a1ee0cc-e505-4771-8983-586dd3dd2891'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85816677', 'ctest-vn-91762112'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85816677', 'ctest-policy-allow-all-65091577']], 'subnet_ipam': [{'subnet_cidr': '168.248.132.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-22 22:10:41,728 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-10-22 22:10:42,037 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-10-22 22:10:42,351 - DEBUG - Requesting: http://10.0.0.32:8082/domain/b6e1b82d-7c6a-47e4-b7cc-be216db617a3 2024-10-22 22:10:42,366 - DEBUG - Requesting: http://10.0.0.32:8082/project/dc8eb196-a0ea-4d9d-9991-6db00f4c5963 2024-10-22 22:10:42,456 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/16418e89-30b9-4caa-bf18-6fd8c89e6ecd 2024-10-22 22:10:42,476 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/16418e89-30b9-4caa-bf18-6fd8c89e6ecd 2024-10-22 22:10:42,489 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/61bb9d43-8ee0-40a1-b66b-53513488c752 2024-10-22 22:10:42,497 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/61bb9d43-8ee0-40a1-b66b-53513488c752 2024-10-22 22:10:42,504 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/d9259e1e-9ef9-4915-8b87-37b3105d8e3d 2024-10-22 22:10:42,510 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-22 22:10:42,511 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/16418e89-30b9-4caa-bf18-6fd8c89e6ecd 2024-10-22 22:10:42,522 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/61bb9d43-8ee0-40a1-b66b-53513488c752 2024-10-22 22:10:42,542 - INFO - Verified VN network id 9 for VN 16418e89-30b9-4caa-bf18-6fd8c89e6ecd 2024-10-22 22:10:42,542 - INFO - Verifications in API Server for VN ctest-vn-13578177 passed 2024-10-22 22:10:42,542 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/16418e89-30b9-4caa-bf18-6fd8c89e6ecd 2024-10-22 22:10:42,555 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/61bb9d43-8ee0-40a1-b66b-53513488c752 2024-10-22 22:10:42,563 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/61bb9d43-8ee0-40a1-b66b-53513488c752 2024-10-22 22:10:42,571 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/d9259e1e-9ef9-4915-8b87-37b3105d8e3d 2024-10-22 22:10:42,584 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85816677:ctest-vn-13578177', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85816677', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1603719662199721130', 'uuid-lslong': '13769878837554736845'}, 'enable': 'true', 'created': '2024-10-22T22:10:39', 'last-modified': '2024-10-22T22:10:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.349162'} 2024-10-22 22:10:42,591 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-22 22:10:42,592 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13578177 passed 2024-10-22 22:10:42,592 - DEBUG - ====Verifying policy data for ctest-vn-13578177 in API_Server ====== 2024-10-22 22:10:42,592 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-10-22 22:10:42,597 - DEBUG - Requesting: http://10.0.0.32:8082/domain/b6e1b82d-7c6a-47e4-b7cc-be216db617a3 2024-10-22 22:10:42,615 - DEBUG - Requesting: http://10.0.0.32:8082/project/dc8eb196-a0ea-4d9d-9991-6db00f4c5963 2024-10-22 22:10:42,698 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/16418e89-30b9-4caa-bf18-6fd8c89e6ecd 2024-10-22 22:10:42,712 - DEBUG - ==>Verifying data for policy with id: f71e7e97-0931-43e1-ae49-0e58e4c1c3aa, fqn: ['default-domain', 'ctest-TestBasicPolicy-85816677', 'ctest-policy-allow-all-65091577'] 2024-10-22 22:10:42,712 - INFO - VN ctest-vn-13578177 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-22 22:10:42,712 - DEBUG - Verifying the vn in opserver 2024-10-22 22:10:42,712 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85816677:ctest-vn-13578177 virtual network link through opserver 10.0.0.32 2024-10-22 22:10:42,712 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks 2024-10-22 22:10:43,007 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks 2024-10-22 22:10:43,094 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85816677:ctest-vn-13578177', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85816677:ctest-vn-13578177?flat'} 2024-10-22 22:10:43,094 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85816677:ctest-vn-13578177 is found in opserver 2024-10-22 22:10:43,104 - DEBUG - Do not have enough data to verify VN in agent 2024-10-22 22:10:43,110 - DEBUG - VRF ids for VN ctest-vn-13578177: {} 2024-10-22 22:10:43,110 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-10-22 22:10:43,116 - DEBUG - Requesting: http://10.0.0.32:8082/domain/b6e1b82d-7c6a-47e4-b7cc-be216db617a3 2024-10-22 22:10:43,129 - DEBUG - Requesting: http://10.0.0.32:8082/project/dc8eb196-a0ea-4d9d-9991-6db00f4c5963 2024-10-22 22:10:43,210 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/d034bc71-7099-4ddb-83b3-82702ef6011a 2024-10-22 22:10:43,226 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/d034bc71-7099-4ddb-83b3-82702ef6011a 2024-10-22 22:10:43,240 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/48f2dada-c82b-458b-b8f4-bfb23e6302a0 2024-10-22 22:10:43,250 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/48f2dada-c82b-458b-b8f4-bfb23e6302a0 2024-10-22 22:10:43,259 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/185396aa-7d65-4ab9-b37f-165fb42fd194 2024-10-22 22:10:43,267 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-22 22:10:43,267 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/d034bc71-7099-4ddb-83b3-82702ef6011a 2024-10-22 22:10:43,280 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/48f2dada-c82b-458b-b8f4-bfb23e6302a0 2024-10-22 22:10:43,301 - INFO - Verified VN network id 10 for VN d034bc71-7099-4ddb-83b3-82702ef6011a 2024-10-22 22:10:43,301 - INFO - Verifications in API Server for VN ctest-vn-91762112 passed 2024-10-22 22:10:43,301 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/d034bc71-7099-4ddb-83b3-82702ef6011a 2024-10-22 22:10:43,314 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/48f2dada-c82b-458b-b8f4-bfb23e6302a0 2024-10-22 22:10:43,323 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/48f2dada-c82b-458b-b8f4-bfb23e6302a0 2024-10-22 22:10:43,331 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/185396aa-7d65-4ab9-b37f-165fb42fd194 2024-10-22 22:10:43,345 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85816677:ctest-vn-91762112', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85816677', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15002823454084386267', 'uuid-lslong': '9490072258135589146'}, 'enable': 'true', 'created': '2024-10-22T22:10:40', 'last-modified': '2024-10-22T22:10:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.848861'} 2024-10-22 22:10:43,352 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-22 22:10:43,352 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91762112 passed 2024-10-22 22:10:43,352 - DEBUG - ====Verifying policy data for ctest-vn-91762112 in API_Server ====== 2024-10-22 22:10:43,353 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-10-22 22:10:43,358 - DEBUG - Requesting: http://10.0.0.32:8082/domain/b6e1b82d-7c6a-47e4-b7cc-be216db617a3 2024-10-22 22:10:43,371 - DEBUG - Requesting: http://10.0.0.32:8082/project/dc8eb196-a0ea-4d9d-9991-6db00f4c5963 2024-10-22 22:10:43,450 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/d034bc71-7099-4ddb-83b3-82702ef6011a 2024-10-22 22:10:43,465 - DEBUG - ==>Verifying data for policy with id: f71e7e97-0931-43e1-ae49-0e58e4c1c3aa, fqn: ['default-domain', 'ctest-TestBasicPolicy-85816677', 'ctest-policy-allow-all-65091577'] 2024-10-22 22:10:43,465 - INFO - VN ctest-vn-91762112 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-22 22:10:43,465 - DEBUG - Verifying the vn in opserver 2024-10-22 22:10:43,466 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85816677:ctest-vn-91762112 virtual network link through opserver 10.0.0.32 2024-10-22 22:10:43,466 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks 2024-10-22 22:10:43,478 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85816677:ctest-vn-91762112', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85816677:ctest-vn-91762112?flat'} 2024-10-22 22:10:43,479 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85816677:ctest-vn-91762112 is found in opserver 2024-10-22 22:10:43,490 - DEBUG - Do not have enough data to verify VN in agent 2024-10-22 22:10:43,496 - DEBUG - VRF ids for VN ctest-vn-91762112: {} 2024-10-22 22:10:43,548 - DEBUG - Services list from nova: [, , ] 2024-10-22 22:10:44,663 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2127-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2127-1) 2024-10-22 22:10:45,852 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2127-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2127-1) 2024-10-22 22:10:45,852 - INFO - Waiting for VM ctest-TestBasicPolicy-85816677-99566237 to be up.. 2024-10-22 22:10:45,939 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-22 22:10:51,020 - DEBUG - VM is in ACTIVE state now 2024-10-22 22:10:51,021 - INFO - VM name : ctest-TestBasicPolicy-85816677-99566237 2024-10-22 22:10:51,098 - DEBUG - VM ctest-TestBasicPolicy-85816677-99566237 ID is 02d09eb7-f5e1-4b56-bd28-f998d4648389 2024-10-22 22:10:51,115 - DEBUG - VM ctest-TestBasicPolicy-85816677-99566237 launched on Node cn-jenkins-deploy-platform-ansible-os-2127-1 2024-10-22 22:10:51,194 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/02d09eb7-f5e1-4b56-bd28-f998d4648389 2024-10-22 22:10:51,207 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine-interface/25b56dbc-7a37-4242-94ae-3cfa1412fa76 2024-10-22 22:10:54,492 - 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 1036ms') 2024-10-22 22:10:54,493 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-85816677-99566237 failed! 2024-10-22 22:10:54,551 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-85816677:ctest-vn-13578177 is 173.137.147.129 and allocation pool is NOT set 2024-10-22 22:10:56,608 - 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=3.08 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.433 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.433/1.758/3.084/1.325 ms') 2024-10-22 22:10:56,608 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-85816677-99566237 passed 2024-10-22 22:10:56,772 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-22 22:10:56,772 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-85816677-99566237, IP 173.137.147.131, Port 22 2024-10-22 22:10:56,947 - DEBUG - VM ctest-TestBasicPolicy-85816677-99566237 is ready for SSH connections 2024-10-22 22:10:56,947 - INFO - Waiting for VM ctest-TestBasicPolicy-85816677-79301424 to be up.. 2024-10-22 22:10:57,046 - DEBUG - VM is in ACTIVE state now 2024-10-22 22:10:57,046 - INFO - VM name : ctest-TestBasicPolicy-85816677-79301424 2024-10-22 22:10:57,126 - DEBUG - VM ctest-TestBasicPolicy-85816677-79301424 ID is 600d05f3-08a8-4129-9243-6daa72295e41 2024-10-22 22:10:57,126 - DEBUG - VM ctest-TestBasicPolicy-85816677-79301424 launched on Node cn-jenkins-deploy-platform-ansible-os-2127-1 2024-10-22 22:10:57,202 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/600d05f3-08a8-4129-9243-6daa72295e41 2024-10-22 22:10:57,213 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine-interface/6d5f6f09-6144-4979-8ef7-a013af866ad2 2024-10-22 22:10:58,469 - 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.92 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.683 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.683/1.799/2.915/1.116 ms') 2024-10-22 22:10:58,469 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-85816677-79301424 passed 2024-10-22 22:10:58,628 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-22 22:10:58,628 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-85816677-79301424, IP 168.248.132.67, Port 22 2024-10-22 22:10:58,783 - DEBUG - VM ctest-TestBasicPolicy-85816677-79301424 is ready for SSH connections 2024-10-22 22:10:58,783 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-22 22:10:58,783 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 168.248.132.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.32, gateway password: c0ntrail123 2024-10-22 22:10:58,783 - DEBUG - ping -s 56 -c 3 -W 1 168.248.132.67 2024-10-22 22:11:02,458 - DEBUG - PING 168.248.132.67 (168.248.132.67): 56 data bytes 64 bytes from 168.248.132.67: seq=0 ttl=63 time=2.969 ms 64 bytes from 168.248.132.67: seq=1 ttl=63 time=1.348 ms 64 bytes from 168.248.132.67: seq=2 ttl=63 time=0.823 ms --- 168.248.132.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.823/1.713/2.969 ms 2024-10-22 22:11:02,458 - INFO - Ping to IP 168.248.132.67 from VM ctest-TestBasicPolicy-85816677-99566237 passed 2024-10-22 22:11:02,655 - DEBUG - Policy Update Response {"network-policy": {"uuid": "f71e7e97-0931-43e1-ae49-0e58e4c1c3aa", "href": "http://10.0.0.32:8082/network-policy/f71e7e97-0931-43e1-ae49-0e58e4c1c3aa"}} 2024-10-22 22:11:02,656 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-22 22:11:02,656 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 168.248.132.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.32, gateway password: c0ntrail123 2024-10-22 22:11:02,656 - DEBUG - ping -s 56 -c 3 -W 1 168.248.132.67 2024-10-22 22:11:05,858 - DEBUG - PING 168.248.132.67 (168.248.132.67): 56 data bytes 64 bytes from 168.248.132.67: seq=0 ttl=63 time=1.643 ms --- 168.248.132.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.643/1.643/1.643 ms 2024-10-22 22:11:05,858 - WARNING - Ping to IP 168.248.132.67 from VM ctest-TestBasicPolicy-85816677-99566237 failed 2024-10-22 22:11:05,858 - INFO - Deleting VM ctest-TestBasicPolicy-85816677-79301424 2024-10-22 22:11:05,922 - INFO - Deleting VM ctest-TestBasicPolicy-85816677-99566237 2024-10-22 22:11:06,343 - INFO - Deleted policy ctest-policy-allow-all-65091577 2024-10-22 22:11:06,343 - INFO - Deleting VN ctest-vn-91762112 2024-10-22 22:11:06,384 - DEBUG - VN d034bc71-7099-4ddb-83b3-82702ef6011a still in use: Unable to complete operation on network d034bc71-7099-4ddb-83b3-82702ef6011a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-669990f2-5767-4652-9c66-949e48e9608f'] 2024-10-22 22:11:06,384 - WARNING - Deleting VN ctest-vn-91762112 failed..Will retry 2024-10-22 22:11:08,507 - DEBUG - Response for deleting network () 2024-10-22 22:11:08,508 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/48f2dada-c82b-458b-b8f4-bfb23e6302a0 2024-10-22 22:11:08,514 - DEBUG - Response Code: 404 2024-10-22 22:11:08,514 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-10-22 22:11:08,520 - DEBUG - Requesting: http://10.0.0.32:8082/domain/b6e1b82d-7c6a-47e4-b7cc-be216db617a3 2024-10-22 22:11:08,577 - DEBUG - Requesting: http://10.0.0.32:8082/project/dc8eb196-a0ea-4d9d-9991-6db00f4c5963 2024-10-22 22:11:08,661 - INFO - Validated that VN ctest-vn-91762112 is not found in API Server 2024-10-22 22:11:08,671 - DEBUG - VN ctest-vn-91762112 is not present in Agent 10.0.0.32 2024-10-22 22:11:08,671 - INFO - Validated that VN ctest-vn-91762112 is not in any agent 2024-10-22 22:11:08,686 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-91762112 info 2024-10-22 22:11:08,686 - INFO - Deleting VN ctest-vn-13578177 2024-10-22 22:11:08,796 - DEBUG - Response for deleting network () 2024-10-22 22:11:08,796 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/61bb9d43-8ee0-40a1-b66b-53513488c752 2024-10-22 22:11:08,802 - DEBUG - Response Code: 404 2024-10-22 22:11:08,803 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-10-22 22:11:08,809 - DEBUG - Requesting: http://10.0.0.32:8082/domain/b6e1b82d-7c6a-47e4-b7cc-be216db617a3 2024-10-22 22:11:08,865 - DEBUG - Requesting: http://10.0.0.32:8082/project/dc8eb196-a0ea-4d9d-9991-6db00f4c5963 2024-10-22 22:11:08,949 - INFO - Validated that VN ctest-vn-13578177 is not found in API Server 2024-10-22 22:11:08,959 - DEBUG - VN ctest-vn-13578177 is not present in Agent 10.0.0.32 2024-10-22 22:11:08,959 - INFO - Validated that VN ctest-vn-13578177 is not in any agent 2024-10-22 22:11:08,973 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-13578177 info 2024-10-22 22:11:09,230 - DEBUG - No XMPP flaps were noticed during the test
2024-10-22 22:11:09,230 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-10-22 22:11:09,230 - INFO - -------------------------------------------------------------------------------- 2024-10-22 22:11:09,944 - INFO - Deleted project: ctest-TestBasicPolicy-85816677, ID : dc8eb196-a0ea-4d9d-9991-6db00f4c5963