2025-09-08 02:47:56,874 - INFO - Domain Default found not creating 2025-09-08 02:47:57,043 - INFO - Project ctest-TestBasicPolicy-40308735 not found, creating it 2025-09-08 02:47:57,671 - INFO - Created Project:ctest-TestBasicPolicy-40308735, ID : d76ccf88-558d-4654-ae8b-d3631f8ff546 2025-09-08 02:47:59,814 - INFO - ================================================================================ 2025-09-08 02:47:59,814 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-09-08 02:47:59,814 - 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-09-08 02:48:01,210 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.14': '0', '10.20.0.129': '0'}, '10.0.0.23': {'10.20.0.25': '0', '10.20.0.129': '0'}} with 2025-09-08 02:48:01,210 - INFO - Initial checks done. Running the testcase now 2025-09-08 02:48:01,210 - INFO - 2025-09-08 02:48:02,050 - DEBUG - Response for create_network : {'network': {'id': 'be132cef-cb7a-4bd7-91b7-f35735ceb028', 'name': 'ctest-vn-20676402', 'tenant_id': 'd76ccf88558d4654ae8bd3631f8ff546', 'project_id': 'd76ccf88558d4654ae8bd3631f8ff546', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40308735', 'ctest-vn-20676402'], 'port_security_enabled': True, 'description': ''}} 2025-09-08 02:48:02,379 - DEBUG - Response for create_subnet : {'subnet': {'id': '6fa94151-6eaa-4ff6-84d1-d884b06cb2e8', 'name': '', 'tenant_id': 'd76ccf88558d4654ae8bd3631f8ff546', 'network_id': 'be132cef-cb7a-4bd7-91b7-f35735ceb028', 'ip_version': 4, 'cidr': '14.204.99.64/26', 'allocation_pools': [{'start': '14.204.99.66', 'end': '14.204.99.126'}], 'gateway_ip': '14.204.99.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.204.99.66', 'tags': [], 'project_id': 'd76ccf88558d4654ae8bd3631f8ff546'}} 2025-09-08 02:48:02,404 - INFO - Created VN ctest-vn-20676402 2025-09-08 02:48:02,418 - DEBUG - VN ctest-vn-20676402 UUID is be132cef-cb7a-4bd7-91b7-f35735ceb028 2025-09-08 02:48:02,778 - DEBUG - Response for create_network : {'network': {'id': 'f09a1a7c-7221-47eb-94a0-11ccf5d111d6', 'name': 'ctest-vn-72029353', 'tenant_id': 'd76ccf88558d4654ae8bd3631f8ff546', 'project_id': 'd76ccf88558d4654ae8bd3631f8ff546', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40308735', 'ctest-vn-72029353'], 'port_security_enabled': True, 'description': ''}} 2025-09-08 02:48:03,092 - DEBUG - Response for create_subnet : {'subnet': {'id': '0fba39b2-e870-4cde-bcf8-436b2eb8deba', 'name': '', 'tenant_id': 'd76ccf88558d4654ae8bd3631f8ff546', 'network_id': 'f09a1a7c-7221-47eb-94a0-11ccf5d111d6', 'ip_version': 4, 'cidr': '167.62.98.64/26', 'allocation_pools': [{'start': '167.62.98.66', 'end': '167.62.98.126'}], 'gateway_ip': '167.62.98.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.62.98.66', 'tags': [], 'project_id': 'd76ccf88558d4654ae8bd3631f8ff546'}} 2025-09-08 02:48:03,147 - INFO - Created VN ctest-vn-72029353 2025-09-08 02:48:03,195 - DEBUG - VN ctest-vn-72029353 UUID is f09a1a7c-7221-47eb-94a0-11ccf5d111d6 2025-09-08 02:48:03,323 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40308735:ctest-vn-20676402, 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-40308735:ctest-vn-72029353, 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-09-08 02:48:03,650 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'be132cef-cb7a-4bd7-91b7-f35735ceb028', 'name': 'ctest-vn-20676402', 'tenant_id': 'd76ccf88558d4654ae8bd3631f8ff546', 'project_id': 'd76ccf88558d4654ae8bd3631f8ff546', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6fa94151-6eaa-4ff6-84d1-d884b06cb2e8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40308735', 'ctest-vn-20676402'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40308735', 'ctest-policy-allow-all-06843853']], 'subnet_ipam': [{'subnet_cidr': '14.204.99.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-08 02:48:03,911 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f09a1a7c-7221-47eb-94a0-11ccf5d111d6', 'name': 'ctest-vn-72029353', 'tenant_id': 'd76ccf88558d4654ae8bd3631f8ff546', 'project_id': 'd76ccf88558d4654ae8bd3631f8ff546', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0fba39b2-e870-4cde-bcf8-436b2eb8deba'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40308735', 'ctest-vn-72029353'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40308735', 'ctest-policy-allow-all-06843853']], 'subnet_ipam': [{'subnet_cidr': '167.62.98.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-08 02:48:04,029 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-09-08 02:48:04,397 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-09-08 02:48:04,429 - DEBUG - Requesting: http://10.0.0.41:8082/domain/729830a9-0e71-496c-9bfd-570f28a4effe 2025-09-08 02:48:04,447 - DEBUG - Requesting: http://10.0.0.41:8082/project/d76ccf88-558d-4654-ae8b-d3631f8ff546 2025-09-08 02:48:04,542 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/be132cef-cb7a-4bd7-91b7-f35735ceb028 2025-09-08 02:48:04,558 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/be132cef-cb7a-4bd7-91b7-f35735ceb028 2025-09-08 02:48:04,567 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/26f5b331-4636-4950-9205-0dc210270c39 2025-09-08 02:48:04,575 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/26f5b331-4636-4950-9205-0dc210270c39 2025-09-08 02:48:04,583 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/cc0ebeeb-4a05-403d-ac2f-c9dac1a3b820 2025-09-08 02:48:04,591 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-08 02:48:04,591 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/be132cef-cb7a-4bd7-91b7-f35735ceb028 2025-09-08 02:48:04,602 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/26f5b331-4636-4950-9205-0dc210270c39 2025-09-08 02:48:04,621 - INFO - Verified VN network id 14 for VN be132cef-cb7a-4bd7-91b7-f35735ceb028 2025-09-08 02:48:04,621 - INFO - Verifications in API Server for VN ctest-vn-20676402 passed 2025-09-08 02:48:04,621 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/be132cef-cb7a-4bd7-91b7-f35735ceb028 2025-09-08 02:48:04,631 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/26f5b331-4636-4950-9205-0dc210270c39 2025-09-08 02:48:04,640 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/26f5b331-4636-4950-9205-0dc210270c39 2025-09-08 02:48:04,648 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/cc0ebeeb-4a05-403d-ac2f-c9dac1a3b820 2025-09-08 02:48:04,663 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40308735:ctest-vn-20676402', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40308735', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13696340300186405847', 'uuid-lslong': '10500128612128043048'}, 'enable': 'true', 'created': '2025-09-08T02:48:01', 'last-modified': '2025-09-08T02:48:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.048941'} 2025-09-08 02:48:04,669 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-08 02:48:04,675 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40308735:ctest-vn-20676402', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40308735', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13696340300186405847', 'uuid-lslong': '10500128612128043048'}, 'enable': 'true', 'created': '2025-09-08T02:48:01', 'last-modified': '2025-09-08T02:48:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.060785'} 2025-09-08 02:48:04,682 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-08 02:48:04,688 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40308735:ctest-vn-20676402', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40308735', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13696340300186405847', 'uuid-lslong': '10500128612128043048'}, 'enable': 'true', 'created': '2025-09-08T02:48:01', 'last-modified': '2025-09-08T02:48:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.070771'} 2025-09-08 02:48:04,695 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-08 02:48:04,695 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20676402 passed 2025-09-08 02:48:04,695 - DEBUG - ====Verifying policy data for ctest-vn-20676402 in API_Server ====== 2025-09-08 02:48:04,695 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-09-08 02:48:04,703 - DEBUG - Requesting: http://10.0.0.41:8082/domain/729830a9-0e71-496c-9bfd-570f28a4effe 2025-09-08 02:48:04,718 - DEBUG - Requesting: http://10.0.0.41:8082/project/d76ccf88-558d-4654-ae8b-d3631f8ff546 2025-09-08 02:48:04,824 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/be132cef-cb7a-4bd7-91b7-f35735ceb028 2025-09-08 02:48:04,837 - DEBUG - ==>Verifying data for policy with id: 453af118-5f71-409d-8f2d-8bceea804ab6, fqn: ['default-domain', 'ctest-TestBasicPolicy-40308735', 'ctest-policy-allow-all-06843853'] 2025-09-08 02:48:04,837 - INFO - VN ctest-vn-20676402 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-08 02:48:04,838 - DEBUG - Verifying the vn in opserver 2025-09-08 02:48:04,838 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40308735:ctest-vn-20676402 virtual network link through opserver 10.0.0.41 2025-09-08 02:48:04,838 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-09-08 02:48:05,181 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-09-08 02:48:05,237 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40308735:ctest-vn-20676402', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40308735:ctest-vn-20676402?flat'} 2025-09-08 02:48:05,237 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40308735:ctest-vn-20676402 virtual network link through opserver 10.0.0.27 2025-09-08 02:48:05,237 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-09-08 02:48:05,580 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-09-08 02:48:05,637 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40308735:ctest-vn-20676402', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40308735:ctest-vn-20676402?flat'} 2025-09-08 02:48:05,637 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40308735:ctest-vn-20676402 virtual network link through opserver 10.0.0.38 2025-09-08 02:48:05,637 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-08 02:48:05,977 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-08 02:48:06,039 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40308735:ctest-vn-20676402', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40308735:ctest-vn-20676402?flat'} 2025-09-08 02:48:06,039 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40308735:ctest-vn-20676402 is found in opserver 2025-09-08 02:48:06,082 - DEBUG - Do not have enough data to verify VN in agent 2025-09-08 02:48:06,105 - DEBUG - VRF ids for VN ctest-vn-20676402: {} 2025-09-08 02:48:06,105 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-09-08 02:48:06,114 - DEBUG - Requesting: http://10.0.0.41:8082/domain/729830a9-0e71-496c-9bfd-570f28a4effe 2025-09-08 02:48:06,128 - DEBUG - Requesting: http://10.0.0.41:8082/project/d76ccf88-558d-4654-ae8b-d3631f8ff546 2025-09-08 02:48:06,224 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f09a1a7c-7221-47eb-94a0-11ccf5d111d6 2025-09-08 02:48:06,239 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f09a1a7c-7221-47eb-94a0-11ccf5d111d6 2025-09-08 02:48:06,249 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/59f60662-a3e6-4f74-ad32-9d823b5420bd 2025-09-08 02:48:06,256 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/59f60662-a3e6-4f74-ad32-9d823b5420bd 2025-09-08 02:48:06,265 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/5244c69b-29a4-4987-a57e-4931217cf634 2025-09-08 02:48:06,271 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-08 02:48:06,271 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f09a1a7c-7221-47eb-94a0-11ccf5d111d6 2025-09-08 02:48:06,280 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/59f60662-a3e6-4f74-ad32-9d823b5420bd 2025-09-08 02:48:06,295 - INFO - Verified VN network id 15 for VN f09a1a7c-7221-47eb-94a0-11ccf5d111d6 2025-09-08 02:48:06,295 - INFO - Verifications in API Server for VN ctest-vn-72029353 passed 2025-09-08 02:48:06,296 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f09a1a7c-7221-47eb-94a0-11ccf5d111d6 2025-09-08 02:48:06,306 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/59f60662-a3e6-4f74-ad32-9d823b5420bd 2025-09-08 02:48:06,316 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/59f60662-a3e6-4f74-ad32-9d823b5420bd 2025-09-08 02:48:06,323 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/5244c69b-29a4-4987-a57e-4931217cf634 2025-09-08 02:48:06,338 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40308735:ctest-vn-72029353', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40308735', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17337198837309196267', 'uuid-lslong': '10709579485882159574'}, 'enable': 'true', 'created': '2025-09-08T02:48:02', 'last-modified': '2025-09-08T02:48:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.516303'} 2025-09-08 02:48:06,347 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-08 02:48:06,352 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40308735:ctest-vn-72029353', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40308735', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17337198837309196267', 'uuid-lslong': '10709579485882159574'}, 'enable': 'true', 'created': '2025-09-08T02:48:02', 'last-modified': '2025-09-08T02:48:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.531273'} 2025-09-08 02:48:06,358 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-08 02:48:06,364 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40308735:ctest-vn-72029353', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40308735', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17337198837309196267', 'uuid-lslong': '10709579485882159574'}, 'enable': 'true', 'created': '2025-09-08T02:48:02', 'last-modified': '2025-09-08T02:48:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.538602'} 2025-09-08 02:48:06,370 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-08 02:48:06,370 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72029353 passed 2025-09-08 02:48:06,371 - DEBUG - ====Verifying policy data for ctest-vn-72029353 in API_Server ====== 2025-09-08 02:48:06,371 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-09-08 02:48:06,378 - DEBUG - Requesting: http://10.0.0.41:8082/domain/729830a9-0e71-496c-9bfd-570f28a4effe 2025-09-08 02:48:06,390 - DEBUG - Requesting: http://10.0.0.41:8082/project/d76ccf88-558d-4654-ae8b-d3631f8ff546 2025-09-08 02:48:06,487 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f09a1a7c-7221-47eb-94a0-11ccf5d111d6 2025-09-08 02:48:06,499 - DEBUG - ==>Verifying data for policy with id: 453af118-5f71-409d-8f2d-8bceea804ab6, fqn: ['default-domain', 'ctest-TestBasicPolicy-40308735', 'ctest-policy-allow-all-06843853'] 2025-09-08 02:48:06,499 - INFO - VN ctest-vn-72029353 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-08 02:48:06,499 - DEBUG - Verifying the vn in opserver 2025-09-08 02:48:06,499 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40308735:ctest-vn-72029353 virtual network link through opserver 10.0.0.41 2025-09-08 02:48:06,499 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-09-08 02:48:06,571 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40308735:ctest-vn-72029353', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40308735:ctest-vn-72029353?flat'} 2025-09-08 02:48:06,571 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40308735:ctest-vn-72029353 virtual network link through opserver 10.0.0.27 2025-09-08 02:48:06,571 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-09-08 02:48:06,629 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40308735:ctest-vn-72029353', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40308735:ctest-vn-72029353?flat'} 2025-09-08 02:48:06,629 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40308735:ctest-vn-72029353 virtual network link through opserver 10.0.0.38 2025-09-08 02:48:06,629 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-08 02:48:06,696 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40308735:ctest-vn-72029353', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40308735:ctest-vn-72029353?flat'} 2025-09-08 02:48:06,696 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40308735:ctest-vn-72029353 is found in opserver 2025-09-08 02:48:06,741 - DEBUG - Do not have enough data to verify VN in agent 2025-09-08 02:48:06,762 - DEBUG - VRF ids for VN ctest-vn-72029353: {} 2025-09-08 02:48:06,829 - DEBUG - Services list from nova: [, , , ] 2025-09-08 02:48:08,049 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4041-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4041-1) 2025-09-08 02:48:09,496 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4041-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4041-2) 2025-09-08 02:48:09,497 - INFO - Waiting for VM ctest-TestBasicPolicy-40308735-12841054 to be up.. 2025-09-08 02:48:09,600 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-08 02:48:14,692 - DEBUG - VM is in ACTIVE state now 2025-09-08 02:48:14,692 - INFO - VM name : ctest-TestBasicPolicy-40308735-12841054 2025-09-08 02:48:14,784 - DEBUG - VM ctest-TestBasicPolicy-40308735-12841054 ID is 37a61e7d-929e-4a9d-bb97-84e5a9b5cb72 2025-09-08 02:48:14,812 - DEBUG - VM ctest-TestBasicPolicy-40308735-12841054 launched on Node an-jenkins-deploy-platform-ansible-os-4041-1 2025-09-08 02:48:14,907 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/37a61e7d-929e-4a9d-bb97-84e5a9b5cb72 2025-09-08 02:48:15,245 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/37a61e7d-929e-4a9d-bb97-84e5a9b5cb72 2025-09-08 02:48:15,278 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/5a4dc8fb-c50a-4749-84e1-e9cbe3125c13 2025-09-08 02:48:18,469 - 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-09-08 02:48:18,470 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40308735-12841054 failed! 2025-09-08 02:48:18,488 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-40308735:ctest-vn-20676402 is 14.204.99.65 and allocation pool is NOT set 2025-09-08 02:48:22,596 - 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-09-08 02:48:22,596 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40308735-12841054 failed! 2025-09-08 02:48:22,611 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-40308735:ctest-vn-20676402 is 14.204.99.65 and allocation pool is NOT set 2025-09-08 02:48:26,727 - 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-09-08 02:48:26,727 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40308735-12841054 failed! 2025-09-08 02:48:26,743 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-40308735:ctest-vn-20676402 is 14.204.99.65 and allocation pool is NOT set 2025-09-08 02:48:30,819 - 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-09-08 02:48:30,820 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40308735-12841054 failed! 2025-09-08 02:48:30,838 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-40308735:ctest-vn-20676402 is 14.204.99.65 and allocation pool is NOT set 2025-09-08 02:48:34,918 - 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 1016ms') 2025-09-08 02:48:34,919 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40308735-12841054 failed! 2025-09-08 02:48:34,936 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-40308735:ctest-vn-20676402 is 14.204.99.65 and allocation pool is NOT set 2025-09-08 02:48:39,051 - 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-09-08 02:48:39,051 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40308735-12841054 failed! 2025-09-08 02:48:39,070 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-40308735:ctest-vn-20676402 is 14.204.99.65 and allocation pool is NOT set 2025-09-08 02:48:43,144 - 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 1005ms') 2025-09-08 02:48:43,144 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40308735-12841054 failed! 2025-09-08 02:48:43,159 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-40308735:ctest-vn-20676402 is 14.204.99.65 and allocation pool is NOT set 2025-09-08 02:48:47,243 - 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-09-08 02:48:47,244 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40308735-12841054 failed! 2025-09-08 02:48:47,258 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-40308735:ctest-vn-20676402 is 14.204.99.65 and allocation pool is NOT set 2025-09-08 02:48:49,347 - 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.17 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.16 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.158/4.164/6.171/2.006 ms') 2025-09-08 02:48:49,348 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40308735-12841054 passed 2025-09-08 02:48:49,424 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-08 02:48:49,424 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-40308735-12841054, IP 14.204.99.67, Port 22 2025-09-08 02:48:49,502 - 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-09-08 02:48:49,598 - DEBUG - VM ctest-TestBasicPolicy-40308735-12841054 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-08 02:48:54,599 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-08 02:48:54,599 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-40308735-12841054, IP 14.204.99.67, Port 22 2025-09-08 02:48:54,678 - 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-09-08 02:48:54,762 - DEBUG - VM ctest-TestBasicPolicy-40308735-12841054 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-08 02:48:59,763 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-08 02:48:59,764 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-40308735-12841054, IP 14.204.99.67, Port 22 2025-09-08 02:48:59,851 - 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-09-08 02:48:59,936 - DEBUG - VM ctest-TestBasicPolicy-40308735-12841054 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-08 02:49:04,937 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-08 02:49:04,937 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-40308735-12841054, IP 14.204.99.67, Port 22 2025-09-08 02:49:05,007 - 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-09-08 02:49:05,104 - DEBUG - VM ctest-TestBasicPolicy-40308735-12841054 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-08 02:49:10,105 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-08 02:49:10,105 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-40308735-12841054, IP 14.204.99.67, Port 22 2025-09-08 02:49:10,295 - DEBUG - VM ctest-TestBasicPolicy-40308735-12841054 is ready for SSH connections 2025-09-08 02:49:10,295 - INFO - Waiting for VM ctest-TestBasicPolicy-40308735-53179332 to be up.. 2025-09-08 02:49:10,382 - DEBUG - VM is in ACTIVE state now 2025-09-08 02:49:10,382 - INFO - VM name : ctest-TestBasicPolicy-40308735-53179332 2025-09-08 02:49:10,462 - DEBUG - VM ctest-TestBasicPolicy-40308735-53179332 ID is c6c61958-f674-468f-934e-084ff567358b 2025-09-08 02:49:10,462 - DEBUG - VM ctest-TestBasicPolicy-40308735-53179332 launched on Node an-jenkins-deploy-platform-ansible-os-4041-2 2025-09-08 02:49:10,545 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/c6c61958-f674-468f-934e-084ff567358b 2025-09-08 02:49:10,559 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/6d23933c-37aa-4a1f-841d-bab25765b0dc 2025-09-08 02:49:11,781 - 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=5.39 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.91 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 = 1.912/3.649/5.387/1.737 ms') 2025-09-08 02:49:11,781 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40308735-53179332 passed 2025-09-08 02:49:11,853 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-08 02:49:11,853 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-40308735-53179332, IP 167.62.98.67, Port 22 2025-09-08 02:49:12,045 - DEBUG - VM ctest-TestBasicPolicy-40308735-53179332 is ready for SSH connections 2025-09-08 02:49:12,046 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-08 02:49:12,046 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 167.62.98.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-09-08 02:49:12,046 - DEBUG - ping -s 56 -c 3 -W 1 167.62.98.67 2025-09-08 02:50:06,469 - DEBUG - PING 167.62.98.67 (167.62.98.67) 56(84) bytes of data. 64 bytes from 167.62.98.67: icmp_req=1 ttl=63 time=11.0 ms 64 bytes from 167.62.98.67: icmp_req=2 ttl=63 time=2.32 ms 64 bytes from 167.62.98.67: icmp_req=3 ttl=63 time=1.83 ms --- 167.62.98.67 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2005ms rtt min/avg/max/mdev = 1.833/5.076/11.076/4.247 ms 2025-09-08 02:50:06,469 - INFO - Ping to IP 167.62.98.67 from VM ctest-TestBasicPolicy-40308735-12841054 passed 2025-09-08 02:50:06,723 - DEBUG - Policy Update Response {"network-policy": {"uuid": "453af118-5f71-409d-8f2d-8bceea804ab6", "href": "http://10.0.0.38:8082/network-policy/453af118-5f71-409d-8f2d-8bceea804ab6"}} 2025-09-08 02:50:06,723 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-08 02:50:06,723 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 167.62.98.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-09-08 02:50:06,723 - DEBUG - ping -s 56 -c 3 -W 1 167.62.98.67 2025-09-08 02:50:10,301 - DEBUG - PING 167.62.98.67 (167.62.98.67) 56(84) bytes of data. 64 bytes from 167.62.98.67: icmp_req=1 ttl=63 time=3.98 ms --- 167.62.98.67 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2010ms rtt min/avg/max/mdev = 3.987/3.987/3.987/0.000 ms 2025-09-08 02:50:10,302 - WARNING - Ping to IP 167.62.98.67 from VM ctest-TestBasicPolicy-40308735-12841054 failed 2025-09-08 02:50:10,302 - INFO - Deleting VM ctest-TestBasicPolicy-40308735-53179332 2025-09-08 02:50:10,393 - INFO - Deleting VM ctest-TestBasicPolicy-40308735-12841054 2025-09-08 02:50:10,904 - INFO - Deleted policy ctest-policy-allow-all-06843853 2025-09-08 02:50:10,904 - INFO - Deleting VN ctest-vn-72029353 2025-09-08 02:50:10,956 - DEBUG - VN f09a1a7c-7221-47eb-94a0-11ccf5d111d6 still in use: Unable to complete operation on network f09a1a7c-7221-47eb-94a0-11ccf5d111d6. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c79c4ffc-56c1-4122-a2a7-802e88d144a4'] 2025-09-08 02:50:10,956 - WARNING - Deleting VN ctest-vn-72029353 failed..Will retry 2025-09-08 02:50:13,117 - DEBUG - Response for deleting network () 2025-09-08 02:50:13,117 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/59f60662-a3e6-4f74-ad32-9d823b5420bd 2025-09-08 02:50:13,128 - DEBUG - Response Code: 404 2025-09-08 02:50:13,128 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-09-08 02:50:13,136 - DEBUG - Requesting: http://10.0.0.41:8082/domain/729830a9-0e71-496c-9bfd-570f28a4effe 2025-09-08 02:50:13,192 - DEBUG - Requesting: http://10.0.0.41:8082/project/d76ccf88-558d-4654-ae8b-d3631f8ff546 2025-09-08 02:50:13,290 - INFO - Validated that VN ctest-vn-72029353 is not found in API Server 2025-09-08 02:50:13,309 - DEBUG - VN ctest-vn-72029353 is not present in Agent 10.0.0.65 2025-09-08 02:50:13,332 - DEBUG - VN ctest-vn-72029353 is not present in Agent 10.0.0.23 2025-09-08 02:50:13,332 - INFO - Validated that VN ctest-vn-72029353 is not in any agent 2025-09-08 02:50:13,368 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-72029353 info 2025-09-08 02:50:13,368 - INFO - Deleting VN ctest-vn-20676402 2025-09-08 02:50:13,554 - DEBUG - Response for deleting network () 2025-09-08 02:50:13,554 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/26f5b331-4636-4950-9205-0dc210270c39 2025-09-08 02:50:13,562 - DEBUG - Response Code: 404 2025-09-08 02:50:13,562 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-09-08 02:50:13,568 - DEBUG - Requesting: http://10.0.0.41:8082/domain/729830a9-0e71-496c-9bfd-570f28a4effe 2025-09-08 02:50:13,578 - DEBUG - Requesting: http://10.0.0.41:8082/project/d76ccf88-558d-4654-ae8b-d3631f8ff546 2025-09-08 02:50:13,672 - INFO - Validated that VN ctest-vn-20676402 is not found in API Server 2025-09-08 02:50:13,691 - DEBUG - VN ctest-vn-20676402 is not present in Agent 10.0.0.65 2025-09-08 02:50:13,705 - DEBUG - VN ctest-vn-20676402 is not present in Agent 10.0.0.23 2025-09-08 02:50:13,705 - INFO - Validated that VN ctest-vn-20676402 is not in any agent 2025-09-08 02:50:13,751 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-20676402 info 2025-09-08 02:50:15,173 - DEBUG - No XMPP flaps were noticed during the test
2025-09-08 02:50:15,173 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:02:16]
2025-09-08 02:50:15,173 - INFO - -------------------------------------------------------------------------------- 2025-09-08 02:50:16,044 - INFO - Deleted project: ctest-TestBasicPolicy-40308735, ID : d76ccf88-558d-4654-ae8b-d3631f8ff546