2024-11-08 18:27:47,409 - INFO - Domain Default found not creating 2024-11-08 18:27:47,578 - INFO - Project ctest-TestBasicPolicy-39119948 not found, creating it 2024-11-08 18:27:48,100 - INFO - Created Project:ctest-TestBasicPolicy-39119948, ID : 22cc4a71-48cb-453a-b883-9c9f53d83a0f 2024-11-08 18:27:49,794 - INFO - ================================================================================ 2024-11-08 18:27:49,795 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-08 18:27:49,795 - 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:27:50,050 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.18': '0'}} with 2024-11-08 18:27:50,051 - INFO - Initial checks done. Running the testcase now 2024-11-08 18:27:50,051 - INFO - 2024-11-08 18:27:50,686 - DEBUG - Response for create_network : {'network': {'id': 'd2e611fc-c73f-49dc-bb54-1c00843fd0a0', 'name': 'ctest-vn-83424164', 'tenant_id': '22cc4a7148cb453ab8839c9f53d83a0f', 'project_id': '22cc4a7148cb453ab8839c9f53d83a0f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39119948', 'ctest-vn-83424164'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 18:27:50,863 - DEBUG - Response for create_subnet : {'subnet': {'id': '8049af4c-34eb-4dad-bda1-e805db5a56d5', 'name': '', 'tenant_id': '22cc4a7148cb453ab8839c9f53d83a0f', 'network_id': 'd2e611fc-c73f-49dc-bb54-1c00843fd0a0', 'ip_version': 4, 'cidr': '135.196.27.128/26', 'allocation_pools': [{'start': '135.196.27.130', 'end': '135.196.27.190'}], 'gateway_ip': '135.196.27.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.196.27.130', 'tags': [], 'project_id': '22cc4a7148cb453ab8839c9f53d83a0f'}} 2024-11-08 18:27:50,886 - INFO - Created VN ctest-vn-83424164 2024-11-08 18:27:50,949 - DEBUG - VN ctest-vn-83424164 UUID is d2e611fc-c73f-49dc-bb54-1c00843fd0a0 2024-11-08 18:27:51,288 - DEBUG - Response for create_network : {'network': {'id': '14f5bc71-fcaf-42e0-bedc-7fc848cdd361', 'name': 'ctest-vn-55423793', 'tenant_id': '22cc4a7148cb453ab8839c9f53d83a0f', 'project_id': '22cc4a7148cb453ab8839c9f53d83a0f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39119948', 'ctest-vn-55423793'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 18:27:51,502 - DEBUG - Response for create_subnet : {'subnet': {'id': '590de9c6-ddc8-4024-8083-6d21d3dc017f', 'name': '', 'tenant_id': '22cc4a7148cb453ab8839c9f53d83a0f', 'network_id': '14f5bc71-fcaf-42e0-bedc-7fc848cdd361', 'ip_version': 4, 'cidr': '160.25.185.64/26', 'allocation_pools': [{'start': '160.25.185.66', 'end': '160.25.185.126'}], 'gateway_ip': '160.25.185.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.25.185.66', 'tags': [], 'project_id': '22cc4a7148cb453ab8839c9f53d83a0f'}} 2024-11-08 18:27:51,525 - INFO - Created VN ctest-vn-55423793 2024-11-08 18:27:51,584 - DEBUG - VN ctest-vn-55423793 UUID is 14f5bc71-fcaf-42e0-bedc-7fc848cdd361 2024-11-08 18:27:51,733 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-39119948:ctest-vn-83424164, 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-39119948:ctest-vn-55423793, 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:27:52,077 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd2e611fc-c73f-49dc-bb54-1c00843fd0a0', 'name': 'ctest-vn-83424164', 'tenant_id': '22cc4a7148cb453ab8839c9f53d83a0f', 'project_id': '22cc4a7148cb453ab8839c9f53d83a0f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8049af4c-34eb-4dad-bda1-e805db5a56d5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39119948', 'ctest-vn-83424164'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39119948', 'ctest-policy-allow-all-76433334']], 'subnet_ipam': [{'subnet_cidr': '135.196.27.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-08 18:27:52,348 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '14f5bc71-fcaf-42e0-bedc-7fc848cdd361', 'name': 'ctest-vn-55423793', 'tenant_id': '22cc4a7148cb453ab8839c9f53d83a0f', 'project_id': '22cc4a7148cb453ab8839c9f53d83a0f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['590de9c6-ddc8-4024-8083-6d21d3dc017f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39119948', 'ctest-vn-55423793'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39119948', 'ctest-policy-allow-all-76433334']], 'subnet_ipam': [{'subnet_cidr': '160.25.185.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-08 18:27:52,508 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-11-08 18:27:52,855 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-11-08 18:27:52,891 - DEBUG - Requesting: http://10.0.0.31:8082/domain/5d60838b-5a12-4335-bc4c-cc3d05d3a45c 2024-11-08 18:27:52,909 - DEBUG - Requesting: http://10.0.0.31:8082/project/22cc4a71-48cb-453a-b883-9c9f53d83a0f 2024-11-08 18:27:53,000 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/d2e611fc-c73f-49dc-bb54-1c00843fd0a0 2024-11-08 18:27:53,018 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/d2e611fc-c73f-49dc-bb54-1c00843fd0a0 2024-11-08 18:27:53,034 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/b7761ba9-2f63-4578-845d-60d21e68692b 2024-11-08 18:27:53,043 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/b7761ba9-2f63-4578-845d-60d21e68692b 2024-11-08 18:27:53,053 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/20c00d9c-2e92-4934-9dcc-7cbc2b419a4e 2024-11-08 18:27:53,061 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-08 18:27:53,061 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/d2e611fc-c73f-49dc-bb54-1c00843fd0a0 2024-11-08 18:27:53,076 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/b7761ba9-2f63-4578-845d-60d21e68692b 2024-11-08 18:27:53,098 - INFO - Verified VN network id 8 for VN d2e611fc-c73f-49dc-bb54-1c00843fd0a0 2024-11-08 18:27:53,098 - INFO - Verifications in API Server for VN ctest-vn-83424164 passed 2024-11-08 18:27:53,098 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/d2e611fc-c73f-49dc-bb54-1c00843fd0a0 2024-11-08 18:27:53,112 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/b7761ba9-2f63-4578-845d-60d21e68692b 2024-11-08 18:27:53,121 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/b7761ba9-2f63-4578-845d-60d21e68692b 2024-11-08 18:27:53,130 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/20c00d9c-2e92-4934-9dcc-7cbc2b419a4e 2024-11-08 18:27:53,145 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39119948:ctest-vn-83424164', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39119948', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15196853769980561884', 'uuid-lslong': '13498444771680571552'}, 'enable': 'true', 'created': '2024-11-08T18:27:50', 'last-modified': '2024-11-08T18:27:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.100542'} 2024-11-08 18:27:53,153 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-08 18:27:53,154 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83424164 passed 2024-11-08 18:27:53,154 - DEBUG - ====Verifying policy data for ctest-vn-83424164 in API_Server ====== 2024-11-08 18:27:53,154 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-11-08 18:27:53,159 - DEBUG - Requesting: http://10.0.0.31:8082/domain/5d60838b-5a12-4335-bc4c-cc3d05d3a45c 2024-11-08 18:27:53,174 - DEBUG - Requesting: http://10.0.0.31:8082/project/22cc4a71-48cb-453a-b883-9c9f53d83a0f 2024-11-08 18:27:53,256 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/d2e611fc-c73f-49dc-bb54-1c00843fd0a0 2024-11-08 18:27:53,272 - DEBUG - ==>Verifying data for policy with id: b8c1f126-d672-4907-80fb-29eda72205d7, fqn: ['default-domain', 'ctest-TestBasicPolicy-39119948', 'ctest-policy-allow-all-76433334'] 2024-11-08 18:27:53,273 - INFO - VN ctest-vn-83424164 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-08 18:27:53,273 - DEBUG - Verifying the vn in opserver 2024-11-08 18:27:53,273 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39119948:ctest-vn-83424164 virtual network link through opserver 10.0.0.31 2024-11-08 18:27:53,273 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-11-08 18:27:53,617 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-11-08 18:27:53,681 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39119948:ctest-vn-83424164', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39119948:ctest-vn-83424164?flat'} 2024-11-08 18:27:53,681 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39119948:ctest-vn-83424164 is found in opserver 2024-11-08 18:27:53,693 - DEBUG - Do not have enough data to verify VN in agent 2024-11-08 18:27:53,699 - DEBUG - VRF ids for VN ctest-vn-83424164: {} 2024-11-08 18:27:53,699 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-11-08 18:27:53,705 - DEBUG - Requesting: http://10.0.0.31:8082/domain/5d60838b-5a12-4335-bc4c-cc3d05d3a45c 2024-11-08 18:27:53,719 - DEBUG - Requesting: http://10.0.0.31:8082/project/22cc4a71-48cb-453a-b883-9c9f53d83a0f 2024-11-08 18:27:53,805 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/14f5bc71-fcaf-42e0-bedc-7fc848cdd361 2024-11-08 18:27:53,824 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/14f5bc71-fcaf-42e0-bedc-7fc848cdd361 2024-11-08 18:27:53,839 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c306efe2-789d-4491-9fa0-6d1cf9a11d58 2024-11-08 18:27:53,849 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c306efe2-789d-4491-9fa0-6d1cf9a11d58 2024-11-08 18:27:53,858 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/299c01de-34a6-4cab-bce4-13b8dd7dd239 2024-11-08 18:27:53,866 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-08 18:27:53,866 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/14f5bc71-fcaf-42e0-bedc-7fc848cdd361 2024-11-08 18:27:53,882 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c306efe2-789d-4491-9fa0-6d1cf9a11d58 2024-11-08 18:27:53,906 - INFO - Verified VN network id 9 for VN 14f5bc71-fcaf-42e0-bedc-7fc848cdd361 2024-11-08 18:27:53,906 - INFO - Verifications in API Server for VN ctest-vn-55423793 passed 2024-11-08 18:27:53,907 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/14f5bc71-fcaf-42e0-bedc-7fc848cdd361 2024-11-08 18:27:53,923 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c306efe2-789d-4491-9fa0-6d1cf9a11d58 2024-11-08 18:27:53,932 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c306efe2-789d-4491-9fa0-6d1cf9a11d58 2024-11-08 18:27:53,940 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/299c01de-34a6-4cab-bce4-13b8dd7dd239 2024-11-08 18:27:53,954 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39119948:ctest-vn-55423793', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39119948', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1510320447809340128', 'uuid-lslong': '13753007860274287457'}, 'enable': 'true', 'created': '2024-11-08T18:27:51', 'last-modified': '2024-11-08T18:27:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.676788'} 2024-11-08 18:27:53,961 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-08 18:27:53,961 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55423793 passed 2024-11-08 18:27:53,961 - DEBUG - ====Verifying policy data for ctest-vn-55423793 in API_Server ====== 2024-11-08 18:27:53,961 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-11-08 18:27:53,967 - DEBUG - Requesting: http://10.0.0.31:8082/domain/5d60838b-5a12-4335-bc4c-cc3d05d3a45c 2024-11-08 18:27:53,982 - DEBUG - Requesting: http://10.0.0.31:8082/project/22cc4a71-48cb-453a-b883-9c9f53d83a0f 2024-11-08 18:27:54,073 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/14f5bc71-fcaf-42e0-bedc-7fc848cdd361 2024-11-08 18:27:54,089 - DEBUG - ==>Verifying data for policy with id: b8c1f126-d672-4907-80fb-29eda72205d7, fqn: ['default-domain', 'ctest-TestBasicPolicy-39119948', 'ctest-policy-allow-all-76433334'] 2024-11-08 18:27:54,089 - INFO - VN ctest-vn-55423793 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-08 18:27:54,089 - DEBUG - Verifying the vn in opserver 2024-11-08 18:27:54,089 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39119948:ctest-vn-55423793 virtual network link through opserver 10.0.0.31 2024-11-08 18:27:54,089 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-11-08 18:27:54,102 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39119948:ctest-vn-55423793', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39119948:ctest-vn-55423793?flat'} 2024-11-08 18:27:54,102 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39119948:ctest-vn-55423793 is found in opserver 2024-11-08 18:27:54,117 - DEBUG - Do not have enough data to verify VN in agent 2024-11-08 18:27:54,123 - DEBUG - VRF ids for VN ctest-vn-55423793: {} 2024-11-08 18:27:54,184 - DEBUG - Services list from nova: [, , ] 2024-11-08 18:27:55,330 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2239-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2239-1) 2024-11-08 18:27:56,838 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2239-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2239-1) 2024-11-08 18:27:56,838 - INFO - Waiting for VM ctest-TestBasicPolicy-39119948-92485424 to be up.. 2024-11-08 18:27:56,926 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-08 18:28:02,014 - DEBUG - VM is in ACTIVE state now 2024-11-08 18:28:02,014 - INFO - VM name : ctest-TestBasicPolicy-39119948-92485424 2024-11-08 18:28:02,103 - DEBUG - VM ctest-TestBasicPolicy-39119948-92485424 ID is 3a1d6b2e-238a-418b-b055-08430b27e2ff 2024-11-08 18:28:02,124 - DEBUG - VM ctest-TestBasicPolicy-39119948-92485424 launched on Node cn-jenkins-deploy-platform-ansible-os-2239-1 2024-11-08 18:28:02,209 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/3a1d6b2e-238a-418b-b055-08430b27e2ff 2024-11-08 18:28:02,220 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/4e424742-2ebf-444d-8bc4-51aa1928332b 2024-11-08 18:28:05,514 - 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-11-08 18:28:05,515 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-39119948-92485424 failed! 2024-11-08 18:28:05,576 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-39119948:ctest-vn-83424164 is 135.196.27.129 and allocation pool is NOT set 2024-11-08 18:28:07,638 - 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.83 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.53 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 = 1.530/5.680/9.831/4.150 ms') 2024-11-08 18:28:07,639 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-39119948-92485424 passed 2024-11-08 18:28:07,796 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 18:28:07,797 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-39119948-92485424, IP 135.196.27.131, Port 22 2024-11-08 18:28:07,862 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-11-08 18:28:07,951 - DEBUG - VM ctest-TestBasicPolicy-39119948-92485424 is NOT ready for SSH connections, VM status: ACTIVE 2024-11-08 18:28:12,952 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 18:28:12,952 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-39119948-92485424, IP 135.196.27.131, Port 22 2024-11-08 18:28:13,108 - DEBUG - VM ctest-TestBasicPolicy-39119948-92485424 is ready for SSH connections 2024-11-08 18:28:13,108 - INFO - Waiting for VM ctest-TestBasicPolicy-39119948-90918586 to be up.. 2024-11-08 18:28:13,201 - DEBUG - VM is in ACTIVE state now 2024-11-08 18:28:13,201 - INFO - VM name : ctest-TestBasicPolicy-39119948-90918586 2024-11-08 18:28:13,318 - DEBUG - VM ctest-TestBasicPolicy-39119948-90918586 ID is 3f2cc7f2-1e40-48b6-8ee7-26fe37772b49 2024-11-08 18:28:13,318 - DEBUG - VM ctest-TestBasicPolicy-39119948-90918586 launched on Node cn-jenkins-deploy-platform-ansible-os-2239-1 2024-11-08 18:28:13,400 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/3f2cc7f2-1e40-48b6-8ee7-26fe37772b49 2024-11-08 18:28:13,411 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/28566536-c56c-481a-9455-86016f3f8f99 2024-11-08 18:28:14,720 - 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.57 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.364 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.364/1.968/3.573/1.604 ms') 2024-11-08 18:28:14,721 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-39119948-90918586 passed 2024-11-08 18:28:14,876 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 18:28:14,876 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-39119948-90918586, IP 160.25.185.67, Port 22 2024-11-08 18:28:15,036 - DEBUG - VM ctest-TestBasicPolicy-39119948-90918586 is ready for SSH connections 2024-11-08 18:28:15,036 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 18:28:15,036 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 160.25.185.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-11-08 18:28:15,036 - DEBUG - ping -s 56 -c 3 -W 1 160.25.185.67 2024-11-08 18:28:19,127 - DEBUG - PING 160.25.185.67 (160.25.185.67): 56 data bytes 64 bytes from 160.25.185.67: seq=0 ttl=63 time=3.657 ms 64 bytes from 160.25.185.67: seq=1 ttl=63 time=0.940 ms 64 bytes from 160.25.185.67: seq=2 ttl=63 time=0.834 ms --- 160.25.185.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.834/1.810/3.657 ms 2024-11-08 18:28:19,127 - INFO - Ping to IP 160.25.185.67 from VM ctest-TestBasicPolicy-39119948-92485424 passed 2024-11-08 18:28:19,324 - DEBUG - Policy Update Response {"network-policy": {"uuid": "b8c1f126-d672-4907-80fb-29eda72205d7", "href": "http://10.0.0.31:8082/network-policy/b8c1f126-d672-4907-80fb-29eda72205d7"}} 2024-11-08 18:28:19,325 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 18:28:19,325 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 160.25.185.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-11-08 18:28:19,325 - DEBUG - ping -s 56 -c 3 -W 1 160.25.185.67 2024-11-08 18:28:22,569 - DEBUG - PING 160.25.185.67 (160.25.185.67): 56 data bytes --- 160.25.185.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-11-08 18:28:22,569 - WARNING - Ping to IP 160.25.185.67 from VM ctest-TestBasicPolicy-39119948-92485424 failed 2024-11-08 18:28:22,569 - INFO - Deleting VM ctest-TestBasicPolicy-39119948-90918586 2024-11-08 18:28:22,636 - INFO - Deleting VM ctest-TestBasicPolicy-39119948-92485424 2024-11-08 18:28:23,135 - INFO - Deleted policy ctest-policy-allow-all-76433334 2024-11-08 18:28:23,135 - INFO - Deleting VN ctest-vn-55423793 2024-11-08 18:28:23,186 - DEBUG - VN 14f5bc71-fcaf-42e0-bedc-7fc848cdd361 still in use: Unable to complete operation on network 14f5bc71-fcaf-42e0-bedc-7fc848cdd361. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-dc375d7e-a5a2-4276-9b57-91c172598675'] 2024-11-08 18:28:23,186 - WARNING - Deleting VN ctest-vn-55423793 failed..Will retry 2024-11-08 18:28:25,307 - DEBUG - Response for deleting network () 2024-11-08 18:28:25,307 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c306efe2-789d-4491-9fa0-6d1cf9a11d58 2024-11-08 18:28:25,320 - DEBUG - Response Code: 404 2024-11-08 18:28:25,321 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-11-08 18:28:25,327 - DEBUG - Requesting: http://10.0.0.31:8082/domain/5d60838b-5a12-4335-bc4c-cc3d05d3a45c 2024-11-08 18:28:25,390 - DEBUG - Requesting: http://10.0.0.31:8082/project/22cc4a71-48cb-453a-b883-9c9f53d83a0f 2024-11-08 18:28:25,469 - INFO - Validated that VN ctest-vn-55423793 is not found in API Server 2024-11-08 18:28:25,480 - DEBUG - VN ctest-vn-55423793 is not present in Agent 10.0.0.31 2024-11-08 18:28:25,481 - INFO - Validated that VN ctest-vn-55423793 is not in any agent 2024-11-08 18:28:25,498 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-55423793 info 2024-11-08 18:28:25,498 - INFO - Deleting VN ctest-vn-83424164 2024-11-08 18:28:25,662 - DEBUG - Response for deleting network () 2024-11-08 18:28:25,662 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/b7761ba9-2f63-4578-845d-60d21e68692b 2024-11-08 18:28:25,674 - DEBUG - Response Code: 404 2024-11-08 18:28:25,674 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-11-08 18:28:25,686 - DEBUG - Requesting: http://10.0.0.31:8082/domain/5d60838b-5a12-4335-bc4c-cc3d05d3a45c 2024-11-08 18:28:25,703 - DEBUG - Requesting: http://10.0.0.31:8082/project/22cc4a71-48cb-453a-b883-9c9f53d83a0f 2024-11-08 18:28:25,804 - INFO - Validated that VN ctest-vn-83424164 is not found in API Server 2024-11-08 18:28:25,815 - DEBUG - VN ctest-vn-83424164 is not present in Agent 10.0.0.31 2024-11-08 18:28:25,815 - INFO - Validated that VN ctest-vn-83424164 is not in any agent 2024-11-08 18:28:25,833 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-83424164 info 2024-11-08 18:28:26,094 - DEBUG - No XMPP flaps were noticed during the test 2024-11-08 18:28:26,094 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37] 2024-11-08 18:28:26,094 - INFO - -------------------------------------------------------------------------------- 2024-11-08 18:28:26,922 - INFO - Deleted project: ctest-TestBasicPolicy-39119948, ID : 22cc4a71-48cb-453a-b883-9c9f53d83a0f