2024-11-03 12:56:52,686 - INFO - Domain Default found not creating 2024-11-03 12:56:52,863 - INFO - Project ctest-TestBasicPolicy-99513580 not found, creating it 2024-11-03 12:56:53,364 - INFO - Created Project:ctest-TestBasicPolicy-99513580, ID : 22274a91-b3d0-4097-a59b-bee1e1fd319d 2024-11-03 12:56:54,859 - INFO - ================================================================================ 2024-11-03 12:56:54,859 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-03 12:56:54,859 - 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-11-03 12:56:55,121 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.7': '0'}} with 2024-11-03 12:56:55,122 - INFO - Initial checks done. Running the testcase now 2024-11-03 12:56:55,122 - INFO - 2024-11-03 12:56:55,698 - DEBUG - Response for create_network : {'network': {'id': '9ab8a45e-3099-43c8-8493-c3a2a266c453', 'name': 'ctest-vn-22871804', 'tenant_id': '22274a91b3d04097a59bbee1e1fd319d', 'project_id': '22274a91b3d04097a59bbee1e1fd319d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99513580', 'ctest-vn-22871804'], 'port_security_enabled': True, 'description': ''}} 2024-11-03 12:56:55,912 - DEBUG - Response for create_subnet : {'subnet': {'id': '65ddb875-c0bd-48b7-ae86-75ff68412f80', 'name': '', 'tenant_id': '22274a91b3d04097a59bbee1e1fd319d', 'network_id': '9ab8a45e-3099-43c8-8493-c3a2a266c453', 'ip_version': 4, 'cidr': '214.11.149.128/26', 'allocation_pools': [{'start': '214.11.149.130', 'end': '214.11.149.190'}], 'gateway_ip': '214.11.149.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.11.149.130', 'tags': [], 'project_id': '22274a91b3d04097a59bbee1e1fd319d'}} 2024-11-03 12:56:55,931 - INFO - Created VN ctest-vn-22871804 2024-11-03 12:56:55,991 - DEBUG - VN ctest-vn-22871804 UUID is 9ab8a45e-3099-43c8-8493-c3a2a266c453 2024-11-03 12:56:56,306 - DEBUG - Response for create_network : {'network': {'id': '312c9704-4496-4807-b8db-4a308e46f632', 'name': 'ctest-vn-45029810', 'tenant_id': '22274a91b3d04097a59bbee1e1fd319d', 'project_id': '22274a91b3d04097a59bbee1e1fd319d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99513580', 'ctest-vn-45029810'], 'port_security_enabled': True, 'description': ''}} 2024-11-03 12:56:56,478 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e5ed7b08-5af0-492e-8439-a1cda10a071d', 'name': '', 'tenant_id': '22274a91b3d04097a59bbee1e1fd319d', 'network_id': '312c9704-4496-4807-b8db-4a308e46f632', 'ip_version': 4, 'cidr': '172.73.174.64/26', 'allocation_pools': [{'start': '172.73.174.66', 'end': '172.73.174.126'}], 'gateway_ip': '172.73.174.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.73.174.66', 'tags': [], 'project_id': '22274a91b3d04097a59bbee1e1fd319d'}} 2024-11-03 12:56:56,500 - INFO - Created VN ctest-vn-45029810 2024-11-03 12:56:56,559 - DEBUG - VN ctest-vn-45029810 UUID is 312c9704-4496-4807-b8db-4a308e46f632 2024-11-03 12:56:56,687 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-99513580:ctest-vn-22871804, 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-99513580:ctest-vn-45029810, 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-11-03 12:56:57,013 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9ab8a45e-3099-43c8-8493-c3a2a266c453', 'name': 'ctest-vn-22871804', 'tenant_id': '22274a91b3d04097a59bbee1e1fd319d', 'project_id': '22274a91b3d04097a59bbee1e1fd319d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['65ddb875-c0bd-48b7-ae86-75ff68412f80'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99513580', 'ctest-vn-22871804'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99513580', 'ctest-policy-allow-all-59981801']], 'subnet_ipam': [{'subnet_cidr': '214.11.149.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-03 12:56:57,320 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '312c9704-4496-4807-b8db-4a308e46f632', 'name': 'ctest-vn-45029810', 'tenant_id': '22274a91b3d04097a59bbee1e1fd319d', 'project_id': '22274a91b3d04097a59bbee1e1fd319d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e5ed7b08-5af0-492e-8439-a1cda10a071d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99513580', 'ctest-vn-45029810'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99513580', 'ctest-policy-allow-all-59981801']], 'subnet_ipam': [{'subnet_cidr': '172.73.174.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-03 12:56:57,467 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-11-03 12:56:57,762 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-11-03 12:56:57,795 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c37ed47c-ffef-4a83-b5a0-7272113d02bb 2024-11-03 12:56:57,810 - DEBUG - Requesting: http://10.0.0.24:8082/project/22274a91-b3d0-4097-a59b-bee1e1fd319d 2024-11-03 12:56:57,893 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/9ab8a45e-3099-43c8-8493-c3a2a266c453 2024-11-03 12:56:57,909 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/9ab8a45e-3099-43c8-8493-c3a2a266c453 2024-11-03 12:56:57,924 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/10172630-7b0d-4dc7-ba55-edd839ab326b 2024-11-03 12:56:57,932 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/10172630-7b0d-4dc7-ba55-edd839ab326b 2024-11-03 12:56:57,941 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/4d99c4dc-8b91-44e4-a288-6336f8542dca 2024-11-03 12:56:57,949 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-03 12:56:57,949 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/9ab8a45e-3099-43c8-8493-c3a2a266c453 2024-11-03 12:56:57,964 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/10172630-7b0d-4dc7-ba55-edd839ab326b 2024-11-03 12:56:57,984 - INFO - Verified VN network id 9 for VN 9ab8a45e-3099-43c8-8493-c3a2a266c453 2024-11-03 12:56:57,984 - INFO - Verifications in API Server for VN ctest-vn-22871804 passed 2024-11-03 12:56:57,984 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/9ab8a45e-3099-43c8-8493-c3a2a266c453 2024-11-03 12:56:57,998 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/10172630-7b0d-4dc7-ba55-edd839ab326b 2024-11-03 12:56:58,010 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/10172630-7b0d-4dc7-ba55-edd839ab326b 2024-11-03 12:56:58,019 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/4d99c4dc-8b91-44e4-a288-6336f8542dca 2024-11-03 12:56:58,032 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99513580:ctest-vn-22871804', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99513580', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11148841602004894664', 'uuid-lslong': '9553194337859716179'}, 'enable': 'true', 'created': '2024-11-03T12:56:55', 'last-modified': '2024-11-03T12:56:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.051538'} 2024-11-03 12:56:58,040 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-03 12:56:58,040 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22871804 passed 2024-11-03 12:56:58,040 - DEBUG - ====Verifying policy data for ctest-vn-22871804 in API_Server ====== 2024-11-03 12:56:58,041 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-11-03 12:56:58,068 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c37ed47c-ffef-4a83-b5a0-7272113d02bb 2024-11-03 12:56:58,110 - DEBUG - Requesting: http://10.0.0.24:8082/project/22274a91-b3d0-4097-a59b-bee1e1fd319d 2024-11-03 12:56:58,277 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/9ab8a45e-3099-43c8-8493-c3a2a266c453 2024-11-03 12:56:58,359 - DEBUG - ==>Verifying data for policy with id: dcf5752f-cfc9-4b62-baef-d5b369a4d4ec, fqn: ['default-domain', 'ctest-TestBasicPolicy-99513580', 'ctest-policy-allow-all-59981801'] 2024-11-03 12:56:58,359 - INFO - VN ctest-vn-22871804 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-03 12:56:58,359 - DEBUG - Verifying the vn in opserver 2024-11-03 12:56:58,359 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99513580:ctest-vn-22871804 virtual network link through opserver 10.0.0.24 2024-11-03 12:56:58,360 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2024-11-03 12:56:58,676 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2024-11-03 12:56:58,769 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99513580:ctest-vn-22871804', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99513580:ctest-vn-22871804?flat'} 2024-11-03 12:56:58,769 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99513580:ctest-vn-22871804 is found in opserver 2024-11-03 12:56:58,782 - DEBUG - Do not have enough data to verify VN in agent 2024-11-03 12:56:58,788 - DEBUG - VRF ids for VN ctest-vn-22871804: {} 2024-11-03 12:56:58,789 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-11-03 12:56:58,796 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c37ed47c-ffef-4a83-b5a0-7272113d02bb 2024-11-03 12:56:58,826 - DEBUG - Requesting: http://10.0.0.24:8082/project/22274a91-b3d0-4097-a59b-bee1e1fd319d 2024-11-03 12:56:58,907 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/312c9704-4496-4807-b8db-4a308e46f632 2024-11-03 12:56:58,929 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/312c9704-4496-4807-b8db-4a308e46f632 2024-11-03 12:56:58,942 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/059c3038-e390-43a6-a215-f9c3e4184651 2024-11-03 12:56:58,951 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/059c3038-e390-43a6-a215-f9c3e4184651 2024-11-03 12:56:58,960 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/584614bb-d361-40b7-b8df-fceb19f6e3b6 2024-11-03 12:56:58,968 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-03 12:56:58,968 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/312c9704-4496-4807-b8db-4a308e46f632 2024-11-03 12:56:58,981 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/059c3038-e390-43a6-a215-f9c3e4184651 2024-11-03 12:56:58,999 - INFO - Verified VN network id 10 for VN 312c9704-4496-4807-b8db-4a308e46f632 2024-11-03 12:56:59,000 - INFO - Verifications in API Server for VN ctest-vn-45029810 passed 2024-11-03 12:56:59,000 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/312c9704-4496-4807-b8db-4a308e46f632 2024-11-03 12:56:59,013 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/059c3038-e390-43a6-a215-f9c3e4184651 2024-11-03 12:56:59,021 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/059c3038-e390-43a6-a215-f9c3e4184651 2024-11-03 12:56:59,029 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/584614bb-d361-40b7-b8df-fceb19f6e3b6 2024-11-03 12:56:59,042 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99513580:ctest-vn-45029810', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99513580', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3543373051420100615', 'uuid-lslong': '13320321895284274738'}, 'enable': 'true', 'created': '2024-11-03T12:56:56', 'last-modified': '2024-11-03T12:56:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.808195'} 2024-11-03 12:56:59,048 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-03 12:56:59,048 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45029810 passed 2024-11-03 12:56:59,048 - DEBUG - ====Verifying policy data for ctest-vn-45029810 in API_Server ====== 2024-11-03 12:56:59,048 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-11-03 12:56:59,053 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c37ed47c-ffef-4a83-b5a0-7272113d02bb 2024-11-03 12:56:59,066 - DEBUG - Requesting: http://10.0.0.24:8082/project/22274a91-b3d0-4097-a59b-bee1e1fd319d 2024-11-03 12:56:59,145 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/312c9704-4496-4807-b8db-4a308e46f632 2024-11-03 12:56:59,159 - DEBUG - ==>Verifying data for policy with id: dcf5752f-cfc9-4b62-baef-d5b369a4d4ec, fqn: ['default-domain', 'ctest-TestBasicPolicy-99513580', 'ctest-policy-allow-all-59981801'] 2024-11-03 12:56:59,159 - INFO - VN ctest-vn-45029810 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-03 12:56:59,159 - DEBUG - Verifying the vn in opserver 2024-11-03 12:56:59,159 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99513580:ctest-vn-45029810 virtual network link through opserver 10.0.0.24 2024-11-03 12:56:59,159 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2024-11-03 12:56:59,171 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99513580:ctest-vn-45029810', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99513580:ctest-vn-45029810?flat'} 2024-11-03 12:56:59,171 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99513580:ctest-vn-45029810 is found in opserver 2024-11-03 12:56:59,181 - DEBUG - Do not have enough data to verify VN in agent 2024-11-03 12:56:59,187 - DEBUG - VRF ids for VN ctest-vn-45029810: {} 2024-11-03 12:56:59,254 - DEBUG - Services list from nova: [, , ] 2024-11-03 12:57:00,429 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2187-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2187-1) 2024-11-03 12:57:01,638 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2187-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2187-1) 2024-11-03 12:57:01,639 - INFO - Waiting for VM ctest-TestBasicPolicy-99513580-28305703 to be up.. 2024-11-03 12:57:01,725 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-03 12:57:06,816 - DEBUG - VM is in ACTIVE state now 2024-11-03 12:57:06,816 - INFO - VM name : ctest-TestBasicPolicy-99513580-28305703 2024-11-03 12:57:06,902 - DEBUG - VM ctest-TestBasicPolicy-99513580-28305703 ID is d9c028cb-8ce6-47c8-be90-8c153e2e2856 2024-11-03 12:57:06,921 - DEBUG - VM ctest-TestBasicPolicy-99513580-28305703 launched on Node cn-jenkins-deploy-platform-ansible-os-2187-1 2024-11-03 12:57:07,006 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/d9c028cb-8ce6-47c8-be90-8c153e2e2856 2024-11-03 12:57:07,017 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/8e5d0696-6ea5-439d-863e-6e043b35cfde 2024-11-03 12:57:10,306 - 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 1030ms') 2024-11-03 12:57:10,306 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-99513580-28305703 failed! 2024-11-03 12:57:10,371 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-99513580:ctest-vn-22871804 is 214.11.149.129 and allocation pool is NOT set 2024-11-03 12:57:12,439 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=3.85 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.487 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.487/2.168/3.849/1.681 ms') 2024-11-03 12:57:12,440 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-99513580-28305703 passed 2024-11-03 12:57:12,603 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-03 12:57:12,603 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-99513580-28305703, IP 214.11.149.131, Port 22 2024-11-03 12:57:12,759 - DEBUG - VM ctest-TestBasicPolicy-99513580-28305703 is ready for SSH connections 2024-11-03 12:57:12,759 - INFO - Waiting for VM ctest-TestBasicPolicy-99513580-88186437 to be up.. 2024-11-03 12:57:12,842 - DEBUG - VM is in ACTIVE state now 2024-11-03 12:57:12,842 - INFO - VM name : ctest-TestBasicPolicy-99513580-88186437 2024-11-03 12:57:12,928 - DEBUG - VM ctest-TestBasicPolicy-99513580-88186437 ID is 767351a9-ad2d-4452-870e-ff408ddc044d 2024-11-03 12:57:12,928 - DEBUG - VM ctest-TestBasicPolicy-99513580-88186437 launched on Node cn-jenkins-deploy-platform-ansible-os-2187-1 2024-11-03 12:57:13,008 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/767351a9-ad2d-4452-870e-ff408ddc044d 2024-11-03 12:57:13,019 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/63613508-0a07-479c-be4d-9482279169fc 2024-11-03 12:57:14,284 - 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.79 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.523 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.523/1.657/2.791/1.134 ms') 2024-11-03 12:57:14,285 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-99513580-88186437 passed 2024-11-03 12:57:14,447 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-03 12:57:14,447 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-99513580-88186437, IP 172.73.174.67, Port 22 2024-11-03 12:57:14,602 - DEBUG - VM ctest-TestBasicPolicy-99513580-88186437 is ready for SSH connections 2024-11-03 12:57:14,603 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-03 12:57:14,603 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 172.73.174.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2024-11-03 12:57:14,603 - DEBUG - ping -s 56 -c 3 -W 1 172.73.174.67 2024-11-03 12:57:18,581 - DEBUG - PING 172.73.174.67 (172.73.174.67): 56 data bytes 64 bytes from 172.73.174.67: seq=0 ttl=63 time=4.366 ms 64 bytes from 172.73.174.67: seq=1 ttl=63 time=0.821 ms 64 bytes from 172.73.174.67: seq=2 ttl=63 time=0.820 ms --- 172.73.174.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.820/2.002/4.366 ms 2024-11-03 12:57:18,582 - INFO - Ping to IP 172.73.174.67 from VM ctest-TestBasicPolicy-99513580-28305703 passed 2024-11-03 12:57:18,774 - DEBUG - Policy Update Response {"network-policy": {"uuid": "dcf5752f-cfc9-4b62-baef-d5b369a4d4ec", "href": "http://10.0.0.24:8082/network-policy/dcf5752f-cfc9-4b62-baef-d5b369a4d4ec"}} 2024-11-03 12:57:18,775 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-03 12:57:18,775 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 172.73.174.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2024-11-03 12:57:18,775 - DEBUG - ping -s 56 -c 3 -W 1 172.73.174.67 2024-11-03 12:57:21,983 - DEBUG - PING 172.73.174.67 (172.73.174.67): 56 data bytes 64 bytes from 172.73.174.67: seq=0 ttl=63 time=1.686 ms --- 172.73.174.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.686/1.686/1.686 ms 2024-11-03 12:57:21,984 - WARNING - Ping to IP 172.73.174.67 from VM ctest-TestBasicPolicy-99513580-28305703 failed 2024-11-03 12:57:21,984 - INFO - Deleting VM ctest-TestBasicPolicy-99513580-88186437 2024-11-03 12:57:22,057 - INFO - Deleting VM ctest-TestBasicPolicy-99513580-28305703 2024-11-03 12:57:22,538 - INFO - Deleted policy ctest-policy-allow-all-59981801 2024-11-03 12:57:22,538 - INFO - Deleting VN ctest-vn-45029810 2024-11-03 12:57:22,592 - DEBUG - VN 312c9704-4496-4807-b8db-4a308e46f632 still in use: Unable to complete operation on network 312c9704-4496-4807-b8db-4a308e46f632. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-953ddcca-4c3b-4403-b7de-7b5eacf056c3'] 2024-11-03 12:57:22,592 - WARNING - Deleting VN ctest-vn-45029810 failed..Will retry 2024-11-03 12:57:24,708 - DEBUG - Response for deleting network () 2024-11-03 12:57:24,708 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/059c3038-e390-43a6-a215-f9c3e4184651 2024-11-03 12:57:24,714 - DEBUG - Response Code: 404 2024-11-03 12:57:24,714 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-11-03 12:57:24,724 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c37ed47c-ffef-4a83-b5a0-7272113d02bb 2024-11-03 12:57:24,781 - DEBUG - Requesting: http://10.0.0.24:8082/project/22274a91-b3d0-4097-a59b-bee1e1fd319d 2024-11-03 12:57:24,864 - INFO - Validated that VN ctest-vn-45029810 is not found in API Server 2024-11-03 12:57:24,876 - DEBUG - VN ctest-vn-45029810 is not present in Agent 10.0.0.24 2024-11-03 12:57:24,876 - INFO - Validated that VN ctest-vn-45029810 is not in any agent 2024-11-03 12:57:24,893 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-45029810 info 2024-11-03 12:57:24,893 - INFO - Deleting VN ctest-vn-22871804 2024-11-03 12:57:25,009 - DEBUG - Response for deleting network () 2024-11-03 12:57:25,009 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/10172630-7b0d-4dc7-ba55-edd839ab326b 2024-11-03 12:57:25,020 - DEBUG - Response Code: 404 2024-11-03 12:57:25,021 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-11-03 12:57:25,027 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c37ed47c-ffef-4a83-b5a0-7272113d02bb 2024-11-03 12:57:25,085 - DEBUG - Requesting: http://10.0.0.24:8082/project/22274a91-b3d0-4097-a59b-bee1e1fd319d 2024-11-03 12:57:25,163 - INFO - Validated that VN ctest-vn-22871804 is not found in API Server 2024-11-03 12:57:25,176 - DEBUG - VN ctest-vn-22871804 is not present in Agent 10.0.0.24 2024-11-03 12:57:25,176 - INFO - Validated that VN ctest-vn-22871804 is not in any agent 2024-11-03 12:57:25,192 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-22871804 info 2024-11-03 12:57:25,449 - DEBUG - No XMPP flaps were noticed during the test 2024-11-03 12:57:25,449 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31] 2024-11-03 12:57:25,450 - INFO - -------------------------------------------------------------------------------- 2024-11-03 12:57:26,173 - INFO - Deleted project: ctest-TestBasicPolicy-99513580, ID : 22274a91-b3d0-4097-a59b-bee1e1fd319d