2025-04-16 17:19:21,360 - INFO - Domain Default found not creating 2025-04-16 17:19:21,552 - INFO - Project ctest-TestBasicPolicy-64338380 not found, creating it 2025-04-16 17:19:22,055 - INFO - Created Project:ctest-TestBasicPolicy-64338380, ID : 8befb256-f3c1-4967-89de-d578f9fb45cb 2025-04-16 17:19:23,680 - INFO - ================================================================================ 2025-04-16 17:19:23,680 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-16 17:19:23,680 - 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-16 17:19:23,955 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-04-16 17:19:23,955 - INFO - Initial checks done. Running the testcase now 2025-04-16 17:19:23,955 - INFO - 2025-04-16 17:19:24,575 - DEBUG - Response for create_network : {'network': {'id': 'b964e2ce-c694-423f-9ab8-09df544964d1', 'name': 'ctest-vn-59757299', 'tenant_id': '8befb256f3c1496789ded578f9fb45cb', 'project_id': '8befb256f3c1496789ded578f9fb45cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64338380', 'ctest-vn-59757299'], 'port_security_enabled': True, 'description': ''}} 2025-04-16 17:19:24,797 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a1e78be7-3754-4587-ba3f-04d79f676fd6', 'name': '', 'tenant_id': '8befb256f3c1496789ded578f9fb45cb', 'network_id': 'b964e2ce-c694-423f-9ab8-09df544964d1', 'ip_version': 4, 'cidr': '97.223.26.128/26', 'allocation_pools': [{'start': '97.223.26.130', 'end': '97.223.26.190'}], 'gateway_ip': '97.223.26.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.223.26.130', 'tags': [], 'project_id': '8befb256f3c1496789ded578f9fb45cb'}} 2025-04-16 17:19:24,819 - INFO - Created VN ctest-vn-59757299 2025-04-16 17:19:24,875 - DEBUG - VN ctest-vn-59757299 UUID is b964e2ce-c694-423f-9ab8-09df544964d1 2025-04-16 17:19:25,254 - DEBUG - Response for create_network : {'network': {'id': 'fc78721c-90e4-468c-809a-4b1fdd477a4a', 'name': 'ctest-vn-34338012', 'tenant_id': '8befb256f3c1496789ded578f9fb45cb', 'project_id': '8befb256f3c1496789ded578f9fb45cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64338380', 'ctest-vn-34338012'], 'port_security_enabled': True, 'description': ''}} 2025-04-16 17:19:25,775 - DEBUG - Response for create_subnet : {'subnet': {'id': '23521c27-80e3-4fc9-8e39-62a2c2d39406', 'name': '', 'tenant_id': '8befb256f3c1496789ded578f9fb45cb', 'network_id': 'fc78721c-90e4-468c-809a-4b1fdd477a4a', 'ip_version': 4, 'cidr': '19.44.163.128/26', 'allocation_pools': [{'start': '19.44.163.130', 'end': '19.44.163.190'}], 'gateway_ip': '19.44.163.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.44.163.130', 'tags': [], 'project_id': '8befb256f3c1496789ded578f9fb45cb'}} 2025-04-16 17:19:25,812 - INFO - Created VN ctest-vn-34338012 2025-04-16 17:19:25,871 - DEBUG - VN ctest-vn-34338012 UUID is fc78721c-90e4-468c-809a-4b1fdd477a4a 2025-04-16 17:19:26,084 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-64338380:ctest-vn-59757299, 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-64338380:ctest-vn-34338012, 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-16 17:19:26,496 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b964e2ce-c694-423f-9ab8-09df544964d1', 'name': 'ctest-vn-59757299', 'tenant_id': '8befb256f3c1496789ded578f9fb45cb', 'project_id': '8befb256f3c1496789ded578f9fb45cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a1e78be7-3754-4587-ba3f-04d79f676fd6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64338380', 'ctest-vn-59757299'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64338380', 'ctest-policy-allow-all-73141748']], 'subnet_ipam': [{'subnet_cidr': '97.223.26.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-16 17:19:26,785 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fc78721c-90e4-468c-809a-4b1fdd477a4a', 'name': 'ctest-vn-34338012', 'tenant_id': '8befb256f3c1496789ded578f9fb45cb', 'project_id': '8befb256f3c1496789ded578f9fb45cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['23521c27-80e3-4fc9-8e39-62a2c2d39406'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64338380', 'ctest-vn-34338012'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64338380', 'ctest-policy-allow-all-73141748']], 'subnet_ipam': [{'subnet_cidr': '19.44.163.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-16 17:19:26,959 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-16 17:19:27,285 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-16 17:19:27,335 - DEBUG - Requesting: http://10.0.0.254:8082/domain/348e3673-7328-4d07-9c0d-59eb02b00f54 2025-04-16 17:19:27,357 - DEBUG - Requesting: http://10.0.0.254:8082/project/8befb256-f3c1-4967-89de-d578f9fb45cb 2025-04-16 17:19:27,445 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b964e2ce-c694-423f-9ab8-09df544964d1 2025-04-16 17:19:27,463 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b964e2ce-c694-423f-9ab8-09df544964d1 2025-04-16 17:19:27,478 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8ef087d1-608f-45f2-a2be-7f9759c14d08 2025-04-16 17:19:27,489 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8ef087d1-608f-45f2-a2be-7f9759c14d08 2025-04-16 17:19:27,500 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1d523683-6cd1-4abf-9987-f8a9d46e6b17 2025-04-16 17:19:27,509 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-16 17:19:27,510 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b964e2ce-c694-423f-9ab8-09df544964d1 2025-04-16 17:19:27,525 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8ef087d1-608f-45f2-a2be-7f9759c14d08 2025-04-16 17:19:27,551 - INFO - Verified VN network id 9 for VN b964e2ce-c694-423f-9ab8-09df544964d1 2025-04-16 17:19:27,551 - INFO - Verifications in API Server for VN ctest-vn-59757299 passed 2025-04-16 17:19:27,551 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b964e2ce-c694-423f-9ab8-09df544964d1 2025-04-16 17:19:27,564 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8ef087d1-608f-45f2-a2be-7f9759c14d08 2025-04-16 17:19:27,574 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8ef087d1-608f-45f2-a2be-7f9759c14d08 2025-04-16 17:19:27,583 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1d523683-6cd1-4abf-9987-f8a9d46e6b17 2025-04-16 17:19:27,602 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64338380:ctest-vn-59757299', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64338380', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13359051772410479167', 'uuid-lslong': '11148671732352115921'}, 'enable': 'true', 'created': '2025-04-16T17:19:24', 'last-modified': '2025-04-16T17:19:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.140299'} 2025-04-16 17:19:27,613 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-16 17:19:27,613 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59757299 passed 2025-04-16 17:19:27,613 - DEBUG - ====Verifying policy data for ctest-vn-59757299 in API_Server ====== 2025-04-16 17:19:27,613 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-16 17:19:27,622 - DEBUG - Requesting: http://10.0.0.254:8082/domain/348e3673-7328-4d07-9c0d-59eb02b00f54 2025-04-16 17:19:27,641 - DEBUG - Requesting: http://10.0.0.254:8082/project/8befb256-f3c1-4967-89de-d578f9fb45cb 2025-04-16 17:19:27,720 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b964e2ce-c694-423f-9ab8-09df544964d1 2025-04-16 17:19:27,732 - DEBUG - ==>Verifying data for policy with id: 4fd82bfa-709d-49b3-8fe7-30c991fc7700, fqn: ['default-domain', 'ctest-TestBasicPolicy-64338380', 'ctest-policy-allow-all-73141748'] 2025-04-16 17:19:27,732 - INFO - VN ctest-vn-59757299 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-16 17:19:27,732 - DEBUG - Verifying the vn in opserver 2025-04-16 17:19:27,732 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64338380:ctest-vn-59757299 virtual network link through opserver 10.0.0.254 2025-04-16 17:19:27,733 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-16 17:19:28,035 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-16 17:19:28,116 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64338380:ctest-vn-59757299', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64338380:ctest-vn-59757299?flat'} 2025-04-16 17:19:28,116 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64338380:ctest-vn-59757299 is found in opserver 2025-04-16 17:19:28,130 - DEBUG - Do not have enough data to verify VN in agent 2025-04-16 17:19:28,137 - DEBUG - VRF ids for VN ctest-vn-59757299: {} 2025-04-16 17:19:28,137 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-16 17:19:28,145 - DEBUG - Requesting: http://10.0.0.254:8082/domain/348e3673-7328-4d07-9c0d-59eb02b00f54 2025-04-16 17:19:28,160 - DEBUG - Requesting: http://10.0.0.254:8082/project/8befb256-f3c1-4967-89de-d578f9fb45cb 2025-04-16 17:19:28,251 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fc78721c-90e4-468c-809a-4b1fdd477a4a 2025-04-16 17:19:28,266 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fc78721c-90e4-468c-809a-4b1fdd477a4a 2025-04-16 17:19:28,278 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/99a1439d-f1e5-4d16-be12-36c623f1f205 2025-04-16 17:19:28,288 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/99a1439d-f1e5-4d16-be12-36c623f1f205 2025-04-16 17:19:28,297 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ac4d0e28-ef8c-4c1e-967d-14cec9756859 2025-04-16 17:19:28,305 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-16 17:19:28,305 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fc78721c-90e4-468c-809a-4b1fdd477a4a 2025-04-16 17:19:28,318 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/99a1439d-f1e5-4d16-be12-36c623f1f205 2025-04-16 17:19:28,340 - INFO - Verified VN network id 10 for VN fc78721c-90e4-468c-809a-4b1fdd477a4a 2025-04-16 17:19:28,340 - INFO - Verifications in API Server for VN ctest-vn-34338012 passed 2025-04-16 17:19:28,341 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fc78721c-90e4-468c-809a-4b1fdd477a4a 2025-04-16 17:19:28,357 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/99a1439d-f1e5-4d16-be12-36c623f1f205 2025-04-16 17:19:28,378 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/99a1439d-f1e5-4d16-be12-36c623f1f205 2025-04-16 17:19:28,390 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ac4d0e28-ef8c-4c1e-967d-14cec9756859 2025-04-16 17:19:28,408 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64338380:ctest-vn-34338012', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64338380', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18192416161778648716', 'uuid-lslong': '9266801783496735306'}, 'enable': 'true', 'created': '2025-04-16T17:19:25', 'last-modified': '2025-04-16T17:19:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.658109'} 2025-04-16 17:19:28,416 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-16 17:19:28,416 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34338012 passed 2025-04-16 17:19:28,416 - DEBUG - ====Verifying policy data for ctest-vn-34338012 in API_Server ====== 2025-04-16 17:19:28,416 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-16 17:19:28,424 - DEBUG - Requesting: http://10.0.0.254:8082/domain/348e3673-7328-4d07-9c0d-59eb02b00f54 2025-04-16 17:19:28,440 - DEBUG - Requesting: http://10.0.0.254:8082/project/8befb256-f3c1-4967-89de-d578f9fb45cb 2025-04-16 17:19:28,532 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fc78721c-90e4-468c-809a-4b1fdd477a4a 2025-04-16 17:19:28,546 - DEBUG - ==>Verifying data for policy with id: 4fd82bfa-709d-49b3-8fe7-30c991fc7700, fqn: ['default-domain', 'ctest-TestBasicPolicy-64338380', 'ctest-policy-allow-all-73141748'] 2025-04-16 17:19:28,546 - INFO - VN ctest-vn-34338012 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-16 17:19:28,546 - DEBUG - Verifying the vn in opserver 2025-04-16 17:19:28,546 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64338380:ctest-vn-34338012 virtual network link through opserver 10.0.0.254 2025-04-16 17:19:28,546 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-16 17:19:28,561 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64338380:ctest-vn-34338012', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64338380:ctest-vn-34338012?flat'} 2025-04-16 17:19:28,562 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64338380:ctest-vn-34338012 is found in opserver 2025-04-16 17:19:28,576 - DEBUG - Do not have enough data to verify VN in agent 2025-04-16 17:19:28,582 - DEBUG - VRF ids for VN ctest-vn-34338012: {} 2025-04-16 17:19:28,655 - DEBUG - Services list from nova: [, , ] 2025-04-16 17:19:29,980 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3123-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3123-1) 2025-04-16 17:19:31,325 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3123-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3123-1) 2025-04-16 17:19:31,325 - INFO - Waiting for VM ctest-TestBasicPolicy-64338380-47367004 to be up.. 2025-04-16 17:19:31,425 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-16 17:19:36,527 - DEBUG - VM is in ACTIVE state now 2025-04-16 17:19:36,527 - INFO - VM name : ctest-TestBasicPolicy-64338380-47367004 2025-04-16 17:19:36,637 - DEBUG - VM ctest-TestBasicPolicy-64338380-47367004 ID is dca38112-de88-4eaf-8a51-0ec1b99c3a20 2025-04-16 17:19:36,666 - DEBUG - VM ctest-TestBasicPolicy-64338380-47367004 launched on Node cn-jenkins-deploy-platform-ansible-os-3123-1 2025-04-16 17:19:36,774 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/dca38112-de88-4eaf-8a51-0ec1b99c3a20 2025-04-16 17:19:36,785 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/50b7f5d4-f073-4a1e-90b1-1e158176c600 2025-04-16 17:19:40,013 - 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 1014ms') 2025-04-16 17:19:40,013 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-64338380-47367004 failed! 2025-04-16 17:19:40,075 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-64338380:ctest-vn-59757299 is 97.223.26.129 and allocation pool is NOT set 2025-04-16 17:19:42,140 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=9.41 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.66 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.658/5.534/9.410/3.876 ms') 2025-04-16 17:19:42,140 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-64338380-47367004 passed 2025-04-16 17:19:42,303 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 17:19:42,303 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-64338380-47367004, IP 97.223.26.131, Port 22 2025-04-16 17:19:42,369 - 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-16 17:19:42,535 - DEBUG - VM ctest-TestBasicPolicy-64338380-47367004 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-16 17:19:47,536 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 17:19:47,536 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-64338380-47367004, IP 97.223.26.131, Port 22 2025-04-16 17:19:47,709 - DEBUG - VM ctest-TestBasicPolicy-64338380-47367004 is ready for SSH connections 2025-04-16 17:19:47,709 - INFO - Waiting for VM ctest-TestBasicPolicy-64338380-97457589 to be up.. 2025-04-16 17:19:47,809 - DEBUG - VM is in ACTIVE state now 2025-04-16 17:19:47,809 - INFO - VM name : ctest-TestBasicPolicy-64338380-97457589 2025-04-16 17:19:47,913 - DEBUG - VM ctest-TestBasicPolicy-64338380-97457589 ID is fc6d0d0b-ccf6-438d-a43e-31da48ddae5b 2025-04-16 17:19:47,913 - DEBUG - VM ctest-TestBasicPolicy-64338380-97457589 launched on Node cn-jenkins-deploy-platform-ansible-os-3123-1 2025-04-16 17:19:48,012 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/fc6d0d0b-ccf6-438d-a43e-31da48ddae5b 2025-04-16 17:19:48,023 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/9b115e91-7b1e-4d93-9700-6d8a68f6c2fa 2025-04-16 17:19:49,279 - 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=4.52 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.463 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.463/2.493/4.523/2.030 ms') 2025-04-16 17:19:49,279 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-64338380-97457589 passed 2025-04-16 17:19:49,435 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 17:19:49,435 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-64338380-97457589, IP 19.44.163.131, Port 22 2025-04-16 17:19:49,591 - DEBUG - VM ctest-TestBasicPolicy-64338380-97457589 is ready for SSH connections 2025-04-16 17:19:49,591 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 17:19:49,591 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 19.44.163.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-04-16 17:19:49,591 - DEBUG - ping -s 56 -c 3 -W 1 19.44.163.131 2025-04-16 17:19:53,719 - DEBUG - PING 19.44.163.131 (19.44.163.131): 56 data bytes 64 bytes from 19.44.163.131: seq=0 ttl=63 time=4.058 ms 64 bytes from 19.44.163.131: seq=1 ttl=63 time=1.238 ms 64 bytes from 19.44.163.131: seq=2 ttl=63 time=1.221 ms --- 19.44.163.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.221/2.172/4.058 ms 2025-04-16 17:19:53,719 - INFO - Ping to IP 19.44.163.131 from VM ctest-TestBasicPolicy-64338380-47367004 passed 2025-04-16 17:19:53,930 - DEBUG - Policy Update Response {"network-policy": {"uuid": "4fd82bfa-709d-49b3-8fe7-30c991fc7700", "href": "http://10.0.0.254:8082/network-policy/4fd82bfa-709d-49b3-8fe7-30c991fc7700"}} 2025-04-16 17:19:53,931 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 17:19:53,931 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 19.44.163.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-04-16 17:19:53,931 - DEBUG - ping -s 56 -c 3 -W 1 19.44.163.131 2025-04-16 17:19:57,163 - DEBUG - PING 19.44.163.131 (19.44.163.131): 56 data bytes 64 bytes from 19.44.163.131: seq=0 ttl=63 time=2.006 ms --- 19.44.163.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.006/2.006/2.006 ms 2025-04-16 17:19:57,163 - WARNING - Ping to IP 19.44.163.131 from VM ctest-TestBasicPolicy-64338380-47367004 failed 2025-04-16 17:19:57,163 - INFO - Deleting VM ctest-TestBasicPolicy-64338380-97457589 2025-04-16 17:19:57,256 - INFO - Deleting VM ctest-TestBasicPolicy-64338380-47367004 2025-04-16 17:19:57,806 - INFO - Deleted policy ctest-policy-allow-all-73141748 2025-04-16 17:19:57,807 - INFO - Deleting VN ctest-vn-34338012 2025-04-16 17:19:57,855 - DEBUG - VN fc78721c-90e4-468c-809a-4b1fdd477a4a still in use: Unable to complete operation on network fc78721c-90e4-468c-809a-4b1fdd477a4a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ed9bd838-fb6d-404e-9683-b2afca89160f'] 2025-04-16 17:19:57,855 - WARNING - Deleting VN ctest-vn-34338012 failed..Will retry 2025-04-16 17:19:59,995 - DEBUG - Response for deleting network () 2025-04-16 17:19:59,995 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/99a1439d-f1e5-4d16-be12-36c623f1f205 2025-04-16 17:20:00,002 - DEBUG - Response Code: 404 2025-04-16 17:20:00,003 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-16 17:20:00,010 - DEBUG - Requesting: http://10.0.0.254:8082/domain/348e3673-7328-4d07-9c0d-59eb02b00f54 2025-04-16 17:20:00,070 - DEBUG - Requesting: http://10.0.0.254:8082/project/8befb256-f3c1-4967-89de-d578f9fb45cb 2025-04-16 17:20:00,155 - INFO - Validated that VN ctest-vn-34338012 is not found in API Server 2025-04-16 17:20:00,168 - DEBUG - VN ctest-vn-34338012 is not present in Agent 10.0.0.254 2025-04-16 17:20:00,168 - INFO - Validated that VN ctest-vn-34338012 is not in any agent 2025-04-16 17:20:00,187 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-34338012 info 2025-04-16 17:20:00,187 - INFO - Deleting VN ctest-vn-59757299 2025-04-16 17:20:00,313 - DEBUG - Response for deleting network () 2025-04-16 17:20:00,313 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8ef087d1-608f-45f2-a2be-7f9759c14d08 2025-04-16 17:20:00,322 - DEBUG - Response Code: 404 2025-04-16 17:20:00,322 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-16 17:20:00,330 - DEBUG - Requesting: http://10.0.0.254:8082/domain/348e3673-7328-4d07-9c0d-59eb02b00f54 2025-04-16 17:20:00,389 - DEBUG - Requesting: http://10.0.0.254:8082/project/8befb256-f3c1-4967-89de-d578f9fb45cb 2025-04-16 17:20:00,469 - INFO - Validated that VN ctest-vn-59757299 is not found in API Server 2025-04-16 17:20:00,481 - DEBUG - VN ctest-vn-59757299 is not present in Agent 10.0.0.254 2025-04-16 17:20:00,481 - INFO - Validated that VN ctest-vn-59757299 is not in any agent 2025-04-16 17:20:00,501 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-59757299 info 2025-04-16 17:20:00,762 - DEBUG - No XMPP flaps were noticed during the test
2025-04-16 17:20:00,763 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37]
2025-04-16 17:20:00,763 - INFO - -------------------------------------------------------------------------------- 2025-04-16 17:20:01,481 - INFO - Deleted project: ctest-TestBasicPolicy-64338380, ID : 8befb256-f3c1-4967-89de-d578f9fb45cb