2025-06-16 12:54:16,732 - INFO - Domain Default found not creating 2025-06-16 12:54:16,884 - INFO - Project ctest-TestBasicPolicy-00406991 not found, creating it 2025-06-16 12:54:17,394 - INFO - Created Project:ctest-TestBasicPolicy-00406991, ID : 065c49aa-5c8f-4d1a-88a6-a0b79631fca4 2025-06-16 12:54:19,011 - INFO - ================================================================================ 2025-06-16 12:54:19,011 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-16 12:54:19,011 - 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-16 12:54:19,281 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-06-16 12:54:19,281 - INFO - Initial checks done. Running the testcase now 2025-06-16 12:54:19,281 - INFO - 2025-06-16 12:54:19,893 - DEBUG - Response for create_network : {'network': {'id': '46dff571-dede-4f45-a951-6ac1c6c3246c', 'name': 'ctest-vn-29364853', 'tenant_id': '065c49aa5c8f4d1a88a6a0b79631fca4', 'project_id': '065c49aa5c8f4d1a88a6a0b79631fca4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00406991', 'ctest-vn-29364853'], 'port_security_enabled': True, 'description': ''}} 2025-06-16 12:54:20,124 - DEBUG - Response for create_subnet : {'subnet': {'id': '4fd0c718-4dc8-47ad-9614-eeae56c30c49', 'name': '', 'tenant_id': '065c49aa5c8f4d1a88a6a0b79631fca4', 'network_id': '46dff571-dede-4f45-a951-6ac1c6c3246c', 'ip_version': 4, 'cidr': '143.254.180.0/26', 'allocation_pools': [{'start': '143.254.180.2', 'end': '143.254.180.62'}], 'gateway_ip': '143.254.180.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.254.180.2', 'tags': [], 'project_id': '065c49aa5c8f4d1a88a6a0b79631fca4'}} 2025-06-16 12:54:20,142 - INFO - Created VN ctest-vn-29364853 2025-06-16 12:54:20,196 - DEBUG - VN ctest-vn-29364853 UUID is 46dff571-dede-4f45-a951-6ac1c6c3246c 2025-06-16 12:54:20,512 - DEBUG - Response for create_network : {'network': {'id': '12585413-1e54-4e80-84db-b6b42e04a156', 'name': 'ctest-vn-78827594', 'tenant_id': '065c49aa5c8f4d1a88a6a0b79631fca4', 'project_id': '065c49aa5c8f4d1a88a6a0b79631fca4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00406991', 'ctest-vn-78827594'], 'port_security_enabled': True, 'description': ''}} 2025-06-16 12:54:20,693 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd8a5725f-eca8-47bd-9de8-169041756ea2', 'name': '', 'tenant_id': '065c49aa5c8f4d1a88a6a0b79631fca4', 'network_id': '12585413-1e54-4e80-84db-b6b42e04a156', 'ip_version': 4, 'cidr': '128.94.231.64/26', 'allocation_pools': [{'start': '128.94.231.66', 'end': '128.94.231.126'}], 'gateway_ip': '128.94.231.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '128.94.231.66', 'tags': [], 'project_id': '065c49aa5c8f4d1a88a6a0b79631fca4'}} 2025-06-16 12:54:20,722 - INFO - Created VN ctest-vn-78827594 2025-06-16 12:54:20,780 - DEBUG - VN ctest-vn-78827594 UUID is 12585413-1e54-4e80-84db-b6b42e04a156 2025-06-16 12:54:20,902 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00406991:ctest-vn-29364853, 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-00406991:ctest-vn-78827594, 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-16 12:54:21,202 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '46dff571-dede-4f45-a951-6ac1c6c3246c', 'name': 'ctest-vn-29364853', 'tenant_id': '065c49aa5c8f4d1a88a6a0b79631fca4', 'project_id': '065c49aa5c8f4d1a88a6a0b79631fca4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4fd0c718-4dc8-47ad-9614-eeae56c30c49'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00406991', 'ctest-vn-29364853'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00406991', 'ctest-policy-allow-all-03783800']], 'subnet_ipam': [{'subnet_cidr': '143.254.180.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-16 12:54:21,444 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '12585413-1e54-4e80-84db-b6b42e04a156', 'name': 'ctest-vn-78827594', 'tenant_id': '065c49aa5c8f4d1a88a6a0b79631fca4', 'project_id': '065c49aa5c8f4d1a88a6a0b79631fca4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d8a5725f-eca8-47bd-9de8-169041756ea2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00406991', 'ctest-vn-78827594'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00406991', 'ctest-policy-allow-all-03783800']], 'subnet_ipam': [{'subnet_cidr': '128.94.231.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-16 12:54:21,600 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-16 12:54:21,943 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-16 12:54:21,974 - DEBUG - Requesting: http://10.0.0.254:8082/domain/be193eb7-9ce6-4a52-85d8-c68282181a68 2025-06-16 12:54:21,990 - DEBUG - Requesting: http://10.0.0.254:8082/project/065c49aa-5c8f-4d1a-88a6-a0b79631fca4 2025-06-16 12:54:22,069 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/46dff571-dede-4f45-a951-6ac1c6c3246c 2025-06-16 12:54:22,083 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/46dff571-dede-4f45-a951-6ac1c6c3246c 2025-06-16 12:54:22,096 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/21302451-db8e-47b9-a888-536dfaa12dea 2025-06-16 12:54:22,106 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/21302451-db8e-47b9-a888-536dfaa12dea 2025-06-16 12:54:22,115 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8071c80f-8711-4c49-89ad-60a8fcd9c2ab 2025-06-16 12:54:22,122 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-16 12:54:22,122 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/46dff571-dede-4f45-a951-6ac1c6c3246c 2025-06-16 12:54:22,134 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/21302451-db8e-47b9-a888-536dfaa12dea 2025-06-16 12:54:22,150 - INFO - Verified VN network id 8 for VN 46dff571-dede-4f45-a951-6ac1c6c3246c 2025-06-16 12:54:22,150 - INFO - Verifications in API Server for VN ctest-vn-29364853 passed 2025-06-16 12:54:22,150 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/46dff571-dede-4f45-a951-6ac1c6c3246c 2025-06-16 12:54:22,160 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/21302451-db8e-47b9-a888-536dfaa12dea 2025-06-16 12:54:22,171 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/21302451-db8e-47b9-a888-536dfaa12dea 2025-06-16 12:54:22,179 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8071c80f-8711-4c49-89ad-60a8fcd9c2ab 2025-06-16 12:54:22,194 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00406991:ctest-vn-29364853', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00406991', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5107070371880652613', 'uuid-lslong': '12200650246019294316'}, 'enable': 'true', 'created': '2025-06-16T12:54:19', 'last-modified': '2025-06-16T12:54:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.010591'} 2025-06-16 12:54:22,202 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-16 12:54:22,202 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29364853 passed 2025-06-16 12:54:22,202 - DEBUG - ====Verifying policy data for ctest-vn-29364853 in API_Server ====== 2025-06-16 12:54:22,202 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-16 12:54:22,211 - DEBUG - Requesting: http://10.0.0.254:8082/domain/be193eb7-9ce6-4a52-85d8-c68282181a68 2025-06-16 12:54:22,225 - DEBUG - Requesting: http://10.0.0.254:8082/project/065c49aa-5c8f-4d1a-88a6-a0b79631fca4 2025-06-16 12:54:22,302 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/46dff571-dede-4f45-a951-6ac1c6c3246c 2025-06-16 12:54:22,313 - DEBUG - ==>Verifying data for policy with id: 2935b981-cd5b-40b9-9aac-f6e633ea622a, fqn: ['default-domain', 'ctest-TestBasicPolicy-00406991', 'ctest-policy-allow-all-03783800'] 2025-06-16 12:54:22,314 - INFO - VN ctest-vn-29364853 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-16 12:54:22,314 - DEBUG - Verifying the vn in opserver 2025-06-16 12:54:22,314 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00406991:ctest-vn-29364853 virtual network link through opserver 10.0.0.254 2025-06-16 12:54:22,314 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-06-16 12:54:22,648 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-06-16 12:54:22,706 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00406991:ctest-vn-29364853', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00406991:ctest-vn-29364853?flat'} 2025-06-16 12:54:22,706 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00406991:ctest-vn-29364853 is found in opserver 2025-06-16 12:54:22,719 - DEBUG - Do not have enough data to verify VN in agent 2025-06-16 12:54:22,725 - DEBUG - VRF ids for VN ctest-vn-29364853: {} 2025-06-16 12:54:22,725 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-16 12:54:22,732 - DEBUG - Requesting: http://10.0.0.254:8082/domain/be193eb7-9ce6-4a52-85d8-c68282181a68 2025-06-16 12:54:22,744 - DEBUG - Requesting: http://10.0.0.254:8082/project/065c49aa-5c8f-4d1a-88a6-a0b79631fca4 2025-06-16 12:54:22,820 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/12585413-1e54-4e80-84db-b6b42e04a156 2025-06-16 12:54:22,833 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/12585413-1e54-4e80-84db-b6b42e04a156 2025-06-16 12:54:22,844 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8a091850-e772-42d7-9b51-d153c49fd80e 2025-06-16 12:54:22,852 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8a091850-e772-42d7-9b51-d153c49fd80e 2025-06-16 12:54:22,860 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1d8d3a1f-9239-47e2-a010-8f56e429b88d 2025-06-16 12:54:22,868 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-16 12:54:22,868 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/12585413-1e54-4e80-84db-b6b42e04a156 2025-06-16 12:54:22,878 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8a091850-e772-42d7-9b51-d153c49fd80e 2025-06-16 12:54:22,893 - INFO - Verified VN network id 9 for VN 12585413-1e54-4e80-84db-b6b42e04a156 2025-06-16 12:54:22,894 - INFO - Verifications in API Server for VN ctest-vn-78827594 passed 2025-06-16 12:54:22,894 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/12585413-1e54-4e80-84db-b6b42e04a156 2025-06-16 12:54:22,906 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8a091850-e772-42d7-9b51-d153c49fd80e 2025-06-16 12:54:22,914 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8a091850-e772-42d7-9b51-d153c49fd80e 2025-06-16 12:54:22,922 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1d8d3a1f-9239-47e2-a010-8f56e429b88d 2025-06-16 12:54:22,936 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00406991:ctest-vn-78827594', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00406991', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1321898931723193984', 'uuid-lslong': '9573446317888545110'}, 'enable': 'true', 'created': '2025-06-16T12:54:20', 'last-modified': '2025-06-16T12:54:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.514345'} 2025-06-16 12:54:22,943 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-16 12:54:22,943 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78827594 passed 2025-06-16 12:54:22,943 - DEBUG - ====Verifying policy data for ctest-vn-78827594 in API_Server ====== 2025-06-16 12:54:22,943 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-16 12:54:22,950 - DEBUG - Requesting: http://10.0.0.254:8082/domain/be193eb7-9ce6-4a52-85d8-c68282181a68 2025-06-16 12:54:22,964 - DEBUG - Requesting: http://10.0.0.254:8082/project/065c49aa-5c8f-4d1a-88a6-a0b79631fca4 2025-06-16 12:54:23,039 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/12585413-1e54-4e80-84db-b6b42e04a156 2025-06-16 12:54:23,051 - DEBUG - ==>Verifying data for policy with id: 2935b981-cd5b-40b9-9aac-f6e633ea622a, fqn: ['default-domain', 'ctest-TestBasicPolicy-00406991', 'ctest-policy-allow-all-03783800'] 2025-06-16 12:54:23,051 - INFO - VN ctest-vn-78827594 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-16 12:54:23,051 - DEBUG - Verifying the vn in opserver 2025-06-16 12:54:23,051 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00406991:ctest-vn-78827594 virtual network link through opserver 10.0.0.254 2025-06-16 12:54:23,051 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-06-16 12:54:23,066 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00406991:ctest-vn-78827594', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00406991:ctest-vn-78827594?flat'} 2025-06-16 12:54:23,066 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00406991:ctest-vn-78827594 is found in opserver 2025-06-16 12:54:23,082 - DEBUG - Do not have enough data to verify VN in agent 2025-06-16 12:54:23,089 - DEBUG - VRF ids for VN ctest-vn-78827594: {} 2025-06-16 12:54:23,146 - DEBUG - Services list from nova: [, , ] 2025-06-16 12:54:24,250 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3456-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3456-1) 2025-06-16 12:54:25,598 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3456-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3456-1) 2025-06-16 12:54:25,598 - INFO - Waiting for VM ctest-TestBasicPolicy-00406991-44852480 to be up.. 2025-06-16 12:54:25,691 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-16 12:54:30,773 - DEBUG - VM is in ACTIVE state now 2025-06-16 12:54:30,773 - INFO - VM name : ctest-TestBasicPolicy-00406991-44852480 2025-06-16 12:54:30,852 - DEBUG - VM ctest-TestBasicPolicy-00406991-44852480 ID is ea58572e-58d3-4ad2-9740-1fe41bb1e066 2025-06-16 12:54:30,873 - DEBUG - VM ctest-TestBasicPolicy-00406991-44852480 launched on Node cn-jenkins-deploy-platform-ansible-os-3456-1 2025-06-16 12:54:30,961 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/ea58572e-58d3-4ad2-9740-1fe41bb1e066 2025-06-16 12:54:30,973 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/7774cdb7-fea3-41da-ad24-f71534f993b6 2025-06-16 12:54:34,241 - 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 1009ms') 2025-06-16 12:54:34,241 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-00406991-44852480 failed! 2025-06-16 12:54:34,296 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-00406991:ctest-vn-29364853 is 143.254.180.1 and allocation pool is NOT set 2025-06-16 12:54:36,358 - 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.76 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.510 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.510/4.633/8.757/4.123 ms') 2025-06-16 12:54:36,358 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-00406991-44852480 passed 2025-06-16 12:54:36,516 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-16 12:54:36,516 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-00406991-44852480, IP 143.254.180.3, Port 22 2025-06-16 12:54:36,586 - 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-16 12:54:36,663 - DEBUG - VM ctest-TestBasicPolicy-00406991-44852480 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-16 12:54:41,664 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-16 12:54:41,664 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-00406991-44852480, IP 143.254.180.3, Port 22 2025-06-16 12:54:41,819 - DEBUG - VM ctest-TestBasicPolicy-00406991-44852480 is ready for SSH connections 2025-06-16 12:54:41,819 - INFO - Waiting for VM ctest-TestBasicPolicy-00406991-98734175 to be up.. 2025-06-16 12:54:41,905 - DEBUG - VM is in ACTIVE state now 2025-06-16 12:54:41,905 - INFO - VM name : ctest-TestBasicPolicy-00406991-98734175 2025-06-16 12:54:42,007 - DEBUG - VM ctest-TestBasicPolicy-00406991-98734175 ID is bb9388c2-91c9-4dc4-97c2-14ab42e06b9f 2025-06-16 12:54:42,007 - DEBUG - VM ctest-TestBasicPolicy-00406991-98734175 launched on Node cn-jenkins-deploy-platform-ansible-os-3456-1 2025-06-16 12:54:42,095 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/bb9388c2-91c9-4dc4-97c2-14ab42e06b9f 2025-06-16 12:54:42,105 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/4450bd7d-57d5-419a-a963-b42d822001b8 2025-06-16 12:54:43,350 - 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.96 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.422 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.422/1.691/2.961/1.269 ms') 2025-06-16 12:54:43,351 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-00406991-98734175 passed 2025-06-16 12:54:43,504 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-16 12:54:43,504 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-00406991-98734175, IP 128.94.231.67, Port 22 2025-06-16 12:54:43,664 - DEBUG - VM ctest-TestBasicPolicy-00406991-98734175 is ready for SSH connections 2025-06-16 12:54:43,664 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-16 12:54:43,664 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 128.94.231.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-06-16 12:54:43,664 - DEBUG - ping -s 56 -c 3 -W 1 128.94.231.67 2025-06-16 12:54:47,420 - DEBUG - PING 128.94.231.67 (128.94.231.67): 56 data bytes 64 bytes from 128.94.231.67: seq=0 ttl=63 time=3.733 ms 64 bytes from 128.94.231.67: seq=1 ttl=63 time=0.993 ms 64 bytes from 128.94.231.67: seq=2 ttl=63 time=1.161 ms --- 128.94.231.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.993/1.962/3.733 ms 2025-06-16 12:54:47,420 - INFO - Ping to IP 128.94.231.67 from VM ctest-TestBasicPolicy-00406991-44852480 passed 2025-06-16 12:54:47,600 - DEBUG - Policy Update Response {"network-policy": {"uuid": "2935b981-cd5b-40b9-9aac-f6e633ea622a", "href": "http://10.0.0.254:8082/network-policy/2935b981-cd5b-40b9-9aac-f6e633ea622a"}} 2025-06-16 12:54:47,600 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-16 12:54:47,600 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 128.94.231.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-06-16 12:54:47,600 - DEBUG - ping -s 56 -c 3 -W 1 128.94.231.67 2025-06-16 12:54:50,815 - DEBUG - PING 128.94.231.67 (128.94.231.67): 56 data bytes 64 bytes from 128.94.231.67: seq=0 ttl=63 time=1.297 ms --- 128.94.231.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.297/1.297/1.297 ms 2025-06-16 12:54:50,815 - WARNING - Ping to IP 128.94.231.67 from VM ctest-TestBasicPolicy-00406991-44852480 failed 2025-06-16 12:54:50,816 - INFO - Deleting VM ctest-TestBasicPolicy-00406991-98734175 2025-06-16 12:54:50,884 - INFO - Deleting VM ctest-TestBasicPolicy-00406991-44852480 2025-06-16 12:54:51,337 - INFO - Deleted policy ctest-policy-allow-all-03783800 2025-06-16 12:54:51,337 - INFO - Deleting VN ctest-vn-78827594 2025-06-16 12:54:51,385 - DEBUG - VN 12585413-1e54-4e80-84db-b6b42e04a156 still in use: Unable to complete operation on network 12585413-1e54-4e80-84db-b6b42e04a156. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-cb3026b1-eb19-4f04-8af0-f5479d743076'] 2025-06-16 12:54:51,385 - WARNING - Deleting VN ctest-vn-78827594 failed..Will retry 2025-06-16 12:54:53,499 - DEBUG - Response for deleting network () 2025-06-16 12:54:53,500 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8a091850-e772-42d7-9b51-d153c49fd80e 2025-06-16 12:54:53,507 - DEBUG - Response Code: 404 2025-06-16 12:54:53,507 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-16 12:54:53,514 - DEBUG - Requesting: http://10.0.0.254:8082/domain/be193eb7-9ce6-4a52-85d8-c68282181a68 2025-06-16 12:54:53,571 - DEBUG - Requesting: http://10.0.0.254:8082/project/065c49aa-5c8f-4d1a-88a6-a0b79631fca4 2025-06-16 12:54:53,645 - INFO - Validated that VN ctest-vn-78827594 is not found in API Server 2025-06-16 12:54:53,657 - DEBUG - VN ctest-vn-78827594 is not present in Agent 10.0.0.254 2025-06-16 12:54:53,657 - INFO - Validated that VN ctest-vn-78827594 is not in any agent 2025-06-16 12:54:53,673 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-78827594 info 2025-06-16 12:54:53,673 - INFO - Deleting VN ctest-vn-29364853 2025-06-16 12:54:53,781 - DEBUG - Response for deleting network () 2025-06-16 12:54:53,781 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/21302451-db8e-47b9-a888-536dfaa12dea 2025-06-16 12:54:53,786 - DEBUG - Response Code: 404 2025-06-16 12:54:53,787 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-16 12:54:53,792 - DEBUG - Requesting: http://10.0.0.254:8082/domain/be193eb7-9ce6-4a52-85d8-c68282181a68 2025-06-16 12:54:53,846 - DEBUG - Requesting: http://10.0.0.254:8082/project/065c49aa-5c8f-4d1a-88a6-a0b79631fca4 2025-06-16 12:54:53,918 - INFO - Validated that VN ctest-vn-29364853 is not found in API Server 2025-06-16 12:54:53,929 - DEBUG - VN ctest-vn-29364853 is not present in Agent 10.0.0.254 2025-06-16 12:54:53,929 - INFO - Validated that VN ctest-vn-29364853 is not in any agent 2025-06-16 12:54:53,946 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-29364853 info 2025-06-16 12:54:54,202 - DEBUG - No XMPP flaps were noticed during the test 2025-06-16 12:54:54,202 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-06-16 12:54:54,202 - INFO - -------------------------------------------------------------------------------- 2025-06-16 12:54:54,937 - INFO - Deleted project: ctest-TestBasicPolicy-00406991, ID : 065c49aa-5c8f-4d1a-88a6-a0b79631fca4