2025-03-26 09:34:02,099 - INFO - Domain Default found not creating 2025-03-26 09:34:02,252 - INFO - Project ctest-TestBasicPolicy-33746563 not found, creating it 2025-03-26 09:34:02,724 - INFO - Created Project:ctest-TestBasicPolicy-33746563, ID : 88fca47c-a8fd-471e-abd6-2eb4b606fa9f 2025-03-26 09:34:04,180 - INFO - ================================================================================ 2025-03-26 09:34:04,180 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-26 09:34:04,180 - 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-26 09:34:04,437 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with 2025-03-26 09:34:04,437 - INFO - Initial checks done. Running the testcase now 2025-03-26 09:34:04,437 - INFO - 2025-03-26 09:34:04,985 - DEBUG - Response for create_network : {'network': {'id': 'ddaf88ee-947e-46ec-a80b-39db82b26b27', 'name': 'ctest-vn-61667575', 'tenant_id': '88fca47ca8fd471eabd62eb4b606fa9f', 'project_id': '88fca47ca8fd471eabd62eb4b606fa9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33746563', 'ctest-vn-61667575'], 'port_security_enabled': True, 'description': ''}} 2025-03-26 09:34:05,179 - DEBUG - Response for create_subnet : {'subnet': {'id': '6efed291-20a2-43c2-9a8c-17d3b214cb86', 'name': '', 'tenant_id': '88fca47ca8fd471eabd62eb4b606fa9f', 'network_id': 'ddaf88ee-947e-46ec-a80b-39db82b26b27', 'ip_version': 4, 'cidr': '89.50.28.64/26', 'allocation_pools': [{'start': '89.50.28.66', 'end': '89.50.28.126'}], 'gateway_ip': '89.50.28.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '89.50.28.66', 'tags': [], 'project_id': '88fca47ca8fd471eabd62eb4b606fa9f'}} 2025-03-26 09:34:05,205 - INFO - Created VN ctest-vn-61667575 2025-03-26 09:34:05,262 - DEBUG - VN ctest-vn-61667575 UUID is ddaf88ee-947e-46ec-a80b-39db82b26b27 2025-03-26 09:34:05,560 - DEBUG - Response for create_network : {'network': {'id': 'a698331b-ab77-45c2-b62b-07f295fce6a0', 'name': 'ctest-vn-13540200', 'tenant_id': '88fca47ca8fd471eabd62eb4b606fa9f', 'project_id': '88fca47ca8fd471eabd62eb4b606fa9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33746563', 'ctest-vn-13540200'], 'port_security_enabled': True, 'description': ''}} 2025-03-26 09:34:05,776 - DEBUG - Response for create_subnet : {'subnet': {'id': '1d1da0d4-e846-463a-a65a-dfff396a8662', 'name': '', 'tenant_id': '88fca47ca8fd471eabd62eb4b606fa9f', 'network_id': 'a698331b-ab77-45c2-b62b-07f295fce6a0', 'ip_version': 4, 'cidr': '53.246.245.0/26', 'allocation_pools': [{'start': '53.246.245.2', 'end': '53.246.245.62'}], 'gateway_ip': '53.246.245.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '53.246.245.2', 'tags': [], 'project_id': '88fca47ca8fd471eabd62eb4b606fa9f'}} 2025-03-26 09:34:05,796 - INFO - Created VN ctest-vn-13540200 2025-03-26 09:34:05,850 - DEBUG - VN ctest-vn-13540200 UUID is a698331b-ab77-45c2-b62b-07f295fce6a0 2025-03-26 09:34:05,965 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-33746563:ctest-vn-61667575, 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-33746563:ctest-vn-13540200, 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-26 09:34:06,293 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ddaf88ee-947e-46ec-a80b-39db82b26b27', 'name': 'ctest-vn-61667575', 'tenant_id': '88fca47ca8fd471eabd62eb4b606fa9f', 'project_id': '88fca47ca8fd471eabd62eb4b606fa9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6efed291-20a2-43c2-9a8c-17d3b214cb86'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33746563', 'ctest-vn-61667575'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33746563', 'ctest-policy-allow-all-19191248']], 'subnet_ipam': [{'subnet_cidr': '89.50.28.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-26 09:34:06,537 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a698331b-ab77-45c2-b62b-07f295fce6a0', 'name': 'ctest-vn-13540200', 'tenant_id': '88fca47ca8fd471eabd62eb4b606fa9f', 'project_id': '88fca47ca8fd471eabd62eb4b606fa9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1d1da0d4-e846-463a-a65a-dfff396a8662'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33746563', 'ctest-vn-13540200'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33746563', 'ctest-policy-allow-all-19191248']], 'subnet_ipam': [{'subnet_cidr': '53.246.245.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-26 09:34:06,702 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-03-26 09:34:07,005 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-03-26 09:34:07,033 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ee053aa6-1431-4dcc-b82e-0bbf64829f92 2025-03-26 09:34:07,052 - DEBUG - Requesting: http://10.0.0.27:8082/project/88fca47c-a8fd-471e-abd6-2eb4b606fa9f 2025-03-26 09:34:07,135 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ddaf88ee-947e-46ec-a80b-39db82b26b27 2025-03-26 09:34:07,153 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ddaf88ee-947e-46ec-a80b-39db82b26b27 2025-03-26 09:34:07,164 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d410140a-da16-462f-bc8c-a6ae04f9fd19 2025-03-26 09:34:07,173 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d410140a-da16-462f-bc8c-a6ae04f9fd19 2025-03-26 09:34:07,183 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/ae2f93e7-30f2-44b7-b9fc-e04b54b20da7 2025-03-26 09:34:07,192 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-26 09:34:07,192 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ddaf88ee-947e-46ec-a80b-39db82b26b27 2025-03-26 09:34:07,204 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d410140a-da16-462f-bc8c-a6ae04f9fd19 2025-03-26 09:34:07,222 - INFO - Verified VN network id 7 for VN ddaf88ee-947e-46ec-a80b-39db82b26b27 2025-03-26 09:34:07,223 - INFO - Verifications in API Server for VN ctest-vn-61667575 passed 2025-03-26 09:34:07,223 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ddaf88ee-947e-46ec-a80b-39db82b26b27 2025-03-26 09:34:07,236 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d410140a-da16-462f-bc8c-a6ae04f9fd19 2025-03-26 09:34:07,246 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d410140a-da16-462f-bc8c-a6ae04f9fd19 2025-03-26 09:34:07,254 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/ae2f93e7-30f2-44b7-b9fc-e04b54b20da7 2025-03-26 09:34:07,267 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33746563:ctest-vn-61667575', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33746563', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15974136961581336300', 'uuid-lslong': '12108835638069062439'}, 'enable': 'true', 'created': '2025-03-26T09:34:04', 'last-modified': '2025-03-26T09:34:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.008507'} 2025-03-26 09:34:07,273 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-26 09:34:07,273 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61667575 passed 2025-03-26 09:34:07,273 - DEBUG - ====Verifying policy data for ctest-vn-61667575 in API_Server ====== 2025-03-26 09:34:07,273 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-03-26 09:34:07,279 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ee053aa6-1431-4dcc-b82e-0bbf64829f92 2025-03-26 09:34:07,291 - DEBUG - Requesting: http://10.0.0.27:8082/project/88fca47c-a8fd-471e-abd6-2eb4b606fa9f 2025-03-26 09:34:07,381 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ddaf88ee-947e-46ec-a80b-39db82b26b27 2025-03-26 09:34:07,391 - DEBUG - ==>Verifying data for policy with id: 6823398c-0c05-4167-951a-7e773cea4dd8, fqn: ['default-domain', 'ctest-TestBasicPolicy-33746563', 'ctest-policy-allow-all-19191248'] 2025-03-26 09:34:07,392 - INFO - VN ctest-vn-61667575 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-26 09:34:07,392 - DEBUG - Verifying the vn in opserver 2025-03-26 09:34:07,392 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33746563:ctest-vn-61667575 virtual network link through opserver 10.0.0.27 2025-03-26 09:34:07,392 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-03-26 09:34:07,685 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-03-26 09:34:07,741 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33746563:ctest-vn-61667575', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33746563:ctest-vn-61667575?flat'} 2025-03-26 09:34:07,741 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33746563:ctest-vn-61667575 is found in opserver 2025-03-26 09:34:07,753 - DEBUG - Do not have enough data to verify VN in agent 2025-03-26 09:34:07,761 - DEBUG - VRF ids for VN ctest-vn-61667575: {} 2025-03-26 09:34:07,761 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-03-26 09:34:07,769 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ee053aa6-1431-4dcc-b82e-0bbf64829f92 2025-03-26 09:34:07,783 - DEBUG - Requesting: http://10.0.0.27:8082/project/88fca47c-a8fd-471e-abd6-2eb4b606fa9f 2025-03-26 09:34:07,863 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a698331b-ab77-45c2-b62b-07f295fce6a0 2025-03-26 09:34:07,876 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a698331b-ab77-45c2-b62b-07f295fce6a0 2025-03-26 09:34:07,886 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/aae35105-076c-48bb-9b84-4d3031121079 2025-03-26 09:34:07,894 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/aae35105-076c-48bb-9b84-4d3031121079 2025-03-26 09:34:07,902 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/d428985f-7ad9-4f7c-8b70-db21898d5f9c 2025-03-26 09:34:07,910 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-26 09:34:07,910 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a698331b-ab77-45c2-b62b-07f295fce6a0 2025-03-26 09:34:07,920 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/aae35105-076c-48bb-9b84-4d3031121079 2025-03-26 09:34:07,935 - INFO - Verified VN network id 8 for VN a698331b-ab77-45c2-b62b-07f295fce6a0 2025-03-26 09:34:07,936 - INFO - Verifications in API Server for VN ctest-vn-13540200 passed 2025-03-26 09:34:07,936 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a698331b-ab77-45c2-b62b-07f295fce6a0 2025-03-26 09:34:07,946 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/aae35105-076c-48bb-9b84-4d3031121079 2025-03-26 09:34:07,954 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/aae35105-076c-48bb-9b84-4d3031121079 2025-03-26 09:34:07,961 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/d428985f-7ad9-4f7c-8b70-db21898d5f9c 2025-03-26 09:34:07,975 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33746563:ctest-vn-13540200', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33746563', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12004401000689911234', 'uuid-lslong': '13126594277381301920'}, 'enable': 'true', 'created': '2025-03-26T09:34:05', 'last-modified': '2025-03-26T09:34:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.463961'} 2025-03-26 09:34:07,984 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-26 09:34:07,984 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13540200 passed 2025-03-26 09:34:07,985 - DEBUG - ====Verifying policy data for ctest-vn-13540200 in API_Server ====== 2025-03-26 09:34:07,985 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-03-26 09:34:07,992 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ee053aa6-1431-4dcc-b82e-0bbf64829f92 2025-03-26 09:34:08,009 - DEBUG - Requesting: http://10.0.0.27:8082/project/88fca47c-a8fd-471e-abd6-2eb4b606fa9f 2025-03-26 09:34:08,081 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a698331b-ab77-45c2-b62b-07f295fce6a0 2025-03-26 09:34:08,091 - DEBUG - ==>Verifying data for policy with id: 6823398c-0c05-4167-951a-7e773cea4dd8, fqn: ['default-domain', 'ctest-TestBasicPolicy-33746563', 'ctest-policy-allow-all-19191248'] 2025-03-26 09:34:08,091 - INFO - VN ctest-vn-13540200 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-26 09:34:08,092 - DEBUG - Verifying the vn in opserver 2025-03-26 09:34:08,092 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33746563:ctest-vn-13540200 virtual network link through opserver 10.0.0.27 2025-03-26 09:34:08,092 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-03-26 09:34:08,105 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33746563:ctest-vn-13540200', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33746563:ctest-vn-13540200?flat'} 2025-03-26 09:34:08,105 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33746563:ctest-vn-13540200 is found in opserver 2025-03-26 09:34:08,116 - DEBUG - Do not have enough data to verify VN in agent 2025-03-26 09:34:08,120 - DEBUG - VRF ids for VN ctest-vn-13540200: {} 2025-03-26 09:34:08,178 - DEBUG - Services list from nova: [, , ] 2025-03-26 09:34:09,229 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2957-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2957-1) 2025-03-26 09:34:10,489 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2957-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2957-1) 2025-03-26 09:34:10,489 - INFO - Waiting for VM ctest-TestBasicPolicy-33746563-63098534 to be up.. 2025-03-26 09:34:10,586 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-26 09:34:15,675 - DEBUG - VM is in ACTIVE state now 2025-03-26 09:34:15,675 - INFO - VM name : ctest-TestBasicPolicy-33746563-63098534 2025-03-26 09:34:15,753 - DEBUG - VM ctest-TestBasicPolicy-33746563-63098534 ID is 8aa6944d-d5a1-4c70-8fe0-bf43486bd5d5 2025-03-26 09:34:15,771 - DEBUG - VM ctest-TestBasicPolicy-33746563-63098534 launched on Node cn-jenkins-deploy-platform-ansible-os-2957-1 2025-03-26 09:34:15,864 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/8aa6944d-d5a1-4c70-8fe0-bf43486bd5d5 2025-03-26 09:34:15,876 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/47a84190-8628-4b41-aa76-ecb8c77f3251 2025-03-26 09:34:19,158 - 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 1026ms') 2025-03-26 09:34:19,158 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-33746563-63098534 failed! 2025-03-26 09:34:19,214 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-33746563:ctest-vn-61667575 is 89.50.28.65 and allocation pool is NOT set 2025-03-26 09:34:21,275 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=9.37 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.18 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.179/5.774/9.369/3.595 ms') 2025-03-26 09:34:21,276 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-33746563-63098534 passed 2025-03-26 09:34:21,434 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-26 09:34:21,434 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-33746563-63098534, IP 89.50.28.67, Port 22 2025-03-26 09:34:21,489 - 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-26 09:34:21,578 - DEBUG - VM ctest-TestBasicPolicy-33746563-63098534 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-26 09:34:26,578 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-26 09:34:26,578 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-33746563-63098534, IP 89.50.28.67, Port 22 2025-03-26 09:34:26,746 - DEBUG - VM ctest-TestBasicPolicy-33746563-63098534 is ready for SSH connections 2025-03-26 09:34:26,746 - INFO - Waiting for VM ctest-TestBasicPolicy-33746563-64566898 to be up.. 2025-03-26 09:34:26,830 - DEBUG - VM is in ACTIVE state now 2025-03-26 09:34:26,830 - INFO - VM name : ctest-TestBasicPolicy-33746563-64566898 2025-03-26 09:34:26,908 - DEBUG - VM ctest-TestBasicPolicy-33746563-64566898 ID is e812a3dc-102f-4129-8150-17be0f3f78fd 2025-03-26 09:34:26,908 - DEBUG - VM ctest-TestBasicPolicy-33746563-64566898 launched on Node cn-jenkins-deploy-platform-ansible-os-2957-1 2025-03-26 09:34:26,984 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/e812a3dc-102f-4129-8150-17be0f3f78fd 2025-03-26 09:34:26,993 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/6bc2c144-ebd3-4bb5-8deb-3405c85bf19b 2025-03-26 09:34:28,237 - 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.72 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.429 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.429/1.572/2.715/1.143 ms') 2025-03-26 09:34:28,237 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-33746563-64566898 passed 2025-03-26 09:34:28,398 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-26 09:34:28,398 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-33746563-64566898, IP 53.246.245.3, Port 22 2025-03-26 09:34:28,553 - DEBUG - VM ctest-TestBasicPolicy-33746563-64566898 is ready for SSH connections 2025-03-26 09:34:28,553 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-26 09:34:28,553 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 53.246.245.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-03-26 09:34:28,553 - DEBUG - ping -s 56 -c 3 -W 1 53.246.245.3 2025-03-26 09:34:32,268 - DEBUG - PING 53.246.245.3 (53.246.245.3): 56 data bytes 64 bytes from 53.246.245.3: seq=0 ttl=63 time=4.517 ms 64 bytes from 53.246.245.3: seq=1 ttl=63 time=0.879 ms 64 bytes from 53.246.245.3: seq=2 ttl=63 time=0.789 ms --- 53.246.245.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.789/2.061/4.517 ms 2025-03-26 09:34:32,269 - INFO - Ping to IP 53.246.245.3 from VM ctest-TestBasicPolicy-33746563-63098534 passed 2025-03-26 09:34:32,453 - DEBUG - Policy Update Response {"network-policy": {"uuid": "6823398c-0c05-4167-951a-7e773cea4dd8", "href": "http://10.0.0.27:8082/network-policy/6823398c-0c05-4167-951a-7e773cea4dd8"}} 2025-03-26 09:34:32,454 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-26 09:34:32,454 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 53.246.245.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-03-26 09:34:32,454 - DEBUG - ping -s 56 -c 3 -W 1 53.246.245.3 2025-03-26 09:34:35,659 - DEBUG - PING 53.246.245.3 (53.246.245.3): 56 data bytes 64 bytes from 53.246.245.3: seq=0 ttl=63 time=1.480 ms --- 53.246.245.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.480/1.480/1.480 ms 2025-03-26 09:34:35,659 - WARNING - Ping to IP 53.246.245.3 from VM ctest-TestBasicPolicy-33746563-63098534 failed 2025-03-26 09:34:35,660 - INFO - Deleting VM ctest-TestBasicPolicy-33746563-64566898 2025-03-26 09:34:35,732 - INFO - Deleting VM ctest-TestBasicPolicy-33746563-63098534 2025-03-26 09:34:36,139 - INFO - Deleted policy ctest-policy-allow-all-19191248 2025-03-26 09:34:36,139 - INFO - Deleting VN ctest-vn-13540200 2025-03-26 09:34:36,180 - DEBUG - VN a698331b-ab77-45c2-b62b-07f295fce6a0 still in use: Unable to complete operation on network a698331b-ab77-45c2-b62b-07f295fce6a0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-eeecb6cc-19c7-4212-a22b-fd07c1d1d250'] 2025-03-26 09:34:36,181 - WARNING - Deleting VN ctest-vn-13540200 failed..Will retry 2025-03-26 09:34:38,281 - DEBUG - Response for deleting network () 2025-03-26 09:34:38,281 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/aae35105-076c-48bb-9b84-4d3031121079 2025-03-26 09:34:38,291 - DEBUG - Response Code: 404 2025-03-26 09:34:38,291 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-03-26 09:34:38,297 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ee053aa6-1431-4dcc-b82e-0bbf64829f92 2025-03-26 09:34:38,351 - DEBUG - Requesting: http://10.0.0.27:8082/project/88fca47c-a8fd-471e-abd6-2eb4b606fa9f 2025-03-26 09:34:38,423 - INFO - Validated that VN ctest-vn-13540200 is not found in API Server 2025-03-26 09:34:38,434 - DEBUG - VN ctest-vn-13540200 is not present in Agent 10.0.0.27 2025-03-26 09:34:38,434 - INFO - Validated that VN ctest-vn-13540200 is not in any agent 2025-03-26 09:34:38,449 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-13540200 info 2025-03-26 09:34:38,449 - INFO - Deleting VN ctest-vn-61667575 2025-03-26 09:34:38,609 - DEBUG - Response for deleting network () 2025-03-26 09:34:38,609 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d410140a-da16-462f-bc8c-a6ae04f9fd19 2025-03-26 09:34:38,616 - DEBUG - Response Code: 404 2025-03-26 09:34:38,616 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-03-26 09:34:38,622 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ee053aa6-1431-4dcc-b82e-0bbf64829f92 2025-03-26 09:34:38,675 - DEBUG - Requesting: http://10.0.0.27:8082/project/88fca47c-a8fd-471e-abd6-2eb4b606fa9f 2025-03-26 09:34:38,746 - INFO - Validated that VN ctest-vn-61667575 is not found in API Server 2025-03-26 09:34:38,759 - DEBUG - VN ctest-vn-61667575 is not present in Agent 10.0.0.27 2025-03-26 09:34:38,759 - INFO - Validated that VN ctest-vn-61667575 is not in any agent 2025-03-26 09:34:38,774 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-61667575 info 2025-03-26 09:34:39,027 - DEBUG - No XMPP flaps were noticed during the test 2025-03-26 09:34:39,028 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-03-26 09:34:39,028 - INFO - -------------------------------------------------------------------------------- 2025-03-26 09:34:39,710 - INFO - Deleted project: ctest-TestBasicPolicy-33746563, ID : 88fca47c-a8fd-471e-abd6-2eb4b606fa9f