2024-09-18 02:05:52,424 - INFO - Domain Default found not creating 2024-09-18 02:05:52,608 - INFO - Project ctest-TestBasicPolicy-77629561 not found, creating it 2024-09-18 02:05:53,107 - INFO - Created Project:ctest-TestBasicPolicy-77629561, ID : 4ec6c5a1-5abd-40cf-a01b-e621dfc5b680 2024-09-18 02:05:54,632 - INFO - ================================================================================ 2024-09-18 02:05:54,633 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-18 02:05:54,633 - 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-18 02:05:54,888 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.20.0.11': '0'}} with 2024-09-18 02:05:54,888 - INFO - Initial checks done. Running the testcase now 2024-09-18 02:05:54,888 - INFO - 2024-09-18 02:05:55,507 - DEBUG - Response for create_network : {'network': {'id': 'c690d973-1d92-4e1f-b2e2-074c31dfe934', 'name': 'ctest-vn-40963985', 'tenant_id': '4ec6c5a15abd40cfa01be621dfc5b680', 'project_id': '4ec6c5a15abd40cfa01be621dfc5b680', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77629561', 'ctest-vn-40963985'], 'port_security_enabled': True, 'description': ''}} 2024-09-18 02:05:55,733 - DEBUG - Response for create_subnet : {'subnet': {'id': '552097fd-5bb8-465c-9a10-5c690f7a28aa', 'name': '', 'tenant_id': '4ec6c5a15abd40cfa01be621dfc5b680', 'network_id': 'c690d973-1d92-4e1f-b2e2-074c31dfe934', 'ip_version': 4, 'cidr': '52.132.209.64/26', 'allocation_pools': [{'start': '52.132.209.66', 'end': '52.132.209.126'}], 'gateway_ip': '52.132.209.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.132.209.66', 'tags': [], 'project_id': '4ec6c5a15abd40cfa01be621dfc5b680'}} 2024-09-18 02:05:55,753 - INFO - Created VN ctest-vn-40963985 2024-09-18 02:05:55,810 - DEBUG - VN ctest-vn-40963985 UUID is c690d973-1d92-4e1f-b2e2-074c31dfe934 2024-09-18 02:05:56,138 - DEBUG - Response for create_network : {'network': {'id': 'be40a388-3f5e-40c9-8f0c-75797255305f', 'name': 'ctest-vn-50689829', 'tenant_id': '4ec6c5a15abd40cfa01be621dfc5b680', 'project_id': '4ec6c5a15abd40cfa01be621dfc5b680', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77629561', 'ctest-vn-50689829'], 'port_security_enabled': True, 'description': ''}} 2024-09-18 02:05:56,346 - DEBUG - Response for create_subnet : {'subnet': {'id': '1f0d9f25-d66a-42ae-8924-1a0a6050e3c8', 'name': '', 'tenant_id': '4ec6c5a15abd40cfa01be621dfc5b680', 'network_id': 'be40a388-3f5e-40c9-8f0c-75797255305f', 'ip_version': 4, 'cidr': '92.140.131.64/26', 'allocation_pools': [{'start': '92.140.131.66', 'end': '92.140.131.126'}], 'gateway_ip': '92.140.131.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.140.131.66', 'tags': [], 'project_id': '4ec6c5a15abd40cfa01be621dfc5b680'}} 2024-09-18 02:05:56,365 - INFO - Created VN ctest-vn-50689829 2024-09-18 02:05:56,422 - DEBUG - VN ctest-vn-50689829 UUID is be40a388-3f5e-40c9-8f0c-75797255305f 2024-09-18 02:05:56,542 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-77629561:ctest-vn-40963985, 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-77629561:ctest-vn-50689829, 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-18 02:05:56,855 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c690d973-1d92-4e1f-b2e2-074c31dfe934', 'name': 'ctest-vn-40963985', 'tenant_id': '4ec6c5a15abd40cfa01be621dfc5b680', 'project_id': '4ec6c5a15abd40cfa01be621dfc5b680', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['552097fd-5bb8-465c-9a10-5c690f7a28aa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77629561', 'ctest-vn-40963985'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77629561', 'ctest-policy-allow-all-68189106']], 'subnet_ipam': [{'subnet_cidr': '52.132.209.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-18 02:05:57,110 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'be40a388-3f5e-40c9-8f0c-75797255305f', 'name': 'ctest-vn-50689829', 'tenant_id': '4ec6c5a15abd40cfa01be621dfc5b680', 'project_id': '4ec6c5a15abd40cfa01be621dfc5b680', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1f0d9f25-d66a-42ae-8924-1a0a6050e3c8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77629561', 'ctest-vn-50689829'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77629561', 'ctest-policy-allow-all-68189106']], 'subnet_ipam': [{'subnet_cidr': '92.140.131.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-18 02:05:57,278 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-09-18 02:05:57,577 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-09-18 02:05:57,607 - DEBUG - Requesting: http://10.0.0.35:8082/domain/6ce9aeff-a803-4507-98ad-5a94fe98d8af 2024-09-18 02:05:57,621 - DEBUG - Requesting: http://10.0.0.35:8082/project/4ec6c5a1-5abd-40cf-a01b-e621dfc5b680 2024-09-18 02:05:57,708 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/c690d973-1d92-4e1f-b2e2-074c31dfe934 2024-09-18 02:05:57,725 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/c690d973-1d92-4e1f-b2e2-074c31dfe934 2024-09-18 02:05:57,739 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/b3e3ca90-566b-4196-9dfa-3293dc493b37 2024-09-18 02:05:57,748 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/b3e3ca90-566b-4196-9dfa-3293dc493b37 2024-09-18 02:05:57,756 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/dd5e05ad-3974-4707-b8c6-2e5c418c9849 2024-09-18 02:05:57,763 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-18 02:05:57,763 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/c690d973-1d92-4e1f-b2e2-074c31dfe934 2024-09-18 02:05:57,776 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/b3e3ca90-566b-4196-9dfa-3293dc493b37 2024-09-18 02:05:57,797 - INFO - Verified VN network id 9 for VN c690d973-1d92-4e1f-b2e2-074c31dfe934 2024-09-18 02:05:57,797 - INFO - Verifications in API Server for VN ctest-vn-40963985 passed 2024-09-18 02:05:57,797 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/c690d973-1d92-4e1f-b2e2-074c31dfe934 2024-09-18 02:05:57,811 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/b3e3ca90-566b-4196-9dfa-3293dc493b37 2024-09-18 02:05:57,822 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/b3e3ca90-566b-4196-9dfa-3293dc493b37 2024-09-18 02:05:57,836 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/dd5e05ad-3974-4707-b8c6-2e5c418c9849 2024-09-18 02:05:57,853 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77629561:ctest-vn-40963985', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77629561', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14308175104596659743', 'uuid-lslong': '12889873107323447604'}, 'enable': 'true', 'created': '2024-09-18T02:05:55', 'last-modified': '2024-09-18T02:05:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.020185'} 2024-09-18 02:05:57,860 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-18 02:05:57,860 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40963985 passed 2024-09-18 02:05:57,860 - DEBUG - ====Verifying policy data for ctest-vn-40963985 in API_Server ====== 2024-09-18 02:05:57,860 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-09-18 02:05:57,867 - DEBUG - Requesting: http://10.0.0.35:8082/domain/6ce9aeff-a803-4507-98ad-5a94fe98d8af 2024-09-18 02:05:57,881 - DEBUG - Requesting: http://10.0.0.35:8082/project/4ec6c5a1-5abd-40cf-a01b-e621dfc5b680 2024-09-18 02:05:57,966 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/c690d973-1d92-4e1f-b2e2-074c31dfe934 2024-09-18 02:05:57,979 - DEBUG - ==>Verifying data for policy with id: 6c679c7b-4ab1-4cea-aa0c-d2c9d6e9ad45, fqn: ['default-domain', 'ctest-TestBasicPolicy-77629561', 'ctest-policy-allow-all-68189106'] 2024-09-18 02:05:57,979 - INFO - VN ctest-vn-40963985 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-18 02:05:57,979 - DEBUG - Verifying the vn in opserver 2024-09-18 02:05:57,980 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77629561:ctest-vn-40963985 virtual network link through opserver 10.0.0.35 2024-09-18 02:05:57,980 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks 2024-09-18 02:05:58,277 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks 2024-09-18 02:05:58,341 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77629561:ctest-vn-40963985', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77629561:ctest-vn-40963985?flat'} 2024-09-18 02:05:58,341 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77629561:ctest-vn-40963985 is found in opserver 2024-09-18 02:05:58,352 - DEBUG - Do not have enough data to verify VN in agent 2024-09-18 02:05:58,358 - DEBUG - VRF ids for VN ctest-vn-40963985: {} 2024-09-18 02:05:58,358 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-09-18 02:05:58,363 - DEBUG - Requesting: http://10.0.0.35:8082/domain/6ce9aeff-a803-4507-98ad-5a94fe98d8af 2024-09-18 02:05:58,375 - DEBUG - Requesting: http://10.0.0.35:8082/project/4ec6c5a1-5abd-40cf-a01b-e621dfc5b680 2024-09-18 02:05:58,463 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/be40a388-3f5e-40c9-8f0c-75797255305f 2024-09-18 02:05:58,481 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/be40a388-3f5e-40c9-8f0c-75797255305f 2024-09-18 02:05:58,495 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/d79e9807-6f63-42da-a633-6921b481b99d 2024-09-18 02:05:58,503 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/d79e9807-6f63-42da-a633-6921b481b99d 2024-09-18 02:05:58,510 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/37972597-0b4a-4668-ae93-eb00958349c3 2024-09-18 02:05:58,517 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-18 02:05:58,517 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/be40a388-3f5e-40c9-8f0c-75797255305f 2024-09-18 02:05:58,531 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/d79e9807-6f63-42da-a633-6921b481b99d 2024-09-18 02:05:58,551 - INFO - Verified VN network id 10 for VN be40a388-3f5e-40c9-8f0c-75797255305f 2024-09-18 02:05:58,552 - INFO - Verifications in API Server for VN ctest-vn-50689829 passed 2024-09-18 02:05:58,552 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/be40a388-3f5e-40c9-8f0c-75797255305f 2024-09-18 02:05:58,566 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/d79e9807-6f63-42da-a633-6921b481b99d 2024-09-18 02:05:58,574 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/d79e9807-6f63-42da-a633-6921b481b99d 2024-09-18 02:05:58,583 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/37972597-0b4a-4668-ae93-eb00958349c3 2024-09-18 02:05:58,596 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77629561:ctest-vn-50689829', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77629561', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13709137071289811145', 'uuid-lslong': '10307742811613900895'}, 'enable': 'true', 'created': '2024-09-18T02:05:56', 'last-modified': '2024-09-18T02:05:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.526594'} 2024-09-18 02:05:58,603 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-18 02:05:58,603 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50689829 passed 2024-09-18 02:05:58,603 - DEBUG - ====Verifying policy data for ctest-vn-50689829 in API_Server ====== 2024-09-18 02:05:58,603 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-09-18 02:05:58,609 - DEBUG - Requesting: http://10.0.0.35:8082/domain/6ce9aeff-a803-4507-98ad-5a94fe98d8af 2024-09-18 02:05:58,623 - DEBUG - Requesting: http://10.0.0.35:8082/project/4ec6c5a1-5abd-40cf-a01b-e621dfc5b680 2024-09-18 02:05:58,711 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/be40a388-3f5e-40c9-8f0c-75797255305f 2024-09-18 02:05:58,725 - DEBUG - ==>Verifying data for policy with id: 6c679c7b-4ab1-4cea-aa0c-d2c9d6e9ad45, fqn: ['default-domain', 'ctest-TestBasicPolicy-77629561', 'ctest-policy-allow-all-68189106'] 2024-09-18 02:05:58,725 - INFO - VN ctest-vn-50689829 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-18 02:05:58,725 - DEBUG - Verifying the vn in opserver 2024-09-18 02:05:58,725 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77629561:ctest-vn-50689829 virtual network link through opserver 10.0.0.35 2024-09-18 02:05:58,725 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks 2024-09-18 02:05:58,736 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77629561:ctest-vn-50689829', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77629561:ctest-vn-50689829?flat'} 2024-09-18 02:05:58,736 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77629561:ctest-vn-50689829 is found in opserver 2024-09-18 02:05:58,749 - DEBUG - Do not have enough data to verify VN in agent 2024-09-18 02:05:58,755 - DEBUG - VRF ids for VN ctest-vn-50689829: {} 2024-09-18 02:05:58,809 - DEBUG - Services list from nova: [, , ] 2024-09-18 02:06:00,015 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1980-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1980-1) 2024-09-18 02:06:01,409 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1980-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1980-1) 2024-09-18 02:06:01,409 - INFO - Waiting for VM ctest-TestBasicPolicy-77629561-08830535 to be up.. 2024-09-18 02:06:01,507 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-18 02:06:06,599 - DEBUG - VM is in ACTIVE state now 2024-09-18 02:06:06,599 - INFO - VM name : ctest-TestBasicPolicy-77629561-08830535 2024-09-18 02:06:06,684 - DEBUG - VM ctest-TestBasicPolicy-77629561-08830535 ID is 0f4c7279-634a-4281-bac9-28a7f29a5043 2024-09-18 02:06:06,703 - DEBUG - VM ctest-TestBasicPolicy-77629561-08830535 launched on Node cn-jenkins-deploy-platform-ansible-os-1980-1 2024-09-18 02:06:06,792 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/0f4c7279-634a-4281-bac9-28a7f29a5043 2024-09-18 02:06:06,802 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/f466959a-77cf-4f8a-acec-9f1695aaf8f5 2024-09-18 02:06:10,068 - 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 1011ms') 2024-09-18 02:06:10,068 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-77629561-08830535 failed! 2024-09-18 02:06:10,126 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-77629561:ctest-vn-40963985 is 52.132.209.65 and allocation pool is NOT set 2024-09-18 02:06:12,188 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=5.14 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.79 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 1.793/3.464/5.135/1.671 ms') 2024-09-18 02:06:12,188 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-77629561-08830535 passed 2024-09-18 02:06:12,342 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-18 02:06:12,342 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-77629561-08830535, IP 52.132.209.67, Port 22 2024-09-18 02:06:12,506 - DEBUG - VM ctest-TestBasicPolicy-77629561-08830535 is ready for SSH connections 2024-09-18 02:06:12,506 - INFO - Waiting for VM ctest-TestBasicPolicy-77629561-36081490 to be up.. 2024-09-18 02:06:12,604 - DEBUG - VM is in ACTIVE state now 2024-09-18 02:06:12,604 - INFO - VM name : ctest-TestBasicPolicy-77629561-36081490 2024-09-18 02:06:12,697 - DEBUG - VM ctest-TestBasicPolicy-77629561-36081490 ID is e3e3c0b3-e578-4e45-a320-aa51bc9edada 2024-09-18 02:06:12,697 - DEBUG - VM ctest-TestBasicPolicy-77629561-36081490 launched on Node cn-jenkins-deploy-platform-ansible-os-1980-1 2024-09-18 02:06:12,808 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/e3e3c0b3-e578-4e45-a320-aa51bc9edada 2024-09-18 02:06:12,819 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/77d1e938-642f-47e5-8414-737d053d1a86 2024-09-18 02:06:14,079 - 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.74 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.447 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.447/1.595/2.744/1.148 ms') 2024-09-18 02:06:14,079 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-77629561-36081490 passed 2024-09-18 02:06:14,238 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-18 02:06:14,238 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-77629561-36081490, IP 92.140.131.67, Port 22 2024-09-18 02:06:14,416 - DEBUG - VM ctest-TestBasicPolicy-77629561-36081490 is ready for SSH connections 2024-09-18 02:06:14,416 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-18 02:06:14,416 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 92.140.131.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2024-09-18 02:06:14,416 - DEBUG - ping -s 56 -c 3 -W 1 92.140.131.67 2024-09-18 02:06:18,079 - DEBUG - PING 92.140.131.67 (92.140.131.67): 56 data bytes 64 bytes from 92.140.131.67: seq=0 ttl=63 time=3.197 ms 64 bytes from 92.140.131.67: seq=1 ttl=63 time=1.008 ms 64 bytes from 92.140.131.67: seq=2 ttl=63 time=0.835 ms --- 92.140.131.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.835/1.680/3.197 ms 2024-09-18 02:06:18,080 - INFO - Ping to IP 92.140.131.67 from VM ctest-TestBasicPolicy-77629561-08830535 passed 2024-09-18 02:06:18,270 - DEBUG - Policy Update Response {"network-policy": {"uuid": "6c679c7b-4ab1-4cea-aa0c-d2c9d6e9ad45", "href": "http://10.0.0.35:8082/network-policy/6c679c7b-4ab1-4cea-aa0c-d2c9d6e9ad45"}} 2024-09-18 02:06:18,270 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-18 02:06:18,270 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 92.140.131.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2024-09-18 02:06:18,270 - DEBUG - ping -s 56 -c 3 -W 1 92.140.131.67 2024-09-18 02:06:21,472 - DEBUG - PING 92.140.131.67 (92.140.131.67): 56 data bytes 64 bytes from 92.140.131.67: seq=0 ttl=63 time=1.622 ms --- 92.140.131.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.622/1.622/1.622 ms 2024-09-18 02:06:21,473 - WARNING - Ping to IP 92.140.131.67 from VM ctest-TestBasicPolicy-77629561-08830535 failed 2024-09-18 02:06:21,473 - INFO - Deleting VM ctest-TestBasicPolicy-77629561-36081490 2024-09-18 02:06:21,539 - INFO - Deleting VM ctest-TestBasicPolicy-77629561-08830535 2024-09-18 02:06:21,951 - INFO - Deleted policy ctest-policy-allow-all-68189106 2024-09-18 02:06:21,951 - INFO - Deleting VN ctest-vn-50689829 2024-09-18 02:06:21,988 - DEBUG - VN be40a388-3f5e-40c9-8f0c-75797255305f still in use: Unable to complete operation on network be40a388-3f5e-40c9-8f0c-75797255305f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-52bc0547-afc0-4f41-8958-0cd2ffd9f815'] 2024-09-18 02:06:21,988 - WARNING - Deleting VN ctest-vn-50689829 failed..Will retry 2024-09-18 02:06:24,096 - DEBUG - Response for deleting network () 2024-09-18 02:06:24,096 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/d79e9807-6f63-42da-a633-6921b481b99d 2024-09-18 02:06:24,104 - DEBUG - Response Code: 404 2024-09-18 02:06:24,105 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-09-18 02:06:24,111 - DEBUG - Requesting: http://10.0.0.35:8082/domain/6ce9aeff-a803-4507-98ad-5a94fe98d8af 2024-09-18 02:06:24,166 - DEBUG - Requesting: http://10.0.0.35:8082/project/4ec6c5a1-5abd-40cf-a01b-e621dfc5b680 2024-09-18 02:06:24,246 - INFO - Validated that VN ctest-vn-50689829 is not found in API Server 2024-09-18 02:06:24,257 - DEBUG - VN ctest-vn-50689829 is not present in Agent 10.0.0.35 2024-09-18 02:06:24,258 - INFO - Validated that VN ctest-vn-50689829 is not in any agent 2024-09-18 02:06:24,274 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-50689829 info 2024-09-18 02:06:24,274 - INFO - Deleting VN ctest-vn-40963985 2024-09-18 02:06:24,392 - DEBUG - Response for deleting network () 2024-09-18 02:06:24,392 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/b3e3ca90-566b-4196-9dfa-3293dc493b37 2024-09-18 02:06:24,400 - DEBUG - Response Code: 404 2024-09-18 02:06:24,400 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-09-18 02:06:24,408 - DEBUG - Requesting: http://10.0.0.35:8082/domain/6ce9aeff-a803-4507-98ad-5a94fe98d8af 2024-09-18 02:06:24,466 - DEBUG - Requesting: http://10.0.0.35:8082/project/4ec6c5a1-5abd-40cf-a01b-e621dfc5b680 2024-09-18 02:06:24,546 - INFO - Validated that VN ctest-vn-40963985 is not found in API Server 2024-09-18 02:06:24,557 - DEBUG - VN ctest-vn-40963985 is not present in Agent 10.0.0.35 2024-09-18 02:06:24,557 - INFO - Validated that VN ctest-vn-40963985 is not in any agent 2024-09-18 02:06:24,573 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-40963985 info 2024-09-18 02:06:24,828 - DEBUG - No XMPP flaps were noticed during the test
2024-09-18 02:06:24,828 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-09-18 02:06:24,828 - INFO - -------------------------------------------------------------------------------- 2024-09-18 02:06:25,580 - INFO - Deleted project: ctest-TestBasicPolicy-77629561, ID : 4ec6c5a1-5abd-40cf-a01b-e621dfc5b680