2025-03-27 14:34:59,214 - INFO - Domain Default found not creating 2025-03-27 14:34:59,367 - INFO - Project ctest-TestBasicPolicy-13974659 not found, creating it 2025-03-27 14:34:59,822 - INFO - Created Project:ctest-TestBasicPolicy-13974659, ID : 0ffc407f-e21a-4e97-964c-75c300a8b527 2025-03-27 14:35:01,281 - INFO - ================================================================================ 2025-03-27 14:35:01,281 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-27 14:35:01,281 - 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 2025-03-27 14:35:01,538 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.7': '0'}} with 2025-03-27 14:35:01,538 - INFO - Initial checks done. Running the testcase now 2025-03-27 14:35:01,538 - INFO - 2025-03-27 14:35:02,076 - DEBUG - Response for create_network : {'network': {'id': 'c429a46f-940c-41b9-826d-6ca4797a1c3f', 'name': 'ctest-vn-57529662', 'tenant_id': '0ffc407fe21a4e97964c75c300a8b527', 'project_id': '0ffc407fe21a4e97964c75c300a8b527', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13974659', 'ctest-vn-57529662'], 'port_security_enabled': True, 'description': ''}} 2025-03-27 14:35:02,304 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e65edb49-c013-4e77-9a2b-d1788e092995', 'name': '', 'tenant_id': '0ffc407fe21a4e97964c75c300a8b527', 'network_id': 'c429a46f-940c-41b9-826d-6ca4797a1c3f', 'ip_version': 4, 'cidr': '108.63.141.64/26', 'allocation_pools': [{'start': '108.63.141.66', 'end': '108.63.141.126'}], 'gateway_ip': '108.63.141.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '108.63.141.66', 'tags': [], 'project_id': '0ffc407fe21a4e97964c75c300a8b527'}} 2025-03-27 14:35:02,324 - INFO - Created VN ctest-vn-57529662 2025-03-27 14:35:02,376 - DEBUG - VN ctest-vn-57529662 UUID is c429a46f-940c-41b9-826d-6ca4797a1c3f 2025-03-27 14:35:02,680 - DEBUG - Response for create_network : {'network': {'id': '6dc698a1-5e12-437f-8b9d-7871fb479fb7', 'name': 'ctest-vn-41855892', 'tenant_id': '0ffc407fe21a4e97964c75c300a8b527', 'project_id': '0ffc407fe21a4e97964c75c300a8b527', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13974659', 'ctest-vn-41855892'], 'port_security_enabled': True, 'description': ''}} 2025-03-27 14:35:02,844 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a88aa531-5306-4757-a068-9687a3cc9dde', 'name': '', 'tenant_id': '0ffc407fe21a4e97964c75c300a8b527', 'network_id': '6dc698a1-5e12-437f-8b9d-7871fb479fb7', 'ip_version': 4, 'cidr': '196.152.215.128/26', 'allocation_pools': [{'start': '196.152.215.130', 'end': '196.152.215.190'}], 'gateway_ip': '196.152.215.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.152.215.130', 'tags': [], 'project_id': '0ffc407fe21a4e97964c75c300a8b527'}} 2025-03-27 14:35:02,863 - INFO - Created VN ctest-vn-41855892 2025-03-27 14:35:02,916 - DEBUG - VN ctest-vn-41855892 UUID is 6dc698a1-5e12-437f-8b9d-7871fb479fb7 2025-03-27 14:35:03,029 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-13974659:ctest-vn-57529662, 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-13974659:ctest-vn-41855892, 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] 2025-03-27 14:35:03,331 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c429a46f-940c-41b9-826d-6ca4797a1c3f', 'name': 'ctest-vn-57529662', 'tenant_id': '0ffc407fe21a4e97964c75c300a8b527', 'project_id': '0ffc407fe21a4e97964c75c300a8b527', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e65edb49-c013-4e77-9a2b-d1788e092995'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13974659', 'ctest-vn-57529662'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13974659', 'ctest-policy-allow-all-09004998']], 'subnet_ipam': [{'subnet_cidr': '108.63.141.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-27 14:35:03,582 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6dc698a1-5e12-437f-8b9d-7871fb479fb7', 'name': 'ctest-vn-41855892', 'tenant_id': '0ffc407fe21a4e97964c75c300a8b527', 'project_id': '0ffc407fe21a4e97964c75c300a8b527', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a88aa531-5306-4757-a068-9687a3cc9dde'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13974659', 'ctest-vn-41855892'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13974659', 'ctest-policy-allow-all-09004998']], 'subnet_ipam': [{'subnet_cidr': '196.152.215.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-27 14:35:03,740 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-03-27 14:35:04,041 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-03-27 14:35:04,073 - DEBUG - Requesting: http://10.0.0.33:8082/domain/df54f500-1746-4acd-974e-3480aa4b7bc0 2025-03-27 14:35:04,087 - DEBUG - Requesting: http://10.0.0.33:8082/project/0ffc407f-e21a-4e97-964c-75c300a8b527 2025-03-27 14:35:04,159 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c429a46f-940c-41b9-826d-6ca4797a1c3f 2025-03-27 14:35:04,170 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c429a46f-940c-41b9-826d-6ca4797a1c3f 2025-03-27 14:35:04,179 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/99c0c83a-959b-4cc8-aecb-7d72ff597848 2025-03-27 14:35:04,186 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/99c0c83a-959b-4cc8-aecb-7d72ff597848 2025-03-27 14:35:04,193 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/d1c8f862-6b19-4ba3-94cd-0f9897afbdc9 2025-03-27 14:35:04,199 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-27 14:35:04,199 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c429a46f-940c-41b9-826d-6ca4797a1c3f 2025-03-27 14:35:04,208 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/99c0c83a-959b-4cc8-aecb-7d72ff597848 2025-03-27 14:35:04,222 - INFO - Verified VN network id 8 for VN c429a46f-940c-41b9-826d-6ca4797a1c3f 2025-03-27 14:35:04,222 - INFO - Verifications in API Server for VN ctest-vn-57529662 passed 2025-03-27 14:35:04,222 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c429a46f-940c-41b9-826d-6ca4797a1c3f 2025-03-27 14:35:04,233 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/99c0c83a-959b-4cc8-aecb-7d72ff597848 2025-03-27 14:35:04,241 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/99c0c83a-959b-4cc8-aecb-7d72ff597848 2025-03-27 14:35:04,248 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/d1c8f862-6b19-4ba3-94cd-0f9897afbdc9 2025-03-27 14:35:04,261 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13974659:ctest-vn-57529662', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13974659', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14135009704611168697', 'uuid-lslong': '9398287451060575295'}, 'enable': 'true', 'created': '2025-03-27T14:35:02', 'last-modified': '2025-03-27T14:35:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.955224'} 2025-03-27 14:35:04,267 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-27 14:35:04,267 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57529662 passed 2025-03-27 14:35:04,268 - DEBUG - ====Verifying policy data for ctest-vn-57529662 in API_Server ====== 2025-03-27 14:35:04,268 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-03-27 14:35:04,274 - DEBUG - Requesting: http://10.0.0.33:8082/domain/df54f500-1746-4acd-974e-3480aa4b7bc0 2025-03-27 14:35:04,286 - DEBUG - Requesting: http://10.0.0.33:8082/project/0ffc407f-e21a-4e97-964c-75c300a8b527 2025-03-27 14:35:04,364 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c429a46f-940c-41b9-826d-6ca4797a1c3f 2025-03-27 14:35:04,374 - DEBUG - ==>Verifying data for policy with id: 8f298be3-fbca-44b6-87b3-3c908d79bd00, fqn: ['default-domain', 'ctest-TestBasicPolicy-13974659', 'ctest-policy-allow-all-09004998'] 2025-03-27 14:35:04,374 - INFO - VN ctest-vn-57529662 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-27 14:35:04,374 - DEBUG - Verifying the vn in opserver 2025-03-27 14:35:04,374 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13974659:ctest-vn-57529662 virtual network link through opserver 10.0.0.33 2025-03-27 14:35:04,374 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-03-27 14:35:04,672 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-03-27 14:35:04,735 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13974659:ctest-vn-57529662', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13974659:ctest-vn-57529662?flat'} 2025-03-27 14:35:04,735 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13974659:ctest-vn-57529662 is found in opserver 2025-03-27 14:35:04,745 - DEBUG - Do not have enough data to verify VN in agent 2025-03-27 14:35:04,751 - DEBUG - VRF ids for VN ctest-vn-57529662: {} 2025-03-27 14:35:04,751 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-03-27 14:35:04,757 - DEBUG - Requesting: http://10.0.0.33:8082/domain/df54f500-1746-4acd-974e-3480aa4b7bc0 2025-03-27 14:35:04,769 - DEBUG - Requesting: http://10.0.0.33:8082/project/0ffc407f-e21a-4e97-964c-75c300a8b527 2025-03-27 14:35:04,841 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6dc698a1-5e12-437f-8b9d-7871fb479fb7 2025-03-27 14:35:04,853 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6dc698a1-5e12-437f-8b9d-7871fb479fb7 2025-03-27 14:35:04,863 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9ea8eaed-670b-47af-ade2-f618f977e76f 2025-03-27 14:35:04,870 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9ea8eaed-670b-47af-ade2-f618f977e76f 2025-03-27 14:35:04,877 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/3b53bf60-31e5-45b0-9d98-b26e92fa1ecd 2025-03-27 14:35:04,884 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-27 14:35:04,884 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6dc698a1-5e12-437f-8b9d-7871fb479fb7 2025-03-27 14:35:04,894 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9ea8eaed-670b-47af-ade2-f618f977e76f 2025-03-27 14:35:04,908 - INFO - Verified VN network id 9 for VN 6dc698a1-5e12-437f-8b9d-7871fb479fb7 2025-03-27 14:35:04,908 - INFO - Verifications in API Server for VN ctest-vn-41855892 passed 2025-03-27 14:35:04,908 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6dc698a1-5e12-437f-8b9d-7871fb479fb7 2025-03-27 14:35:04,918 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9ea8eaed-670b-47af-ade2-f618f977e76f 2025-03-27 14:35:04,925 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9ea8eaed-670b-47af-ade2-f618f977e76f 2025-03-27 14:35:04,932 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/3b53bf60-31e5-45b0-9d98-b26e92fa1ecd 2025-03-27 14:35:04,944 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13974659:ctest-vn-41855892', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13974659', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7910177614358266751', 'uuid-lslong': '10060329573557968823'}, 'enable': 'true', 'created': '2025-03-27T14:35:02', 'last-modified': '2025-03-27T14:35:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.384791'} 2025-03-27 14:35:04,950 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-27 14:35:04,950 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41855892 passed 2025-03-27 14:35:04,951 - DEBUG - ====Verifying policy data for ctest-vn-41855892 in API_Server ====== 2025-03-27 14:35:04,951 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-03-27 14:35:04,956 - DEBUG - Requesting: http://10.0.0.33:8082/domain/df54f500-1746-4acd-974e-3480aa4b7bc0 2025-03-27 14:35:04,970 - DEBUG - Requesting: http://10.0.0.33:8082/project/0ffc407f-e21a-4e97-964c-75c300a8b527 2025-03-27 14:35:05,049 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6dc698a1-5e12-437f-8b9d-7871fb479fb7 2025-03-27 14:35:05,061 - DEBUG - ==>Verifying data for policy with id: 8f298be3-fbca-44b6-87b3-3c908d79bd00, fqn: ['default-domain', 'ctest-TestBasicPolicy-13974659', 'ctest-policy-allow-all-09004998'] 2025-03-27 14:35:05,061 - INFO - VN ctest-vn-41855892 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-27 14:35:05,061 - DEBUG - Verifying the vn in opserver 2025-03-27 14:35:05,062 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13974659:ctest-vn-41855892 virtual network link through opserver 10.0.0.33 2025-03-27 14:35:05,062 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-03-27 14:35:05,074 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13974659:ctest-vn-41855892', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13974659:ctest-vn-41855892?flat'} 2025-03-27 14:35:05,074 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13974659:ctest-vn-41855892 is found in opserver 2025-03-27 14:35:05,086 - DEBUG - Do not have enough data to verify VN in agent 2025-03-27 14:35:05,092 - DEBUG - VRF ids for VN ctest-vn-41855892: {} 2025-03-27 14:35:05,149 - DEBUG - Services list from nova: [, , ] 2025-03-27 14:35:06,179 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2973-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2973-1) 2025-03-27 14:35:07,414 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2973-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2973-1) 2025-03-27 14:35:07,415 - INFO - Waiting for VM ctest-TestBasicPolicy-13974659-95552205 to be up.. 2025-03-27 14:35:07,537 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-27 14:35:12,618 - DEBUG - VM is in ACTIVE state now 2025-03-27 14:35:12,618 - INFO - VM name : ctest-TestBasicPolicy-13974659-95552205 2025-03-27 14:35:12,700 - DEBUG - VM ctest-TestBasicPolicy-13974659-95552205 ID is 5eab65f2-c357-4df6-af44-0be8162fd62b 2025-03-27 14:35:12,720 - DEBUG - VM ctest-TestBasicPolicy-13974659-95552205 launched on Node cn-jenkins-deploy-platform-ansible-os-2973-1 2025-03-27 14:35:12,806 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/5eab65f2-c357-4df6-af44-0be8162fd62b 2025-03-27 14:35:12,816 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/6679ac9a-8a5e-44e8-bcf1-dc124da90a6a 2025-03-27 14:35:16,085 - 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 1028ms') 2025-03-27 14:35:16,085 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-13974659-95552205 failed! 2025-03-27 14:35:16,144 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-13974659:ctest-vn-57529662 is 108.63.141.65 and allocation pool is NOT set 2025-03-27 14:35:18,213 - 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=11.7 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.45 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.452/6.558/11.664/5.106 ms') 2025-03-27 14:35:18,213 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-13974659-95552205 passed 2025-03-27 14:35:18,368 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 14:35:18,368 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-13974659-95552205, IP 108.63.141.67, Port 22 2025-03-27 14:35:18,434 - 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': ''} 2025-03-27 14:35:18,537 - DEBUG - VM ctest-TestBasicPolicy-13974659-95552205 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-27 14:35:23,538 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 14:35:23,538 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-13974659-95552205, IP 108.63.141.67, Port 22 2025-03-27 14:35:23,695 - DEBUG - VM ctest-TestBasicPolicy-13974659-95552205 is ready for SSH connections 2025-03-27 14:35:23,695 - INFO - Waiting for VM ctest-TestBasicPolicy-13974659-32242761 to be up.. 2025-03-27 14:35:23,773 - DEBUG - VM is in ACTIVE state now 2025-03-27 14:35:23,773 - INFO - VM name : ctest-TestBasicPolicy-13974659-32242761 2025-03-27 14:35:23,852 - DEBUG - VM ctest-TestBasicPolicy-13974659-32242761 ID is 37634f18-d80a-4486-bc56-59e9f7b8fab9 2025-03-27 14:35:23,852 - DEBUG - VM ctest-TestBasicPolicy-13974659-32242761 launched on Node cn-jenkins-deploy-platform-ansible-os-2973-1 2025-03-27 14:35:23,929 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/37634f18-d80a-4486-bc56-59e9f7b8fab9 2025-03-27 14:35:23,938 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/252ec1dd-9c5d-4f26-a5de-0f4159a486d2 2025-03-27 14:35:25,177 - 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.88 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.429 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.429/2.153/3.877/1.724 ms') 2025-03-27 14:35:25,177 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-13974659-32242761 passed 2025-03-27 14:35:25,340 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 14:35:25,340 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-13974659-32242761, IP 196.152.215.131, Port 22 2025-03-27 14:35:25,505 - DEBUG - VM ctest-TestBasicPolicy-13974659-32242761 is ready for SSH connections 2025-03-27 14:35:25,506 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 14:35:25,506 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 196.152.215.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-03-27 14:35:25,506 - DEBUG - ping -s 56 -c 3 -W 1 196.152.215.131 2025-03-27 14:35:29,197 - DEBUG - PING 196.152.215.131 (196.152.215.131): 56 data bytes 64 bytes from 196.152.215.131: seq=0 ttl=63 time=3.540 ms 64 bytes from 196.152.215.131: seq=1 ttl=63 time=0.969 ms 64 bytes from 196.152.215.131: seq=2 ttl=63 time=0.950 ms --- 196.152.215.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.950/1.819/3.540 ms 2025-03-27 14:35:29,198 - INFO - Ping to IP 196.152.215.131 from VM ctest-TestBasicPolicy-13974659-95552205 passed 2025-03-27 14:35:29,383 - DEBUG - Policy Update Response {"network-policy": {"uuid": "8f298be3-fbca-44b6-87b3-3c908d79bd00", "href": "http://10.0.0.33:8082/network-policy/8f298be3-fbca-44b6-87b3-3c908d79bd00"}} 2025-03-27 14:35:29,384 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 14:35:29,384 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 196.152.215.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-03-27 14:35:29,384 - DEBUG - ping -s 56 -c 3 -W 1 196.152.215.131 2025-03-27 14:35:32,597 - DEBUG - PING 196.152.215.131 (196.152.215.131): 56 data bytes 64 bytes from 196.152.215.131: seq=0 ttl=63 time=1.766 ms --- 196.152.215.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.766/1.766/1.766 ms 2025-03-27 14:35:32,597 - WARNING - Ping to IP 196.152.215.131 from VM ctest-TestBasicPolicy-13974659-95552205 failed 2025-03-27 14:35:32,597 - INFO - Deleting VM ctest-TestBasicPolicy-13974659-32242761 2025-03-27 14:35:32,664 - INFO - Deleting VM ctest-TestBasicPolicy-13974659-95552205 2025-03-27 14:35:33,075 - INFO - Deleted policy ctest-policy-allow-all-09004998 2025-03-27 14:35:33,075 - INFO - Deleting VN ctest-vn-41855892 2025-03-27 14:35:33,120 - DEBUG - VN 6dc698a1-5e12-437f-8b9d-7871fb479fb7 still in use: Unable to complete operation on network 6dc698a1-5e12-437f-8b9d-7871fb479fb7. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2e3719fa-7815-4d64-8125-7f782ce7b9aa'] 2025-03-27 14:35:33,120 - WARNING - Deleting VN ctest-vn-41855892 failed..Will retry 2025-03-27 14:35:35,382 - DEBUG - Response for deleting network () 2025-03-27 14:35:35,382 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9ea8eaed-670b-47af-ade2-f618f977e76f 2025-03-27 14:35:35,388 - DEBUG - Response Code: 404 2025-03-27 14:35:35,388 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-03-27 14:35:35,395 - DEBUG - Requesting: http://10.0.0.33:8082/domain/df54f500-1746-4acd-974e-3480aa4b7bc0 2025-03-27 14:35:35,478 - DEBUG - Requesting: http://10.0.0.33:8082/project/0ffc407f-e21a-4e97-964c-75c300a8b527 2025-03-27 14:35:35,556 - INFO - Validated that VN ctest-vn-41855892 is not found in API Server 2025-03-27 14:35:35,570 - DEBUG - VN ctest-vn-41855892 is not present in Agent 10.0.0.33 2025-03-27 14:35:35,570 - INFO - Validated that VN ctest-vn-41855892 is not in any agent 2025-03-27 14:35:35,588 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-41855892 info 2025-03-27 14:35:35,589 - INFO - Deleting VN ctest-vn-57529662 2025-03-27 14:35:35,706 - DEBUG - Response for deleting network () 2025-03-27 14:35:35,706 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/99c0c83a-959b-4cc8-aecb-7d72ff597848 2025-03-27 14:35:35,714 - DEBUG - Response Code: 404 2025-03-27 14:35:35,714 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-03-27 14:35:35,723 - DEBUG - Requesting: http://10.0.0.33:8082/domain/df54f500-1746-4acd-974e-3480aa4b7bc0 2025-03-27 14:35:35,784 - DEBUG - Requesting: http://10.0.0.33:8082/project/0ffc407f-e21a-4e97-964c-75c300a8b527 2025-03-27 14:35:35,859 - INFO - Validated that VN ctest-vn-57529662 is not found in API Server 2025-03-27 14:35:35,871 - DEBUG - VN ctest-vn-57529662 is not present in Agent 10.0.0.33 2025-03-27 14:35:35,871 - INFO - Validated that VN ctest-vn-57529662 is not in any agent 2025-03-27 14:35:35,889 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-57529662 info 2025-03-27 14:35:36,145 - DEBUG - No XMPP flaps were noticed during the test
2025-03-27 14:35:36,145 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-03-27 14:35:36,145 - INFO - -------------------------------------------------------------------------------- 2025-03-27 14:35:36,869 - INFO - Deleted project: ctest-TestBasicPolicy-13974659, ID : 0ffc407f-e21a-4e97-964c-75c300a8b527