2025-06-24 12:26:32,177 - INFO - Domain Default found not creating 2025-06-24 12:26:32,335 - INFO - Project ctest-TestBasicPolicy-06663654 not found, creating it 2025-06-24 12:26:32,806 - INFO - Created Project:ctest-TestBasicPolicy-06663654, ID : e59a3f0d-478d-40c5-a7d3-c8eefbeb1b03 2025-06-24 12:26:34,351 - INFO - ================================================================================ 2025-06-24 12:26:34,352 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-24 12:26:34,352 - 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-06-24 12:26:34,608 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with 2025-06-24 12:26:34,608 - INFO - Initial checks done. Running the testcase now 2025-06-24 12:26:34,608 - INFO - 2025-06-24 12:26:35,197 - DEBUG - Response for create_network : {'network': {'id': 'd3e7e73e-668a-4a90-9ef5-118bcb02fbce', 'name': 'ctest-vn-25401462', 'tenant_id': 'e59a3f0d478d40c5a7d3c8eefbeb1b03', 'project_id': 'e59a3f0d478d40c5a7d3c8eefbeb1b03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06663654', 'ctest-vn-25401462'], 'port_security_enabled': True, 'description': ''}} 2025-06-24 12:26:35,366 - DEBUG - Response for create_subnet : {'subnet': {'id': '9c96a4a3-7452-4505-89f1-e7f43256a417', 'name': '', 'tenant_id': 'e59a3f0d478d40c5a7d3c8eefbeb1b03', 'network_id': 'd3e7e73e-668a-4a90-9ef5-118bcb02fbce', 'ip_version': 4, 'cidr': '171.208.72.64/26', 'allocation_pools': [{'start': '171.208.72.66', 'end': '171.208.72.126'}], 'gateway_ip': '171.208.72.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.208.72.66', 'tags': [], 'project_id': 'e59a3f0d478d40c5a7d3c8eefbeb1b03'}} 2025-06-24 12:26:35,389 - INFO - Created VN ctest-vn-25401462 2025-06-24 12:26:35,442 - DEBUG - VN ctest-vn-25401462 UUID is d3e7e73e-668a-4a90-9ef5-118bcb02fbce 2025-06-24 12:26:35,753 - DEBUG - Response for create_network : {'network': {'id': '5154a519-a1af-4538-90cc-3e91f226f88b', 'name': 'ctest-vn-42383199', 'tenant_id': 'e59a3f0d478d40c5a7d3c8eefbeb1b03', 'project_id': 'e59a3f0d478d40c5a7d3c8eefbeb1b03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06663654', 'ctest-vn-42383199'], 'port_security_enabled': True, 'description': ''}} 2025-06-24 12:26:35,976 - DEBUG - Response for create_subnet : {'subnet': {'id': '2f3163ae-a4e2-4c5b-bf52-da2825a79ccb', 'name': '', 'tenant_id': 'e59a3f0d478d40c5a7d3c8eefbeb1b03', 'network_id': '5154a519-a1af-4538-90cc-3e91f226f88b', 'ip_version': 4, 'cidr': '185.110.123.128/26', 'allocation_pools': [{'start': '185.110.123.130', 'end': '185.110.123.190'}], 'gateway_ip': '185.110.123.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.110.123.130', 'tags': [], 'project_id': 'e59a3f0d478d40c5a7d3c8eefbeb1b03'}} 2025-06-24 12:26:35,998 - INFO - Created VN ctest-vn-42383199 2025-06-24 12:26:36,054 - DEBUG - VN ctest-vn-42383199 UUID is 5154a519-a1af-4538-90cc-3e91f226f88b 2025-06-24 12:26:36,178 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-06663654:ctest-vn-25401462, 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-06663654:ctest-vn-42383199, 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-06-24 12:26:36,484 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd3e7e73e-668a-4a90-9ef5-118bcb02fbce', 'name': 'ctest-vn-25401462', 'tenant_id': 'e59a3f0d478d40c5a7d3c8eefbeb1b03', 'project_id': 'e59a3f0d478d40c5a7d3c8eefbeb1b03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9c96a4a3-7452-4505-89f1-e7f43256a417'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06663654', 'ctest-vn-25401462'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06663654', 'ctest-policy-allow-all-44427251']], 'subnet_ipam': [{'subnet_cidr': '171.208.72.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-24 12:26:36,760 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5154a519-a1af-4538-90cc-3e91f226f88b', 'name': 'ctest-vn-42383199', 'tenant_id': 'e59a3f0d478d40c5a7d3c8eefbeb1b03', 'project_id': 'e59a3f0d478d40c5a7d3c8eefbeb1b03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2f3163ae-a4e2-4c5b-bf52-da2825a79ccb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06663654', 'ctest-vn-42383199'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06663654', 'ctest-policy-allow-all-44427251']], 'subnet_ipam': [{'subnet_cidr': '185.110.123.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-24 12:26:36,918 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-06-24 12:26:37,229 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-06-24 12:26:37,262 - DEBUG - Requesting: http://10.0.0.130:8082/domain/3fd53fae-fbea-4d01-b0a7-0cdcdb1b57c7 2025-06-24 12:26:37,276 - DEBUG - Requesting: http://10.0.0.130:8082/project/e59a3f0d-478d-40c5-a7d3-c8eefbeb1b03 2025-06-24 12:26:37,364 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/d3e7e73e-668a-4a90-9ef5-118bcb02fbce 2025-06-24 12:26:37,377 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/d3e7e73e-668a-4a90-9ef5-118bcb02fbce 2025-06-24 12:26:37,388 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/6d1aab11-3058-402f-845a-5fbb10130e8b 2025-06-24 12:26:37,397 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/6d1aab11-3058-402f-845a-5fbb10130e8b 2025-06-24 12:26:37,405 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/73f16fa5-f566-43b5-a568-01b7d438d10e 2025-06-24 12:26:37,413 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-24 12:26:37,413 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/d3e7e73e-668a-4a90-9ef5-118bcb02fbce 2025-06-24 12:26:37,424 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/6d1aab11-3058-402f-845a-5fbb10130e8b 2025-06-24 12:26:37,455 - INFO - Verified VN network id 8 for VN d3e7e73e-668a-4a90-9ef5-118bcb02fbce 2025-06-24 12:26:37,455 - INFO - Verifications in API Server for VN ctest-vn-25401462 passed 2025-06-24 12:26:37,455 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/d3e7e73e-668a-4a90-9ef5-118bcb02fbce 2025-06-24 12:26:37,466 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/6d1aab11-3058-402f-845a-5fbb10130e8b 2025-06-24 12:26:37,474 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/6d1aab11-3058-402f-845a-5fbb10130e8b 2025-06-24 12:26:37,483 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/73f16fa5-f566-43b5-a568-01b7d438d10e 2025-06-24 12:26:37,496 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06663654:ctest-vn-25401462', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06663654', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15269427316817283728', 'uuid-lslong': '11454080519390821326'}, 'enable': 'true', 'created': '2025-06-24T12:26:35', 'last-modified': '2025-06-24T12:26:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.030169'} 2025-06-24 12:26:37,504 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-24 12:26:37,504 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25401462 passed 2025-06-24 12:26:37,504 - DEBUG - ====Verifying policy data for ctest-vn-25401462 in API_Server ====== 2025-06-24 12:26:37,504 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-06-24 12:26:37,512 - DEBUG - Requesting: http://10.0.0.130:8082/domain/3fd53fae-fbea-4d01-b0a7-0cdcdb1b57c7 2025-06-24 12:26:37,526 - DEBUG - Requesting: http://10.0.0.130:8082/project/e59a3f0d-478d-40c5-a7d3-c8eefbeb1b03 2025-06-24 12:26:37,610 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/d3e7e73e-668a-4a90-9ef5-118bcb02fbce 2025-06-24 12:26:37,620 - DEBUG - ==>Verifying data for policy with id: 8bf2a95a-1916-42ea-a558-91cab906cd98, fqn: ['default-domain', 'ctest-TestBasicPolicy-06663654', 'ctest-policy-allow-all-44427251'] 2025-06-24 12:26:37,620 - INFO - VN ctest-vn-25401462 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-24 12:26:37,620 - DEBUG - Verifying the vn in opserver 2025-06-24 12:26:37,621 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06663654:ctest-vn-25401462 virtual network link through opserver 10.0.0.130 2025-06-24 12:26:37,621 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-06-24 12:26:37,912 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-06-24 12:26:37,985 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06663654:ctest-vn-25401462', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06663654:ctest-vn-25401462?flat'} 2025-06-24 12:26:37,985 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06663654:ctest-vn-25401462 is found in opserver 2025-06-24 12:26:37,998 - DEBUG - Do not have enough data to verify VN in agent 2025-06-24 12:26:38,005 - DEBUG - VRF ids for VN ctest-vn-25401462: {} 2025-06-24 12:26:38,005 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-06-24 12:26:38,012 - DEBUG - Requesting: http://10.0.0.130:8082/domain/3fd53fae-fbea-4d01-b0a7-0cdcdb1b57c7 2025-06-24 12:26:38,025 - DEBUG - Requesting: http://10.0.0.130:8082/project/e59a3f0d-478d-40c5-a7d3-c8eefbeb1b03 2025-06-24 12:26:38,104 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5154a519-a1af-4538-90cc-3e91f226f88b 2025-06-24 12:26:38,120 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5154a519-a1af-4538-90cc-3e91f226f88b 2025-06-24 12:26:38,133 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/eb6eb6a0-76c8-4017-adb0-d179a3c7f98e 2025-06-24 12:26:38,143 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/eb6eb6a0-76c8-4017-adb0-d179a3c7f98e 2025-06-24 12:26:38,153 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/d1867354-8e5b-4659-a478-051e4b61beb4 2025-06-24 12:26:38,161 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-24 12:26:38,161 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5154a519-a1af-4538-90cc-3e91f226f88b 2025-06-24 12:26:38,171 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/eb6eb6a0-76c8-4017-adb0-d179a3c7f98e 2025-06-24 12:26:38,189 - INFO - Verified VN network id 9 for VN 5154a519-a1af-4538-90cc-3e91f226f88b 2025-06-24 12:26:38,189 - INFO - Verifications in API Server for VN ctest-vn-42383199 passed 2025-06-24 12:26:38,190 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5154a519-a1af-4538-90cc-3e91f226f88b 2025-06-24 12:26:38,202 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/eb6eb6a0-76c8-4017-adb0-d179a3c7f98e 2025-06-24 12:26:38,212 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/eb6eb6a0-76c8-4017-adb0-d179a3c7f98e 2025-06-24 12:26:38,223 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/d1867354-8e5b-4659-a478-051e4b61beb4 2025-06-24 12:26:38,240 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06663654:ctest-vn-42383199', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06663654', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5860490544621241656', 'uuid-lslong': '10433783233264416907'}, 'enable': 'true', 'created': '2025-06-24T12:26:35', 'last-modified': '2025-06-24T12:26:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.547715'} 2025-06-24 12:26:38,249 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-24 12:26:38,249 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42383199 passed 2025-06-24 12:26:38,250 - DEBUG - ====Verifying policy data for ctest-vn-42383199 in API_Server ====== 2025-06-24 12:26:38,250 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-06-24 12:26:38,257 - DEBUG - Requesting: http://10.0.0.130:8082/domain/3fd53fae-fbea-4d01-b0a7-0cdcdb1b57c7 2025-06-24 12:26:38,272 - DEBUG - Requesting: http://10.0.0.130:8082/project/e59a3f0d-478d-40c5-a7d3-c8eefbeb1b03 2025-06-24 12:26:38,347 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5154a519-a1af-4538-90cc-3e91f226f88b 2025-06-24 12:26:38,360 - DEBUG - ==>Verifying data for policy with id: 8bf2a95a-1916-42ea-a558-91cab906cd98, fqn: ['default-domain', 'ctest-TestBasicPolicy-06663654', 'ctest-policy-allow-all-44427251'] 2025-06-24 12:26:38,360 - INFO - VN ctest-vn-42383199 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-24 12:26:38,360 - DEBUG - Verifying the vn in opserver 2025-06-24 12:26:38,360 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06663654:ctest-vn-42383199 virtual network link through opserver 10.0.0.130 2025-06-24 12:26:38,360 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-06-24 12:26:38,372 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06663654:ctest-vn-42383199', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06663654:ctest-vn-42383199?flat'} 2025-06-24 12:26:38,372 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06663654:ctest-vn-42383199 is found in opserver 2025-06-24 12:26:38,384 - DEBUG - Do not have enough data to verify VN in agent 2025-06-24 12:26:38,390 - DEBUG - VRF ids for VN ctest-vn-42383199: {} 2025-06-24 12:26:38,461 - DEBUG - Services list from nova: [, , ] 2025-06-24 12:26:39,522 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3530-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3530-1) 2025-06-24 12:26:40,894 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3530-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3530-1) 2025-06-24 12:26:40,894 - INFO - Waiting for VM ctest-TestBasicPolicy-06663654-98194524 to be up.. 2025-06-24 12:26:40,978 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-24 12:26:46,066 - DEBUG - VM is in ACTIVE state now 2025-06-24 12:26:46,066 - INFO - VM name : ctest-TestBasicPolicy-06663654-98194524 2025-06-24 12:26:46,153 - DEBUG - VM ctest-TestBasicPolicy-06663654-98194524 ID is 21368e42-77be-447a-b630-ecdc04141f89 2025-06-24 12:26:46,174 - DEBUG - VM ctest-TestBasicPolicy-06663654-98194524 launched on Node cn-jenkins-deploy-platform-ansible-os-3530-1 2025-06-24 12:26:46,267 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/21368e42-77be-447a-b630-ecdc04141f89 2025-06-24 12:26:46,278 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine-interface/34f22e02-59a6-4a65-9195-4440c46186c3 2025-06-24 12:26:49,550 - 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 1022ms') 2025-06-24 12:26:49,550 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-06663654-98194524 failed! 2025-06-24 12:26:49,606 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-06663654:ctest-vn-25401462 is 171.208.72.65 and allocation pool is NOT set 2025-06-24 12:26:51,665 - 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=4.08 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.64 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 2.639/3.360/4.081/0.721 ms') 2025-06-24 12:26:51,665 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-06663654-98194524 passed 2025-06-24 12:26:51,822 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-24 12:26:51,822 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-06663654-98194524, IP 171.208.72.67, Port 22 2025-06-24 12:26:51,877 - 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-06-24 12:26:51,969 - DEBUG - VM ctest-TestBasicPolicy-06663654-98194524 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-24 12:26:56,970 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-24 12:26:56,970 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-06663654-98194524, IP 171.208.72.67, Port 22 2025-06-24 12:26:57,125 - DEBUG - VM ctest-TestBasicPolicy-06663654-98194524 is ready for SSH connections 2025-06-24 12:26:57,126 - INFO - Waiting for VM ctest-TestBasicPolicy-06663654-54618515 to be up.. 2025-06-24 12:26:57,209 - DEBUG - VM is in ACTIVE state now 2025-06-24 12:26:57,209 - INFO - VM name : ctest-TestBasicPolicy-06663654-54618515 2025-06-24 12:26:57,294 - DEBUG - VM ctest-TestBasicPolicy-06663654-54618515 ID is 0281c3ce-279d-45cd-8729-8b91281794dd 2025-06-24 12:26:57,294 - DEBUG - VM ctest-TestBasicPolicy-06663654-54618515 launched on Node cn-jenkins-deploy-platform-ansible-os-3530-1 2025-06-24 12:26:57,412 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/0281c3ce-279d-45cd-8729-8b91281794dd 2025-06-24 12:26:57,424 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine-interface/8269179f-a2ac-41bc-8b25-6318209c334f 2025-06-24 12:26:58,705 - 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.52 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.466 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.466/1.493/2.520/1.027 ms') 2025-06-24 12:26:58,705 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-06663654-54618515 passed 2025-06-24 12:26:58,862 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-24 12:26:58,862 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-06663654-54618515, IP 185.110.123.131, Port 22 2025-06-24 12:26:59,021 - DEBUG - VM ctest-TestBasicPolicy-06663654-54618515 is ready for SSH connections 2025-06-24 12:26:59,022 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-24 12:26:59,022 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 185.110.123.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.130, gateway password: c0ntrail123 2025-06-24 12:26:59,022 - DEBUG - ping -s 56 -c 3 -W 1 185.110.123.131 2025-06-24 12:27:02,760 - DEBUG - PING 185.110.123.131 (185.110.123.131): 56 data bytes 64 bytes from 185.110.123.131: seq=0 ttl=63 time=4.259 ms 64 bytes from 185.110.123.131: seq=1 ttl=63 time=1.241 ms 64 bytes from 185.110.123.131: seq=2 ttl=63 time=0.796 ms --- 185.110.123.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.796/2.098/4.259 ms 2025-06-24 12:27:02,760 - INFO - Ping to IP 185.110.123.131 from VM ctest-TestBasicPolicy-06663654-98194524 passed 2025-06-24 12:27:02,945 - DEBUG - Policy Update Response {"network-policy": {"uuid": "8bf2a95a-1916-42ea-a558-91cab906cd98", "href": "http://10.0.0.130:8082/network-policy/8bf2a95a-1916-42ea-a558-91cab906cd98"}} 2025-06-24 12:27:02,946 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-24 12:27:02,946 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 185.110.123.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.130, gateway password: c0ntrail123 2025-06-24 12:27:02,946 - DEBUG - ping -s 56 -c 3 -W 1 185.110.123.131 2025-06-24 12:27:06,173 - DEBUG - PING 185.110.123.131 (185.110.123.131): 56 data bytes 64 bytes from 185.110.123.131: seq=0 ttl=63 time=1.669 ms --- 185.110.123.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.669/1.669/1.669 ms 2025-06-24 12:27:06,173 - WARNING - Ping to IP 185.110.123.131 from VM ctest-TestBasicPolicy-06663654-98194524 failed 2025-06-24 12:27:06,173 - INFO - Deleting VM ctest-TestBasicPolicy-06663654-54618515 2025-06-24 12:27:06,252 - INFO - Deleting VM ctest-TestBasicPolicy-06663654-98194524 2025-06-24 12:27:06,704 - INFO - Deleted policy ctest-policy-allow-all-44427251 2025-06-24 12:27:06,705 - INFO - Deleting VN ctest-vn-42383199 2025-06-24 12:27:06,750 - DEBUG - VN 5154a519-a1af-4538-90cc-3e91f226f88b still in use: Unable to complete operation on network 5154a519-a1af-4538-90cc-3e91f226f88b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e1828f02-94a4-400e-9594-80bace43ad67'] 2025-06-24 12:27:06,750 - WARNING - Deleting VN ctest-vn-42383199 failed..Will retry 2025-06-24 12:27:08,869 - DEBUG - Response for deleting network () 2025-06-24 12:27:08,869 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/eb6eb6a0-76c8-4017-adb0-d179a3c7f98e 2025-06-24 12:27:08,881 - DEBUG - Response Code: 404 2025-06-24 12:27:08,881 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-06-24 12:27:08,888 - DEBUG - Requesting: http://10.0.0.130:8082/domain/3fd53fae-fbea-4d01-b0a7-0cdcdb1b57c7 2025-06-24 12:27:08,947 - DEBUG - Requesting: http://10.0.0.130:8082/project/e59a3f0d-478d-40c5-a7d3-c8eefbeb1b03 2025-06-24 12:27:09,044 - INFO - Validated that VN ctest-vn-42383199 is not found in API Server 2025-06-24 12:27:09,058 - DEBUG - VN ctest-vn-42383199 is not present in Agent 10.0.0.130 2025-06-24 12:27:09,058 - INFO - Validated that VN ctest-vn-42383199 is not in any agent 2025-06-24 12:27:09,079 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-42383199 info 2025-06-24 12:27:09,079 - INFO - Deleting VN ctest-vn-25401462 2025-06-24 12:27:09,205 - DEBUG - Response for deleting network () 2025-06-24 12:27:09,205 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/6d1aab11-3058-402f-845a-5fbb10130e8b 2025-06-24 12:27:09,213 - DEBUG - Response Code: 404 2025-06-24 12:27:09,213 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-06-24 12:27:09,220 - DEBUG - Requesting: http://10.0.0.130:8082/domain/3fd53fae-fbea-4d01-b0a7-0cdcdb1b57c7 2025-06-24 12:27:09,277 - DEBUG - Requesting: http://10.0.0.130:8082/project/e59a3f0d-478d-40c5-a7d3-c8eefbeb1b03 2025-06-24 12:27:09,354 - INFO - Validated that VN ctest-vn-25401462 is not found in API Server 2025-06-24 12:27:09,366 - DEBUG - VN ctest-vn-25401462 is not present in Agent 10.0.0.130 2025-06-24 12:27:09,366 - INFO - Validated that VN ctest-vn-25401462 is not in any agent 2025-06-24 12:27:09,384 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-25401462 info 2025-06-24 12:27:09,640 - DEBUG - No XMPP flaps were noticed during the test 2025-06-24 12:27:09,640 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-06-24 12:27:09,640 - INFO - -------------------------------------------------------------------------------- 2025-06-24 12:27:10,356 - INFO - Deleted project: ctest-TestBasicPolicy-06663654, ID : e59a3f0d-478d-40c5-a7d3-c8eefbeb1b03