2025-08-18 02:36:54,279 - INFO - Domain Default found not creating 2025-08-18 02:36:54,419 - INFO - Project ctest-TestBasicPolicy-63489510 not found, creating it 2025-08-18 02:36:54,907 - INFO - Created Project:ctest-TestBasicPolicy-63489510, ID : 050a5829-5337-4889-aba6-9a8bcba04e59 2025-08-18 02:36:56,410 - INFO - ================================================================================ 2025-08-18 02:36:56,410 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-08-18 02:36:56,410 - 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-08-18 02:36:57,682 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.129': '0', '10.20.0.25': '0'}, '10.0.0.41': {'10.20.0.129': '0', '10.20.0.25': '0'}} with 2025-08-18 02:36:57,682 - INFO - Initial checks done. Running the testcase now 2025-08-18 02:36:57,683 - INFO - 2025-08-18 02:36:58,310 - DEBUG - Response for create_network : {'network': {'id': '9c7f3d55-f90a-4345-87e2-71e89082a7d5', 'name': 'ctest-vn-58408979', 'tenant_id': '050a582953374889aba69a8bcba04e59', 'project_id': '050a582953374889aba69a8bcba04e59', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63489510', 'ctest-vn-58408979'], 'port_security_enabled': True, 'description': ''}} 2025-08-18 02:36:58,643 - DEBUG - Response for create_subnet : {'subnet': {'id': '791ae546-ab2e-4de5-949e-f613009699f2', 'name': '', 'tenant_id': '050a582953374889aba69a8bcba04e59', 'network_id': '9c7f3d55-f90a-4345-87e2-71e89082a7d5', 'ip_version': 4, 'cidr': '75.88.197.192/26', 'allocation_pools': [{'start': '75.88.197.194', 'end': '75.88.197.254'}], 'gateway_ip': '75.88.197.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '75.88.197.194', 'tags': [], 'project_id': '050a582953374889aba69a8bcba04e59'}} 2025-08-18 02:36:58,664 - INFO - Created VN ctest-vn-58408979 2025-08-18 02:36:58,679 - DEBUG - VN ctest-vn-58408979 UUID is 9c7f3d55-f90a-4345-87e2-71e89082a7d5 2025-08-18 02:36:59,072 - DEBUG - Response for create_network : {'network': {'id': '4be4a4fe-9f53-43a1-a1a3-17048bf5838a', 'name': 'ctest-vn-58328945', 'tenant_id': '050a582953374889aba69a8bcba04e59', 'project_id': '050a582953374889aba69a8bcba04e59', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63489510', 'ctest-vn-58328945'], 'port_security_enabled': True, 'description': ''}} 2025-08-18 02:36:59,306 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd1441cf6-e9ea-4e00-b7fe-e8dc8530e33d', 'name': '', 'tenant_id': '050a582953374889aba69a8bcba04e59', 'network_id': '4be4a4fe-9f53-43a1-a1a3-17048bf5838a', 'ip_version': 4, 'cidr': '146.57.154.64/26', 'allocation_pools': [{'start': '146.57.154.66', 'end': '146.57.154.126'}], 'gateway_ip': '146.57.154.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '146.57.154.66', 'tags': [], 'project_id': '050a582953374889aba69a8bcba04e59'}} 2025-08-18 02:36:59,330 - INFO - Created VN ctest-vn-58328945 2025-08-18 02:36:59,343 - DEBUG - VN ctest-vn-58328945 UUID is 4be4a4fe-9f53-43a1-a1a3-17048bf5838a 2025-08-18 02:36:59,465 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-63489510:ctest-vn-58408979, 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-63489510:ctest-vn-58328945, 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-08-18 02:36:59,757 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9c7f3d55-f90a-4345-87e2-71e89082a7d5', 'name': 'ctest-vn-58408979', 'tenant_id': '050a582953374889aba69a8bcba04e59', 'project_id': '050a582953374889aba69a8bcba04e59', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['791ae546-ab2e-4de5-949e-f613009699f2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63489510', 'ctest-vn-58408979'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63489510', 'ctest-policy-allow-all-69716547']], 'subnet_ipam': [{'subnet_cidr': '75.88.197.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-18 02:36:59,958 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4be4a4fe-9f53-43a1-a1a3-17048bf5838a', 'name': 'ctest-vn-58328945', 'tenant_id': '050a582953374889aba69a8bcba04e59', 'project_id': '050a582953374889aba69a8bcba04e59', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d1441cf6-e9ea-4e00-b7fe-e8dc8530e33d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63489510', 'ctest-vn-58328945'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63489510', 'ctest-policy-allow-all-69716547']], 'subnet_ipam': [{'subnet_cidr': '146.57.154.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-18 02:37:00,071 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-18 02:37:00,391 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-18 02:37:00,416 - DEBUG - Requesting: http://10.0.0.27:8082/domain/edf943fc-0622-4564-8821-4de9bd04e8a3 2025-08-18 02:37:00,431 - DEBUG - Requesting: http://10.0.0.27:8082/project/050a5829-5337-4889-aba6-9a8bcba04e59 2025-08-18 02:37:00,519 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/9c7f3d55-f90a-4345-87e2-71e89082a7d5 2025-08-18 02:37:00,530 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/9c7f3d55-f90a-4345-87e2-71e89082a7d5 2025-08-18 02:37:00,540 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/6fc6f101-a01e-44c6-a2f4-cbb37e180495 2025-08-18 02:37:00,548 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/6fc6f101-a01e-44c6-a2f4-cbb37e180495 2025-08-18 02:37:00,556 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/faec6b26-d474-497f-ae09-bbbc54278763 2025-08-18 02:37:00,563 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-18 02:37:00,564 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/9c7f3d55-f90a-4345-87e2-71e89082a7d5 2025-08-18 02:37:00,574 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/6fc6f101-a01e-44c6-a2f4-cbb37e180495 2025-08-18 02:37:00,590 - INFO - Verified VN network id 13 for VN 9c7f3d55-f90a-4345-87e2-71e89082a7d5 2025-08-18 02:37:00,590 - INFO - Verifications in API Server for VN ctest-vn-58408979 passed 2025-08-18 02:37:00,590 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/9c7f3d55-f90a-4345-87e2-71e89082a7d5 2025-08-18 02:37:00,600 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/6fc6f101-a01e-44c6-a2f4-cbb37e180495 2025-08-18 02:37:00,607 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/6fc6f101-a01e-44c6-a2f4-cbb37e180495 2025-08-18 02:37:00,614 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/faec6b26-d474-497f-ae09-bbbc54278763 2025-08-18 02:37:00,627 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63489510:ctest-vn-58408979', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63489510', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11276799431418725189', 'uuid-lslong': '9791513783527712725'}, 'enable': 'true', 'created': '2025-08-18T02:36:58', 'last-modified': '2025-08-18T02:36:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.891150'} 2025-08-18 02:37:00,633 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-18 02:37:00,641 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63489510:ctest-vn-58408979', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63489510', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11276799431418725189', 'uuid-lslong': '9791513783527712725'}, 'enable': 'true', 'created': '2025-08-18T02:36:58', 'last-modified': '2025-08-18T02:36:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.909921'} 2025-08-18 02:37:00,647 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-18 02:37:00,653 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63489510:ctest-vn-58408979', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63489510', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11276799431418725189', 'uuid-lslong': '9791513783527712725'}, 'enable': 'true', 'created': '2025-08-18T02:36:58', 'last-modified': '2025-08-18T02:36:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.926979'} 2025-08-18 02:37:00,659 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-18 02:37:00,659 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58408979 passed 2025-08-18 02:37:00,660 - DEBUG - ====Verifying policy data for ctest-vn-58408979 in API_Server ====== 2025-08-18 02:37:00,660 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-18 02:37:00,666 - DEBUG - Requesting: http://10.0.0.27:8082/domain/edf943fc-0622-4564-8821-4de9bd04e8a3 2025-08-18 02:37:00,677 - DEBUG - Requesting: http://10.0.0.27:8082/project/050a5829-5337-4889-aba6-9a8bcba04e59 2025-08-18 02:37:00,773 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/9c7f3d55-f90a-4345-87e2-71e89082a7d5 2025-08-18 02:37:00,785 - DEBUG - ==>Verifying data for policy with id: efb8700d-f8c2-4620-8661-a19db8e71e0a, fqn: ['default-domain', 'ctest-TestBasicPolicy-63489510', 'ctest-policy-allow-all-69716547'] 2025-08-18 02:37:00,785 - INFO - VN ctest-vn-58408979 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-18 02:37:00,785 - DEBUG - Verifying the vn in opserver 2025-08-18 02:37:00,785 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63489510:ctest-vn-58408979 virtual network link through opserver 10.0.0.27 2025-08-18 02:37:00,786 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-08-18 02:37:01,074 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-08-18 02:37:01,125 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63489510:ctest-vn-58408979', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63489510:ctest-vn-58408979?flat'} 2025-08-18 02:37:01,125 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63489510:ctest-vn-58408979 virtual network link through opserver 10.0.0.38 2025-08-18 02:37:01,126 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-18 02:37:01,413 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-18 02:37:01,472 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63489510:ctest-vn-58408979', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63489510:ctest-vn-58408979?flat'} 2025-08-18 02:37:01,472 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63489510:ctest-vn-58408979 virtual network link through opserver 10.0.0.19 2025-08-18 02:37:01,472 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-08-18 02:37:01,763 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-08-18 02:37:01,825 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63489510:ctest-vn-58408979', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63489510:ctest-vn-58408979?flat'} 2025-08-18 02:37:01,825 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63489510:ctest-vn-58408979 is found in opserver 2025-08-18 02:37:01,847 - DEBUG - Do not have enough data to verify VN in agent 2025-08-18 02:37:01,858 - DEBUG - VRF ids for VN ctest-vn-58408979: {} 2025-08-18 02:37:01,858 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-18 02:37:01,864 - DEBUG - Requesting: http://10.0.0.27:8082/domain/edf943fc-0622-4564-8821-4de9bd04e8a3 2025-08-18 02:37:01,875 - DEBUG - Requesting: http://10.0.0.27:8082/project/050a5829-5337-4889-aba6-9a8bcba04e59 2025-08-18 02:37:01,992 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/4be4a4fe-9f53-43a1-a1a3-17048bf5838a 2025-08-18 02:37:02,013 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/4be4a4fe-9f53-43a1-a1a3-17048bf5838a 2025-08-18 02:37:02,025 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5f561a58-a46e-43cc-9891-a096d5e84d9f 2025-08-18 02:37:02,034 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5f561a58-a46e-43cc-9891-a096d5e84d9f 2025-08-18 02:37:02,048 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/1ee6cddb-d35d-4ad3-bb77-fc03d62c5924 2025-08-18 02:37:02,058 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-18 02:37:02,059 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/4be4a4fe-9f53-43a1-a1a3-17048bf5838a 2025-08-18 02:37:02,069 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5f561a58-a46e-43cc-9891-a096d5e84d9f 2025-08-18 02:37:02,088 - INFO - Verified VN network id 14 for VN 4be4a4fe-9f53-43a1-a1a3-17048bf5838a 2025-08-18 02:37:02,088 - INFO - Verifications in API Server for VN ctest-vn-58328945 passed 2025-08-18 02:37:02,089 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/4be4a4fe-9f53-43a1-a1a3-17048bf5838a 2025-08-18 02:37:02,101 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5f561a58-a46e-43cc-9891-a096d5e84d9f 2025-08-18 02:37:02,112 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5f561a58-a46e-43cc-9891-a096d5e84d9f 2025-08-18 02:37:02,120 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/1ee6cddb-d35d-4ad3-bb77-fc03d62c5924 2025-08-18 02:37:02,134 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63489510:ctest-vn-58328945', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63489510', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5468677261036307361', 'uuid-lslong': '11647178369605665674'}, 'enable': 'true', 'created': '2025-08-18T02:36:59', 'last-modified': '2025-08-18T02:36:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.213722'} 2025-08-18 02:37:02,141 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-18 02:37:02,146 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63489510:ctest-vn-58328945', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63489510', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5468677261036307361', 'uuid-lslong': '11647178369605665674'}, 'enable': 'true', 'created': '2025-08-18T02:36:59', 'last-modified': '2025-08-18T02:36:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.226535'} 2025-08-18 02:37:02,152 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-18 02:37:02,158 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63489510:ctest-vn-58328945', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63489510', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5468677261036307361', 'uuid-lslong': '11647178369605665674'}, 'enable': 'true', 'created': '2025-08-18T02:36:59', 'last-modified': '2025-08-18T02:36:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.236626'} 2025-08-18 02:37:02,164 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-18 02:37:02,164 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58328945 passed 2025-08-18 02:37:02,164 - DEBUG - ====Verifying policy data for ctest-vn-58328945 in API_Server ====== 2025-08-18 02:37:02,164 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-18 02:37:02,170 - DEBUG - Requesting: http://10.0.0.27:8082/domain/edf943fc-0622-4564-8821-4de9bd04e8a3 2025-08-18 02:37:02,181 - DEBUG - Requesting: http://10.0.0.27:8082/project/050a5829-5337-4889-aba6-9a8bcba04e59 2025-08-18 02:37:02,281 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/4be4a4fe-9f53-43a1-a1a3-17048bf5838a 2025-08-18 02:37:02,293 - DEBUG - ==>Verifying data for policy with id: efb8700d-f8c2-4620-8661-a19db8e71e0a, fqn: ['default-domain', 'ctest-TestBasicPolicy-63489510', 'ctest-policy-allow-all-69716547'] 2025-08-18 02:37:02,293 - INFO - VN ctest-vn-58328945 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-18 02:37:02,293 - DEBUG - Verifying the vn in opserver 2025-08-18 02:37:02,293 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63489510:ctest-vn-58328945 virtual network link through opserver 10.0.0.27 2025-08-18 02:37:02,293 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-08-18 02:37:02,347 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63489510:ctest-vn-58328945', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63489510:ctest-vn-58328945?flat'} 2025-08-18 02:37:02,347 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63489510:ctest-vn-58328945 virtual network link through opserver 10.0.0.38 2025-08-18 02:37:02,347 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-18 02:37:02,405 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63489510:ctest-vn-58328945', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63489510:ctest-vn-58328945?flat'} 2025-08-18 02:37:02,406 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63489510:ctest-vn-58328945 virtual network link through opserver 10.0.0.19 2025-08-18 02:37:02,406 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-08-18 02:37:02,459 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63489510:ctest-vn-58328945', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63489510:ctest-vn-58328945?flat'} 2025-08-18 02:37:02,459 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63489510:ctest-vn-58328945 is found in opserver 2025-08-18 02:37:02,492 - DEBUG - Do not have enough data to verify VN in agent 2025-08-18 02:37:02,503 - DEBUG - VRF ids for VN ctest-vn-58328945: {} 2025-08-18 02:37:02,557 - DEBUG - Services list from nova: [, , , ] 2025-08-18 02:37:03,690 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3870-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3870-1) 2025-08-18 02:37:05,024 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3870-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3870-2) 2025-08-18 02:37:05,025 - INFO - Waiting for VM ctest-TestBasicPolicy-63489510-10269145 to be up.. 2025-08-18 02:37:05,114 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-18 02:37:10,185 - DEBUG - VM is in ACTIVE state now 2025-08-18 02:37:10,185 - INFO - VM name : ctest-TestBasicPolicy-63489510-10269145 2025-08-18 02:37:10,248 - DEBUG - VM ctest-TestBasicPolicy-63489510-10269145 ID is 20638f19-8c49-4837-9b88-64387515d78a 2025-08-18 02:37:10,269 - DEBUG - VM ctest-TestBasicPolicy-63489510-10269145 launched on Node an-jenkins-deploy-platform-ansible-os-3870-1 2025-08-18 02:37:10,331 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine/20638f19-8c49-4837-9b88-64387515d78a 2025-08-18 02:37:10,619 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine/20638f19-8c49-4837-9b88-64387515d78a 2025-08-18 02:37:10,649 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine-interface/004e9d3e-0cc8-4cfa-8af1-60e7d20ba6a2 2025-08-18 02:37:13,807 - 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 1011ms') 2025-08-18 02:37:13,808 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-63489510-10269145 failed! 2025-08-18 02:37:13,822 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-63489510:ctest-vn-58408979 is 75.88.197.193 and allocation pool is NOT set 2025-08-18 02:37:17,901 - 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-08-18 02:37:17,902 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-63489510-10269145 failed! 2025-08-18 02:37:17,915 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-63489510:ctest-vn-58408979 is 75.88.197.193 and allocation pool is NOT set 2025-08-18 02:37:21,999 - 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 1024ms') 2025-08-18 02:37:22,000 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-63489510-10269145 failed! 2025-08-18 02:37:22,016 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-63489510:ctest-vn-58408979 is 75.88.197.193 and allocation pool is NOT set 2025-08-18 02:37:26,098 - 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-08-18 02:37:26,099 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-63489510-10269145 failed! 2025-08-18 02:37:26,114 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-63489510:ctest-vn-58408979 is 75.88.197.193 and allocation pool is NOT set 2025-08-18 02:37:30,193 - 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 1020ms') 2025-08-18 02:37:30,194 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-63489510-10269145 failed! 2025-08-18 02:37:30,207 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-63489510:ctest-vn-58408979 is 75.88.197.193 and allocation pool is NOT set 2025-08-18 02:37:34,285 - 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 1018ms') 2025-08-18 02:37:34,286 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-63489510-10269145 failed! 2025-08-18 02:37:34,301 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-63489510:ctest-vn-58408979 is 75.88.197.193 and allocation pool is NOT set 2025-08-18 02:37:38,385 - 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-08-18 02:37:38,386 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-63489510-10269145 failed! 2025-08-18 02:37:38,400 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-63489510:ctest-vn-58408979 is 75.88.197.193 and allocation pool is NOT set 2025-08-18 02:37:40,459 - 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.39 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.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 = 1.067/3.727/6.387/2.660 ms') 2025-08-18 02:37:40,459 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-63489510-10269145 passed 2025-08-18 02:37:40,535 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-18 02:37:40,535 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-63489510-10269145, IP 75.88.197.195, Port 22 2025-08-18 02:37:40,592 - 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-08-18 02:37:40,670 - DEBUG - VM ctest-TestBasicPolicy-63489510-10269145 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-18 02:37:45,671 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-18 02:37:45,671 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-63489510-10269145, IP 75.88.197.195, Port 22 2025-08-18 02:37:45,739 - 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-08-18 02:37:45,817 - DEBUG - VM ctest-TestBasicPolicy-63489510-10269145 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-18 02:37:50,818 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-18 02:37:50,818 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-63489510-10269145, IP 75.88.197.195, Port 22 2025-08-18 02:37:50,887 - 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-08-18 02:37:50,960 - DEBUG - VM ctest-TestBasicPolicy-63489510-10269145 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-18 02:37:55,961 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-18 02:37:55,961 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-63489510-10269145, IP 75.88.197.195, Port 22 2025-08-18 02:37:56,018 - 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-08-18 02:37:56,108 - DEBUG - VM ctest-TestBasicPolicy-63489510-10269145 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-18 02:38:01,109 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-18 02:38:01,109 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-63489510-10269145, IP 75.88.197.195, Port 22 2025-08-18 02:38:01,276 - DEBUG - VM ctest-TestBasicPolicy-63489510-10269145 is ready for SSH connections 2025-08-18 02:38:01,276 - INFO - Waiting for VM ctest-TestBasicPolicy-63489510-52022658 to be up.. 2025-08-18 02:38:01,350 - DEBUG - VM is in ACTIVE state now 2025-08-18 02:38:01,350 - INFO - VM name : ctest-TestBasicPolicy-63489510-52022658 2025-08-18 02:38:01,430 - DEBUG - VM ctest-TestBasicPolicy-63489510-52022658 ID is 2085abe0-24e5-4e20-abfa-821c51c23aea 2025-08-18 02:38:01,430 - DEBUG - VM ctest-TestBasicPolicy-63489510-52022658 launched on Node an-jenkins-deploy-platform-ansible-os-3870-2 2025-08-18 02:38:01,511 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine/2085abe0-24e5-4e20-abfa-821c51c23aea 2025-08-18 02:38:01,522 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine-interface/3e026e22-6ecc-4abb-8fe1-73ef95a4998e 2025-08-18 02:38:02,683 - 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=3.13 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.819 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 = 0.819/1.972/3.125/1.153 ms') 2025-08-18 02:38:02,683 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-63489510-52022658 passed 2025-08-18 02:38:02,764 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-18 02:38:02,764 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-63489510-52022658, IP 146.57.154.67, Port 22 2025-08-18 02:38:02,931 - DEBUG - VM ctest-TestBasicPolicy-63489510-52022658 is ready for SSH connections 2025-08-18 02:38:02,931 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-18 02:38:02,931 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 146.57.154.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.241, gateway password: c0ntrail123 2025-08-18 02:38:02,932 - DEBUG - ping -s 56 -c 3 -W 1 146.57.154.67 2025-08-18 02:38:53,220 - DEBUG - PING 146.57.154.67 (146.57.154.67) 56(84) bytes of data. 64 bytes from 146.57.154.67: icmp_req=1 ttl=63 time=9.83 ms 64 bytes from 146.57.154.67: icmp_req=2 ttl=63 time=1.72 ms 64 bytes from 146.57.154.67: icmp_req=3 ttl=63 time=1.41 ms --- 146.57.154.67 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 1.412/4.324/9.839/3.901 ms 2025-08-18 02:38:53,220 - INFO - Ping to IP 146.57.154.67 from VM ctest-TestBasicPolicy-63489510-10269145 passed 2025-08-18 02:38:53,422 - DEBUG - Policy Update Response {"network-policy": {"uuid": "efb8700d-f8c2-4620-8661-a19db8e71e0a", "href": "http://10.0.0.19:8082/network-policy/efb8700d-f8c2-4620-8661-a19db8e71e0a"}} 2025-08-18 02:38:53,422 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-18 02:38:53,422 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 146.57.154.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.241, gateway password: c0ntrail123 2025-08-18 02:38:53,422 - DEBUG - ping -s 56 -c 3 -W 1 146.57.154.67 2025-08-18 02:38:56,864 - DEBUG - PING 146.57.154.67 (146.57.154.67) 56(84) bytes of data. 64 bytes from 146.57.154.67: icmp_req=1 ttl=63 time=3.64 ms --- 146.57.154.67 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2009ms rtt min/avg/max/mdev = 3.649/3.649/3.649/0.000 ms 2025-08-18 02:38:56,864 - WARNING - Ping to IP 146.57.154.67 from VM ctest-TestBasicPolicy-63489510-10269145 failed 2025-08-18 02:38:56,864 - INFO - Deleting VM ctest-TestBasicPolicy-63489510-52022658 2025-08-18 02:38:56,921 - INFO - Deleting VM ctest-TestBasicPolicy-63489510-10269145 2025-08-18 02:38:57,312 - INFO - Deleted policy ctest-policy-allow-all-69716547 2025-08-18 02:38:57,312 - INFO - Deleting VN ctest-vn-58328945 2025-08-18 02:38:57,366 - DEBUG - VN 4be4a4fe-9f53-43a1-a1a3-17048bf5838a still in use: Unable to complete operation on network 4be4a4fe-9f53-43a1-a1a3-17048bf5838a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-8d04ff5a-8b0b-402a-862e-322539a03a8e'] 2025-08-18 02:38:57,366 - WARNING - Deleting VN ctest-vn-58328945 failed..Will retry 2025-08-18 02:38:59,512 - DEBUG - Response for deleting network () 2025-08-18 02:38:59,512 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5f561a58-a46e-43cc-9891-a096d5e84d9f 2025-08-18 02:38:59,521 - DEBUG - Response Code: 404 2025-08-18 02:38:59,521 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-18 02:38:59,530 - DEBUG - Requesting: http://10.0.0.27:8082/domain/edf943fc-0622-4564-8821-4de9bd04e8a3 2025-08-18 02:38:59,548 - DEBUG - Requesting: http://10.0.0.27:8082/project/050a5829-5337-4889-aba6-9a8bcba04e59 2025-08-18 02:38:59,643 - INFO - Validated that VN ctest-vn-58328945 is not found in API Server 2025-08-18 02:38:59,659 - DEBUG - VN ctest-vn-58328945 is not present in Agent 10.0.0.241 2025-08-18 02:38:59,670 - DEBUG - VN ctest-vn-58328945 is not present in Agent 10.0.0.41 2025-08-18 02:38:59,670 - INFO - Validated that VN ctest-vn-58328945 is not in any agent 2025-08-18 02:38:59,701 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-58328945 info 2025-08-18 02:38:59,701 - INFO - Deleting VN ctest-vn-58408979 2025-08-18 02:38:59,826 - DEBUG - Response for deleting network () 2025-08-18 02:38:59,827 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/6fc6f101-a01e-44c6-a2f4-cbb37e180495 2025-08-18 02:38:59,832 - DEBUG - Response Code: 404 2025-08-18 02:38:59,832 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-18 02:38:59,844 - DEBUG - Requesting: http://10.0.0.27:8082/domain/edf943fc-0622-4564-8821-4de9bd04e8a3 2025-08-18 02:38:59,856 - DEBUG - Requesting: http://10.0.0.27:8082/project/050a5829-5337-4889-aba6-9a8bcba04e59 2025-08-18 02:38:59,941 - INFO - Validated that VN ctest-vn-58408979 is not found in API Server 2025-08-18 02:38:59,953 - DEBUG - VN ctest-vn-58408979 is not present in Agent 10.0.0.241 2025-08-18 02:38:59,964 - DEBUG - VN ctest-vn-58408979 is not present in Agent 10.0.0.41 2025-08-18 02:38:59,964 - INFO - Validated that VN ctest-vn-58408979 is not in any agent 2025-08-18 02:38:59,997 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-58408979 info 2025-08-18 02:39:01,263 - DEBUG - No XMPP flaps were noticed during the test 2025-08-18 02:39:01,263 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:02:05] 2025-08-18 02:39:01,263 - INFO - -------------------------------------------------------------------------------- 2025-08-18 02:39:02,048 - INFO - Deleted project: ctest-TestBasicPolicy-63489510, ID : 050a5829-5337-4889-aba6-9a8bcba04e59