2025-04-18 14:12:36,101 - INFO - Domain Default found not creating 2025-04-18 14:12:36,322 - INFO - Project ctest-TestBasicPolicy-53749077 not found, creating it 2025-04-18 14:12:36,835 - INFO - Created Project:ctest-TestBasicPolicy-53749077, ID : 03b96953-a3b2-492e-aa4f-e87713fab75d 2025-04-18 14:12:38,556 - INFO - ================================================================================ 2025-04-18 14:12:38,556 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-18 14:12:38,556 - 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-04-18 14:12:38,832 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-04-18 14:12:38,832 - INFO - Initial checks done. Running the testcase now 2025-04-18 14:12:38,833 - INFO - 2025-04-18 14:12:39,484 - DEBUG - Response for create_network : {'network': {'id': 'c31de66b-4e88-4132-ba66-3aa4c3c625f0', 'name': 'ctest-vn-48030282', 'tenant_id': '03b96953a3b2492eaa4fe87713fab75d', 'project_id': '03b96953a3b2492eaa4fe87713fab75d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53749077', 'ctest-vn-48030282'], 'port_security_enabled': True, 'description': ''}} 2025-04-18 14:12:39,700 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a3cda805-30af-4bec-bd8a-2bbef8c28007', 'name': '', 'tenant_id': '03b96953a3b2492eaa4fe87713fab75d', 'network_id': 'c31de66b-4e88-4132-ba66-3aa4c3c625f0', 'ip_version': 4, 'cidr': '42.181.22.192/26', 'allocation_pools': [{'start': '42.181.22.194', 'end': '42.181.22.254'}], 'gateway_ip': '42.181.22.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '42.181.22.194', 'tags': [], 'project_id': '03b96953a3b2492eaa4fe87713fab75d'}} 2025-04-18 14:12:39,729 - INFO - Created VN ctest-vn-48030282 2025-04-18 14:12:39,786 - DEBUG - VN ctest-vn-48030282 UUID is c31de66b-4e88-4132-ba66-3aa4c3c625f0 2025-04-18 14:12:40,161 - DEBUG - Response for create_network : {'network': {'id': '96217cc3-7321-41b7-a40b-d1c0bbba4133', 'name': 'ctest-vn-77816194', 'tenant_id': '03b96953a3b2492eaa4fe87713fab75d', 'project_id': '03b96953a3b2492eaa4fe87713fab75d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53749077', 'ctest-vn-77816194'], 'port_security_enabled': True, 'description': ''}} 2025-04-18 14:12:40,379 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a278a8cc-e4b1-494c-a7b1-0c6a51ab78de', 'name': '', 'tenant_id': '03b96953a3b2492eaa4fe87713fab75d', 'network_id': '96217cc3-7321-41b7-a40b-d1c0bbba4133', 'ip_version': 4, 'cidr': '154.75.80.128/26', 'allocation_pools': [{'start': '154.75.80.130', 'end': '154.75.80.190'}], 'gateway_ip': '154.75.80.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.75.80.130', 'tags': [], 'project_id': '03b96953a3b2492eaa4fe87713fab75d'}} 2025-04-18 14:12:40,407 - INFO - Created VN ctest-vn-77816194 2025-04-18 14:12:40,466 - DEBUG - VN ctest-vn-77816194 UUID is 96217cc3-7321-41b7-a40b-d1c0bbba4133 2025-04-18 14:12:40,609 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-53749077:ctest-vn-48030282, 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-53749077:ctest-vn-77816194, 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-04-18 14:12:40,999 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c31de66b-4e88-4132-ba66-3aa4c3c625f0', 'name': 'ctest-vn-48030282', 'tenant_id': '03b96953a3b2492eaa4fe87713fab75d', 'project_id': '03b96953a3b2492eaa4fe87713fab75d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a3cda805-30af-4bec-bd8a-2bbef8c28007'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53749077', 'ctest-vn-48030282'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53749077', 'ctest-policy-allow-all-46229132']], 'subnet_ipam': [{'subnet_cidr': '42.181.22.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-18 14:12:41,312 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '96217cc3-7321-41b7-a40b-d1c0bbba4133', 'name': 'ctest-vn-77816194', 'tenant_id': '03b96953a3b2492eaa4fe87713fab75d', 'project_id': '03b96953a3b2492eaa4fe87713fab75d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a278a8cc-e4b1-494c-a7b1-0c6a51ab78de'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53749077', 'ctest-vn-77816194'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53749077', 'ctest-policy-allow-all-46229132']], 'subnet_ipam': [{'subnet_cidr': '154.75.80.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-18 14:12:41,478 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-18 14:12:41,805 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-18 14:12:41,848 - DEBUG - Requesting: http://10.0.0.50:8082/domain/163811d2-a944-42ca-b519-e54badd96edd 2025-04-18 14:12:41,867 - DEBUG - Requesting: http://10.0.0.50:8082/project/03b96953-a3b2-492e-aa4f-e87713fab75d 2025-04-18 14:12:41,953 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c31de66b-4e88-4132-ba66-3aa4c3c625f0 2025-04-18 14:12:41,969 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c31de66b-4e88-4132-ba66-3aa4c3c625f0 2025-04-18 14:12:41,984 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2b56b85e-d65a-46d6-a5aa-ed905bff6d13 2025-04-18 14:12:41,997 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2b56b85e-d65a-46d6-a5aa-ed905bff6d13 2025-04-18 14:12:42,010 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b77bf1e8-e0bf-460c-8f9b-e2dceb64515c 2025-04-18 14:12:42,024 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-18 14:12:42,025 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c31de66b-4e88-4132-ba66-3aa4c3c625f0 2025-04-18 14:12:42,042 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2b56b85e-d65a-46d6-a5aa-ed905bff6d13 2025-04-18 14:12:42,069 - INFO - Verified VN network id 7 for VN c31de66b-4e88-4132-ba66-3aa4c3c625f0 2025-04-18 14:12:42,070 - INFO - Verifications in API Server for VN ctest-vn-48030282 passed 2025-04-18 14:12:42,070 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c31de66b-4e88-4132-ba66-3aa4c3c625f0 2025-04-18 14:12:42,088 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2b56b85e-d65a-46d6-a5aa-ed905bff6d13 2025-04-18 14:12:42,100 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2b56b85e-d65a-46d6-a5aa-ed905bff6d13 2025-04-18 14:12:42,112 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b77bf1e8-e0bf-460c-8f9b-e2dceb64515c 2025-04-18 14:12:42,129 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53749077:ctest-vn-48030282', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53749077', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14059646960273998130', 'uuid-lslong': '13431487418012673520'}, 'enable': 'true', 'created': '2025-04-18T14:12:39', 'last-modified': '2025-04-18T14:12:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.181664'} 2025-04-18 14:12:42,139 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-18 14:12:42,139 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48030282 passed 2025-04-18 14:12:42,139 - DEBUG - ====Verifying policy data for ctest-vn-48030282 in API_Server ====== 2025-04-18 14:12:42,140 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-18 14:12:42,149 - DEBUG - Requesting: http://10.0.0.50:8082/domain/163811d2-a944-42ca-b519-e54badd96edd 2025-04-18 14:12:42,165 - DEBUG - Requesting: http://10.0.0.50:8082/project/03b96953-a3b2-492e-aa4f-e87713fab75d 2025-04-18 14:12:42,261 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c31de66b-4e88-4132-ba66-3aa4c3c625f0 2025-04-18 14:12:42,277 - DEBUG - ==>Verifying data for policy with id: 50cce5d8-44d9-4050-9546-a18b7467710d, fqn: ['default-domain', 'ctest-TestBasicPolicy-53749077', 'ctest-policy-allow-all-46229132'] 2025-04-18 14:12:42,277 - INFO - VN ctest-vn-48030282 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-18 14:12:42,277 - DEBUG - Verifying the vn in opserver 2025-04-18 14:12:42,277 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53749077:ctest-vn-48030282 virtual network link through opserver 10.0.0.50 2025-04-18 14:12:42,278 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-04-18 14:12:42,612 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-04-18 14:12:42,694 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53749077:ctest-vn-48030282', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53749077:ctest-vn-48030282?flat'} 2025-04-18 14:12:42,694 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53749077:ctest-vn-48030282 is found in opserver 2025-04-18 14:12:42,710 - DEBUG - Do not have enough data to verify VN in agent 2025-04-18 14:12:42,717 - DEBUG - VRF ids for VN ctest-vn-48030282: {} 2025-04-18 14:12:42,717 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-18 14:12:42,726 - DEBUG - Requesting: http://10.0.0.50:8082/domain/163811d2-a944-42ca-b519-e54badd96edd 2025-04-18 14:12:42,743 - DEBUG - Requesting: http://10.0.0.50:8082/project/03b96953-a3b2-492e-aa4f-e87713fab75d 2025-04-18 14:12:42,826 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/96217cc3-7321-41b7-a40b-d1c0bbba4133 2025-04-18 14:12:42,841 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/96217cc3-7321-41b7-a40b-d1c0bbba4133 2025-04-18 14:12:42,856 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0e9744c3-bbf9-45c3-93c0-856b6b9ac707 2025-04-18 14:12:42,867 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0e9744c3-bbf9-45c3-93c0-856b6b9ac707 2025-04-18 14:12:42,879 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8068730f-aa60-4abc-bd24-f2b5a7eec36e 2025-04-18 14:12:42,889 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-18 14:12:42,889 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/96217cc3-7321-41b7-a40b-d1c0bbba4133 2025-04-18 14:12:42,903 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0e9744c3-bbf9-45c3-93c0-856b6b9ac707 2025-04-18 14:12:42,930 - INFO - Verified VN network id 8 for VN 96217cc3-7321-41b7-a40b-d1c0bbba4133 2025-04-18 14:12:42,930 - INFO - Verifications in API Server for VN ctest-vn-77816194 passed 2025-04-18 14:12:42,930 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/96217cc3-7321-41b7-a40b-d1c0bbba4133 2025-04-18 14:12:42,946 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0e9744c3-bbf9-45c3-93c0-856b6b9ac707 2025-04-18 14:12:42,957 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0e9744c3-bbf9-45c3-93c0-856b6b9ac707 2025-04-18 14:12:42,969 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8068730f-aa60-4abc-bd24-f2b5a7eec36e 2025-04-18 14:12:42,987 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53749077:ctest-vn-77816194', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53749077', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10818064958812668343', 'uuid-lslong': '11820772272677470515'}, 'enable': 'true', 'created': '2025-04-18T14:12:40', 'last-modified': '2025-04-18T14:12:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.757744'} 2025-04-18 14:12:42,997 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-18 14:12:42,997 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77816194 passed 2025-04-18 14:12:42,997 - DEBUG - ====Verifying policy data for ctest-vn-77816194 in API_Server ====== 2025-04-18 14:12:42,997 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-18 14:12:43,006 - DEBUG - Requesting: http://10.0.0.50:8082/domain/163811d2-a944-42ca-b519-e54badd96edd 2025-04-18 14:12:43,028 - DEBUG - Requesting: http://10.0.0.50:8082/project/03b96953-a3b2-492e-aa4f-e87713fab75d 2025-04-18 14:12:43,117 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/96217cc3-7321-41b7-a40b-d1c0bbba4133 2025-04-18 14:12:43,132 - DEBUG - ==>Verifying data for policy with id: 50cce5d8-44d9-4050-9546-a18b7467710d, fqn: ['default-domain', 'ctest-TestBasicPolicy-53749077', 'ctest-policy-allow-all-46229132'] 2025-04-18 14:12:43,132 - INFO - VN ctest-vn-77816194 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-18 14:12:43,132 - DEBUG - Verifying the vn in opserver 2025-04-18 14:12:43,132 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53749077:ctest-vn-77816194 virtual network link through opserver 10.0.0.50 2025-04-18 14:12:43,132 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-04-18 14:12:43,147 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53749077:ctest-vn-77816194', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53749077:ctest-vn-77816194?flat'} 2025-04-18 14:12:43,147 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53749077:ctest-vn-77816194 is found in opserver 2025-04-18 14:12:43,162 - DEBUG - Do not have enough data to verify VN in agent 2025-04-18 14:12:43,168 - DEBUG - VRF ids for VN ctest-vn-77816194: {} 2025-04-18 14:12:43,252 - DEBUG - Services list from nova: [, , ] 2025-04-18 14:12:44,581 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3139-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3139-1) 2025-04-18 14:12:45,951 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3139-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3139-1) 2025-04-18 14:12:45,951 - INFO - Waiting for VM ctest-TestBasicPolicy-53749077-11093964 to be up.. 2025-04-18 14:12:46,068 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-18 14:12:51,188 - DEBUG - VM is in ACTIVE state now 2025-04-18 14:12:51,188 - INFO - VM name : ctest-TestBasicPolicy-53749077-11093964 2025-04-18 14:12:51,295 - DEBUG - VM ctest-TestBasicPolicy-53749077-11093964 ID is d1cc52fd-5ef8-43b7-88db-e5bd88e5eff6 2025-04-18 14:12:51,322 - DEBUG - VM ctest-TestBasicPolicy-53749077-11093964 launched on Node cn-jenkins-deploy-platform-ansible-os-3139-1 2025-04-18 14:12:51,444 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/d1cc52fd-5ef8-43b7-88db-e5bd88e5eff6 2025-04-18 14:12:51,458 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/bd0b7c3d-80a8-4d54-a232-cc58d30bfb70 2025-04-18 14:12:54,733 - 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 1005ms') 2025-04-18 14:12:54,733 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-53749077-11093964 failed! 2025-04-18 14:12:54,806 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-53749077:ctest-vn-48030282 is 42.181.22.193 and allocation pool is NOT set 2025-04-18 14:12:56,878 - 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=11.5 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.46 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 = 3.463/7.482/11.501/4.019 ms') 2025-04-18 14:12:56,878 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-53749077-11093964 passed 2025-04-18 14:12:57,042 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-18 14:12:57,042 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-53749077-11093964, IP 42.181.22.195, Port 22 2025-04-18 14:12:57,109 - 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-04-18 14:12:57,235 - DEBUG - VM ctest-TestBasicPolicy-53749077-11093964 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-18 14:13:02,236 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-18 14:13:02,236 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-53749077-11093964, IP 42.181.22.195, Port 22 2025-04-18 14:13:02,410 - DEBUG - VM ctest-TestBasicPolicy-53749077-11093964 is ready for SSH connections 2025-04-18 14:13:02,410 - INFO - Waiting for VM ctest-TestBasicPolicy-53749077-62803158 to be up.. 2025-04-18 14:13:02,520 - DEBUG - VM is in ACTIVE state now 2025-04-18 14:13:02,520 - INFO - VM name : ctest-TestBasicPolicy-53749077-62803158 2025-04-18 14:13:02,611 - DEBUG - VM ctest-TestBasicPolicy-53749077-62803158 ID is 5b2674bd-7cbb-4e3e-a49b-6c60cf8e32de 2025-04-18 14:13:02,611 - DEBUG - VM ctest-TestBasicPolicy-53749077-62803158 launched on Node cn-jenkins-deploy-platform-ansible-os-3139-1 2025-04-18 14:13:02,713 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/5b2674bd-7cbb-4e3e-a49b-6c60cf8e32de 2025-04-18 14:13:02,725 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/84ecc7ab-370d-48ef-8118-b4323ee4873b 2025-04-18 14:13:03,987 - 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.19 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.722 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.722/1.957/3.193/1.235 ms') 2025-04-18 14:13:03,987 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-53749077-62803158 passed 2025-04-18 14:13:04,150 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-18 14:13:04,150 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-53749077-62803158, IP 154.75.80.131, Port 22 2025-04-18 14:13:04,325 - DEBUG - VM ctest-TestBasicPolicy-53749077-62803158 is ready for SSH connections 2025-04-18 14:13:04,325 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-18 14:13:04,325 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 154.75.80.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-04-18 14:13:04,325 - DEBUG - ping -s 56 -c 3 -W 1 154.75.80.131 2025-04-18 14:13:08,546 - DEBUG - PING 154.75.80.131 (154.75.80.131): 56 data bytes 64 bytes from 154.75.80.131: seq=0 ttl=63 time=4.931 ms 64 bytes from 154.75.80.131: seq=1 ttl=63 time=1.414 ms 64 bytes from 154.75.80.131: seq=2 ttl=63 time=0.982 ms --- 154.75.80.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.982/2.442/4.931 ms 2025-04-18 14:13:08,546 - INFO - Ping to IP 154.75.80.131 from VM ctest-TestBasicPolicy-53749077-11093964 passed 2025-04-18 14:13:08,741 - DEBUG - Policy Update Response {"network-policy": {"uuid": "50cce5d8-44d9-4050-9546-a18b7467710d", "href": "http://10.0.0.50:8082/network-policy/50cce5d8-44d9-4050-9546-a18b7467710d"}} 2025-04-18 14:13:08,742 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-18 14:13:08,742 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 154.75.80.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-04-18 14:13:08,742 - DEBUG - ping -s 56 -c 3 -W 1 154.75.80.131 2025-04-18 14:13:11,990 - DEBUG - PING 154.75.80.131 (154.75.80.131): 56 data bytes --- 154.75.80.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-04-18 14:13:11,990 - WARNING - Ping to IP 154.75.80.131 from VM ctest-TestBasicPolicy-53749077-11093964 failed 2025-04-18 14:13:11,990 - INFO - Deleting VM ctest-TestBasicPolicy-53749077-62803158 2025-04-18 14:13:12,106 - INFO - Deleting VM ctest-TestBasicPolicy-53749077-11093964 2025-04-18 14:13:12,664 - INFO - Deleted policy ctest-policy-allow-all-46229132 2025-04-18 14:13:12,664 - INFO - Deleting VN ctest-vn-77816194 2025-04-18 14:13:12,728 - DEBUG - VN 96217cc3-7321-41b7-a40b-d1c0bbba4133 still in use: Unable to complete operation on network 96217cc3-7321-41b7-a40b-d1c0bbba4133. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e5748107-8ab7-482b-8b95-0ba4f1131d8f'] 2025-04-18 14:13:12,728 - WARNING - Deleting VN ctest-vn-77816194 failed..Will retry 2025-04-18 14:13:14,868 - DEBUG - Response for deleting network () 2025-04-18 14:13:14,869 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0e9744c3-bbf9-45c3-93c0-856b6b9ac707 2025-04-18 14:13:14,875 - DEBUG - Response Code: 404 2025-04-18 14:13:14,875 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-18 14:13:14,885 - DEBUG - Requesting: http://10.0.0.50:8082/domain/163811d2-a944-42ca-b519-e54badd96edd 2025-04-18 14:13:14,949 - DEBUG - Requesting: http://10.0.0.50:8082/project/03b96953-a3b2-492e-aa4f-e87713fab75d 2025-04-18 14:13:15,034 - INFO - Validated that VN ctest-vn-77816194 is not found in API Server 2025-04-18 14:13:15,048 - DEBUG - VN ctest-vn-77816194 is not present in Agent 10.0.0.50 2025-04-18 14:13:15,048 - INFO - Validated that VN ctest-vn-77816194 is not in any agent 2025-04-18 14:13:15,070 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-77816194 info 2025-04-18 14:13:15,070 - INFO - Deleting VN ctest-vn-48030282 2025-04-18 14:13:15,206 - DEBUG - Response for deleting network () 2025-04-18 14:13:15,207 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2b56b85e-d65a-46d6-a5aa-ed905bff6d13 2025-04-18 14:13:15,215 - DEBUG - Response Code: 404 2025-04-18 14:13:15,215 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-18 14:13:15,225 - DEBUG - Requesting: http://10.0.0.50:8082/domain/163811d2-a944-42ca-b519-e54badd96edd 2025-04-18 14:13:15,281 - DEBUG - Requesting: http://10.0.0.50:8082/project/03b96953-a3b2-492e-aa4f-e87713fab75d 2025-04-18 14:13:15,369 - INFO - Validated that VN ctest-vn-48030282 is not found in API Server 2025-04-18 14:13:15,382 - DEBUG - VN ctest-vn-48030282 is not present in Agent 10.0.0.50 2025-04-18 14:13:15,383 - INFO - Validated that VN ctest-vn-48030282 is not in any agent 2025-04-18 14:13:15,403 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-48030282 info 2025-04-18 14:13:15,678 - DEBUG - No XMPP flaps were noticed during the test
2025-04-18 14:13:15,678 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37]
2025-04-18 14:13:15,678 - INFO - -------------------------------------------------------------------------------- 2025-04-18 14:13:16,484 - INFO - Deleted project: ctest-TestBasicPolicy-53749077, ID : 03b96953-a3b2-492e-aa4f-e87713fab75d