2025-04-09 20:01:19,427 - INFO - Domain Default found not creating 2025-04-09 20:01:19,569 - INFO - Project ctest-TestBasicPolicy-80344815 not found, creating it 2025-04-09 20:01:20,048 - INFO - Created Project:ctest-TestBasicPolicy-80344815, ID : 232ec7f6-5e78-4e2e-b8ec-9288fccbd144 2025-04-09 20:01:21,436 - INFO - ================================================================================ 2025-04-09 20:01:21,436 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-09 20:01:21,436 - 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-04-09 20:01:21,692 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with 2025-04-09 20:01:21,692 - INFO - Initial checks done. Running the testcase now 2025-04-09 20:01:21,692 - INFO - 2025-04-09 20:01:22,245 - DEBUG - Response for create_network : {'network': {'id': 'a543a782-a4f2-474e-8bd8-3f817206f46c', 'name': 'ctest-vn-76036225', 'tenant_id': '232ec7f65e784e2eb8ec9288fccbd144', 'project_id': '232ec7f65e784e2eb8ec9288fccbd144', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80344815', 'ctest-vn-76036225'], 'port_security_enabled': True, 'description': ''}} 2025-04-09 20:01:22,439 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a47a4747-16c2-44e3-9c1c-f258aac0249c', 'name': '', 'tenant_id': '232ec7f65e784e2eb8ec9288fccbd144', 'network_id': 'a543a782-a4f2-474e-8bd8-3f817206f46c', 'ip_version': 4, 'cidr': '126.102.141.192/26', 'allocation_pools': [{'start': '126.102.141.194', 'end': '126.102.141.254'}], 'gateway_ip': '126.102.141.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.102.141.194', 'tags': [], 'project_id': '232ec7f65e784e2eb8ec9288fccbd144'}} 2025-04-09 20:01:22,457 - INFO - Created VN ctest-vn-76036225 2025-04-09 20:01:22,510 - DEBUG - VN ctest-vn-76036225 UUID is a543a782-a4f2-474e-8bd8-3f817206f46c 2025-04-09 20:01:22,794 - DEBUG - Response for create_network : {'network': {'id': 'c0afbb7d-3e42-4f26-8f01-3dccd9c50260', 'name': 'ctest-vn-15266408', 'tenant_id': '232ec7f65e784e2eb8ec9288fccbd144', 'project_id': '232ec7f65e784e2eb8ec9288fccbd144', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80344815', 'ctest-vn-15266408'], 'port_security_enabled': True, 'description': ''}} 2025-04-09 20:01:23,008 - DEBUG - Response for create_subnet : {'subnet': {'id': '5aab82d5-e85d-4a70-a477-872ce5d9f01d', 'name': '', 'tenant_id': '232ec7f65e784e2eb8ec9288fccbd144', 'network_id': 'c0afbb7d-3e42-4f26-8f01-3dccd9c50260', 'ip_version': 4, 'cidr': '5.187.5.128/26', 'allocation_pools': [{'start': '5.187.5.130', 'end': '5.187.5.190'}], 'gateway_ip': '5.187.5.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.187.5.130', 'tags': [], 'project_id': '232ec7f65e784e2eb8ec9288fccbd144'}} 2025-04-09 20:01:23,025 - INFO - Created VN ctest-vn-15266408 2025-04-09 20:01:23,078 - DEBUG - VN ctest-vn-15266408 UUID is c0afbb7d-3e42-4f26-8f01-3dccd9c50260 2025-04-09 20:01:23,199 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-80344815:ctest-vn-76036225, 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-80344815:ctest-vn-15266408, 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-04-09 20:01:23,501 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a543a782-a4f2-474e-8bd8-3f817206f46c', 'name': 'ctest-vn-76036225', 'tenant_id': '232ec7f65e784e2eb8ec9288fccbd144', 'project_id': '232ec7f65e784e2eb8ec9288fccbd144', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a47a4747-16c2-44e3-9c1c-f258aac0249c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80344815', 'ctest-vn-76036225'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80344815', 'ctest-policy-allow-all-32709927']], 'subnet_ipam': [{'subnet_cidr': '126.102.141.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-09 20:01:23,747 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c0afbb7d-3e42-4f26-8f01-3dccd9c50260', 'name': 'ctest-vn-15266408', 'tenant_id': '232ec7f65e784e2eb8ec9288fccbd144', 'project_id': '232ec7f65e784e2eb8ec9288fccbd144', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5aab82d5-e85d-4a70-a477-872ce5d9f01d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80344815', 'ctest-vn-15266408'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80344815', 'ctest-policy-allow-all-32709927']], 'subnet_ipam': [{'subnet_cidr': '5.187.5.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-09 20:01:23,906 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-04-09 20:01:24,204 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-04-09 20:01:24,234 - DEBUG - Requesting: http://10.0.0.48:8082/domain/3ecdef5d-50ba-4ffb-9c0d-06bdd779e454 2025-04-09 20:01:24,250 - DEBUG - Requesting: http://10.0.0.48:8082/project/232ec7f6-5e78-4e2e-b8ec-9288fccbd144 2025-04-09 20:01:24,320 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/a543a782-a4f2-474e-8bd8-3f817206f46c 2025-04-09 20:01:24,330 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/a543a782-a4f2-474e-8bd8-3f817206f46c 2025-04-09 20:01:24,342 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/68956959-c7fa-48eb-868c-2e80c70ed6c5 2025-04-09 20:01:24,350 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/68956959-c7fa-48eb-868c-2e80c70ed6c5 2025-04-09 20:01:24,358 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/1a18ab3a-a6d1-4728-95bc-ccb7b6b0c718 2025-04-09 20:01:24,365 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-09 20:01:24,365 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/a543a782-a4f2-474e-8bd8-3f817206f46c 2025-04-09 20:01:24,374 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/68956959-c7fa-48eb-868c-2e80c70ed6c5 2025-04-09 20:01:24,388 - INFO - Verified VN network id 8 for VN a543a782-a4f2-474e-8bd8-3f817206f46c 2025-04-09 20:01:24,388 - INFO - Verifications in API Server for VN ctest-vn-76036225 passed 2025-04-09 20:01:24,388 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/a543a782-a4f2-474e-8bd8-3f817206f46c 2025-04-09 20:01:24,397 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/68956959-c7fa-48eb-868c-2e80c70ed6c5 2025-04-09 20:01:24,404 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/68956959-c7fa-48eb-868c-2e80c70ed6c5 2025-04-09 20:01:24,413 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/1a18ab3a-a6d1-4728-95bc-ccb7b6b0c718 2025-04-09 20:01:24,425 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80344815:ctest-vn-76036225', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80344815', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11908546019252651854', 'uuid-lslong': '10076873991437874284'}, 'enable': 'true', 'created': '2025-04-09T20:01:22', 'last-modified': '2025-04-09T20:01:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.947942'} 2025-04-09 20:01:24,431 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-09 20:01:24,431 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76036225 passed 2025-04-09 20:01:24,431 - DEBUG - ====Verifying policy data for ctest-vn-76036225 in API_Server ====== 2025-04-09 20:01:24,431 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-04-09 20:01:24,436 - DEBUG - Requesting: http://10.0.0.48:8082/domain/3ecdef5d-50ba-4ffb-9c0d-06bdd779e454 2025-04-09 20:01:24,447 - DEBUG - Requesting: http://10.0.0.48:8082/project/232ec7f6-5e78-4e2e-b8ec-9288fccbd144 2025-04-09 20:01:24,526 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/a543a782-a4f2-474e-8bd8-3f817206f46c 2025-04-09 20:01:24,536 - DEBUG - ==>Verifying data for policy with id: 2afb6dee-6bd8-4119-adaa-1cdf927084b8, fqn: ['default-domain', 'ctest-TestBasicPolicy-80344815', 'ctest-policy-allow-all-32709927'] 2025-04-09 20:01:24,536 - INFO - VN ctest-vn-76036225 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-09 20:01:24,536 - DEBUG - Verifying the vn in opserver 2025-04-09 20:01:24,536 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80344815:ctest-vn-76036225 virtual network link through opserver 10.0.0.48 2025-04-09 20:01:24,536 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-04-09 20:01:24,826 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-04-09 20:01:24,878 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80344815:ctest-vn-76036225', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80344815:ctest-vn-76036225?flat'} 2025-04-09 20:01:24,878 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80344815:ctest-vn-76036225 is found in opserver 2025-04-09 20:01:24,889 - DEBUG - Do not have enough data to verify VN in agent 2025-04-09 20:01:24,895 - DEBUG - VRF ids for VN ctest-vn-76036225: {} 2025-04-09 20:01:24,895 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-04-09 20:01:24,901 - DEBUG - Requesting: http://10.0.0.48:8082/domain/3ecdef5d-50ba-4ffb-9c0d-06bdd779e454 2025-04-09 20:01:24,912 - DEBUG - Requesting: http://10.0.0.48:8082/project/232ec7f6-5e78-4e2e-b8ec-9288fccbd144 2025-04-09 20:01:24,983 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c0afbb7d-3e42-4f26-8f01-3dccd9c50260 2025-04-09 20:01:24,995 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c0afbb7d-3e42-4f26-8f01-3dccd9c50260 2025-04-09 20:01:25,009 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/baa57e73-9fb6-440e-8730-35e91f302ce1 2025-04-09 20:01:25,016 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/baa57e73-9fb6-440e-8730-35e91f302ce1 2025-04-09 20:01:25,025 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/89e673b4-bc7d-4c28-9363-11eebf11f8a7 2025-04-09 20:01:25,033 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-09 20:01:25,033 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c0afbb7d-3e42-4f26-8f01-3dccd9c50260 2025-04-09 20:01:25,047 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/baa57e73-9fb6-440e-8730-35e91f302ce1 2025-04-09 20:01:25,067 - INFO - Verified VN network id 9 for VN c0afbb7d-3e42-4f26-8f01-3dccd9c50260 2025-04-09 20:01:25,067 - INFO - Verifications in API Server for VN ctest-vn-15266408 passed 2025-04-09 20:01:25,068 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c0afbb7d-3e42-4f26-8f01-3dccd9c50260 2025-04-09 20:01:25,082 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/baa57e73-9fb6-440e-8730-35e91f302ce1 2025-04-09 20:01:25,093 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/baa57e73-9fb6-440e-8730-35e91f302ce1 2025-04-09 20:01:25,103 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/89e673b4-bc7d-4c28-9363-11eebf11f8a7 2025-04-09 20:01:25,120 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80344815:ctest-vn-15266408', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80344815', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13884522322796367654', 'uuid-lslong': '10304585372436595296'}, 'enable': 'true', 'created': '2025-04-09T20:01:22', 'last-modified': '2025-04-09T20:01:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.401846'} 2025-04-09 20:01:25,128 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-09 20:01:25,128 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15266408 passed 2025-04-09 20:01:25,128 - DEBUG - ====Verifying policy data for ctest-vn-15266408 in API_Server ====== 2025-04-09 20:01:25,128 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-04-09 20:01:25,135 - DEBUG - Requesting: http://10.0.0.48:8082/domain/3ecdef5d-50ba-4ffb-9c0d-06bdd779e454 2025-04-09 20:01:25,147 - DEBUG - Requesting: http://10.0.0.48:8082/project/232ec7f6-5e78-4e2e-b8ec-9288fccbd144 2025-04-09 20:01:25,215 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c0afbb7d-3e42-4f26-8f01-3dccd9c50260 2025-04-09 20:01:25,225 - DEBUG - ==>Verifying data for policy with id: 2afb6dee-6bd8-4119-adaa-1cdf927084b8, fqn: ['default-domain', 'ctest-TestBasicPolicy-80344815', 'ctest-policy-allow-all-32709927'] 2025-04-09 20:01:25,225 - INFO - VN ctest-vn-15266408 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-09 20:01:25,225 - DEBUG - Verifying the vn in opserver 2025-04-09 20:01:25,225 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80344815:ctest-vn-15266408 virtual network link through opserver 10.0.0.48 2025-04-09 20:01:25,225 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-04-09 20:01:25,235 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80344815:ctest-vn-15266408', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80344815:ctest-vn-15266408?flat'} 2025-04-09 20:01:25,236 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80344815:ctest-vn-15266408 is found in opserver 2025-04-09 20:01:25,247 - DEBUG - Do not have enough data to verify VN in agent 2025-04-09 20:01:25,252 - DEBUG - VRF ids for VN ctest-vn-15266408: {} 2025-04-09 20:01:25,309 - DEBUG - Services list from nova: [, , ] 2025-04-09 20:01:26,330 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3073-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3073-1) 2025-04-09 20:01:27,557 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3073-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3073-1) 2025-04-09 20:01:27,557 - INFO - Waiting for VM ctest-TestBasicPolicy-80344815-56830652 to be up.. 2025-04-09 20:01:27,639 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-09 20:01:32,710 - DEBUG - VM is in ACTIVE state now 2025-04-09 20:01:32,710 - INFO - VM name : ctest-TestBasicPolicy-80344815-56830652 2025-04-09 20:01:32,796 - DEBUG - VM ctest-TestBasicPolicy-80344815-56830652 ID is 5d8bb30f-f89b-42ac-9114-1900eb1c6850 2025-04-09 20:01:32,813 - DEBUG - VM ctest-TestBasicPolicy-80344815-56830652 launched on Node cn-jenkins-deploy-platform-ansible-os-3073-1 2025-04-09 20:01:32,879 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/5d8bb30f-f89b-42ac-9114-1900eb1c6850 2025-04-09 20:01:32,887 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/c47a7e8f-21df-4209-8ecb-115bccd53eb5 2025-04-09 20:01:36,093 - 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 1011ms') 2025-04-09 20:01:36,093 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-80344815-56830652 failed! 2025-04-09 20:01:36,146 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-80344815:ctest-vn-76036225 is 126.102.141.193 and allocation pool is NOT set 2025-04-09 20:01:38,207 - 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=3.21 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.399 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.399/1.804/3.209/1.405 ms') 2025-04-09 20:01:38,207 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-80344815-56830652 passed 2025-04-09 20:01:38,362 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 20:01:38,362 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-80344815-56830652, IP 126.102.141.195, Port 22 2025-04-09 20:01:38,428 - 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-04-09 20:01:38,511 - DEBUG - VM ctest-TestBasicPolicy-80344815-56830652 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-09 20:01:43,512 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 20:01:43,512 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-80344815-56830652, IP 126.102.141.195, Port 22 2025-04-09 20:01:43,670 - DEBUG - VM ctest-TestBasicPolicy-80344815-56830652 is ready for SSH connections 2025-04-09 20:01:43,670 - INFO - Waiting for VM ctest-TestBasicPolicy-80344815-41916468 to be up.. 2025-04-09 20:01:43,751 - DEBUG - VM is in ACTIVE state now 2025-04-09 20:01:43,751 - INFO - VM name : ctest-TestBasicPolicy-80344815-41916468 2025-04-09 20:01:43,824 - DEBUG - VM ctest-TestBasicPolicy-80344815-41916468 ID is 0d2be157-d584-4258-919d-46baf22ffeff 2025-04-09 20:01:43,824 - DEBUG - VM ctest-TestBasicPolicy-80344815-41916468 launched on Node cn-jenkins-deploy-platform-ansible-os-3073-1 2025-04-09 20:01:43,890 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/0d2be157-d584-4258-919d-46baf22ffeff 2025-04-09 20:01:43,898 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/c72b9777-b56a-427c-a161-d641571081ab 2025-04-09 20:01:45,130 - 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=2.99 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.381 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.381/1.684/2.988/1.303 ms') 2025-04-09 20:01:45,130 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-80344815-41916468 passed 2025-04-09 20:01:45,278 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 20:01:45,278 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-80344815-41916468, IP 5.187.5.131, Port 22 2025-04-09 20:01:45,433 - DEBUG - VM ctest-TestBasicPolicy-80344815-41916468 is ready for SSH connections 2025-04-09 20:01:45,433 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 20:01:45,434 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 5.187.5.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2025-04-09 20:01:45,434 - DEBUG - ping -s 56 -c 3 -W 1 5.187.5.131 2025-04-09 20:01:49,436 - DEBUG - PING 5.187.5.131 (5.187.5.131): 56 data bytes 64 bytes from 5.187.5.131: seq=0 ttl=63 time=3.224 ms 64 bytes from 5.187.5.131: seq=1 ttl=63 time=0.768 ms 64 bytes from 5.187.5.131: seq=2 ttl=63 time=1.004 ms --- 5.187.5.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.768/1.665/3.224 ms 2025-04-09 20:01:49,436 - INFO - Ping to IP 5.187.5.131 from VM ctest-TestBasicPolicy-80344815-56830652 passed 2025-04-09 20:01:49,614 - DEBUG - Policy Update Response {"network-policy": {"uuid": "2afb6dee-6bd8-4119-adaa-1cdf927084b8", "href": "http://10.0.0.48:8082/network-policy/2afb6dee-6bd8-4119-adaa-1cdf927084b8"}} 2025-04-09 20:01:49,614 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 20:01:49,614 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 5.187.5.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2025-04-09 20:01:49,614 - DEBUG - ping -s 56 -c 3 -W 1 5.187.5.131 2025-04-09 20:01:52,820 - DEBUG - PING 5.187.5.131 (5.187.5.131): 56 data bytes 64 bytes from 5.187.5.131: seq=0 ttl=63 time=1.583 ms --- 5.187.5.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.583/1.583/1.583 ms 2025-04-09 20:01:52,820 - WARNING - Ping to IP 5.187.5.131 from VM ctest-TestBasicPolicy-80344815-56830652 failed 2025-04-09 20:01:52,821 - INFO - Deleting VM ctest-TestBasicPolicy-80344815-41916468 2025-04-09 20:01:52,895 - INFO - Deleting VM ctest-TestBasicPolicy-80344815-56830652 2025-04-09 20:01:53,288 - INFO - Deleted policy ctest-policy-allow-all-32709927 2025-04-09 20:01:53,288 - INFO - Deleting VN ctest-vn-15266408 2025-04-09 20:01:53,321 - DEBUG - VN c0afbb7d-3e42-4f26-8f01-3dccd9c50260 still in use: Unable to complete operation on network c0afbb7d-3e42-4f26-8f01-3dccd9c50260. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-022c4e81-f2ca-4866-a3d3-699a66e75f70'] 2025-04-09 20:01:53,321 - WARNING - Deleting VN ctest-vn-15266408 failed..Will retry 2025-04-09 20:01:55,422 - DEBUG - Response for deleting network () 2025-04-09 20:01:55,422 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/baa57e73-9fb6-440e-8730-35e91f302ce1 2025-04-09 20:01:55,427 - DEBUG - Response Code: 404 2025-04-09 20:01:55,427 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-04-09 20:01:55,434 - DEBUG - Requesting: http://10.0.0.48:8082/domain/3ecdef5d-50ba-4ffb-9c0d-06bdd779e454 2025-04-09 20:01:55,494 - DEBUG - Requesting: http://10.0.0.48:8082/project/232ec7f6-5e78-4e2e-b8ec-9288fccbd144 2025-04-09 20:01:55,562 - INFO - Validated that VN ctest-vn-15266408 is not found in API Server 2025-04-09 20:01:55,573 - DEBUG - VN ctest-vn-15266408 is not present in Agent 10.0.0.48 2025-04-09 20:01:55,573 - INFO - Validated that VN ctest-vn-15266408 is not in any agent 2025-04-09 20:01:55,589 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-15266408 info 2025-04-09 20:01:55,589 - INFO - Deleting VN ctest-vn-76036225 2025-04-09 20:01:55,696 - DEBUG - Response for deleting network () 2025-04-09 20:01:55,696 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/68956959-c7fa-48eb-868c-2e80c70ed6c5 2025-04-09 20:01:55,701 - DEBUG - Response Code: 404 2025-04-09 20:01:55,701 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-04-09 20:01:55,706 - DEBUG - Requesting: http://10.0.0.48:8082/domain/3ecdef5d-50ba-4ffb-9c0d-06bdd779e454 2025-04-09 20:01:55,763 - DEBUG - Requesting: http://10.0.0.48:8082/project/232ec7f6-5e78-4e2e-b8ec-9288fccbd144 2025-04-09 20:01:55,839 - INFO - Validated that VN ctest-vn-76036225 is not found in API Server 2025-04-09 20:01:55,849 - DEBUG - VN ctest-vn-76036225 is not present in Agent 10.0.0.48 2025-04-09 20:01:55,849 - INFO - Validated that VN ctest-vn-76036225 is not in any agent 2025-04-09 20:01:55,865 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-76036225 info 2025-04-09 20:01:56,123 - DEBUG - No XMPP flaps were noticed during the test
2025-04-09 20:01:56,124 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-04-09 20:01:56,124 - INFO - -------------------------------------------------------------------------------- 2025-04-09 20:01:56,792 - INFO - Deleted project: ctest-TestBasicPolicy-80344815, ID : 232ec7f6-5e78-4e2e-b8ec-9288fccbd144