2024-11-07 06:57:00,691 - INFO - Domain Default found not creating 2024-11-07 06:57:00,853 - INFO - Project ctest-TestBasicPolicy-04026526 not found, creating it 2024-11-07 06:57:01,341 - INFO - Created Project:ctest-TestBasicPolicy-04026526, ID : 8d5df382-2b01-4698-a6a1-c346ae0ffff1 2024-11-07 06:57:02,801 - INFO - ================================================================================ 2024-11-07 06:57:02,801 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-07 06:57:02,802 - 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-07 06:57:03,057 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.14': '0'}} with 2024-11-07 06:57:03,058 - INFO - Initial checks done. Running the testcase now 2024-11-07 06:57:03,058 - INFO - 2024-11-07 06:57:03,616 - DEBUG - Response for create_network : {'network': {'id': '7afe9bc6-7152-482b-9ae8-62e52110a391', 'name': 'ctest-vn-25775652', 'tenant_id': '8d5df3822b014698a6a1c346ae0ffff1', 'project_id': '8d5df3822b014698a6a1c346ae0ffff1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04026526', 'ctest-vn-25775652'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 06:57:03,786 - DEBUG - Response for create_subnet : {'subnet': {'id': '3fb487f2-9632-418e-8fc7-a3f9a1d34b11', 'name': '', 'tenant_id': '8d5df3822b014698a6a1c346ae0ffff1', 'network_id': '7afe9bc6-7152-482b-9ae8-62e52110a391', 'ip_version': 4, 'cidr': '141.39.104.192/26', 'allocation_pools': [{'start': '141.39.104.194', 'end': '141.39.104.254'}], 'gateway_ip': '141.39.104.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '141.39.104.194', 'tags': [], 'project_id': '8d5df3822b014698a6a1c346ae0ffff1'}} 2024-11-07 06:57:03,804 - INFO - Created VN ctest-vn-25775652 2024-11-07 06:57:03,860 - DEBUG - VN ctest-vn-25775652 UUID is 7afe9bc6-7152-482b-9ae8-62e52110a391 2024-11-07 06:57:04,178 - DEBUG - Response for create_network : {'network': {'id': '5503d6ed-4290-4ab6-bff3-59452f8bf088', 'name': 'ctest-vn-03286335', 'tenant_id': '8d5df3822b014698a6a1c346ae0ffff1', 'project_id': '8d5df3822b014698a6a1c346ae0ffff1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04026526', 'ctest-vn-03286335'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 06:57:04,384 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a455b59d-58f8-46b4-b750-cb7089b43a41', 'name': '', 'tenant_id': '8d5df3822b014698a6a1c346ae0ffff1', 'network_id': '5503d6ed-4290-4ab6-bff3-59452f8bf088', 'ip_version': 4, 'cidr': '11.48.36.64/26', 'allocation_pools': [{'start': '11.48.36.66', 'end': '11.48.36.126'}], 'gateway_ip': '11.48.36.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.48.36.66', 'tags': [], 'project_id': '8d5df3822b014698a6a1c346ae0ffff1'}} 2024-11-07 06:57:04,406 - INFO - Created VN ctest-vn-03286335 2024-11-07 06:57:04,464 - DEBUG - VN ctest-vn-03286335 UUID is 5503d6ed-4290-4ab6-bff3-59452f8bf088 2024-11-07 06:57:04,589 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04026526:ctest-vn-25775652, 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-04026526:ctest-vn-03286335, 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-07 06:57:04,899 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7afe9bc6-7152-482b-9ae8-62e52110a391', 'name': 'ctest-vn-25775652', 'tenant_id': '8d5df3822b014698a6a1c346ae0ffff1', 'project_id': '8d5df3822b014698a6a1c346ae0ffff1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3fb487f2-9632-418e-8fc7-a3f9a1d34b11'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04026526', 'ctest-vn-25775652'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04026526', 'ctest-policy-allow-all-60884933']], 'subnet_ipam': [{'subnet_cidr': '141.39.104.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-07 06:57:05,087 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5503d6ed-4290-4ab6-bff3-59452f8bf088', 'name': 'ctest-vn-03286335', 'tenant_id': '8d5df3822b014698a6a1c346ae0ffff1', 'project_id': '8d5df3822b014698a6a1c346ae0ffff1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a455b59d-58f8-46b4-b750-cb7089b43a41'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04026526', 'ctest-vn-03286335'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04026526', 'ctest-policy-allow-all-60884933']], 'subnet_ipam': [{'subnet_cidr': '11.48.36.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-07 06:57:05,264 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-11-07 06:57:05,557 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-11-07 06:57:05,587 - DEBUG - Requesting: http://10.0.0.29:8082/domain/4b532f27-e9d0-42ad-8618-92fdbd522c96 2024-11-07 06:57:05,604 - DEBUG - Requesting: http://10.0.0.29:8082/project/8d5df382-2b01-4698-a6a1-c346ae0ffff1 2024-11-07 06:57:05,687 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/7afe9bc6-7152-482b-9ae8-62e52110a391 2024-11-07 06:57:05,702 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/7afe9bc6-7152-482b-9ae8-62e52110a391 2024-11-07 06:57:05,717 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/2717e388-5174-40d5-8bee-8d001a0f840e 2024-11-07 06:57:05,725 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/2717e388-5174-40d5-8bee-8d001a0f840e 2024-11-07 06:57:05,733 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/8fa78331-6912-4a7c-8f4b-64c355c9b051 2024-11-07 06:57:05,740 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-07 06:57:05,740 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/7afe9bc6-7152-482b-9ae8-62e52110a391 2024-11-07 06:57:05,752 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/2717e388-5174-40d5-8bee-8d001a0f840e 2024-11-07 06:57:05,771 - INFO - Verified VN network id 9 for VN 7afe9bc6-7152-482b-9ae8-62e52110a391 2024-11-07 06:57:05,771 - INFO - Verifications in API Server for VN ctest-vn-25775652 passed 2024-11-07 06:57:05,771 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/7afe9bc6-7152-482b-9ae8-62e52110a391 2024-11-07 06:57:05,784 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/2717e388-5174-40d5-8bee-8d001a0f840e 2024-11-07 06:57:05,793 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/2717e388-5174-40d5-8bee-8d001a0f840e 2024-11-07 06:57:05,800 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/8fa78331-6912-4a7c-8f4b-64c355c9b051 2024-11-07 06:57:05,812 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04026526:ctest-vn-25775652', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04026526', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8862692393318762539', 'uuid-lslong': '11162280412679545745'}, 'enable': 'true', 'created': '2024-11-07T06:57:03', 'last-modified': '2024-11-07T06:57:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.933719'} 2024-11-07 06:57:05,819 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-07 06:57:05,819 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25775652 passed 2024-11-07 06:57:05,819 - DEBUG - ====Verifying policy data for ctest-vn-25775652 in API_Server ====== 2024-11-07 06:57:05,819 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-11-07 06:57:05,825 - DEBUG - Requesting: http://10.0.0.29:8082/domain/4b532f27-e9d0-42ad-8618-92fdbd522c96 2024-11-07 06:57:05,837 - DEBUG - Requesting: http://10.0.0.29:8082/project/8d5df382-2b01-4698-a6a1-c346ae0ffff1 2024-11-07 06:57:05,917 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/7afe9bc6-7152-482b-9ae8-62e52110a391 2024-11-07 06:57:05,930 - DEBUG - ==>Verifying data for policy with id: 18ec3962-6c41-45ca-8fc7-afdb74bf382a, fqn: ['default-domain', 'ctest-TestBasicPolicy-04026526', 'ctest-policy-allow-all-60884933'] 2024-11-07 06:57:05,930 - INFO - VN ctest-vn-25775652 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-07 06:57:05,930 - DEBUG - Verifying the vn in opserver 2024-11-07 06:57:05,930 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04026526:ctest-vn-25775652 virtual network link through opserver 10.0.0.29 2024-11-07 06:57:05,930 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-11-07 06:57:06,223 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-11-07 06:57:06,284 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04026526:ctest-vn-25775652', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04026526:ctest-vn-25775652?flat'} 2024-11-07 06:57:06,284 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04026526:ctest-vn-25775652 is found in opserver 2024-11-07 06:57:06,295 - DEBUG - Do not have enough data to verify VN in agent 2024-11-07 06:57:06,300 - DEBUG - VRF ids for VN ctest-vn-25775652: {} 2024-11-07 06:57:06,300 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-11-07 06:57:06,306 - DEBUG - Requesting: http://10.0.0.29:8082/domain/4b532f27-e9d0-42ad-8618-92fdbd522c96 2024-11-07 06:57:06,321 - DEBUG - Requesting: http://10.0.0.29:8082/project/8d5df382-2b01-4698-a6a1-c346ae0ffff1 2024-11-07 06:57:06,399 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/5503d6ed-4290-4ab6-bff3-59452f8bf088 2024-11-07 06:57:06,415 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/5503d6ed-4290-4ab6-bff3-59452f8bf088 2024-11-07 06:57:06,429 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/7d0a49be-1619-4a95-aebb-c3022678aebd 2024-11-07 06:57:06,439 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/7d0a49be-1619-4a95-aebb-c3022678aebd 2024-11-07 06:57:06,448 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/49aa6f24-3115-4bba-8dfe-cac725718e7c 2024-11-07 06:57:06,456 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-07 06:57:06,456 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/5503d6ed-4290-4ab6-bff3-59452f8bf088 2024-11-07 06:57:06,470 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/7d0a49be-1619-4a95-aebb-c3022678aebd 2024-11-07 06:57:06,492 - INFO - Verified VN network id 10 for VN 5503d6ed-4290-4ab6-bff3-59452f8bf088 2024-11-07 06:57:06,493 - INFO - Verifications in API Server for VN ctest-vn-03286335 passed 2024-11-07 06:57:06,493 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/5503d6ed-4290-4ab6-bff3-59452f8bf088 2024-11-07 06:57:06,508 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/7d0a49be-1619-4a95-aebb-c3022678aebd 2024-11-07 06:57:06,516 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/7d0a49be-1619-4a95-aebb-c3022678aebd 2024-11-07 06:57:06,524 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/49aa6f24-3115-4bba-8dfe-cac725718e7c 2024-11-07 06:57:06,538 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04026526:ctest-vn-03286335', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04026526', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6125976232666352310', 'uuid-lslong': '13831497034270240904'}, 'enable': 'true', 'created': '2024-11-07T06:57:04', 'last-modified': '2024-11-07T06:57:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.474100'} 2024-11-07 06:57:06,545 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-07 06:57:06,545 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03286335 passed 2024-11-07 06:57:06,546 - DEBUG - ====Verifying policy data for ctest-vn-03286335 in API_Server ====== 2024-11-07 06:57:06,546 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-11-07 06:57:06,553 - DEBUG - Requesting: http://10.0.0.29:8082/domain/4b532f27-e9d0-42ad-8618-92fdbd522c96 2024-11-07 06:57:06,567 - DEBUG - Requesting: http://10.0.0.29:8082/project/8d5df382-2b01-4698-a6a1-c346ae0ffff1 2024-11-07 06:57:06,654 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/5503d6ed-4290-4ab6-bff3-59452f8bf088 2024-11-07 06:57:06,668 - DEBUG - ==>Verifying data for policy with id: 18ec3962-6c41-45ca-8fc7-afdb74bf382a, fqn: ['default-domain', 'ctest-TestBasicPolicy-04026526', 'ctest-policy-allow-all-60884933'] 2024-11-07 06:57:06,668 - INFO - VN ctest-vn-03286335 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-07 06:57:06,668 - DEBUG - Verifying the vn in opserver 2024-11-07 06:57:06,668 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04026526:ctest-vn-03286335 virtual network link through opserver 10.0.0.29 2024-11-07 06:57:06,668 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-11-07 06:57:06,680 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04026526:ctest-vn-03286335', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04026526:ctest-vn-03286335?flat'} 2024-11-07 06:57:06,680 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04026526:ctest-vn-03286335 is found in opserver 2024-11-07 06:57:06,694 - DEBUG - Do not have enough data to verify VN in agent 2024-11-07 06:57:06,701 - DEBUG - VRF ids for VN ctest-vn-03286335: {} 2024-11-07 06:57:06,760 - DEBUG - Services list from nova: [, , ] 2024-11-07 06:57:07,784 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2211-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2211-1) 2024-11-07 06:57:09,002 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2211-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2211-1) 2024-11-07 06:57:09,002 - INFO - Waiting for VM ctest-TestBasicPolicy-04026526-33227210 to be up.. 2024-11-07 06:57:09,093 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-07 06:57:14,239 - DEBUG - VM is in ACTIVE state now 2024-11-07 06:57:14,239 - INFO - VM name : ctest-TestBasicPolicy-04026526-33227210 2024-11-07 06:57:14,399 - DEBUG - VM ctest-TestBasicPolicy-04026526-33227210 ID is 41ce339c-3fde-4287-becf-721dc6824323 2024-11-07 06:57:14,428 - DEBUG - VM ctest-TestBasicPolicy-04026526-33227210 launched on Node cn-jenkins-deploy-platform-ansible-os-2211-1 2024-11-07 06:57:14,509 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/41ce339c-3fde-4287-becf-721dc6824323 2024-11-07 06:57:14,518 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/9a1b05b5-b833-4403-b087-7bd2454c2021 2024-11-07 06:57:17,771 - 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 1011ms') 2024-11-07 06:57:17,771 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-04026526-33227210 failed! 2024-11-07 06:57:17,832 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-04026526:ctest-vn-25775652 is 141.39.104.193 and allocation pool is NOT set 2024-11-07 06:57:21,899 - 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 1007ms') 2024-11-07 06:57:21,899 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-04026526-33227210 failed! 2024-11-07 06:57:21,968 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-04026526:ctest-vn-25775652 is 141.39.104.193 and allocation pool is NOT set 2024-11-07 06:57:24,029 - 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=2.73 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.534 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.534/1.632/2.731/1.098 ms') 2024-11-07 06:57:24,029 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-04026526-33227210 passed 2024-11-07 06:57:24,192 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 06:57:24,192 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-04026526-33227210, IP 141.39.104.195, Port 22 2024-11-07 06:57:24,352 - DEBUG - VM ctest-TestBasicPolicy-04026526-33227210 is ready for SSH connections 2024-11-07 06:57:24,352 - INFO - Waiting for VM ctest-TestBasicPolicy-04026526-01859896 to be up.. 2024-11-07 06:57:24,439 - DEBUG - VM is in ACTIVE state now 2024-11-07 06:57:24,440 - INFO - VM name : ctest-TestBasicPolicy-04026526-01859896 2024-11-07 06:57:24,529 - DEBUG - VM ctest-TestBasicPolicy-04026526-01859896 ID is d8a0c46b-653f-45fb-b07e-ee2cbef3b047 2024-11-07 06:57:24,529 - DEBUG - VM ctest-TestBasicPolicy-04026526-01859896 launched on Node cn-jenkins-deploy-platform-ansible-os-2211-1 2024-11-07 06:57:24,614 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/d8a0c46b-653f-45fb-b07e-ee2cbef3b047 2024-11-07 06:57:24,623 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/3bb2c8c2-ed00-4650-871c-ba36e5eee8fd 2024-11-07 06:57:25,882 - 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.59 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.299 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.299/1.445/2.591/1.146 ms') 2024-11-07 06:57:25,883 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-04026526-01859896 passed 2024-11-07 06:57:26,036 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 06:57:26,037 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-04026526-01859896, IP 11.48.36.67, Port 22 2024-11-07 06:57:26,196 - DEBUG - VM ctest-TestBasicPolicy-04026526-01859896 is ready for SSH connections 2024-11-07 06:57:26,196 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 06:57:26,196 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 11.48.36.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-11-07 06:57:26,196 - DEBUG - ping -s 56 -c 3 -W 1 11.48.36.67 2024-11-07 06:57:30,169 - DEBUG - PING 11.48.36.67 (11.48.36.67): 56 data bytes 64 bytes from 11.48.36.67: seq=0 ttl=63 time=3.102 ms 64 bytes from 11.48.36.67: seq=1 ttl=63 time=0.845 ms 64 bytes from 11.48.36.67: seq=2 ttl=63 time=0.738 ms --- 11.48.36.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.738/1.561/3.102 ms 2024-11-07 06:57:30,169 - INFO - Ping to IP 11.48.36.67 from VM ctest-TestBasicPolicy-04026526-33227210 passed 2024-11-07 06:57:30,360 - DEBUG - Policy Update Response {"network-policy": {"uuid": "18ec3962-6c41-45ca-8fc7-afdb74bf382a", "href": "http://10.0.0.29:8082/network-policy/18ec3962-6c41-45ca-8fc7-afdb74bf382a"}} 2024-11-07 06:57:30,360 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 06:57:30,360 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 11.48.36.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-11-07 06:57:30,360 - DEBUG - ping -s 56 -c 3 -W 1 11.48.36.67 2024-11-07 06:57:33,566 - DEBUG - PING 11.48.36.67 (11.48.36.67): 56 data bytes --- 11.48.36.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-11-07 06:57:33,566 - WARNING - Ping to IP 11.48.36.67 from VM ctest-TestBasicPolicy-04026526-33227210 failed 2024-11-07 06:57:33,566 - INFO - Deleting VM ctest-TestBasicPolicy-04026526-01859896 2024-11-07 06:57:33,632 - INFO - Deleting VM ctest-TestBasicPolicy-04026526-33227210 2024-11-07 06:57:34,037 - INFO - Deleted policy ctest-policy-allow-all-60884933 2024-11-07 06:57:34,037 - INFO - Deleting VN ctest-vn-03286335 2024-11-07 06:57:34,083 - DEBUG - VN 5503d6ed-4290-4ab6-bff3-59452f8bf088 still in use: Unable to complete operation on network 5503d6ed-4290-4ab6-bff3-59452f8bf088. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-4df36191-9744-4f19-b0ec-4ddfc1690a8c'] 2024-11-07 06:57:34,083 - WARNING - Deleting VN ctest-vn-03286335 failed..Will retry 2024-11-07 06:57:36,201 - DEBUG - Response for deleting network () 2024-11-07 06:57:36,201 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/7d0a49be-1619-4a95-aebb-c3022678aebd 2024-11-07 06:57:36,208 - DEBUG - Response Code: 404 2024-11-07 06:57:36,208 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-11-07 06:57:36,214 - DEBUG - Requesting: http://10.0.0.29:8082/domain/4b532f27-e9d0-42ad-8618-92fdbd522c96 2024-11-07 06:57:36,271 - DEBUG - Requesting: http://10.0.0.29:8082/project/8d5df382-2b01-4698-a6a1-c346ae0ffff1 2024-11-07 06:57:36,349 - INFO - Validated that VN ctest-vn-03286335 is not found in API Server 2024-11-07 06:57:36,359 - DEBUG - VN ctest-vn-03286335 is not present in Agent 10.0.0.29 2024-11-07 06:57:36,359 - INFO - Validated that VN ctest-vn-03286335 is not in any agent 2024-11-07 06:57:36,374 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-03286335 info 2024-11-07 06:57:36,374 - INFO - Deleting VN ctest-vn-25775652 2024-11-07 06:57:36,482 - DEBUG - Response for deleting network () 2024-11-07 06:57:36,482 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/2717e388-5174-40d5-8bee-8d001a0f840e 2024-11-07 06:57:36,490 - DEBUG - Response Code: 404 2024-11-07 06:57:36,490 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-11-07 06:57:36,497 - DEBUG - Requesting: http://10.0.0.29:8082/domain/4b532f27-e9d0-42ad-8618-92fdbd522c96 2024-11-07 06:57:36,554 - DEBUG - Requesting: http://10.0.0.29:8082/project/8d5df382-2b01-4698-a6a1-c346ae0ffff1 2024-11-07 06:57:36,631 - INFO - Validated that VN ctest-vn-25775652 is not found in API Server 2024-11-07 06:57:36,642 - DEBUG - VN ctest-vn-25775652 is not present in Agent 10.0.0.29 2024-11-07 06:57:36,642 - INFO - Validated that VN ctest-vn-25775652 is not in any agent 2024-11-07 06:57:36,658 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-25775652 info 2024-11-07 06:57:36,925 - DEBUG - No XMPP flaps were noticed during the test
2024-11-07 06:57:36,925 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:34]
2024-11-07 06:57:36,925 - INFO - -------------------------------------------------------------------------------- 2024-11-07 06:57:37,633 - INFO - Deleted project: ctest-TestBasicPolicy-04026526, ID : 8d5df382-2b01-4698-a6a1-c346ae0ffff1