2025-11-20 02:27:42,580 - INFO - Domain Default found not creating 2025-11-20 02:27:42,738 - INFO - Project ctest-TestBasicPolicy-70721004 not found, creating it 2025-11-20 02:27:43,256 - INFO - Created Project:ctest-TestBasicPolicy-70721004, ID : 7c0d3ebd-71c0-4281-9b65-3c4ca2c16d8c 2025-11-20 02:27:44,763 - INFO - ================================================================================ 2025-11-20 02:27:44,763 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-11-20 02:27:44,763 - 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-11-20 02:27:46,053 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.20.0.201': '0', '10.20.0.129': '0'}, '10.0.0.48': {'10.20.0.201': '0', '10.20.0.129': '0'}} with 2025-11-20 02:27:46,053 - INFO - Initial checks done. Running the testcase now 2025-11-20 02:27:46,053 - INFO - 2025-11-20 02:27:46,727 - DEBUG - Response for create_network : {'network': {'id': 'c161d2c5-8a5f-4758-9520-e674d1c0e952', 'name': 'ctest-vn-76663089', 'tenant_id': '7c0d3ebd71c042819b653c4ca2c16d8c', 'project_id': '7c0d3ebd71c042819b653c4ca2c16d8c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70721004', 'ctest-vn-76663089'], 'port_security_enabled': True, 'description': ''}} 2025-11-20 02:27:46,973 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e03cb5c2-8b23-4fa0-a1ca-d10200053cc3', 'name': '', 'tenant_id': '7c0d3ebd71c042819b653c4ca2c16d8c', 'network_id': 'c161d2c5-8a5f-4758-9520-e674d1c0e952', 'ip_version': 4, 'cidr': '56.250.132.128/26', 'allocation_pools': [{'start': '56.250.132.130', 'end': '56.250.132.190'}], 'gateway_ip': '56.250.132.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '56.250.132.130', 'tags': [], 'project_id': '7c0d3ebd71c042819b653c4ca2c16d8c'}} 2025-11-20 02:27:46,993 - INFO - Created VN ctest-vn-76663089 2025-11-20 02:27:47,004 - DEBUG - VN ctest-vn-76663089 UUID is c161d2c5-8a5f-4758-9520-e674d1c0e952 2025-11-20 02:27:47,325 - DEBUG - Response for create_network : {'network': {'id': '84b63df1-1a3a-45a2-9e60-e17aa2b568e7', 'name': 'ctest-vn-47946961', 'tenant_id': '7c0d3ebd71c042819b653c4ca2c16d8c', 'project_id': '7c0d3ebd71c042819b653c4ca2c16d8c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70721004', 'ctest-vn-47946961'], 'port_security_enabled': True, 'description': ''}} 2025-11-20 02:27:47,592 - DEBUG - Response for create_subnet : {'subnet': {'id': '4dbe174e-ad7c-40a5-9330-1c390ce8dcc0', 'name': '', 'tenant_id': '7c0d3ebd71c042819b653c4ca2c16d8c', 'network_id': '84b63df1-1a3a-45a2-9e60-e17aa2b568e7', 'ip_version': 4, 'cidr': '206.122.205.0/26', 'allocation_pools': [{'start': '206.122.205.2', 'end': '206.122.205.62'}], 'gateway_ip': '206.122.205.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '206.122.205.2', 'tags': [], 'project_id': '7c0d3ebd71c042819b653c4ca2c16d8c'}} 2025-11-20 02:27:47,612 - INFO - Created VN ctest-vn-47946961 2025-11-20 02:27:47,626 - DEBUG - VN ctest-vn-47946961 UUID is 84b63df1-1a3a-45a2-9e60-e17aa2b568e7 2025-11-20 02:27:47,741 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-70721004:ctest-vn-76663089, 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-70721004:ctest-vn-47946961, 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-11-20 02:27:48,051 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c161d2c5-8a5f-4758-9520-e674d1c0e952', 'name': 'ctest-vn-76663089', 'tenant_id': '7c0d3ebd71c042819b653c4ca2c16d8c', 'project_id': '7c0d3ebd71c042819b653c4ca2c16d8c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e03cb5c2-8b23-4fa0-a1ca-d10200053cc3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70721004', 'ctest-vn-76663089'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70721004', 'ctest-policy-allow-all-18601379']], 'subnet_ipam': [{'subnet_cidr': '56.250.132.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-20 02:27:48,242 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '84b63df1-1a3a-45a2-9e60-e17aa2b568e7', 'name': 'ctest-vn-47946961', 'tenant_id': '7c0d3ebd71c042819b653c4ca2c16d8c', 'project_id': '7c0d3ebd71c042819b653c4ca2c16d8c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4dbe174e-ad7c-40a5-9330-1c390ce8dcc0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70721004', 'ctest-vn-47946961'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70721004', 'ctest-policy-allow-all-18601379']], 'subnet_ipam': [{'subnet_cidr': '206.122.205.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-20 02:27:48,345 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-11-20 02:27:48,697 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-11-20 02:27:48,728 - DEBUG - Requesting: http://10.0.0.23:8082/domain/785d7fdc-4b61-45a1-9add-76a6d523389b 2025-11-20 02:27:48,745 - DEBUG - Requesting: http://10.0.0.23:8082/project/7c0d3ebd-71c0-4281-9b65-3c4ca2c16d8c 2025-11-20 02:27:48,846 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c161d2c5-8a5f-4758-9520-e674d1c0e952 2025-11-20 02:27:48,861 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c161d2c5-8a5f-4758-9520-e674d1c0e952 2025-11-20 02:27:48,872 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/de494b5c-9aa0-46c6-8b96-b29e99aa2ebf 2025-11-20 02:27:48,879 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/de494b5c-9aa0-46c6-8b96-b29e99aa2ebf 2025-11-20 02:27:48,886 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/b3b6aabd-7d2e-43aa-8aac-26a1cbb41227 2025-11-20 02:27:48,892 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-20 02:27:48,892 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c161d2c5-8a5f-4758-9520-e674d1c0e952 2025-11-20 02:27:48,902 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/de494b5c-9aa0-46c6-8b96-b29e99aa2ebf 2025-11-20 02:27:48,917 - INFO - Verified VN network id 15 for VN c161d2c5-8a5f-4758-9520-e674d1c0e952 2025-11-20 02:27:48,917 - INFO - Verifications in API Server for VN ctest-vn-76663089 passed 2025-11-20 02:27:48,917 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c161d2c5-8a5f-4758-9520-e674d1c0e952 2025-11-20 02:27:48,927 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/de494b5c-9aa0-46c6-8b96-b29e99aa2ebf 2025-11-20 02:27:48,936 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/de494b5c-9aa0-46c6-8b96-b29e99aa2ebf 2025-11-20 02:27:48,944 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/b3b6aabd-7d2e-43aa-8aac-26a1cbb41227 2025-11-20 02:27:48,959 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70721004:ctest-vn-76663089', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70721004', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13934650467932915544', 'uuid-lslong': '10745842100315679058'}, 'enable': 'true', 'created': '2025-11-20T02:27:46', 'last-modified': '2025-11-20T02:27:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.947829'} 2025-11-20 02:27:48,966 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-20 02:27:48,972 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70721004:ctest-vn-76663089', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70721004', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13934650467932915544', 'uuid-lslong': '10745842100315679058'}, 'enable': 'true', 'created': '2025-11-20T02:27:46', 'last-modified': '2025-11-20T02:27:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.962476'} 2025-11-20 02:27:48,979 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-20 02:27:48,985 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70721004:ctest-vn-76663089', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70721004', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13934650467932915544', 'uuid-lslong': '10745842100315679058'}, 'enable': 'true', 'created': '2025-11-20T02:27:46', 'last-modified': '2025-11-20T02:27:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.961854'} 2025-11-20 02:27:48,993 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-20 02:27:48,993 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76663089 passed 2025-11-20 02:27:48,994 - DEBUG - ====Verifying policy data for ctest-vn-76663089 in API_Server ====== 2025-11-20 02:27:48,994 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-11-20 02:27:49,001 - DEBUG - Requesting: http://10.0.0.23:8082/domain/785d7fdc-4b61-45a1-9add-76a6d523389b 2025-11-20 02:27:49,014 - DEBUG - Requesting: http://10.0.0.23:8082/project/7c0d3ebd-71c0-4281-9b65-3c4ca2c16d8c 2025-11-20 02:27:49,094 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c161d2c5-8a5f-4758-9520-e674d1c0e952 2025-11-20 02:27:49,108 - DEBUG - ==>Verifying data for policy with id: 909d3401-dc2e-45e4-b74d-c7d9015a8406, fqn: ['default-domain', 'ctest-TestBasicPolicy-70721004', 'ctest-policy-allow-all-18601379'] 2025-11-20 02:27:49,108 - INFO - VN ctest-vn-76663089 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-20 02:27:49,108 - DEBUG - Verifying the vn in opserver 2025-11-20 02:27:49,109 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70721004:ctest-vn-76663089 virtual network link through opserver 10.0.0.23 2025-11-20 02:27:49,109 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-11-20 02:27:49,413 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-11-20 02:27:49,483 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70721004:ctest-vn-76663089', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70721004:ctest-vn-76663089?flat'} 2025-11-20 02:27:49,483 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70721004:ctest-vn-76663089 virtual network link through opserver 10.0.0.50 2025-11-20 02:27:49,483 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-20 02:27:49,777 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-20 02:27:49,840 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70721004:ctest-vn-76663089', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70721004:ctest-vn-76663089?flat'} 2025-11-20 02:27:49,840 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70721004:ctest-vn-76663089 virtual network link through opserver 10.0.0.22 2025-11-20 02:27:49,841 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-20 02:27:50,142 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-20 02:27:50,204 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70721004:ctest-vn-76663089', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70721004:ctest-vn-76663089?flat'} 2025-11-20 02:27:50,204 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70721004:ctest-vn-76663089 is found in opserver 2025-11-20 02:27:50,226 - DEBUG - Do not have enough data to verify VN in agent 2025-11-20 02:27:50,236 - DEBUG - VRF ids for VN ctest-vn-76663089: {} 2025-11-20 02:27:50,236 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-11-20 02:27:50,243 - DEBUG - Requesting: http://10.0.0.23:8082/domain/785d7fdc-4b61-45a1-9add-76a6d523389b 2025-11-20 02:27:50,258 - DEBUG - Requesting: http://10.0.0.23:8082/project/7c0d3ebd-71c0-4281-9b65-3c4ca2c16d8c 2025-11-20 02:27:50,362 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/84b63df1-1a3a-45a2-9e60-e17aa2b568e7 2025-11-20 02:27:50,378 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/84b63df1-1a3a-45a2-9e60-e17aa2b568e7 2025-11-20 02:27:50,388 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/07016f09-de0b-4fc6-929b-75a5060babe2 2025-11-20 02:27:50,401 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/07016f09-de0b-4fc6-929b-75a5060babe2 2025-11-20 02:27:50,416 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/bd20d560-5306-4a07-b223-c658e74c6782 2025-11-20 02:27:50,422 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-11-20 02:27:50,423 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/84b63df1-1a3a-45a2-9e60-e17aa2b568e7 2025-11-20 02:27:50,432 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/07016f09-de0b-4fc6-929b-75a5060babe2 2025-11-20 02:27:50,452 - INFO - Verified VN network id 16 for VN 84b63df1-1a3a-45a2-9e60-e17aa2b568e7 2025-11-20 02:27:50,452 - INFO - Verifications in API Server for VN ctest-vn-47946961 passed 2025-11-20 02:27:50,452 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/84b63df1-1a3a-45a2-9e60-e17aa2b568e7 2025-11-20 02:27:50,464 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/07016f09-de0b-4fc6-929b-75a5060babe2 2025-11-20 02:27:50,471 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/07016f09-de0b-4fc6-929b-75a5060babe2 2025-11-20 02:27:50,478 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/bd20d560-5306-4a07-b223-c658e74c6782 2025-11-20 02:27:50,490 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70721004:ctest-vn-47946961', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70721004', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9562898964504266146', 'uuid-lslong': '11412369372588894439'}, 'enable': 'true', 'created': '2025-11-20T02:27:47', 'last-modified': '2025-11-20T02:27:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.283178'} 2025-11-20 02:27:50,495 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-11-20 02:27:50,501 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70721004:ctest-vn-47946961', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70721004', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9562898964504266146', 'uuid-lslong': '11412369372588894439'}, 'enable': 'true', 'created': '2025-11-20T02:27:47', 'last-modified': '2025-11-20T02:27:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.299625'} 2025-11-20 02:27:50,507 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-11-20 02:27:50,513 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70721004:ctest-vn-47946961', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70721004', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9562898964504266146', 'uuid-lslong': '11412369372588894439'}, 'enable': 'true', 'created': '2025-11-20T02:27:47', 'last-modified': '2025-11-20T02:27:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.309660'} 2025-11-20 02:27:50,519 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-11-20 02:27:50,519 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47946961 passed 2025-11-20 02:27:50,519 - DEBUG - ====Verifying policy data for ctest-vn-47946961 in API_Server ====== 2025-11-20 02:27:50,520 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-11-20 02:27:50,526 - DEBUG - Requesting: http://10.0.0.23:8082/domain/785d7fdc-4b61-45a1-9add-76a6d523389b 2025-11-20 02:27:50,537 - DEBUG - Requesting: http://10.0.0.23:8082/project/7c0d3ebd-71c0-4281-9b65-3c4ca2c16d8c 2025-11-20 02:27:50,625 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/84b63df1-1a3a-45a2-9e60-e17aa2b568e7 2025-11-20 02:27:50,634 - DEBUG - ==>Verifying data for policy with id: 909d3401-dc2e-45e4-b74d-c7d9015a8406, fqn: ['default-domain', 'ctest-TestBasicPolicy-70721004', 'ctest-policy-allow-all-18601379'] 2025-11-20 02:27:50,634 - INFO - VN ctest-vn-47946961 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-20 02:27:50,635 - DEBUG - Verifying the vn in opserver 2025-11-20 02:27:50,635 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70721004:ctest-vn-47946961 virtual network link through opserver 10.0.0.23 2025-11-20 02:27:50,635 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-11-20 02:27:50,704 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70721004:ctest-vn-47946961', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70721004:ctest-vn-47946961?flat'} 2025-11-20 02:27:50,704 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70721004:ctest-vn-47946961 virtual network link through opserver 10.0.0.50 2025-11-20 02:27:50,704 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-20 02:27:50,761 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70721004:ctest-vn-47946961', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70721004:ctest-vn-47946961?flat'} 2025-11-20 02:27:50,761 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70721004:ctest-vn-47946961 virtual network link through opserver 10.0.0.22 2025-11-20 02:27:50,762 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-20 02:27:50,819 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70721004:ctest-vn-47946961', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70721004:ctest-vn-47946961?flat'} 2025-11-20 02:27:50,820 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70721004:ctest-vn-47946961 is found in opserver 2025-11-20 02:27:50,838 - DEBUG - Do not have enough data to verify VN in agent 2025-11-20 02:27:50,848 - DEBUG - VRF ids for VN ctest-vn-47946961: {} 2025-11-20 02:27:50,901 - DEBUG - Services list from nova: [, , , ] 2025-11-20 02:27:51,987 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4768-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4768-2) 2025-11-20 02:27:53,453 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4768-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4768-1) 2025-11-20 02:27:53,453 - INFO - Waiting for VM ctest-TestBasicPolicy-70721004-04062667 to be up.. 2025-11-20 02:27:53,546 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-20 02:27:58,642 - DEBUG - VM is in ACTIVE state now 2025-11-20 02:27:58,643 - INFO - VM name : ctest-TestBasicPolicy-70721004-04062667 2025-11-20 02:27:58,723 - DEBUG - VM ctest-TestBasicPolicy-70721004-04062667 ID is 20f00246-154f-4784-a688-544c565491df 2025-11-20 02:27:58,752 - DEBUG - VM ctest-TestBasicPolicy-70721004-04062667 launched on Node an-jenkins-deploy-platform-ansible-os-4768-2 2025-11-20 02:27:58,832 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/20f00246-154f-4784-a688-544c565491df 2025-11-20 02:27:59,132 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/20f00246-154f-4784-a688-544c565491df 2025-11-20 02:27:59,173 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/de8b4038-31af-43a8-afb5-8656e7257f03 2025-11-20 02:28:02,332 - 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-11-20 02:28:02,332 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70721004-04062667 failed! 2025-11-20 02:28:02,348 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-70721004:ctest-vn-76663089 is 56.250.132.129 and allocation pool is NOT set 2025-11-20 02:28:06,429 - 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 1022ms') 2025-11-20 02:28:06,429 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70721004-04062667 failed! 2025-11-20 02:28:06,444 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-70721004:ctest-vn-76663089 is 56.250.132.129 and allocation pool is NOT set 2025-11-20 02:28:10,526 - 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-11-20 02:28:10,526 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70721004-04062667 failed! 2025-11-20 02:28:10,539 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-70721004:ctest-vn-76663089 is 56.250.132.129 and allocation pool is NOT set 2025-11-20 02:28:14,620 - 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-11-20 02:28:14,620 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70721004-04062667 failed! 2025-11-20 02:28:14,634 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-70721004:ctest-vn-76663089 is 56.250.132.129 and allocation pool is NOT set 2025-11-20 02:28:18,723 - 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 1022ms') 2025-11-20 02:28:18,723 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70721004-04062667 failed! 2025-11-20 02:28:18,738 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-70721004:ctest-vn-76663089 is 56.250.132.129 and allocation pool is NOT set 2025-11-20 02:28:22,817 - 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 1013ms') 2025-11-20 02:28:22,817 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70721004-04062667 failed! 2025-11-20 02:28:22,832 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-70721004:ctest-vn-76663089 is 56.250.132.129 and allocation pool is NOT set 2025-11-20 02:28:26,917 - 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-11-20 02:28:26,918 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70721004-04062667 failed! 2025-11-20 02:28:26,933 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-70721004:ctest-vn-76663089 is 56.250.132.129 and allocation pool is NOT set 2025-11-20 02:28:31,011 - 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-11-20 02:28:31,011 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70721004-04062667 failed! 2025-11-20 02:28:31,025 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-70721004:ctest-vn-76663089 is 56.250.132.129 and allocation pool is NOT set 2025-11-20 02:28:33,087 - 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.66 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=4.07 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.071/5.366/6.661/1.295 ms') 2025-11-20 02:28:33,088 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70721004-04062667 passed 2025-11-20 02:28:33,157 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-20 02:28:33,157 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-70721004-04062667, IP 56.250.132.131, Port 22 2025-11-20 02:28:33,223 - 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-11-20 02:28:33,309 - DEBUG - VM ctest-TestBasicPolicy-70721004-04062667 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-20 02:28:38,310 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-20 02:28:38,310 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-70721004-04062667, IP 56.250.132.131, Port 22 2025-11-20 02:28:38,364 - 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-11-20 02:28:38,447 - DEBUG - VM ctest-TestBasicPolicy-70721004-04062667 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-20 02:28:43,447 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-20 02:28:43,447 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-70721004-04062667, IP 56.250.132.131, Port 22 2025-11-20 02:28:43,514 - 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-11-20 02:28:43,590 - DEBUG - VM ctest-TestBasicPolicy-70721004-04062667 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-20 02:28:48,591 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-20 02:28:48,591 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-70721004-04062667, IP 56.250.132.131, Port 22 2025-11-20 02:28:48,658 - 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-11-20 02:28:48,749 - DEBUG - VM ctest-TestBasicPolicy-70721004-04062667 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-20 02:28:53,750 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-20 02:28:53,750 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-70721004-04062667, IP 56.250.132.131, Port 22 2025-11-20 02:28:53,919 - DEBUG - VM ctest-TestBasicPolicy-70721004-04062667 is ready for SSH connections 2025-11-20 02:28:53,920 - INFO - Waiting for VM ctest-TestBasicPolicy-70721004-14738278 to be up.. 2025-11-20 02:28:53,999 - DEBUG - VM is in ACTIVE state now 2025-11-20 02:28:53,999 - INFO - VM name : ctest-TestBasicPolicy-70721004-14738278 2025-11-20 02:28:54,084 - DEBUG - VM ctest-TestBasicPolicy-70721004-14738278 ID is 022f3f75-342d-4b7a-a2c5-5fc85572c03c 2025-11-20 02:28:54,084 - DEBUG - VM ctest-TestBasicPolicy-70721004-14738278 launched on Node an-jenkins-deploy-platform-ansible-os-4768-1 2025-11-20 02:28:54,164 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/022f3f75-342d-4b7a-a2c5-5fc85572c03c 2025-11-20 02:28:54,174 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/aaa6bbc0-703f-4362-a6f7-f6725214cdbb 2025-11-20 02:28:55,339 - 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=4.99 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.68 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.675/3.831/4.988/1.156 ms') 2025-11-20 02:28:55,339 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70721004-14738278 passed 2025-11-20 02:28:55,414 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-20 02:28:55,414 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-70721004-14738278, IP 206.122.205.3, Port 22 2025-11-20 02:28:55,580 - DEBUG - VM ctest-TestBasicPolicy-70721004-14738278 is ready for SSH connections 2025-11-20 02:28:55,580 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-20 02:28:55,580 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 206.122.205.3, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2025-11-20 02:28:55,580 - DEBUG - ping -s 56 -c 3 -W 1 206.122.205.3 2025-11-20 02:29:15,667 - DEBUG - PING 206.122.205.3 (206.122.205.3) 56(84) bytes of data. 64 bytes from 206.122.205.3: icmp_req=1 ttl=63 time=8.94 ms 64 bytes from 206.122.205.3: icmp_req=2 ttl=63 time=1.00 ms 64 bytes from 206.122.205.3: icmp_req=3 ttl=63 time=2.12 ms --- 206.122.205.3 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 1.002/4.025/8.949/3.511 ms 2025-11-20 02:29:15,667 - INFO - Ping to IP 206.122.205.3 from VM ctest-TestBasicPolicy-70721004-04062667 passed 2025-11-20 02:29:15,876 - DEBUG - Policy Update Response {"network-policy": {"uuid": "909d3401-dc2e-45e4-b74d-c7d9015a8406", "href": "http://10.0.0.22:8082/network-policy/909d3401-dc2e-45e4-b74d-c7d9015a8406"}} 2025-11-20 02:29:15,877 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-20 02:29:15,877 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 206.122.205.3, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2025-11-20 02:29:15,877 - DEBUG - ping -s 56 -c 3 -W 1 206.122.205.3 2025-11-20 02:29:19,336 - DEBUG - PING 206.122.205.3 (206.122.205.3) 56(84) bytes of data. 64 bytes from 206.122.205.3: icmp_req=1 ttl=63 time=2.71 ms --- 206.122.205.3 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2001ms rtt min/avg/max/mdev = 2.714/2.714/2.714/0.000 ms 2025-11-20 02:29:19,336 - WARNING - Ping to IP 206.122.205.3 from VM ctest-TestBasicPolicy-70721004-04062667 failed 2025-11-20 02:29:19,336 - INFO - Deleting VM ctest-TestBasicPolicy-70721004-14738278 2025-11-20 02:29:19,407 - INFO - Deleting VM ctest-TestBasicPolicy-70721004-04062667 2025-11-20 02:29:19,813 - INFO - Deleted policy ctest-policy-allow-all-18601379 2025-11-20 02:29:19,813 - INFO - Deleting VN ctest-vn-47946961 2025-11-20 02:29:19,858 - DEBUG - VN 84b63df1-1a3a-45a2-9e60-e17aa2b568e7 still in use: Unable to complete operation on network 84b63df1-1a3a-45a2-9e60-e17aa2b568e7. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ad255fc8-25e2-4131-b597-d9cbbcde93c9'] 2025-11-20 02:29:19,858 - WARNING - Deleting VN ctest-vn-47946961 failed..Will retry 2025-11-20 02:29:22,028 - DEBUG - Response for deleting network () 2025-11-20 02:29:22,028 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/07016f09-de0b-4fc6-929b-75a5060babe2 2025-11-20 02:29:22,039 - DEBUG - Response Code: 404 2025-11-20 02:29:22,039 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-11-20 02:29:22,053 - DEBUG - Requesting: http://10.0.0.23:8082/domain/785d7fdc-4b61-45a1-9add-76a6d523389b 2025-11-20 02:29:22,108 - DEBUG - Requesting: http://10.0.0.23:8082/project/7c0d3ebd-71c0-4281-9b65-3c4ca2c16d8c 2025-11-20 02:29:22,209 - INFO - Validated that VN ctest-vn-47946961 is not found in API Server 2025-11-20 02:29:22,223 - DEBUG - VN ctest-vn-47946961 is not present in Agent 10.0.0.131 2025-11-20 02:29:22,233 - DEBUG - VN ctest-vn-47946961 is not present in Agent 10.0.0.48 2025-11-20 02:29:22,233 - INFO - Validated that VN ctest-vn-47946961 is not in any agent 2025-11-20 02:29:22,263 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-47946961 info 2025-11-20 02:29:22,263 - INFO - Deleting VN ctest-vn-76663089 2025-11-20 02:29:22,418 - DEBUG - Response for deleting network () 2025-11-20 02:29:22,418 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/de494b5c-9aa0-46c6-8b96-b29e99aa2ebf 2025-11-20 02:29:22,425 - DEBUG - Response Code: 404 2025-11-20 02:29:22,425 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-11-20 02:29:22,432 - DEBUG - Requesting: http://10.0.0.23:8082/domain/785d7fdc-4b61-45a1-9add-76a6d523389b 2025-11-20 02:29:22,454 - DEBUG - Requesting: http://10.0.0.23:8082/project/7c0d3ebd-71c0-4281-9b65-3c4ca2c16d8c 2025-11-20 02:29:22,547 - INFO - Validated that VN ctest-vn-76663089 is not found in API Server 2025-11-20 02:29:22,559 - DEBUG - VN ctest-vn-76663089 is not present in Agent 10.0.0.131 2025-11-20 02:29:22,569 - DEBUG - VN ctest-vn-76663089 is not present in Agent 10.0.0.48 2025-11-20 02:29:22,569 - INFO - Validated that VN ctest-vn-76663089 is not in any agent 2025-11-20 02:29:22,599 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-76663089 info 2025-11-20 02:29:23,857 - DEBUG - No XMPP flaps were noticed during the test 2025-11-20 02:29:23,857 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:39] 2025-11-20 02:29:23,857 - INFO - -------------------------------------------------------------------------------- 2025-11-20 02:29:24,607 - INFO - Deleted project: ctest-TestBasicPolicy-70721004, ID : 7c0d3ebd-71c0-4281-9b65-3c4ca2c16d8c