2025-05-13 09:58:23,102 - INFO - Domain Default found not creating 2025-05-13 09:58:23,359 - INFO - Project ctest-TestBasicPolicy-58013581 not found, creating it 2025-05-13 09:58:24,215 - INFO - Created Project:ctest-TestBasicPolicy-58013581, ID : e1999adb-c5d6-4d50-adcb-c76ecb6de454 2025-05-13 09:58:26,462 - INFO - ================================================================================ 2025-05-13 09:58:26,462 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-05-13 09:58:26,463 - 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-05-13 09:58:26,801 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.17': '0'}} with 2025-05-13 09:58:26,801 - INFO - Initial checks done. Running the testcase now 2025-05-13 09:58:26,801 - INFO - 2025-05-13 09:58:27,778 - DEBUG - Response for create_network : {'network': {'id': 'e9de1501-9d5d-4ac0-b988-2a1b86499543', 'name': 'ctest-vn-53732248', 'tenant_id': 'e1999adbc5d64d50adcbc76ecb6de454', 'project_id': 'e1999adbc5d64d50adcbc76ecb6de454', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58013581', 'ctest-vn-53732248'], 'port_security_enabled': True, 'description': ''}} 2025-05-13 09:58:28,052 - DEBUG - Response for create_subnet : {'subnet': {'id': '05a4d2a9-aca4-464b-8f47-6e4ba0ce23f9', 'name': '', 'tenant_id': 'e1999adbc5d64d50adcbc76ecb6de454', 'network_id': 'e9de1501-9d5d-4ac0-b988-2a1b86499543', 'ip_version': 4, 'cidr': '171.122.192.0/26', 'allocation_pools': [{'start': '171.122.192.2', 'end': '171.122.192.62'}], 'gateway_ip': '171.122.192.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.122.192.2', 'tags': [], 'project_id': 'e1999adbc5d64d50adcbc76ecb6de454'}} 2025-05-13 09:58:28,074 - INFO - Created VN ctest-vn-53732248 2025-05-13 09:58:28,131 - DEBUG - VN ctest-vn-53732248 UUID is e9de1501-9d5d-4ac0-b988-2a1b86499543 2025-05-13 09:58:28,576 - DEBUG - Response for create_network : {'network': {'id': 'f3dc9aa1-7479-4292-8ff2-d28c1e5a6faf', 'name': 'ctest-vn-35854703', 'tenant_id': 'e1999adbc5d64d50adcbc76ecb6de454', 'project_id': 'e1999adbc5d64d50adcbc76ecb6de454', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58013581', 'ctest-vn-35854703'], 'port_security_enabled': True, 'description': ''}} 2025-05-13 09:58:28,818 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b7dfd621-0041-4c0d-b70f-4a5321e7135b', 'name': '', 'tenant_id': 'e1999adbc5d64d50adcbc76ecb6de454', 'network_id': 'f3dc9aa1-7479-4292-8ff2-d28c1e5a6faf', 'ip_version': 4, 'cidr': '151.1.121.128/26', 'allocation_pools': [{'start': '151.1.121.130', 'end': '151.1.121.190'}], 'gateway_ip': '151.1.121.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.1.121.130', 'tags': [], 'project_id': 'e1999adbc5d64d50adcbc76ecb6de454'}} 2025-05-13 09:58:28,840 - INFO - Created VN ctest-vn-35854703 2025-05-13 09:58:28,899 - DEBUG - VN ctest-vn-35854703 UUID is f3dc9aa1-7479-4292-8ff2-d28c1e5a6faf 2025-05-13 09:58:29,044 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-58013581:ctest-vn-53732248, 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-58013581:ctest-vn-35854703, 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-05-13 09:58:29,590 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e9de1501-9d5d-4ac0-b988-2a1b86499543', 'name': 'ctest-vn-53732248', 'tenant_id': 'e1999adbc5d64d50adcbc76ecb6de454', 'project_id': 'e1999adbc5d64d50adcbc76ecb6de454', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['05a4d2a9-aca4-464b-8f47-6e4ba0ce23f9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58013581', 'ctest-vn-53732248'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58013581', 'ctest-policy-allow-all-14215770']], 'subnet_ipam': [{'subnet_cidr': '171.122.192.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-13 09:58:30,032 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f3dc9aa1-7479-4292-8ff2-d28c1e5a6faf', 'name': 'ctest-vn-35854703', 'tenant_id': 'e1999adbc5d64d50adcbc76ecb6de454', 'project_id': 'e1999adbc5d64d50adcbc76ecb6de454', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b7dfd621-0041-4c0d-b70f-4a5321e7135b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58013581', 'ctest-vn-35854703'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58013581', 'ctest-policy-allow-all-14215770']], 'subnet_ipam': [{'subnet_cidr': '151.1.121.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-13 09:58:30,219 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-05-13 09:58:30,565 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-05-13 09:58:30,617 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9e864e28-4bda-4ea4-9d30-a30a75ee8e69 2025-05-13 09:58:30,656 - DEBUG - Requesting: http://10.0.0.41:8082/project/e1999adb-c5d6-4d50-adcb-c76ecb6de454 2025-05-13 09:58:30,790 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e9de1501-9d5d-4ac0-b988-2a1b86499543 2025-05-13 09:58:30,819 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e9de1501-9d5d-4ac0-b988-2a1b86499543 2025-05-13 09:58:30,848 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/e8fc0a08-4d15-4573-b949-3172f79fe285 2025-05-13 09:58:30,872 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/e8fc0a08-4d15-4573-b949-3172f79fe285 2025-05-13 09:58:30,890 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/fdf3f89c-bd10-469d-bf8c-f4d45c693e3e 2025-05-13 09:58:30,906 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-13 09:58:30,906 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e9de1501-9d5d-4ac0-b988-2a1b86499543 2025-05-13 09:58:30,928 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/e8fc0a08-4d15-4573-b949-3172f79fe285 2025-05-13 09:58:30,962 - INFO - Verified VN network id 8 for VN e9de1501-9d5d-4ac0-b988-2a1b86499543 2025-05-13 09:58:30,962 - INFO - Verifications in API Server for VN ctest-vn-53732248 passed 2025-05-13 09:58:30,963 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e9de1501-9d5d-4ac0-b988-2a1b86499543 2025-05-13 09:58:30,980 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/e8fc0a08-4d15-4573-b949-3172f79fe285 2025-05-13 09:58:30,999 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/e8fc0a08-4d15-4573-b949-3172f79fe285 2025-05-13 09:58:31,013 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/fdf3f89c-bd10-469d-bf8c-f4d45c693e3e 2025-05-13 09:58:31,039 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58013581:ctest-vn-53732248', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58013581', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16851929952346262208', 'uuid-lslong': '13368981791554770243'}, 'enable': 'true', 'created': '2025-05-13T09:58:27', 'last-modified': '2025-05-13T09:58:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.504962'} 2025-05-13 09:58:31,055 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-13 09:58:31,055 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53732248 passed 2025-05-13 09:58:31,055 - DEBUG - ====Verifying policy data for ctest-vn-53732248 in API_Server ====== 2025-05-13 09:58:31,055 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-05-13 09:58:31,069 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9e864e28-4bda-4ea4-9d30-a30a75ee8e69 2025-05-13 09:58:31,086 - DEBUG - Requesting: http://10.0.0.41:8082/project/e1999adb-c5d6-4d50-adcb-c76ecb6de454 2025-05-13 09:58:31,188 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e9de1501-9d5d-4ac0-b988-2a1b86499543 2025-05-13 09:58:31,208 - DEBUG - ==>Verifying data for policy with id: d2bcbd93-bdcf-44c4-8438-c19fc1cb3f03, fqn: ['default-domain', 'ctest-TestBasicPolicy-58013581', 'ctest-policy-allow-all-14215770'] 2025-05-13 09:58:31,208 - INFO - VN ctest-vn-53732248 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-13 09:58:31,208 - DEBUG - Verifying the vn in opserver 2025-05-13 09:58:31,208 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58013581:ctest-vn-53732248 virtual network link through opserver 10.0.0.41 2025-05-13 09:58:31,209 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-05-13 09:58:31,528 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-05-13 09:58:31,643 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58013581:ctest-vn-53732248', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58013581:ctest-vn-53732248?flat'} 2025-05-13 09:58:31,643 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58013581:ctest-vn-53732248 is found in opserver 2025-05-13 09:58:31,667 - DEBUG - Do not have enough data to verify VN in agent 2025-05-13 09:58:31,682 - DEBUG - VRF ids for VN ctest-vn-53732248: {} 2025-05-13 09:58:31,682 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-05-13 09:58:31,696 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9e864e28-4bda-4ea4-9d30-a30a75ee8e69 2025-05-13 09:58:31,725 - DEBUG - Requesting: http://10.0.0.41:8082/project/e1999adb-c5d6-4d50-adcb-c76ecb6de454 2025-05-13 09:58:31,853 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f3dc9aa1-7479-4292-8ff2-d28c1e5a6faf 2025-05-13 09:58:31,879 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f3dc9aa1-7479-4292-8ff2-d28c1e5a6faf 2025-05-13 09:58:31,902 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/e14aaaee-efb6-4a5a-b121-7e9a99818d7a 2025-05-13 09:58:31,921 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/e14aaaee-efb6-4a5a-b121-7e9a99818d7a 2025-05-13 09:58:31,944 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/5537e677-7146-45fa-b416-7d05d114d451 2025-05-13 09:58:31,963 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-13 09:58:31,963 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f3dc9aa1-7479-4292-8ff2-d28c1e5a6faf 2025-05-13 09:58:31,994 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/e14aaaee-efb6-4a5a-b121-7e9a99818d7a 2025-05-13 09:58:32,043 - INFO - Verified VN network id 9 for VN f3dc9aa1-7479-4292-8ff2-d28c1e5a6faf 2025-05-13 09:58:32,043 - INFO - Verifications in API Server for VN ctest-vn-35854703 passed 2025-05-13 09:58:32,044 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f3dc9aa1-7479-4292-8ff2-d28c1e5a6faf 2025-05-13 09:58:32,079 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/e14aaaee-efb6-4a5a-b121-7e9a99818d7a 2025-05-13 09:58:32,102 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/e14aaaee-efb6-4a5a-b121-7e9a99818d7a 2025-05-13 09:58:32,122 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/5537e677-7146-45fa-b416-7d05d114d451 2025-05-13 09:58:32,160 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58013581:ctest-vn-35854703', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58013581', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17572089864327348882', 'uuid-lslong': '10372584391034171311'}, 'enable': 'true', 'created': '2025-05-13T09:58:28', 'last-modified': '2025-05-13T09:58:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.215761'} 2025-05-13 09:58:32,176 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-13 09:58:32,176 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35854703 passed 2025-05-13 09:58:32,176 - DEBUG - ====Verifying policy data for ctest-vn-35854703 in API_Server ====== 2025-05-13 09:58:32,177 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-05-13 09:58:32,189 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9e864e28-4bda-4ea4-9d30-a30a75ee8e69 2025-05-13 09:58:32,214 - DEBUG - Requesting: http://10.0.0.41:8082/project/e1999adb-c5d6-4d50-adcb-c76ecb6de454 2025-05-13 09:58:32,324 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f3dc9aa1-7479-4292-8ff2-d28c1e5a6faf 2025-05-13 09:58:32,344 - DEBUG - ==>Verifying data for policy with id: d2bcbd93-bdcf-44c4-8438-c19fc1cb3f03, fqn: ['default-domain', 'ctest-TestBasicPolicy-58013581', 'ctest-policy-allow-all-14215770'] 2025-05-13 09:58:32,344 - INFO - VN ctest-vn-35854703 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-13 09:58:32,344 - DEBUG - Verifying the vn in opserver 2025-05-13 09:58:32,344 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58013581:ctest-vn-35854703 virtual network link through opserver 10.0.0.41 2025-05-13 09:58:32,344 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-05-13 09:58:32,367 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58013581:ctest-vn-35854703', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58013581:ctest-vn-35854703?flat'} 2025-05-13 09:58:32,367 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58013581:ctest-vn-35854703 is found in opserver 2025-05-13 09:58:32,399 - DEBUG - Do not have enough data to verify VN in agent 2025-05-13 09:58:32,416 - DEBUG - VRF ids for VN ctest-vn-35854703: {} 2025-05-13 09:58:32,516 - DEBUG - Services list from nova: [, , ] 2025-05-13 09:58:34,023 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3302-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3302-1) 2025-05-13 09:58:35,681 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3302-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3302-1) 2025-05-13 09:58:35,682 - INFO - Waiting for VM ctest-TestBasicPolicy-58013581-45292271 to be up.. 2025-05-13 09:58:35,806 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-05-13 09:58:40,979 - DEBUG - VM is in ACTIVE state now 2025-05-13 09:58:40,979 - INFO - VM name : ctest-TestBasicPolicy-58013581-45292271 2025-05-13 09:58:41,082 - DEBUG - VM ctest-TestBasicPolicy-58013581-45292271 ID is 1291eade-c3d2-4120-b202-880833cb8300 2025-05-13 09:58:41,108 - DEBUG - VM ctest-TestBasicPolicy-58013581-45292271 launched on Node cn-jenkins-deploy-platform-ansible-os-3302-1 2025-05-13 09:58:41,221 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/1291eade-c3d2-4120-b202-880833cb8300 2025-05-13 09:58:41,234 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/068f7c60-c201-493a-81cf-e4c1c5731b84 2025-05-13 09:58:44,555 - 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 1025ms') 2025-05-13 09:58:44,555 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58013581-45292271 failed! 2025-05-13 09:58:44,628 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-58013581:ctest-vn-53732248 is 171.122.192.1 and allocation pool is NOT set 2025-05-13 09:58:46,698 - 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=8.14 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.21 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 = 1.210/4.673/8.136/3.463 ms') 2025-05-13 09:58:46,698 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58013581-45292271 passed 2025-05-13 09:58:46,867 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-13 09:58:46,867 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-58013581-45292271, IP 171.122.192.3, Port 22 2025-05-13 09:58:46,933 - 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-05-13 09:58:47,053 - DEBUG - VM ctest-TestBasicPolicy-58013581-45292271 is NOT ready for SSH connections, VM status: ACTIVE 2025-05-13 09:58:52,053 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-13 09:58:52,054 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-58013581-45292271, IP 171.122.192.3, Port 22 2025-05-13 09:58:52,226 - DEBUG - VM ctest-TestBasicPolicy-58013581-45292271 is ready for SSH connections 2025-05-13 09:58:52,226 - INFO - Waiting for VM ctest-TestBasicPolicy-58013581-83606465 to be up.. 2025-05-13 09:58:52,445 - DEBUG - VM is in ACTIVE state now 2025-05-13 09:58:52,445 - INFO - VM name : ctest-TestBasicPolicy-58013581-83606465 2025-05-13 09:58:52,601 - DEBUG - VM ctest-TestBasicPolicy-58013581-83606465 ID is 209a3dc9-6d75-4389-8b55-3095f7519db1 2025-05-13 09:58:52,601 - DEBUG - VM ctest-TestBasicPolicy-58013581-83606465 launched on Node cn-jenkins-deploy-platform-ansible-os-3302-1 2025-05-13 09:58:52,752 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/209a3dc9-6d75-4389-8b55-3095f7519db1 2025-05-13 09:58:52,772 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/028141b6-fbcb-4d97-bbc1-c2c1b1bb6bba 2025-05-13 09:58:54,111 - 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=13.6 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.812 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.812/7.211/13.610/6.399 ms') 2025-05-13 09:58:54,112 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-58013581-83606465 passed 2025-05-13 09:58:54,307 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-13 09:58:54,308 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-58013581-83606465, IP 151.1.121.131, Port 22 2025-05-13 09:58:54,522 - DEBUG - VM ctest-TestBasicPolicy-58013581-83606465 is ready for SSH connections 2025-05-13 09:58:54,522 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-13 09:58:54,523 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 151.1.121.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2025-05-13 09:58:54,523 - DEBUG - ping -s 56 -c 3 -W 1 151.1.121.131 2025-05-13 09:58:59,254 - DEBUG - PING 151.1.121.131 (151.1.121.131): 56 data bytes 64 bytes from 151.1.121.131: seq=0 ttl=63 time=4.572 ms 64 bytes from 151.1.121.131: seq=1 ttl=63 time=1.419 ms 64 bytes from 151.1.121.131: seq=2 ttl=63 time=2.197 ms --- 151.1.121.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.419/2.729/4.572 ms 2025-05-13 09:58:59,255 - INFO - Ping to IP 151.1.121.131 from VM ctest-TestBasicPolicy-58013581-45292271 passed 2025-05-13 09:58:59,522 - DEBUG - Policy Update Response {"network-policy": {"uuid": "d2bcbd93-bdcf-44c4-8438-c19fc1cb3f03", "href": "http://10.0.0.41:8082/network-policy/d2bcbd93-bdcf-44c4-8438-c19fc1cb3f03"}} 2025-05-13 09:58:59,523 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-13 09:58:59,523 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 151.1.121.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2025-05-13 09:58:59,523 - DEBUG - ping -s 56 -c 3 -W 1 151.1.121.131 2025-05-13 09:59:02,859 - DEBUG - PING 151.1.121.131 (151.1.121.131): 56 data bytes --- 151.1.121.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-13 09:59:02,859 - WARNING - Ping to IP 151.1.121.131 from VM ctest-TestBasicPolicy-58013581-45292271 failed 2025-05-13 09:59:02,859 - INFO - Deleting VM ctest-TestBasicPolicy-58013581-83606465 2025-05-13 09:59:02,996 - INFO - Deleting VM ctest-TestBasicPolicy-58013581-45292271 2025-05-13 09:59:03,622 - INFO - Deleted policy ctest-policy-allow-all-14215770 2025-05-13 09:59:03,622 - INFO - Deleting VN ctest-vn-35854703 2025-05-13 09:59:03,687 - DEBUG - VN f3dc9aa1-7479-4292-8ff2-d28c1e5a6faf still in use: Unable to complete operation on network f3dc9aa1-7479-4292-8ff2-d28c1e5a6faf. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6a77cd24-dc68-4d48-820b-ed571ba6c3b9'] 2025-05-13 09:59:03,687 - WARNING - Deleting VN ctest-vn-35854703 failed..Will retry 2025-05-13 09:59:05,892 - DEBUG - Response for deleting network () 2025-05-13 09:59:05,892 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/e14aaaee-efb6-4a5a-b121-7e9a99818d7a 2025-05-13 09:59:05,908 - DEBUG - Response Code: 404 2025-05-13 09:59:05,909 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-05-13 09:59:05,918 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9e864e28-4bda-4ea4-9d30-a30a75ee8e69 2025-05-13 09:59:05,938 - DEBUG - Requesting: http://10.0.0.41:8082/project/e1999adb-c5d6-4d50-adcb-c76ecb6de454 2025-05-13 09:59:06,032 - INFO - Validated that VN ctest-vn-35854703 is not found in API Server 2025-05-13 09:59:06,056 - DEBUG - VN ctest-vn-35854703 is not present in Agent 10.0.0.41 2025-05-13 09:59:06,056 - INFO - Validated that VN ctest-vn-35854703 is not in any agent 2025-05-13 09:59:06,086 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-35854703 info 2025-05-13 09:59:06,086 - INFO - Deleting VN ctest-vn-53732248 2025-05-13 09:59:06,285 - DEBUG - Response for deleting network () 2025-05-13 09:59:06,286 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/e8fc0a08-4d15-4573-b949-3172f79fe285 2025-05-13 09:59:06,295 - DEBUG - Response Code: 404 2025-05-13 09:59:06,295 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-05-13 09:59:06,303 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9e864e28-4bda-4ea4-9d30-a30a75ee8e69 2025-05-13 09:59:06,362 - DEBUG - Requesting: http://10.0.0.41:8082/project/e1999adb-c5d6-4d50-adcb-c76ecb6de454 2025-05-13 09:59:06,456 - INFO - Validated that VN ctest-vn-53732248 is not found in API Server 2025-05-13 09:59:06,474 - DEBUG - VN ctest-vn-53732248 is not present in Agent 10.0.0.41 2025-05-13 09:59:06,474 - INFO - Validated that VN ctest-vn-53732248 is not in any agent 2025-05-13 09:59:06,499 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-53732248 info 2025-05-13 09:59:06,801 - DEBUG - No XMPP flaps were noticed during the test
2025-05-13 09:59:06,802 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:40]
2025-05-13 09:59:06,802 - INFO - -------------------------------------------------------------------------------- 2025-05-13 09:59:07,669 - INFO - Deleted project: ctest-TestBasicPolicy-58013581, ID : e1999adb-c5d6-4d50-adcb-c76ecb6de454