2025-01-05 13:29:46,027 - INFO - Domain Default found not creating 2025-01-05 13:29:46,199 - INFO - Project ctest-TestBasicPolicy-20668394 not found, creating it 2025-01-05 13:29:46,680 - INFO - Created Project:ctest-TestBasicPolicy-20668394, ID : 3c983ecc-0e5d-4996-a7d4-8c0b62863c7e 2025-01-05 13:29:48,235 - INFO - ================================================================================ 2025-01-05 13:29:48,235 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-05 13:29:48,235 - 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-01-05 13:29:48,509 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.20.0.7': '0'}} with 2025-01-05 13:29:48,509 - INFO - Initial checks done. Running the testcase now 2025-01-05 13:29:48,509 - INFO - 2025-01-05 13:29:49,110 - DEBUG - Response for create_network : {'network': {'id': '2b60d6b4-d558-45a3-92c7-e1c7ed928829', 'name': 'ctest-vn-78564903', 'tenant_id': '3c983ecc0e5d4996a7d48c0b62863c7e', 'project_id': '3c983ecc0e5d4996a7d48c0b62863c7e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20668394', 'ctest-vn-78564903'], 'port_security_enabled': True, 'description': ''}} 2025-01-05 13:29:49,329 - DEBUG - Response for create_subnet : {'subnet': {'id': '7461d1fe-8e3a-4638-94de-344a3f9713a9', 'name': '', 'tenant_id': '3c983ecc0e5d4996a7d48c0b62863c7e', 'network_id': '2b60d6b4-d558-45a3-92c7-e1c7ed928829', 'ip_version': 4, 'cidr': '32.29.211.0/26', 'allocation_pools': [{'start': '32.29.211.2', 'end': '32.29.211.62'}], 'gateway_ip': '32.29.211.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.29.211.2', 'tags': [], 'project_id': '3c983ecc0e5d4996a7d48c0b62863c7e'}} 2025-01-05 13:29:49,354 - INFO - Created VN ctest-vn-78564903 2025-01-05 13:29:49,413 - DEBUG - VN ctest-vn-78564903 UUID is 2b60d6b4-d558-45a3-92c7-e1c7ed928829 2025-01-05 13:29:49,757 - DEBUG - Response for create_network : {'network': {'id': '518b3684-4d45-400b-bc45-a4878e60b02f', 'name': 'ctest-vn-67313673', 'tenant_id': '3c983ecc0e5d4996a7d48c0b62863c7e', 'project_id': '3c983ecc0e5d4996a7d48c0b62863c7e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20668394', 'ctest-vn-67313673'], 'port_security_enabled': True, 'description': ''}} 2025-01-05 13:29:49,975 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fd17873b-a89c-45dc-a1a6-0405688e382d', 'name': '', 'tenant_id': '3c983ecc0e5d4996a7d48c0b62863c7e', 'network_id': '518b3684-4d45-400b-bc45-a4878e60b02f', 'ip_version': 4, 'cidr': '120.130.175.0/26', 'allocation_pools': [{'start': '120.130.175.2', 'end': '120.130.175.62'}], 'gateway_ip': '120.130.175.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.130.175.2', 'tags': [], 'project_id': '3c983ecc0e5d4996a7d48c0b62863c7e'}} 2025-01-05 13:29:49,999 - INFO - Created VN ctest-vn-67313673 2025-01-05 13:29:50,057 - DEBUG - VN ctest-vn-67313673 UUID is 518b3684-4d45-400b-bc45-a4878e60b02f 2025-01-05 13:29:50,189 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-20668394:ctest-vn-78564903, 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-20668394:ctest-vn-67313673, 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-01-05 13:29:50,523 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2b60d6b4-d558-45a3-92c7-e1c7ed928829', 'name': 'ctest-vn-78564903', 'tenant_id': '3c983ecc0e5d4996a7d48c0b62863c7e', 'project_id': '3c983ecc0e5d4996a7d48c0b62863c7e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7461d1fe-8e3a-4638-94de-344a3f9713a9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20668394', 'ctest-vn-78564903'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20668394', 'ctest-policy-allow-all-76206950']], 'subnet_ipam': [{'subnet_cidr': '32.29.211.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-05 13:29:50,745 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '518b3684-4d45-400b-bc45-a4878e60b02f', 'name': 'ctest-vn-67313673', 'tenant_id': '3c983ecc0e5d4996a7d48c0b62863c7e', 'project_id': '3c983ecc0e5d4996a7d48c0b62863c7e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fd17873b-a89c-45dc-a1a6-0405688e382d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20668394', 'ctest-vn-67313673'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20668394', 'ctest-policy-allow-all-76206950']], 'subnet_ipam': [{'subnet_cidr': '120.130.175.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-05 13:29:50,917 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2025-01-05 13:29:51,226 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2025-01-05 13:29:51,263 - DEBUG - Requesting: http://10.0.0.35:8082/domain/9ac027a2-7edd-4270-bc8b-73977039ff4e 2025-01-05 13:29:51,279 - DEBUG - Requesting: http://10.0.0.35:8082/project/3c983ecc-0e5d-4996-a7d4-8c0b62863c7e 2025-01-05 13:29:51,362 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/2b60d6b4-d558-45a3-92c7-e1c7ed928829 2025-01-05 13:29:51,375 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/2b60d6b4-d558-45a3-92c7-e1c7ed928829 2025-01-05 13:29:51,386 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/7a53a454-8882-435b-a59d-013c86a3ea0a 2025-01-05 13:29:51,396 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/7a53a454-8882-435b-a59d-013c86a3ea0a 2025-01-05 13:29:51,406 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/99151e57-0729-4379-82a5-8142875294f9 2025-01-05 13:29:51,415 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-05 13:29:51,415 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/2b60d6b4-d558-45a3-92c7-e1c7ed928829 2025-01-05 13:29:51,427 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/7a53a454-8882-435b-a59d-013c86a3ea0a 2025-01-05 13:29:51,446 - INFO - Verified VN network id 8 for VN 2b60d6b4-d558-45a3-92c7-e1c7ed928829 2025-01-05 13:29:51,446 - INFO - Verifications in API Server for VN ctest-vn-78564903 passed 2025-01-05 13:29:51,446 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/2b60d6b4-d558-45a3-92c7-e1c7ed928829 2025-01-05 13:29:51,458 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/7a53a454-8882-435b-a59d-013c86a3ea0a 2025-01-05 13:29:51,467 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/7a53a454-8882-435b-a59d-013c86a3ea0a 2025-01-05 13:29:51,475 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/99151e57-0729-4379-82a5-8142875294f9 2025-01-05 13:29:51,490 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20668394:ctest-vn-78564903', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20668394', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3125734213556913571', 'uuid-lslong': '10576670498703444009'}, 'enable': 'true', 'created': '2025-01-05T13:29:49', 'last-modified': '2025-01-05T13:29:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.993082'} 2025-01-05 13:29:51,498 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-05 13:29:51,498 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78564903 passed 2025-01-05 13:29:51,498 - DEBUG - ====Verifying policy data for ctest-vn-78564903 in API_Server ====== 2025-01-05 13:29:51,498 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2025-01-05 13:29:51,505 - DEBUG - Requesting: http://10.0.0.35:8082/domain/9ac027a2-7edd-4270-bc8b-73977039ff4e 2025-01-05 13:29:51,519 - DEBUG - Requesting: http://10.0.0.35:8082/project/3c983ecc-0e5d-4996-a7d4-8c0b62863c7e 2025-01-05 13:29:51,593 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/2b60d6b4-d558-45a3-92c7-e1c7ed928829 2025-01-05 13:29:51,606 - DEBUG - ==>Verifying data for policy with id: 12368e7a-c97e-418a-a824-1073fdba3865, fqn: ['default-domain', 'ctest-TestBasicPolicy-20668394', 'ctest-policy-allow-all-76206950'] 2025-01-05 13:29:51,606 - INFO - VN ctest-vn-78564903 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-05 13:29:51,606 - DEBUG - Verifying the vn in opserver 2025-01-05 13:29:51,606 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20668394:ctest-vn-78564903 virtual network link through opserver 10.0.0.35 2025-01-05 13:29:51,606 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks 2025-01-05 13:29:51,903 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks 2025-01-05 13:29:51,975 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20668394:ctest-vn-78564903', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20668394:ctest-vn-78564903?flat'} 2025-01-05 13:29:51,975 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20668394:ctest-vn-78564903 is found in opserver 2025-01-05 13:29:51,987 - DEBUG - Do not have enough data to verify VN in agent 2025-01-05 13:29:51,994 - DEBUG - VRF ids for VN ctest-vn-78564903: {} 2025-01-05 13:29:51,994 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2025-01-05 13:29:52,002 - DEBUG - Requesting: http://10.0.0.35:8082/domain/9ac027a2-7edd-4270-bc8b-73977039ff4e 2025-01-05 13:29:52,017 - DEBUG - Requesting: http://10.0.0.35:8082/project/3c983ecc-0e5d-4996-a7d4-8c0b62863c7e 2025-01-05 13:29:52,099 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/518b3684-4d45-400b-bc45-a4878e60b02f 2025-01-05 13:29:52,116 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/518b3684-4d45-400b-bc45-a4878e60b02f 2025-01-05 13:29:52,128 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/8387f047-ee33-4ad0-b3e3-b255157e4c02 2025-01-05 13:29:52,137 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/8387f047-ee33-4ad0-b3e3-b255157e4c02 2025-01-05 13:29:52,146 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/68d80a10-5d60-4ea4-9ab9-03b9b9c30991 2025-01-05 13:29:52,155 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-05 13:29:52,155 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/518b3684-4d45-400b-bc45-a4878e60b02f 2025-01-05 13:29:52,167 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/8387f047-ee33-4ad0-b3e3-b255157e4c02 2025-01-05 13:29:52,186 - INFO - Verified VN network id 9 for VN 518b3684-4d45-400b-bc45-a4878e60b02f 2025-01-05 13:29:52,186 - INFO - Verifications in API Server for VN ctest-vn-67313673 passed 2025-01-05 13:29:52,186 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/518b3684-4d45-400b-bc45-a4878e60b02f 2025-01-05 13:29:52,199 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/8387f047-ee33-4ad0-b3e3-b255157e4c02 2025-01-05 13:29:52,209 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/8387f047-ee33-4ad0-b3e3-b255157e4c02 2025-01-05 13:29:52,220 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/68d80a10-5d60-4ea4-9ab9-03b9b9c30991 2025-01-05 13:29:52,236 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20668394:ctest-vn-67313673', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20668394', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5875850080694910987', 'uuid-lslong': '13566430354639728687'}, 'enable': 'true', 'created': '2025-01-05T13:29:49', 'last-modified': '2025-01-05T13:29:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.515252'} 2025-01-05 13:29:52,246 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-05 13:29:52,246 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67313673 passed 2025-01-05 13:29:52,246 - DEBUG - ====Verifying policy data for ctest-vn-67313673 in API_Server ====== 2025-01-05 13:29:52,247 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2025-01-05 13:29:52,254 - DEBUG - Requesting: http://10.0.0.35:8082/domain/9ac027a2-7edd-4270-bc8b-73977039ff4e 2025-01-05 13:29:52,269 - DEBUG - Requesting: http://10.0.0.35:8082/project/3c983ecc-0e5d-4996-a7d4-8c0b62863c7e 2025-01-05 13:29:52,358 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/518b3684-4d45-400b-bc45-a4878e60b02f 2025-01-05 13:29:52,371 - DEBUG - ==>Verifying data for policy with id: 12368e7a-c97e-418a-a824-1073fdba3865, fqn: ['default-domain', 'ctest-TestBasicPolicy-20668394', 'ctest-policy-allow-all-76206950'] 2025-01-05 13:29:52,371 - INFO - VN ctest-vn-67313673 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-05 13:29:52,371 - DEBUG - Verifying the vn in opserver 2025-01-05 13:29:52,371 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20668394:ctest-vn-67313673 virtual network link through opserver 10.0.0.35 2025-01-05 13:29:52,371 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks 2025-01-05 13:29:52,385 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20668394:ctest-vn-67313673', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20668394:ctest-vn-67313673?flat'} 2025-01-05 13:29:52,385 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20668394:ctest-vn-67313673 is found in opserver 2025-01-05 13:29:52,402 - DEBUG - Do not have enough data to verify VN in agent 2025-01-05 13:29:52,408 - DEBUG - VRF ids for VN ctest-vn-67313673: {} 2025-01-05 13:29:52,471 - DEBUG - Services list from nova: [, , ] 2025-01-05 13:29:53,707 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2534-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2534-1) 2025-01-05 13:29:54,920 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2534-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2534-1) 2025-01-05 13:29:54,921 - INFO - Waiting for VM ctest-TestBasicPolicy-20668394-61643539 to be up.. 2025-01-05 13:29:55,020 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-05 13:30:00,117 - DEBUG - VM is in ACTIVE state now 2025-01-05 13:30:00,117 - INFO - VM name : ctest-TestBasicPolicy-20668394-61643539 2025-01-05 13:30:00,205 - DEBUG - VM ctest-TestBasicPolicy-20668394-61643539 ID is 2ec14300-7ced-4c56-9de1-9b3505e1788a 2025-01-05 13:30:00,227 - DEBUG - VM ctest-TestBasicPolicy-20668394-61643539 launched on Node cn-jenkins-deploy-platform-ansible-os-2534-1 2025-01-05 13:30:00,311 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/2ec14300-7ced-4c56-9de1-9b3505e1788a 2025-01-05 13:30:00,323 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/b123d361-ee08-4019-b66a-5703a017a9aa 2025-01-05 13:30:03,595 - 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 1021ms') 2025-01-05 13:30:03,595 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-20668394-61643539 failed! 2025-01-05 13:30:03,653 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-20668394:ctest-vn-78564903 is 32.29.211.1 and allocation pool is NOT set 2025-01-05 13:30:05,722 - 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=10.8 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.21 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 = 2.208/6.523/10.838/4.315 ms') 2025-01-05 13:30:05,722 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-20668394-61643539 passed 2025-01-05 13:30:05,877 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-05 13:30:05,877 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-20668394-61643539, IP 32.29.211.3, Port 22 2025-01-05 13:30:05,943 - 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-01-05 13:30:06,045 - DEBUG - VM ctest-TestBasicPolicy-20668394-61643539 is NOT ready for SSH connections, VM status: ACTIVE 2025-01-05 13:30:11,045 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-05 13:30:11,045 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-20668394-61643539, IP 32.29.211.3, Port 22 2025-01-05 13:30:11,209 - DEBUG - VM ctest-TestBasicPolicy-20668394-61643539 is ready for SSH connections 2025-01-05 13:30:11,209 - INFO - Waiting for VM ctest-TestBasicPolicy-20668394-52199958 to be up.. 2025-01-05 13:30:11,290 - DEBUG - VM is in ACTIVE state now 2025-01-05 13:30:11,290 - INFO - VM name : ctest-TestBasicPolicy-20668394-52199958 2025-01-05 13:30:11,382 - DEBUG - VM ctest-TestBasicPolicy-20668394-52199958 ID is c991f974-ce99-4b6b-b191-24ad99b4211b 2025-01-05 13:30:11,382 - DEBUG - VM ctest-TestBasicPolicy-20668394-52199958 launched on Node cn-jenkins-deploy-platform-ansible-os-2534-1 2025-01-05 13:30:11,465 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/c991f974-ce99-4b6b-b191-24ad99b4211b 2025-01-05 13:30:11,474 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/9d43b083-9605-41e9-a6d6-49ffe8225e95 2025-01-05 13:30:12,722 - 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.40 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.387 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.387/1.895/3.403/1.508 ms') 2025-01-05 13:30:12,722 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-20668394-52199958 passed 2025-01-05 13:30:12,881 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-05 13:30:12,881 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-20668394-52199958, IP 120.130.175.3, Port 22 2025-01-05 13:30:13,047 - DEBUG - VM ctest-TestBasicPolicy-20668394-52199958 is ready for SSH connections 2025-01-05 13:30:13,047 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-05 13:30:13,047 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 120.130.175.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2025-01-05 13:30:13,047 - DEBUG - ping -s 56 -c 3 -W 1 120.130.175.3 2025-01-05 13:30:17,092 - DEBUG - PING 120.130.175.3 (120.130.175.3): 56 data bytes 64 bytes from 120.130.175.3: seq=0 ttl=63 time=4.392 ms 64 bytes from 120.130.175.3: seq=1 ttl=63 time=1.060 ms 64 bytes from 120.130.175.3: seq=2 ttl=63 time=1.023 ms --- 120.130.175.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.023/2.158/4.392 ms 2025-01-05 13:30:17,092 - INFO - Ping to IP 120.130.175.3 from VM ctest-TestBasicPolicy-20668394-61643539 passed 2025-01-05 13:30:17,273 - DEBUG - Policy Update Response {"network-policy": {"uuid": "12368e7a-c97e-418a-a824-1073fdba3865", "href": "http://10.0.0.35:8082/network-policy/12368e7a-c97e-418a-a824-1073fdba3865"}} 2025-01-05 13:30:17,273 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-05 13:30:17,273 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 120.130.175.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2025-01-05 13:30:17,273 - DEBUG - ping -s 56 -c 3 -W 1 120.130.175.3 2025-01-05 13:30:20,487 - DEBUG - PING 120.130.175.3 (120.130.175.3): 56 data bytes 64 bytes from 120.130.175.3: seq=0 ttl=63 time=2.383 ms --- 120.130.175.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.383/2.383/2.383 ms 2025-01-05 13:30:20,487 - WARNING - Ping to IP 120.130.175.3 from VM ctest-TestBasicPolicy-20668394-61643539 failed 2025-01-05 13:30:20,487 - INFO - Deleting VM ctest-TestBasicPolicy-20668394-52199958 2025-01-05 13:30:20,554 - INFO - Deleting VM ctest-TestBasicPolicy-20668394-61643539 2025-01-05 13:30:20,989 - INFO - Deleted policy ctest-policy-allow-all-76206950 2025-01-05 13:30:20,990 - INFO - Deleting VN ctest-vn-67313673 2025-01-05 13:30:21,034 - DEBUG - VN 518b3684-4d45-400b-bc45-a4878e60b02f still in use: Unable to complete operation on network 518b3684-4d45-400b-bc45-a4878e60b02f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b227a09b-727d-478c-9fd8-05e112e81ace'] 2025-01-05 13:30:21,034 - WARNING - Deleting VN ctest-vn-67313673 failed..Will retry 2025-01-05 13:30:23,155 - DEBUG - Response for deleting network () 2025-01-05 13:30:23,156 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/8387f047-ee33-4ad0-b3e3-b255157e4c02 2025-01-05 13:30:23,164 - DEBUG - Response Code: 404 2025-01-05 13:30:23,165 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2025-01-05 13:30:23,171 - DEBUG - Requesting: http://10.0.0.35:8082/domain/9ac027a2-7edd-4270-bc8b-73977039ff4e 2025-01-05 13:30:23,227 - DEBUG - Requesting: http://10.0.0.35:8082/project/3c983ecc-0e5d-4996-a7d4-8c0b62863c7e 2025-01-05 13:30:23,324 - INFO - Validated that VN ctest-vn-67313673 is not found in API Server 2025-01-05 13:30:23,338 - DEBUG - VN ctest-vn-67313673 is not present in Agent 10.0.0.35 2025-01-05 13:30:23,338 - INFO - Validated that VN ctest-vn-67313673 is not in any agent 2025-01-05 13:30:23,357 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-67313673 info 2025-01-05 13:30:23,358 - INFO - Deleting VN ctest-vn-78564903 2025-01-05 13:30:23,468 - DEBUG - Response for deleting network () 2025-01-05 13:30:23,468 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/7a53a454-8882-435b-a59d-013c86a3ea0a 2025-01-05 13:30:23,474 - DEBUG - Response Code: 404 2025-01-05 13:30:23,474 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2025-01-05 13:30:23,487 - DEBUG - Requesting: http://10.0.0.35:8082/domain/9ac027a2-7edd-4270-bc8b-73977039ff4e 2025-01-05 13:30:23,543 - DEBUG - Requesting: http://10.0.0.35:8082/project/3c983ecc-0e5d-4996-a7d4-8c0b62863c7e 2025-01-05 13:30:23,622 - INFO - Validated that VN ctest-vn-78564903 is not found in API Server 2025-01-05 13:30:23,633 - DEBUG - VN ctest-vn-78564903 is not present in Agent 10.0.0.35 2025-01-05 13:30:23,633 - INFO - Validated that VN ctest-vn-78564903 is not in any agent 2025-01-05 13:30:23,655 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-78564903 info 2025-01-05 13:30:23,928 - DEBUG - No XMPP flaps were noticed during the test
2025-01-05 13:30:23,928 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-01-05 13:30:23,928 - INFO - -------------------------------------------------------------------------------- 2025-01-05 13:30:24,625 - INFO - Deleted project: ctest-TestBasicPolicy-20668394, ID : 3c983ecc-0e5d-4996-a7d4-8c0b62863c7e