2025-03-27 16:21:03,502 - INFO - Domain Default found not creating 2025-03-27 16:21:03,674 - INFO - Project ctest-TestBasicPolicy-78370575 not found, creating it 2025-03-27 16:21:04,185 - INFO - Created Project:ctest-TestBasicPolicy-78370575, ID : b55f4c5f-9df4-4996-b0a3-32cd1c7f7508 2025-03-27 16:21:06,026 - INFO - ================================================================================ 2025-03-27 16:21:06,026 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-27 16:21:06,026 - 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-27 16:21:06,293 - DEBUG - Nothing to compare xmpp stats {'10.0.0.54': {'10.20.0.13': '0'}} with 2025-03-27 16:21:06,293 - INFO - Initial checks done. Running the testcase now 2025-03-27 16:21:06,293 - INFO - 2025-03-27 16:21:06,903 - DEBUG - Response for create_network : {'network': {'id': 'a9edd6da-852d-4540-9ffb-b49afe62f849', 'name': 'ctest-vn-80509894', 'tenant_id': 'b55f4c5f9df44996b0a332cd1c7f7508', 'project_id': 'b55f4c5f9df44996b0a332cd1c7f7508', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78370575', 'ctest-vn-80509894'], 'port_security_enabled': True, 'description': ''}} 2025-03-27 16:21:07,070 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd873057f-8d66-43f4-aeca-ecaca0c478a0', 'name': '', 'tenant_id': 'b55f4c5f9df44996b0a332cd1c7f7508', 'network_id': 'a9edd6da-852d-4540-9ffb-b49afe62f849', 'ip_version': 4, 'cidr': '208.18.255.0/26', 'allocation_pools': [{'start': '208.18.255.2', 'end': '208.18.255.62'}], 'gateway_ip': '208.18.255.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '208.18.255.2', 'tags': [], 'project_id': 'b55f4c5f9df44996b0a332cd1c7f7508'}} 2025-03-27 16:21:07,092 - INFO - Created VN ctest-vn-80509894 2025-03-27 16:21:07,149 - DEBUG - VN ctest-vn-80509894 UUID is a9edd6da-852d-4540-9ffb-b49afe62f849 2025-03-27 16:21:07,497 - DEBUG - Response for create_network : {'network': {'id': 'cbdad3be-ec5b-4e16-81dc-a271d54160cb', 'name': 'ctest-vn-41704285', 'tenant_id': 'b55f4c5f9df44996b0a332cd1c7f7508', 'project_id': 'b55f4c5f9df44996b0a332cd1c7f7508', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78370575', 'ctest-vn-41704285'], 'port_security_enabled': True, 'description': ''}} 2025-03-27 16:21:07,708 - DEBUG - Response for create_subnet : {'subnet': {'id': '9a466623-924c-4b82-83f5-83047a7da51f', 'name': '', 'tenant_id': 'b55f4c5f9df44996b0a332cd1c7f7508', 'network_id': 'cbdad3be-ec5b-4e16-81dc-a271d54160cb', 'ip_version': 4, 'cidr': '198.213.232.64/26', 'allocation_pools': [{'start': '198.213.232.66', 'end': '198.213.232.126'}], 'gateway_ip': '198.213.232.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.213.232.66', 'tags': [], 'project_id': 'b55f4c5f9df44996b0a332cd1c7f7508'}} 2025-03-27 16:21:07,731 - INFO - Created VN ctest-vn-41704285 2025-03-27 16:21:07,793 - DEBUG - VN ctest-vn-41704285 UUID is cbdad3be-ec5b-4e16-81dc-a271d54160cb 2025-03-27 16:21:07,917 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-78370575:ctest-vn-80509894, 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-78370575:ctest-vn-41704285, 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-27 16:21:08,240 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a9edd6da-852d-4540-9ffb-b49afe62f849', 'name': 'ctest-vn-80509894', 'tenant_id': 'b55f4c5f9df44996b0a332cd1c7f7508', 'project_id': 'b55f4c5f9df44996b0a332cd1c7f7508', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d873057f-8d66-43f4-aeca-ecaca0c478a0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78370575', 'ctest-vn-80509894'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78370575', 'ctest-policy-allow-all-42695363']], 'subnet_ipam': [{'subnet_cidr': '208.18.255.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-27 16:21:08,505 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cbdad3be-ec5b-4e16-81dc-a271d54160cb', 'name': 'ctest-vn-41704285', 'tenant_id': 'b55f4c5f9df44996b0a332cd1c7f7508', 'project_id': 'b55f4c5f9df44996b0a332cd1c7f7508', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9a466623-924c-4b82-83f5-83047a7da51f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78370575', 'ctest-vn-41704285'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78370575', 'ctest-policy-allow-all-42695363']], 'subnet_ipam': [{'subnet_cidr': '198.213.232.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-27 16:21:08,657 - DEBUG - Requesting: http://10.0.0.54:8082/domains 2025-03-27 16:21:09,014 - DEBUG - Requesting: http://10.0.0.54:8082/domains 2025-03-27 16:21:09,050 - DEBUG - Requesting: http://10.0.0.54:8082/domain/669846c2-f2f6-4644-b578-6bfd319d05e4 2025-03-27 16:21:09,064 - DEBUG - Requesting: http://10.0.0.54:8082/project/b55f4c5f-9df4-4996-b0a3-32cd1c7f7508 2025-03-27 16:21:09,150 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/a9edd6da-852d-4540-9ffb-b49afe62f849 2025-03-27 16:21:09,165 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/a9edd6da-852d-4540-9ffb-b49afe62f849 2025-03-27 16:21:09,178 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/f78dcf4a-a42f-48c2-bac5-8c3b50fd9438 2025-03-27 16:21:09,187 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/f78dcf4a-a42f-48c2-bac5-8c3b50fd9438 2025-03-27 16:21:09,197 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/d92bfe1b-42c4-4a79-b756-70053cba4b81 2025-03-27 16:21:09,206 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-27 16:21:09,206 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/a9edd6da-852d-4540-9ffb-b49afe62f849 2025-03-27 16:21:09,218 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/f78dcf4a-a42f-48c2-bac5-8c3b50fd9438 2025-03-27 16:21:09,235 - INFO - Verified VN network id 9 for VN a9edd6da-852d-4540-9ffb-b49afe62f849 2025-03-27 16:21:09,235 - INFO - Verifications in API Server for VN ctest-vn-80509894 passed 2025-03-27 16:21:09,235 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/a9edd6da-852d-4540-9ffb-b49afe62f849 2025-03-27 16:21:09,248 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/f78dcf4a-a42f-48c2-bac5-8c3b50fd9438 2025-03-27 16:21:09,258 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/f78dcf4a-a42f-48c2-bac5-8c3b50fd9438 2025-03-27 16:21:09,268 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/d92bfe1b-42c4-4a79-b756-70053cba4b81 2025-03-27 16:21:09,289 - DEBUG - Control-node 10.0.0.54 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78370575:ctest-vn-80509894', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78370575', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12244679195915797824', 'uuid-lslong': '11528006248970778697'}, 'enable': 'true', 'created': '2025-03-27T16:21:06', 'last-modified': '2025-03-27T16:21:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.073666'} 2025-03-27 16:21:09,298 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-27 16:21:09,298 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80509894 passed 2025-03-27 16:21:09,298 - DEBUG - ====Verifying policy data for ctest-vn-80509894 in API_Server ====== 2025-03-27 16:21:09,298 - DEBUG - Requesting: http://10.0.0.54:8082/domains 2025-03-27 16:21:09,305 - DEBUG - Requesting: http://10.0.0.54:8082/domain/669846c2-f2f6-4644-b578-6bfd319d05e4 2025-03-27 16:21:09,323 - DEBUG - Requesting: http://10.0.0.54:8082/project/b55f4c5f-9df4-4996-b0a3-32cd1c7f7508 2025-03-27 16:21:09,409 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/a9edd6da-852d-4540-9ffb-b49afe62f849 2025-03-27 16:21:09,423 - DEBUG - ==>Verifying data for policy with id: 9a095914-2e96-48a2-86b8-c36c33b481f1, fqn: ['default-domain', 'ctest-TestBasicPolicy-78370575', 'ctest-policy-allow-all-42695363'] 2025-03-27 16:21:09,423 - INFO - VN ctest-vn-80509894 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-27 16:21:09,423 - DEBUG - Verifying the vn in opserver 2025-03-27 16:21:09,423 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78370575:ctest-vn-80509894 virtual network link through opserver 10.0.0.54 2025-03-27 16:21:09,423 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks 2025-03-27 16:21:09,759 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks 2025-03-27 16:21:09,825 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78370575:ctest-vn-80509894', 'href': 'http://10.0.0.54:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78370575:ctest-vn-80509894?flat'} 2025-03-27 16:21:09,825 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78370575:ctest-vn-80509894 is found in opserver 2025-03-27 16:21:09,839 - DEBUG - Do not have enough data to verify VN in agent 2025-03-27 16:21:09,845 - DEBUG - VRF ids for VN ctest-vn-80509894: {} 2025-03-27 16:21:09,845 - DEBUG - Requesting: http://10.0.0.54:8082/domains 2025-03-27 16:21:09,852 - DEBUG - Requesting: http://10.0.0.54:8082/domain/669846c2-f2f6-4644-b578-6bfd319d05e4 2025-03-27 16:21:09,868 - DEBUG - Requesting: http://10.0.0.54:8082/project/b55f4c5f-9df4-4996-b0a3-32cd1c7f7508 2025-03-27 16:21:09,953 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/cbdad3be-ec5b-4e16-81dc-a271d54160cb 2025-03-27 16:21:09,970 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/cbdad3be-ec5b-4e16-81dc-a271d54160cb 2025-03-27 16:21:09,984 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/80fddb24-86ac-4342-a87b-c933bd4e4983 2025-03-27 16:21:09,993 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/80fddb24-86ac-4342-a87b-c933bd4e4983 2025-03-27 16:21:10,003 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/130548f5-e6ef-4d71-97a1-e1acb420ef5e 2025-03-27 16:21:10,014 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-27 16:21:10,014 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/cbdad3be-ec5b-4e16-81dc-a271d54160cb 2025-03-27 16:21:10,030 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/80fddb24-86ac-4342-a87b-c933bd4e4983 2025-03-27 16:21:10,056 - INFO - Verified VN network id 10 for VN cbdad3be-ec5b-4e16-81dc-a271d54160cb 2025-03-27 16:21:10,056 - INFO - Verifications in API Server for VN ctest-vn-41704285 passed 2025-03-27 16:21:10,056 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/cbdad3be-ec5b-4e16-81dc-a271d54160cb 2025-03-27 16:21:10,076 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/80fddb24-86ac-4342-a87b-c933bd4e4983 2025-03-27 16:21:10,088 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/80fddb24-86ac-4342-a87b-c933bd4e4983 2025-03-27 16:21:10,102 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/130548f5-e6ef-4d71-97a1-e1acb420ef5e 2025-03-27 16:21:10,123 - DEBUG - Control-node 10.0.0.54 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78370575:ctest-vn-41704285', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78370575', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14689285951584947734', 'uuid-lslong': '9357532735561883851'}, 'enable': 'true', 'created': '2025-03-27T16:21:07', 'last-modified': '2025-03-27T16:21:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.645439'} 2025-03-27 16:21:10,133 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-27 16:21:10,133 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41704285 passed 2025-03-27 16:21:10,133 - DEBUG - ====Verifying policy data for ctest-vn-41704285 in API_Server ====== 2025-03-27 16:21:10,133 - DEBUG - Requesting: http://10.0.0.54:8082/domains 2025-03-27 16:21:10,142 - DEBUG - Requesting: http://10.0.0.54:8082/domain/669846c2-f2f6-4644-b578-6bfd319d05e4 2025-03-27 16:21:10,158 - DEBUG - Requesting: http://10.0.0.54:8082/project/b55f4c5f-9df4-4996-b0a3-32cd1c7f7508 2025-03-27 16:21:10,243 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/cbdad3be-ec5b-4e16-81dc-a271d54160cb 2025-03-27 16:21:10,256 - DEBUG - ==>Verifying data for policy with id: 9a095914-2e96-48a2-86b8-c36c33b481f1, fqn: ['default-domain', 'ctest-TestBasicPolicy-78370575', 'ctest-policy-allow-all-42695363'] 2025-03-27 16:21:10,256 - INFO - VN ctest-vn-41704285 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-27 16:21:10,256 - DEBUG - Verifying the vn in opserver 2025-03-27 16:21:10,256 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78370575:ctest-vn-41704285 virtual network link through opserver 10.0.0.54 2025-03-27 16:21:10,256 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks 2025-03-27 16:21:10,269 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78370575:ctest-vn-41704285', 'href': 'http://10.0.0.54:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78370575:ctest-vn-41704285?flat'} 2025-03-27 16:21:10,269 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78370575:ctest-vn-41704285 is found in opserver 2025-03-27 16:21:10,284 - DEBUG - Do not have enough data to verify VN in agent 2025-03-27 16:21:10,294 - DEBUG - VRF ids for VN ctest-vn-41704285: {} 2025-03-27 16:21:10,361 - DEBUG - Services list from nova: [, , ] 2025-03-27 16:21:11,510 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2979-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2979-1) 2025-03-27 16:21:12,908 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2979-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2979-1) 2025-03-27 16:21:12,908 - INFO - Waiting for VM ctest-TestBasicPolicy-78370575-16597870 to be up.. 2025-03-27 16:21:13,007 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-27 16:21:18,097 - DEBUG - VM is in ACTIVE state now 2025-03-27 16:21:18,097 - INFO - VM name : ctest-TestBasicPolicy-78370575-16597870 2025-03-27 16:21:18,178 - DEBUG - VM ctest-TestBasicPolicy-78370575-16597870 ID is a79f74c3-cb56-45b2-967e-daca76059567 2025-03-27 16:21:18,202 - DEBUG - VM ctest-TestBasicPolicy-78370575-16597870 launched on Node cn-jenkins-deploy-platform-ansible-os-2979-1 2025-03-27 16:21:18,284 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-machine/a79f74c3-cb56-45b2-967e-daca76059567 2025-03-27 16:21:18,295 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-machine-interface/79a14b7d-de9d-4d9c-a178-64f792a51bfc 2025-03-27 16:21:21,558 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1015ms') 2025-03-27 16:21:21,559 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-78370575-16597870 failed! 2025-03-27 16:21:21,617 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-78370575:ctest-vn-80509894 is 208.18.255.1 and allocation pool is NOT set 2025-03-27 16:21:23,681 - 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=7.08 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.882 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.882/3.983/7.084/3.101 ms') 2025-03-27 16:21:23,681 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-78370575-16597870 passed 2025-03-27 16:21:23,833 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 16:21:23,834 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-78370575-16597870, IP 208.18.255.3, Port 22 2025-03-27 16:21:23,900 - 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-27 16:21:23,999 - DEBUG - VM ctest-TestBasicPolicy-78370575-16597870 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-27 16:21:29,001 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 16:21:29,001 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-78370575-16597870, IP 208.18.255.3, Port 22 2025-03-27 16:21:29,157 - DEBUG - VM ctest-TestBasicPolicy-78370575-16597870 is ready for SSH connections 2025-03-27 16:21:29,157 - INFO - Waiting for VM ctest-TestBasicPolicy-78370575-58584610 to be up.. 2025-03-27 16:21:29,239 - DEBUG - VM is in ACTIVE state now 2025-03-27 16:21:29,239 - INFO - VM name : ctest-TestBasicPolicy-78370575-58584610 2025-03-27 16:21:29,328 - DEBUG - VM ctest-TestBasicPolicy-78370575-58584610 ID is f974f6b3-ad42-47d5-b572-2d629fa23130 2025-03-27 16:21:29,328 - DEBUG - VM ctest-TestBasicPolicy-78370575-58584610 launched on Node cn-jenkins-deploy-platform-ansible-os-2979-1 2025-03-27 16:21:29,427 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-machine/f974f6b3-ad42-47d5-b572-2d629fa23130 2025-03-27 16:21:29,439 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-machine-interface/d1cddc40-b04e-49d1-84f0-d8e5e5118cf2 2025-03-27 16:21:30,695 - 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.53 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.548 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.548/2.040/3.533/1.492 ms') 2025-03-27 16:21:30,695 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-78370575-58584610 passed 2025-03-27 16:21:30,853 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 16:21:30,853 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-78370575-58584610, IP 198.213.232.67, Port 22 2025-03-27 16:21:31,009 - DEBUG - VM ctest-TestBasicPolicy-78370575-58584610 is ready for SSH connections 2025-03-27 16:21:31,009 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 16:21:31,009 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 198.213.232.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.54, gateway password: c0ntrail123 2025-03-27 16:21:31,009 - DEBUG - ping -s 56 -c 3 -W 1 198.213.232.67 2025-03-27 16:21:35,204 - DEBUG - PING 198.213.232.67 (198.213.232.67): 56 data bytes 64 bytes from 198.213.232.67: seq=0 ttl=63 time=4.737 ms 64 bytes from 198.213.232.67: seq=1 ttl=63 time=0.881 ms 64 bytes from 198.213.232.67: seq=2 ttl=63 time=0.775 ms --- 198.213.232.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.775/2.131/4.737 ms 2025-03-27 16:21:35,204 - INFO - Ping to IP 198.213.232.67 from VM ctest-TestBasicPolicy-78370575-16597870 passed 2025-03-27 16:21:35,389 - DEBUG - Policy Update Response {"network-policy": {"uuid": "9a095914-2e96-48a2-86b8-c36c33b481f1", "href": "http://10.0.0.54:8082/network-policy/9a095914-2e96-48a2-86b8-c36c33b481f1"}} 2025-03-27 16:21:35,389 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 16:21:35,389 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 198.213.232.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.54, gateway password: c0ntrail123 2025-03-27 16:21:35,390 - DEBUG - ping -s 56 -c 3 -W 1 198.213.232.67 2025-03-27 16:21:38,628 - DEBUG - PING 198.213.232.67 (198.213.232.67): 56 data bytes --- 198.213.232.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-03-27 16:21:38,629 - WARNING - Ping to IP 198.213.232.67 from VM ctest-TestBasicPolicy-78370575-16597870 failed 2025-03-27 16:21:38,629 - INFO - Deleting VM ctest-TestBasicPolicy-78370575-58584610 2025-03-27 16:21:38,702 - INFO - Deleting VM ctest-TestBasicPolicy-78370575-16597870 2025-03-27 16:21:39,185 - INFO - Deleted policy ctest-policy-allow-all-42695363 2025-03-27 16:21:39,185 - INFO - Deleting VN ctest-vn-41704285 2025-03-27 16:21:39,224 - DEBUG - VN cbdad3be-ec5b-4e16-81dc-a271d54160cb still in use: Unable to complete operation on network cbdad3be-ec5b-4e16-81dc-a271d54160cb. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-23def2fd-42bf-473f-9570-751429e0f3d1'] 2025-03-27 16:21:39,224 - WARNING - Deleting VN ctest-vn-41704285 failed..Will retry 2025-03-27 16:21:41,400 - DEBUG - Response for deleting network () 2025-03-27 16:21:41,401 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/80fddb24-86ac-4342-a87b-c933bd4e4983 2025-03-27 16:21:41,411 - DEBUG - Response Code: 404 2025-03-27 16:21:41,411 - DEBUG - Requesting: http://10.0.0.54:8082/domains 2025-03-27 16:21:41,427 - DEBUG - Requesting: http://10.0.0.54:8082/domain/669846c2-f2f6-4644-b578-6bfd319d05e4 2025-03-27 16:21:41,487 - DEBUG - Requesting: http://10.0.0.54:8082/project/b55f4c5f-9df4-4996-b0a3-32cd1c7f7508 2025-03-27 16:21:41,576 - INFO - Validated that VN ctest-vn-41704285 is not found in API Server 2025-03-27 16:21:41,600 - DEBUG - VN ctest-vn-41704285 is not present in Agent 10.0.0.54 2025-03-27 16:21:41,601 - INFO - Validated that VN ctest-vn-41704285 is not in any agent 2025-03-27 16:21:41,625 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-41704285 info 2025-03-27 16:21:41,626 - INFO - Deleting VN ctest-vn-80509894 2025-03-27 16:21:41,783 - DEBUG - Response for deleting network () 2025-03-27 16:21:41,783 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/f78dcf4a-a42f-48c2-bac5-8c3b50fd9438 2025-03-27 16:21:41,797 - DEBUG - Response Code: 404 2025-03-27 16:21:41,797 - DEBUG - Requesting: http://10.0.0.54:8082/domains 2025-03-27 16:21:41,806 - DEBUG - Requesting: http://10.0.0.54:8082/domain/669846c2-f2f6-4644-b578-6bfd319d05e4 2025-03-27 16:21:41,863 - DEBUG - Requesting: http://10.0.0.54:8082/project/b55f4c5f-9df4-4996-b0a3-32cd1c7f7508 2025-03-27 16:21:41,951 - INFO - Validated that VN ctest-vn-80509894 is not found in API Server 2025-03-27 16:21:41,969 - DEBUG - VN ctest-vn-80509894 is not present in Agent 10.0.0.54 2025-03-27 16:21:41,969 - INFO - Validated that VN ctest-vn-80509894 is not in any agent 2025-03-27 16:21:41,993 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-80509894 info 2025-03-27 16:21:42,256 - DEBUG - No XMPP flaps were noticed during the test 2025-03-27 16:21:42,256 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2025-03-27 16:21:42,257 - INFO - -------------------------------------------------------------------------------- 2025-03-27 16:21:43,030 - INFO - Deleted project: ctest-TestBasicPolicy-78370575, ID : b55f4c5f-9df4-4996-b0a3-32cd1c7f7508