2024-11-08 18:04:01,064 - INFO - Domain Default found not creating 2024-11-08 18:04:01,256 - INFO - Project ctest-TestBasicPolicy-39845707 not found, creating it 2024-11-08 18:04:01,770 - INFO - Created Project:ctest-TestBasicPolicy-39845707, ID : de62bead-cf7c-4ddd-8213-c7f32dd1255e 2024-11-08 18:04:03,339 - INFO - ================================================================================ 2024-11-08 18:04:03,340 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-08 18:04:03,340 - 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-08 18:04:03,599 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.6': '0'}} with 2024-11-08 18:04:03,599 - INFO - Initial checks done. Running the testcase now 2024-11-08 18:04:03,599 - INFO - 2024-11-08 18:04:04,190 - DEBUG - Response for create_network : {'network': {'id': '81541e90-cd9d-4d82-9ffb-11795d9deb57', 'name': 'ctest-vn-91151829', 'tenant_id': 'de62beadcf7c4ddd8213c7f32dd1255e', 'project_id': 'de62beadcf7c4ddd8213c7f32dd1255e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39845707', 'ctest-vn-91151829'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 18:04:04,358 - DEBUG - Response for create_subnet : {'subnet': {'id': '5332e64b-1b19-4f11-8398-f627966bfa1e', 'name': '', 'tenant_id': 'de62beadcf7c4ddd8213c7f32dd1255e', 'network_id': '81541e90-cd9d-4d82-9ffb-11795d9deb57', 'ip_version': 4, 'cidr': '131.161.49.128/26', 'allocation_pools': [{'start': '131.161.49.130', 'end': '131.161.49.190'}], 'gateway_ip': '131.161.49.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '131.161.49.130', 'tags': [], 'project_id': 'de62beadcf7c4ddd8213c7f32dd1255e'}} 2024-11-08 18:04:04,380 - INFO - Created VN ctest-vn-91151829 2024-11-08 18:04:04,436 - DEBUG - VN ctest-vn-91151829 UUID is 81541e90-cd9d-4d82-9ffb-11795d9deb57 2024-11-08 18:04:04,761 - DEBUG - Response for create_network : {'network': {'id': '20fba84a-3a2a-4251-bafa-dc9fd5924cd5', 'name': 'ctest-vn-65683626', 'tenant_id': 'de62beadcf7c4ddd8213c7f32dd1255e', 'project_id': 'de62beadcf7c4ddd8213c7f32dd1255e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39845707', 'ctest-vn-65683626'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 18:04:04,963 - DEBUG - Response for create_subnet : {'subnet': {'id': '00d5c8c4-cc7d-4a44-9ac2-a2dfd4cd7c60', 'name': '', 'tenant_id': 'de62beadcf7c4ddd8213c7f32dd1255e', 'network_id': '20fba84a-3a2a-4251-bafa-dc9fd5924cd5', 'ip_version': 4, 'cidr': '6.164.91.192/26', 'allocation_pools': [{'start': '6.164.91.194', 'end': '6.164.91.254'}], 'gateway_ip': '6.164.91.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '6.164.91.194', 'tags': [], 'project_id': 'de62beadcf7c4ddd8213c7f32dd1255e'}} 2024-11-08 18:04:04,983 - INFO - Created VN ctest-vn-65683626 2024-11-08 18:04:05,040 - DEBUG - VN ctest-vn-65683626 UUID is 20fba84a-3a2a-4251-bafa-dc9fd5924cd5 2024-11-08 18:04:05,164 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-39845707:ctest-vn-91151829, 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-39845707:ctest-vn-65683626, 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-08 18:04:05,494 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '81541e90-cd9d-4d82-9ffb-11795d9deb57', 'name': 'ctest-vn-91151829', 'tenant_id': 'de62beadcf7c4ddd8213c7f32dd1255e', 'project_id': 'de62beadcf7c4ddd8213c7f32dd1255e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5332e64b-1b19-4f11-8398-f627966bfa1e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39845707', 'ctest-vn-91151829'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39845707', 'ctest-policy-allow-all-92700248']], 'subnet_ipam': [{'subnet_cidr': '131.161.49.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-08 18:04:05,739 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '20fba84a-3a2a-4251-bafa-dc9fd5924cd5', 'name': 'ctest-vn-65683626', 'tenant_id': 'de62beadcf7c4ddd8213c7f32dd1255e', 'project_id': 'de62beadcf7c4ddd8213c7f32dd1255e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['00d5c8c4-cc7d-4a44-9ac2-a2dfd4cd7c60'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39845707', 'ctest-vn-65683626'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39845707', 'ctest-policy-allow-all-92700248']], 'subnet_ipam': [{'subnet_cidr': '6.164.91.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-08 18:04:05,896 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-11-08 18:04:06,202 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-11-08 18:04:06,238 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f12f2c84-aa20-4a7e-b943-7ed979b244e0 2024-11-08 18:04:06,253 - DEBUG - Requesting: http://10.0.0.33:8082/project/de62bead-cf7c-4ddd-8213-c7f32dd1255e 2024-11-08 18:04:06,337 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/81541e90-cd9d-4d82-9ffb-11795d9deb57 2024-11-08 18:04:06,353 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/81541e90-cd9d-4d82-9ffb-11795d9deb57 2024-11-08 18:04:06,369 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ba65ebbb-6512-455c-9fde-bdcc8d11711e 2024-11-08 18:04:06,379 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ba65ebbb-6512-455c-9fde-bdcc8d11711e 2024-11-08 18:04:06,388 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/891684c4-937d-4b2c-83f2-875e9cd579b8 2024-11-08 18:04:06,397 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-08 18:04:06,397 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/81541e90-cd9d-4d82-9ffb-11795d9deb57 2024-11-08 18:04:06,412 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ba65ebbb-6512-455c-9fde-bdcc8d11711e 2024-11-08 18:04:06,435 - INFO - Verified VN network id 8 for VN 81541e90-cd9d-4d82-9ffb-11795d9deb57 2024-11-08 18:04:06,435 - INFO - Verifications in API Server for VN ctest-vn-91151829 passed 2024-11-08 18:04:06,435 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/81541e90-cd9d-4d82-9ffb-11795d9deb57 2024-11-08 18:04:06,457 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ba65ebbb-6512-455c-9fde-bdcc8d11711e 2024-11-08 18:04:06,467 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ba65ebbb-6512-455c-9fde-bdcc8d11711e 2024-11-08 18:04:06,476 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/891684c4-937d-4b2c-83f2-875e9cd579b8 2024-11-08 18:04:06,492 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39845707:ctest-vn-91151829', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39845707', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9319107136210161026', 'uuid-lslong': '11527826884144261975'}, 'enable': 'true', 'created': '2024-11-08T18:04:04', 'last-modified': '2024-11-08T18:04:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.028975'} 2024-11-08 18:04:06,501 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-08 18:04:06,501 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91151829 passed 2024-11-08 18:04:06,502 - DEBUG - ====Verifying policy data for ctest-vn-91151829 in API_Server ====== 2024-11-08 18:04:06,502 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-11-08 18:04:06,508 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f12f2c84-aa20-4a7e-b943-7ed979b244e0 2024-11-08 18:04:06,522 - DEBUG - Requesting: http://10.0.0.33:8082/project/de62bead-cf7c-4ddd-8213-c7f32dd1255e 2024-11-08 18:04:06,611 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/81541e90-cd9d-4d82-9ffb-11795d9deb57 2024-11-08 18:04:06,626 - DEBUG - ==>Verifying data for policy with id: 50c51733-4d98-4331-9754-3e50cda73170, fqn: ['default-domain', 'ctest-TestBasicPolicy-39845707', 'ctest-policy-allow-all-92700248'] 2024-11-08 18:04:06,626 - INFO - VN ctest-vn-91151829 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-08 18:04:06,626 - DEBUG - Verifying the vn in opserver 2024-11-08 18:04:06,626 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39845707:ctest-vn-91151829 virtual network link through opserver 10.0.0.33 2024-11-08 18:04:06,626 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2024-11-08 18:04:06,927 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2024-11-08 18:04:06,992 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39845707:ctest-vn-91151829', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39845707:ctest-vn-91151829?flat'} 2024-11-08 18:04:06,993 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39845707:ctest-vn-91151829 is found in opserver 2024-11-08 18:04:07,005 - DEBUG - Do not have enough data to verify VN in agent 2024-11-08 18:04:07,011 - DEBUG - VRF ids for VN ctest-vn-91151829: {} 2024-11-08 18:04:07,011 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-11-08 18:04:07,017 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f12f2c84-aa20-4a7e-b943-7ed979b244e0 2024-11-08 18:04:07,033 - DEBUG - Requesting: http://10.0.0.33:8082/project/de62bead-cf7c-4ddd-8213-c7f32dd1255e 2024-11-08 18:04:07,118 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/20fba84a-3a2a-4251-bafa-dc9fd5924cd5 2024-11-08 18:04:07,137 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/20fba84a-3a2a-4251-bafa-dc9fd5924cd5 2024-11-08 18:04:07,155 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/46d4d83f-d4b3-45e5-a86a-7765fc93bda5 2024-11-08 18:04:07,165 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/46d4d83f-d4b3-45e5-a86a-7765fc93bda5 2024-11-08 18:04:07,174 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ae946cb6-33fd-41a3-b045-e46b2fd778ca 2024-11-08 18:04:07,182 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-08 18:04:07,182 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/20fba84a-3a2a-4251-bafa-dc9fd5924cd5 2024-11-08 18:04:07,199 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/46d4d83f-d4b3-45e5-a86a-7765fc93bda5 2024-11-08 18:04:07,223 - INFO - Verified VN network id 9 for VN 20fba84a-3a2a-4251-bafa-dc9fd5924cd5 2024-11-08 18:04:07,223 - INFO - Verifications in API Server for VN ctest-vn-65683626 passed 2024-11-08 18:04:07,223 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/20fba84a-3a2a-4251-bafa-dc9fd5924cd5 2024-11-08 18:04:07,238 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/46d4d83f-d4b3-45e5-a86a-7765fc93bda5 2024-11-08 18:04:07,251 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/46d4d83f-d4b3-45e5-a86a-7765fc93bda5 2024-11-08 18:04:07,261 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ae946cb6-33fd-41a3-b045-e46b2fd778ca 2024-11-08 18:04:07,278 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39845707:ctest-vn-65683626', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39845707', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2376678265124962897', 'uuid-lslong': '13473323814273305813'}, 'enable': 'true', 'created': '2024-11-08T18:04:04', 'last-modified': '2024-11-08T18:04:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.557800'} 2024-11-08 18:04:07,287 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-08 18:04:07,287 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65683626 passed 2024-11-08 18:04:07,287 - DEBUG - ====Verifying policy data for ctest-vn-65683626 in API_Server ====== 2024-11-08 18:04:07,287 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-11-08 18:04:07,294 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f12f2c84-aa20-4a7e-b943-7ed979b244e0 2024-11-08 18:04:07,308 - DEBUG - Requesting: http://10.0.0.33:8082/project/de62bead-cf7c-4ddd-8213-c7f32dd1255e 2024-11-08 18:04:07,391 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/20fba84a-3a2a-4251-bafa-dc9fd5924cd5 2024-11-08 18:04:07,406 - DEBUG - ==>Verifying data for policy with id: 50c51733-4d98-4331-9754-3e50cda73170, fqn: ['default-domain', 'ctest-TestBasicPolicy-39845707', 'ctest-policy-allow-all-92700248'] 2024-11-08 18:04:07,406 - INFO - VN ctest-vn-65683626 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-08 18:04:07,406 - DEBUG - Verifying the vn in opserver 2024-11-08 18:04:07,406 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39845707:ctest-vn-65683626 virtual network link through opserver 10.0.0.33 2024-11-08 18:04:07,406 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2024-11-08 18:04:07,418 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39845707:ctest-vn-65683626', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39845707:ctest-vn-65683626?flat'} 2024-11-08 18:04:07,418 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39845707:ctest-vn-65683626 is found in opserver 2024-11-08 18:04:07,429 - DEBUG - Do not have enough data to verify VN in agent 2024-11-08 18:04:07,434 - DEBUG - VRF ids for VN ctest-vn-65683626: {} 2024-11-08 18:04:07,499 - DEBUG - Services list from nova: [, , ] 2024-11-08 18:04:08,559 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2238-30), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2238-30) 2024-11-08 18:04:09,858 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2238-30), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2238-30) 2024-11-08 18:04:09,858 - INFO - Waiting for VM ctest-TestBasicPolicy-39845707-52934763 to be up.. 2024-11-08 18:04:09,945 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-08 18:04:15,031 - DEBUG - VM is in ACTIVE state now 2024-11-08 18:04:15,031 - INFO - VM name : ctest-TestBasicPolicy-39845707-52934763 2024-11-08 18:04:15,116 - DEBUG - VM ctest-TestBasicPolicy-39845707-52934763 ID is a6424e37-224c-4bd7-bafc-d1828037afbe 2024-11-08 18:04:15,140 - DEBUG - VM ctest-TestBasicPolicy-39845707-52934763 launched on Node cn-jenkins-deploy-platform-ansible-os-2238-30 2024-11-08 18:04:15,226 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/a6424e37-224c-4bd7-bafc-d1828037afbe 2024-11-08 18:04:15,236 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/342d8785-0c60-452d-a401-7ac69d4d8eff 2024-11-08 18:04:18,493 - 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 1003ms') 2024-11-08 18:04:18,493 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-39845707-52934763 failed! 2024-11-08 18:04:18,552 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-39845707:ctest-vn-91151829 is 131.161.49.129 and allocation pool is NOT set 2024-11-08 18:04:20,617 - 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.21 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.488 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.488/2.348/4.209/1.860 ms') 2024-11-08 18:04:20,617 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-39845707-52934763 passed 2024-11-08 18:04:20,776 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 18:04:20,776 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-39845707-52934763, IP 131.161.49.131, Port 22 2024-11-08 18:04:20,944 - DEBUG - VM ctest-TestBasicPolicy-39845707-52934763 is ready for SSH connections 2024-11-08 18:04:20,944 - INFO - Waiting for VM ctest-TestBasicPolicy-39845707-95273376 to be up.. 2024-11-08 18:04:21,044 - DEBUG - VM is in ACTIVE state now 2024-11-08 18:04:21,045 - INFO - VM name : ctest-TestBasicPolicy-39845707-95273376 2024-11-08 18:04:21,144 - DEBUG - VM ctest-TestBasicPolicy-39845707-95273376 ID is 3e3ec41a-a55b-4fe5-be37-9b80a42399da 2024-11-08 18:04:21,144 - DEBUG - VM ctest-TestBasicPolicy-39845707-95273376 launched on Node cn-jenkins-deploy-platform-ansible-os-2238-30 2024-11-08 18:04:21,241 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/3e3ec41a-a55b-4fe5-be37-9b80a42399da 2024-11-08 18:04:21,253 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/09608c94-a96c-476b-8bbd-7424cb0b9f32 2024-11-08 18:04:22,514 - 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.76 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.489 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.489/2.123/3.758/1.634 ms') 2024-11-08 18:04:22,514 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-39845707-95273376 passed 2024-11-08 18:04:22,676 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 18:04:22,677 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-39845707-95273376, IP 6.164.91.195, Port 22 2024-11-08 18:04:22,832 - DEBUG - VM ctest-TestBasicPolicy-39845707-95273376 is ready for SSH connections 2024-11-08 18:04:22,832 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 18:04:22,832 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 6.164.91.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2024-11-08 18:04:22,832 - DEBUG - ping -s 56 -c 3 -W 1 6.164.91.195 2024-11-08 18:04:26,535 - DEBUG - PING 6.164.91.195 (6.164.91.195): 56 data bytes 64 bytes from 6.164.91.195: seq=0 ttl=63 time=4.738 ms 64 bytes from 6.164.91.195: seq=1 ttl=63 time=0.823 ms 64 bytes from 6.164.91.195: seq=2 ttl=63 time=0.880 ms --- 6.164.91.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.823/2.147/4.738 ms 2024-11-08 18:04:26,536 - INFO - Ping to IP 6.164.91.195 from VM ctest-TestBasicPolicy-39845707-52934763 passed 2024-11-08 18:04:26,728 - DEBUG - Policy Update Response {"network-policy": {"uuid": "50c51733-4d98-4331-9754-3e50cda73170", "href": "http://10.0.0.33:8082/network-policy/50c51733-4d98-4331-9754-3e50cda73170"}} 2024-11-08 18:04:26,728 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 18:04:26,728 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 6.164.91.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2024-11-08 18:04:26,728 - DEBUG - ping -s 56 -c 3 -W 1 6.164.91.195 2024-11-08 18:04:29,947 - DEBUG - PING 6.164.91.195 (6.164.91.195): 56 data bytes 64 bytes from 6.164.91.195: seq=0 ttl=63 time=2.329 ms --- 6.164.91.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.329/2.329/2.329 ms 2024-11-08 18:04:29,947 - WARNING - Ping to IP 6.164.91.195 from VM ctest-TestBasicPolicy-39845707-52934763 failed 2024-11-08 18:04:29,947 - INFO - Deleting VM ctest-TestBasicPolicy-39845707-95273376 2024-11-08 18:04:30,024 - INFO - Deleting VM ctest-TestBasicPolicy-39845707-52934763 2024-11-08 18:04:30,484 - INFO - Deleted policy ctest-policy-allow-all-92700248 2024-11-08 18:04:30,484 - INFO - Deleting VN ctest-vn-65683626 2024-11-08 18:04:30,537 - DEBUG - VN 20fba84a-3a2a-4251-bafa-dc9fd5924cd5 still in use: Unable to complete operation on network 20fba84a-3a2a-4251-bafa-dc9fd5924cd5. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-5ad12079-f594-4c15-a201-79fb79b460bb'] 2024-11-08 18:04:30,537 - WARNING - Deleting VN ctest-vn-65683626 failed..Will retry 2024-11-08 18:04:32,647 - DEBUG - Response for deleting network () 2024-11-08 18:04:32,647 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/46d4d83f-d4b3-45e5-a86a-7765fc93bda5 2024-11-08 18:04:32,655 - DEBUG - Response Code: 404 2024-11-08 18:04:32,655 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-11-08 18:04:32,662 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f12f2c84-aa20-4a7e-b943-7ed979b244e0 2024-11-08 18:04:32,718 - DEBUG - Requesting: http://10.0.0.33:8082/project/de62bead-cf7c-4ddd-8213-c7f32dd1255e 2024-11-08 18:04:32,796 - INFO - Validated that VN ctest-vn-65683626 is not found in API Server 2024-11-08 18:04:32,807 - DEBUG - VN ctest-vn-65683626 is not present in Agent 10.0.0.33 2024-11-08 18:04:32,807 - INFO - Validated that VN ctest-vn-65683626 is not in any agent 2024-11-08 18:04:32,823 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-65683626 info 2024-11-08 18:04:32,823 - INFO - Deleting VN ctest-vn-91151829 2024-11-08 18:04:32,932 - DEBUG - Response for deleting network () 2024-11-08 18:04:32,932 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ba65ebbb-6512-455c-9fde-bdcc8d11711e 2024-11-08 18:04:32,938 - DEBUG - Response Code: 404 2024-11-08 18:04:32,938 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-11-08 18:04:32,944 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f12f2c84-aa20-4a7e-b943-7ed979b244e0 2024-11-08 18:04:33,006 - DEBUG - Requesting: http://10.0.0.33:8082/project/de62bead-cf7c-4ddd-8213-c7f32dd1255e 2024-11-08 18:04:33,090 - INFO - Validated that VN ctest-vn-91151829 is not found in API Server 2024-11-08 18:04:33,102 - DEBUG - VN ctest-vn-91151829 is not present in Agent 10.0.0.33 2024-11-08 18:04:33,102 - INFO - Validated that VN ctest-vn-91151829 is not in any agent 2024-11-08 18:04:33,121 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-91151829 info 2024-11-08 18:04:33,374 - DEBUG - No XMPP flaps were noticed during the test 2024-11-08 18:04:33,374 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2024-11-08 18:04:33,374 - INFO - -------------------------------------------------------------------------------- 2024-11-08 18:04:34,058 - INFO - Deleted project: ctest-TestBasicPolicy-39845707, ID : de62bead-cf7c-4ddd-8213-c7f32dd1255e