2024-09-04 14:23:32,408 - INFO - Domain Default found not creating 2024-09-04 14:23:32,561 - INFO - Project ctest-TestBasicPolicy-68069317 not found, creating it 2024-09-04 14:23:33,020 - INFO - Created Project:ctest-TestBasicPolicy-68069317, ID : ab427f1f-9000-4c90-b662-8f579f81cf3f 2024-09-04 14:23:34,500 - INFO - ================================================================================ 2024-09-04 14:23:34,501 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-04 14:23:34,501 - 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-04 14:23:34,763 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.7': '0'}} with 2024-09-04 14:23:34,763 - INFO - Initial checks done. Running the testcase now 2024-09-04 14:23:34,763 - INFO - 2024-09-04 14:23:35,309 - DEBUG - Response for create_network : {'network': {'id': '703d879f-1980-45b0-a96f-dd451edd4728', 'name': 'ctest-vn-35452240', 'tenant_id': 'ab427f1f90004c90b6628f579f81cf3f', 'project_id': 'ab427f1f90004c90b6628f579f81cf3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68069317', 'ctest-vn-35452240'], 'port_security_enabled': True, 'description': ''}} 2024-09-04 14:23:35,465 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cfc50a8a-c493-47d2-838b-b27be0bb44a1', 'name': '', 'tenant_id': 'ab427f1f90004c90b6628f579f81cf3f', 'network_id': '703d879f-1980-45b0-a96f-dd451edd4728', 'ip_version': 4, 'cidr': '95.80.231.64/26', 'allocation_pools': [{'start': '95.80.231.66', 'end': '95.80.231.126'}], 'gateway_ip': '95.80.231.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.80.231.66', 'tags': [], 'project_id': 'ab427f1f90004c90b6628f579f81cf3f'}} 2024-09-04 14:23:35,484 - INFO - Created VN ctest-vn-35452240 2024-09-04 14:23:35,533 - DEBUG - VN ctest-vn-35452240 UUID is 703d879f-1980-45b0-a96f-dd451edd4728 2024-09-04 14:23:35,832 - DEBUG - Response for create_network : {'network': {'id': '782c7ba5-1217-4b3f-8877-e03a3e093803', 'name': 'ctest-vn-86336214', 'tenant_id': 'ab427f1f90004c90b6628f579f81cf3f', 'project_id': 'ab427f1f90004c90b6628f579f81cf3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68069317', 'ctest-vn-86336214'], 'port_security_enabled': True, 'description': ''}} 2024-09-04 14:23:36,008 - DEBUG - Response for create_subnet : {'subnet': {'id': '742f8a58-86ef-45bb-8b41-9347b9a1424e', 'name': '', 'tenant_id': 'ab427f1f90004c90b6628f579f81cf3f', 'network_id': '782c7ba5-1217-4b3f-8877-e03a3e093803', 'ip_version': 4, 'cidr': '26.162.239.64/26', 'allocation_pools': [{'start': '26.162.239.66', 'end': '26.162.239.126'}], 'gateway_ip': '26.162.239.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26.162.239.66', 'tags': [], 'project_id': 'ab427f1f90004c90b6628f579f81cf3f'}} 2024-09-04 14:23:36,027 - INFO - Created VN ctest-vn-86336214 2024-09-04 14:23:36,077 - DEBUG - VN ctest-vn-86336214 UUID is 782c7ba5-1217-4b3f-8877-e03a3e093803 2024-09-04 14:23:36,189 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68069317:ctest-vn-35452240, 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-68069317:ctest-vn-86336214, 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-04 14:23:36,480 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '703d879f-1980-45b0-a96f-dd451edd4728', 'name': 'ctest-vn-35452240', 'tenant_id': 'ab427f1f90004c90b6628f579f81cf3f', 'project_id': 'ab427f1f90004c90b6628f579f81cf3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cfc50a8a-c493-47d2-838b-b27be0bb44a1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68069317', 'ctest-vn-35452240'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68069317', 'ctest-policy-allow-all-72940444']], 'subnet_ipam': [{'subnet_cidr': '95.80.231.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-04 14:23:36,716 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '782c7ba5-1217-4b3f-8877-e03a3e093803', 'name': 'ctest-vn-86336214', 'tenant_id': 'ab427f1f90004c90b6628f579f81cf3f', 'project_id': 'ab427f1f90004c90b6628f579f81cf3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['742f8a58-86ef-45bb-8b41-9347b9a1424e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68069317', 'ctest-vn-86336214'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68069317', 'ctest-policy-allow-all-72940444']], 'subnet_ipam': [{'subnet_cidr': '26.162.239.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-04 14:23:36,893 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-09-04 14:23:37,187 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-09-04 14:23:37,219 - DEBUG - Requesting: http://10.0.0.33:8082/domain/c31cf390-5de5-4e7b-8bf1-8b9b225f550f 2024-09-04 14:23:37,233 - DEBUG - Requesting: http://10.0.0.33:8082/project/ab427f1f-9000-4c90-b662-8f579f81cf3f 2024-09-04 14:23:37,307 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/703d879f-1980-45b0-a96f-dd451edd4728 2024-09-04 14:23:37,317 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/703d879f-1980-45b0-a96f-dd451edd4728 2024-09-04 14:23:37,325 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1538cdfe-d679-41db-ab8a-be3fd506bc6c 2024-09-04 14:23:37,332 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1538cdfe-d679-41db-ab8a-be3fd506bc6c 2024-09-04 14:23:37,339 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/33ec1026-0ed3-4c1c-aa32-8ca7e5e6960b 2024-09-04 14:23:37,345 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-04 14:23:37,345 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/703d879f-1980-45b0-a96f-dd451edd4728 2024-09-04 14:23:37,352 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1538cdfe-d679-41db-ab8a-be3fd506bc6c 2024-09-04 14:23:37,364 - INFO - Verified VN network id 9 for VN 703d879f-1980-45b0-a96f-dd451edd4728 2024-09-04 14:23:37,364 - INFO - Verifications in API Server for VN ctest-vn-35452240 passed 2024-09-04 14:23:37,364 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/703d879f-1980-45b0-a96f-dd451edd4728 2024-09-04 14:23:37,371 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1538cdfe-d679-41db-ab8a-be3fd506bc6c 2024-09-04 14:23:37,377 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1538cdfe-d679-41db-ab8a-be3fd506bc6c 2024-09-04 14:23:37,383 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/33ec1026-0ed3-4c1c-aa32-8ca7e5e6960b 2024-09-04 14:23:37,394 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68069317:ctest-vn-35452240', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68069317', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8087769623224665520', 'uuid-lslong': '12209220403765004072'}, 'enable': 'true', 'created': '2024-09-04T14:23:35', 'last-modified': '2024-09-04T14:23:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.935121'} 2024-09-04 14:23:37,401 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-04 14:23:37,401 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35452240 passed 2024-09-04 14:23:37,402 - DEBUG - ====Verifying policy data for ctest-vn-35452240 in API_Server ====== 2024-09-04 14:23:37,402 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-09-04 14:23:37,407 - DEBUG - Requesting: http://10.0.0.33:8082/domain/c31cf390-5de5-4e7b-8bf1-8b9b225f550f 2024-09-04 14:23:37,418 - DEBUG - Requesting: http://10.0.0.33:8082/project/ab427f1f-9000-4c90-b662-8f579f81cf3f 2024-09-04 14:23:37,485 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/703d879f-1980-45b0-a96f-dd451edd4728 2024-09-04 14:23:37,493 - DEBUG - ==>Verifying data for policy with id: a2b69766-ebf5-44af-9874-179250d3c76a, fqn: ['default-domain', 'ctest-TestBasicPolicy-68069317', 'ctest-policy-allow-all-72940444'] 2024-09-04 14:23:37,493 - INFO - VN ctest-vn-35452240 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-04 14:23:37,493 - DEBUG - Verifying the vn in opserver 2024-09-04 14:23:37,493 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68069317:ctest-vn-35452240 virtual network link through opserver 10.0.0.33 2024-09-04 14:23:37,493 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2024-09-04 14:23:37,784 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2024-09-04 14:23:37,846 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68069317:ctest-vn-35452240', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68069317:ctest-vn-35452240?flat'} 2024-09-04 14:23:37,846 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68069317:ctest-vn-35452240 is found in opserver 2024-09-04 14:23:37,856 - DEBUG - Do not have enough data to verify VN in agent 2024-09-04 14:23:37,861 - DEBUG - VRF ids for VN ctest-vn-35452240: {} 2024-09-04 14:23:37,861 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-09-04 14:23:37,867 - DEBUG - Requesting: http://10.0.0.33:8082/domain/c31cf390-5de5-4e7b-8bf1-8b9b225f550f 2024-09-04 14:23:37,880 - DEBUG - Requesting: http://10.0.0.33:8082/project/ab427f1f-9000-4c90-b662-8f579f81cf3f 2024-09-04 14:23:37,946 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/782c7ba5-1217-4b3f-8877-e03a3e093803 2024-09-04 14:23:37,957 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/782c7ba5-1217-4b3f-8877-e03a3e093803 2024-09-04 14:23:37,965 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2925e637-b8a8-4525-8ceb-069b25cdb76e 2024-09-04 14:23:37,972 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2925e637-b8a8-4525-8ceb-069b25cdb76e 2024-09-04 14:23:37,979 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/77fcbe13-93a6-40bf-afce-709f33a85dc1 2024-09-04 14:23:37,985 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-04 14:23:37,985 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/782c7ba5-1217-4b3f-8877-e03a3e093803 2024-09-04 14:23:37,993 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2925e637-b8a8-4525-8ceb-069b25cdb76e 2024-09-04 14:23:38,005 - INFO - Verified VN network id 10 for VN 782c7ba5-1217-4b3f-8877-e03a3e093803 2024-09-04 14:23:38,005 - INFO - Verifications in API Server for VN ctest-vn-86336214 passed 2024-09-04 14:23:38,005 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/782c7ba5-1217-4b3f-8877-e03a3e093803 2024-09-04 14:23:38,014 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2925e637-b8a8-4525-8ceb-069b25cdb76e 2024-09-04 14:23:38,020 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2925e637-b8a8-4525-8ceb-069b25cdb76e 2024-09-04 14:23:38,027 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/77fcbe13-93a6-40bf-afce-709f33a85dc1 2024-09-04 14:23:38,040 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68069317:ctest-vn-86336214', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68069317', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8659432132429957951', 'uuid-lslong': '9833574852140283907'}, 'enable': 'true', 'created': '2024-09-04T14:23:35', 'last-modified': '2024-09-04T14:23:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.349086'} 2024-09-04 14:23:38,046 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-04 14:23:38,046 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86336214 passed 2024-09-04 14:23:38,046 - DEBUG - ====Verifying policy data for ctest-vn-86336214 in API_Server ====== 2024-09-04 14:23:38,046 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-09-04 14:23:38,052 - DEBUG - Requesting: http://10.0.0.33:8082/domain/c31cf390-5de5-4e7b-8bf1-8b9b225f550f 2024-09-04 14:23:38,064 - DEBUG - Requesting: http://10.0.0.33:8082/project/ab427f1f-9000-4c90-b662-8f579f81cf3f 2024-09-04 14:23:38,132 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/782c7ba5-1217-4b3f-8877-e03a3e093803 2024-09-04 14:23:38,140 - DEBUG - ==>Verifying data for policy with id: a2b69766-ebf5-44af-9874-179250d3c76a, fqn: ['default-domain', 'ctest-TestBasicPolicy-68069317', 'ctest-policy-allow-all-72940444'] 2024-09-04 14:23:38,140 - INFO - VN ctest-vn-86336214 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-04 14:23:38,140 - DEBUG - Verifying the vn in opserver 2024-09-04 14:23:38,140 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68069317:ctest-vn-86336214 virtual network link through opserver 10.0.0.33 2024-09-04 14:23:38,140 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2024-09-04 14:23:38,152 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68069317:ctest-vn-86336214', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68069317:ctest-vn-86336214?flat'} 2024-09-04 14:23:38,152 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68069317:ctest-vn-86336214 is found in opserver 2024-09-04 14:23:38,162 - DEBUG - Do not have enough data to verify VN in agent 2024-09-04 14:23:38,168 - DEBUG - VRF ids for VN ctest-vn-86336214: {} 2024-09-04 14:23:38,223 - DEBUG - Services list from nova: [, , ] 2024-09-04 14:23:39,245 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1844-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1844-1) 2024-09-04 14:23:40,440 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1844-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1844-1) 2024-09-04 14:23:40,440 - INFO - Waiting for VM ctest-TestBasicPolicy-68069317-79984041 to be up.. 2024-09-04 14:23:40,515 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-04 14:23:45,600 - DEBUG - VM is in ACTIVE state now 2024-09-04 14:23:45,600 - INFO - VM name : ctest-TestBasicPolicy-68069317-79984041 2024-09-04 14:23:45,678 - DEBUG - VM ctest-TestBasicPolicy-68069317-79984041 ID is 3ba5c531-7a9c-4e06-b22c-8dce891ed1d9 2024-09-04 14:23:45,699 - DEBUG - VM ctest-TestBasicPolicy-68069317-79984041 launched on Node cn-jenkins-deploy-platform-ansible-os-1844-1 2024-09-04 14:23:45,774 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/3ba5c531-7a9c-4e06-b22c-8dce891ed1d9 2024-09-04 14:23:45,783 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/0fac38d9-6942-4e68-80ed-afea5dde7c4c 2024-09-04 14:23:49,044 - 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 1031ms') 2024-09-04 14:23:49,044 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-68069317-79984041 failed! 2024-09-04 14:23:49,097 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-68069317:ctest-vn-35452240 is 95.80.231.65 and allocation pool is NOT set 2024-09-04 14:23:51,154 - 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=4.71 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.05 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 = 1.047/2.877/4.708/1.830 ms') 2024-09-04 14:23:51,154 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-68069317-79984041 passed 2024-09-04 14:23:51,305 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 14:23:51,306 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-68069317-79984041, IP 95.80.231.67, Port 22 2024-09-04 14:23:51,461 - DEBUG - VM ctest-TestBasicPolicy-68069317-79984041 is ready for SSH connections 2024-09-04 14:23:51,461 - INFO - Waiting for VM ctest-TestBasicPolicy-68069317-91259870 to be up.. 2024-09-04 14:23:51,547 - DEBUG - VM is in ACTIVE state now 2024-09-04 14:23:51,547 - INFO - VM name : ctest-TestBasicPolicy-68069317-91259870 2024-09-04 14:23:51,641 - DEBUG - VM ctest-TestBasicPolicy-68069317-91259870 ID is a673bd29-c6b8-4ce1-98ba-e1930f834df2 2024-09-04 14:23:51,641 - DEBUG - VM ctest-TestBasicPolicy-68069317-91259870 launched on Node cn-jenkins-deploy-platform-ansible-os-1844-1 2024-09-04 14:23:51,727 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/a673bd29-c6b8-4ce1-98ba-e1930f834df2 2024-09-04 14:23:51,736 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/db338725-29ed-4dac-94c9-503c2204c3f6 2024-09-04 14:23:52,977 - 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.67 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.422 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.422/1.546/2.671/1.124 ms') 2024-09-04 14:23:52,978 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-68069317-91259870 passed 2024-09-04 14:23:53,125 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 14:23:53,125 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-68069317-91259870, IP 26.162.239.67, Port 22 2024-09-04 14:23:53,281 - DEBUG - VM ctest-TestBasicPolicy-68069317-91259870 is ready for SSH connections 2024-09-04 14:23:53,281 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 14:23:53,281 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 26.162.239.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2024-09-04 14:23:53,281 - DEBUG - ping -s 56 -c 3 -W 1 26.162.239.67 2024-09-04 14:23:56,937 - DEBUG - PING 26.162.239.67 (26.162.239.67): 56 data bytes 64 bytes from 26.162.239.67: seq=0 ttl=63 time=3.429 ms 64 bytes from 26.162.239.67: seq=1 ttl=63 time=0.897 ms 64 bytes from 26.162.239.67: seq=2 ttl=63 time=0.697 ms --- 26.162.239.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.697/1.674/3.429 ms 2024-09-04 14:23:56,937 - INFO - Ping to IP 26.162.239.67 from VM ctest-TestBasicPolicy-68069317-79984041 passed 2024-09-04 14:23:57,109 - DEBUG - Policy Update Response {"network-policy": {"uuid": "a2b69766-ebf5-44af-9874-179250d3c76a", "href": "http://10.0.0.33:8082/network-policy/a2b69766-ebf5-44af-9874-179250d3c76a"}} 2024-09-04 14:23:57,109 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 14:23:57,109 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 26.162.239.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2024-09-04 14:23:57,109 - DEBUG - ping -s 56 -c 3 -W 1 26.162.239.67 2024-09-04 14:24:00,332 - DEBUG - PING 26.162.239.67 (26.162.239.67): 56 data bytes --- 26.162.239.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-04 14:24:00,333 - WARNING - Ping to IP 26.162.239.67 from VM ctest-TestBasicPolicy-68069317-79984041 failed 2024-09-04 14:24:00,333 - INFO - Deleting VM ctest-TestBasicPolicy-68069317-91259870 2024-09-04 14:24:00,398 - INFO - Deleting VM ctest-TestBasicPolicy-68069317-79984041 2024-09-04 14:24:00,775 - INFO - Deleted policy ctest-policy-allow-all-72940444 2024-09-04 14:24:00,775 - INFO - Deleting VN ctest-vn-86336214 2024-09-04 14:24:00,814 - DEBUG - VN 782c7ba5-1217-4b3f-8877-e03a3e093803 still in use: Unable to complete operation on network 782c7ba5-1217-4b3f-8877-e03a3e093803. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-41e74593-1727-4be8-b824-07ea9cdd9937'] 2024-09-04 14:24:00,814 - WARNING - Deleting VN ctest-vn-86336214 failed..Will retry 2024-09-04 14:24:02,938 - DEBUG - Response for deleting network () 2024-09-04 14:24:02,938 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2925e637-b8a8-4525-8ceb-069b25cdb76e 2024-09-04 14:24:02,944 - DEBUG - Response Code: 404 2024-09-04 14:24:02,944 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-09-04 14:24:02,951 - DEBUG - Requesting: http://10.0.0.33:8082/domain/c31cf390-5de5-4e7b-8bf1-8b9b225f550f 2024-09-04 14:24:03,008 - DEBUG - Requesting: http://10.0.0.33:8082/project/ab427f1f-9000-4c90-b662-8f579f81cf3f 2024-09-04 14:24:03,089 - INFO - Validated that VN ctest-vn-86336214 is not found in API Server 2024-09-04 14:24:03,100 - DEBUG - VN ctest-vn-86336214 is not present in Agent 10.0.0.33 2024-09-04 14:24:03,100 - INFO - Validated that VN ctest-vn-86336214 is not in any agent 2024-09-04 14:24:03,119 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-86336214 info 2024-09-04 14:24:03,119 - INFO - Deleting VN ctest-vn-35452240 2024-09-04 14:24:03,238 - DEBUG - Response for deleting network () 2024-09-04 14:24:03,238 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1538cdfe-d679-41db-ab8a-be3fd506bc6c 2024-09-04 14:24:03,245 - DEBUG - Response Code: 404 2024-09-04 14:24:03,246 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-09-04 14:24:03,252 - DEBUG - Requesting: http://10.0.0.33:8082/domain/c31cf390-5de5-4e7b-8bf1-8b9b225f550f 2024-09-04 14:24:03,309 - DEBUG - Requesting: http://10.0.0.33:8082/project/ab427f1f-9000-4c90-b662-8f579f81cf3f 2024-09-04 14:24:03,381 - INFO - Validated that VN ctest-vn-35452240 is not found in API Server 2024-09-04 14:24:03,397 - DEBUG - VN ctest-vn-35452240 is not present in Agent 10.0.0.33 2024-09-04 14:24:03,397 - INFO - Validated that VN ctest-vn-35452240 is not in any agent 2024-09-04 14:24:03,418 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-35452240 info 2024-09-04 14:24:03,675 - DEBUG - No XMPP flaps were noticed during the test
2024-09-04 14:24:03,675 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:29]
2024-09-04 14:24:03,675 - INFO - -------------------------------------------------------------------------------- 2024-09-04 14:24:04,325 - INFO - Deleted project: ctest-TestBasicPolicy-68069317, ID : ab427f1f-9000-4c90-b662-8f579f81cf3f