2024-09-17 16:22:57,851 - INFO - Domain Default found not creating 2024-09-17 16:22:58,043 - INFO - Project ctest-TestBasicPolicy-05777329 not found, creating it 2024-09-17 16:22:58,564 - INFO - Created Project:ctest-TestBasicPolicy-05777329, ID : 9d6a8418-fd14-4d99-8e12-c9eedd4fd976 2024-09-17 16:23:00,334 - INFO - ================================================================================ 2024-09-17 16:23:00,334 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-17 16:23:00,334 - 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-17 16:23:00,610 - DEBUG - Nothing to compare xmpp stats {'10.0.0.54': {'10.20.0.11': '0'}} with 2024-09-17 16:23:00,611 - INFO - Initial checks done. Running the testcase now 2024-09-17 16:23:00,611 - INFO - 2024-09-17 16:23:01,323 - DEBUG - Response for create_network : {'network': {'id': 'd2c1bd5b-fbc9-4244-804b-2996ab5b23dd', 'name': 'ctest-vn-32604360', 'tenant_id': '9d6a8418fd144d998e12c9eedd4fd976', 'project_id': '9d6a8418fd144d998e12c9eedd4fd976', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05777329', 'ctest-vn-32604360'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 16:23:01,595 - DEBUG - Response for create_subnet : {'subnet': {'id': '76a01de4-3f2e-42a4-afaf-2524ea1583ca', 'name': '', 'tenant_id': '9d6a8418fd144d998e12c9eedd4fd976', 'network_id': 'd2c1bd5b-fbc9-4244-804b-2996ab5b23dd', 'ip_version': 4, 'cidr': '121.187.231.64/26', 'allocation_pools': [{'start': '121.187.231.66', 'end': '121.187.231.126'}], 'gateway_ip': '121.187.231.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.187.231.66', 'tags': [], 'project_id': '9d6a8418fd144d998e12c9eedd4fd976'}} 2024-09-17 16:23:01,623 - INFO - Created VN ctest-vn-32604360 2024-09-17 16:23:01,685 - DEBUG - VN ctest-vn-32604360 UUID is d2c1bd5b-fbc9-4244-804b-2996ab5b23dd 2024-09-17 16:23:02,030 - DEBUG - Response for create_network : {'network': {'id': '31d80985-66ad-4e66-b31f-ce52053fdc3d', 'name': 'ctest-vn-67673256', 'tenant_id': '9d6a8418fd144d998e12c9eedd4fd976', 'project_id': '9d6a8418fd144d998e12c9eedd4fd976', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05777329', 'ctest-vn-67673256'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 16:23:02,238 - DEBUG - Response for create_subnet : {'subnet': {'id': '4a266b6e-c713-4400-9892-aaea2afc7935', 'name': '', 'tenant_id': '9d6a8418fd144d998e12c9eedd4fd976', 'network_id': '31d80985-66ad-4e66-b31f-ce52053fdc3d', 'ip_version': 4, 'cidr': '100.183.231.128/26', 'allocation_pools': [{'start': '100.183.231.130', 'end': '100.183.231.190'}], 'gateway_ip': '100.183.231.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '100.183.231.130', 'tags': [], 'project_id': '9d6a8418fd144d998e12c9eedd4fd976'}} 2024-09-17 16:23:02,260 - INFO - Created VN ctest-vn-67673256 2024-09-17 16:23:02,317 - DEBUG - VN ctest-vn-67673256 UUID is 31d80985-66ad-4e66-b31f-ce52053fdc3d 2024-09-17 16:23:02,460 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-05777329:ctest-vn-32604360, 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-05777329:ctest-vn-67673256, 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-17 16:23:02,792 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd2c1bd5b-fbc9-4244-804b-2996ab5b23dd', 'name': 'ctest-vn-32604360', 'tenant_id': '9d6a8418fd144d998e12c9eedd4fd976', 'project_id': '9d6a8418fd144d998e12c9eedd4fd976', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['76a01de4-3f2e-42a4-afaf-2524ea1583ca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05777329', 'ctest-vn-32604360'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05777329', 'ctest-policy-allow-all-46801788']], 'subnet_ipam': [{'subnet_cidr': '121.187.231.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-17 16:23:03,071 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '31d80985-66ad-4e66-b31f-ce52053fdc3d', 'name': 'ctest-vn-67673256', 'tenant_id': '9d6a8418fd144d998e12c9eedd4fd976', 'project_id': '9d6a8418fd144d998e12c9eedd4fd976', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4a266b6e-c713-4400-9892-aaea2afc7935'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05777329', 'ctest-vn-67673256'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05777329', 'ctest-policy-allow-all-46801788']], 'subnet_ipam': [{'subnet_cidr': '100.183.231.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-17 16:23:03,229 - DEBUG - Requesting: http://10.0.0.54:8082/domains 2024-09-17 16:23:03,568 - DEBUG - Requesting: http://10.0.0.54:8082/domains 2024-09-17 16:23:03,609 - DEBUG - Requesting: http://10.0.0.54:8082/domain/0c405347-3d08-48bd-a819-289297b0cbcf 2024-09-17 16:23:03,638 - DEBUG - Requesting: http://10.0.0.54:8082/project/9d6a8418-fd14-4d99-8e12-c9eedd4fd976 2024-09-17 16:23:03,732 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/d2c1bd5b-fbc9-4244-804b-2996ab5b23dd 2024-09-17 16:23:03,750 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/d2c1bd5b-fbc9-4244-804b-2996ab5b23dd 2024-09-17 16:23:03,768 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/7a937aba-9627-4436-90f7-f3fd56593c9e 2024-09-17 16:23:03,778 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/7a937aba-9627-4436-90f7-f3fd56593c9e 2024-09-17 16:23:03,788 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/f9d59d42-c43a-4cfe-9a78-4ac807bbfab4 2024-09-17 16:23:03,797 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-17 16:23:03,797 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/d2c1bd5b-fbc9-4244-804b-2996ab5b23dd 2024-09-17 16:23:03,814 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/7a937aba-9627-4436-90f7-f3fd56593c9e 2024-09-17 16:23:03,841 - INFO - Verified VN network id 9 for VN d2c1bd5b-fbc9-4244-804b-2996ab5b23dd 2024-09-17 16:23:03,841 - INFO - Verifications in API Server for VN ctest-vn-32604360 passed 2024-09-17 16:23:03,841 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/d2c1bd5b-fbc9-4244-804b-2996ab5b23dd 2024-09-17 16:23:03,860 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/7a937aba-9627-4436-90f7-f3fd56593c9e 2024-09-17 16:23:03,872 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/7a937aba-9627-4436-90f7-f3fd56593c9e 2024-09-17 16:23:03,882 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/f9d59d42-c43a-4cfe-9a78-4ac807bbfab4 2024-09-17 16:23:03,898 - DEBUG - Control-node 10.0.0.54 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05777329:ctest-vn-32604360', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05777329', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15186627621233967684', 'uuid-lslong': '9244528387204785117'}, 'enable': 'true', 'created': '2024-09-17T16:23:01', 'last-modified': '2024-09-17T16:23:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.135181'} 2024-09-17 16:23:03,906 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-17 16:23:03,906 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32604360 passed 2024-09-17 16:23:03,907 - DEBUG - ====Verifying policy data for ctest-vn-32604360 in API_Server ====== 2024-09-17 16:23:03,907 - DEBUG - Requesting: http://10.0.0.54:8082/domains 2024-09-17 16:23:03,916 - DEBUG - Requesting: http://10.0.0.54:8082/domain/0c405347-3d08-48bd-a819-289297b0cbcf 2024-09-17 16:23:03,933 - DEBUG - Requesting: http://10.0.0.54:8082/project/9d6a8418-fd14-4d99-8e12-c9eedd4fd976 2024-09-17 16:23:04,020 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/d2c1bd5b-fbc9-4244-804b-2996ab5b23dd 2024-09-17 16:23:04,040 - DEBUG - ==>Verifying data for policy with id: 9aa5dc96-1211-4a6f-94e0-275d7ae89c92, fqn: ['default-domain', 'ctest-TestBasicPolicy-05777329', 'ctest-policy-allow-all-46801788'] 2024-09-17 16:23:04,040 - INFO - VN ctest-vn-32604360 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-17 16:23:04,040 - DEBUG - Verifying the vn in opserver 2024-09-17 16:23:04,040 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05777329:ctest-vn-32604360 virtual network link through opserver 10.0.0.54 2024-09-17 16:23:04,041 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks 2024-09-17 16:23:04,385 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks 2024-09-17 16:23:04,463 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05777329:ctest-vn-32604360', 'href': 'http://10.0.0.54:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05777329:ctest-vn-32604360?flat'} 2024-09-17 16:23:04,463 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05777329:ctest-vn-32604360 is found in opserver 2024-09-17 16:23:04,479 - DEBUG - Do not have enough data to verify VN in agent 2024-09-17 16:23:04,486 - DEBUG - VRF ids for VN ctest-vn-32604360: {} 2024-09-17 16:23:04,486 - DEBUG - Requesting: http://10.0.0.54:8082/domains 2024-09-17 16:23:04,495 - DEBUG - Requesting: http://10.0.0.54:8082/domain/0c405347-3d08-48bd-a819-289297b0cbcf 2024-09-17 16:23:04,514 - DEBUG - Requesting: http://10.0.0.54:8082/project/9d6a8418-fd14-4d99-8e12-c9eedd4fd976 2024-09-17 16:23:04,616 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/31d80985-66ad-4e66-b31f-ce52053fdc3d 2024-09-17 16:23:04,639 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/31d80985-66ad-4e66-b31f-ce52053fdc3d 2024-09-17 16:23:04,660 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/1f38ae52-774a-43b8-8956-84ee3ca962d5 2024-09-17 16:23:04,675 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/1f38ae52-774a-43b8-8956-84ee3ca962d5 2024-09-17 16:23:04,686 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/a46b7b40-9aa6-410b-8467-3843d6c03301 2024-09-17 16:23:04,695 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-17 16:23:04,695 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/31d80985-66ad-4e66-b31f-ce52053fdc3d 2024-09-17 16:23:04,711 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/1f38ae52-774a-43b8-8956-84ee3ca962d5 2024-09-17 16:23:04,739 - INFO - Verified VN network id 10 for VN 31d80985-66ad-4e66-b31f-ce52053fdc3d 2024-09-17 16:23:04,739 - INFO - Verifications in API Server for VN ctest-vn-67673256 passed 2024-09-17 16:23:04,739 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/31d80985-66ad-4e66-b31f-ce52053fdc3d 2024-09-17 16:23:04,756 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/1f38ae52-774a-43b8-8956-84ee3ca962d5 2024-09-17 16:23:04,766 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/1f38ae52-774a-43b8-8956-84ee3ca962d5 2024-09-17 16:23:04,778 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/a46b7b40-9aa6-410b-8467-3843d6c03301 2024-09-17 16:23:04,798 - DEBUG - Control-node 10.0.0.54 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05777329:ctest-vn-67673256', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05777329', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3591631171385904742', 'uuid-lslong': '12907261908737842237'}, 'enable': 'true', 'created': '2024-09-17T16:23:01', 'last-modified': '2024-09-17T16:23:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.755979'} 2024-09-17 16:23:04,806 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-17 16:23:04,806 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67673256 passed 2024-09-17 16:23:04,806 - DEBUG - ====Verifying policy data for ctest-vn-67673256 in API_Server ====== 2024-09-17 16:23:04,806 - DEBUG - Requesting: http://10.0.0.54:8082/domains 2024-09-17 16:23:04,814 - DEBUG - Requesting: http://10.0.0.54:8082/domain/0c405347-3d08-48bd-a819-289297b0cbcf 2024-09-17 16:23:04,835 - DEBUG - Requesting: http://10.0.0.54:8082/project/9d6a8418-fd14-4d99-8e12-c9eedd4fd976 2024-09-17 16:23:04,927 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/31d80985-66ad-4e66-b31f-ce52053fdc3d 2024-09-17 16:23:04,945 - DEBUG - ==>Verifying data for policy with id: 9aa5dc96-1211-4a6f-94e0-275d7ae89c92, fqn: ['default-domain', 'ctest-TestBasicPolicy-05777329', 'ctest-policy-allow-all-46801788'] 2024-09-17 16:23:04,945 - INFO - VN ctest-vn-67673256 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-17 16:23:04,945 - DEBUG - Verifying the vn in opserver 2024-09-17 16:23:04,945 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05777329:ctest-vn-67673256 virtual network link through opserver 10.0.0.54 2024-09-17 16:23:04,945 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks 2024-09-17 16:23:04,961 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05777329:ctest-vn-67673256', 'href': 'http://10.0.0.54:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05777329:ctest-vn-67673256?flat'} 2024-09-17 16:23:04,961 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05777329:ctest-vn-67673256 is found in opserver 2024-09-17 16:23:04,977 - DEBUG - Do not have enough data to verify VN in agent 2024-09-17 16:23:04,985 - DEBUG - VRF ids for VN ctest-vn-67673256: {} 2024-09-17 16:23:05,055 - DEBUG - Services list from nova: [, , ] 2024-09-17 16:23:06,261 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1964-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1964-1) 2024-09-17 16:23:07,758 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1964-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1964-1) 2024-09-17 16:23:07,758 - INFO - Waiting for VM ctest-TestBasicPolicy-05777329-91218572 to be up.. 2024-09-17 16:23:07,869 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-17 16:23:12,969 - DEBUG - VM is in ACTIVE state now 2024-09-17 16:23:12,969 - INFO - VM name : ctest-TestBasicPolicy-05777329-91218572 2024-09-17 16:23:13,067 - DEBUG - VM ctest-TestBasicPolicy-05777329-91218572 ID is 33d0ae6b-05fe-41e7-b95b-ce066a70981e 2024-09-17 16:23:13,088 - DEBUG - VM ctest-TestBasicPolicy-05777329-91218572 launched on Node cn-jenkins-deploy-platform-ansible-os-1964-1 2024-09-17 16:23:13,182 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-machine/33d0ae6b-05fe-41e7-b95b-ce066a70981e 2024-09-17 16:23:13,195 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-machine-interface/b9e92c3b-7097-4931-8762-19beb5d8945b 2024-09-17 16:23:16,480 - 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 1014ms') 2024-09-17 16:23:16,480 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-05777329-91218572 failed! 2024-09-17 16:23:16,541 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-05777329:ctest-vn-32604360 is 121.187.231.65 and allocation pool is NOT set 2024-09-17 16:23:18,604 - 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.10 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.11 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.108/4.105/6.103/1.997 ms') 2024-09-17 16:23:18,604 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-05777329-91218572 passed 2024-09-17 16:23:18,773 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 16:23:18,774 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-05777329-91218572, IP 121.187.231.67, Port 22 2024-09-17 16:23:18,840 - 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-17 16:23:18,941 - DEBUG - VM ctest-TestBasicPolicy-05777329-91218572 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-17 16:23:23,941 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 16:23:23,941 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-05777329-91218572, IP 121.187.231.67, Port 22 2024-09-17 16:23:24,124 - DEBUG - VM ctest-TestBasicPolicy-05777329-91218572 is ready for SSH connections 2024-09-17 16:23:24,124 - INFO - Waiting for VM ctest-TestBasicPolicy-05777329-98511787 to be up.. 2024-09-17 16:23:24,219 - DEBUG - VM is in ACTIVE state now 2024-09-17 16:23:24,219 - INFO - VM name : ctest-TestBasicPolicy-05777329-98511787 2024-09-17 16:23:24,308 - DEBUG - VM ctest-TestBasicPolicy-05777329-98511787 ID is 328e7475-2e7d-4474-9b26-c242c5cc24e9 2024-09-17 16:23:24,309 - DEBUG - VM ctest-TestBasicPolicy-05777329-98511787 launched on Node cn-jenkins-deploy-platform-ansible-os-1964-1 2024-09-17 16:23:24,400 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-machine/328e7475-2e7d-4474-9b26-c242c5cc24e9 2024-09-17 16:23:24,412 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-machine-interface/6d416a0e-b758-47f6-bfc9-f0626a29e267 2024-09-17 16:23:25,667 - 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.96 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.411 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.411/2.184/3.957/1.773 ms') 2024-09-17 16:23:25,668 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-05777329-98511787 passed 2024-09-17 16:23:25,829 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 16:23:25,830 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-05777329-98511787, IP 100.183.231.131, Port 22 2024-09-17 16:23:26,004 - DEBUG - VM ctest-TestBasicPolicy-05777329-98511787 is ready for SSH connections 2024-09-17 16:23:26,004 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 16:23:26,004 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 100.183.231.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.54, gateway password: c0ntrail123 2024-09-17 16:23:26,004 - DEBUG - ping -s 56 -c 3 -W 1 100.183.231.131 2024-09-17 16:23:30,145 - DEBUG - PING 100.183.231.131 (100.183.231.131): 56 data bytes 64 bytes from 100.183.231.131: seq=0 ttl=63 time=4.127 ms 64 bytes from 100.183.231.131: seq=1 ttl=63 time=1.159 ms 64 bytes from 100.183.231.131: seq=2 ttl=63 time=1.153 ms --- 100.183.231.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.153/2.146/4.127 ms 2024-09-17 16:23:30,146 - INFO - Ping to IP 100.183.231.131 from VM ctest-TestBasicPolicy-05777329-91218572 passed 2024-09-17 16:23:30,373 - DEBUG - Policy Update Response {"network-policy": {"uuid": "9aa5dc96-1211-4a6f-94e0-275d7ae89c92", "href": "http://10.0.0.54:8082/network-policy/9aa5dc96-1211-4a6f-94e0-275d7ae89c92"}} 2024-09-17 16:23:30,373 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 16:23:30,374 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 100.183.231.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.54, gateway password: c0ntrail123 2024-09-17 16:23:30,374 - DEBUG - ping -s 56 -c 3 -W 1 100.183.231.131 2024-09-17 16:23:33,607 - DEBUG - PING 100.183.231.131 (100.183.231.131): 56 data bytes --- 100.183.231.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-17 16:23:33,607 - WARNING - Ping to IP 100.183.231.131 from VM ctest-TestBasicPolicy-05777329-91218572 failed 2024-09-17 16:23:33,607 - INFO - Deleting VM ctest-TestBasicPolicy-05777329-98511787 2024-09-17 16:23:33,684 - INFO - Deleting VM ctest-TestBasicPolicy-05777329-91218572 2024-09-17 16:23:34,158 - INFO - Deleted policy ctest-policy-allow-all-46801788 2024-09-17 16:23:34,158 - INFO - Deleting VN ctest-vn-67673256 2024-09-17 16:23:34,201 - DEBUG - VN 31d80985-66ad-4e66-b31f-ce52053fdc3d still in use: Unable to complete operation on network 31d80985-66ad-4e66-b31f-ce52053fdc3d. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c81bf025-e7b2-46d8-bef0-1a81b98ef28a'] 2024-09-17 16:23:34,201 - WARNING - Deleting VN ctest-vn-67673256 failed..Will retry 2024-09-17 16:23:36,331 - DEBUG - Response for deleting network () 2024-09-17 16:23:36,331 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/1f38ae52-774a-43b8-8956-84ee3ca962d5 2024-09-17 16:23:36,339 - DEBUG - Response Code: 404 2024-09-17 16:23:36,340 - DEBUG - Requesting: http://10.0.0.54:8082/domains 2024-09-17 16:23:36,350 - DEBUG - Requesting: http://10.0.0.54:8082/domain/0c405347-3d08-48bd-a819-289297b0cbcf 2024-09-17 16:23:36,410 - DEBUG - Requesting: http://10.0.0.54:8082/project/9d6a8418-fd14-4d99-8e12-c9eedd4fd976 2024-09-17 16:23:36,501 - INFO - Validated that VN ctest-vn-67673256 is not found in API Server 2024-09-17 16:23:36,514 - DEBUG - VN ctest-vn-67673256 is not present in Agent 10.0.0.54 2024-09-17 16:23:36,514 - INFO - Validated that VN ctest-vn-67673256 is not in any agent 2024-09-17 16:23:36,531 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-67673256 info 2024-09-17 16:23:36,531 - INFO - Deleting VN ctest-vn-32604360 2024-09-17 16:23:36,663 - DEBUG - Response for deleting network () 2024-09-17 16:23:36,663 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/7a937aba-9627-4436-90f7-f3fd56593c9e 2024-09-17 16:23:36,672 - DEBUG - Response Code: 404 2024-09-17 16:23:36,672 - DEBUG - Requesting: http://10.0.0.54:8082/domains 2024-09-17 16:23:36,680 - DEBUG - Requesting: http://10.0.0.54:8082/domain/0c405347-3d08-48bd-a819-289297b0cbcf 2024-09-17 16:23:36,737 - DEBUG - Requesting: http://10.0.0.54:8082/project/9d6a8418-fd14-4d99-8e12-c9eedd4fd976 2024-09-17 16:23:36,824 - INFO - Validated that VN ctest-vn-32604360 is not found in API Server 2024-09-17 16:23:36,838 - DEBUG - VN ctest-vn-32604360 is not present in Agent 10.0.0.54 2024-09-17 16:23:36,838 - INFO - Validated that VN ctest-vn-32604360 is not in any agent 2024-09-17 16:23:36,860 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-32604360 info 2024-09-17 16:23:37,131 - DEBUG - No XMPP flaps were noticed during the test
2024-09-17 16:23:37,131 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37]
2024-09-17 16:23:37,131 - INFO - -------------------------------------------------------------------------------- 2024-09-17 16:23:37,916 - INFO - Deleted project: ctest-TestBasicPolicy-05777329, ID : 9d6a8418-fd14-4d99-8e12-c9eedd4fd976