2024-10-28 12:03:56,411 - INFO - Domain Default found not creating 2024-10-28 12:03:56,645 - INFO - Project ctest-TestBasicPolicy-23219678 not found, creating it 2024-10-28 12:03:57,306 - INFO - Created Project:ctest-TestBasicPolicy-23219678, ID : c039d41b-e6fa-4f8e-a2c0-84408867af83 2024-10-28 12:03:59,111 - INFO - ================================================================================ 2024-10-28 12:03:59,111 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-28 12:03:59,111 - 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-28 12:03:59,386 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.7': '0'}} with 2024-10-28 12:03:59,386 - INFO - Initial checks done. Running the testcase now 2024-10-28 12:03:59,386 - INFO - 2024-10-28 12:04:00,059 - DEBUG - Response for create_network : {'network': {'id': '695ade58-2b9c-42f4-aad8-c32484e25fcf', 'name': 'ctest-vn-15397334', 'tenant_id': 'c039d41be6fa4f8ea2c084408867af83', 'project_id': 'c039d41be6fa4f8ea2c084408867af83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23219678', 'ctest-vn-15397334'], 'port_security_enabled': True, 'description': ''}} 2024-10-28 12:04:00,349 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ae3a4d63-1b12-4729-80ba-0544819b2051', 'name': '', 'tenant_id': 'c039d41be6fa4f8ea2c084408867af83', 'network_id': '695ade58-2b9c-42f4-aad8-c32484e25fcf', 'ip_version': 4, 'cidr': '8.182.196.64/26', 'allocation_pools': [{'start': '8.182.196.66', 'end': '8.182.196.126'}], 'gateway_ip': '8.182.196.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.182.196.66', 'tags': [], 'project_id': 'c039d41be6fa4f8ea2c084408867af83'}} 2024-10-28 12:04:00,373 - INFO - Created VN ctest-vn-15397334 2024-10-28 12:04:00,437 - DEBUG - VN ctest-vn-15397334 UUID is 695ade58-2b9c-42f4-aad8-c32484e25fcf 2024-10-28 12:04:00,833 - DEBUG - Response for create_network : {'network': {'id': '6ac6d1a6-1d80-44e6-ab6c-dcd564ff3768', 'name': 'ctest-vn-95856115', 'tenant_id': 'c039d41be6fa4f8ea2c084408867af83', 'project_id': 'c039d41be6fa4f8ea2c084408867af83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23219678', 'ctest-vn-95856115'], 'port_security_enabled': True, 'description': ''}} 2024-10-28 12:04:01,107 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a282de01-b265-4826-a4a7-0642bb35822c', 'name': '', 'tenant_id': 'c039d41be6fa4f8ea2c084408867af83', 'network_id': '6ac6d1a6-1d80-44e6-ab6c-dcd564ff3768', 'ip_version': 4, 'cidr': '36.195.58.192/26', 'allocation_pools': [{'start': '36.195.58.194', 'end': '36.195.58.254'}], 'gateway_ip': '36.195.58.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36.195.58.194', 'tags': [], 'project_id': 'c039d41be6fa4f8ea2c084408867af83'}} 2024-10-28 12:04:01,136 - INFO - Created VN ctest-vn-95856115 2024-10-28 12:04:01,197 - DEBUG - VN ctest-vn-95856115 UUID is 6ac6d1a6-1d80-44e6-ab6c-dcd564ff3768 2024-10-28 12:04:01,351 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-23219678:ctest-vn-15397334, 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-23219678:ctest-vn-95856115, 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-28 12:04:01,751 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '695ade58-2b9c-42f4-aad8-c32484e25fcf', 'name': 'ctest-vn-15397334', 'tenant_id': 'c039d41be6fa4f8ea2c084408867af83', 'project_id': 'c039d41be6fa4f8ea2c084408867af83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ae3a4d63-1b12-4729-80ba-0544819b2051'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23219678', 'ctest-vn-15397334'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23219678', 'ctest-policy-allow-all-44565193']], 'subnet_ipam': [{'subnet_cidr': '8.182.196.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-28 12:04:02,031 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6ac6d1a6-1d80-44e6-ab6c-dcd564ff3768', 'name': 'ctest-vn-95856115', 'tenant_id': 'c039d41be6fa4f8ea2c084408867af83', 'project_id': 'c039d41be6fa4f8ea2c084408867af83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a282de01-b265-4826-a4a7-0642bb35822c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23219678', 'ctest-vn-95856115'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23219678', 'ctest-policy-allow-all-44565193']], 'subnet_ipam': [{'subnet_cidr': '36.195.58.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-28 12:04:02,229 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-10-28 12:04:02,544 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-10-28 12:04:02,586 - DEBUG - Requesting: http://10.0.0.27:8082/domain/b243edd3-0deb-49a8-815e-c05bb04ae919 2024-10-28 12:04:02,606 - DEBUG - Requesting: http://10.0.0.27:8082/project/c039d41b-e6fa-4f8e-a2c0-84408867af83 2024-10-28 12:04:02,710 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/695ade58-2b9c-42f4-aad8-c32484e25fcf 2024-10-28 12:04:02,729 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/695ade58-2b9c-42f4-aad8-c32484e25fcf 2024-10-28 12:04:02,745 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/87a43f2c-34de-4a8c-b5d0-7a2407effeff 2024-10-28 12:04:02,759 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/87a43f2c-34de-4a8c-b5d0-7a2407effeff 2024-10-28 12:04:02,773 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/647ab826-5365-4352-9595-3b2a2ae60cc0 2024-10-28 12:04:02,784 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-28 12:04:02,784 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/695ade58-2b9c-42f4-aad8-c32484e25fcf 2024-10-28 12:04:02,800 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/87a43f2c-34de-4a8c-b5d0-7a2407effeff 2024-10-28 12:04:02,832 - INFO - Verified VN network id 7 for VN 695ade58-2b9c-42f4-aad8-c32484e25fcf 2024-10-28 12:04:02,832 - INFO - Verifications in API Server for VN ctest-vn-15397334 passed 2024-10-28 12:04:02,832 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/695ade58-2b9c-42f4-aad8-c32484e25fcf 2024-10-28 12:04:02,855 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/87a43f2c-34de-4a8c-b5d0-7a2407effeff 2024-10-28 12:04:02,880 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/87a43f2c-34de-4a8c-b5d0-7a2407effeff 2024-10-28 12:04:02,900 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/647ab826-5365-4352-9595-3b2a2ae60cc0 2024-10-28 12:04:02,921 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23219678:ctest-vn-15397334', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23219678', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7591624592156541684', 'uuid-lslong': '12310804143032917967'}, 'enable': 'true', 'created': '2024-10-28T12:04:00', 'last-modified': '2024-10-28T12:04:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.194881'} 2024-10-28 12:04:02,931 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-28 12:04:02,931 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15397334 passed 2024-10-28 12:04:02,931 - DEBUG - ====Verifying policy data for ctest-vn-15397334 in API_Server ====== 2024-10-28 12:04:02,931 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-10-28 12:04:02,941 - DEBUG - Requesting: http://10.0.0.27:8082/domain/b243edd3-0deb-49a8-815e-c05bb04ae919 2024-10-28 12:04:02,968 - DEBUG - Requesting: http://10.0.0.27:8082/project/c039d41b-e6fa-4f8e-a2c0-84408867af83 2024-10-28 12:04:03,097 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/695ade58-2b9c-42f4-aad8-c32484e25fcf 2024-10-28 12:04:03,118 - DEBUG - ==>Verifying data for policy with id: 1e91e6d8-58bb-48c4-90b1-2ce31c821832, fqn: ['default-domain', 'ctest-TestBasicPolicy-23219678', 'ctest-policy-allow-all-44565193'] 2024-10-28 12:04:03,118 - INFO - VN ctest-vn-15397334 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-28 12:04:03,118 - DEBUG - Verifying the vn in opserver 2024-10-28 12:04:03,119 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23219678:ctest-vn-15397334 virtual network link through opserver 10.0.0.27 2024-10-28 12:04:03,119 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2024-10-28 12:04:03,432 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2024-10-28 12:04:03,534 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23219678:ctest-vn-15397334', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23219678:ctest-vn-15397334?flat'} 2024-10-28 12:04:03,534 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23219678:ctest-vn-15397334 is found in opserver 2024-10-28 12:04:03,549 - DEBUG - Do not have enough data to verify VN in agent 2024-10-28 12:04:03,556 - DEBUG - VRF ids for VN ctest-vn-15397334: {} 2024-10-28 12:04:03,556 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-10-28 12:04:03,563 - DEBUG - Requesting: http://10.0.0.27:8082/domain/b243edd3-0deb-49a8-815e-c05bb04ae919 2024-10-28 12:04:03,580 - DEBUG - Requesting: http://10.0.0.27:8082/project/c039d41b-e6fa-4f8e-a2c0-84408867af83 2024-10-28 12:04:03,683 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6ac6d1a6-1d80-44e6-ab6c-dcd564ff3768 2024-10-28 12:04:03,706 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6ac6d1a6-1d80-44e6-ab6c-dcd564ff3768 2024-10-28 12:04:03,727 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/84c7ba44-6594-40d8-a627-46095e21de38 2024-10-28 12:04:03,737 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/84c7ba44-6594-40d8-a627-46095e21de38 2024-10-28 12:04:03,748 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/37c3e7e4-1244-4851-ba34-92c0a5021e63 2024-10-28 12:04:03,764 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-28 12:04:03,764 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6ac6d1a6-1d80-44e6-ab6c-dcd564ff3768 2024-10-28 12:04:03,782 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/84c7ba44-6594-40d8-a627-46095e21de38 2024-10-28 12:04:03,815 - INFO - Verified VN network id 8 for VN 6ac6d1a6-1d80-44e6-ab6c-dcd564ff3768 2024-10-28 12:04:03,815 - INFO - Verifications in API Server for VN ctest-vn-95856115 passed 2024-10-28 12:04:03,815 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6ac6d1a6-1d80-44e6-ab6c-dcd564ff3768 2024-10-28 12:04:03,832 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/84c7ba44-6594-40d8-a627-46095e21de38 2024-10-28 12:04:03,842 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/84c7ba44-6594-40d8-a627-46095e21de38 2024-10-28 12:04:03,852 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/37c3e7e4-1244-4851-ba34-92c0a5021e63 2024-10-28 12:04:03,870 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23219678:ctest-vn-95856115', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23219678', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7694067524798792934', 'uuid-lslong': '12352490687051020136'}, 'enable': 'true', 'created': '2024-10-28T12:04:00', 'last-modified': '2024-10-28T12:04:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.879546'} 2024-10-28 12:04:03,881 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-28 12:04:03,882 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95856115 passed 2024-10-28 12:04:03,882 - DEBUG - ====Verifying policy data for ctest-vn-95856115 in API_Server ====== 2024-10-28 12:04:03,882 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-10-28 12:04:03,893 - DEBUG - Requesting: http://10.0.0.27:8082/domain/b243edd3-0deb-49a8-815e-c05bb04ae919 2024-10-28 12:04:03,912 - DEBUG - Requesting: http://10.0.0.27:8082/project/c039d41b-e6fa-4f8e-a2c0-84408867af83 2024-10-28 12:04:04,011 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6ac6d1a6-1d80-44e6-ab6c-dcd564ff3768 2024-10-28 12:04:04,031 - DEBUG - ==>Verifying data for policy with id: 1e91e6d8-58bb-48c4-90b1-2ce31c821832, fqn: ['default-domain', 'ctest-TestBasicPolicy-23219678', 'ctest-policy-allow-all-44565193'] 2024-10-28 12:04:04,031 - INFO - VN ctest-vn-95856115 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-28 12:04:04,031 - DEBUG - Verifying the vn in opserver 2024-10-28 12:04:04,031 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23219678:ctest-vn-95856115 virtual network link through opserver 10.0.0.27 2024-10-28 12:04:04,031 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2024-10-28 12:04:04,047 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23219678:ctest-vn-95856115', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23219678:ctest-vn-95856115?flat'} 2024-10-28 12:04:04,047 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23219678:ctest-vn-95856115 is found in opserver 2024-10-28 12:04:04,061 - DEBUG - Do not have enough data to verify VN in agent 2024-10-28 12:04:04,069 - DEBUG - VRF ids for VN ctest-vn-95856115: {} 2024-10-28 12:04:04,144 - DEBUG - Services list from nova: [, , ] 2024-10-28 12:04:05,473 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2159-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2159-1) 2024-10-28 12:04:07,015 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2159-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2159-1) 2024-10-28 12:04:07,015 - INFO - Waiting for VM ctest-TestBasicPolicy-23219678-90691695 to be up.. 2024-10-28 12:04:07,139 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-28 12:04:12,241 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-28 12:04:17,334 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-28 12:04:22,432 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-28 12:04:27,551 - DEBUG - VM is in ACTIVE state now 2024-10-28 12:04:27,552 - INFO - VM name : ctest-TestBasicPolicy-23219678-90691695 2024-10-28 12:04:27,645 - DEBUG - VM ctest-TestBasicPolicy-23219678-90691695 ID is a9426dda-a889-498b-8489-0cc5a67a2481 2024-10-28 12:04:27,667 - DEBUG - VM ctest-TestBasicPolicy-23219678-90691695 launched on Node cn-jenkins-deploy-platform-ansible-os-2159-1 2024-10-28 12:04:27,773 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/a9426dda-a889-498b-8489-0cc5a67a2481 2024-10-28 12:04:27,784 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/357e16ad-1836-4b25-8818-c43ac9bef723 2024-10-28 12:04:31,039 - 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 1029ms') 2024-10-28 12:04:31,039 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-23219678-90691695 failed! 2024-10-28 12:04:31,101 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-23219678:ctest-vn-15397334 is 8.182.196.65 and allocation pool is NOT set 2024-10-28 12:04:35,199 - 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 1032ms') 2024-10-28 12:04:35,200 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-23219678-90691695 failed! 2024-10-28 12:04:35,265 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-23219678:ctest-vn-15397334 is 8.182.196.65 and allocation pool is NOT set 2024-10-28 12:04:37,331 - 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.23 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.853 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.853/2.039/3.225/1.186 ms') 2024-10-28 12:04:37,332 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-23219678-90691695 passed 2024-10-28 12:04:37,497 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 12:04:37,498 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-23219678-90691695, IP 8.182.196.67, Port 22 2024-10-28 12:04:37,676 - DEBUG - VM ctest-TestBasicPolicy-23219678-90691695 is ready for SSH connections 2024-10-28 12:04:37,676 - INFO - Waiting for VM ctest-TestBasicPolicy-23219678-32150543 to be up.. 2024-10-28 12:04:37,793 - DEBUG - VM is in ACTIVE state now 2024-10-28 12:04:37,793 - INFO - VM name : ctest-TestBasicPolicy-23219678-32150543 2024-10-28 12:04:37,894 - DEBUG - VM ctest-TestBasicPolicy-23219678-32150543 ID is d8181b31-19ea-45da-905a-e8fb679817f1 2024-10-28 12:04:37,894 - DEBUG - VM ctest-TestBasicPolicy-23219678-32150543 launched on Node cn-jenkins-deploy-platform-ansible-os-2159-1 2024-10-28 12:04:38,004 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/d8181b31-19ea-45da-905a-e8fb679817f1 2024-10-28 12:04:38,023 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/7f1112ea-affa-457d-a956-6c34408dc029 2024-10-28 12:04:39,306 - 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=5.93 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=3.20 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 = 3.203/4.568/5.934/1.365 ms') 2024-10-28 12:04:39,306 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-23219678-32150543 passed 2024-10-28 12:04:39,477 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 12:04:39,477 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-23219678-32150543, IP 36.195.58.195, Port 22 2024-10-28 12:04:39,648 - DEBUG - VM ctest-TestBasicPolicy-23219678-32150543 is ready for SSH connections 2024-10-28 12:04:39,648 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 12:04:39,648 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 36.195.58.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-10-28 12:04:39,648 - DEBUG - ping -s 56 -c 3 -W 1 36.195.58.195 2024-10-28 12:04:43,848 - DEBUG - PING 36.195.58.195 (36.195.58.195): 56 data bytes 64 bytes from 36.195.58.195: seq=0 ttl=63 time=4.837 ms 64 bytes from 36.195.58.195: seq=1 ttl=63 time=0.912 ms 64 bytes from 36.195.58.195: seq=2 ttl=63 time=1.393 ms --- 36.195.58.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.912/2.380/4.837 ms 2024-10-28 12:04:43,848 - INFO - Ping to IP 36.195.58.195 from VM ctest-TestBasicPolicy-23219678-90691695 passed 2024-10-28 12:04:44,077 - DEBUG - Policy Update Response {"network-policy": {"uuid": "1e91e6d8-58bb-48c4-90b1-2ce31c821832", "href": "http://10.0.0.27:8082/network-policy/1e91e6d8-58bb-48c4-90b1-2ce31c821832"}} 2024-10-28 12:04:44,077 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 12:04:44,077 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 36.195.58.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-10-28 12:04:44,077 - DEBUG - ping -s 56 -c 3 -W 1 36.195.58.195 2024-10-28 12:04:47,305 - DEBUG - PING 36.195.58.195 (36.195.58.195): 56 data bytes 64 bytes from 36.195.58.195: seq=0 ttl=63 time=1.684 ms --- 36.195.58.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.684/1.684/1.684 ms 2024-10-28 12:04:47,305 - WARNING - Ping to IP 36.195.58.195 from VM ctest-TestBasicPolicy-23219678-90691695 failed 2024-10-28 12:04:47,305 - INFO - Deleting VM ctest-TestBasicPolicy-23219678-32150543 2024-10-28 12:04:47,430 - INFO - Deleting VM ctest-TestBasicPolicy-23219678-90691695 2024-10-28 12:04:47,940 - INFO - Deleted policy ctest-policy-allow-all-44565193 2024-10-28 12:04:47,940 - INFO - Deleting VN ctest-vn-95856115 2024-10-28 12:04:47,995 - DEBUG - VN 6ac6d1a6-1d80-44e6-ab6c-dcd564ff3768 still in use: Unable to complete operation on network 6ac6d1a6-1d80-44e6-ab6c-dcd564ff3768. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-558eaa56-82fa-44fd-8c6d-2c7533e67368'] 2024-10-28 12:04:47,995 - WARNING - Deleting VN ctest-vn-95856115 failed..Will retry 2024-10-28 12:04:50,140 - DEBUG - Response for deleting network () 2024-10-28 12:04:50,140 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/84c7ba44-6594-40d8-a627-46095e21de38 2024-10-28 12:04:50,147 - DEBUG - Response Code: 404 2024-10-28 12:04:50,147 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-10-28 12:04:50,159 - DEBUG - Requesting: http://10.0.0.27:8082/domain/b243edd3-0deb-49a8-815e-c05bb04ae919 2024-10-28 12:04:50,222 - DEBUG - Requesting: http://10.0.0.27:8082/project/c039d41b-e6fa-4f8e-a2c0-84408867af83 2024-10-28 12:04:50,314 - INFO - Validated that VN ctest-vn-95856115 is not found in API Server 2024-10-28 12:04:50,328 - DEBUG - VN ctest-vn-95856115 is not present in Agent 10.0.0.27 2024-10-28 12:04:50,328 - INFO - Validated that VN ctest-vn-95856115 is not in any agent 2024-10-28 12:04:50,350 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-95856115 info 2024-10-28 12:04:50,350 - INFO - Deleting VN ctest-vn-15397334 2024-10-28 12:04:50,486 - DEBUG - Response for deleting network () 2024-10-28 12:04:50,487 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/87a43f2c-34de-4a8c-b5d0-7a2407effeff 2024-10-28 12:04:50,497 - DEBUG - Response Code: 404 2024-10-28 12:04:50,497 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-10-28 12:04:50,508 - DEBUG - Requesting: http://10.0.0.27:8082/domain/b243edd3-0deb-49a8-815e-c05bb04ae919 2024-10-28 12:04:50,529 - DEBUG - Requesting: http://10.0.0.27:8082/project/c039d41b-e6fa-4f8e-a2c0-84408867af83 2024-10-28 12:04:50,617 - INFO - Validated that VN ctest-vn-15397334 is not found in API Server 2024-10-28 12:04:50,631 - DEBUG - VN ctest-vn-15397334 is not present in Agent 10.0.0.27 2024-10-28 12:04:50,631 - INFO - Validated that VN ctest-vn-15397334 is not in any agent 2024-10-28 12:04:50,649 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-15397334 info 2024-10-28 12:04:50,919 - DEBUG - No XMPP flaps were noticed during the test 2024-10-28 12:04:50,919 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:51] 2024-10-28 12:04:50,919 - INFO - -------------------------------------------------------------------------------- 2024-10-28 12:04:51,696 - INFO - Deleted project: ctest-TestBasicPolicy-23219678, ID : c039d41b-e6fa-4f8e-a2c0-84408867af83