2025-02-06 02:18:50,406 - INFO - Domain Default found not creating 2025-02-06 02:18:50,575 - INFO - Project ctest-TestBasicPolicy-18227492 not found, creating it 2025-02-06 02:18:51,111 - INFO - Created Project:ctest-TestBasicPolicy-18227492, ID : 08dfd5a2-50d8-4265-a793-a3482f7148e6 2025-02-06 02:18:52,626 - INFO - ================================================================================ 2025-02-06 02:18:52,627 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-02-06 02:18:52,627 - 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-02-06 02:18:53,893 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.10': '0', '10.20.0.23': '0'}, '10.0.0.65': {'10.20.0.14': '0', '10.20.0.10': '0'}} with 2025-02-06 02:18:53,893 - INFO - Initial checks done. Running the testcase now 2025-02-06 02:18:53,893 - INFO - 2025-02-06 02:18:54,605 - DEBUG - Response for create_network : {'network': {'id': '3c8349d0-30fe-4628-9f0c-c9d5d141b0f9', 'name': 'ctest-vn-59118941', 'tenant_id': '08dfd5a250d84265a793a3482f7148e6', 'project_id': '08dfd5a250d84265a793a3482f7148e6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18227492', 'ctest-vn-59118941'], 'port_security_enabled': True, 'description': ''}} 2025-02-06 02:18:54,904 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e523266d-fa1a-4459-8429-32653b02528a', 'name': '', 'tenant_id': '08dfd5a250d84265a793a3482f7148e6', 'network_id': '3c8349d0-30fe-4628-9f0c-c9d5d141b0f9', 'ip_version': 4, 'cidr': '209.221.184.64/26', 'allocation_pools': [{'start': '209.221.184.66', 'end': '209.221.184.126'}], 'gateway_ip': '209.221.184.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.221.184.66', 'tags': [], 'project_id': '08dfd5a250d84265a793a3482f7148e6'}} 2025-02-06 02:18:54,928 - INFO - Created VN ctest-vn-59118941 2025-02-06 02:18:54,939 - DEBUG - VN ctest-vn-59118941 UUID is 3c8349d0-30fe-4628-9f0c-c9d5d141b0f9 2025-02-06 02:18:55,304 - DEBUG - Response for create_network : {'network': {'id': '34c94e71-3cd9-410b-b14c-5bf4ab683ee5', 'name': 'ctest-vn-22550599', 'tenant_id': '08dfd5a250d84265a793a3482f7148e6', 'project_id': '08dfd5a250d84265a793a3482f7148e6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18227492', 'ctest-vn-22550599'], 'port_security_enabled': True, 'description': ''}} 2025-02-06 02:18:55,544 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b967917f-ae1c-46e5-8aac-197011ecc6d0', 'name': '', 'tenant_id': '08dfd5a250d84265a793a3482f7148e6', 'network_id': '34c94e71-3cd9-410b-b14c-5bf4ab683ee5', 'ip_version': 4, 'cidr': '81.150.2.0/26', 'allocation_pools': [{'start': '81.150.2.2', 'end': '81.150.2.62'}], 'gateway_ip': '81.150.2.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.150.2.2', 'tags': [], 'project_id': '08dfd5a250d84265a793a3482f7148e6'}} 2025-02-06 02:18:55,565 - INFO - Created VN ctest-vn-22550599 2025-02-06 02:18:55,585 - DEBUG - VN ctest-vn-22550599 UUID is 34c94e71-3cd9-410b-b14c-5bf4ab683ee5 2025-02-06 02:18:55,663 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-18227492:ctest-vn-59118941, 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-18227492:ctest-vn-22550599, 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-02-06 02:18:56,063 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3c8349d0-30fe-4628-9f0c-c9d5d141b0f9', 'name': 'ctest-vn-59118941', 'tenant_id': '08dfd5a250d84265a793a3482f7148e6', 'project_id': '08dfd5a250d84265a793a3482f7148e6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e523266d-fa1a-4459-8429-32653b02528a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18227492', 'ctest-vn-59118941'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18227492', 'ctest-policy-allow-all-08696757']], 'subnet_ipam': [{'subnet_cidr': '209.221.184.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-06 02:18:56,284 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '34c94e71-3cd9-410b-b14c-5bf4ab683ee5', 'name': 'ctest-vn-22550599', 'tenant_id': '08dfd5a250d84265a793a3482f7148e6', 'project_id': '08dfd5a250d84265a793a3482f7148e6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b967917f-ae1c-46e5-8aac-197011ecc6d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18227492', 'ctest-vn-22550599'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18227492', 'ctest-policy-allow-all-08696757']], 'subnet_ipam': [{'subnet_cidr': '81.150.2.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-06 02:18:56,400 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-02-06 02:18:56,839 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-02-06 02:18:56,882 - DEBUG - Requesting: http://10.0.0.23:8082/domain/eaa2de1f-ced4-47cc-99cf-d5f3acfa72fe 2025-02-06 02:18:56,900 - DEBUG - Requesting: http://10.0.0.23:8082/project/08dfd5a2-50d8-4265-a793-a3482f7148e6 2025-02-06 02:18:56,987 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/3c8349d0-30fe-4628-9f0c-c9d5d141b0f9 2025-02-06 02:18:57,003 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/3c8349d0-30fe-4628-9f0c-c9d5d141b0f9 2025-02-06 02:18:57,018 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c32c798c-6d71-4b6a-a966-5a1b6c93e641 2025-02-06 02:18:57,028 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c32c798c-6d71-4b6a-a966-5a1b6c93e641 2025-02-06 02:18:57,037 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/f1d1f894-7d73-4136-ac4a-a80bbe625f68 2025-02-06 02:18:57,046 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-06 02:18:57,046 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/3c8349d0-30fe-4628-9f0c-c9d5d141b0f9 2025-02-06 02:18:57,057 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c32c798c-6d71-4b6a-a966-5a1b6c93e641 2025-02-06 02:18:57,075 - INFO - Verified VN network id 8 for VN 3c8349d0-30fe-4628-9f0c-c9d5d141b0f9 2025-02-06 02:18:57,075 - INFO - Verifications in API Server for VN ctest-vn-59118941 passed 2025-02-06 02:18:57,076 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/3c8349d0-30fe-4628-9f0c-c9d5d141b0f9 2025-02-06 02:18:57,093 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c32c798c-6d71-4b6a-a966-5a1b6c93e641 2025-02-06 02:18:57,106 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c32c798c-6d71-4b6a-a966-5a1b6c93e641 2025-02-06 02:18:57,114 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/f1d1f894-7d73-4136-ac4a-a80bbe625f68 2025-02-06 02:18:57,127 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18227492:ctest-vn-59118941', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18227492', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4360410022748767784', 'uuid-lslong': '11460757071927030009'}, 'enable': 'true', 'created': '2025-02-06T02:18:54', 'last-modified': '2025-02-06T02:18:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.114761'} 2025-02-06 02:18:57,134 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-06 02:18:57,140 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18227492:ctest-vn-59118941', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18227492', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4360410022748767784', 'uuid-lslong': '11460757071927030009'}, 'enable': 'true', 'created': '2025-02-06T02:18:54', 'last-modified': '2025-02-06T02:18:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.131060'} 2025-02-06 02:18:57,151 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-06 02:18:57,161 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18227492:ctest-vn-59118941', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18227492', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4360410022748767784', 'uuid-lslong': '11460757071927030009'}, 'enable': 'true', 'created': '2025-02-06T02:18:54', 'last-modified': '2025-02-06T02:18:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.150107'} 2025-02-06 02:18:57,169 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-06 02:18:57,169 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59118941 passed 2025-02-06 02:18:57,169 - DEBUG - ====Verifying policy data for ctest-vn-59118941 in API_Server ====== 2025-02-06 02:18:57,169 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-02-06 02:18:57,180 - DEBUG - Requesting: http://10.0.0.23:8082/domain/eaa2de1f-ced4-47cc-99cf-d5f3acfa72fe 2025-02-06 02:18:57,193 - DEBUG - Requesting: http://10.0.0.23:8082/project/08dfd5a2-50d8-4265-a793-a3482f7148e6 2025-02-06 02:18:57,317 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/3c8349d0-30fe-4628-9f0c-c9d5d141b0f9 2025-02-06 02:18:57,329 - DEBUG - ==>Verifying data for policy with id: 0d180068-35b5-4d5f-ae08-ffe3ac507400, fqn: ['default-domain', 'ctest-TestBasicPolicy-18227492', 'ctest-policy-allow-all-08696757'] 2025-02-06 02:18:57,329 - INFO - VN ctest-vn-59118941 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-06 02:18:57,329 - DEBUG - Verifying the vn in opserver 2025-02-06 02:18:57,329 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18227492:ctest-vn-59118941 virtual network link through opserver 10.0.0.23 2025-02-06 02:18:57,329 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-02-06 02:18:57,671 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-02-06 02:18:57,728 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18227492:ctest-vn-59118941', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18227492:ctest-vn-59118941?flat'} 2025-02-06 02:18:57,729 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18227492:ctest-vn-59118941 virtual network link through opserver 10.0.0.41 2025-02-06 02:18:57,729 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-02-06 02:18:58,080 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-02-06 02:18:58,137 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18227492:ctest-vn-59118941', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18227492:ctest-vn-59118941?flat'} 2025-02-06 02:18:58,137 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18227492:ctest-vn-59118941 virtual network link through opserver 10.0.0.38 2025-02-06 02:18:58,137 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-02-06 02:18:58,479 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-02-06 02:18:58,538 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18227492:ctest-vn-59118941', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18227492:ctest-vn-59118941?flat'} 2025-02-06 02:18:58,538 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18227492:ctest-vn-59118941 is found in opserver 2025-02-06 02:18:58,562 - DEBUG - Do not have enough data to verify VN in agent 2025-02-06 02:18:58,574 - DEBUG - VRF ids for VN ctest-vn-59118941: {} 2025-02-06 02:18:58,574 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-02-06 02:18:58,582 - DEBUG - Requesting: http://10.0.0.23:8082/domain/eaa2de1f-ced4-47cc-99cf-d5f3acfa72fe 2025-02-06 02:18:58,600 - DEBUG - Requesting: http://10.0.0.23:8082/project/08dfd5a2-50d8-4265-a793-a3482f7148e6 2025-02-06 02:18:58,698 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/34c94e71-3cd9-410b-b14c-5bf4ab683ee5 2025-02-06 02:18:58,722 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/34c94e71-3cd9-410b-b14c-5bf4ab683ee5 2025-02-06 02:18:58,732 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c429324d-3a43-4263-b923-b485dac3ea9b 2025-02-06 02:18:58,742 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c429324d-3a43-4263-b923-b485dac3ea9b 2025-02-06 02:18:58,749 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/e90c3bba-8dc6-4d5e-b17e-0190c8707f97 2025-02-06 02:18:58,756 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-02-06 02:18:58,756 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/34c94e71-3cd9-410b-b14c-5bf4ab683ee5 2025-02-06 02:18:58,766 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c429324d-3a43-4263-b923-b485dac3ea9b 2025-02-06 02:18:58,781 - INFO - Verified VN network id 9 for VN 34c94e71-3cd9-410b-b14c-5bf4ab683ee5 2025-02-06 02:18:58,781 - INFO - Verifications in API Server for VN ctest-vn-22550599 passed 2025-02-06 02:18:58,781 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/34c94e71-3cd9-410b-b14c-5bf4ab683ee5 2025-02-06 02:18:58,792 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c429324d-3a43-4263-b923-b485dac3ea9b 2025-02-06 02:18:58,804 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c429324d-3a43-4263-b923-b485dac3ea9b 2025-02-06 02:18:58,812 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/e90c3bba-8dc6-4d5e-b17e-0190c8707f97 2025-02-06 02:18:58,829 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18227492:ctest-vn-22550599', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18227492', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3803657608550236427', 'uuid-lslong': '12775687349349138149'}, 'enable': 'true', 'created': '2025-02-06T02:18:55', 'last-modified': '2025-02-06T02:18:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.578162'} 2025-02-06 02:18:58,835 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-02-06 02:18:58,841 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18227492:ctest-vn-22550599', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18227492', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3803657608550236427', 'uuid-lslong': '12775687349349138149'}, 'enable': 'true', 'created': '2025-02-06T02:18:55', 'last-modified': '2025-02-06T02:18:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.593640'} 2025-02-06 02:18:58,847 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-02-06 02:18:58,853 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18227492:ctest-vn-22550599', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18227492', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3803657608550236427', 'uuid-lslong': '12775687349349138149'}, 'enable': 'true', 'created': '2025-02-06T02:18:55', 'last-modified': '2025-02-06T02:18:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.601184'} 2025-02-06 02:18:58,859 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-02-06 02:18:58,859 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22550599 passed 2025-02-06 02:18:58,860 - DEBUG - ====Verifying policy data for ctest-vn-22550599 in API_Server ====== 2025-02-06 02:18:58,860 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-02-06 02:18:58,866 - DEBUG - Requesting: http://10.0.0.23:8082/domain/eaa2de1f-ced4-47cc-99cf-d5f3acfa72fe 2025-02-06 02:18:58,878 - DEBUG - Requesting: http://10.0.0.23:8082/project/08dfd5a2-50d8-4265-a793-a3482f7148e6 2025-02-06 02:18:59,010 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/34c94e71-3cd9-410b-b14c-5bf4ab683ee5 2025-02-06 02:18:59,021 - DEBUG - ==>Verifying data for policy with id: 0d180068-35b5-4d5f-ae08-ffe3ac507400, fqn: ['default-domain', 'ctest-TestBasicPolicy-18227492', 'ctest-policy-allow-all-08696757'] 2025-02-06 02:18:59,021 - INFO - VN ctest-vn-22550599 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-06 02:18:59,021 - DEBUG - Verifying the vn in opserver 2025-02-06 02:18:59,022 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18227492:ctest-vn-22550599 virtual network link through opserver 10.0.0.23 2025-02-06 02:18:59,022 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-02-06 02:18:59,082 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18227492:ctest-vn-22550599', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18227492:ctest-vn-22550599?flat'} 2025-02-06 02:18:59,082 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18227492:ctest-vn-22550599 virtual network link through opserver 10.0.0.41 2025-02-06 02:18:59,082 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-02-06 02:18:59,135 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18227492:ctest-vn-22550599', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18227492:ctest-vn-22550599?flat'} 2025-02-06 02:18:59,135 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18227492:ctest-vn-22550599 virtual network link through opserver 10.0.0.38 2025-02-06 02:18:59,135 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-02-06 02:18:59,185 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18227492:ctest-vn-22550599', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18227492:ctest-vn-22550599?flat'} 2025-02-06 02:18:59,185 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18227492:ctest-vn-22550599 is found in opserver 2025-02-06 02:18:59,210 - DEBUG - Do not have enough data to verify VN in agent 2025-02-06 02:18:59,222 - DEBUG - VRF ids for VN ctest-vn-22550599: {} 2025-02-06 02:18:59,275 - DEBUG - Services list from nova: [, , , ] 2025-02-06 02:19:00,416 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-2696-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-2696-2) 2025-02-06 02:19:01,876 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-2696-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-2696-1) 2025-02-06 02:19:01,877 - INFO - Waiting for VM ctest-TestBasicPolicy-18227492-28125259 to be up.. 2025-02-06 02:19:01,978 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-02-06 02:19:07,076 - DEBUG - VM is in ACTIVE state now 2025-02-06 02:19:07,076 - INFO - VM name : ctest-TestBasicPolicy-18227492-28125259 2025-02-06 02:19:07,171 - DEBUG - VM ctest-TestBasicPolicy-18227492-28125259 ID is da18b866-6155-4ecc-80c0-126ec3f5ff61 2025-02-06 02:19:07,193 - DEBUG - VM ctest-TestBasicPolicy-18227492-28125259 launched on Node an-jenkins-deploy-platform-ansible-os-2696-2 2025-02-06 02:19:07,271 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/da18b866-6155-4ecc-80c0-126ec3f5ff61 2025-02-06 02:19:07,602 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/da18b866-6155-4ecc-80c0-126ec3f5ff61 2025-02-06 02:19:07,633 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/65f80d88-c9d0-4e53-9b30-8208a976854e 2025-02-06 02:19:10,846 - 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-02-06 02:19:10,846 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-18227492-28125259 failed! 2025-02-06 02:19:10,863 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-18227492:ctest-vn-59118941 is 209.221.184.65 and allocation pool is NOT set 2025-02-06 02:19:12,924 - 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=2.64 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.341 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 = 0.341/1.491/2.642/1.150 ms') 2025-02-06 02:19:12,924 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-18227492-28125259 passed 2025-02-06 02:19:13,042 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-06 02:19:13,042 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-18227492-28125259, IP 209.221.184.67, Port 22 2025-02-06 02:19:13,195 - DEBUG - VM ctest-TestBasicPolicy-18227492-28125259 is ready for SSH connections 2025-02-06 02:19:13,195 - INFO - Waiting for VM ctest-TestBasicPolicy-18227492-56498395 to be up.. 2025-02-06 02:19:13,281 - DEBUG - VM is in ACTIVE state now 2025-02-06 02:19:13,281 - INFO - VM name : ctest-TestBasicPolicy-18227492-56498395 2025-02-06 02:19:13,360 - DEBUG - VM ctest-TestBasicPolicy-18227492-56498395 ID is 6392343b-9d5e-46a9-953e-8cfed4a6ccee 2025-02-06 02:19:13,360 - DEBUG - VM ctest-TestBasicPolicy-18227492-56498395 launched on Node an-jenkins-deploy-platform-ansible-os-2696-1 2025-02-06 02:19:13,433 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/6392343b-9d5e-46a9-953e-8cfed4a6ccee 2025-02-06 02:19:13,442 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/de194d35-bd47-4027-ad5b-10b105953d7c 2025-02-06 02:19:14,641 - 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.57 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.392 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.392/1.980/3.569/1.588 ms') 2025-02-06 02:19:14,641 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-18227492-56498395 passed 2025-02-06 02:19:14,756 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-06 02:19:14,756 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-18227492-56498395, IP 81.150.2.3, Port 22 2025-02-06 02:19:14,923 - DEBUG - VM ctest-TestBasicPolicy-18227492-56498395 is ready for SSH connections 2025-02-06 02:19:14,923 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-06 02:19:14,924 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 81.150.2.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-02-06 02:19:14,924 - DEBUG - ping -s 56 -c 3 -W 1 81.150.2.3 2025-02-06 02:19:18,778 - DEBUG - PING 81.150.2.3 (81.150.2.3): 56 data bytes 64 bytes from 81.150.2.3: seq=0 ttl=63 time=4.728 ms 64 bytes from 81.150.2.3: seq=1 ttl=63 time=0.891 ms 64 bytes from 81.150.2.3: seq=2 ttl=63 time=0.847 ms --- 81.150.2.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.847/2.155/4.728 ms 2025-02-06 02:19:18,779 - INFO - Ping to IP 81.150.2.3 from VM ctest-TestBasicPolicy-18227492-28125259 passed 2025-02-06 02:19:19,004 - DEBUG - Policy Update Response {"network-policy": {"uuid": "0d180068-35b5-4d5f-ae08-ffe3ac507400", "href": "http://10.0.0.38:8082/network-policy/0d180068-35b5-4d5f-ae08-ffe3ac507400"}} 2025-02-06 02:19:19,004 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-06 02:19:19,005 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 81.150.2.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-02-06 02:19:19,005 - DEBUG - ping -s 56 -c 3 -W 1 81.150.2.3 2025-02-06 02:19:22,199 - DEBUG - PING 81.150.2.3 (81.150.2.3): 56 data bytes --- 81.150.2.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-02-06 02:19:22,199 - WARNING - Ping to IP 81.150.2.3 from VM ctest-TestBasicPolicy-18227492-28125259 failed 2025-02-06 02:19:22,199 - INFO - Deleting VM ctest-TestBasicPolicy-18227492-56498395 2025-02-06 02:19:22,278 - INFO - Deleting VM ctest-TestBasicPolicy-18227492-28125259 2025-02-06 02:19:22,731 - INFO - Deleted policy ctest-policy-allow-all-08696757 2025-02-06 02:19:22,731 - INFO - Deleting VN ctest-vn-22550599 2025-02-06 02:19:22,785 - DEBUG - VN 34c94e71-3cd9-410b-b14c-5bf4ab683ee5 still in use: Unable to complete operation on network 34c94e71-3cd9-410b-b14c-5bf4ab683ee5. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-4587626d-7142-4de2-bd2c-7f21bea7281e'] 2025-02-06 02:19:22,785 - WARNING - Deleting VN ctest-vn-22550599 failed..Will retry 2025-02-06 02:19:24,962 - DEBUG - Response for deleting network () 2025-02-06 02:19:24,962 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c429324d-3a43-4263-b923-b485dac3ea9b 2025-02-06 02:19:24,971 - DEBUG - Response Code: 404 2025-02-06 02:19:24,971 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-02-06 02:19:24,991 - DEBUG - Requesting: http://10.0.0.23:8082/domain/eaa2de1f-ced4-47cc-99cf-d5f3acfa72fe 2025-02-06 02:19:25,017 - DEBUG - Requesting: http://10.0.0.23:8082/project/08dfd5a2-50d8-4265-a793-a3482f7148e6 2025-02-06 02:19:25,111 - INFO - Validated that VN ctest-vn-22550599 is not found in API Server 2025-02-06 02:19:25,122 - DEBUG - VN ctest-vn-22550599 is not present in Agent 10.0.0.28 2025-02-06 02:19:25,133 - DEBUG - VN ctest-vn-22550599 is not present in Agent 10.0.0.65 2025-02-06 02:19:25,133 - INFO - Validated that VN ctest-vn-22550599 is not in any agent 2025-02-06 02:19:25,168 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-22550599 info 2025-02-06 02:19:25,168 - INFO - Deleting VN ctest-vn-59118941 2025-02-06 02:19:25,315 - DEBUG - Response for deleting network () 2025-02-06 02:19:25,315 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c32c798c-6d71-4b6a-a966-5a1b6c93e641 2025-02-06 02:19:25,322 - DEBUG - Response Code: 404 2025-02-06 02:19:25,323 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-02-06 02:19:25,331 - DEBUG - Requesting: http://10.0.0.23:8082/domain/eaa2de1f-ced4-47cc-99cf-d5f3acfa72fe 2025-02-06 02:19:25,348 - DEBUG - Requesting: http://10.0.0.23:8082/project/08dfd5a2-50d8-4265-a793-a3482f7148e6 2025-02-06 02:19:25,452 - INFO - Validated that VN ctest-vn-59118941 is not found in API Server 2025-02-06 02:19:25,466 - DEBUG - VN ctest-vn-59118941 is not present in Agent 10.0.0.28 2025-02-06 02:19:25,479 - DEBUG - VN ctest-vn-59118941 is not present in Agent 10.0.0.65 2025-02-06 02:19:25,479 - INFO - Validated that VN ctest-vn-59118941 is not in any agent 2025-02-06 02:19:25,514 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-59118941 info 2025-02-06 02:19:26,779 - DEBUG - No XMPP flaps were noticed during the test 2025-02-06 02:19:26,780 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:34] 2025-02-06 02:19:26,780 - INFO - -------------------------------------------------------------------------------- 2025-02-06 02:19:27,535 - INFO - Deleted project: ctest-TestBasicPolicy-18227492, ID : 08dfd5a2-50d8-4265-a793-a3482f7148e6