2025-07-23 16:02:47,469 - INFO - Domain Default found not creating 2025-07-23 16:02:47,636 - INFO - Project ctest-TestBasicPolicy-27953178 not found, creating it 2025-07-23 16:02:48,251 - INFO - Created Project:ctest-TestBasicPolicy-27953178, ID : e38d6a43-a527-4125-a2f7-4e8638ddbfce 2025-07-23 16:02:49,691 - INFO - ================================================================================ 2025-07-23 16:02:49,691 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-07-23 16:02:49,691 - 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-07-23 16:02:51,035 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0', '10.20.0.17': '0'}, '10.0.0.130': {'10.20.0.17': '0', '10.20.0.254': '0'}} with 2025-07-23 16:02:51,036 - INFO - Initial checks done. Running the testcase now 2025-07-23 16:02:51,036 - INFO - 2025-07-23 16:02:51,796 - DEBUG - Response for create_network : {'network': {'id': '05b916c5-70a7-4490-a972-e1ed38778512', 'name': 'ctest-vn-65606974', 'tenant_id': 'e38d6a43a5274125a2f74e8638ddbfce', 'project_id': 'e38d6a43a5274125a2f74e8638ddbfce', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27953178', 'ctest-vn-65606974'], 'port_security_enabled': True, 'description': ''}} 2025-07-23 16:02:52,048 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fa7a1de1-c74b-4736-a17e-f53ba424d0d9', 'name': '', 'tenant_id': 'e38d6a43a5274125a2f74e8638ddbfce', 'network_id': '05b916c5-70a7-4490-a972-e1ed38778512', 'ip_version': 4, 'cidr': '98.176.97.192/26', 'allocation_pools': [{'start': '98.176.97.194', 'end': '98.176.97.254'}], 'gateway_ip': '98.176.97.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '98.176.97.194', 'tags': [], 'project_id': 'e38d6a43a5274125a2f74e8638ddbfce'}} 2025-07-23 16:02:52,074 - INFO - Created VN ctest-vn-65606974 2025-07-23 16:02:52,088 - DEBUG - VN ctest-vn-65606974 UUID is 05b916c5-70a7-4490-a972-e1ed38778512 2025-07-23 16:02:52,447 - DEBUG - Response for create_network : {'network': {'id': '34e077e6-fac7-40c9-9dfd-b42dfb932b33', 'name': 'ctest-vn-97438692', 'tenant_id': 'e38d6a43a5274125a2f74e8638ddbfce', 'project_id': 'e38d6a43a5274125a2f74e8638ddbfce', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27953178', 'ctest-vn-97438692'], 'port_security_enabled': True, 'description': ''}} 2025-07-23 16:02:52,697 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a48457c5-d792-4d9d-988e-f2d4db822856', 'name': '', 'tenant_id': 'e38d6a43a5274125a2f74e8638ddbfce', 'network_id': '34e077e6-fac7-40c9-9dfd-b42dfb932b33', 'ip_version': 4, 'cidr': '103.240.177.128/26', 'allocation_pools': [{'start': '103.240.177.130', 'end': '103.240.177.190'}], 'gateway_ip': '103.240.177.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '103.240.177.130', 'tags': [], 'project_id': 'e38d6a43a5274125a2f74e8638ddbfce'}} 2025-07-23 16:02:52,719 - INFO - Created VN ctest-vn-97438692 2025-07-23 16:02:52,735 - DEBUG - VN ctest-vn-97438692 UUID is 34e077e6-fac7-40c9-9dfd-b42dfb932b33 2025-07-23 16:02:52,822 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-27953178:ctest-vn-65606974, 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-27953178:ctest-vn-97438692, 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-07-23 16:02:53,164 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '05b916c5-70a7-4490-a972-e1ed38778512', 'name': 'ctest-vn-65606974', 'tenant_id': 'e38d6a43a5274125a2f74e8638ddbfce', 'project_id': 'e38d6a43a5274125a2f74e8638ddbfce', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fa7a1de1-c74b-4736-a17e-f53ba424d0d9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27953178', 'ctest-vn-65606974'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27953178', 'ctest-policy-allow-all-10677983']], 'subnet_ipam': [{'subnet_cidr': '98.176.97.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-23 16:02:53,386 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '34e077e6-fac7-40c9-9dfd-b42dfb932b33', 'name': 'ctest-vn-97438692', 'tenant_id': 'e38d6a43a5274125a2f74e8638ddbfce', 'project_id': 'e38d6a43a5274125a2f74e8638ddbfce', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a48457c5-d792-4d9d-988e-f2d4db822856'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27953178', 'ctest-vn-97438692'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27953178', 'ctest-policy-allow-all-10677983']], 'subnet_ipam': [{'subnet_cidr': '103.240.177.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-23 16:02:53,489 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-07-23 16:02:53,814 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-07-23 16:02:53,846 - DEBUG - Requesting: http://10.0.0.23:8082/domain/85afe8be-97e7-4e27-9667-ee7272dde692 2025-07-23 16:02:53,862 - DEBUG - Requesting: http://10.0.0.23:8082/project/e38d6a43-a527-4125-a2f7-4e8638ddbfce 2025-07-23 16:02:53,960 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/05b916c5-70a7-4490-a972-e1ed38778512 2025-07-23 16:02:53,977 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/05b916c5-70a7-4490-a972-e1ed38778512 2025-07-23 16:02:53,988 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c50c9059-4c1b-465b-b646-3b5dc331e87b 2025-07-23 16:02:53,995 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c50c9059-4c1b-465b-b646-3b5dc331e87b 2025-07-23 16:02:54,005 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/835d709c-795a-4bf2-ac6b-f68f0fe8c908 2025-07-23 16:02:54,013 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-23 16:02:54,013 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/05b916c5-70a7-4490-a972-e1ed38778512 2025-07-23 16:02:54,023 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c50c9059-4c1b-465b-b646-3b5dc331e87b 2025-07-23 16:02:54,044 - INFO - Verified VN network id 12 for VN 05b916c5-70a7-4490-a972-e1ed38778512 2025-07-23 16:02:54,044 - INFO - Verifications in API Server for VN ctest-vn-65606974 passed 2025-07-23 16:02:54,045 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/05b916c5-70a7-4490-a972-e1ed38778512 2025-07-23 16:02:54,056 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c50c9059-4c1b-465b-b646-3b5dc331e87b 2025-07-23 16:02:54,064 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c50c9059-4c1b-465b-b646-3b5dc331e87b 2025-07-23 16:02:54,072 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/835d709c-795a-4bf2-ac6b-f68f0fe8c908 2025-07-23 16:02:54,089 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27953178:ctest-vn-65606974', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27953178', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '412385878135489680', 'uuid-lslong': '12210069948725691666'}, 'enable': 'true', 'created': '2025-07-23T16:02:51', 'last-modified': '2025-07-23T16:02:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.960321'} 2025-07-23 16:02:54,097 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-23 16:02:54,104 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27953178:ctest-vn-65606974', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27953178', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '412385878135489680', 'uuid-lslong': '12210069948725691666'}, 'enable': 'true', 'created': '2025-07-23T16:02:51', 'last-modified': '2025-07-23T16:02:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.972632'} 2025-07-23 16:02:54,111 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-23 16:02:54,117 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27953178:ctest-vn-65606974', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27953178', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '412385878135489680', 'uuid-lslong': '12210069948725691666'}, 'enable': 'true', 'created': '2025-07-23T16:02:51', 'last-modified': '2025-07-23T16:02:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.989309'} 2025-07-23 16:02:54,126 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-23 16:02:54,127 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65606974 passed 2025-07-23 16:02:54,127 - DEBUG - ====Verifying policy data for ctest-vn-65606974 in API_Server ====== 2025-07-23 16:02:54,127 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-07-23 16:02:54,134 - DEBUG - Requesting: http://10.0.0.23:8082/domain/85afe8be-97e7-4e27-9667-ee7272dde692 2025-07-23 16:02:54,151 - DEBUG - Requesting: http://10.0.0.23:8082/project/e38d6a43-a527-4125-a2f7-4e8638ddbfce 2025-07-23 16:02:54,243 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/05b916c5-70a7-4490-a972-e1ed38778512 2025-07-23 16:02:54,256 - DEBUG - ==>Verifying data for policy with id: 91647799-7038-4223-b4c0-41b710714406, fqn: ['default-domain', 'ctest-TestBasicPolicy-27953178', 'ctest-policy-allow-all-10677983'] 2025-07-23 16:02:54,257 - INFO - VN ctest-vn-65606974 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-23 16:02:54,257 - DEBUG - Verifying the vn in opserver 2025-07-23 16:02:54,257 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27953178:ctest-vn-65606974 virtual network link through opserver 10.0.0.23 2025-07-23 16:02:54,257 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-07-23 16:02:54,565 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-07-23 16:02:54,630 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27953178:ctest-vn-65606974', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27953178:ctest-vn-65606974?flat'} 2025-07-23 16:02:54,630 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27953178:ctest-vn-65606974 virtual network link through opserver 10.0.0.249 2025-07-23 16:02:54,630 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-07-23 16:02:54,945 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-07-23 16:02:55,029 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27953178:ctest-vn-65606974', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27953178:ctest-vn-65606974?flat'} 2025-07-23 16:02:55,029 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27953178:ctest-vn-65606974 virtual network link through opserver 10.0.0.73 2025-07-23 16:02:55,029 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2025-07-23 16:02:55,335 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2025-07-23 16:02:55,393 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27953178:ctest-vn-65606974', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27953178:ctest-vn-65606974?flat'} 2025-07-23 16:02:55,393 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27953178:ctest-vn-65606974 is found in opserver 2025-07-23 16:02:55,434 - DEBUG - Do not have enough data to verify VN in agent 2025-07-23 16:02:55,453 - DEBUG - VRF ids for VN ctest-vn-65606974: {} 2025-07-23 16:02:55,453 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-07-23 16:02:55,460 - DEBUG - Requesting: http://10.0.0.23:8082/domain/85afe8be-97e7-4e27-9667-ee7272dde692 2025-07-23 16:02:55,477 - DEBUG - Requesting: http://10.0.0.23:8082/project/e38d6a43-a527-4125-a2f7-4e8638ddbfce 2025-07-23 16:02:55,570 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/34e077e6-fac7-40c9-9dfd-b42dfb932b33 2025-07-23 16:02:55,587 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/34e077e6-fac7-40c9-9dfd-b42dfb932b33 2025-07-23 16:02:55,600 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/6ea66004-7930-415d-acbe-61a5fc557a4d 2025-07-23 16:02:55,611 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/6ea66004-7930-415d-acbe-61a5fc557a4d 2025-07-23 16:02:55,619 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/2ad3c47b-c1f9-40df-893f-9959f25cf970 2025-07-23 16:02:55,628 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-23 16:02:55,628 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/34e077e6-fac7-40c9-9dfd-b42dfb932b33 2025-07-23 16:02:55,640 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/6ea66004-7930-415d-acbe-61a5fc557a4d 2025-07-23 16:02:55,658 - INFO - Verified VN network id 13 for VN 34e077e6-fac7-40c9-9dfd-b42dfb932b33 2025-07-23 16:02:55,658 - INFO - Verifications in API Server for VN ctest-vn-97438692 passed 2025-07-23 16:02:55,658 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/34e077e6-fac7-40c9-9dfd-b42dfb932b33 2025-07-23 16:02:55,670 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/6ea66004-7930-415d-acbe-61a5fc557a4d 2025-07-23 16:02:55,679 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/6ea66004-7930-415d-acbe-61a5fc557a4d 2025-07-23 16:02:55,687 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/2ad3c47b-c1f9-40df-893f-9959f25cf970 2025-07-23 16:02:55,702 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27953178:ctest-vn-97438692', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27953178', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3810177118688985289', 'uuid-lslong': '11384453542649735987'}, 'enable': 'true', 'created': '2025-07-23T16:02:52', 'last-modified': '2025-07-23T16:02:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.356321'} 2025-07-23 16:02:55,709 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-23 16:02:55,715 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27953178:ctest-vn-97438692', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27953178', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3810177118688985289', 'uuid-lslong': '11384453542649735987'}, 'enable': 'true', 'created': '2025-07-23T16:02:52', 'last-modified': '2025-07-23T16:02:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.370945'} 2025-07-23 16:02:55,723 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-23 16:02:55,729 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27953178:ctest-vn-97438692', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27953178', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3810177118688985289', 'uuid-lslong': '11384453542649735987'}, 'enable': 'true', 'created': '2025-07-23T16:02:52', 'last-modified': '2025-07-23T16:02:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.381991'} 2025-07-23 16:02:55,737 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-23 16:02:55,737 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97438692 passed 2025-07-23 16:02:55,737 - DEBUG - ====Verifying policy data for ctest-vn-97438692 in API_Server ====== 2025-07-23 16:02:55,737 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-07-23 16:02:55,744 - DEBUG - Requesting: http://10.0.0.23:8082/domain/85afe8be-97e7-4e27-9667-ee7272dde692 2025-07-23 16:02:55,756 - DEBUG - Requesting: http://10.0.0.23:8082/project/e38d6a43-a527-4125-a2f7-4e8638ddbfce 2025-07-23 16:02:55,858 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/34e077e6-fac7-40c9-9dfd-b42dfb932b33 2025-07-23 16:02:55,869 - DEBUG - ==>Verifying data for policy with id: 91647799-7038-4223-b4c0-41b710714406, fqn: ['default-domain', 'ctest-TestBasicPolicy-27953178', 'ctest-policy-allow-all-10677983'] 2025-07-23 16:02:55,869 - INFO - VN ctest-vn-97438692 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-23 16:02:55,869 - DEBUG - Verifying the vn in opserver 2025-07-23 16:02:55,870 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27953178:ctest-vn-97438692 virtual network link through opserver 10.0.0.23 2025-07-23 16:02:55,870 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-07-23 16:02:55,927 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27953178:ctest-vn-97438692', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27953178:ctest-vn-97438692?flat'} 2025-07-23 16:02:55,927 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27953178:ctest-vn-97438692 virtual network link through opserver 10.0.0.249 2025-07-23 16:02:55,927 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-07-23 16:02:55,983 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27953178:ctest-vn-97438692', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27953178:ctest-vn-97438692?flat'} 2025-07-23 16:02:55,983 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27953178:ctest-vn-97438692 virtual network link through opserver 10.0.0.73 2025-07-23 16:02:55,983 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2025-07-23 16:02:56,043 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27953178:ctest-vn-97438692', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27953178:ctest-vn-97438692?flat'} 2025-07-23 16:02:56,044 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27953178:ctest-vn-97438692 is found in opserver 2025-07-23 16:02:56,083 - DEBUG - Do not have enough data to verify VN in agent 2025-07-23 16:02:56,104 - DEBUG - VRF ids for VN ctest-vn-97438692: {} 2025-07-23 16:02:56,163 - DEBUG - Services list from nova: [, , , ] 2025-07-23 16:02:57,372 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3704-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3704-2) 2025-07-23 16:02:58,880 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3704-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3704-1) 2025-07-23 16:02:58,880 - INFO - Waiting for VM ctest-TestBasicPolicy-27953178-69678719 to be up.. 2025-07-23 16:02:58,974 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-23 16:03:04,071 - DEBUG - VM is in ACTIVE state now 2025-07-23 16:03:04,072 - INFO - VM name : ctest-TestBasicPolicy-27953178-69678719 2025-07-23 16:03:04,156 - DEBUG - VM ctest-TestBasicPolicy-27953178-69678719 ID is 037ddd36-9843-43da-8a48-4ad42adc9cae 2025-07-23 16:03:04,191 - DEBUG - VM ctest-TestBasicPolicy-27953178-69678719 launched on Node an-jenkins-deploy-platform-ansible-os-3704-2 2025-07-23 16:03:04,288 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-machine/037ddd36-9843-43da-8a48-4ad42adc9cae 2025-07-23 16:03:04,591 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-machine/037ddd36-9843-43da-8a48-4ad42adc9cae 2025-07-23 16:03:04,631 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-machine-interface/f99ce356-91c6-41cb-9bb3-8a2f2f44698a 2025-07-23 16:03:07,880 - 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 1023ms') 2025-07-23 16:03:07,880 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27953178-69678719 failed! 2025-07-23 16:03:07,897 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-27953178:ctest-vn-65606974 is 98.176.97.193 and allocation pool is NOT set 2025-07-23 16:03:11,973 - 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 1009ms') 2025-07-23 16:03:11,973 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27953178-69678719 failed! 2025-07-23 16:03:11,990 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-27953178:ctest-vn-65606974 is 98.176.97.193 and allocation pool is NOT set 2025-07-23 16:03:16,071 - 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 1017ms') 2025-07-23 16:03:16,071 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27953178-69678719 failed! 2025-07-23 16:03:16,089 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-27953178:ctest-vn-65606974 is 98.176.97.193 and allocation pool is NOT set 2025-07-23 16:03:20,167 - 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 1008ms') 2025-07-23 16:03:20,167 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27953178-69678719 failed! 2025-07-23 16:03:20,186 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-27953178:ctest-vn-65606974 is 98.176.97.193 and allocation pool is NOT set 2025-07-23 16:03:24,262 - 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 1012ms') 2025-07-23 16:03:24,262 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27953178-69678719 failed! 2025-07-23 16:03:24,280 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-27953178:ctest-vn-65606974 is 98.176.97.193 and allocation pool is NOT set 2025-07-23 16:03:28,359 - 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-07-23 16:03:28,359 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27953178-69678719 failed! 2025-07-23 16:03:28,375 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-27953178:ctest-vn-65606974 is 98.176.97.193 and allocation pool is NOT set 2025-07-23 16:03:32,450 - 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 1014ms') 2025-07-23 16:03:32,451 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27953178-69678719 failed! 2025-07-23 16:03:32,469 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-27953178:ctest-vn-65606974 is 98.176.97.193 and allocation pool is NOT set 2025-07-23 16:03:36,548 - 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 1019ms') 2025-07-23 16:03:36,548 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27953178-69678719 failed! 2025-07-23 16:03:36,563 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-27953178:ctest-vn-65606974 is 98.176.97.193 and allocation pool is NOT set 2025-07-23 16:03:38,634 - 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.10 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.77 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 2.773/5.435/8.097/2.662 ms') 2025-07-23 16:03:38,634 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27953178-69678719 passed 2025-07-23 16:03:38,757 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-23 16:03:38,757 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-27953178-69678719, IP 98.176.97.195, Port 22 2025-07-23 16:03:38,823 - DEBUG - Error on ssh to ubuntu@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-07-23 16:03:38,906 - DEBUG - VM ctest-TestBasicPolicy-27953178-69678719 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-23 16:03:43,906 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-23 16:03:43,906 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-27953178-69678719, IP 98.176.97.195, Port 22 2025-07-23 16:03:43,966 - DEBUG - Error on ssh to ubuntu@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-07-23 16:03:44,072 - DEBUG - VM ctest-TestBasicPolicy-27953178-69678719 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-23 16:03:49,072 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-23 16:03:49,073 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-27953178-69678719, IP 98.176.97.195, Port 22 2025-07-23 16:03:49,141 - DEBUG - Error on ssh to ubuntu@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-07-23 16:03:49,241 - DEBUG - VM ctest-TestBasicPolicy-27953178-69678719 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-23 16:03:54,241 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-23 16:03:54,242 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-27953178-69678719, IP 98.176.97.195, Port 22 2025-07-23 16:03:54,302 - DEBUG - Error on ssh to ubuntu@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-07-23 16:03:54,384 - DEBUG - VM ctest-TestBasicPolicy-27953178-69678719 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-23 16:03:59,384 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-23 16:03:59,384 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-27953178-69678719, IP 98.176.97.195, Port 22 2025-07-23 16:03:59,552 - DEBUG - VM ctest-TestBasicPolicy-27953178-69678719 is ready for SSH connections 2025-07-23 16:03:59,553 - INFO - Waiting for VM ctest-TestBasicPolicy-27953178-45232653 to be up.. 2025-07-23 16:03:59,646 - DEBUG - VM is in ACTIVE state now 2025-07-23 16:03:59,646 - INFO - VM name : ctest-TestBasicPolicy-27953178-45232653 2025-07-23 16:03:59,740 - DEBUG - VM ctest-TestBasicPolicy-27953178-45232653 ID is a28123ed-54e6-4c4a-b17b-7eddb9c0be70 2025-07-23 16:03:59,740 - DEBUG - VM ctest-TestBasicPolicy-27953178-45232653 launched on Node an-jenkins-deploy-platform-ansible-os-3704-1 2025-07-23 16:03:59,831 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-machine/a28123ed-54e6-4c4a-b17b-7eddb9c0be70 2025-07-23 16:03:59,845 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-machine-interface/b1b4492c-69ba-4a70-9fc6-3a6ffbca6b08 2025-07-23 16:04:01,133 - 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=6.49 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=4.56 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 = 4.557/5.524/6.491/0.967 ms') 2025-07-23 16:04:01,133 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27953178-45232653 passed 2025-07-23 16:04:01,250 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-23 16:04:01,250 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-27953178-45232653, IP 103.240.177.131, Port 22 2025-07-23 16:04:01,456 - DEBUG - VM ctest-TestBasicPolicy-27953178-45232653 is ready for SSH connections 2025-07-23 16:04:01,456 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-23 16:04:01,456 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 103.240.177.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.130, gateway password: c0ntrail123 2025-07-23 16:04:01,456 - DEBUG - ping -s 56 -c 3 -W 1 103.240.177.131 2025-07-23 16:04:20,807 - DEBUG - PING 103.240.177.131 (103.240.177.131) 56(84) bytes of data. 64 bytes from 103.240.177.131: icmp_req=1 ttl=63 time=7.01 ms 64 bytes from 103.240.177.131: icmp_req=2 ttl=63 time=2.03 ms 64 bytes from 103.240.177.131: icmp_req=3 ttl=63 time=1.68 ms --- 103.240.177.131 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 1.688/3.578/7.012/2.432 ms 2025-07-23 16:04:20,808 - INFO - Ping to IP 103.240.177.131 from VM ctest-TestBasicPolicy-27953178-69678719 passed 2025-07-23 16:04:21,059 - DEBUG - Policy Update Response {"network-policy": {"uuid": "91647799-7038-4223-b4c0-41b710714406", "href": "http://10.0.0.73:8082/network-policy/91647799-7038-4223-b4c0-41b710714406"}} 2025-07-23 16:04:21,060 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-23 16:04:21,060 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 103.240.177.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.130, gateway password: c0ntrail123 2025-07-23 16:04:21,060 - DEBUG - ping -s 56 -c 3 -W 1 103.240.177.131 2025-07-23 16:04:24,523 - DEBUG - PING 103.240.177.131 (103.240.177.131) 56(84) bytes of data. 64 bytes from 103.240.177.131: icmp_req=1 ttl=63 time=5.23 ms --- 103.240.177.131 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2001ms rtt min/avg/max/mdev = 5.234/5.234/5.234/0.000 ms 2025-07-23 16:04:24,524 - WARNING - Ping to IP 103.240.177.131 from VM ctest-TestBasicPolicy-27953178-69678719 failed 2025-07-23 16:04:24,524 - INFO - Deleting VM ctest-TestBasicPolicy-27953178-45232653 2025-07-23 16:04:24,590 - INFO - Deleting VM ctest-TestBasicPolicy-27953178-69678719 2025-07-23 16:04:25,088 - INFO - Deleted policy ctest-policy-allow-all-10677983 2025-07-23 16:04:25,089 - INFO - Deleting VN ctest-vn-97438692 2025-07-23 16:04:25,140 - DEBUG - VN 34e077e6-fac7-40c9-9dfd-b42dfb932b33 still in use: Unable to complete operation on network 34e077e6-fac7-40c9-9dfd-b42dfb932b33. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-14a7aa64-50b1-4a21-b88a-4a7b2c9bedfc'] 2025-07-23 16:04:25,140 - WARNING - Deleting VN ctest-vn-97438692 failed..Will retry 2025-07-23 16:04:27,297 - DEBUG - Response for deleting network () 2025-07-23 16:04:27,298 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/6ea66004-7930-415d-acbe-61a5fc557a4d 2025-07-23 16:04:27,304 - DEBUG - Response Code: 404 2025-07-23 16:04:27,304 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-07-23 16:04:27,319 - DEBUG - Requesting: http://10.0.0.23:8082/domain/85afe8be-97e7-4e27-9667-ee7272dde692 2025-07-23 16:04:27,358 - DEBUG - Requesting: http://10.0.0.23:8082/project/e38d6a43-a527-4125-a2f7-4e8638ddbfce 2025-07-23 16:04:27,453 - INFO - Validated that VN ctest-vn-97438692 is not found in API Server 2025-07-23 16:04:27,486 - DEBUG - VN ctest-vn-97438692 is not present in Agent 10.0.0.50 2025-07-23 16:04:27,498 - DEBUG - VN ctest-vn-97438692 is not present in Agent 10.0.0.130 2025-07-23 16:04:27,498 - INFO - Validated that VN ctest-vn-97438692 is not in any agent 2025-07-23 16:04:27,543 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-97438692 info 2025-07-23 16:04:27,543 - INFO - Deleting VN ctest-vn-65606974 2025-07-23 16:04:27,749 - DEBUG - Response for deleting network () 2025-07-23 16:04:27,749 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c50c9059-4c1b-465b-b646-3b5dc331e87b 2025-07-23 16:04:27,773 - DEBUG - Response Code: 404 2025-07-23 16:04:27,773 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-07-23 16:04:27,786 - DEBUG - Requesting: http://10.0.0.23:8082/domain/85afe8be-97e7-4e27-9667-ee7272dde692 2025-07-23 16:04:27,801 - DEBUG - Requesting: http://10.0.0.23:8082/project/e38d6a43-a527-4125-a2f7-4e8638ddbfce 2025-07-23 16:04:27,890 - INFO - Validated that VN ctest-vn-65606974 is not found in API Server 2025-07-23 16:04:27,923 - DEBUG - VN ctest-vn-65606974 is not present in Agent 10.0.0.50 2025-07-23 16:04:27,938 - DEBUG - VN ctest-vn-65606974 is not present in Agent 10.0.0.130 2025-07-23 16:04:27,938 - INFO - Validated that VN ctest-vn-65606974 is not in any agent 2025-07-23 16:04:27,985 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-65606974 info 2025-07-23 16:04:29,358 - DEBUG - No XMPP flaps were noticed during the test 2025-07-23 16:04:29,358 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:40] 2025-07-23 16:04:29,358 - INFO - -------------------------------------------------------------------------------- 2025-07-23 16:04:30,137 - INFO - Deleted project: ctest-TestBasicPolicy-27953178, ID : e38d6a43-a527-4125-a2f7-4e8638ddbfce