2025-01-15 16:56:37,593 - INFO - Domain Default found not creating 2025-01-15 16:56:37,730 - INFO - Project ctest-TestBasicPolicy-89754995 not found, creating it 2025-01-15 16:56:38,219 - INFO - Created Project:ctest-TestBasicPolicy-89754995, ID : 5a4fca49-33ee-4116-add9-fbe9a300f209 2025-01-15 16:56:39,682 - INFO - ================================================================================ 2025-01-15 16:56:39,682 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-15 16:56:39,683 - 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 2025-01-15 16:56:39,940 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.27': '0'}} with 2025-01-15 16:56:39,940 - INFO - Initial checks done. Running the testcase now 2025-01-15 16:56:39,940 - INFO - 2025-01-15 16:56:40,534 - DEBUG - Response for create_network : {'network': {'id': 'fde82960-f2db-4dab-b617-b66c2f6ac949', 'name': 'ctest-vn-84919848', 'tenant_id': '5a4fca4933ee4116add9fbe9a300f209', 'project_id': '5a4fca4933ee4116add9fbe9a300f209', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89754995', 'ctest-vn-84919848'], 'port_security_enabled': True, 'description': ''}} 2025-01-15 16:56:40,701 - DEBUG - Response for create_subnet : {'subnet': {'id': '7112ec88-6080-4d2d-9410-52dc144a892f', 'name': '', 'tenant_id': '5a4fca4933ee4116add9fbe9a300f209', 'network_id': 'fde82960-f2db-4dab-b617-b66c2f6ac949', 'ip_version': 4, 'cidr': '31.152.51.64/26', 'allocation_pools': [{'start': '31.152.51.66', 'end': '31.152.51.126'}], 'gateway_ip': '31.152.51.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.152.51.66', 'tags': [], 'project_id': '5a4fca4933ee4116add9fbe9a300f209'}} 2025-01-15 16:56:40,723 - INFO - Created VN ctest-vn-84919848 2025-01-15 16:56:40,777 - DEBUG - VN ctest-vn-84919848 UUID is fde82960-f2db-4dab-b617-b66c2f6ac949 2025-01-15 16:56:41,086 - DEBUG - Response for create_network : {'network': {'id': '9f810012-12d3-4d2a-8b54-778a481a0904', 'name': 'ctest-vn-59754959', 'tenant_id': '5a4fca4933ee4116add9fbe9a300f209', 'project_id': '5a4fca4933ee4116add9fbe9a300f209', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89754995', 'ctest-vn-59754959'], 'port_security_enabled': True, 'description': ''}} 2025-01-15 16:56:41,275 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f737510f-5113-48bb-a64f-7dfae3d66ed8', 'name': '', 'tenant_id': '5a4fca4933ee4116add9fbe9a300f209', 'network_id': '9f810012-12d3-4d2a-8b54-778a481a0904', 'ip_version': 4, 'cidr': '71.31.225.128/26', 'allocation_pools': [{'start': '71.31.225.130', 'end': '71.31.225.190'}], 'gateway_ip': '71.31.225.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '71.31.225.130', 'tags': [], 'project_id': '5a4fca4933ee4116add9fbe9a300f209'}} 2025-01-15 16:56:41,302 - INFO - Created VN ctest-vn-59754959 2025-01-15 16:56:41,357 - DEBUG - VN ctest-vn-59754959 UUID is 9f810012-12d3-4d2a-8b54-778a481a0904 2025-01-15 16:56:41,478 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89754995:ctest-vn-84919848, 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-89754995:ctest-vn-59754959, 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] 2025-01-15 16:56:41,836 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fde82960-f2db-4dab-b617-b66c2f6ac949', 'name': 'ctest-vn-84919848', 'tenant_id': '5a4fca4933ee4116add9fbe9a300f209', 'project_id': '5a4fca4933ee4116add9fbe9a300f209', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7112ec88-6080-4d2d-9410-52dc144a892f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89754995', 'ctest-vn-84919848'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89754995', 'ctest-policy-allow-all-38279580']], 'subnet_ipam': [{'subnet_cidr': '31.152.51.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-15 16:56:42,150 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9f810012-12d3-4d2a-8b54-778a481a0904', 'name': 'ctest-vn-59754959', 'tenant_id': '5a4fca4933ee4116add9fbe9a300f209', 'project_id': '5a4fca4933ee4116add9fbe9a300f209', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f737510f-5113-48bb-a64f-7dfae3d66ed8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89754995', 'ctest-vn-59754959'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89754995', 'ctest-policy-allow-all-38279580']], 'subnet_ipam': [{'subnet_cidr': '71.31.225.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-15 16:56:42,289 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-01-15 16:56:42,589 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-01-15 16:56:42,627 - DEBUG - Requesting: http://10.0.0.30:8082/domain/ddebfc21-c48d-47cc-9cbc-5ab7708e3f1f 2025-01-15 16:56:42,641 - DEBUG - Requesting: http://10.0.0.30:8082/project/5a4fca49-33ee-4116-add9-fbe9a300f209 2025-01-15 16:56:42,722 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/fde82960-f2db-4dab-b617-b66c2f6ac949 2025-01-15 16:56:42,733 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/fde82960-f2db-4dab-b617-b66c2f6ac949 2025-01-15 16:56:42,742 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/99fac318-89ea-4269-beec-11a8c0149293 2025-01-15 16:56:42,749 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/99fac318-89ea-4269-beec-11a8c0149293 2025-01-15 16:56:42,756 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/49b6dda8-6e53-4576-a678-78e1e4f37477 2025-01-15 16:56:42,762 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-15 16:56:42,762 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/fde82960-f2db-4dab-b617-b66c2f6ac949 2025-01-15 16:56:42,770 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/99fac318-89ea-4269-beec-11a8c0149293 2025-01-15 16:56:42,783 - INFO - Verified VN network id 7 for VN fde82960-f2db-4dab-b617-b66c2f6ac949 2025-01-15 16:56:42,783 - INFO - Verifications in API Server for VN ctest-vn-84919848 passed 2025-01-15 16:56:42,783 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/fde82960-f2db-4dab-b617-b66c2f6ac949 2025-01-15 16:56:42,794 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/99fac318-89ea-4269-beec-11a8c0149293 2025-01-15 16:56:42,800 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/99fac318-89ea-4269-beec-11a8c0149293 2025-01-15 16:56:42,807 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/49b6dda8-6e53-4576-a678-78e1e4f37477 2025-01-15 16:56:42,820 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89754995:ctest-vn-84919848', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89754995', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18295918982560697771', 'uuid-lslong': '13121156615135480137'}, 'enable': 'true', 'created': '2025-01-15T16:56:40', 'last-modified': '2025-01-15T16:56:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.023684'} 2025-01-15 16:56:42,827 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-15 16:56:42,827 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84919848 passed 2025-01-15 16:56:42,827 - DEBUG - ====Verifying policy data for ctest-vn-84919848 in API_Server ====== 2025-01-15 16:56:42,828 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-01-15 16:56:42,834 - DEBUG - Requesting: http://10.0.0.30:8082/domain/ddebfc21-c48d-47cc-9cbc-5ab7708e3f1f 2025-01-15 16:56:42,845 - DEBUG - Requesting: http://10.0.0.30:8082/project/5a4fca49-33ee-4116-add9-fbe9a300f209 2025-01-15 16:56:42,930 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/fde82960-f2db-4dab-b617-b66c2f6ac949 2025-01-15 16:56:42,940 - DEBUG - ==>Verifying data for policy with id: e3d40f29-c2fd-4ee1-b69d-3b206bfb362a, fqn: ['default-domain', 'ctest-TestBasicPolicy-89754995', 'ctest-policy-allow-all-38279580'] 2025-01-15 16:56:42,940 - INFO - VN ctest-vn-84919848 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-15 16:56:42,940 - DEBUG - Verifying the vn in opserver 2025-01-15 16:56:42,940 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89754995:ctest-vn-84919848 virtual network link through opserver 10.0.0.30 2025-01-15 16:56:42,941 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2025-01-15 16:56:43,237 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2025-01-15 16:56:43,301 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89754995:ctest-vn-84919848', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89754995:ctest-vn-84919848?flat'} 2025-01-15 16:56:43,301 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89754995:ctest-vn-84919848 is found in opserver 2025-01-15 16:56:43,316 - DEBUG - Do not have enough data to verify VN in agent 2025-01-15 16:56:43,324 - DEBUG - VRF ids for VN ctest-vn-84919848: {} 2025-01-15 16:56:43,324 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-01-15 16:56:43,332 - DEBUG - Requesting: http://10.0.0.30:8082/domain/ddebfc21-c48d-47cc-9cbc-5ab7708e3f1f 2025-01-15 16:56:43,349 - DEBUG - Requesting: http://10.0.0.30:8082/project/5a4fca49-33ee-4116-add9-fbe9a300f209 2025-01-15 16:56:43,427 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/9f810012-12d3-4d2a-8b54-778a481a0904 2025-01-15 16:56:43,441 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/9f810012-12d3-4d2a-8b54-778a481a0904 2025-01-15 16:56:43,451 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/ecd52370-95e9-4de8-94a4-2087371819cf 2025-01-15 16:56:43,459 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/ecd52370-95e9-4de8-94a4-2087371819cf 2025-01-15 16:56:43,468 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/8f3d4b3b-299d-40d5-b9d0-aace2a03166b 2025-01-15 16:56:43,475 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-15 16:56:43,475 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/9f810012-12d3-4d2a-8b54-778a481a0904 2025-01-15 16:56:43,484 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/ecd52370-95e9-4de8-94a4-2087371819cf 2025-01-15 16:56:43,498 - INFO - Verified VN network id 8 for VN 9f810012-12d3-4d2a-8b54-778a481a0904 2025-01-15 16:56:43,498 - INFO - Verifications in API Server for VN ctest-vn-59754959 passed 2025-01-15 16:56:43,498 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/9f810012-12d3-4d2a-8b54-778a481a0904 2025-01-15 16:56:43,510 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/ecd52370-95e9-4de8-94a4-2087371819cf 2025-01-15 16:56:43,520 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/ecd52370-95e9-4de8-94a4-2087371819cf 2025-01-15 16:56:43,528 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/8f3d4b3b-299d-40d5-b9d0-aace2a03166b 2025-01-15 16:56:43,540 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89754995:ctest-vn-59754959', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89754995', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11493467801651465514', 'uuid-lslong': '10039780905114536196'}, 'enable': 'true', 'created': '2025-01-15T16:56:41', 'last-modified': '2025-01-15T16:56:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.481110'} 2025-01-15 16:56:43,547 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-15 16:56:43,547 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59754959 passed 2025-01-15 16:56:43,548 - DEBUG - ====Verifying policy data for ctest-vn-59754959 in API_Server ====== 2025-01-15 16:56:43,548 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-01-15 16:56:43,554 - DEBUG - Requesting: http://10.0.0.30:8082/domain/ddebfc21-c48d-47cc-9cbc-5ab7708e3f1f 2025-01-15 16:56:43,566 - DEBUG - Requesting: http://10.0.0.30:8082/project/5a4fca49-33ee-4116-add9-fbe9a300f209 2025-01-15 16:56:43,645 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/9f810012-12d3-4d2a-8b54-778a481a0904 2025-01-15 16:56:43,655 - DEBUG - ==>Verifying data for policy with id: e3d40f29-c2fd-4ee1-b69d-3b206bfb362a, fqn: ['default-domain', 'ctest-TestBasicPolicy-89754995', 'ctest-policy-allow-all-38279580'] 2025-01-15 16:56:43,655 - INFO - VN ctest-vn-59754959 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-15 16:56:43,655 - DEBUG - Verifying the vn in opserver 2025-01-15 16:56:43,655 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89754995:ctest-vn-59754959 virtual network link through opserver 10.0.0.30 2025-01-15 16:56:43,655 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2025-01-15 16:56:43,666 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89754995:ctest-vn-59754959', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89754995:ctest-vn-59754959?flat'} 2025-01-15 16:56:43,666 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89754995:ctest-vn-59754959 is found in opserver 2025-01-15 16:56:43,676 - DEBUG - Do not have enough data to verify VN in agent 2025-01-15 16:56:43,681 - DEBUG - VRF ids for VN ctest-vn-59754959: {} 2025-01-15 16:56:43,749 - DEBUG - Services list from nova: [, , ] 2025-01-15 16:56:44,910 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2641-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2641-1) 2025-01-15 16:56:46,092 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2641-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2641-1) 2025-01-15 16:56:46,092 - INFO - Waiting for VM ctest-TestBasicPolicy-89754995-42562063 to be up.. 2025-01-15 16:56:46,176 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-15 16:56:51,257 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-15 16:56:56,343 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-15 16:57:01,432 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-15 16:57:06,525 - DEBUG - VM is in ACTIVE state now 2025-01-15 16:57:06,525 - INFO - VM name : ctest-TestBasicPolicy-89754995-42562063 2025-01-15 16:57:06,627 - DEBUG - VM ctest-TestBasicPolicy-89754995-42562063 ID is 54c8f1fc-1c49-489e-b6b9-53f508bbcc7c 2025-01-15 16:57:06,651 - DEBUG - VM ctest-TestBasicPolicy-89754995-42562063 launched on Node cn-jenkins-deploy-platform-ansible-os-2641-1 2025-01-15 16:57:06,745 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/54c8f1fc-1c49-489e-b6b9-53f508bbcc7c 2025-01-15 16:57:06,756 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/5ad50d7d-2dc3-4027-9801-7964082faa16 2025-01-15 16:57:10,053 - 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') 2025-01-15 16:57:10,053 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-89754995-42562063 failed! 2025-01-15 16:57:10,109 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-89754995:ctest-vn-84919848 is 31.152.51.65 and allocation pool is NOT set 2025-01-15 16:57:14,176 - 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 1006ms') 2025-01-15 16:57:14,176 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-89754995-42562063 failed! 2025-01-15 16:57:14,233 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-89754995:ctest-vn-84919848 is 31.152.51.65 and allocation pool is NOT set 2025-01-15 16:57:16,300 - 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=5.33 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.29 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 = 2.285/3.809/5.333/1.524 ms') 2025-01-15 16:57:16,300 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-89754995-42562063 passed 2025-01-15 16:57:16,453 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-15 16:57:16,453 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-89754995-42562063, IP 31.152.51.67, Port 22 2025-01-15 16:57:16,627 - DEBUG - VM ctest-TestBasicPolicy-89754995-42562063 is ready for SSH connections 2025-01-15 16:57:16,627 - INFO - Waiting for VM ctest-TestBasicPolicy-89754995-27098234 to be up.. 2025-01-15 16:57:16,722 - DEBUG - VM is in ACTIVE state now 2025-01-15 16:57:16,723 - INFO - VM name : ctest-TestBasicPolicy-89754995-27098234 2025-01-15 16:57:16,805 - DEBUG - VM ctest-TestBasicPolicy-89754995-27098234 ID is c4ca44e4-a3fd-4cf4-a9d5-d5257fe60a5e 2025-01-15 16:57:16,805 - DEBUG - VM ctest-TestBasicPolicy-89754995-27098234 launched on Node cn-jenkins-deploy-platform-ansible-os-2641-1 2025-01-15 16:57:16,884 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/c4ca44e4-a3fd-4cf4-a9d5-d5257fe60a5e 2025-01-15 16:57:16,894 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/0a72c74d-4eca-4a7f-acdd-3e7a5fdb436f 2025-01-15 16:57:18,141 - 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=3.00 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.583 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.583/1.790/2.997/1.207 ms') 2025-01-15 16:57:18,141 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-89754995-27098234 passed 2025-01-15 16:57:18,293 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-15 16:57:18,294 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-89754995-27098234, IP 71.31.225.131, Port 22 2025-01-15 16:57:18,448 - DEBUG - VM ctest-TestBasicPolicy-89754995-27098234 is ready for SSH connections 2025-01-15 16:57:18,448 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-15 16:57:18,448 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 71.31.225.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.30, gateway password: c0ntrail123 2025-01-15 16:57:18,449 - DEBUG - ping -s 56 -c 3 -W 1 71.31.225.131 2025-01-15 16:57:22,444 - DEBUG - PING 71.31.225.131 (71.31.225.131): 56 data bytes 64 bytes from 71.31.225.131: seq=0 ttl=63 time=4.000 ms 64 bytes from 71.31.225.131: seq=1 ttl=63 time=0.898 ms 64 bytes from 71.31.225.131: seq=2 ttl=63 time=1.081 ms --- 71.31.225.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.898/1.993/4.000 ms 2025-01-15 16:57:22,444 - INFO - Ping to IP 71.31.225.131 from VM ctest-TestBasicPolicy-89754995-42562063 passed 2025-01-15 16:57:22,629 - DEBUG - Policy Update Response {"network-policy": {"uuid": "e3d40f29-c2fd-4ee1-b69d-3b206bfb362a", "href": "http://10.0.0.30:8082/network-policy/e3d40f29-c2fd-4ee1-b69d-3b206bfb362a"}} 2025-01-15 16:57:22,629 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-15 16:57:22,629 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 71.31.225.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.30, gateway password: c0ntrail123 2025-01-15 16:57:22,629 - DEBUG - ping -s 56 -c 3 -W 1 71.31.225.131 2025-01-15 16:57:25,828 - DEBUG - PING 71.31.225.131 (71.31.225.131): 56 data bytes --- 71.31.225.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-01-15 16:57:25,828 - WARNING - Ping to IP 71.31.225.131 from VM ctest-TestBasicPolicy-89754995-42562063 failed 2025-01-15 16:57:25,828 - INFO - Deleting VM ctest-TestBasicPolicy-89754995-27098234 2025-01-15 16:57:25,924 - INFO - Deleting VM ctest-TestBasicPolicy-89754995-42562063 2025-01-15 16:57:26,364 - INFO - Deleted policy ctest-policy-allow-all-38279580 2025-01-15 16:57:26,365 - INFO - Deleting VN ctest-vn-59754959 2025-01-15 16:57:26,406 - DEBUG - VN 9f810012-12d3-4d2a-8b54-778a481a0904 still in use: Unable to complete operation on network 9f810012-12d3-4d2a-8b54-778a481a0904. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6baceac2-e546-4e51-bcbe-3aa3ca5f41f2'] 2025-01-15 16:57:26,406 - WARNING - Deleting VN ctest-vn-59754959 failed..Will retry 2025-01-15 16:57:28,529 - DEBUG - Response for deleting network () 2025-01-15 16:57:28,529 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/ecd52370-95e9-4de8-94a4-2087371819cf 2025-01-15 16:57:28,541 - DEBUG - Response Code: 404 2025-01-15 16:57:28,541 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-01-15 16:57:28,552 - DEBUG - Requesting: http://10.0.0.30:8082/domain/ddebfc21-c48d-47cc-9cbc-5ab7708e3f1f 2025-01-15 16:57:28,613 - DEBUG - Requesting: http://10.0.0.30:8082/project/5a4fca49-33ee-4116-add9-fbe9a300f209 2025-01-15 16:57:28,688 - INFO - Validated that VN ctest-vn-59754959 is not found in API Server 2025-01-15 16:57:28,700 - DEBUG - VN ctest-vn-59754959 is not present in Agent 10.0.0.30 2025-01-15 16:57:28,700 - INFO - Validated that VN ctest-vn-59754959 is not in any agent 2025-01-15 16:57:28,716 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-59754959 info 2025-01-15 16:57:28,716 - INFO - Deleting VN ctest-vn-84919848 2025-01-15 16:57:28,834 - DEBUG - Response for deleting network () 2025-01-15 16:57:28,834 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/99fac318-89ea-4269-beec-11a8c0149293 2025-01-15 16:57:28,847 - DEBUG - Response Code: 404 2025-01-15 16:57:28,848 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-01-15 16:57:28,856 - DEBUG - Requesting: http://10.0.0.30:8082/domain/ddebfc21-c48d-47cc-9cbc-5ab7708e3f1f 2025-01-15 16:57:28,910 - DEBUG - Requesting: http://10.0.0.30:8082/project/5a4fca49-33ee-4116-add9-fbe9a300f209 2025-01-15 16:57:28,986 - INFO - Validated that VN ctest-vn-84919848 is not found in API Server 2025-01-15 16:57:28,997 - DEBUG - VN ctest-vn-84919848 is not present in Agent 10.0.0.30 2025-01-15 16:57:28,998 - INFO - Validated that VN ctest-vn-84919848 is not in any agent 2025-01-15 16:57:29,014 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-84919848 info 2025-01-15 16:57:29,271 - DEBUG - No XMPP flaps were noticed during the test
2025-01-15 16:57:29,271 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:50]
2025-01-15 16:57:29,271 - INFO - -------------------------------------------------------------------------------- 2025-01-15 16:57:29,968 - INFO - Deleted project: ctest-TestBasicPolicy-89754995, ID : 5a4fca49-33ee-4116-add9-fbe9a300f209