2025-03-25 14:57:43,250 - INFO - Domain Default found not creating 2025-03-25 14:57:43,435 - INFO - Project ctest-TestBasicPolicy-90740059 not found, creating it 2025-03-25 14:57:43,934 - INFO - Created Project:ctest-TestBasicPolicy-90740059, ID : 67f9ed05-edc0-4a96-9c60-53dcb6652470 2025-03-25 14:57:45,608 - INFO - ================================================================================ 2025-03-25 14:57:45,608 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-25 14:57:45,609 - 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-03-25 14:57:45,863 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.13': '0'}} with 2025-03-25 14:57:45,863 - INFO - Initial checks done. Running the testcase now 2025-03-25 14:57:45,863 - INFO - 2025-03-25 14:57:46,491 - DEBUG - Response for create_network : {'network': {'id': '029c2cb3-f3f5-4d7b-bff2-48913e79155d', 'name': 'ctest-vn-19699442', 'tenant_id': '67f9ed05edc04a969c6053dcb6652470', 'project_id': '67f9ed05edc04a969c6053dcb6652470', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90740059', 'ctest-vn-19699442'], 'port_security_enabled': True, 'description': ''}} 2025-03-25 14:57:46,736 - DEBUG - Response for create_subnet : {'subnet': {'id': '6b32818e-6ede-4910-99fc-cf26bd1860e4', 'name': '', 'tenant_id': '67f9ed05edc04a969c6053dcb6652470', 'network_id': '029c2cb3-f3f5-4d7b-bff2-48913e79155d', 'ip_version': 4, 'cidr': '109.52.65.192/26', 'allocation_pools': [{'start': '109.52.65.194', 'end': '109.52.65.254'}], 'gateway_ip': '109.52.65.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.52.65.194', 'tags': [], 'project_id': '67f9ed05edc04a969c6053dcb6652470'}} 2025-03-25 14:57:46,759 - INFO - Created VN ctest-vn-19699442 2025-03-25 14:57:46,816 - DEBUG - VN ctest-vn-19699442 UUID is 029c2cb3-f3f5-4d7b-bff2-48913e79155d 2025-03-25 14:57:47,151 - DEBUG - Response for create_network : {'network': {'id': '377877b8-4881-44cc-9dc4-b1d0db326272', 'name': 'ctest-vn-54221948', 'tenant_id': '67f9ed05edc04a969c6053dcb6652470', 'project_id': '67f9ed05edc04a969c6053dcb6652470', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90740059', 'ctest-vn-54221948'], 'port_security_enabled': True, 'description': ''}} 2025-03-25 14:57:47,373 - DEBUG - Response for create_subnet : {'subnet': {'id': '8ad1878d-8a17-490a-8812-f6331eb0868b', 'name': '', 'tenant_id': '67f9ed05edc04a969c6053dcb6652470', 'network_id': '377877b8-4881-44cc-9dc4-b1d0db326272', 'ip_version': 4, 'cidr': '72.67.72.192/26', 'allocation_pools': [{'start': '72.67.72.194', 'end': '72.67.72.254'}], 'gateway_ip': '72.67.72.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '72.67.72.194', 'tags': [], 'project_id': '67f9ed05edc04a969c6053dcb6652470'}} 2025-03-25 14:57:47,397 - INFO - Created VN ctest-vn-54221948 2025-03-25 14:57:47,456 - DEBUG - VN ctest-vn-54221948 UUID is 377877b8-4881-44cc-9dc4-b1d0db326272 2025-03-25 14:57:47,585 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-90740059:ctest-vn-19699442, 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-90740059:ctest-vn-54221948, 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-03-25 14:57:47,905 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '029c2cb3-f3f5-4d7b-bff2-48913e79155d', 'name': 'ctest-vn-19699442', 'tenant_id': '67f9ed05edc04a969c6053dcb6652470', 'project_id': '67f9ed05edc04a969c6053dcb6652470', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6b32818e-6ede-4910-99fc-cf26bd1860e4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90740059', 'ctest-vn-19699442'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90740059', 'ctest-policy-allow-all-14900807']], 'subnet_ipam': [{'subnet_cidr': '109.52.65.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-25 14:57:48,174 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '377877b8-4881-44cc-9dc4-b1d0db326272', 'name': 'ctest-vn-54221948', 'tenant_id': '67f9ed05edc04a969c6053dcb6652470', 'project_id': '67f9ed05edc04a969c6053dcb6652470', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8ad1878d-8a17-490a-8812-f6331eb0868b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90740059', 'ctest-vn-54221948'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90740059', 'ctest-policy-allow-all-14900807']], 'subnet_ipam': [{'subnet_cidr': '72.67.72.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-25 14:57:48,360 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-03-25 14:57:48,705 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-03-25 14:57:48,739 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b7b798b3-d2d7-4145-ba9d-87ab800fdc27 2025-03-25 14:57:48,756 - DEBUG - Requesting: http://10.0.0.33:8082/project/67f9ed05-edc0-4a96-9c60-53dcb6652470 2025-03-25 14:57:48,845 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/029c2cb3-f3f5-4d7b-bff2-48913e79155d 2025-03-25 14:57:48,863 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/029c2cb3-f3f5-4d7b-bff2-48913e79155d 2025-03-25 14:57:48,876 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/75c2c43d-f32f-4920-bfc6-df7fa0f9b0ad 2025-03-25 14:57:48,885 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/75c2c43d-f32f-4920-bfc6-df7fa0f9b0ad 2025-03-25 14:57:48,894 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/58db7371-5ec5-458c-9f23-72c65832b505 2025-03-25 14:57:48,902 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-25 14:57:48,902 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/029c2cb3-f3f5-4d7b-bff2-48913e79155d 2025-03-25 14:57:48,914 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/75c2c43d-f32f-4920-bfc6-df7fa0f9b0ad 2025-03-25 14:57:48,933 - INFO - Verified VN network id 7 for VN 029c2cb3-f3f5-4d7b-bff2-48913e79155d 2025-03-25 14:57:48,933 - INFO - Verifications in API Server for VN ctest-vn-19699442 passed 2025-03-25 14:57:48,933 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/029c2cb3-f3f5-4d7b-bff2-48913e79155d 2025-03-25 14:57:48,946 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/75c2c43d-f32f-4920-bfc6-df7fa0f9b0ad 2025-03-25 14:57:48,955 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/75c2c43d-f32f-4920-bfc6-df7fa0f9b0ad 2025-03-25 14:57:48,964 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/58db7371-5ec5-458c-9f23-72c65832b505 2025-03-25 14:57:48,981 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90740059:ctest-vn-19699442', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90740059', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '188074435846425979', 'uuid-lslong': '13831197194263795037'}, 'enable': 'true', 'created': '2025-03-25T14:57:46', 'last-modified': '2025-03-25T14:57:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.101973'} 2025-03-25 14:57:48,989 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-25 14:57:48,989 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19699442 passed 2025-03-25 14:57:48,989 - DEBUG - ====Verifying policy data for ctest-vn-19699442 in API_Server ====== 2025-03-25 14:57:48,989 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-03-25 14:57:48,997 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b7b798b3-d2d7-4145-ba9d-87ab800fdc27 2025-03-25 14:57:49,011 - DEBUG - Requesting: http://10.0.0.33:8082/project/67f9ed05-edc0-4a96-9c60-53dcb6652470 2025-03-25 14:57:49,088 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/029c2cb3-f3f5-4d7b-bff2-48913e79155d 2025-03-25 14:57:49,100 - DEBUG - ==>Verifying data for policy with id: 3e3e5719-eee9-46f9-9ef1-37ff11b796d6, fqn: ['default-domain', 'ctest-TestBasicPolicy-90740059', 'ctest-policy-allow-all-14900807'] 2025-03-25 14:57:49,100 - INFO - VN ctest-vn-19699442 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-25 14:57:49,100 - DEBUG - Verifying the vn in opserver 2025-03-25 14:57:49,100 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90740059:ctest-vn-19699442 virtual network link through opserver 10.0.0.33 2025-03-25 14:57:49,100 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-03-25 14:57:49,441 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-03-25 14:57:49,509 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90740059:ctest-vn-19699442', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90740059:ctest-vn-19699442?flat'} 2025-03-25 14:57:49,509 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90740059:ctest-vn-19699442 is found in opserver 2025-03-25 14:57:49,521 - DEBUG - Do not have enough data to verify VN in agent 2025-03-25 14:57:49,528 - DEBUG - VRF ids for VN ctest-vn-19699442: {} 2025-03-25 14:57:49,528 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-03-25 14:57:49,536 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b7b798b3-d2d7-4145-ba9d-87ab800fdc27 2025-03-25 14:57:49,551 - DEBUG - Requesting: http://10.0.0.33:8082/project/67f9ed05-edc0-4a96-9c60-53dcb6652470 2025-03-25 14:57:49,634 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/377877b8-4881-44cc-9dc4-b1d0db326272 2025-03-25 14:57:49,652 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/377877b8-4881-44cc-9dc4-b1d0db326272 2025-03-25 14:57:49,666 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/286384a8-966f-45ab-916a-218091d4cd9d 2025-03-25 14:57:49,677 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/286384a8-966f-45ab-916a-218091d4cd9d 2025-03-25 14:57:49,687 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/80adb4d0-ca3b-44f8-bf1c-051bda86d862 2025-03-25 14:57:49,696 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-25 14:57:49,696 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/377877b8-4881-44cc-9dc4-b1d0db326272 2025-03-25 14:57:49,708 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/286384a8-966f-45ab-916a-218091d4cd9d 2025-03-25 14:57:49,726 - INFO - Verified VN network id 8 for VN 377877b8-4881-44cc-9dc4-b1d0db326272 2025-03-25 14:57:49,726 - INFO - Verifications in API Server for VN ctest-vn-54221948 passed 2025-03-25 14:57:49,726 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/377877b8-4881-44cc-9dc4-b1d0db326272 2025-03-25 14:57:49,738 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/286384a8-966f-45ab-916a-218091d4cd9d 2025-03-25 14:57:49,747 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/286384a8-966f-45ab-916a-218091d4cd9d 2025-03-25 14:57:49,756 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/80adb4d0-ca3b-44f8-bf1c-051bda86d862 2025-03-25 14:57:49,772 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90740059:ctest-vn-54221948', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90740059', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3997076302665434316', 'uuid-lslong': '11368406869978800754'}, 'enable': 'true', 'created': '2025-03-25T14:57:47', 'last-modified': '2025-03-25T14:57:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.635092'} 2025-03-25 14:57:49,780 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-25 14:57:49,780 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54221948 passed 2025-03-25 14:57:49,780 - DEBUG - ====Verifying policy data for ctest-vn-54221948 in API_Server ====== 2025-03-25 14:57:49,780 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-03-25 14:57:49,788 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b7b798b3-d2d7-4145-ba9d-87ab800fdc27 2025-03-25 14:57:49,802 - DEBUG - Requesting: http://10.0.0.33:8082/project/67f9ed05-edc0-4a96-9c60-53dcb6652470 2025-03-25 14:57:49,879 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/377877b8-4881-44cc-9dc4-b1d0db326272 2025-03-25 14:57:49,891 - DEBUG - ==>Verifying data for policy with id: 3e3e5719-eee9-46f9-9ef1-37ff11b796d6, fqn: ['default-domain', 'ctest-TestBasicPolicy-90740059', 'ctest-policy-allow-all-14900807'] 2025-03-25 14:57:49,891 - INFO - VN ctest-vn-54221948 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-25 14:57:49,891 - DEBUG - Verifying the vn in opserver 2025-03-25 14:57:49,892 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90740059:ctest-vn-54221948 virtual network link through opserver 10.0.0.33 2025-03-25 14:57:49,892 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-03-25 14:57:49,904 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90740059:ctest-vn-54221948', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90740059:ctest-vn-54221948?flat'} 2025-03-25 14:57:49,904 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90740059:ctest-vn-54221948 is found in opserver 2025-03-25 14:57:49,916 - DEBUG - Do not have enough data to verify VN in agent 2025-03-25 14:57:49,922 - DEBUG - VRF ids for VN ctest-vn-54221948: {} 2025-03-25 14:57:49,989 - DEBUG - Services list from nova: [, , ] 2025-03-25 14:57:51,145 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2951-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2951-1) 2025-03-25 14:57:52,648 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2951-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2951-1) 2025-03-25 14:57:52,649 - INFO - Waiting for VM ctest-TestBasicPolicy-90740059-21885240 to be up.. 2025-03-25 14:57:52,748 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-25 14:57:57,842 - DEBUG - VM is in ACTIVE state now 2025-03-25 14:57:57,843 - INFO - VM name : ctest-TestBasicPolicy-90740059-21885240 2025-03-25 14:57:57,931 - DEBUG - VM ctest-TestBasicPolicy-90740059-21885240 ID is fd48f3ac-faa7-4db0-9616-2485a14f818a 2025-03-25 14:57:57,954 - DEBUG - VM ctest-TestBasicPolicy-90740059-21885240 launched on Node cn-jenkins-deploy-platform-ansible-os-2951-1 2025-03-25 14:57:58,039 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/fd48f3ac-faa7-4db0-9616-2485a14f818a 2025-03-25 14:57:58,051 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/f5494640-b8d6-4fdd-8acf-8d62a971e610 2025-03-25 14:58:01,350 - 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 1030ms') 2025-03-25 14:58:01,351 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-90740059-21885240 failed! 2025-03-25 14:58:01,420 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-90740059:ctest-vn-19699442 is 109.52.65.193 and allocation pool is NOT set 2025-03-25 14:58:03,490 - 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.97 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.98 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 = 3.976/4.973/5.970/0.997 ms') 2025-03-25 14:58:03,491 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-90740059-21885240 passed 2025-03-25 14:58:03,660 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-25 14:58:03,660 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-90740059-21885240, IP 109.52.65.195, Port 22 2025-03-25 14:58:03,730 - 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-03-25 14:58:03,838 - DEBUG - VM ctest-TestBasicPolicy-90740059-21885240 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-25 14:58:08,839 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-25 14:58:08,839 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-90740059-21885240, IP 109.52.65.195, Port 22 2025-03-25 14:58:09,018 - DEBUG - VM ctest-TestBasicPolicy-90740059-21885240 is ready for SSH connections 2025-03-25 14:58:09,018 - INFO - Waiting for VM ctest-TestBasicPolicy-90740059-64514093 to be up.. 2025-03-25 14:58:09,111 - DEBUG - VM is in ACTIVE state now 2025-03-25 14:58:09,111 - INFO - VM name : ctest-TestBasicPolicy-90740059-64514093 2025-03-25 14:58:09,214 - DEBUG - VM ctest-TestBasicPolicy-90740059-64514093 ID is 24b7b131-95da-48b2-b14b-452f5dbd5c66 2025-03-25 14:58:09,214 - DEBUG - VM ctest-TestBasicPolicy-90740059-64514093 launched on Node cn-jenkins-deploy-platform-ansible-os-2951-1 2025-03-25 14:58:09,315 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/24b7b131-95da-48b2-b14b-452f5dbd5c66 2025-03-25 14:58:09,325 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/4a5ca710-6c75-4581-a4b8-e8d339a38e3d 2025-03-25 14:58:10,576 - 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.21 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.471 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.471/1.840/3.209/1.369 ms') 2025-03-25 14:58:10,576 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-90740059-64514093 passed 2025-03-25 14:58:10,732 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-25 14:58:10,732 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-90740059-64514093, IP 72.67.72.195, Port 22 2025-03-25 14:58:10,887 - DEBUG - VM ctest-TestBasicPolicy-90740059-64514093 is ready for SSH connections 2025-03-25 14:58:10,888 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-25 14:58:10,888 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 72.67.72.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-03-25 14:58:10,888 - DEBUG - ping -s 56 -c 3 -W 1 72.67.72.195 2025-03-25 14:58:15,008 - DEBUG - PING 72.67.72.195 (72.67.72.195): 56 data bytes 64 bytes from 72.67.72.195: seq=0 ttl=63 time=3.737 ms 64 bytes from 72.67.72.195: seq=1 ttl=63 time=1.198 ms 64 bytes from 72.67.72.195: seq=2 ttl=63 time=0.934 ms --- 72.67.72.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.934/1.956/3.737 ms 2025-03-25 14:58:15,009 - INFO - Ping to IP 72.67.72.195 from VM ctest-TestBasicPolicy-90740059-21885240 passed 2025-03-25 14:58:15,200 - DEBUG - Policy Update Response {"network-policy": {"uuid": "3e3e5719-eee9-46f9-9ef1-37ff11b796d6", "href": "http://10.0.0.33:8082/network-policy/3e3e5719-eee9-46f9-9ef1-37ff11b796d6"}} 2025-03-25 14:58:15,200 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-25 14:58:15,200 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 72.67.72.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-03-25 14:58:15,200 - DEBUG - ping -s 56 -c 3 -W 1 72.67.72.195 2025-03-25 14:58:18,448 - DEBUG - PING 72.67.72.195 (72.67.72.195): 56 data bytes --- 72.67.72.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-03-25 14:58:18,448 - WARNING - Ping to IP 72.67.72.195 from VM ctest-TestBasicPolicy-90740059-21885240 failed 2025-03-25 14:58:18,449 - INFO - Deleting VM ctest-TestBasicPolicy-90740059-64514093 2025-03-25 14:58:18,549 - INFO - Deleting VM ctest-TestBasicPolicy-90740059-21885240 2025-03-25 14:58:19,086 - INFO - Deleted policy ctest-policy-allow-all-14900807 2025-03-25 14:58:19,086 - INFO - Deleting VN ctest-vn-54221948 2025-03-25 14:58:19,157 - DEBUG - VN 377877b8-4881-44cc-9dc4-b1d0db326272 still in use: Unable to complete operation on network 377877b8-4881-44cc-9dc4-b1d0db326272. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-8c1bcce8-1a88-4abc-834b-6cfda02b5bb0'] 2025-03-25 14:58:19,157 - WARNING - Deleting VN ctest-vn-54221948 failed..Will retry 2025-03-25 14:58:21,303 - DEBUG - Response for deleting network () 2025-03-25 14:58:21,303 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/286384a8-966f-45ab-916a-218091d4cd9d 2025-03-25 14:58:21,311 - DEBUG - Response Code: 404 2025-03-25 14:58:21,311 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-03-25 14:58:21,320 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b7b798b3-d2d7-4145-ba9d-87ab800fdc27 2025-03-25 14:58:21,381 - DEBUG - Requesting: http://10.0.0.33:8082/project/67f9ed05-edc0-4a96-9c60-53dcb6652470 2025-03-25 14:58:21,471 - INFO - Validated that VN ctest-vn-54221948 is not found in API Server 2025-03-25 14:58:21,486 - DEBUG - VN ctest-vn-54221948 is not present in Agent 10.0.0.33 2025-03-25 14:58:21,486 - INFO - Validated that VN ctest-vn-54221948 is not in any agent 2025-03-25 14:58:21,507 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-54221948 info 2025-03-25 14:58:21,507 - INFO - Deleting VN ctest-vn-19699442 2025-03-25 14:58:21,639 - DEBUG - Response for deleting network () 2025-03-25 14:58:21,639 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/75c2c43d-f32f-4920-bfc6-df7fa0f9b0ad 2025-03-25 14:58:21,646 - DEBUG - Response Code: 404 2025-03-25 14:58:21,646 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-03-25 14:58:21,658 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b7b798b3-d2d7-4145-ba9d-87ab800fdc27 2025-03-25 14:58:21,714 - DEBUG - Requesting: http://10.0.0.33:8082/project/67f9ed05-edc0-4a96-9c60-53dcb6652470 2025-03-25 14:58:21,793 - INFO - Validated that VN ctest-vn-19699442 is not found in API Server 2025-03-25 14:58:21,806 - DEBUG - VN ctest-vn-19699442 is not present in Agent 10.0.0.33 2025-03-25 14:58:21,806 - INFO - Validated that VN ctest-vn-19699442 is not in any agent 2025-03-25 14:58:21,825 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-19699442 info 2025-03-25 14:58:22,088 - DEBUG - No XMPP flaps were noticed during the test
2025-03-25 14:58:22,088 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37]
2025-03-25 14:58:22,088 - INFO - -------------------------------------------------------------------------------- 2025-03-25 14:58:22,876 - INFO - Deleted project: ctest-TestBasicPolicy-90740059, ID : 67f9ed05-edc0-4a96-9c60-53dcb6652470