2025-11-10 20:14:40,967 - INFO - Domain Default found not creating 2025-11-10 20:14:41,347 - INFO - Project ctest-TestBasicPolicy-48682345 not found, creating it 2025-11-10 20:14:42,103 - INFO - Created Project:ctest-TestBasicPolicy-48682345, ID : 7c91d56b-6c89-44c2-83b1-7ceb74b77643 2025-11-10 20:14:44,336 - INFO - ================================================================================ 2025-11-10 20:14:44,336 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-11-10 20:14:44,336 - 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-11-10 20:14:44,652 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0'}} with 2025-11-10 20:14:44,653 - INFO - Initial checks done. Running the testcase now 2025-11-10 20:14:44,653 - INFO - 2025-11-10 20:14:45,543 - DEBUG - Response for create_network : {'network': {'id': '40fb1fb8-4c53-4334-8941-1983e5f02cd2', 'name': 'ctest-vn-81145505', 'tenant_id': '7c91d56b6c8944c283b17ceb74b77643', 'project_id': '7c91d56b6c8944c283b17ceb74b77643', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48682345', 'ctest-vn-81145505'], 'port_security_enabled': True, 'description': ''}} 2025-11-10 20:14:45,796 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a9a28956-e86e-4489-9781-1c53d8533a08', 'name': '', 'tenant_id': '7c91d56b6c8944c283b17ceb74b77643', 'network_id': '40fb1fb8-4c53-4334-8941-1983e5f02cd2', 'ip_version': 4, 'cidr': '130.144.135.64/26', 'allocation_pools': [{'start': '130.144.135.66', 'end': '130.144.135.126'}], 'gateway_ip': '130.144.135.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.144.135.66', 'tags': [], 'project_id': '7c91d56b6c8944c283b17ceb74b77643'}} 2025-11-10 20:14:45,826 - INFO - Created VN ctest-vn-81145505 2025-11-10 20:14:45,890 - DEBUG - VN ctest-vn-81145505 UUID is 40fb1fb8-4c53-4334-8941-1983e5f02cd2 2025-11-10 20:14:46,260 - DEBUG - Response for create_network : {'network': {'id': '37e5d363-4514-47f3-a248-a2bc00087ad4', 'name': 'ctest-vn-81601220', 'tenant_id': '7c91d56b6c8944c283b17ceb74b77643', 'project_id': '7c91d56b6c8944c283b17ceb74b77643', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48682345', 'ctest-vn-81601220'], 'port_security_enabled': True, 'description': ''}} 2025-11-10 20:14:46,451 - DEBUG - Response for create_subnet : {'subnet': {'id': '7cdfe0a8-a370-4a4e-94a6-ec362cb55b5d', 'name': '', 'tenant_id': '7c91d56b6c8944c283b17ceb74b77643', 'network_id': '37e5d363-4514-47f3-a248-a2bc00087ad4', 'ip_version': 4, 'cidr': '45.123.84.64/26', 'allocation_pools': [{'start': '45.123.84.66', 'end': '45.123.84.126'}], 'gateway_ip': '45.123.84.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.123.84.66', 'tags': [], 'project_id': '7c91d56b6c8944c283b17ceb74b77643'}} 2025-11-10 20:14:46,469 - INFO - Created VN ctest-vn-81601220 2025-11-10 20:14:46,526 - DEBUG - VN ctest-vn-81601220 UUID is 37e5d363-4514-47f3-a248-a2bc00087ad4 2025-11-10 20:14:46,704 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-48682345:ctest-vn-81145505, 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-48682345:ctest-vn-81601220, 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-11-10 20:14:47,156 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '40fb1fb8-4c53-4334-8941-1983e5f02cd2', 'name': 'ctest-vn-81145505', 'tenant_id': '7c91d56b6c8944c283b17ceb74b77643', 'project_id': '7c91d56b6c8944c283b17ceb74b77643', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a9a28956-e86e-4489-9781-1c53d8533a08'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48682345', 'ctest-vn-81145505'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48682345', 'ctest-policy-allow-all-28713682']], 'subnet_ipam': [{'subnet_cidr': '130.144.135.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-10 20:14:47,444 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '37e5d363-4514-47f3-a248-a2bc00087ad4', 'name': 'ctest-vn-81601220', 'tenant_id': '7c91d56b6c8944c283b17ceb74b77643', 'project_id': '7c91d56b6c8944c283b17ceb74b77643', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7cdfe0a8-a370-4a4e-94a6-ec362cb55b5d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48682345', 'ctest-vn-81601220'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48682345', 'ctest-policy-allow-all-28713682']], 'subnet_ipam': [{'subnet_cidr': '45.123.84.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-10 20:14:47,642 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-10 20:14:47,967 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-10 20:14:48,038 - DEBUG - Requesting: http://10.0.0.141:8082/domain/c247b962-9cd7-4221-b33c-2806de491c2c 2025-11-10 20:14:48,073 - DEBUG - Requesting: http://10.0.0.141:8082/project/7c91d56b-6c89-44c2-83b1-7ceb74b77643 2025-11-10 20:14:48,190 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/40fb1fb8-4c53-4334-8941-1983e5f02cd2 2025-11-10 20:14:48,216 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/40fb1fb8-4c53-4334-8941-1983e5f02cd2 2025-11-10 20:14:48,234 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7c1da9c9-c918-4ffe-93db-bcc4382c1b71 2025-11-10 20:14:48,250 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7c1da9c9-c918-4ffe-93db-bcc4382c1b71 2025-11-10 20:14:48,266 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/147d3ee9-ff3a-4a03-b713-423256ab3116 2025-11-10 20:14:48,281 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-10 20:14:48,281 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/40fb1fb8-4c53-4334-8941-1983e5f02cd2 2025-11-10 20:14:48,302 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7c1da9c9-c918-4ffe-93db-bcc4382c1b71 2025-11-10 20:14:48,332 - INFO - Verified VN network id 11 for VN 40fb1fb8-4c53-4334-8941-1983e5f02cd2 2025-11-10 20:14:48,332 - INFO - Verifications in API Server for VN ctest-vn-81145505 passed 2025-11-10 20:14:48,333 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/40fb1fb8-4c53-4334-8941-1983e5f02cd2 2025-11-10 20:14:48,360 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7c1da9c9-c918-4ffe-93db-bcc4382c1b71 2025-11-10 20:14:48,375 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7c1da9c9-c918-4ffe-93db-bcc4382c1b71 2025-11-10 20:14:48,390 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/147d3ee9-ff3a-4a03-b713-423256ab3116 2025-11-10 20:14:48,422 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48682345:ctest-vn-81145505', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48682345', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4682371113996731188', 'uuid-lslong': '9890214310971452626'}, 'enable': 'true', 'created': '2025-11-10T20:14:45', 'last-modified': '2025-11-10T20:14:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.307783'} 2025-11-10 20:14:48,443 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-10 20:14:48,444 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81145505 passed 2025-11-10 20:14:48,444 - DEBUG - ====Verifying policy data for ctest-vn-81145505 in API_Server ====== 2025-11-10 20:14:48,444 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-10 20:14:48,458 - DEBUG - Requesting: http://10.0.0.141:8082/domain/c247b962-9cd7-4221-b33c-2806de491c2c 2025-11-10 20:14:48,480 - DEBUG - Requesting: http://10.0.0.141:8082/project/7c91d56b-6c89-44c2-83b1-7ceb74b77643 2025-11-10 20:14:48,576 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/40fb1fb8-4c53-4334-8941-1983e5f02cd2 2025-11-10 20:14:48,597 - DEBUG - ==>Verifying data for policy with id: 16642ebb-de7f-4aed-9777-aa1cba9a6b7e, fqn: ['default-domain', 'ctest-TestBasicPolicy-48682345', 'ctest-policy-allow-all-28713682'] 2025-11-10 20:14:48,597 - INFO - VN ctest-vn-81145505 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-10 20:14:48,597 - DEBUG - Verifying the vn in opserver 2025-11-10 20:14:48,597 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48682345:ctest-vn-81145505 virtual network link through opserver 10.0.0.141 2025-11-10 20:14:48,598 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-11-10 20:14:48,941 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-11-10 20:14:49,024 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48682345:ctest-vn-81145505', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48682345:ctest-vn-81145505?flat'} 2025-11-10 20:14:49,024 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48682345:ctest-vn-81145505 is found in opserver 2025-11-10 20:14:49,037 - DEBUG - Do not have enough data to verify VN in agent 2025-11-10 20:14:49,042 - DEBUG - VRF ids for VN ctest-vn-81145505: {} 2025-11-10 20:14:49,042 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-10 20:14:49,049 - DEBUG - Requesting: http://10.0.0.141:8082/domain/c247b962-9cd7-4221-b33c-2806de491c2c 2025-11-10 20:14:49,063 - DEBUG - Requesting: http://10.0.0.141:8082/project/7c91d56b-6c89-44c2-83b1-7ceb74b77643 2025-11-10 20:14:49,146 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/37e5d363-4514-47f3-a248-a2bc00087ad4 2025-11-10 20:14:49,166 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/37e5d363-4514-47f3-a248-a2bc00087ad4 2025-11-10 20:14:49,181 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/37e09499-fb2f-4e29-afd7-25ddb80237a7 2025-11-10 20:14:49,194 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/37e09499-fb2f-4e29-afd7-25ddb80237a7 2025-11-10 20:14:49,207 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/e0d3908e-d4ad-4416-b0d9-1e68a58b5133 2025-11-10 20:14:49,222 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-10 20:14:49,222 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/37e5d363-4514-47f3-a248-a2bc00087ad4 2025-11-10 20:14:49,238 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/37e09499-fb2f-4e29-afd7-25ddb80237a7 2025-11-10 20:14:49,263 - INFO - Verified VN network id 12 for VN 37e5d363-4514-47f3-a248-a2bc00087ad4 2025-11-10 20:14:49,263 - INFO - Verifications in API Server for VN ctest-vn-81601220 passed 2025-11-10 20:14:49,263 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/37e5d363-4514-47f3-a248-a2bc00087ad4 2025-11-10 20:14:49,279 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/37e09499-fb2f-4e29-afd7-25ddb80237a7 2025-11-10 20:14:49,290 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/37e09499-fb2f-4e29-afd7-25ddb80237a7 2025-11-10 20:14:49,302 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/e0d3908e-d4ad-4416-b0d9-1e68a58b5133 2025-11-10 20:14:49,318 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48682345:ctest-vn-81601220', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48682345', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4027857865066956787', 'uuid-lslong': '11693775360805599956'}, 'enable': 'true', 'created': '2025-11-10T20:14:46', 'last-modified': '2025-11-10T20:14:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.920531'} 2025-11-10 20:14:49,326 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-10 20:14:49,327 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81601220 passed 2025-11-10 20:14:49,327 - DEBUG - ====Verifying policy data for ctest-vn-81601220 in API_Server ====== 2025-11-10 20:14:49,327 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-10 20:14:49,334 - DEBUG - Requesting: http://10.0.0.141:8082/domain/c247b962-9cd7-4221-b33c-2806de491c2c 2025-11-10 20:14:49,350 - DEBUG - Requesting: http://10.0.0.141:8082/project/7c91d56b-6c89-44c2-83b1-7ceb74b77643 2025-11-10 20:14:49,460 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/37e5d363-4514-47f3-a248-a2bc00087ad4 2025-11-10 20:14:49,489 - DEBUG - ==>Verifying data for policy with id: 16642ebb-de7f-4aed-9777-aa1cba9a6b7e, fqn: ['default-domain', 'ctest-TestBasicPolicy-48682345', 'ctest-policy-allow-all-28713682'] 2025-11-10 20:14:49,489 - INFO - VN ctest-vn-81601220 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-10 20:14:49,489 - DEBUG - Verifying the vn in opserver 2025-11-10 20:14:49,489 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48682345:ctest-vn-81601220 virtual network link through opserver 10.0.0.141 2025-11-10 20:14:49,489 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-11-10 20:14:49,510 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48682345:ctest-vn-81601220', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48682345:ctest-vn-81601220?flat'} 2025-11-10 20:14:49,510 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48682345:ctest-vn-81601220 is found in opserver 2025-11-10 20:14:49,544 - DEBUG - Do not have enough data to verify VN in agent 2025-11-10 20:14:49,556 - DEBUG - VRF ids for VN ctest-vn-81601220: {} 2025-11-10 20:14:49,704 - DEBUG - Services list from nova: [, , ] 2025-11-10 20:14:51,296 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4687-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4687-1) 2025-11-10 20:14:52,699 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4687-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4687-1) 2025-11-10 20:14:52,699 - INFO - Waiting for VM ctest-TestBasicPolicy-48682345-28959443 to be up.. 2025-11-10 20:14:52,816 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-10 20:14:58,006 - DEBUG - VM is in ACTIVE state now 2025-11-10 20:14:58,006 - INFO - VM name : ctest-TestBasicPolicy-48682345-28959443 2025-11-10 20:14:58,140 - DEBUG - VM ctest-TestBasicPolicy-48682345-28959443 ID is 8f9b2d2b-c1f3-460f-85e3-771bdb14ce6d 2025-11-10 20:14:58,184 - DEBUG - VM ctest-TestBasicPolicy-48682345-28959443 launched on Node cn-jenkins-deploy-platform-ansible-os-4687-1 2025-11-10 20:14:58,313 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine/8f9b2d2b-c1f3-460f-85e3-771bdb14ce6d 2025-11-10 20:14:58,325 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine-interface/75fd7463-09ca-4dfa-9879-78ae93e57999 2025-11-10 20:15:01,591 - 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 1010ms') 2025-11-10 20:15:01,592 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-48682345-28959443 failed! 2025-11-10 20:15:01,650 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-48682345:ctest-vn-81145505 is 130.144.135.65 and allocation pool is NOT set 2025-11-10 20:15:03,721 - 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=5.12 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.07 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.066/3.592/5.118/1.526 ms') 2025-11-10 20:15:03,722 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-48682345-28959443 passed 2025-11-10 20:15:03,898 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-10 20:15:03,898 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-48682345-28959443, IP 130.144.135.67, Port 22 2025-11-10 20:15:03,965 - 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-11-10 20:15:04,088 - DEBUG - VM ctest-TestBasicPolicy-48682345-28959443 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-10 20:15:09,090 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-10 20:15:09,090 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-48682345-28959443, IP 130.144.135.67, Port 22 2025-11-10 20:15:09,281 - DEBUG - VM ctest-TestBasicPolicy-48682345-28959443 is ready for SSH connections 2025-11-10 20:15:09,281 - INFO - Waiting for VM ctest-TestBasicPolicy-48682345-47686062 to be up.. 2025-11-10 20:15:09,469 - DEBUG - VM is in ACTIVE state now 2025-11-10 20:15:09,470 - INFO - VM name : ctest-TestBasicPolicy-48682345-47686062 2025-11-10 20:15:09,609 - DEBUG - VM ctest-TestBasicPolicy-48682345-47686062 ID is ee2b034f-9dde-4167-bff8-de2e2a5c3e6f 2025-11-10 20:15:09,609 - DEBUG - VM ctest-TestBasicPolicy-48682345-47686062 launched on Node cn-jenkins-deploy-platform-ansible-os-4687-1 2025-11-10 20:15:09,719 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine/ee2b034f-9dde-4167-bff8-de2e2a5c3e6f 2025-11-10 20:15:09,733 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine-interface/bf22dbcb-cd09-4030-81e8-b111e8b7e740 2025-11-10 20:15:11,017 - 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.88 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.957 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.957/2.418/3.880/1.461 ms') 2025-11-10 20:15:11,018 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-48682345-47686062 passed 2025-11-10 20:15:11,199 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-10 20:15:11,199 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-48682345-47686062, IP 45.123.84.67, Port 22 2025-11-10 20:15:11,380 - DEBUG - VM ctest-TestBasicPolicy-48682345-47686062 is ready for SSH connections 2025-11-10 20:15:11,380 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-10 20:15:11,380 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 45.123.84.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.141, gateway password: c0ntrail123 2025-11-10 20:15:11,380 - DEBUG - ping -s 56 -c 3 -W 1 45.123.84.67 2025-11-10 20:15:15,961 - DEBUG - PING 45.123.84.67 (45.123.84.67): 56 data bytes 64 bytes from 45.123.84.67: seq=0 ttl=63 time=4.859 ms 64 bytes from 45.123.84.67: seq=1 ttl=63 time=1.568 ms 64 bytes from 45.123.84.67: seq=2 ttl=63 time=1.367 ms --- 45.123.84.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.367/2.598/4.859 ms 2025-11-10 20:15:15,961 - INFO - Ping to IP 45.123.84.67 from VM ctest-TestBasicPolicy-48682345-28959443 passed 2025-11-10 20:15:16,206 - DEBUG - Policy Update Response {"network-policy": {"uuid": "16642ebb-de7f-4aed-9777-aa1cba9a6b7e", "href": "http://10.0.0.141:8082/network-policy/16642ebb-de7f-4aed-9777-aa1cba9a6b7e"}} 2025-11-10 20:15:16,206 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-10 20:15:16,206 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 45.123.84.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.141, gateway password: c0ntrail123 2025-11-10 20:15:16,206 - DEBUG - ping -s 56 -c 3 -W 1 45.123.84.67 2025-11-10 20:15:19,518 - DEBUG - PING 45.123.84.67 (45.123.84.67): 56 data bytes --- 45.123.84.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-11-10 20:15:19,518 - WARNING - Ping to IP 45.123.84.67 from VM ctest-TestBasicPolicy-48682345-28959443 failed 2025-11-10 20:15:19,518 - INFO - Deleting VM ctest-TestBasicPolicy-48682345-47686062 2025-11-10 20:15:19,703 - INFO - Deleting VM ctest-TestBasicPolicy-48682345-28959443 2025-11-10 20:15:20,248 - INFO - Deleted policy ctest-policy-allow-all-28713682 2025-11-10 20:15:20,248 - INFO - Deleting VN ctest-vn-81601220 2025-11-10 20:15:20,293 - DEBUG - VN 37e5d363-4514-47f3-a248-a2bc00087ad4 still in use: Unable to complete operation on network 37e5d363-4514-47f3-a248-a2bc00087ad4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e221faf3-4a26-4f91-97ef-a75d07b5ebca'] 2025-11-10 20:15:20,293 - WARNING - Deleting VN ctest-vn-81601220 failed..Will retry 2025-11-10 20:15:22,455 - DEBUG - Response for deleting network () 2025-11-10 20:15:22,455 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/37e09499-fb2f-4e29-afd7-25ddb80237a7 2025-11-10 20:15:22,461 - DEBUG - Response Code: 404 2025-11-10 20:15:22,461 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-10 20:15:22,467 - DEBUG - Requesting: http://10.0.0.141:8082/domain/c247b962-9cd7-4221-b33c-2806de491c2c 2025-11-10 20:15:22,521 - DEBUG - Requesting: http://10.0.0.141:8082/project/7c91d56b-6c89-44c2-83b1-7ceb74b77643 2025-11-10 20:15:22,616 - INFO - Validated that VN ctest-vn-81601220 is not found in API Server 2025-11-10 20:15:22,643 - DEBUG - VN ctest-vn-81601220 is not present in Agent 10.0.0.141 2025-11-10 20:15:22,643 - INFO - Validated that VN ctest-vn-81601220 is not in any agent 2025-11-10 20:15:22,671 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-81601220 info 2025-11-10 20:15:22,671 - INFO - Deleting VN ctest-vn-81145505 2025-11-10 20:15:22,799 - DEBUG - Response for deleting network () 2025-11-10 20:15:22,799 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7c1da9c9-c918-4ffe-93db-bcc4382c1b71 2025-11-10 20:15:22,805 - DEBUG - Response Code: 404 2025-11-10 20:15:22,805 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-10 20:15:22,810 - DEBUG - Requesting: http://10.0.0.141:8082/domain/c247b962-9cd7-4221-b33c-2806de491c2c 2025-11-10 20:15:22,865 - DEBUG - Requesting: http://10.0.0.141:8082/project/7c91d56b-6c89-44c2-83b1-7ceb74b77643 2025-11-10 20:15:22,947 - INFO - Validated that VN ctest-vn-81145505 is not found in API Server 2025-11-10 20:15:22,965 - DEBUG - VN ctest-vn-81145505 is not present in Agent 10.0.0.141 2025-11-10 20:15:22,965 - INFO - Validated that VN ctest-vn-81145505 is not in any agent 2025-11-10 20:15:22,995 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-81145505 info 2025-11-10 20:15:23,330 - DEBUG - No XMPP flaps were noticed during the test 2025-11-10 20:15:23,330 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:39] 2025-11-10 20:15:23,330 - INFO - -------------------------------------------------------------------------------- 2025-11-10 20:15:24,245 - INFO - Deleted project: ctest-TestBasicPolicy-48682345, ID : 7c91d56b-6c89-44c2-83b1-7ceb74b77643