2024-09-11 06:59:32,283 - INFO - Domain Default found not creating 2024-09-11 06:59:32,481 - INFO - Project ctest-TestBasicPolicy-00084788 not found, creating it 2024-09-11 06:59:32,956 - INFO - Created Project:ctest-TestBasicPolicy-00084788, ID : 5f72a098-8452-461f-a2cd-05f22aa2155d 2024-09-11 06:59:34,713 - INFO - ================================================================================ 2024-09-11 06:59:34,713 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-11 06:59:34,713 - 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-11 06:59:34,974 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.21': '0'}} with 2024-09-11 06:59:34,975 - INFO - Initial checks done. Running the testcase now 2024-09-11 06:59:34,975 - INFO - 2024-09-11 06:59:35,606 - DEBUG - Response for create_network : {'network': {'id': '9981182b-3b8c-4763-ae01-e0d0af6992e8', 'name': 'ctest-vn-31484616', 'tenant_id': '5f72a0988452461fa2cd05f22aa2155d', 'project_id': '5f72a0988452461fa2cd05f22aa2155d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00084788', 'ctest-vn-31484616'], 'port_security_enabled': True, 'description': ''}} 2024-09-11 06:59:35,814 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd038bdd3-4df4-4660-a586-e2d9611e0532', 'name': '', 'tenant_id': '5f72a0988452461fa2cd05f22aa2155d', 'network_id': '9981182b-3b8c-4763-ae01-e0d0af6992e8', 'ip_version': 4, 'cidr': '197.174.117.128/26', 'allocation_pools': [{'start': '197.174.117.130', 'end': '197.174.117.190'}], 'gateway_ip': '197.174.117.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.174.117.130', 'tags': [], 'project_id': '5f72a0988452461fa2cd05f22aa2155d'}} 2024-09-11 06:59:35,836 - INFO - Created VN ctest-vn-31484616 2024-09-11 06:59:35,888 - DEBUG - VN ctest-vn-31484616 UUID is 9981182b-3b8c-4763-ae01-e0d0af6992e8 2024-09-11 06:59:36,221 - DEBUG - Response for create_network : {'network': {'id': '81486127-0f37-48c8-a714-bb72646da9a5', 'name': 'ctest-vn-24343778', 'tenant_id': '5f72a0988452461fa2cd05f22aa2155d', 'project_id': '5f72a0988452461fa2cd05f22aa2155d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00084788', 'ctest-vn-24343778'], 'port_security_enabled': True, 'description': ''}} 2024-09-11 06:59:36,391 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b4994161-33fc-4e0d-ab60-f22c8352cf0f', 'name': '', 'tenant_id': '5f72a0988452461fa2cd05f22aa2155d', 'network_id': '81486127-0f37-48c8-a714-bb72646da9a5', 'ip_version': 4, 'cidr': '204.157.48.192/26', 'allocation_pools': [{'start': '204.157.48.194', 'end': '204.157.48.254'}], 'gateway_ip': '204.157.48.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '204.157.48.194', 'tags': [], 'project_id': '5f72a0988452461fa2cd05f22aa2155d'}} 2024-09-11 06:59:36,415 - INFO - Created VN ctest-vn-24343778 2024-09-11 06:59:36,468 - DEBUG - VN ctest-vn-24343778 UUID is 81486127-0f37-48c8-a714-bb72646da9a5 2024-09-11 06:59:36,596 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00084788:ctest-vn-31484616, 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-00084788:ctest-vn-24343778, 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-11 06:59:36,929 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9981182b-3b8c-4763-ae01-e0d0af6992e8', 'name': 'ctest-vn-31484616', 'tenant_id': '5f72a0988452461fa2cd05f22aa2155d', 'project_id': '5f72a0988452461fa2cd05f22aa2155d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d038bdd3-4df4-4660-a586-e2d9611e0532'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00084788', 'ctest-vn-31484616'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00084788', 'ctest-policy-allow-all-66613245']], 'subnet_ipam': [{'subnet_cidr': '197.174.117.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-11 06:59:37,187 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '81486127-0f37-48c8-a714-bb72646da9a5', 'name': 'ctest-vn-24343778', 'tenant_id': '5f72a0988452461fa2cd05f22aa2155d', 'project_id': '5f72a0988452461fa2cd05f22aa2155d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b4994161-33fc-4e0d-ab60-f22c8352cf0f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00084788', 'ctest-vn-24343778'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00084788', 'ctest-policy-allow-all-66613245']], 'subnet_ipam': [{'subnet_cidr': '204.157.48.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-11 06:59:37,376 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-09-11 06:59:37,721 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-09-11 06:59:37,765 - DEBUG - Requesting: http://10.0.0.12:8082/domain/e5789681-1145-42b1-8757-ad577d040188 2024-09-11 06:59:37,783 - DEBUG - Requesting: http://10.0.0.12:8082/project/5f72a098-8452-461f-a2cd-05f22aa2155d 2024-09-11 06:59:37,894 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/9981182b-3b8c-4763-ae01-e0d0af6992e8 2024-09-11 06:59:37,942 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/9981182b-3b8c-4763-ae01-e0d0af6992e8 2024-09-11 06:59:37,963 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/3a2a4933-f626-4447-964e-2dde71300b49 2024-09-11 06:59:37,978 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/3a2a4933-f626-4447-964e-2dde71300b49 2024-09-11 06:59:37,991 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/2d339aaa-6968-4794-8611-bccab2a70945 2024-09-11 06:59:38,012 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-11 06:59:38,012 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/9981182b-3b8c-4763-ae01-e0d0af6992e8 2024-09-11 06:59:38,038 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/3a2a4933-f626-4447-964e-2dde71300b49 2024-09-11 06:59:38,052 - INFO - Verified VN network id 9 for VN 9981182b-3b8c-4763-ae01-e0d0af6992e8 2024-09-11 06:59:38,052 - INFO - Verifications in API Server for VN ctest-vn-31484616 passed 2024-09-11 06:59:38,052 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/9981182b-3b8c-4763-ae01-e0d0af6992e8 2024-09-11 06:59:38,062 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/3a2a4933-f626-4447-964e-2dde71300b49 2024-09-11 06:59:38,074 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/3a2a4933-f626-4447-964e-2dde71300b49 2024-09-11 06:59:38,085 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/2d339aaa-6968-4794-8611-bccab2a70945 2024-09-11 06:59:38,103 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00084788:ctest-vn-31484616', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00084788', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11061148733760358243', 'uuid-lslong': '12538550024476922600'}, 'enable': 'true', 'created': '2024-09-11T06:59:35', 'last-modified': '2024-09-11T06:59:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.206029'} 2024-09-11 06:59:38,111 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-11 06:59:38,111 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31484616 passed 2024-09-11 06:59:38,112 - DEBUG - ====Verifying policy data for ctest-vn-31484616 in API_Server ====== 2024-09-11 06:59:38,112 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-09-11 06:59:38,131 - DEBUG - Requesting: http://10.0.0.12:8082/domain/e5789681-1145-42b1-8757-ad577d040188 2024-09-11 06:59:38,148 - DEBUG - Requesting: http://10.0.0.12:8082/project/5f72a098-8452-461f-a2cd-05f22aa2155d 2024-09-11 06:59:38,262 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/9981182b-3b8c-4763-ae01-e0d0af6992e8 2024-09-11 06:59:38,274 - DEBUG - ==>Verifying data for policy with id: 494f6dc7-fe0f-46e5-b369-9f6a47460f88, fqn: ['default-domain', 'ctest-TestBasicPolicy-00084788', 'ctest-policy-allow-all-66613245'] 2024-09-11 06:59:38,274 - INFO - VN ctest-vn-31484616 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-11 06:59:38,274 - DEBUG - Verifying the vn in opserver 2024-09-11 06:59:38,274 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00084788:ctest-vn-31484616 virtual network link through opserver 10.0.0.12 2024-09-11 06:59:38,274 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-09-11 06:59:38,659 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-09-11 06:59:38,730 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00084788:ctest-vn-31484616', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00084788:ctest-vn-31484616?flat'} 2024-09-11 06:59:38,730 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00084788:ctest-vn-31484616 is found in opserver 2024-09-11 06:59:38,744 - DEBUG - Do not have enough data to verify VN in agent 2024-09-11 06:59:38,751 - DEBUG - VRF ids for VN ctest-vn-31484616: {} 2024-09-11 06:59:38,751 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-09-11 06:59:38,758 - DEBUG - Requesting: http://10.0.0.12:8082/domain/e5789681-1145-42b1-8757-ad577d040188 2024-09-11 06:59:38,773 - DEBUG - Requesting: http://10.0.0.12:8082/project/5f72a098-8452-461f-a2cd-05f22aa2155d 2024-09-11 06:59:38,844 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/81486127-0f37-48c8-a714-bb72646da9a5 2024-09-11 06:59:38,856 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/81486127-0f37-48c8-a714-bb72646da9a5 2024-09-11 06:59:38,865 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/ef2e90b2-63e0-48fa-8075-32e3ea3a8982 2024-09-11 06:59:38,873 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/ef2e90b2-63e0-48fa-8075-32e3ea3a8982 2024-09-11 06:59:38,881 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/0c284a27-fd1a-4db6-98a3-7174d5d268f7 2024-09-11 06:59:38,888 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-11 06:59:38,888 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/81486127-0f37-48c8-a714-bb72646da9a5 2024-09-11 06:59:38,898 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/ef2e90b2-63e0-48fa-8075-32e3ea3a8982 2024-09-11 06:59:38,912 - INFO - Verified VN network id 10 for VN 81486127-0f37-48c8-a714-bb72646da9a5 2024-09-11 06:59:38,912 - INFO - Verifications in API Server for VN ctest-vn-24343778 passed 2024-09-11 06:59:38,912 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/81486127-0f37-48c8-a714-bb72646da9a5 2024-09-11 06:59:38,921 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/ef2e90b2-63e0-48fa-8075-32e3ea3a8982 2024-09-11 06:59:38,929 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/ef2e90b2-63e0-48fa-8075-32e3ea3a8982 2024-09-11 06:59:38,936 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/0c284a27-fd1a-4db6-98a3-7174d5d268f7 2024-09-11 06:59:38,951 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00084788:ctest-vn-24343778', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00084788', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9315802649602771144', 'uuid-lslong': '12039453803853752741'}, 'enable': 'true', 'created': '2024-09-11T06:59:36', 'last-modified': '2024-09-11T06:59:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.794316'} 2024-09-11 06:59:38,958 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-11 06:59:38,959 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24343778 passed 2024-09-11 06:59:38,959 - DEBUG - ====Verifying policy data for ctest-vn-24343778 in API_Server ====== 2024-09-11 06:59:38,959 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-09-11 06:59:38,965 - DEBUG - Requesting: http://10.0.0.12:8082/domain/e5789681-1145-42b1-8757-ad577d040188 2024-09-11 06:59:38,978 - DEBUG - Requesting: http://10.0.0.12:8082/project/5f72a098-8452-461f-a2cd-05f22aa2155d 2024-09-11 06:59:39,051 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/81486127-0f37-48c8-a714-bb72646da9a5 2024-09-11 06:59:39,060 - DEBUG - ==>Verifying data for policy with id: 494f6dc7-fe0f-46e5-b369-9f6a47460f88, fqn: ['default-domain', 'ctest-TestBasicPolicy-00084788', 'ctest-policy-allow-all-66613245'] 2024-09-11 06:59:39,060 - INFO - VN ctest-vn-24343778 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-11 06:59:39,060 - DEBUG - Verifying the vn in opserver 2024-09-11 06:59:39,060 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00084788:ctest-vn-24343778 virtual network link through opserver 10.0.0.12 2024-09-11 06:59:39,060 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-09-11 06:59:39,072 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00084788:ctest-vn-24343778', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00084788:ctest-vn-24343778?flat'} 2024-09-11 06:59:39,072 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00084788:ctest-vn-24343778 is found in opserver 2024-09-11 06:59:39,085 - DEBUG - Do not have enough data to verify VN in agent 2024-09-11 06:59:39,091 - DEBUG - VRF ids for VN ctest-vn-24343778: {} 2024-09-11 06:59:39,156 - DEBUG - Services list from nova: [, , ] 2024-09-11 06:59:40,474 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1890-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1890-1) 2024-09-11 06:59:41,874 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1890-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1890-1) 2024-09-11 06:59:41,874 - INFO - Waiting for VM ctest-TestBasicPolicy-00084788-64965962 to be up.. 2024-09-11 06:59:41,966 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-11 06:59:47,067 - DEBUG - VM is in ACTIVE state now 2024-09-11 06:59:47,067 - INFO - VM name : ctest-TestBasicPolicy-00084788-64965962 2024-09-11 06:59:47,168 - DEBUG - VM ctest-TestBasicPolicy-00084788-64965962 ID is dbc25a02-063e-4c39-98d9-aa529b0e6c5f 2024-09-11 06:59:47,189 - DEBUG - VM ctest-TestBasicPolicy-00084788-64965962 launched on Node cn-jenkins-deploy-platform-ansible-os-1890-1 2024-09-11 06:59:47,287 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/dbc25a02-063e-4c39-98d9-aa529b0e6c5f 2024-09-11 06:59:47,299 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/df0dc1d1-e8a6-498c-acce-5a98cb0521a8 2024-09-11 06:59:50,571 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1029ms') 2024-09-11 06:59:50,571 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-00084788-64965962 failed! 2024-09-11 06:59:50,624 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-00084788:ctest-vn-31484616 is 197.174.117.129 and allocation pool is NOT set 2024-09-11 06:59:52,682 - 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=13.7 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.04 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 = 1.041/7.358/13.676/6.317 ms') 2024-09-11 06:59:52,682 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-00084788-64965962 passed 2024-09-11 06:59:52,836 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 06:59:52,836 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-00084788-64965962, IP 197.174.117.131, Port 22 2024-09-11 06:59:52,901 - 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-11 06:59:52,997 - DEBUG - VM ctest-TestBasicPolicy-00084788-64965962 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-11 06:59:57,997 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 06:59:57,997 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-00084788-64965962, IP 197.174.117.131, Port 22 2024-09-11 06:59:58,156 - DEBUG - VM ctest-TestBasicPolicy-00084788-64965962 is ready for SSH connections 2024-09-11 06:59:58,156 - INFO - Waiting for VM ctest-TestBasicPolicy-00084788-90677634 to be up.. 2024-09-11 06:59:58,251 - DEBUG - VM is in ACTIVE state now 2024-09-11 06:59:58,251 - INFO - VM name : ctest-TestBasicPolicy-00084788-90677634 2024-09-11 06:59:58,336 - DEBUG - VM ctest-TestBasicPolicy-00084788-90677634 ID is 188056c1-0cb1-49ab-83e0-33a8bb3ed391 2024-09-11 06:59:58,336 - DEBUG - VM ctest-TestBasicPolicy-00084788-90677634 launched on Node cn-jenkins-deploy-platform-ansible-os-1890-1 2024-09-11 06:59:58,427 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/188056c1-0cb1-49ab-83e0-33a8bb3ed391 2024-09-11 06:59:58,437 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/4425a4e2-0370-439e-8af2-52d3ae3b802f 2024-09-11 06:59:59,676 - 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.27 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.476 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.476/1.871/3.267/1.395 ms') 2024-09-11 06:59:59,676 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-00084788-90677634 passed 2024-09-11 06:59:59,828 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 06:59:59,828 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-00084788-90677634, IP 204.157.48.195, Port 22 2024-09-11 06:59:59,998 - DEBUG - VM ctest-TestBasicPolicy-00084788-90677634 is ready for SSH connections 2024-09-11 06:59:59,998 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 06:59:59,999 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 204.157.48.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-09-11 06:59:59,999 - DEBUG - ping -s 56 -c 3 -W 1 204.157.48.195 2024-09-11 07:00:04,111 - DEBUG - PING 204.157.48.195 (204.157.48.195): 56 data bytes 64 bytes from 204.157.48.195: seq=0 ttl=63 time=4.214 ms 64 bytes from 204.157.48.195: seq=1 ttl=63 time=1.073 ms 64 bytes from 204.157.48.195: seq=2 ttl=63 time=0.964 ms --- 204.157.48.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.964/2.083/4.214 ms 2024-09-11 07:00:04,111 - INFO - Ping to IP 204.157.48.195 from VM ctest-TestBasicPolicy-00084788-64965962 passed 2024-09-11 07:00:04,291 - DEBUG - Policy Update Response {"network-policy": {"uuid": "494f6dc7-fe0f-46e5-b369-9f6a47460f88", "href": "http://10.0.0.12:8082/network-policy/494f6dc7-fe0f-46e5-b369-9f6a47460f88"}} 2024-09-11 07:00:04,292 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 07:00:04,292 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 204.157.48.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-09-11 07:00:04,292 - DEBUG - ping -s 56 -c 3 -W 1 204.157.48.195 2024-09-11 07:00:07,517 - DEBUG - PING 204.157.48.195 (204.157.48.195): 56 data bytes 64 bytes from 204.157.48.195: seq=0 ttl=63 time=1.680 ms --- 204.157.48.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.680/1.680/1.680 ms 2024-09-11 07:00:07,517 - WARNING - Ping to IP 204.157.48.195 from VM ctest-TestBasicPolicy-00084788-64965962 failed 2024-09-11 07:00:07,517 - INFO - Deleting VM ctest-TestBasicPolicy-00084788-90677634 2024-09-11 07:00:07,595 - INFO - Deleting VM ctest-TestBasicPolicy-00084788-64965962 2024-09-11 07:00:08,067 - INFO - Deleted policy ctest-policy-allow-all-66613245 2024-09-11 07:00:08,067 - INFO - Deleting VN ctest-vn-24343778 2024-09-11 07:00:08,120 - DEBUG - VN 81486127-0f37-48c8-a714-bb72646da9a5 still in use: Unable to complete operation on network 81486127-0f37-48c8-a714-bb72646da9a5. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2de343de-14d2-499f-806a-8904103d5bd8'] 2024-09-11 07:00:08,120 - WARNING - Deleting VN ctest-vn-24343778 failed..Will retry 2024-09-11 07:00:10,244 - DEBUG - Response for deleting network () 2024-09-11 07:00:10,245 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/ef2e90b2-63e0-48fa-8075-32e3ea3a8982 2024-09-11 07:00:10,252 - DEBUG - Response Code: 404 2024-09-11 07:00:10,252 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-09-11 07:00:10,260 - DEBUG - Requesting: http://10.0.0.12:8082/domain/e5789681-1145-42b1-8757-ad577d040188 2024-09-11 07:00:10,318 - DEBUG - Requesting: http://10.0.0.12:8082/project/5f72a098-8452-461f-a2cd-05f22aa2155d 2024-09-11 07:00:10,393 - INFO - Validated that VN ctest-vn-24343778 is not found in API Server 2024-09-11 07:00:10,406 - DEBUG - VN ctest-vn-24343778 is not present in Agent 10.0.0.12 2024-09-11 07:00:10,406 - INFO - Validated that VN ctest-vn-24343778 is not in any agent 2024-09-11 07:00:10,428 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-24343778 info 2024-09-11 07:00:10,428 - INFO - Deleting VN ctest-vn-31484616 2024-09-11 07:00:10,562 - DEBUG - Response for deleting network () 2024-09-11 07:00:10,562 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/3a2a4933-f626-4447-964e-2dde71300b49 2024-09-11 07:00:10,570 - DEBUG - Response Code: 404 2024-09-11 07:00:10,571 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-09-11 07:00:10,577 - DEBUG - Requesting: http://10.0.0.12:8082/domain/e5789681-1145-42b1-8757-ad577d040188 2024-09-11 07:00:10,635 - DEBUG - Requesting: http://10.0.0.12:8082/project/5f72a098-8452-461f-a2cd-05f22aa2155d 2024-09-11 07:00:10,715 - INFO - Validated that VN ctest-vn-31484616 is not found in API Server 2024-09-11 07:00:10,728 - DEBUG - VN ctest-vn-31484616 is not present in Agent 10.0.0.12 2024-09-11 07:00:10,728 - INFO - Validated that VN ctest-vn-31484616 is not in any agent 2024-09-11 07:00:10,748 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-31484616 info 2024-09-11 07:00:11,013 - DEBUG - No XMPP flaps were noticed during the test
2024-09-11 07:00:11,013 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37]
2024-09-11 07:00:11,013 - INFO - -------------------------------------------------------------------------------- 2024-09-11 07:00:11,797 - INFO - Deleted project: ctest-TestBasicPolicy-00084788, ID : 5f72a098-8452-461f-a2cd-05f22aa2155d