2024-10-17 02:44:10,326 - INFO - Domain Default found not creating 2024-10-17 02:44:10,534 - INFO - Project ctest-TestBasicPolicy-22195130 not found, creating it 2024-10-17 02:44:11,049 - INFO - Created Project:ctest-TestBasicPolicy-22195130, ID : 5abf2c62-7ee9-4d4d-a94c-0477658e2419 2024-10-17 02:44:12,784 - INFO - ================================================================================ 2024-10-17 02:44:12,785 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-17 02:44:12,785 - 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-10-17 02:44:13,047 - DEBUG - Nothing to compare xmpp stats {'10.0.0.43': {'10.20.0.6': '0'}} with 2024-10-17 02:44:13,047 - INFO - Initial checks done. Running the testcase now 2024-10-17 02:44:13,047 - INFO - 2024-10-17 02:44:13,698 - DEBUG - Response for create_network : {'network': {'id': 'db9c4b52-8fc4-4afc-90eb-91864da64738', 'name': 'ctest-vn-93842315', 'tenant_id': '5abf2c627ee94d4da94c0477658e2419', 'project_id': '5abf2c627ee94d4da94c0477658e2419', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22195130', 'ctest-vn-93842315'], 'port_security_enabled': True, 'description': ''}} 2024-10-17 02:44:13,885 - DEBUG - Response for create_subnet : {'subnet': {'id': '9725fa04-64d7-4810-99e2-8ace9b4d8004', 'name': '', 'tenant_id': '5abf2c627ee94d4da94c0477658e2419', 'network_id': 'db9c4b52-8fc4-4afc-90eb-91864da64738', 'ip_version': 4, 'cidr': '90.62.174.192/26', 'allocation_pools': [{'start': '90.62.174.194', 'end': '90.62.174.254'}], 'gateway_ip': '90.62.174.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '90.62.174.194', 'tags': [], 'project_id': '5abf2c627ee94d4da94c0477658e2419'}} 2024-10-17 02:44:13,908 - INFO - Created VN ctest-vn-93842315 2024-10-17 02:44:13,960 - DEBUG - VN ctest-vn-93842315 UUID is db9c4b52-8fc4-4afc-90eb-91864da64738 2024-10-17 02:44:14,287 - DEBUG - Response for create_network : {'network': {'id': 'b988b8d2-268e-49f8-aaf5-6871b80a3fa2', 'name': 'ctest-vn-85589532', 'tenant_id': '5abf2c627ee94d4da94c0477658e2419', 'project_id': '5abf2c627ee94d4da94c0477658e2419', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22195130', 'ctest-vn-85589532'], 'port_security_enabled': True, 'description': ''}} 2024-10-17 02:44:14,467 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b0b8b018-3937-4f86-99b3-d82d8bfd3418', 'name': '', 'tenant_id': '5abf2c627ee94d4da94c0477658e2419', 'network_id': 'b988b8d2-268e-49f8-aaf5-6871b80a3fa2', 'ip_version': 4, 'cidr': '189.62.162.64/26', 'allocation_pools': [{'start': '189.62.162.66', 'end': '189.62.162.126'}], 'gateway_ip': '189.62.162.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '189.62.162.66', 'tags': [], 'project_id': '5abf2c627ee94d4da94c0477658e2419'}} 2024-10-17 02:44:14,498 - INFO - Created VN ctest-vn-85589532 2024-10-17 02:44:14,552 - DEBUG - VN ctest-vn-85589532 UUID is b988b8d2-268e-49f8-aaf5-6871b80a3fa2 2024-10-17 02:44:14,688 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-22195130:ctest-vn-93842315, 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-22195130:ctest-vn-85589532, 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-10-17 02:44:15,014 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'db9c4b52-8fc4-4afc-90eb-91864da64738', 'name': 'ctest-vn-93842315', 'tenant_id': '5abf2c627ee94d4da94c0477658e2419', 'project_id': '5abf2c627ee94d4da94c0477658e2419', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9725fa04-64d7-4810-99e2-8ace9b4d8004'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22195130', 'ctest-vn-93842315'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22195130', 'ctest-policy-allow-all-31443300']], 'subnet_ipam': [{'subnet_cidr': '90.62.174.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-17 02:44:15,265 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b988b8d2-268e-49f8-aaf5-6871b80a3fa2', 'name': 'ctest-vn-85589532', 'tenant_id': '5abf2c627ee94d4da94c0477658e2419', 'project_id': '5abf2c627ee94d4da94c0477658e2419', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b0b8b018-3937-4f86-99b3-d82d8bfd3418'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22195130', 'ctest-vn-85589532'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22195130', 'ctest-policy-allow-all-31443300']], 'subnet_ipam': [{'subnet_cidr': '189.62.162.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-17 02:44:15,448 - DEBUG - Requesting: http://10.0.0.43:8082/domains 2024-10-17 02:44:15,788 - DEBUG - Requesting: http://10.0.0.43:8082/domains 2024-10-17 02:44:15,830 - DEBUG - Requesting: http://10.0.0.43:8082/domain/e6845da4-15ec-4fa4-a1d2-ed77ee9bebed 2024-10-17 02:44:15,850 - DEBUG - Requesting: http://10.0.0.43:8082/project/5abf2c62-7ee9-4d4d-a94c-0477658e2419 2024-10-17 02:44:15,927 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/db9c4b52-8fc4-4afc-90eb-91864da64738 2024-10-17 02:44:15,938 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/db9c4b52-8fc4-4afc-90eb-91864da64738 2024-10-17 02:44:15,947 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/b66f045a-1bdc-47a9-a0f9-a2c5593028cc 2024-10-17 02:44:15,955 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/b66f045a-1bdc-47a9-a0f9-a2c5593028cc 2024-10-17 02:44:15,962 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/68b93223-59ec-4d75-98a8-3df869b5f90b 2024-10-17 02:44:15,968 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-17 02:44:15,968 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/db9c4b52-8fc4-4afc-90eb-91864da64738 2024-10-17 02:44:15,977 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/b66f045a-1bdc-47a9-a0f9-a2c5593028cc 2024-10-17 02:44:15,992 - INFO - Verified VN network id 8 for VN db9c4b52-8fc4-4afc-90eb-91864da64738 2024-10-17 02:44:15,992 - INFO - Verifications in API Server for VN ctest-vn-93842315 passed 2024-10-17 02:44:15,992 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/db9c4b52-8fc4-4afc-90eb-91864da64738 2024-10-17 02:44:16,002 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/b66f045a-1bdc-47a9-a0f9-a2c5593028cc 2024-10-17 02:44:16,010 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/b66f045a-1bdc-47a9-a0f9-a2c5593028cc 2024-10-17 02:44:16,019 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/68b93223-59ec-4d75-98a8-3df869b5f90b 2024-10-17 02:44:16,035 - DEBUG - Control-node 10.0.0.43 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22195130:ctest-vn-93842315', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22195130', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15824606008644487932', 'uuid-lslong': '10442600167003014968'}, 'enable': 'true', 'created': '2024-10-17T02:44:13', 'last-modified': '2024-10-17T02:44:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.052182'} 2024-10-17 02:44:16,044 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-17 02:44:16,044 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93842315 passed 2024-10-17 02:44:16,044 - DEBUG - ====Verifying policy data for ctest-vn-93842315 in API_Server ====== 2024-10-17 02:44:16,044 - DEBUG - Requesting: http://10.0.0.43:8082/domains 2024-10-17 02:44:16,052 - DEBUG - Requesting: http://10.0.0.43:8082/domain/e6845da4-15ec-4fa4-a1d2-ed77ee9bebed 2024-10-17 02:44:16,065 - DEBUG - Requesting: http://10.0.0.43:8082/project/5abf2c62-7ee9-4d4d-a94c-0477658e2419 2024-10-17 02:44:16,138 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/db9c4b52-8fc4-4afc-90eb-91864da64738 2024-10-17 02:44:16,147 - DEBUG - ==>Verifying data for policy with id: 33917fdb-3a44-41b4-b0dd-c7ebbd7665d6, fqn: ['default-domain', 'ctest-TestBasicPolicy-22195130', 'ctest-policy-allow-all-31443300'] 2024-10-17 02:44:16,147 - INFO - VN ctest-vn-93842315 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-17 02:44:16,147 - DEBUG - Verifying the vn in opserver 2024-10-17 02:44:16,147 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22195130:ctest-vn-93842315 virtual network link through opserver 10.0.0.43 2024-10-17 02:44:16,148 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks 2024-10-17 02:44:16,485 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks 2024-10-17 02:44:16,555 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22195130:ctest-vn-93842315', 'href': 'http://10.0.0.43:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22195130:ctest-vn-93842315?flat'} 2024-10-17 02:44:16,555 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22195130:ctest-vn-93842315 is found in opserver 2024-10-17 02:44:16,568 - DEBUG - Do not have enough data to verify VN in agent 2024-10-17 02:44:16,574 - DEBUG - VRF ids for VN ctest-vn-93842315: {} 2024-10-17 02:44:16,574 - DEBUG - Requesting: http://10.0.0.43:8082/domains 2024-10-17 02:44:16,581 - DEBUG - Requesting: http://10.0.0.43:8082/domain/e6845da4-15ec-4fa4-a1d2-ed77ee9bebed 2024-10-17 02:44:16,595 - DEBUG - Requesting: http://10.0.0.43:8082/project/5abf2c62-7ee9-4d4d-a94c-0477658e2419 2024-10-17 02:44:16,671 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/b988b8d2-268e-49f8-aaf5-6871b80a3fa2 2024-10-17 02:44:16,684 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/b988b8d2-268e-49f8-aaf5-6871b80a3fa2 2024-10-17 02:44:16,694 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/71a7cabf-ba69-454a-b9bb-7ea9da654974 2024-10-17 02:44:16,703 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/71a7cabf-ba69-454a-b9bb-7ea9da654974 2024-10-17 02:44:16,714 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/7d31105b-d8e8-46a4-8f7b-e445be0d6a22 2024-10-17 02:44:16,725 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-17 02:44:16,725 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/b988b8d2-268e-49f8-aaf5-6871b80a3fa2 2024-10-17 02:44:16,739 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/71a7cabf-ba69-454a-b9bb-7ea9da654974 2024-10-17 02:44:16,758 - INFO - Verified VN network id 9 for VN b988b8d2-268e-49f8-aaf5-6871b80a3fa2 2024-10-17 02:44:16,758 - INFO - Verifications in API Server for VN ctest-vn-85589532 passed 2024-10-17 02:44:16,758 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/b988b8d2-268e-49f8-aaf5-6871b80a3fa2 2024-10-17 02:44:16,771 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/71a7cabf-ba69-454a-b9bb-7ea9da654974 2024-10-17 02:44:16,782 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/71a7cabf-ba69-454a-b9bb-7ea9da654974 2024-10-17 02:44:16,791 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/7d31105b-d8e8-46a4-8f7b-e445be0d6a22 2024-10-17 02:44:16,807 - DEBUG - Control-node 10.0.0.43 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22195130:ctest-vn-85589532', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22195130', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13369138706578819576', 'uuid-lslong': '12318867193370132386'}, 'enable': 'true', 'created': '2024-10-17T02:44:14', 'last-modified': '2024-10-17T02:44:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.565926'} 2024-10-17 02:44:16,814 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-17 02:44:16,814 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85589532 passed 2024-10-17 02:44:16,815 - DEBUG - ====Verifying policy data for ctest-vn-85589532 in API_Server ====== 2024-10-17 02:44:16,815 - DEBUG - Requesting: http://10.0.0.43:8082/domains 2024-10-17 02:44:16,822 - DEBUG - Requesting: http://10.0.0.43:8082/domain/e6845da4-15ec-4fa4-a1d2-ed77ee9bebed 2024-10-17 02:44:16,836 - DEBUG - Requesting: http://10.0.0.43:8082/project/5abf2c62-7ee9-4d4d-a94c-0477658e2419 2024-10-17 02:44:16,911 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/b988b8d2-268e-49f8-aaf5-6871b80a3fa2 2024-10-17 02:44:16,921 - DEBUG - ==>Verifying data for policy with id: 33917fdb-3a44-41b4-b0dd-c7ebbd7665d6, fqn: ['default-domain', 'ctest-TestBasicPolicy-22195130', 'ctest-policy-allow-all-31443300'] 2024-10-17 02:44:16,921 - INFO - VN ctest-vn-85589532 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-17 02:44:16,921 - DEBUG - Verifying the vn in opserver 2024-10-17 02:44:16,921 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22195130:ctest-vn-85589532 virtual network link through opserver 10.0.0.43 2024-10-17 02:44:16,921 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks 2024-10-17 02:44:16,935 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22195130:ctest-vn-85589532', 'href': 'http://10.0.0.43:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22195130:ctest-vn-85589532?flat'} 2024-10-17 02:44:16,935 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22195130:ctest-vn-85589532 is found in opserver 2024-10-17 02:44:16,948 - DEBUG - Do not have enough data to verify VN in agent 2024-10-17 02:44:16,953 - DEBUG - VRF ids for VN ctest-vn-85589532: {} 2024-10-17 02:44:17,034 - DEBUG - Services list from nova: [, , ] 2024-10-17 02:44:18,216 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2107-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2107-1) 2024-10-17 02:44:19,609 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2107-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2107-1) 2024-10-17 02:44:19,609 - INFO - Waiting for VM ctest-TestBasicPolicy-22195130-50924133 to be up.. 2024-10-17 02:44:19,707 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-17 02:44:24,810 - DEBUG - VM is in ACTIVE state now 2024-10-17 02:44:24,810 - INFO - VM name : ctest-TestBasicPolicy-22195130-50924133 2024-10-17 02:44:24,900 - DEBUG - VM ctest-TestBasicPolicy-22195130-50924133 ID is 529aa1c4-6f0b-4817-b17a-913ad99c5c83 2024-10-17 02:44:24,922 - DEBUG - VM ctest-TestBasicPolicy-22195130-50924133 launched on Node cn-jenkins-deploy-platform-ansible-os-2107-1 2024-10-17 02:44:25,008 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine/529aa1c4-6f0b-4817-b17a-913ad99c5c83 2024-10-17 02:44:25,018 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine-interface/3eb742f7-692c-4325-8caf-4dca843dc16f 2024-10-17 02:44:28,278 - 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 1018ms') 2024-10-17 02:44:28,278 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-22195130-50924133 failed! 2024-10-17 02:44:28,336 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-22195130:ctest-vn-93842315 is 90.62.174.193 and allocation pool is NOT set 2024-10-17 02:44:30,402 - 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=9.32 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.14 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 = 2.139/5.728/9.318/3.589 ms') 2024-10-17 02:44:30,402 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-22195130-50924133 passed 2024-10-17 02:44:30,556 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-17 02:44:30,556 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-22195130-50924133, IP 90.62.174.195, Port 22 2024-10-17 02:44:30,727 - DEBUG - VM ctest-TestBasicPolicy-22195130-50924133 is ready for SSH connections 2024-10-17 02:44:30,727 - INFO - Waiting for VM ctest-TestBasicPolicy-22195130-40451376 to be up.. 2024-10-17 02:44:30,824 - DEBUG - VM is in ACTIVE state now 2024-10-17 02:44:30,824 - INFO - VM name : ctest-TestBasicPolicy-22195130-40451376 2024-10-17 02:44:30,914 - DEBUG - VM ctest-TestBasicPolicy-22195130-40451376 ID is 014de882-8c44-4253-950f-af66b83d0dba 2024-10-17 02:44:30,914 - DEBUG - VM ctest-TestBasicPolicy-22195130-40451376 launched on Node cn-jenkins-deploy-platform-ansible-os-2107-1 2024-10-17 02:44:31,001 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine/014de882-8c44-4253-950f-af66b83d0dba 2024-10-17 02:44:31,012 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine-interface/5c2e6e6d-3919-46bc-809c-9f865ccaa38c 2024-10-17 02:44:32,260 - 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.56 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.469 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.469/2.015/3.562/1.546 ms') 2024-10-17 02:44:32,260 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-22195130-40451376 passed 2024-10-17 02:44:32,412 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-17 02:44:32,413 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-22195130-40451376, IP 189.62.162.67, Port 22 2024-10-17 02:44:32,478 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-10-17 02:44:32,563 - DEBUG - VM ctest-TestBasicPolicy-22195130-40451376 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-17 02:44:37,564 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-17 02:44:37,564 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-22195130-40451376, IP 189.62.162.67, Port 22 2024-10-17 02:44:37,735 - DEBUG - VM ctest-TestBasicPolicy-22195130-40451376 is ready for SSH connections 2024-10-17 02:44:37,735 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-17 02:44:37,735 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 189.62.162.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.43, gateway password: c0ntrail123 2024-10-17 02:44:37,735 - DEBUG - ping -s 56 -c 3 -W 1 189.62.162.67 2024-10-17 02:44:41,862 - DEBUG - PING 189.62.162.67 (189.62.162.67): 56 data bytes 64 bytes from 189.62.162.67: seq=0 ttl=63 time=4.584 ms 64 bytes from 189.62.162.67: seq=1 ttl=63 time=1.062 ms 64 bytes from 189.62.162.67: seq=2 ttl=63 time=1.011 ms --- 189.62.162.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.011/2.219/4.584 ms 2024-10-17 02:44:41,863 - INFO - Ping to IP 189.62.162.67 from VM ctest-TestBasicPolicy-22195130-50924133 passed 2024-10-17 02:44:42,052 - DEBUG - Policy Update Response {"network-policy": {"uuid": "33917fdb-3a44-41b4-b0dd-c7ebbd7665d6", "href": "http://10.0.0.43:8082/network-policy/33917fdb-3a44-41b4-b0dd-c7ebbd7665d6"}} 2024-10-17 02:44:42,052 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-17 02:44:42,052 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 189.62.162.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.43, gateway password: c0ntrail123 2024-10-17 02:44:42,052 - DEBUG - ping -s 56 -c 3 -W 1 189.62.162.67 2024-10-17 02:44:45,283 - DEBUG - PING 189.62.162.67 (189.62.162.67): 56 data bytes --- 189.62.162.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-17 02:44:45,283 - WARNING - Ping to IP 189.62.162.67 from VM ctest-TestBasicPolicy-22195130-50924133 failed 2024-10-17 02:44:45,283 - INFO - Deleting VM ctest-TestBasicPolicy-22195130-40451376 2024-10-17 02:44:45,370 - INFO - Deleting VM ctest-TestBasicPolicy-22195130-50924133 2024-10-17 02:44:45,805 - INFO - Deleted policy ctest-policy-allow-all-31443300 2024-10-17 02:44:45,805 - INFO - Deleting VN ctest-vn-85589532 2024-10-17 02:44:45,858 - DEBUG - VN b988b8d2-268e-49f8-aaf5-6871b80a3fa2 still in use: Unable to complete operation on network b988b8d2-268e-49f8-aaf5-6871b80a3fa2. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-fb621279-f5d6-4bd5-be6b-f9128dd8d9a7'] 2024-10-17 02:44:45,858 - WARNING - Deleting VN ctest-vn-85589532 failed..Will retry 2024-10-17 02:44:47,976 - DEBUG - Response for deleting network () 2024-10-17 02:44:47,976 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/71a7cabf-ba69-454a-b9bb-7ea9da654974 2024-10-17 02:44:47,985 - DEBUG - Response Code: 404 2024-10-17 02:44:47,985 - DEBUG - Requesting: http://10.0.0.43:8082/domains 2024-10-17 02:44:47,993 - DEBUG - Requesting: http://10.0.0.43:8082/domain/e6845da4-15ec-4fa4-a1d2-ed77ee9bebed 2024-10-17 02:44:48,051 - DEBUG - Requesting: http://10.0.0.43:8082/project/5abf2c62-7ee9-4d4d-a94c-0477658e2419 2024-10-17 02:44:48,124 - INFO - Validated that VN ctest-vn-85589532 is not found in API Server 2024-10-17 02:44:48,141 - DEBUG - VN ctest-vn-85589532 is not present in Agent 10.0.0.43 2024-10-17 02:44:48,141 - INFO - Validated that VN ctest-vn-85589532 is not in any agent 2024-10-17 02:44:48,159 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-85589532 info 2024-10-17 02:44:48,160 - INFO - Deleting VN ctest-vn-93842315 2024-10-17 02:44:48,289 - DEBUG - Response for deleting network () 2024-10-17 02:44:48,289 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/b66f045a-1bdc-47a9-a0f9-a2c5593028cc 2024-10-17 02:44:48,296 - DEBUG - Response Code: 404 2024-10-17 02:44:48,296 - DEBUG - Requesting: http://10.0.0.43:8082/domains 2024-10-17 02:44:48,308 - DEBUG - Requesting: http://10.0.0.43:8082/domain/e6845da4-15ec-4fa4-a1d2-ed77ee9bebed 2024-10-17 02:44:48,370 - DEBUG - Requesting: http://10.0.0.43:8082/project/5abf2c62-7ee9-4d4d-a94c-0477658e2419 2024-10-17 02:44:48,443 - INFO - Validated that VN ctest-vn-93842315 is not found in API Server 2024-10-17 02:44:48,461 - DEBUG - VN ctest-vn-93842315 is not present in Agent 10.0.0.43 2024-10-17 02:44:48,461 - INFO - Validated that VN ctest-vn-93842315 is not in any agent 2024-10-17 02:44:48,487 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-93842315 info 2024-10-17 02:44:48,752 - DEBUG - No XMPP flaps were noticed during the test 2024-10-17 02:44:48,752 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2024-10-17 02:44:48,752 - INFO - -------------------------------------------------------------------------------- 2024-10-17 02:44:49,518 - INFO - Deleted project: ctest-TestBasicPolicy-22195130, ID : 5abf2c62-7ee9-4d4d-a94c-0477658e2419