2024-11-03 22:13:19,156 - INFO - Domain Default found not creating 2024-11-03 22:13:19,360 - INFO - Project ctest-TestBasicPolicy-22963648 not found, creating it 2024-11-03 22:13:19,905 - INFO - Created Project:ctest-TestBasicPolicy-22963648, ID : 705298d0-6c86-4aa4-9e75-90e35c8478b2 2024-11-03 22:13:21,712 - INFO - ================================================================================ 2024-11-03 22:13:21,713 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-03 22:13:21,714 - 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-03 22:13:21,977 - DEBUG - Nothing to compare xmpp stats {'10.0.0.44': {'10.20.0.10': '0'}} with 2024-11-03 22:13:21,977 - INFO - Initial checks done. Running the testcase now 2024-11-03 22:13:21,978 - INFO - 2024-11-03 22:13:22,655 - DEBUG - Response for create_network : {'network': {'id': '2079d853-55e6-4291-ad92-78156dc0007e', 'name': 'ctest-vn-79875645', 'tenant_id': '705298d06c864aa49e7590e35c8478b2', 'project_id': '705298d06c864aa49e7590e35c8478b2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22963648', 'ctest-vn-79875645'], 'port_security_enabled': True, 'description': ''}} 2024-11-03 22:13:22,898 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e8dcf2e2-a50e-4196-9377-f8e0b3c283a4', 'name': '', 'tenant_id': '705298d06c864aa49e7590e35c8478b2', 'network_id': '2079d853-55e6-4291-ad92-78156dc0007e', 'ip_version': 4, 'cidr': '165.107.122.0/26', 'allocation_pools': [{'start': '165.107.122.2', 'end': '165.107.122.62'}], 'gateway_ip': '165.107.122.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.107.122.2', 'tags': [], 'project_id': '705298d06c864aa49e7590e35c8478b2'}} 2024-11-03 22:13:22,921 - INFO - Created VN ctest-vn-79875645 2024-11-03 22:13:22,980 - DEBUG - VN ctest-vn-79875645 UUID is 2079d853-55e6-4291-ad92-78156dc0007e 2024-11-03 22:13:23,407 - DEBUG - Response for create_network : {'network': {'id': '1e777786-498d-4be7-ab81-3cf4d2af82f4', 'name': 'ctest-vn-96013211', 'tenant_id': '705298d06c864aa49e7590e35c8478b2', 'project_id': '705298d06c864aa49e7590e35c8478b2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22963648', 'ctest-vn-96013211'], 'port_security_enabled': True, 'description': ''}} 2024-11-03 22:13:23,611 - DEBUG - Response for create_subnet : {'subnet': {'id': 'af205ca0-ce7e-4cb3-b51e-c174dfb78b5a', 'name': '', 'tenant_id': '705298d06c864aa49e7590e35c8478b2', 'network_id': '1e777786-498d-4be7-ab81-3cf4d2af82f4', 'ip_version': 4, 'cidr': '196.54.2.64/26', 'allocation_pools': [{'start': '196.54.2.66', 'end': '196.54.2.126'}], 'gateway_ip': '196.54.2.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.54.2.66', 'tags': [], 'project_id': '705298d06c864aa49e7590e35c8478b2'}} 2024-11-03 22:13:23,634 - INFO - Created VN ctest-vn-96013211 2024-11-03 22:13:23,696 - DEBUG - VN ctest-vn-96013211 UUID is 1e777786-498d-4be7-ab81-3cf4d2af82f4 2024-11-03 22:13:23,837 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-22963648:ctest-vn-79875645, 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-22963648:ctest-vn-96013211, 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-03 22:13:24,209 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2079d853-55e6-4291-ad92-78156dc0007e', 'name': 'ctest-vn-79875645', 'tenant_id': '705298d06c864aa49e7590e35c8478b2', 'project_id': '705298d06c864aa49e7590e35c8478b2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e8dcf2e2-a50e-4196-9377-f8e0b3c283a4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22963648', 'ctest-vn-79875645'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22963648', 'ctest-policy-allow-all-77799685']], 'subnet_ipam': [{'subnet_cidr': '165.107.122.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-03 22:13:24,494 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1e777786-498d-4be7-ab81-3cf4d2af82f4', 'name': 'ctest-vn-96013211', 'tenant_id': '705298d06c864aa49e7590e35c8478b2', 'project_id': '705298d06c864aa49e7590e35c8478b2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['af205ca0-ce7e-4cb3-b51e-c174dfb78b5a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22963648', 'ctest-vn-96013211'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22963648', 'ctest-policy-allow-all-77799685']], 'subnet_ipam': [{'subnet_cidr': '196.54.2.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-03 22:13:24,684 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-11-03 22:13:25,035 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-11-03 22:13:25,072 - DEBUG - Requesting: http://10.0.0.44:8082/domain/6645c1a8-ae5a-4695-964c-fc9e9d962ed1 2024-11-03 22:13:25,096 - DEBUG - Requesting: http://10.0.0.44:8082/project/705298d0-6c86-4aa4-9e75-90e35c8478b2 2024-11-03 22:13:25,196 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/2079d853-55e6-4291-ad92-78156dc0007e 2024-11-03 22:13:25,218 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/2079d853-55e6-4291-ad92-78156dc0007e 2024-11-03 22:13:25,236 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/158a3cc5-37ed-4a30-8597-ba2886ad4ebe 2024-11-03 22:13:25,249 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/158a3cc5-37ed-4a30-8597-ba2886ad4ebe 2024-11-03 22:13:25,263 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/30f67ca9-25e4-45d3-8d6a-e675ab508752 2024-11-03 22:13:25,275 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-03 22:13:25,275 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/2079d853-55e6-4291-ad92-78156dc0007e 2024-11-03 22:13:25,293 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/158a3cc5-37ed-4a30-8597-ba2886ad4ebe 2024-11-03 22:13:25,319 - INFO - Verified VN network id 7 for VN 2079d853-55e6-4291-ad92-78156dc0007e 2024-11-03 22:13:25,319 - INFO - Verifications in API Server for VN ctest-vn-79875645 passed 2024-11-03 22:13:25,319 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/2079d853-55e6-4291-ad92-78156dc0007e 2024-11-03 22:13:25,338 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/158a3cc5-37ed-4a30-8597-ba2886ad4ebe 2024-11-03 22:13:25,352 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/158a3cc5-37ed-4a30-8597-ba2886ad4ebe 2024-11-03 22:13:25,365 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/30f67ca9-25e4-45d3-8d6a-e675ab508752 2024-11-03 22:13:25,386 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22963648:ctest-vn-79875645', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22963648', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2340139333830722193', 'uuid-lslong': '12507191148592234622'}, 'enable': 'true', 'created': '2024-11-03T22:13:22', 'last-modified': '2024-11-03T22:13:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.213416'} 2024-11-03 22:13:25,400 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-03 22:13:25,400 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79875645 passed 2024-11-03 22:13:25,400 - DEBUG - ====Verifying policy data for ctest-vn-79875645 in API_Server ====== 2024-11-03 22:13:25,400 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-11-03 22:13:25,408 - DEBUG - Requesting: http://10.0.0.44:8082/domain/6645c1a8-ae5a-4695-964c-fc9e9d962ed1 2024-11-03 22:13:25,423 - DEBUG - Requesting: http://10.0.0.44:8082/project/705298d0-6c86-4aa4-9e75-90e35c8478b2 2024-11-03 22:13:25,519 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/2079d853-55e6-4291-ad92-78156dc0007e 2024-11-03 22:13:25,537 - DEBUG - ==>Verifying data for policy with id: a7b04025-5fb5-4641-9900-737957fa1f64, fqn: ['default-domain', 'ctest-TestBasicPolicy-22963648', 'ctest-policy-allow-all-77799685'] 2024-11-03 22:13:25,537 - INFO - VN ctest-vn-79875645 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-03 22:13:25,537 - DEBUG - Verifying the vn in opserver 2024-11-03 22:13:25,538 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22963648:ctest-vn-79875645 virtual network link through opserver 10.0.0.44 2024-11-03 22:13:25,538 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks 2024-11-03 22:13:25,892 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks 2024-11-03 22:13:25,978 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22963648:ctest-vn-79875645', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22963648:ctest-vn-79875645?flat'} 2024-11-03 22:13:25,978 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22963648:ctest-vn-79875645 is found in opserver 2024-11-03 22:13:25,994 - DEBUG - Do not have enough data to verify VN in agent 2024-11-03 22:13:26,003 - DEBUG - VRF ids for VN ctest-vn-79875645: {} 2024-11-03 22:13:26,003 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-11-03 22:13:26,011 - DEBUG - Requesting: http://10.0.0.44:8082/domain/6645c1a8-ae5a-4695-964c-fc9e9d962ed1 2024-11-03 22:13:26,028 - DEBUG - Requesting: http://10.0.0.44:8082/project/705298d0-6c86-4aa4-9e75-90e35c8478b2 2024-11-03 22:13:26,121 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/1e777786-498d-4be7-ab81-3cf4d2af82f4 2024-11-03 22:13:26,143 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/1e777786-498d-4be7-ab81-3cf4d2af82f4 2024-11-03 22:13:26,164 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/34c817a9-f845-4dcf-9548-614465230005 2024-11-03 22:13:26,176 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/34c817a9-f845-4dcf-9548-614465230005 2024-11-03 22:13:26,187 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/49642401-e8ec-4b58-ab18-cbd6a9e8c2dc 2024-11-03 22:13:26,199 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-03 22:13:26,199 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/1e777786-498d-4be7-ab81-3cf4d2af82f4 2024-11-03 22:13:26,217 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/34c817a9-f845-4dcf-9548-614465230005 2024-11-03 22:13:26,245 - INFO - Verified VN network id 8 for VN 1e777786-498d-4be7-ab81-3cf4d2af82f4 2024-11-03 22:13:26,245 - INFO - Verifications in API Server for VN ctest-vn-96013211 passed 2024-11-03 22:13:26,245 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/1e777786-498d-4be7-ab81-3cf4d2af82f4 2024-11-03 22:13:26,263 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/34c817a9-f845-4dcf-9548-614465230005 2024-11-03 22:13:26,275 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/34c817a9-f845-4dcf-9548-614465230005 2024-11-03 22:13:26,287 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/49642401-e8ec-4b58-ab18-cbd6a9e8c2dc 2024-11-03 22:13:26,306 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22963648:ctest-vn-96013211', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22963648', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2195354762009725927', 'uuid-lslong': '12358225874685756148'}, 'enable': 'true', 'created': '2024-11-03T22:13:23', 'last-modified': '2024-11-03T22:13:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.850663'} 2024-11-03 22:13:26,315 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-03 22:13:26,315 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96013211 passed 2024-11-03 22:13:26,315 - DEBUG - ====Verifying policy data for ctest-vn-96013211 in API_Server ====== 2024-11-03 22:13:26,315 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-11-03 22:13:26,324 - DEBUG - Requesting: http://10.0.0.44:8082/domain/6645c1a8-ae5a-4695-964c-fc9e9d962ed1 2024-11-03 22:13:26,342 - DEBUG - Requesting: http://10.0.0.44:8082/project/705298d0-6c86-4aa4-9e75-90e35c8478b2 2024-11-03 22:13:26,430 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/1e777786-498d-4be7-ab81-3cf4d2af82f4 2024-11-03 22:13:26,453 - DEBUG - ==>Verifying data for policy with id: a7b04025-5fb5-4641-9900-737957fa1f64, fqn: ['default-domain', 'ctest-TestBasicPolicy-22963648', 'ctest-policy-allow-all-77799685'] 2024-11-03 22:13:26,453 - INFO - VN ctest-vn-96013211 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-03 22:13:26,454 - DEBUG - Verifying the vn in opserver 2024-11-03 22:13:26,454 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22963648:ctest-vn-96013211 virtual network link through opserver 10.0.0.44 2024-11-03 22:13:26,454 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks 2024-11-03 22:13:26,468 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22963648:ctest-vn-96013211', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22963648:ctest-vn-96013211?flat'} 2024-11-03 22:13:26,468 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22963648:ctest-vn-96013211 is found in opserver 2024-11-03 22:13:26,488 - DEBUG - Do not have enough data to verify VN in agent 2024-11-03 22:13:26,495 - DEBUG - VRF ids for VN ctest-vn-96013211: {} 2024-11-03 22:13:26,566 - DEBUG - Services list from nova: [, , ] 2024-11-03 22:13:27,954 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2191-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2191-1) 2024-11-03 22:13:29,378 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2191-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2191-1) 2024-11-03 22:13:29,378 - INFO - Waiting for VM ctest-TestBasicPolicy-22963648-08785446 to be up.. 2024-11-03 22:13:29,493 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-03 22:13:34,595 - DEBUG - VM is in ACTIVE state now 2024-11-03 22:13:34,595 - INFO - VM name : ctest-TestBasicPolicy-22963648-08785446 2024-11-03 22:13:34,707 - DEBUG - VM ctest-TestBasicPolicy-22963648-08785446 ID is 4b6b4ae0-3764-4537-9546-b9d885ccf9b4 2024-11-03 22:13:34,738 - DEBUG - VM ctest-TestBasicPolicy-22963648-08785446 launched on Node cn-jenkins-deploy-platform-ansible-os-2191-1 2024-11-03 22:13:34,859 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/4b6b4ae0-3764-4537-9546-b9d885ccf9b4 2024-11-03 22:13:34,875 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine-interface/b6a71819-0d84-498a-aa86-aa3ce8374814 2024-11-03 22:13:38,146 - 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 1002ms') 2024-11-03 22:13:38,146 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-22963648-08785446 failed! 2024-11-03 22:13:38,212 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-22963648:ctest-vn-79875645 is 165.107.122.1 and allocation pool is NOT set 2024-11-03 22:13:42,310 - 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 1033ms') 2024-11-03 22:13:42,310 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-22963648-08785446 failed! 2024-11-03 22:13:42,372 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-22963648:ctest-vn-79875645 is 165.107.122.1 and allocation pool is NOT set 2024-11-03 22:13:44,431 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=8.90 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.640 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.640/4.768/8.896/4.128 ms') 2024-11-03 22:13:44,431 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-22963648-08785446 passed 2024-11-03 22:13:44,601 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-03 22:13:44,601 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-22963648-08785446, IP 165.107.122.3, Port 22 2024-11-03 22:13:44,667 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-11-03 22:13:44,772 - DEBUG - VM ctest-TestBasicPolicy-22963648-08785446 is NOT ready for SSH connections, VM status: ACTIVE 2024-11-03 22:13:49,774 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-03 22:13:49,774 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-22963648-08785446, IP 165.107.122.3, Port 22 2024-11-03 22:13:49,954 - DEBUG - VM ctest-TestBasicPolicy-22963648-08785446 is ready for SSH connections 2024-11-03 22:13:49,954 - INFO - Waiting for VM ctest-TestBasicPolicy-22963648-38227422 to be up.. 2024-11-03 22:13:50,054 - DEBUG - VM is in ACTIVE state now 2024-11-03 22:13:50,054 - INFO - VM name : ctest-TestBasicPolicy-22963648-38227422 2024-11-03 22:13:50,154 - DEBUG - VM ctest-TestBasicPolicy-22963648-38227422 ID is b19d977f-ec16-46c4-b1a2-dbef2edc6400 2024-11-03 22:13:50,154 - DEBUG - VM ctest-TestBasicPolicy-22963648-38227422 launched on Node cn-jenkins-deploy-platform-ansible-os-2191-1 2024-11-03 22:13:50,248 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/b19d977f-ec16-46c4-b1a2-dbef2edc6400 2024-11-03 22:13:50,260 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine-interface/d972d57b-1340-49cf-ba85-aa4f606dc475 2024-11-03 22:13:51,528 - 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=4.09 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.563 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.563/2.328/4.094/1.765 ms') 2024-11-03 22:13:51,529 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-22963648-38227422 passed 2024-11-03 22:13:51,692 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-03 22:13:51,693 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-22963648-38227422, IP 196.54.2.67, Port 22 2024-11-03 22:13:51,863 - DEBUG - VM ctest-TestBasicPolicy-22963648-38227422 is ready for SSH connections 2024-11-03 22:13:51,863 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-03 22:13:51,863 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 196.54.2.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.44, gateway password: c0ntrail123 2024-11-03 22:13:51,863 - DEBUG - ping -s 56 -c 3 -W 1 196.54.2.67 2024-11-03 22:13:56,011 - DEBUG - PING 196.54.2.67 (196.54.2.67): 56 data bytes 64 bytes from 196.54.2.67: seq=0 ttl=63 time=3.975 ms 64 bytes from 196.54.2.67: seq=1 ttl=63 time=1.137 ms 64 bytes from 196.54.2.67: seq=2 ttl=63 time=0.862 ms --- 196.54.2.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.862/1.991/3.975 ms 2024-11-03 22:13:56,012 - INFO - Ping to IP 196.54.2.67 from VM ctest-TestBasicPolicy-22963648-08785446 passed 2024-11-03 22:13:56,224 - DEBUG - Policy Update Response {"network-policy": {"uuid": "a7b04025-5fb5-4641-9900-737957fa1f64", "href": "http://10.0.0.44:8082/network-policy/a7b04025-5fb5-4641-9900-737957fa1f64"}} 2024-11-03 22:13:56,225 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-03 22:13:56,225 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 196.54.2.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.44, gateway password: c0ntrail123 2024-11-03 22:13:56,225 - DEBUG - ping -s 56 -c 3 -W 1 196.54.2.67 2024-11-03 22:13:59,456 - DEBUG - PING 196.54.2.67 (196.54.2.67): 56 data bytes --- 196.54.2.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-11-03 22:13:59,457 - WARNING - Ping to IP 196.54.2.67 from VM ctest-TestBasicPolicy-22963648-08785446 failed 2024-11-03 22:13:59,457 - INFO - Deleting VM ctest-TestBasicPolicy-22963648-38227422 2024-11-03 22:14:00,421 - INFO - Deleting VM ctest-TestBasicPolicy-22963648-08785446 2024-11-03 22:14:04,937 - INFO - Deleted policy ctest-policy-allow-all-77799685 2024-11-03 22:14:04,937 - INFO - Deleting VN ctest-vn-96013211 2024-11-03 22:14:05,008 - DEBUG - VN 1e777786-498d-4be7-ab81-3cf4d2af82f4 still in use: Unable to complete operation on network 1e777786-498d-4be7-ab81-3cf4d2af82f4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c5d0e9d2-4ecf-451b-924e-24662b28306a'] 2024-11-03 22:14:05,009 - WARNING - Deleting VN ctest-vn-96013211 failed..Will retry 2024-11-03 22:14:07,264 - DEBUG - Response for deleting network () 2024-11-03 22:14:07,264 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/34c817a9-f845-4dcf-9548-614465230005 2024-11-03 22:14:07,272 - DEBUG - Response Code: 404 2024-11-03 22:14:07,272 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-11-03 22:14:07,280 - DEBUG - Requesting: http://10.0.0.44:8082/domain/6645c1a8-ae5a-4695-964c-fc9e9d962ed1 2024-11-03 22:14:07,306 - DEBUG - Requesting: http://10.0.0.44:8082/project/705298d0-6c86-4aa4-9e75-90e35c8478b2 2024-11-03 22:14:07,401 - INFO - Validated that VN ctest-vn-96013211 is not found in API Server 2024-11-03 22:14:07,417 - DEBUG - VN ctest-vn-96013211 is not present in Agent 10.0.0.44 2024-11-03 22:14:07,417 - INFO - Validated that VN ctest-vn-96013211 is not in any agent 2024-11-03 22:14:07,437 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-96013211 info 2024-11-03 22:14:07,437 - INFO - Deleting VN ctest-vn-79875645 2024-11-03 22:14:07,592 - DEBUG - Response for deleting network () 2024-11-03 22:14:07,593 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/158a3cc5-37ed-4a30-8597-ba2886ad4ebe 2024-11-03 22:14:07,603 - DEBUG - Response Code: 404 2024-11-03 22:14:07,603 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-11-03 22:14:07,615 - DEBUG - Requesting: http://10.0.0.44:8082/domain/6645c1a8-ae5a-4695-964c-fc9e9d962ed1 2024-11-03 22:14:07,639 - DEBUG - Requesting: http://10.0.0.44:8082/project/705298d0-6c86-4aa4-9e75-90e35c8478b2 2024-11-03 22:14:07,739 - INFO - Validated that VN ctest-vn-79875645 is not found in API Server 2024-11-03 22:14:07,754 - DEBUG - VN ctest-vn-79875645 is not present in Agent 10.0.0.44 2024-11-03 22:14:07,754 - INFO - Validated that VN ctest-vn-79875645 is not in any agent 2024-11-03 22:14:07,777 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-79875645 info 2024-11-03 22:14:08,047 - DEBUG - No XMPP flaps were noticed during the test
2024-11-03 22:14:08,047 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:47]
2024-11-03 22:14:08,047 - INFO - -------------------------------------------------------------------------------- 2024-11-03 22:14:08,892 - INFO - Deleted project: ctest-TestBasicPolicy-22963648, ID : 705298d0-6c86-4aa4-9e75-90e35c8478b2