2024-09-02 02:45:17,598 - INFO - Domain Default found not creating 2024-09-02 02:45:17,755 - INFO - Project ctest-TestBasicPolicy-37090897 not found, creating it 2024-09-02 02:45:18,234 - INFO - Created Project:ctest-TestBasicPolicy-37090897, ID : fb12f4d2-3b61-43d4-9e8a-887e210cd973 2024-09-02 02:45:21,799 - INFO - ================================================================================ 2024-09-02 02:45:21,799 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-02 02:45:21,799 - 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-09-02 02:45:22,059 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.19': '0'}} with 2024-09-02 02:45:22,059 - INFO - Initial checks done. Running the testcase now 2024-09-02 02:45:22,059 - INFO - 2024-09-02 02:45:22,607 - DEBUG - Response for create_network : {'network': {'id': '710689d1-1cd2-4adb-84c6-3618b584e791', 'name': 'ctest-vn-54498074', 'tenant_id': 'fb12f4d23b6143d49e8a887e210cd973', 'project_id': 'fb12f4d23b6143d49e8a887e210cd973', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37090897', 'ctest-vn-54498074'], 'port_security_enabled': True, 'description': ''}} 2024-09-02 02:45:22,761 - DEBUG - Response for create_subnet : {'subnet': {'id': '60b60140-c9a7-488e-907e-fb7407a2d7fe', 'name': '', 'tenant_id': 'fb12f4d23b6143d49e8a887e210cd973', 'network_id': '710689d1-1cd2-4adb-84c6-3618b584e791', 'ip_version': 4, 'cidr': '78.119.169.192/26', 'allocation_pools': [{'start': '78.119.169.194', 'end': '78.119.169.254'}], 'gateway_ip': '78.119.169.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '78.119.169.194', 'tags': [], 'project_id': 'fb12f4d23b6143d49e8a887e210cd973'}} 2024-09-02 02:45:22,779 - INFO - Created VN ctest-vn-54498074 2024-09-02 02:45:22,834 - DEBUG - VN ctest-vn-54498074 UUID is 710689d1-1cd2-4adb-84c6-3618b584e791 2024-09-02 02:45:23,168 - DEBUG - Response for create_network : {'network': {'id': '423af243-8e79-408a-a33f-17dd697f61f8', 'name': 'ctest-vn-52114148', 'tenant_id': 'fb12f4d23b6143d49e8a887e210cd973', 'project_id': 'fb12f4d23b6143d49e8a887e210cd973', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37090897', 'ctest-vn-52114148'], 'port_security_enabled': True, 'description': ''}} 2024-09-02 02:45:23,389 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd0251927-2de3-45ec-b49f-34eb80d3f61b', 'name': '', 'tenant_id': 'fb12f4d23b6143d49e8a887e210cd973', 'network_id': '423af243-8e79-408a-a33f-17dd697f61f8', 'ip_version': 4, 'cidr': '62.48.146.0/26', 'allocation_pools': [{'start': '62.48.146.2', 'end': '62.48.146.62'}], 'gateway_ip': '62.48.146.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.48.146.2', 'tags': [], 'project_id': 'fb12f4d23b6143d49e8a887e210cd973'}} 2024-09-02 02:45:23,407 - INFO - Created VN ctest-vn-52114148 2024-09-02 02:45:23,457 - DEBUG - VN ctest-vn-52114148 UUID is 423af243-8e79-408a-a33f-17dd697f61f8 2024-09-02 02:45:23,569 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-37090897:ctest-vn-54498074, 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-37090897:ctest-vn-52114148, 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-09-02 02:45:23,851 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '710689d1-1cd2-4adb-84c6-3618b584e791', 'name': 'ctest-vn-54498074', 'tenant_id': 'fb12f4d23b6143d49e8a887e210cd973', 'project_id': 'fb12f4d23b6143d49e8a887e210cd973', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['60b60140-c9a7-488e-907e-fb7407a2d7fe'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37090897', 'ctest-vn-54498074'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37090897', 'ctest-policy-allow-all-40447333']], 'subnet_ipam': [{'subnet_cidr': '78.119.169.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-02 02:45:24,101 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '423af243-8e79-408a-a33f-17dd697f61f8', 'name': 'ctest-vn-52114148', 'tenant_id': 'fb12f4d23b6143d49e8a887e210cd973', 'project_id': 'fb12f4d23b6143d49e8a887e210cd973', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d0251927-2de3-45ec-b49f-34eb80d3f61b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37090897', 'ctest-vn-52114148'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37090897', 'ctest-policy-allow-all-40447333']], 'subnet_ipam': [{'subnet_cidr': '62.48.146.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-02 02:45:24,262 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-09-02 02:45:24,561 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-09-02 02:45:24,591 - DEBUG - Requesting: http://10.0.0.31:8082/domain/77b3bf0c-89c5-41cc-823e-37f40739091b 2024-09-02 02:45:24,606 - DEBUG - Requesting: http://10.0.0.31:8082/project/fb12f4d2-3b61-43d4-9e8a-887e210cd973 2024-09-02 02:45:24,676 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/710689d1-1cd2-4adb-84c6-3618b584e791 2024-09-02 02:45:24,686 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/710689d1-1cd2-4adb-84c6-3618b584e791 2024-09-02 02:45:24,695 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/bff0c859-518b-42a6-89ff-2ca9d5191366 2024-09-02 02:45:24,702 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/bff0c859-518b-42a6-89ff-2ca9d5191366 2024-09-02 02:45:24,710 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/1ec617c0-ef3a-440d-97f4-fbcd77bca9f5 2024-09-02 02:45:24,716 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-02 02:45:24,716 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/710689d1-1cd2-4adb-84c6-3618b584e791 2024-09-02 02:45:24,724 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/bff0c859-518b-42a6-89ff-2ca9d5191366 2024-09-02 02:45:24,735 - INFO - Verified VN network id 8 for VN 710689d1-1cd2-4adb-84c6-3618b584e791 2024-09-02 02:45:24,735 - INFO - Verifications in API Server for VN ctest-vn-54498074 passed 2024-09-02 02:45:24,735 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/710689d1-1cd2-4adb-84c6-3618b584e791 2024-09-02 02:45:24,743 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/bff0c859-518b-42a6-89ff-2ca9d5191366 2024-09-02 02:45:24,750 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/bff0c859-518b-42a6-89ff-2ca9d5191366 2024-09-02 02:45:24,756 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/1ec617c0-ef3a-440d-97f4-fbcd77bca9f5 2024-09-02 02:45:24,768 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37090897:ctest-vn-54498074', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37090897', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8144348507370834651', 'uuid-lslong': '9567393938147698577'}, 'enable': 'true', 'created': '2024-09-02T02:45:22', 'last-modified': '2024-09-02T02:45:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.936989'} 2024-09-02 02:45:24,774 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-02 02:45:24,775 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54498074 passed 2024-09-02 02:45:24,775 - DEBUG - ====Verifying policy data for ctest-vn-54498074 in API_Server ====== 2024-09-02 02:45:24,775 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-09-02 02:45:24,781 - DEBUG - Requesting: http://10.0.0.31:8082/domain/77b3bf0c-89c5-41cc-823e-37f40739091b 2024-09-02 02:45:24,793 - DEBUG - Requesting: http://10.0.0.31:8082/project/fb12f4d2-3b61-43d4-9e8a-887e210cd973 2024-09-02 02:45:24,863 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/710689d1-1cd2-4adb-84c6-3618b584e791 2024-09-02 02:45:24,871 - DEBUG - ==>Verifying data for policy with id: 99c8f0eb-5a12-4b34-b28a-677173c1e799, fqn: ['default-domain', 'ctest-TestBasicPolicy-37090897', 'ctest-policy-allow-all-40447333'] 2024-09-02 02:45:24,871 - INFO - VN ctest-vn-54498074 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-02 02:45:24,872 - DEBUG - Verifying the vn in opserver 2024-09-02 02:45:24,872 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37090897:ctest-vn-54498074 virtual network link through opserver 10.0.0.31 2024-09-02 02:45:24,872 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-09-02 02:45:25,166 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-09-02 02:45:25,235 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37090897:ctest-vn-54498074', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37090897:ctest-vn-54498074?flat'} 2024-09-02 02:45:25,235 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37090897:ctest-vn-54498074 is found in opserver 2024-09-02 02:45:25,246 - DEBUG - Do not have enough data to verify VN in agent 2024-09-02 02:45:25,251 - DEBUG - VRF ids for VN ctest-vn-54498074: {} 2024-09-02 02:45:25,251 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-09-02 02:45:25,257 - DEBUG - Requesting: http://10.0.0.31:8082/domain/77b3bf0c-89c5-41cc-823e-37f40739091b 2024-09-02 02:45:25,268 - DEBUG - Requesting: http://10.0.0.31:8082/project/fb12f4d2-3b61-43d4-9e8a-887e210cd973 2024-09-02 02:45:25,338 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/423af243-8e79-408a-a33f-17dd697f61f8 2024-09-02 02:45:25,348 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/423af243-8e79-408a-a33f-17dd697f61f8 2024-09-02 02:45:25,356 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/a32ae49b-0cd4-45cd-a6f8-e6e6935ac0b7 2024-09-02 02:45:25,363 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/a32ae49b-0cd4-45cd-a6f8-e6e6935ac0b7 2024-09-02 02:45:25,369 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/06434791-f7ff-47f6-b817-f21928757bef 2024-09-02 02:45:25,376 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-02 02:45:25,376 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/423af243-8e79-408a-a33f-17dd697f61f8 2024-09-02 02:45:25,387 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/a32ae49b-0cd4-45cd-a6f8-e6e6935ac0b7 2024-09-02 02:45:25,403 - INFO - Verified VN network id 9 for VN 423af243-8e79-408a-a33f-17dd697f61f8 2024-09-02 02:45:25,403 - INFO - Verifications in API Server for VN ctest-vn-52114148 passed 2024-09-02 02:45:25,404 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/423af243-8e79-408a-a33f-17dd697f61f8 2024-09-02 02:45:25,417 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/a32ae49b-0cd4-45cd-a6f8-e6e6935ac0b7 2024-09-02 02:45:25,426 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/a32ae49b-0cd4-45cd-a6f8-e6e6935ac0b7 2024-09-02 02:45:25,433 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/06434791-f7ff-47f6-b817-f21928757bef 2024-09-02 02:45:25,444 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37090897:ctest-vn-52114148', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37090897', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4772393127119503498', 'uuid-lslong': '11763146991440191992'}, 'enable': 'true', 'created': '2024-09-02T02:45:23', 'last-modified': '2024-09-02T02:45:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.372672'} 2024-09-02 02:45:25,450 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-02 02:45:25,450 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52114148 passed 2024-09-02 02:45:25,450 - DEBUG - ====Verifying policy data for ctest-vn-52114148 in API_Server ====== 2024-09-02 02:45:25,450 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-09-02 02:45:25,456 - DEBUG - Requesting: http://10.0.0.31:8082/domain/77b3bf0c-89c5-41cc-823e-37f40739091b 2024-09-02 02:45:25,467 - DEBUG - Requesting: http://10.0.0.31:8082/project/fb12f4d2-3b61-43d4-9e8a-887e210cd973 2024-09-02 02:45:25,533 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/423af243-8e79-408a-a33f-17dd697f61f8 2024-09-02 02:45:25,541 - DEBUG - ==>Verifying data for policy with id: 99c8f0eb-5a12-4b34-b28a-677173c1e799, fqn: ['default-domain', 'ctest-TestBasicPolicy-37090897', 'ctest-policy-allow-all-40447333'] 2024-09-02 02:45:25,541 - INFO - VN ctest-vn-52114148 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-02 02:45:25,541 - DEBUG - Verifying the vn in opserver 2024-09-02 02:45:25,541 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37090897:ctest-vn-52114148 virtual network link through opserver 10.0.0.31 2024-09-02 02:45:25,541 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-09-02 02:45:25,557 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37090897:ctest-vn-52114148', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37090897:ctest-vn-52114148?flat'} 2024-09-02 02:45:25,557 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37090897:ctest-vn-52114148 is found in opserver 2024-09-02 02:45:25,569 - DEBUG - Do not have enough data to verify VN in agent 2024-09-02 02:45:25,574 - DEBUG - VRF ids for VN ctest-vn-52114148: {} 2024-09-02 02:45:25,627 - DEBUG - Services list from nova: [, , ] 2024-09-02 02:45:26,648 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1828-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1828-1) 2024-09-02 02:45:28,585 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1828-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1828-1) 2024-09-02 02:45:28,586 - INFO - Waiting for VM ctest-TestBasicPolicy-37090897-06959947 to be up.. 2024-09-02 02:45:28,634 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-02 02:45:33,709 - DEBUG - VM is in ACTIVE state now 2024-09-02 02:45:33,709 - INFO - VM name : ctest-TestBasicPolicy-37090897-06959947 2024-09-02 02:45:33,784 - DEBUG - VM ctest-TestBasicPolicy-37090897-06959947 ID is 7d14be67-ae6a-4487-ab2a-9ac5c57a4ec4 2024-09-02 02:45:33,802 - DEBUG - VM ctest-TestBasicPolicy-37090897-06959947 launched on Node cn-jenkins-deploy-platform-ansible-os-1828-1 2024-09-02 02:45:33,877 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/7d14be67-ae6a-4487-ab2a-9ac5c57a4ec4 2024-09-02 02:45:33,885 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/e3efd84b-c0b3-4059-b1e1-bc13b995e920 2024-09-02 02:45:37,152 - 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 1028ms') 2024-09-02 02:45:37,153 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-37090897-06959947 failed! 2024-09-02 02:45:37,210 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-37090897:ctest-vn-54498074 is 78.119.169.193 and allocation pool is NOT set 2024-09-02 02:45:41,279 - 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 1004ms') 2024-09-02 02:45:41,279 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-37090897-06959947 failed! 2024-09-02 02:45:41,334 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-37090897:ctest-vn-54498074 is 78.119.169.193 and allocation pool is NOT set 2024-09-02 02:45:43,397 - 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.72 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.515 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.515/2.118/3.721/1.603 ms') 2024-09-02 02:45:43,397 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-37090897-06959947 passed 2024-09-02 02:45:43,546 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 02:45:43,546 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-37090897-06959947, IP 78.119.169.195, Port 22 2024-09-02 02:45:43,601 - 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-09-02 02:45:43,683 - DEBUG - VM ctest-TestBasicPolicy-37090897-06959947 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-02 02:45:48,684 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 02:45:48,684 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-37090897-06959947, IP 78.119.169.195, Port 22 2024-09-02 02:45:48,837 - DEBUG - VM ctest-TestBasicPolicy-37090897-06959947 is ready for SSH connections 2024-09-02 02:45:48,837 - INFO - Waiting for VM ctest-TestBasicPolicy-37090897-51960492 to be up.. 2024-09-02 02:45:48,914 - DEBUG - VM is in ACTIVE state now 2024-09-02 02:45:48,914 - INFO - VM name : ctest-TestBasicPolicy-37090897-51960492 2024-09-02 02:45:48,985 - DEBUG - VM ctest-TestBasicPolicy-37090897-51960492 ID is 31b17ceb-4830-42d9-81af-2bcedf4b4ccb 2024-09-02 02:45:48,985 - DEBUG - VM ctest-TestBasicPolicy-37090897-51960492 launched on Node cn-jenkins-deploy-platform-ansible-os-1828-1 2024-09-02 02:45:49,059 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/31b17ceb-4830-42d9-81af-2bcedf4b4ccb 2024-09-02 02:45:49,067 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/d6c72bc4-74e3-457c-81f5-7a2cf3fac025 2024-09-02 02:45:50,305 - 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.71 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.493 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.493/1.601/2.710/1.108 ms') 2024-09-02 02:45:50,305 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-37090897-51960492 passed 2024-09-02 02:45:50,454 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 02:45:50,454 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-37090897-51960492, IP 62.48.146.3, Port 22 2024-09-02 02:45:50,605 - DEBUG - VM ctest-TestBasicPolicy-37090897-51960492 is ready for SSH connections 2024-09-02 02:45:50,605 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 02:45:50,605 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 62.48.146.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-09-02 02:45:50,605 - DEBUG - ping -s 56 -c 3 -W 1 62.48.146.3 2024-09-02 02:45:54,657 - DEBUG - PING 62.48.146.3 (62.48.146.3): 56 data bytes 64 bytes from 62.48.146.3: seq=0 ttl=63 time=4.382 ms 64 bytes from 62.48.146.3: seq=1 ttl=63 time=0.704 ms 64 bytes from 62.48.146.3: seq=2 ttl=63 time=0.778 ms --- 62.48.146.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.704/1.954/4.382 ms 2024-09-02 02:45:54,658 - INFO - Ping to IP 62.48.146.3 from VM ctest-TestBasicPolicy-37090897-06959947 passed 2024-09-02 02:45:54,833 - DEBUG - Policy Update Response {"network-policy": {"uuid": "99c8f0eb-5a12-4b34-b28a-677173c1e799", "href": "http://10.0.0.31:8082/network-policy/99c8f0eb-5a12-4b34-b28a-677173c1e799"}} 2024-09-02 02:45:54,833 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 02:45:54,834 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 62.48.146.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-09-02 02:45:54,834 - DEBUG - ping -s 56 -c 3 -W 1 62.48.146.3 2024-09-02 02:45:58,079 - DEBUG - PING 62.48.146.3 (62.48.146.3): 56 data bytes --- 62.48.146.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-02 02:45:58,079 - WARNING - Ping to IP 62.48.146.3 from VM ctest-TestBasicPolicy-37090897-06959947 failed 2024-09-02 02:45:58,079 - INFO - Deleting VM ctest-TestBasicPolicy-37090897-51960492 2024-09-02 02:45:58,140 - INFO - Deleting VM ctest-TestBasicPolicy-37090897-06959947 2024-09-02 02:45:58,518 - INFO - Deleted policy ctest-policy-allow-all-40447333 2024-09-02 02:45:58,518 - INFO - Deleting VN ctest-vn-52114148 2024-09-02 02:45:58,556 - DEBUG - VN 423af243-8e79-408a-a33f-17dd697f61f8 still in use: Unable to complete operation on network 423af243-8e79-408a-a33f-17dd697f61f8. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-4fb92278-5c0d-45f1-af58-45ed50ed348d'] 2024-09-02 02:45:58,556 - WARNING - Deleting VN ctest-vn-52114148 failed..Will retry 2024-09-02 02:46:01,281 - DEBUG - Response for deleting network () 2024-09-02 02:46:01,281 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/a32ae49b-0cd4-45cd-a6f8-e6e6935ac0b7 2024-09-02 02:46:01,289 - DEBUG - Response Code: 404 2024-09-02 02:46:01,289 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-09-02 02:46:01,295 - DEBUG - Requesting: http://10.0.0.31:8082/domain/77b3bf0c-89c5-41cc-823e-37f40739091b 2024-09-02 02:46:01,351 - DEBUG - Requesting: http://10.0.0.31:8082/project/fb12f4d2-3b61-43d4-9e8a-887e210cd973 2024-09-02 02:46:01,419 - INFO - Validated that VN ctest-vn-52114148 is not found in API Server 2024-09-02 02:46:01,430 - DEBUG - VN ctest-vn-52114148 is not present in Agent 10.0.0.31 2024-09-02 02:46:01,430 - INFO - Validated that VN ctest-vn-52114148 is not in any agent 2024-09-02 02:46:01,448 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-52114148 info 2024-09-02 02:46:01,448 - INFO - Deleting VN ctest-vn-54498074 2024-09-02 02:46:01,551 - DEBUG - Response for deleting network () 2024-09-02 02:46:01,551 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/bff0c859-518b-42a6-89ff-2ca9d5191366 2024-09-02 02:46:01,560 - DEBUG - Response Code: 404 2024-09-02 02:46:01,560 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-09-02 02:46:01,566 - DEBUG - Requesting: http://10.0.0.31:8082/domain/77b3bf0c-89c5-41cc-823e-37f40739091b 2024-09-02 02:46:01,623 - DEBUG - Requesting: http://10.0.0.31:8082/project/fb12f4d2-3b61-43d4-9e8a-887e210cd973 2024-09-02 02:46:01,690 - INFO - Validated that VN ctest-vn-54498074 is not found in API Server 2024-09-02 02:46:01,701 - DEBUG - VN ctest-vn-54498074 is not present in Agent 10.0.0.31 2024-09-02 02:46:01,701 - INFO - Validated that VN ctest-vn-54498074 is not in any agent 2024-09-02 02:46:01,717 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-54498074 info 2024-09-02 02:46:01,971 - DEBUG - No XMPP flaps were noticed during the test 2024-09-02 02:46:01,971 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:40] 2024-09-02 02:46:01,971 - INFO - -------------------------------------------------------------------------------- 2024-09-02 02:46:03,369 - INFO - Deleted project: ctest-TestBasicPolicy-37090897, ID : fb12f4d2-3b61-43d4-9e8a-887e210cd973