2025-08-08 09:54:09,323 - INFO - Domain Default found not creating 2025-08-08 09:54:09,503 - INFO - Project ctest-TestBasicPolicy-68139207 not found, creating it 2025-08-08 09:54:09,998 - INFO - Created Project:ctest-TestBasicPolicy-68139207, ID : 18221294-5b5d-4cc2-b01f-24ab39bb7954 2025-08-08 09:54:11,469 - INFO - ================================================================================ 2025-08-08 09:54:11,469 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-08-08 09:54:11,469 - 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-08-08 09:54:11,731 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.252': '0'}} with 2025-08-08 09:54:11,731 - INFO - Initial checks done. Running the testcase now 2025-08-08 09:54:11,731 - INFO - 2025-08-08 09:54:12,305 - DEBUG - Response for create_network : {'network': {'id': '774e6483-3517-4eb0-b892-682918e42195', 'name': 'ctest-vn-28697643', 'tenant_id': '182212945b5d4cc2b01f24ab39bb7954', 'project_id': '182212945b5d4cc2b01f24ab39bb7954', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68139207', 'ctest-vn-28697643'], 'port_security_enabled': True, 'description': ''}} 2025-08-08 09:54:12,507 - DEBUG - Response for create_subnet : {'subnet': {'id': '975be821-c181-4ae6-b054-998215a92c01', 'name': '', 'tenant_id': '182212945b5d4cc2b01f24ab39bb7954', 'network_id': '774e6483-3517-4eb0-b892-682918e42195', 'ip_version': 4, 'cidr': '208.176.225.192/26', 'allocation_pools': [{'start': '208.176.225.194', 'end': '208.176.225.254'}], 'gateway_ip': '208.176.225.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '208.176.225.194', 'tags': [], 'project_id': '182212945b5d4cc2b01f24ab39bb7954'}} 2025-08-08 09:54:12,526 - INFO - Created VN ctest-vn-28697643 2025-08-08 09:54:12,580 - DEBUG - VN ctest-vn-28697643 UUID is 774e6483-3517-4eb0-b892-682918e42195 2025-08-08 09:54:12,875 - DEBUG - Response for create_network : {'network': {'id': 'c92ab5d9-b858-4aa5-8e00-5c48a2a2c1ee', 'name': 'ctest-vn-68479316', 'tenant_id': '182212945b5d4cc2b01f24ab39bb7954', 'project_id': '182212945b5d4cc2b01f24ab39bb7954', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68139207', 'ctest-vn-68479316'], 'port_security_enabled': True, 'description': ''}} 2025-08-08 09:54:13,082 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c13c0f82-733d-4c6a-b476-7a6a222480be', 'name': '', 'tenant_id': '182212945b5d4cc2b01f24ab39bb7954', 'network_id': 'c92ab5d9-b858-4aa5-8e00-5c48a2a2c1ee', 'ip_version': 4, 'cidr': '75.74.17.128/26', 'allocation_pools': [{'start': '75.74.17.130', 'end': '75.74.17.190'}], 'gateway_ip': '75.74.17.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '75.74.17.130', 'tags': [], 'project_id': '182212945b5d4cc2b01f24ab39bb7954'}} 2025-08-08 09:54:13,102 - INFO - Created VN ctest-vn-68479316 2025-08-08 09:54:13,156 - DEBUG - VN ctest-vn-68479316 UUID is c92ab5d9-b858-4aa5-8e00-5c48a2a2c1ee 2025-08-08 09:54:13,282 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68139207:ctest-vn-28697643, 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-68139207:ctest-vn-68479316, 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-08-08 09:54:13,595 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '774e6483-3517-4eb0-b892-682918e42195', 'name': 'ctest-vn-28697643', 'tenant_id': '182212945b5d4cc2b01f24ab39bb7954', 'project_id': '182212945b5d4cc2b01f24ab39bb7954', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['975be821-c181-4ae6-b054-998215a92c01'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68139207', 'ctest-vn-28697643'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68139207', 'ctest-policy-allow-all-70993020']], 'subnet_ipam': [{'subnet_cidr': '208.176.225.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-08 09:54:13,886 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c92ab5d9-b858-4aa5-8e00-5c48a2a2c1ee', 'name': 'ctest-vn-68479316', 'tenant_id': '182212945b5d4cc2b01f24ab39bb7954', 'project_id': '182212945b5d4cc2b01f24ab39bb7954', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c13c0f82-733d-4c6a-b476-7a6a222480be'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68139207', 'ctest-vn-68479316'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68139207', 'ctest-policy-allow-all-70993020']], 'subnet_ipam': [{'subnet_cidr': '75.74.17.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-08 09:54:14,032 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-08 09:54:14,343 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-08 09:54:14,378 - DEBUG - Requesting: http://10.0.0.19:8082/domain/c3134b19-a992-456a-b41b-028373c69cd2 2025-08-08 09:54:14,394 - DEBUG - Requesting: http://10.0.0.19:8082/project/18221294-5b5d-4cc2-b01f-24ab39bb7954 2025-08-08 09:54:14,472 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/774e6483-3517-4eb0-b892-682918e42195 2025-08-08 09:54:14,484 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/774e6483-3517-4eb0-b892-682918e42195 2025-08-08 09:54:14,495 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/98f2303e-1487-4e18-9445-56c2aaecdfa0 2025-08-08 09:54:14,503 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/98f2303e-1487-4e18-9445-56c2aaecdfa0 2025-08-08 09:54:14,510 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/e0c5d1dd-393e-412b-bd97-1d8b4dab168e 2025-08-08 09:54:14,518 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-08 09:54:14,518 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/774e6483-3517-4eb0-b892-682918e42195 2025-08-08 09:54:14,528 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/98f2303e-1487-4e18-9445-56c2aaecdfa0 2025-08-08 09:54:14,545 - INFO - Verified VN network id 10 for VN 774e6483-3517-4eb0-b892-682918e42195 2025-08-08 09:54:14,545 - INFO - Verifications in API Server for VN ctest-vn-28697643 passed 2025-08-08 09:54:14,545 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/774e6483-3517-4eb0-b892-682918e42195 2025-08-08 09:54:14,560 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/98f2303e-1487-4e18-9445-56c2aaecdfa0 2025-08-08 09:54:14,571 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/98f2303e-1487-4e18-9445-56c2aaecdfa0 2025-08-08 09:54:14,580 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/e0c5d1dd-393e-412b-bd97-1d8b4dab168e 2025-08-08 09:54:14,597 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68139207:ctest-vn-28697643', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68139207', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8596919253391068848', 'uuid-lslong': '13299807175299047829'}, 'enable': 'true', 'created': '2025-08-08T09:54:12', 'last-modified': '2025-08-08T09:54:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.023813'} 2025-08-08 09:54:14,606 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-08 09:54:14,606 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28697643 passed 2025-08-08 09:54:14,607 - DEBUG - ====Verifying policy data for ctest-vn-28697643 in API_Server ====== 2025-08-08 09:54:14,607 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-08 09:54:14,614 - DEBUG - Requesting: http://10.0.0.19:8082/domain/c3134b19-a992-456a-b41b-028373c69cd2 2025-08-08 09:54:14,627 - DEBUG - Requesting: http://10.0.0.19:8082/project/18221294-5b5d-4cc2-b01f-24ab39bb7954 2025-08-08 09:54:14,701 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/774e6483-3517-4eb0-b892-682918e42195 2025-08-08 09:54:14,712 - DEBUG - ==>Verifying data for policy with id: 22ab6988-18f2-4d8f-ade2-d727739f3fd4, fqn: ['default-domain', 'ctest-TestBasicPolicy-68139207', 'ctest-policy-allow-all-70993020'] 2025-08-08 09:54:14,712 - INFO - VN ctest-vn-28697643 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-08 09:54:14,712 - DEBUG - Verifying the vn in opserver 2025-08-08 09:54:14,712 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68139207:ctest-vn-28697643 virtual network link through opserver 10.0.0.19 2025-08-08 09:54:14,712 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-08-08 09:54:15,007 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-08-08 09:54:15,068 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68139207:ctest-vn-28697643', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68139207:ctest-vn-28697643?flat'} 2025-08-08 09:54:15,068 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68139207:ctest-vn-28697643 is found in opserver 2025-08-08 09:54:15,080 - DEBUG - Do not have enough data to verify VN in agent 2025-08-08 09:54:15,086 - DEBUG - VRF ids for VN ctest-vn-28697643: {} 2025-08-08 09:54:15,086 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-08 09:54:15,093 - DEBUG - Requesting: http://10.0.0.19:8082/domain/c3134b19-a992-456a-b41b-028373c69cd2 2025-08-08 09:54:15,106 - DEBUG - Requesting: http://10.0.0.19:8082/project/18221294-5b5d-4cc2-b01f-24ab39bb7954 2025-08-08 09:54:15,186 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/c92ab5d9-b858-4aa5-8e00-5c48a2a2c1ee 2025-08-08 09:54:15,202 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/c92ab5d9-b858-4aa5-8e00-5c48a2a2c1ee 2025-08-08 09:54:15,215 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e2656bf6-358a-45b5-87bf-e383936c332f 2025-08-08 09:54:15,224 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e2656bf6-358a-45b5-87bf-e383936c332f 2025-08-08 09:54:15,232 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/5851049b-5eed-4316-b829-b6a5e9078662 2025-08-08 09:54:15,239 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-08 09:54:15,239 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/c92ab5d9-b858-4aa5-8e00-5c48a2a2c1ee 2025-08-08 09:54:15,251 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e2656bf6-358a-45b5-87bf-e383936c332f 2025-08-08 09:54:15,267 - INFO - Verified VN network id 11 for VN c92ab5d9-b858-4aa5-8e00-5c48a2a2c1ee 2025-08-08 09:54:15,268 - INFO - Verifications in API Server for VN ctest-vn-68479316 passed 2025-08-08 09:54:15,268 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/c92ab5d9-b858-4aa5-8e00-5c48a2a2c1ee 2025-08-08 09:54:15,279 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e2656bf6-358a-45b5-87bf-e383936c332f 2025-08-08 09:54:15,287 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e2656bf6-358a-45b5-87bf-e383936c332f 2025-08-08 09:54:15,295 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/5851049b-5eed-4316-b829-b6a5e9078662 2025-08-08 09:54:15,311 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68139207:ctest-vn-68479316', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68139207', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14495598297350687397', 'uuid-lslong': '10232279820421743086'}, 'enable': 'true', 'created': '2025-08-08T09:54:12', 'last-modified': '2025-08-08T09:54:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.499047'} 2025-08-08 09:54:15,318 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-08 09:54:15,318 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68479316 passed 2025-08-08 09:54:15,319 - DEBUG - ====Verifying policy data for ctest-vn-68479316 in API_Server ====== 2025-08-08 09:54:15,319 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-08 09:54:15,325 - DEBUG - Requesting: http://10.0.0.19:8082/domain/c3134b19-a992-456a-b41b-028373c69cd2 2025-08-08 09:54:15,338 - DEBUG - Requesting: http://10.0.0.19:8082/project/18221294-5b5d-4cc2-b01f-24ab39bb7954 2025-08-08 09:54:15,414 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/c92ab5d9-b858-4aa5-8e00-5c48a2a2c1ee 2025-08-08 09:54:15,425 - DEBUG - ==>Verifying data for policy with id: 22ab6988-18f2-4d8f-ade2-d727739f3fd4, fqn: ['default-domain', 'ctest-TestBasicPolicy-68139207', 'ctest-policy-allow-all-70993020'] 2025-08-08 09:54:15,425 - INFO - VN ctest-vn-68479316 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-08 09:54:15,425 - DEBUG - Verifying the vn in opserver 2025-08-08 09:54:15,425 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68139207:ctest-vn-68479316 virtual network link through opserver 10.0.0.19 2025-08-08 09:54:15,425 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-08-08 09:54:15,437 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68139207:ctest-vn-68479316', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68139207:ctest-vn-68479316?flat'} 2025-08-08 09:54:15,437 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68139207:ctest-vn-68479316 is found in opserver 2025-08-08 09:54:15,450 - DEBUG - Do not have enough data to verify VN in agent 2025-08-08 09:54:15,455 - DEBUG - VRF ids for VN ctest-vn-68479316: {} 2025-08-08 09:54:15,524 - DEBUG - Services list from nova: [, , ] 2025-08-08 09:54:16,584 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3783-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3783-1) 2025-08-08 09:54:17,750 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3783-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3783-1) 2025-08-08 09:54:17,750 - INFO - Waiting for VM ctest-TestBasicPolicy-68139207-74795174 to be up.. 2025-08-08 09:54:17,838 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-08 09:54:22,923 - DEBUG - VM is in ACTIVE state now 2025-08-08 09:54:22,923 - INFO - VM name : ctest-TestBasicPolicy-68139207-74795174 2025-08-08 09:54:23,027 - DEBUG - VM ctest-TestBasicPolicy-68139207-74795174 ID is 4960a4c3-e346-4f2f-a57f-8aea9bc572ae 2025-08-08 09:54:23,047 - DEBUG - VM ctest-TestBasicPolicy-68139207-74795174 launched on Node cn-jenkins-deploy-platform-ansible-os-3783-1 2025-08-08 09:54:23,138 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine/4960a4c3-e346-4f2f-a57f-8aea9bc572ae 2025-08-08 09:54:23,148 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine-interface/c3c3ce3b-cf62-412f-ad51-8b5bb6a4276c 2025-08-08 09:54:26,412 - 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 1015ms') 2025-08-08 09:54:26,412 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-68139207-74795174 failed! 2025-08-08 09:54:26,468 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-68139207:ctest-vn-28697643 is 208.176.225.193 and allocation pool is NOT set 2025-08-08 09:54:28,528 - 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.04 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.595 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.595/4.319/8.043/3.724 ms') 2025-08-08 09:54:28,528 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-68139207-74795174 passed 2025-08-08 09:54:28,684 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-08 09:54:28,684 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-68139207-74795174, IP 208.176.225.195, Port 22 2025-08-08 09:54:28,750 - 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-08-08 09:54:28,833 - DEBUG - VM ctest-TestBasicPolicy-68139207-74795174 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-08 09:54:33,834 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-08 09:54:33,834 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-68139207-74795174, IP 208.176.225.195, Port 22 2025-08-08 09:54:34,012 - DEBUG - VM ctest-TestBasicPolicy-68139207-74795174 is ready for SSH connections 2025-08-08 09:54:34,012 - INFO - Waiting for VM ctest-TestBasicPolicy-68139207-58889646 to be up.. 2025-08-08 09:54:34,095 - DEBUG - VM is in ACTIVE state now 2025-08-08 09:54:34,095 - INFO - VM name : ctest-TestBasicPolicy-68139207-58889646 2025-08-08 09:54:34,176 - DEBUG - VM ctest-TestBasicPolicy-68139207-58889646 ID is 24be6bce-2fe5-49e9-997f-b770bf1c145a 2025-08-08 09:54:34,176 - DEBUG - VM ctest-TestBasicPolicy-68139207-58889646 launched on Node cn-jenkins-deploy-platform-ansible-os-3783-1 2025-08-08 09:54:34,267 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine/24be6bce-2fe5-49e9-997f-b770bf1c145a 2025-08-08 09:54:34,276 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine-interface/3f38c178-b623-4ddf-b106-3e7f9a9f7c6f 2025-08-08 09:54:35,524 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=3.04 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.439 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.439/1.738/3.037/1.299 ms') 2025-08-08 09:54:35,524 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-68139207-58889646 passed 2025-08-08 09:54:35,680 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-08 09:54:35,680 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-68139207-58889646, IP 75.74.17.131, Port 22 2025-08-08 09:54:35,843 - DEBUG - VM ctest-TestBasicPolicy-68139207-58889646 is ready for SSH connections 2025-08-08 09:54:35,844 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-08 09:54:35,844 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 75.74.17.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.19, gateway password: c0ntrail123 2025-08-08 09:54:35,844 - DEBUG - ping -s 56 -c 3 -W 1 75.74.17.131 2025-08-08 09:54:39,543 - DEBUG - PING 75.74.17.131 (75.74.17.131): 56 data bytes 64 bytes from 75.74.17.131: seq=0 ttl=63 time=3.306 ms 64 bytes from 75.74.17.131: seq=1 ttl=63 time=1.628 ms 64 bytes from 75.74.17.131: seq=2 ttl=63 time=1.023 ms --- 75.74.17.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.023/1.985/3.306 ms 2025-08-08 09:54:39,543 - INFO - Ping to IP 75.74.17.131 from VM ctest-TestBasicPolicy-68139207-74795174 passed 2025-08-08 09:54:39,735 - DEBUG - Policy Update Response {"network-policy": {"uuid": "22ab6988-18f2-4d8f-ade2-d727739f3fd4", "href": "http://10.0.0.19:8082/network-policy/22ab6988-18f2-4d8f-ade2-d727739f3fd4"}} 2025-08-08 09:54:39,736 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-08 09:54:39,736 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 75.74.17.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.19, gateway password: c0ntrail123 2025-08-08 09:54:39,736 - DEBUG - ping -s 56 -c 3 -W 1 75.74.17.131 2025-08-08 09:54:42,944 - DEBUG - PING 75.74.17.131 (75.74.17.131): 56 data bytes --- 75.74.17.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-08-08 09:54:42,944 - WARNING - Ping to IP 75.74.17.131 from VM ctest-TestBasicPolicy-68139207-74795174 failed 2025-08-08 09:54:42,945 - INFO - Deleting VM ctest-TestBasicPolicy-68139207-58889646 2025-08-08 09:54:43,017 - INFO - Deleting VM ctest-TestBasicPolicy-68139207-74795174 2025-08-08 09:54:43,437 - INFO - Deleted policy ctest-policy-allow-all-70993020 2025-08-08 09:54:43,437 - INFO - Deleting VN ctest-vn-68479316 2025-08-08 09:54:43,496 - DEBUG - VN c92ab5d9-b858-4aa5-8e00-5c48a2a2c1ee still in use: Unable to complete operation on network c92ab5d9-b858-4aa5-8e00-5c48a2a2c1ee. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-64668a98-c265-491c-b9c3-c26eb6ee9233'] 2025-08-08 09:54:43,496 - WARNING - Deleting VN ctest-vn-68479316 failed..Will retry 2025-08-08 09:54:45,624 - DEBUG - Response for deleting network () 2025-08-08 09:54:45,624 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e2656bf6-358a-45b5-87bf-e383936c332f 2025-08-08 09:54:45,635 - DEBUG - Response Code: 404 2025-08-08 09:54:45,636 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-08 09:54:45,644 - DEBUG - Requesting: http://10.0.0.19:8082/domain/c3134b19-a992-456a-b41b-028373c69cd2 2025-08-08 09:54:45,701 - DEBUG - Requesting: http://10.0.0.19:8082/project/18221294-5b5d-4cc2-b01f-24ab39bb7954 2025-08-08 09:54:45,780 - INFO - Validated that VN ctest-vn-68479316 is not found in API Server 2025-08-08 09:54:45,792 - DEBUG - VN ctest-vn-68479316 is not present in Agent 10.0.0.19 2025-08-08 09:54:45,793 - INFO - Validated that VN ctest-vn-68479316 is not in any agent 2025-08-08 09:54:45,810 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-68479316 info 2025-08-08 09:54:45,810 - INFO - Deleting VN ctest-vn-28697643 2025-08-08 09:54:45,920 - DEBUG - Response for deleting network () 2025-08-08 09:54:45,920 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/98f2303e-1487-4e18-9445-56c2aaecdfa0 2025-08-08 09:54:45,931 - DEBUG - Response Code: 404 2025-08-08 09:54:45,931 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-08 09:54:45,937 - DEBUG - Requesting: http://10.0.0.19:8082/domain/c3134b19-a992-456a-b41b-028373c69cd2 2025-08-08 09:54:45,991 - DEBUG - Requesting: http://10.0.0.19:8082/project/18221294-5b5d-4cc2-b01f-24ab39bb7954 2025-08-08 09:54:46,065 - INFO - Validated that VN ctest-vn-28697643 is not found in API Server 2025-08-08 09:54:46,077 - DEBUG - VN ctest-vn-28697643 is not present in Agent 10.0.0.19 2025-08-08 09:54:46,077 - INFO - Validated that VN ctest-vn-28697643 is not in any agent 2025-08-08 09:54:46,095 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-28697643 info 2025-08-08 09:54:46,357 - DEBUG - No XMPP flaps were noticed during the test
2025-08-08 09:54:46,357 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-08-08 09:54:46,357 - INFO - -------------------------------------------------------------------------------- 2025-08-08 09:54:47,070 - INFO - Deleted project: ctest-TestBasicPolicy-68139207, ID : 18221294-5b5d-4cc2-b01f-24ab39bb7954