2025-03-28 17:46:31,435 - INFO - Domain Default found not creating 2025-03-28 17:46:31,593 - INFO - Project ctest-TestBasicPolicy-61209160 not found, creating it 2025-03-28 17:46:32,083 - INFO - Created Project:ctest-TestBasicPolicy-61209160, ID : 26d2cb46-c4d7-4e22-9f57-116e176bca3f 2025-03-28 17:46:33,559 - INFO - ================================================================================ 2025-03-28 17:46:33,559 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-28 17:46:33,559 - 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-28 17:46:33,819 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.7': '0'}} with 2025-03-28 17:46:33,819 - INFO - Initial checks done. Running the testcase now 2025-03-28 17:46:33,819 - INFO - 2025-03-28 17:46:34,409 - DEBUG - Response for create_network : {'network': {'id': 'addf4c9d-1be9-4621-bbfa-0bf01f72d742', 'name': 'ctest-vn-48239150', 'tenant_id': '26d2cb46c4d74e229f57116e176bca3f', 'project_id': '26d2cb46c4d74e229f57116e176bca3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61209160', 'ctest-vn-48239150'], 'port_security_enabled': True, 'description': ''}} 2025-03-28 17:46:34,623 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b6022ea1-28c5-4b8e-a9e7-94290dba445e', 'name': '', 'tenant_id': '26d2cb46c4d74e229f57116e176bca3f', 'network_id': 'addf4c9d-1be9-4621-bbfa-0bf01f72d742', 'ip_version': 4, 'cidr': '213.168.173.64/26', 'allocation_pools': [{'start': '213.168.173.66', 'end': '213.168.173.126'}], 'gateway_ip': '213.168.173.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.168.173.66', 'tags': [], 'project_id': '26d2cb46c4d74e229f57116e176bca3f'}} 2025-03-28 17:46:34,646 - INFO - Created VN ctest-vn-48239150 2025-03-28 17:46:34,701 - DEBUG - VN ctest-vn-48239150 UUID is addf4c9d-1be9-4621-bbfa-0bf01f72d742 2025-03-28 17:46:35,030 - DEBUG - Response for create_network : {'network': {'id': '6f36c3d3-bdf5-47c9-8685-26d1118c2caf', 'name': 'ctest-vn-38866701', 'tenant_id': '26d2cb46c4d74e229f57116e176bca3f', 'project_id': '26d2cb46c4d74e229f57116e176bca3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61209160', 'ctest-vn-38866701'], 'port_security_enabled': True, 'description': ''}} 2025-03-28 17:46:35,241 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd80f68c8-1964-4904-ac0a-cfb7c2a4e4bf', 'name': '', 'tenant_id': '26d2cb46c4d74e229f57116e176bca3f', 'network_id': '6f36c3d3-bdf5-47c9-8685-26d1118c2caf', 'ip_version': 4, 'cidr': '192.66.252.64/26', 'allocation_pools': [{'start': '192.66.252.66', 'end': '192.66.252.126'}], 'gateway_ip': '192.66.252.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.66.252.66', 'tags': [], 'project_id': '26d2cb46c4d74e229f57116e176bca3f'}} 2025-03-28 17:46:35,260 - INFO - Created VN ctest-vn-38866701 2025-03-28 17:46:35,317 - DEBUG - VN ctest-vn-38866701 UUID is 6f36c3d3-bdf5-47c9-8685-26d1118c2caf 2025-03-28 17:46:35,431 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61209160:ctest-vn-48239150, 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-61209160:ctest-vn-38866701, 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-28 17:46:35,743 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'addf4c9d-1be9-4621-bbfa-0bf01f72d742', 'name': 'ctest-vn-48239150', 'tenant_id': '26d2cb46c4d74e229f57116e176bca3f', 'project_id': '26d2cb46c4d74e229f57116e176bca3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b6022ea1-28c5-4b8e-a9e7-94290dba445e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61209160', 'ctest-vn-48239150'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61209160', 'ctest-policy-allow-all-62537561']], 'subnet_ipam': [{'subnet_cidr': '213.168.173.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-28 17:46:35,995 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6f36c3d3-bdf5-47c9-8685-26d1118c2caf', 'name': 'ctest-vn-38866701', 'tenant_id': '26d2cb46c4d74e229f57116e176bca3f', 'project_id': '26d2cb46c4d74e229f57116e176bca3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d80f68c8-1964-4904-ac0a-cfb7c2a4e4bf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61209160', 'ctest-vn-38866701'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61209160', 'ctest-policy-allow-all-62537561']], 'subnet_ipam': [{'subnet_cidr': '192.66.252.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-28 17:46:36,173 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2025-03-28 17:46:36,474 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2025-03-28 17:46:36,508 - DEBUG - Requesting: http://10.0.0.29:8082/domain/2fbb14bd-3fed-46c2-adfd-5b41814cbc36 2025-03-28 17:46:36,523 - DEBUG - Requesting: http://10.0.0.29:8082/project/26d2cb46-c4d7-4e22-9f57-116e176bca3f 2025-03-28 17:46:36,595 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/addf4c9d-1be9-4621-bbfa-0bf01f72d742 2025-03-28 17:46:36,607 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/addf4c9d-1be9-4621-bbfa-0bf01f72d742 2025-03-28 17:46:36,617 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/867e44a9-f13b-4569-9a9b-c8a4f6bb864d 2025-03-28 17:46:36,625 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/867e44a9-f13b-4569-9a9b-c8a4f6bb864d 2025-03-28 17:46:36,633 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/d9a1a147-a3c2-47e1-8dfc-56ddebf550c3 2025-03-28 17:46:36,641 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-28 17:46:36,641 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/addf4c9d-1be9-4621-bbfa-0bf01f72d742 2025-03-28 17:46:36,659 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/867e44a9-f13b-4569-9a9b-c8a4f6bb864d 2025-03-28 17:46:36,677 - INFO - Verified VN network id 8 for VN addf4c9d-1be9-4621-bbfa-0bf01f72d742 2025-03-28 17:46:36,677 - INFO - Verifications in API Server for VN ctest-vn-48239150 passed 2025-03-28 17:46:36,677 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/addf4c9d-1be9-4621-bbfa-0bf01f72d742 2025-03-28 17:46:36,690 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/867e44a9-f13b-4569-9a9b-c8a4f6bb864d 2025-03-28 17:46:36,702 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/867e44a9-f13b-4569-9a9b-c8a4f6bb864d 2025-03-28 17:46:36,710 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/d9a1a147-a3c2-47e1-8dfc-56ddebf550c3 2025-03-28 17:46:36,726 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61209160:ctest-vn-48239150', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61209160', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12528816926029858337', 'uuid-lslong': '13545151955217864514'}, 'enable': 'true', 'created': '2025-03-28T17:46:34', 'last-modified': '2025-03-28T17:46:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.010276'} 2025-03-28 17:46:36,733 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-28 17:46:36,733 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48239150 passed 2025-03-28 17:46:36,734 - DEBUG - ====Verifying policy data for ctest-vn-48239150 in API_Server ====== 2025-03-28 17:46:36,734 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2025-03-28 17:46:36,740 - DEBUG - Requesting: http://10.0.0.29:8082/domain/2fbb14bd-3fed-46c2-adfd-5b41814cbc36 2025-03-28 17:46:36,755 - DEBUG - Requesting: http://10.0.0.29:8082/project/26d2cb46-c4d7-4e22-9f57-116e176bca3f 2025-03-28 17:46:36,833 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/addf4c9d-1be9-4621-bbfa-0bf01f72d742 2025-03-28 17:46:36,846 - DEBUG - ==>Verifying data for policy with id: 62d0c3ad-2461-4207-8845-d168aba3b232, fqn: ['default-domain', 'ctest-TestBasicPolicy-61209160', 'ctest-policy-allow-all-62537561'] 2025-03-28 17:46:36,846 - INFO - VN ctest-vn-48239150 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-28 17:46:36,846 - DEBUG - Verifying the vn in opserver 2025-03-28 17:46:36,846 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61209160:ctest-vn-48239150 virtual network link through opserver 10.0.0.29 2025-03-28 17:46:36,846 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2025-03-28 17:46:37,147 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2025-03-28 17:46:37,213 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61209160:ctest-vn-48239150', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61209160:ctest-vn-48239150?flat'} 2025-03-28 17:46:37,213 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61209160:ctest-vn-48239150 is found in opserver 2025-03-28 17:46:37,224 - DEBUG - Do not have enough data to verify VN in agent 2025-03-28 17:46:37,229 - DEBUG - VRF ids for VN ctest-vn-48239150: {} 2025-03-28 17:46:37,230 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2025-03-28 17:46:37,235 - DEBUG - Requesting: http://10.0.0.29:8082/domain/2fbb14bd-3fed-46c2-adfd-5b41814cbc36 2025-03-28 17:46:37,246 - DEBUG - Requesting: http://10.0.0.29:8082/project/26d2cb46-c4d7-4e22-9f57-116e176bca3f 2025-03-28 17:46:37,324 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/6f36c3d3-bdf5-47c9-8685-26d1118c2caf 2025-03-28 17:46:37,339 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/6f36c3d3-bdf5-47c9-8685-26d1118c2caf 2025-03-28 17:46:37,350 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/ad497e3b-3aeb-4a9d-9b50-0ffe244a2849 2025-03-28 17:46:37,358 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/ad497e3b-3aeb-4a9d-9b50-0ffe244a2849 2025-03-28 17:46:37,365 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/63a0a065-d696-4624-b3c6-bcd1d56ee5ba 2025-03-28 17:46:37,372 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-28 17:46:37,372 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/6f36c3d3-bdf5-47c9-8685-26d1118c2caf 2025-03-28 17:46:37,382 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/ad497e3b-3aeb-4a9d-9b50-0ffe244a2849 2025-03-28 17:46:37,397 - INFO - Verified VN network id 9 for VN 6f36c3d3-bdf5-47c9-8685-26d1118c2caf 2025-03-28 17:46:37,398 - INFO - Verifications in API Server for VN ctest-vn-38866701 passed 2025-03-28 17:46:37,398 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/6f36c3d3-bdf5-47c9-8685-26d1118c2caf 2025-03-28 17:46:37,410 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/ad497e3b-3aeb-4a9d-9b50-0ffe244a2849 2025-03-28 17:46:37,418 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/ad497e3b-3aeb-4a9d-9b50-0ffe244a2849 2025-03-28 17:46:37,427 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/63a0a065-d696-4624-b3c6-bcd1d56ee5ba 2025-03-28 17:46:37,442 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61209160:ctest-vn-38866701', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61209160', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8013807901144860617', 'uuid-lslong': '9693196452369280175'}, 'enable': 'true', 'created': '2025-03-28T17:46:34', 'last-modified': '2025-03-28T17:46:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.467992'} 2025-03-28 17:46:37,455 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-28 17:46:37,455 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38866701 passed 2025-03-28 17:46:37,455 - DEBUG - ====Verifying policy data for ctest-vn-38866701 in API_Server ====== 2025-03-28 17:46:37,455 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2025-03-28 17:46:37,462 - DEBUG - Requesting: http://10.0.0.29:8082/domain/2fbb14bd-3fed-46c2-adfd-5b41814cbc36 2025-03-28 17:46:37,475 - DEBUG - Requesting: http://10.0.0.29:8082/project/26d2cb46-c4d7-4e22-9f57-116e176bca3f 2025-03-28 17:46:37,550 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/6f36c3d3-bdf5-47c9-8685-26d1118c2caf 2025-03-28 17:46:37,560 - DEBUG - ==>Verifying data for policy with id: 62d0c3ad-2461-4207-8845-d168aba3b232, fqn: ['default-domain', 'ctest-TestBasicPolicy-61209160', 'ctest-policy-allow-all-62537561'] 2025-03-28 17:46:37,560 - INFO - VN ctest-vn-38866701 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-28 17:46:37,560 - DEBUG - Verifying the vn in opserver 2025-03-28 17:46:37,560 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61209160:ctest-vn-38866701 virtual network link through opserver 10.0.0.29 2025-03-28 17:46:37,560 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2025-03-28 17:46:37,571 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61209160:ctest-vn-38866701', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61209160:ctest-vn-38866701?flat'} 2025-03-28 17:46:37,571 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61209160:ctest-vn-38866701 is found in opserver 2025-03-28 17:46:37,583 - DEBUG - Do not have enough data to verify VN in agent 2025-03-28 17:46:37,588 - DEBUG - VRF ids for VN ctest-vn-38866701: {} 2025-03-28 17:46:37,650 - DEBUG - Services list from nova: [, , ] 2025-03-28 17:46:38,833 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2993-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2993-1) 2025-03-28 17:46:40,040 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2993-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2993-1) 2025-03-28 17:46:40,040 - INFO - Waiting for VM ctest-TestBasicPolicy-61209160-48478951 to be up.. 2025-03-28 17:46:40,120 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-28 17:46:45,227 - DEBUG - VM is in ACTIVE state now 2025-03-28 17:46:45,227 - INFO - VM name : ctest-TestBasicPolicy-61209160-48478951 2025-03-28 17:46:45,327 - DEBUG - VM ctest-TestBasicPolicy-61209160-48478951 ID is f800a36b-1810-4f8a-b977-4e93f0c86c07 2025-03-28 17:46:45,353 - DEBUG - VM ctest-TestBasicPolicy-61209160-48478951 launched on Node cn-jenkins-deploy-platform-ansible-os-2993-1 2025-03-28 17:46:45,447 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/f800a36b-1810-4f8a-b977-4e93f0c86c07 2025-03-28 17:46:45,459 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/a7508160-ef95-4713-b754-0be2eea0f545 2025-03-28 17:46:48,711 - 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 1003ms') 2025-03-28 17:46:48,711 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-61209160-48478951 failed! 2025-03-28 17:46:48,765 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-61209160:ctest-vn-48239150 is 213.168.173.65 and allocation pool is NOT set 2025-03-28 17:46:50,832 - 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=8.72 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.78 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 = 1.776/5.250/8.724/3.474 ms') 2025-03-28 17:46:50,833 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-61209160-48478951 passed 2025-03-28 17:46:50,989 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 17:46:50,989 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-61209160-48478951, IP 213.168.173.67, Port 22 2025-03-28 17:46:51,054 - 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-28 17:46:51,137 - DEBUG - VM ctest-TestBasicPolicy-61209160-48478951 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-28 17:46:56,137 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 17:46:56,138 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-61209160-48478951, IP 213.168.173.67, Port 22 2025-03-28 17:46:56,316 - DEBUG - VM ctest-TestBasicPolicy-61209160-48478951 is ready for SSH connections 2025-03-28 17:46:56,316 - INFO - Waiting for VM ctest-TestBasicPolicy-61209160-74471945 to be up.. 2025-03-28 17:46:56,395 - DEBUG - VM is in ACTIVE state now 2025-03-28 17:46:56,395 - INFO - VM name : ctest-TestBasicPolicy-61209160-74471945 2025-03-28 17:46:56,474 - DEBUG - VM ctest-TestBasicPolicy-61209160-74471945 ID is b117e370-bd71-4579-a810-72cf2405f5b5 2025-03-28 17:46:56,474 - DEBUG - VM ctest-TestBasicPolicy-61209160-74471945 launched on Node cn-jenkins-deploy-platform-ansible-os-2993-1 2025-03-28 17:46:56,560 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/b117e370-bd71-4579-a810-72cf2405f5b5 2025-03-28 17:46:56,569 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/3906e0ab-a7f3-498f-89aa-0f2d9b389cc4 2025-03-28 17:46:57,818 - 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.76 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.507 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.507/2.132/3.758/1.625 ms') 2025-03-28 17:46:57,818 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-61209160-74471945 passed 2025-03-28 17:46:57,977 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 17:46:57,977 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-61209160-74471945, IP 192.66.252.67, Port 22 2025-03-28 17:46:58,143 - DEBUG - VM ctest-TestBasicPolicy-61209160-74471945 is ready for SSH connections 2025-03-28 17:46:58,143 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 17:46:58,144 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 192.66.252.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2025-03-28 17:46:58,144 - DEBUG - ping -s 56 -c 3 -W 1 192.66.252.67 2025-03-28 17:47:02,235 - DEBUG - PING 192.66.252.67 (192.66.252.67): 56 data bytes 64 bytes from 192.66.252.67: seq=0 ttl=63 time=5.165 ms 64 bytes from 192.66.252.67: seq=1 ttl=63 time=0.994 ms 64 bytes from 192.66.252.67: seq=2 ttl=63 time=1.024 ms --- 192.66.252.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.994/2.394/5.165 ms 2025-03-28 17:47:02,235 - INFO - Ping to IP 192.66.252.67 from VM ctest-TestBasicPolicy-61209160-48478951 passed 2025-03-28 17:47:02,425 - DEBUG - Policy Update Response {"network-policy": {"uuid": "62d0c3ad-2461-4207-8845-d168aba3b232", "href": "http://10.0.0.29:8082/network-policy/62d0c3ad-2461-4207-8845-d168aba3b232"}} 2025-03-28 17:47:02,425 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 17:47:02,425 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 192.66.252.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2025-03-28 17:47:02,425 - DEBUG - ping -s 56 -c 3 -W 1 192.66.252.67 2025-03-28 17:47:05,632 - DEBUG - PING 192.66.252.67 (192.66.252.67): 56 data bytes 64 bytes from 192.66.252.67: seq=0 ttl=63 time=1.731 ms --- 192.66.252.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.731/1.731/1.731 ms 2025-03-28 17:47:05,633 - WARNING - Ping to IP 192.66.252.67 from VM ctest-TestBasicPolicy-61209160-48478951 failed 2025-03-28 17:47:05,633 - INFO - Deleting VM ctest-TestBasicPolicy-61209160-74471945 2025-03-28 17:47:05,720 - INFO - Deleting VM ctest-TestBasicPolicy-61209160-48478951 2025-03-28 17:47:06,170 - INFO - Deleted policy ctest-policy-allow-all-62537561 2025-03-28 17:47:06,170 - INFO - Deleting VN ctest-vn-38866701 2025-03-28 17:47:06,210 - DEBUG - VN 6f36c3d3-bdf5-47c9-8685-26d1118c2caf still in use: Unable to complete operation on network 6f36c3d3-bdf5-47c9-8685-26d1118c2caf. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-87ed0417-c5e6-40d1-b09a-49737d0b30ca'] 2025-03-28 17:47:06,210 - WARNING - Deleting VN ctest-vn-38866701 failed..Will retry 2025-03-28 17:47:08,339 - DEBUG - Response for deleting network () 2025-03-28 17:47:08,339 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/ad497e3b-3aeb-4a9d-9b50-0ffe244a2849 2025-03-28 17:47:08,346 - DEBUG - Response Code: 404 2025-03-28 17:47:08,346 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2025-03-28 17:47:08,355 - DEBUG - Requesting: http://10.0.0.29:8082/domain/2fbb14bd-3fed-46c2-adfd-5b41814cbc36 2025-03-28 17:47:08,411 - DEBUG - Requesting: http://10.0.0.29:8082/project/26d2cb46-c4d7-4e22-9f57-116e176bca3f 2025-03-28 17:47:08,500 - INFO - Validated that VN ctest-vn-38866701 is not found in API Server 2025-03-28 17:47:08,513 - DEBUG - VN ctest-vn-38866701 is not present in Agent 10.0.0.29 2025-03-28 17:47:08,513 - INFO - Validated that VN ctest-vn-38866701 is not in any agent 2025-03-28 17:47:08,530 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-38866701 info 2025-03-28 17:47:08,530 - INFO - Deleting VN ctest-vn-48239150 2025-03-28 17:47:08,641 - DEBUG - Response for deleting network () 2025-03-28 17:47:08,641 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/867e44a9-f13b-4569-9a9b-c8a4f6bb864d 2025-03-28 17:47:08,648 - DEBUG - Response Code: 404 2025-03-28 17:47:08,648 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2025-03-28 17:47:08,656 - DEBUG - Requesting: http://10.0.0.29:8082/domain/2fbb14bd-3fed-46c2-adfd-5b41814cbc36 2025-03-28 17:47:08,711 - DEBUG - Requesting: http://10.0.0.29:8082/project/26d2cb46-c4d7-4e22-9f57-116e176bca3f 2025-03-28 17:47:08,791 - INFO - Validated that VN ctest-vn-48239150 is not found in API Server 2025-03-28 17:47:08,803 - DEBUG - VN ctest-vn-48239150 is not present in Agent 10.0.0.29 2025-03-28 17:47:08,803 - INFO - Validated that VN ctest-vn-48239150 is not in any agent 2025-03-28 17:47:08,822 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-48239150 info 2025-03-28 17:47:09,083 - DEBUG - No XMPP flaps were noticed during the test
2025-03-28 17:47:09,083 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-03-28 17:47:09,083 - INFO - -------------------------------------------------------------------------------- 2025-03-28 17:47:09,785 - INFO - Deleted project: ctest-TestBasicPolicy-61209160, ID : 26d2cb46-c4d7-4e22-9f57-116e176bca3f