2024-11-13 11:52:37,984 - INFO - Domain Default found not creating 2024-11-13 11:52:38,178 - INFO - Project ctest-TestBasicPolicy-10793467 not found, creating it 2024-11-13 11:52:38,675 - INFO - Created Project:ctest-TestBasicPolicy-10793467, ID : 0a44f186-051e-4e06-b6ef-aeea36234199 2024-11-13 11:52:40,261 - INFO - ================================================================================ 2024-11-13 11:52:40,261 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-13 11:52:40,261 - 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-13 11:52:40,516 - DEBUG - Nothing to compare xmpp stats {'10.0.0.47': {'10.20.0.30': '0'}} with 2024-11-13 11:52:40,516 - INFO - Initial checks done. Running the testcase now 2024-11-13 11:52:40,516 - INFO - 2024-11-13 11:52:41,121 - DEBUG - Response for create_network : {'network': {'id': '3363dca9-f182-41e1-967a-ee49a11c0466', 'name': 'ctest-vn-38024860', 'tenant_id': '0a44f186051e4e06b6efaeea36234199', 'project_id': '0a44f186051e4e06b6efaeea36234199', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10793467', 'ctest-vn-38024860'], 'port_security_enabled': True, 'description': ''}} 2024-11-13 11:52:41,280 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ec68a154-1951-4d74-9ac7-b870fb33a7b6', 'name': '', 'tenant_id': '0a44f186051e4e06b6efaeea36234199', 'network_id': '3363dca9-f182-41e1-967a-ee49a11c0466', 'ip_version': 4, 'cidr': '172.64.157.0/26', 'allocation_pools': [{'start': '172.64.157.2', 'end': '172.64.157.62'}], 'gateway_ip': '172.64.157.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.64.157.2', 'tags': [], 'project_id': '0a44f186051e4e06b6efaeea36234199'}} 2024-11-13 11:52:41,301 - INFO - Created VN ctest-vn-38024860 2024-11-13 11:52:41,357 - DEBUG - VN ctest-vn-38024860 UUID is 3363dca9-f182-41e1-967a-ee49a11c0466 2024-11-13 11:52:41,674 - DEBUG - Response for create_network : {'network': {'id': '16f10b72-fa2a-4c5a-8c88-db6cd4971f5c', 'name': 'ctest-vn-97353051', 'tenant_id': '0a44f186051e4e06b6efaeea36234199', 'project_id': '0a44f186051e4e06b6efaeea36234199', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10793467', 'ctest-vn-97353051'], 'port_security_enabled': True, 'description': ''}} 2024-11-13 11:52:41,863 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fe00c645-67c5-41a0-ba07-09acd5403e87', 'name': '', 'tenant_id': '0a44f186051e4e06b6efaeea36234199', 'network_id': '16f10b72-fa2a-4c5a-8c88-db6cd4971f5c', 'ip_version': 4, 'cidr': '122.203.64.64/26', 'allocation_pools': [{'start': '122.203.64.66', 'end': '122.203.64.126'}], 'gateway_ip': '122.203.64.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.203.64.66', 'tags': [], 'project_id': '0a44f186051e4e06b6efaeea36234199'}} 2024-11-13 11:52:41,882 - INFO - Created VN ctest-vn-97353051 2024-11-13 11:52:41,941 - DEBUG - VN ctest-vn-97353051 UUID is 16f10b72-fa2a-4c5a-8c88-db6cd4971f5c 2024-11-13 11:52:42,072 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-10793467:ctest-vn-38024860, 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-10793467:ctest-vn-97353051, 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-13 11:52:42,398 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3363dca9-f182-41e1-967a-ee49a11c0466', 'name': 'ctest-vn-38024860', 'tenant_id': '0a44f186051e4e06b6efaeea36234199', 'project_id': '0a44f186051e4e06b6efaeea36234199', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ec68a154-1951-4d74-9ac7-b870fb33a7b6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10793467', 'ctest-vn-38024860'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10793467', 'ctest-policy-allow-all-48158551']], 'subnet_ipam': [{'subnet_cidr': '172.64.157.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-13 11:52:42,695 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '16f10b72-fa2a-4c5a-8c88-db6cd4971f5c', 'name': 'ctest-vn-97353051', 'tenant_id': '0a44f186051e4e06b6efaeea36234199', 'project_id': '0a44f186051e4e06b6efaeea36234199', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fe00c645-67c5-41a0-ba07-09acd5403e87'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10793467', 'ctest-vn-97353051'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10793467', 'ctest-policy-allow-all-48158551']], 'subnet_ipam': [{'subnet_cidr': '122.203.64.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-13 11:52:42,853 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-11-13 11:52:43,160 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-11-13 11:52:43,192 - DEBUG - Requesting: http://10.0.0.47:8082/domain/3df73761-c072-4122-8340-4f5d71ad76ad 2024-11-13 11:52:43,210 - DEBUG - Requesting: http://10.0.0.47:8082/project/0a44f186-051e-4e06-b6ef-aeea36234199 2024-11-13 11:52:43,294 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/3363dca9-f182-41e1-967a-ee49a11c0466 2024-11-13 11:52:43,311 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/3363dca9-f182-41e1-967a-ee49a11c0466 2024-11-13 11:52:43,325 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/0306df0d-dafc-4022-9feb-4d941bddabcc 2024-11-13 11:52:43,334 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/0306df0d-dafc-4022-9feb-4d941bddabcc 2024-11-13 11:52:43,343 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/3ec5c680-9ca0-4d28-97b9-0135ca57744e 2024-11-13 11:52:43,352 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-13 11:52:43,352 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/3363dca9-f182-41e1-967a-ee49a11c0466 2024-11-13 11:52:43,366 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/0306df0d-dafc-4022-9feb-4d941bddabcc 2024-11-13 11:52:43,389 - INFO - Verified VN network id 8 for VN 3363dca9-f182-41e1-967a-ee49a11c0466 2024-11-13 11:52:43,389 - INFO - Verifications in API Server for VN ctest-vn-38024860 passed 2024-11-13 11:52:43,389 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/3363dca9-f182-41e1-967a-ee49a11c0466 2024-11-13 11:52:43,404 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/0306df0d-dafc-4022-9feb-4d941bddabcc 2024-11-13 11:52:43,414 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/0306df0d-dafc-4022-9feb-4d941bddabcc 2024-11-13 11:52:43,423 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/3ec5c680-9ca0-4d28-97b9-0135ca57744e 2024-11-13 11:52:43,441 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10793467:ctest-vn-38024860', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10793467', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3703045941088109025', 'uuid-lslong': '10843241052850881638'}, 'enable': 'true', 'created': '2024-11-13T11:52:41', 'last-modified': '2024-11-13T11:52:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.074387'} 2024-11-13 11:52:43,451 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-13 11:52:43,451 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38024860 passed 2024-11-13 11:52:43,451 - DEBUG - ====Verifying policy data for ctest-vn-38024860 in API_Server ====== 2024-11-13 11:52:43,451 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-11-13 11:52:43,459 - DEBUG - Requesting: http://10.0.0.47:8082/domain/3df73761-c072-4122-8340-4f5d71ad76ad 2024-11-13 11:52:43,473 - DEBUG - Requesting: http://10.0.0.47:8082/project/0a44f186-051e-4e06-b6ef-aeea36234199 2024-11-13 11:52:43,551 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/3363dca9-f182-41e1-967a-ee49a11c0466 2024-11-13 11:52:43,566 - DEBUG - ==>Verifying data for policy with id: c0496916-b888-4dcb-914a-3c13d03a6d08, fqn: ['default-domain', 'ctest-TestBasicPolicy-10793467', 'ctest-policy-allow-all-48158551'] 2024-11-13 11:52:43,566 - INFO - VN ctest-vn-38024860 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-13 11:52:43,567 - DEBUG - Verifying the vn in opserver 2024-11-13 11:52:43,567 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10793467:ctest-vn-38024860 virtual network link through opserver 10.0.0.47 2024-11-13 11:52:43,567 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks 2024-11-13 11:52:43,872 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks 2024-11-13 11:52:43,948 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10793467:ctest-vn-38024860', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10793467:ctest-vn-38024860?flat'} 2024-11-13 11:52:43,948 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10793467:ctest-vn-38024860 is found in opserver 2024-11-13 11:52:43,960 - DEBUG - Do not have enough data to verify VN in agent 2024-11-13 11:52:43,967 - DEBUG - VRF ids for VN ctest-vn-38024860: {} 2024-11-13 11:52:43,967 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-11-13 11:52:43,975 - DEBUG - Requesting: http://10.0.0.47:8082/domain/3df73761-c072-4122-8340-4f5d71ad76ad 2024-11-13 11:52:43,993 - DEBUG - Requesting: http://10.0.0.47:8082/project/0a44f186-051e-4e06-b6ef-aeea36234199 2024-11-13 11:52:44,074 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/16f10b72-fa2a-4c5a-8c88-db6cd4971f5c 2024-11-13 11:52:44,093 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/16f10b72-fa2a-4c5a-8c88-db6cd4971f5c 2024-11-13 11:52:44,114 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a9cdcaf5-71b0-4119-b6df-e3a21b17da18 2024-11-13 11:52:44,125 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a9cdcaf5-71b0-4119-b6df-e3a21b17da18 2024-11-13 11:52:44,138 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/d9af45be-1102-4f5d-9cf3-e2e95ea5a184 2024-11-13 11:52:44,148 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-13 11:52:44,148 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/16f10b72-fa2a-4c5a-8c88-db6cd4971f5c 2024-11-13 11:52:44,162 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a9cdcaf5-71b0-4119-b6df-e3a21b17da18 2024-11-13 11:52:44,189 - INFO - Verified VN network id 9 for VN 16f10b72-fa2a-4c5a-8c88-db6cd4971f5c 2024-11-13 11:52:44,189 - INFO - Verifications in API Server for VN ctest-vn-97353051 passed 2024-11-13 11:52:44,189 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/16f10b72-fa2a-4c5a-8c88-db6cd4971f5c 2024-11-13 11:52:44,207 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a9cdcaf5-71b0-4119-b6df-e3a21b17da18 2024-11-13 11:52:44,219 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a9cdcaf5-71b0-4119-b6df-e3a21b17da18 2024-11-13 11:52:44,232 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/d9af45be-1102-4f5d-9cf3-e2e95ea5a184 2024-11-13 11:52:44,253 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10793467:ctest-vn-97353051', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10793467', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1653115126672936026', 'uuid-lslong': '10126585022612184924'}, 'enable': 'true', 'created': '2024-11-13T11:52:41', 'last-modified': '2024-11-13T11:52:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.622944'} 2024-11-13 11:52:44,260 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-13 11:52:44,260 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97353051 passed 2024-11-13 11:52:44,261 - DEBUG - ====Verifying policy data for ctest-vn-97353051 in API_Server ====== 2024-11-13 11:52:44,261 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-11-13 11:52:44,269 - DEBUG - Requesting: http://10.0.0.47:8082/domain/3df73761-c072-4122-8340-4f5d71ad76ad 2024-11-13 11:52:44,288 - DEBUG - Requesting: http://10.0.0.47:8082/project/0a44f186-051e-4e06-b6ef-aeea36234199 2024-11-13 11:52:44,377 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/16f10b72-fa2a-4c5a-8c88-db6cd4971f5c 2024-11-13 11:52:44,395 - DEBUG - ==>Verifying data for policy with id: c0496916-b888-4dcb-914a-3c13d03a6d08, fqn: ['default-domain', 'ctest-TestBasicPolicy-10793467', 'ctest-policy-allow-all-48158551'] 2024-11-13 11:52:44,395 - INFO - VN ctest-vn-97353051 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-13 11:52:44,395 - DEBUG - Verifying the vn in opserver 2024-11-13 11:52:44,395 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10793467:ctest-vn-97353051 virtual network link through opserver 10.0.0.47 2024-11-13 11:52:44,395 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks 2024-11-13 11:52:44,408 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10793467:ctest-vn-97353051', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10793467:ctest-vn-97353051?flat'} 2024-11-13 11:52:44,408 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10793467:ctest-vn-97353051 is found in opserver 2024-11-13 11:52:44,420 - DEBUG - Do not have enough data to verify VN in agent 2024-11-13 11:52:44,427 - DEBUG - VRF ids for VN ctest-vn-97353051: {} 2024-11-13 11:52:44,488 - DEBUG - Services list from nova: [, , ] 2024-11-13 11:52:45,544 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2284-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2284-1) 2024-11-13 11:52:46,905 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2284-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2284-1) 2024-11-13 11:52:46,905 - INFO - Waiting for VM ctest-TestBasicPolicy-10793467-86810800 to be up.. 2024-11-13 11:52:46,997 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-13 11:52:52,084 - DEBUG - VM is in ACTIVE state now 2024-11-13 11:52:52,084 - INFO - VM name : ctest-TestBasicPolicy-10793467-86810800 2024-11-13 11:52:52,175 - DEBUG - VM ctest-TestBasicPolicy-10793467-86810800 ID is af697854-27b6-4876-9455-50b154065180 2024-11-13 11:52:52,195 - DEBUG - VM ctest-TestBasicPolicy-10793467-86810800 launched on Node cn-jenkins-deploy-platform-ansible-os-2284-1 2024-11-13 11:52:52,286 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine/af697854-27b6-4876-9455-50b154065180 2024-11-13 11:52:52,297 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine-interface/9398ac33-6332-4ff4-8a51-f35bb6f23818 2024-11-13 11:52:55,522 - 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 1019ms') 2024-11-13 11:52:55,522 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-10793467-86810800 failed! 2024-11-13 11:52:55,581 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-10793467:ctest-vn-38024860 is 172.64.157.1 and allocation pool is NOT set 2024-11-13 11:52:57,649 - 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=6.69 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.32 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 = 3.321/5.005/6.689/1.684 ms') 2024-11-13 11:52:57,649 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-10793467-86810800 passed 2024-11-13 11:52:57,829 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-13 11:52:57,829 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-10793467-86810800, IP 172.64.157.3, Port 22 2024-11-13 11:52:57,895 - 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-13 11:52:57,992 - DEBUG - VM ctest-TestBasicPolicy-10793467-86810800 is NOT ready for SSH connections, VM status: ACTIVE 2024-11-13 11:53:02,994 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-13 11:53:02,994 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-10793467-86810800, IP 172.64.157.3, Port 22 2024-11-13 11:53:03,152 - DEBUG - VM ctest-TestBasicPolicy-10793467-86810800 is ready for SSH connections 2024-11-13 11:53:03,153 - INFO - Waiting for VM ctest-TestBasicPolicy-10793467-06975408 to be up.. 2024-11-13 11:53:03,261 - DEBUG - VM is in ACTIVE state now 2024-11-13 11:53:03,261 - INFO - VM name : ctest-TestBasicPolicy-10793467-06975408 2024-11-13 11:53:03,361 - DEBUG - VM ctest-TestBasicPolicy-10793467-06975408 ID is faad17b9-7992-4601-b689-85f47795c0bd 2024-11-13 11:53:03,361 - DEBUG - VM ctest-TestBasicPolicy-10793467-06975408 launched on Node cn-jenkins-deploy-platform-ansible-os-2284-1 2024-11-13 11:53:03,455 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine/faad17b9-7992-4601-b689-85f47795c0bd 2024-11-13 11:53:03,466 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine-interface/0afcea55-18b8-4874-937a-cddc42031463 2024-11-13 11:53:04,724 - 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.96 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.465 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.465/1.710/2.956/1.245 ms') 2024-11-13 11:53:04,724 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-10793467-06975408 passed 2024-11-13 11:53:04,885 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-13 11:53:04,885 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-10793467-06975408, IP 122.203.64.67, Port 22 2024-11-13 11:53:05,055 - DEBUG - VM ctest-TestBasicPolicy-10793467-06975408 is ready for SSH connections 2024-11-13 11:53:05,055 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-13 11:53:05,055 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 122.203.64.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.47, gateway password: c0ntrail123 2024-11-13 11:53:05,056 - DEBUG - ping -s 56 -c 3 -W 1 122.203.64.67 2024-11-13 11:53:09,106 - DEBUG - PING 122.203.64.67 (122.203.64.67): 56 data bytes 64 bytes from 122.203.64.67: seq=0 ttl=63 time=4.018 ms 64 bytes from 122.203.64.67: seq=1 ttl=63 time=1.642 ms 64 bytes from 122.203.64.67: seq=2 ttl=63 time=0.793 ms --- 122.203.64.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.793/2.151/4.018 ms 2024-11-13 11:53:09,106 - INFO - Ping to IP 122.203.64.67 from VM ctest-TestBasicPolicy-10793467-86810800 passed 2024-11-13 11:53:09,308 - DEBUG - Policy Update Response {"network-policy": {"uuid": "c0496916-b888-4dcb-914a-3c13d03a6d08", "href": "http://10.0.0.47:8082/network-policy/c0496916-b888-4dcb-914a-3c13d03a6d08"}} 2024-11-13 11:53:09,309 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-13 11:53:09,309 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 122.203.64.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.47, gateway password: c0ntrail123 2024-11-13 11:53:09,309 - DEBUG - ping -s 56 -c 3 -W 1 122.203.64.67 2024-11-13 11:53:12,528 - DEBUG - PING 122.203.64.67 (122.203.64.67): 56 data bytes --- 122.203.64.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-11-13 11:53:12,528 - WARNING - Ping to IP 122.203.64.67 from VM ctest-TestBasicPolicy-10793467-86810800 failed 2024-11-13 11:53:12,528 - INFO - Deleting VM ctest-TestBasicPolicy-10793467-06975408 2024-11-13 11:53:12,634 - INFO - Deleting VM ctest-TestBasicPolicy-10793467-86810800 2024-11-13 11:53:13,172 - INFO - Deleted policy ctest-policy-allow-all-48158551 2024-11-13 11:53:13,172 - INFO - Deleting VN ctest-vn-97353051 2024-11-13 11:53:13,229 - DEBUG - VN 16f10b72-fa2a-4c5a-8c88-db6cd4971f5c still in use: Unable to complete operation on network 16f10b72-fa2a-4c5a-8c88-db6cd4971f5c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a7de7838-f974-4ae4-9648-5ea1550bb70f'] 2024-11-13 11:53:13,229 - WARNING - Deleting VN ctest-vn-97353051 failed..Will retry 2024-11-13 11:53:15,357 - DEBUG - Response for deleting network () 2024-11-13 11:53:15,357 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a9cdcaf5-71b0-4119-b6df-e3a21b17da18 2024-11-13 11:53:15,363 - DEBUG - Response Code: 404 2024-11-13 11:53:15,364 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-11-13 11:53:15,373 - DEBUG - Requesting: http://10.0.0.47:8082/domain/3df73761-c072-4122-8340-4f5d71ad76ad 2024-11-13 11:53:15,433 - DEBUG - Requesting: http://10.0.0.47:8082/project/0a44f186-051e-4e06-b6ef-aeea36234199 2024-11-13 11:53:15,525 - INFO - Validated that VN ctest-vn-97353051 is not found in API Server 2024-11-13 11:53:15,538 - DEBUG - VN ctest-vn-97353051 is not present in Agent 10.0.0.47 2024-11-13 11:53:15,538 - INFO - Validated that VN ctest-vn-97353051 is not in any agent 2024-11-13 11:53:15,556 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-97353051 info 2024-11-13 11:53:15,556 - INFO - Deleting VN ctest-vn-38024860 2024-11-13 11:53:15,695 - DEBUG - Response for deleting network () 2024-11-13 11:53:15,696 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/0306df0d-dafc-4022-9feb-4d941bddabcc 2024-11-13 11:53:15,710 - DEBUG - Response Code: 404 2024-11-13 11:53:15,710 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-11-13 11:53:15,720 - DEBUG - Requesting: http://10.0.0.47:8082/domain/3df73761-c072-4122-8340-4f5d71ad76ad 2024-11-13 11:53:15,738 - DEBUG - Requesting: http://10.0.0.47:8082/project/0a44f186-051e-4e06-b6ef-aeea36234199 2024-11-13 11:53:15,824 - INFO - Validated that VN ctest-vn-38024860 is not found in API Server 2024-11-13 11:53:15,835 - DEBUG - VN ctest-vn-38024860 is not present in Agent 10.0.0.47 2024-11-13 11:53:15,835 - INFO - Validated that VN ctest-vn-38024860 is not in any agent 2024-11-13 11:53:15,853 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-38024860 info 2024-11-13 11:53:16,107 - DEBUG - No XMPP flaps were noticed during the test 2024-11-13 11:53:16,107 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2024-11-13 11:53:16,108 - INFO - -------------------------------------------------------------------------------- 2024-11-13 11:53:16,832 - INFO - Deleted project: ctest-TestBasicPolicy-10793467, ID : 0a44f186-051e-4e06-b6ef-aeea36234199