2024-08-23 23:02:48,627 - INFO - Domain Default found not creating 2024-08-23 23:02:48,780 - INFO - Project ctest-TestBasicPolicy-17046906 not found, creating it 2024-08-23 23:02:49,232 - INFO - Created Project:ctest-TestBasicPolicy-17046906, ID : 578c2d2f-1e7f-41bb-9508-761f11125ee9 2024-08-23 23:02:50,673 - INFO - ================================================================================ 2024-08-23 23:02:50,673 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-23 23:02:50,673 - 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-08-23 23:02:50,926 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.13': '0'}} with 2024-08-23 23:02:50,926 - INFO - Initial checks done. Running the testcase now 2024-08-23 23:02:50,926 - INFO - 2024-08-23 23:02:51,472 - DEBUG - Response for create_network : {'network': {'id': 'aa7efed8-734d-4467-8c4b-4654ad8a807b', 'name': 'ctest-vn-54205102', 'tenant_id': '578c2d2f1e7f41bb9508761f11125ee9', 'project_id': '578c2d2f1e7f41bb9508761f11125ee9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17046906', 'ctest-vn-54205102'], 'port_security_enabled': True, 'description': ''}} 2024-08-23 23:02:51,622 - DEBUG - Response for create_subnet : {'subnet': {'id': '4c024365-5af6-4fea-a092-547f0721aeb6', 'name': '', 'tenant_id': '578c2d2f1e7f41bb9508761f11125ee9', 'network_id': 'aa7efed8-734d-4467-8c4b-4654ad8a807b', 'ip_version': 4, 'cidr': '189.59.153.192/26', 'allocation_pools': [{'start': '189.59.153.194', 'end': '189.59.153.254'}], 'gateway_ip': '189.59.153.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '189.59.153.194', 'tags': [], 'project_id': '578c2d2f1e7f41bb9508761f11125ee9'}} 2024-08-23 23:02:51,640 - INFO - Created VN ctest-vn-54205102 2024-08-23 23:02:51,689 - DEBUG - VN ctest-vn-54205102 UUID is aa7efed8-734d-4467-8c4b-4654ad8a807b 2024-08-23 23:02:52,003 - DEBUG - Response for create_network : {'network': {'id': '3276f47c-14f6-49b2-8248-dbc6b24db5df', 'name': 'ctest-vn-56988234', 'tenant_id': '578c2d2f1e7f41bb9508761f11125ee9', 'project_id': '578c2d2f1e7f41bb9508761f11125ee9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17046906', 'ctest-vn-56988234'], 'port_security_enabled': True, 'description': ''}} 2024-08-23 23:02:53,833 - DEBUG - Response for create_subnet : {'subnet': {'id': '765b3924-929d-44f2-9650-4a5e93227442', 'name': '', 'tenant_id': '578c2d2f1e7f41bb9508761f11125ee9', 'network_id': '3276f47c-14f6-49b2-8248-dbc6b24db5df', 'ip_version': 4, 'cidr': '207.202.26.192/26', 'allocation_pools': [{'start': '207.202.26.194', 'end': '207.202.26.254'}], 'gateway_ip': '207.202.26.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '207.202.26.194', 'tags': [], 'project_id': '578c2d2f1e7f41bb9508761f11125ee9'}} 2024-08-23 23:02:53,854 - INFO - Created VN ctest-vn-56988234 2024-08-23 23:02:53,905 - DEBUG - VN ctest-vn-56988234 UUID is 3276f47c-14f6-49b2-8248-dbc6b24db5df 2024-08-23 23:02:54,018 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-17046906:ctest-vn-54205102, 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-17046906:ctest-vn-56988234, 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-08-23 23:02:54,312 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aa7efed8-734d-4467-8c4b-4654ad8a807b', 'name': 'ctest-vn-54205102', 'tenant_id': '578c2d2f1e7f41bb9508761f11125ee9', 'project_id': '578c2d2f1e7f41bb9508761f11125ee9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4c024365-5af6-4fea-a092-547f0721aeb6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17046906', 'ctest-vn-54205102'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17046906', 'ctest-policy-allow-all-52043724']], 'subnet_ipam': [{'subnet_cidr': '189.59.153.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-23 23:02:54,554 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3276f47c-14f6-49b2-8248-dbc6b24db5df', 'name': 'ctest-vn-56988234', 'tenant_id': '578c2d2f1e7f41bb9508761f11125ee9', 'project_id': '578c2d2f1e7f41bb9508761f11125ee9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['765b3924-929d-44f2-9650-4a5e93227442'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17046906', 'ctest-vn-56988234'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17046906', 'ctest-policy-allow-all-52043724']], 'subnet_ipam': [{'subnet_cidr': '207.202.26.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-23 23:02:54,717 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-08-23 23:02:55,009 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-08-23 23:02:55,038 - DEBUG - Requesting: http://10.0.0.31:8082/domain/e274405b-1ca7-49a7-bb91-ae39db63d61f 2024-08-23 23:02:55,051 - DEBUG - Requesting: http://10.0.0.31:8082/project/578c2d2f-1e7f-41bb-9508-761f11125ee9 2024-08-23 23:02:55,123 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/aa7efed8-734d-4467-8c4b-4654ad8a807b 2024-08-23 23:02:55,131 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/aa7efed8-734d-4467-8c4b-4654ad8a807b 2024-08-23 23:02:55,138 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/097e0512-435d-465e-bf87-6b2e6d66aa5e 2024-08-23 23:02:55,145 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/097e0512-435d-465e-bf87-6b2e6d66aa5e 2024-08-23 23:02:55,151 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/40a17f84-555c-4c4a-b837-41e1524709b3 2024-08-23 23:02:55,156 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-23 23:02:55,156 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/aa7efed8-734d-4467-8c4b-4654ad8a807b 2024-08-23 23:02:55,162 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/097e0512-435d-465e-bf87-6b2e6d66aa5e 2024-08-23 23:02:55,173 - INFO - Verified VN network id 7 for VN aa7efed8-734d-4467-8c4b-4654ad8a807b 2024-08-23 23:02:55,173 - INFO - Verifications in API Server for VN ctest-vn-54205102 passed 2024-08-23 23:02:55,173 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/aa7efed8-734d-4467-8c4b-4654ad8a807b 2024-08-23 23:02:55,180 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/097e0512-435d-465e-bf87-6b2e6d66aa5e 2024-08-23 23:02:55,186 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/097e0512-435d-465e-bf87-6b2e6d66aa5e 2024-08-23 23:02:55,192 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/40a17f84-555c-4c4a-b837-41e1524709b3 2024-08-23 23:02:55,202 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17046906:ctest-vn-54205102', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17046906', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12285537039114126439', 'uuid-lslong': '10109251118065942651'}, 'enable': 'true', 'created': '2024-08-23T23:02:51', 'last-modified': '2024-08-23T23:02:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.916197'} 2024-08-23 23:02:55,208 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-23 23:02:55,208 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54205102 passed 2024-08-23 23:02:55,209 - DEBUG - ====Verifying policy data for ctest-vn-54205102 in API_Server ====== 2024-08-23 23:02:55,209 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-08-23 23:02:55,214 - DEBUG - Requesting: http://10.0.0.31:8082/domain/e274405b-1ca7-49a7-bb91-ae39db63d61f 2024-08-23 23:02:55,224 - DEBUG - Requesting: http://10.0.0.31:8082/project/578c2d2f-1e7f-41bb-9508-761f11125ee9 2024-08-23 23:02:55,293 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/aa7efed8-734d-4467-8c4b-4654ad8a807b 2024-08-23 23:02:55,301 - DEBUG - ==>Verifying data for policy with id: c89615ef-4101-4b8b-af3b-8ac3aa8bfb65, fqn: ['default-domain', 'ctest-TestBasicPolicy-17046906', 'ctest-policy-allow-all-52043724'] 2024-08-23 23:02:55,301 - INFO - VN ctest-vn-54205102 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-23 23:02:55,301 - DEBUG - Verifying the vn in opserver 2024-08-23 23:02:55,302 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17046906:ctest-vn-54205102 virtual network link through opserver 10.0.0.31 2024-08-23 23:02:55,302 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-08-23 23:02:55,593 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-08-23 23:02:55,655 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17046906:ctest-vn-54205102', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17046906:ctest-vn-54205102?flat'} 2024-08-23 23:02:55,655 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17046906:ctest-vn-54205102 is found in opserver 2024-08-23 23:02:55,666 - DEBUG - Do not have enough data to verify VN in agent 2024-08-23 23:02:55,670 - DEBUG - VRF ids for VN ctest-vn-54205102: {} 2024-08-23 23:02:55,670 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-08-23 23:02:55,676 - DEBUG - Requesting: http://10.0.0.31:8082/domain/e274405b-1ca7-49a7-bb91-ae39db63d61f 2024-08-23 23:02:55,688 - DEBUG - Requesting: http://10.0.0.31:8082/project/578c2d2f-1e7f-41bb-9508-761f11125ee9 2024-08-23 23:02:55,759 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/3276f47c-14f6-49b2-8248-dbc6b24db5df 2024-08-23 23:02:55,769 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/3276f47c-14f6-49b2-8248-dbc6b24db5df 2024-08-23 23:02:55,776 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/40cf57f3-76de-49fa-b64e-16bd29bccad8 2024-08-23 23:02:55,784 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/40cf57f3-76de-49fa-b64e-16bd29bccad8 2024-08-23 23:02:55,790 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/e8af00bd-838b-48bb-8cb0-fa79375c9f09 2024-08-23 23:02:55,796 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-23 23:02:55,796 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/3276f47c-14f6-49b2-8248-dbc6b24db5df 2024-08-23 23:02:55,803 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/40cf57f3-76de-49fa-b64e-16bd29bccad8 2024-08-23 23:02:55,814 - INFO - Verified VN network id 8 for VN 3276f47c-14f6-49b2-8248-dbc6b24db5df 2024-08-23 23:02:55,814 - INFO - Verifications in API Server for VN ctest-vn-56988234 passed 2024-08-23 23:02:55,814 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/3276f47c-14f6-49b2-8248-dbc6b24db5df 2024-08-23 23:02:55,821 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/40cf57f3-76de-49fa-b64e-16bd29bccad8 2024-08-23 23:02:55,827 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/40cf57f3-76de-49fa-b64e-16bd29bccad8 2024-08-23 23:02:55,833 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/e8af00bd-838b-48bb-8cb0-fa79375c9f09 2024-08-23 23:02:55,845 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17046906:ctest-vn-56988234', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17046906', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3636362562913061298', 'uuid-lslong': '9387995069695243743'}, 'enable': 'true', 'created': '2024-08-23T23:02:51', 'last-modified': '2024-08-23T23:02:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.316606'} 2024-08-23 23:02:55,851 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-23 23:02:55,851 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56988234 passed 2024-08-23 23:02:55,851 - DEBUG - ====Verifying policy data for ctest-vn-56988234 in API_Server ====== 2024-08-23 23:02:55,851 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-08-23 23:02:55,856 - DEBUG - Requesting: http://10.0.0.31:8082/domain/e274405b-1ca7-49a7-bb91-ae39db63d61f 2024-08-23 23:02:55,868 - DEBUG - Requesting: http://10.0.0.31:8082/project/578c2d2f-1e7f-41bb-9508-761f11125ee9 2024-08-23 23:02:55,938 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/3276f47c-14f6-49b2-8248-dbc6b24db5df 2024-08-23 23:02:55,946 - DEBUG - ==>Verifying data for policy with id: c89615ef-4101-4b8b-af3b-8ac3aa8bfb65, fqn: ['default-domain', 'ctest-TestBasicPolicy-17046906', 'ctest-policy-allow-all-52043724'] 2024-08-23 23:02:55,946 - INFO - VN ctest-vn-56988234 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-23 23:02:55,946 - DEBUG - Verifying the vn in opserver 2024-08-23 23:02:55,946 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17046906:ctest-vn-56988234 virtual network link through opserver 10.0.0.31 2024-08-23 23:02:55,946 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-08-23 23:02:55,956 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17046906:ctest-vn-56988234', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17046906:ctest-vn-56988234?flat'} 2024-08-23 23:02:55,956 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17046906:ctest-vn-56988234 is found in opserver 2024-08-23 23:02:55,966 - DEBUG - Do not have enough data to verify VN in agent 2024-08-23 23:02:55,970 - DEBUG - VRF ids for VN ctest-vn-56988234: {} 2024-08-23 23:02:56,021 - DEBUG - Services list from nova: [, , ] 2024-08-23 23:02:57,173 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1733-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1733-1) 2024-08-23 23:02:58,359 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1733-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1733-1) 2024-08-23 23:02:58,359 - INFO - Waiting for VM ctest-TestBasicPolicy-17046906-23872580 to be up.. 2024-08-23 23:02:58,441 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-23 23:03:03,535 - DEBUG - VM is in ACTIVE state now 2024-08-23 23:03:03,535 - INFO - VM name : ctest-TestBasicPolicy-17046906-23872580 2024-08-23 23:03:03,643 - DEBUG - VM ctest-TestBasicPolicy-17046906-23872580 ID is 71c5455b-3fca-4f45-ad8e-e814441a9530 2024-08-23 23:03:03,670 - DEBUG - VM ctest-TestBasicPolicy-17046906-23872580 launched on Node cn-jenkins-deploy-platform-ansible-os-1733-1 2024-08-23 23:03:03,777 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/71c5455b-3fca-4f45-ad8e-e814441a9530 2024-08-23 23:03:03,791 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/f2dc70fe-7e0b-476e-8eee-b8e391387bc8 2024-08-23 23:03:07,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 1031ms') 2024-08-23 23:03:07,068 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-17046906-23872580 failed! 2024-08-23 23:03:07,121 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-17046906:ctest-vn-54205102 is 189.59.153.193 and allocation pool is NOT set 2024-08-23 23:03:09,183 - 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=2.79 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.458 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.458/1.626/2.794/1.168 ms') 2024-08-23 23:03:09,183 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-17046906-23872580 passed 2024-08-23 23:03:09,333 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-23 23:03:09,333 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-17046906-23872580, IP 189.59.153.195, Port 22 2024-08-23 23:03:09,488 - DEBUG - VM ctest-TestBasicPolicy-17046906-23872580 is ready for SSH connections 2024-08-23 23:03:09,488 - INFO - Waiting for VM ctest-TestBasicPolicy-17046906-15824707 to be up.. 2024-08-23 23:03:09,567 - DEBUG - VM is in ACTIVE state now 2024-08-23 23:03:09,567 - INFO - VM name : ctest-TestBasicPolicy-17046906-15824707 2024-08-23 23:03:09,648 - DEBUG - VM ctest-TestBasicPolicy-17046906-15824707 ID is 4f5e0072-479d-4399-9453-c8917c75a5a3 2024-08-23 23:03:09,648 - DEBUG - VM ctest-TestBasicPolicy-17046906-15824707 launched on Node cn-jenkins-deploy-platform-ansible-os-1733-1 2024-08-23 23:03:09,720 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/4f5e0072-479d-4399-9453-c8917c75a5a3 2024-08-23 23:03:09,732 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/1e3b104c-c426-4edf-ae23-296a2e78ec50 2024-08-23 23:03:10,971 - 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.01 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.314 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.314/1.664/3.014/1.350 ms') 2024-08-23 23:03:10,972 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-17046906-15824707 passed 2024-08-23 23:03:11,125 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-23 23:03:11,125 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-17046906-15824707, IP 207.202.26.195, Port 22 2024-08-23 23:03:11,280 - DEBUG - VM ctest-TestBasicPolicy-17046906-15824707 is ready for SSH connections 2024-08-23 23:03:11,280 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-23 23:03:11,280 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 207.202.26.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-08-23 23:03:11,281 - DEBUG - ping -s 56 -c 3 -W 1 207.202.26.195 2024-08-23 23:03:15,287 - DEBUG - PING 207.202.26.195 (207.202.26.195): 56 data bytes 64 bytes from 207.202.26.195: seq=0 ttl=63 time=3.361 ms 64 bytes from 207.202.26.195: seq=1 ttl=63 time=0.701 ms 64 bytes from 207.202.26.195: seq=2 ttl=63 time=0.763 ms --- 207.202.26.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.701/1.608/3.361 ms 2024-08-23 23:03:15,287 - INFO - Ping to IP 207.202.26.195 from VM ctest-TestBasicPolicy-17046906-23872580 passed 2024-08-23 23:03:15,464 - DEBUG - Policy Update Response {"network-policy": {"uuid": "c89615ef-4101-4b8b-af3b-8ac3aa8bfb65", "href": "http://10.0.0.31:8082/network-policy/c89615ef-4101-4b8b-af3b-8ac3aa8bfb65"}} 2024-08-23 23:03:15,465 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-23 23:03:15,465 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 207.202.26.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-08-23 23:03:15,465 - DEBUG - ping -s 56 -c 3 -W 1 207.202.26.195 2024-08-23 23:03:18,667 - DEBUG - PING 207.202.26.195 (207.202.26.195): 56 data bytes --- 207.202.26.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-08-23 23:03:18,667 - WARNING - Ping to IP 207.202.26.195 from VM ctest-TestBasicPolicy-17046906-23872580 failed 2024-08-23 23:03:18,667 - INFO - Deleting VM ctest-TestBasicPolicy-17046906-15824707 2024-08-23 23:03:19,714 - INFO - Deleting VM ctest-TestBasicPolicy-17046906-23872580 2024-08-23 23:03:20,095 - INFO - Deleted policy ctest-policy-allow-all-52043724 2024-08-23 23:03:20,095 - INFO - Deleting VN ctest-vn-56988234 2024-08-23 23:03:20,142 - DEBUG - VN 3276f47c-14f6-49b2-8248-dbc6b24db5df still in use: Unable to complete operation on network 3276f47c-14f6-49b2-8248-dbc6b24db5df. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-656f07d2-47de-4c89-b759-2cd00281b6a4'] 2024-08-23 23:03:20,142 - WARNING - Deleting VN ctest-vn-56988234 failed..Will retry 2024-08-23 23:03:22,253 - DEBUG - Response for deleting network () 2024-08-23 23:03:22,253 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/40cf57f3-76de-49fa-b64e-16bd29bccad8 2024-08-23 23:03:22,260 - DEBUG - Response Code: 404 2024-08-23 23:03:22,260 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-08-23 23:03:22,268 - DEBUG - Requesting: http://10.0.0.31:8082/domain/e274405b-1ca7-49a7-bb91-ae39db63d61f 2024-08-23 23:03:22,322 - DEBUG - Requesting: http://10.0.0.31:8082/project/578c2d2f-1e7f-41bb-9508-761f11125ee9 2024-08-23 23:03:22,393 - INFO - Validated that VN ctest-vn-56988234 is not found in API Server 2024-08-23 23:03:22,404 - DEBUG - VN ctest-vn-56988234 is not present in Agent 10.0.0.31 2024-08-23 23:03:22,404 - INFO - Validated that VN ctest-vn-56988234 is not in any agent 2024-08-23 23:03:22,421 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-56988234 info 2024-08-23 23:03:22,421 - INFO - Deleting VN ctest-vn-54205102 2024-08-23 23:03:22,525 - DEBUG - Response for deleting network () 2024-08-23 23:03:22,525 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/097e0512-435d-465e-bf87-6b2e6d66aa5e 2024-08-23 23:03:22,531 - DEBUG - Response Code: 404 2024-08-23 23:03:22,532 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-08-23 23:03:22,537 - DEBUG - Requesting: http://10.0.0.31:8082/domain/e274405b-1ca7-49a7-bb91-ae39db63d61f 2024-08-23 23:03:22,590 - DEBUG - Requesting: http://10.0.0.31:8082/project/578c2d2f-1e7f-41bb-9508-761f11125ee9 2024-08-23 23:03:22,661 - INFO - Validated that VN ctest-vn-54205102 is not found in API Server 2024-08-23 23:03:22,673 - DEBUG - VN ctest-vn-54205102 is not present in Agent 10.0.0.31 2024-08-23 23:03:22,673 - INFO - Validated that VN ctest-vn-54205102 is not in any agent 2024-08-23 23:03:22,691 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-54205102 info 2024-08-23 23:03:22,947 - DEBUG - No XMPP flaps were noticed during the test
2024-08-23 23:03:22,947 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:32]
2024-08-23 23:03:22,947 - INFO - -------------------------------------------------------------------------------- 2024-08-23 23:03:23,658 - INFO - Deleted project: ctest-TestBasicPolicy-17046906, ID : 578c2d2f-1e7f-41bb-9508-761f11125ee9