2025-12-25 02:56:40,461 - INFO - Domain Default found not creating 2025-12-25 02:56:40,664 - INFO - Project ctest-TestBasicPolicy-98189681 not found, creating it 2025-12-25 02:56:41,244 - INFO - Created Project:ctest-TestBasicPolicy-98189681, ID : 65ce4e1f-89a6-40a4-afe3-9eb389b9cd3e 2025-12-25 02:56:43,367 - INFO - ================================================================================ 2025-12-25 02:56:43,368 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-12-25 02:56:43,368 - 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-12-25 02:56:44,662 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.18': '0', '10.20.0.14': '0'}, '10.0.0.130': {'10.20.0.14': '0', '10.20.0.209': '0'}} with 2025-12-25 02:56:44,662 - INFO - Initial checks done. Running the testcase now 2025-12-25 02:56:44,662 - INFO - 2025-12-25 02:56:45,442 - DEBUG - Response for create_network : {'network': {'id': 'a32a5cff-b7ec-4116-aa50-dc5b73c76052', 'name': 'ctest-vn-79902988', 'tenant_id': '65ce4e1f89a640a4afe39eb389b9cd3e', 'project_id': '65ce4e1f89a640a4afe39eb389b9cd3e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98189681', 'ctest-vn-79902988'], 'port_security_enabled': True, 'description': ''}} 2025-12-25 02:56:45,780 - DEBUG - Response for create_subnet : {'subnet': {'id': '1b394e5e-0f91-45a3-9c10-dd0169416694', 'name': '', 'tenant_id': '65ce4e1f89a640a4afe39eb389b9cd3e', 'network_id': 'a32a5cff-b7ec-4116-aa50-dc5b73c76052', 'ip_version': 4, 'cidr': '46.199.249.192/26', 'allocation_pools': [{'start': '46.199.249.194', 'end': '46.199.249.254'}], 'gateway_ip': '46.199.249.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '46.199.249.194', 'tags': [], 'project_id': '65ce4e1f89a640a4afe39eb389b9cd3e'}} 2025-12-25 02:56:45,810 - INFO - Created VN ctest-vn-79902988 2025-12-25 02:56:45,825 - DEBUG - VN ctest-vn-79902988 UUID is a32a5cff-b7ec-4116-aa50-dc5b73c76052 2025-12-25 02:56:46,210 - DEBUG - Response for create_network : {'network': {'id': '458b7d26-3cc8-4624-b572-41b142839013', 'name': 'ctest-vn-60939560', 'tenant_id': '65ce4e1f89a640a4afe39eb389b9cd3e', 'project_id': '65ce4e1f89a640a4afe39eb389b9cd3e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98189681', 'ctest-vn-60939560'], 'port_security_enabled': True, 'description': ''}} 2025-12-25 02:56:46,467 - DEBUG - Response for create_subnet : {'subnet': {'id': '8f43b04a-4cf9-44bc-8578-f68ff21183ea', 'name': '', 'tenant_id': '65ce4e1f89a640a4afe39eb389b9cd3e', 'network_id': '458b7d26-3cc8-4624-b572-41b142839013', 'ip_version': 4, 'cidr': '112.115.165.128/26', 'allocation_pools': [{'start': '112.115.165.130', 'end': '112.115.165.190'}], 'gateway_ip': '112.115.165.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.115.165.130', 'tags': [], 'project_id': '65ce4e1f89a640a4afe39eb389b9cd3e'}} 2025-12-25 02:56:46,498 - INFO - Created VN ctest-vn-60939560 2025-12-25 02:56:46,512 - DEBUG - VN ctest-vn-60939560 UUID is 458b7d26-3cc8-4624-b572-41b142839013 2025-12-25 02:56:46,611 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-98189681:ctest-vn-79902988, 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-98189681:ctest-vn-60939560, 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-12-25 02:56:46,979 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a32a5cff-b7ec-4116-aa50-dc5b73c76052', 'name': 'ctest-vn-79902988', 'tenant_id': '65ce4e1f89a640a4afe39eb389b9cd3e', 'project_id': '65ce4e1f89a640a4afe39eb389b9cd3e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1b394e5e-0f91-45a3-9c10-dd0169416694'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98189681', 'ctest-vn-79902988'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98189681', 'ctest-policy-allow-all-68395765']], 'subnet_ipam': [{'subnet_cidr': '46.199.249.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-25 02:56:47,211 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '458b7d26-3cc8-4624-b572-41b142839013', 'name': 'ctest-vn-60939560', 'tenant_id': '65ce4e1f89a640a4afe39eb389b9cd3e', 'project_id': '65ce4e1f89a640a4afe39eb389b9cd3e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8f43b04a-4cf9-44bc-8578-f68ff21183ea'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98189681', 'ctest-vn-60939560'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98189681', 'ctest-policy-allow-all-68395765']], 'subnet_ipam': [{'subnet_cidr': '112.115.165.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-25 02:56:47,345 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-12-25 02:56:47,756 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-12-25 02:56:47,789 - DEBUG - Requesting: http://10.0.0.27:8082/domain/d4f5d7ea-1779-482f-9e93-03873d431e99 2025-12-25 02:56:47,806 - DEBUG - Requesting: http://10.0.0.27:8082/project/65ce4e1f-89a6-40a4-afe3-9eb389b9cd3e 2025-12-25 02:56:47,934 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a32a5cff-b7ec-4116-aa50-dc5b73c76052 2025-12-25 02:56:47,950 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a32a5cff-b7ec-4116-aa50-dc5b73c76052 2025-12-25 02:56:47,964 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/45da4785-a68c-469d-b111-96c7344103ce 2025-12-25 02:56:47,976 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/45da4785-a68c-469d-b111-96c7344103ce 2025-12-25 02:56:47,986 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/d9371359-4cd5-404c-8ac4-cb1ad61d4951 2025-12-25 02:56:47,998 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-25 02:56:47,998 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a32a5cff-b7ec-4116-aa50-dc5b73c76052 2025-12-25 02:56:48,013 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/45da4785-a68c-469d-b111-96c7344103ce 2025-12-25 02:56:48,033 - INFO - Verified VN network id 15 for VN a32a5cff-b7ec-4116-aa50-dc5b73c76052 2025-12-25 02:56:48,033 - INFO - Verifications in API Server for VN ctest-vn-79902988 passed 2025-12-25 02:56:48,033 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a32a5cff-b7ec-4116-aa50-dc5b73c76052 2025-12-25 02:56:48,047 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/45da4785-a68c-469d-b111-96c7344103ce 2025-12-25 02:56:48,056 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/45da4785-a68c-469d-b111-96c7344103ce 2025-12-25 02:56:48,067 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/d9371359-4cd5-404c-8ac4-cb1ad61d4951 2025-12-25 02:56:48,080 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98189681:ctest-vn-79902988', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98189681', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11757312030576230678', 'uuid-lslong': '12272551269927182418'}, 'enable': 'true', 'created': '2025-12-25T02:56:45', 'last-modified': '2025-12-25T02:56:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.137845'} 2025-12-25 02:56:48,086 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-25 02:56:48,093 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98189681:ctest-vn-79902988', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98189681', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11757312030576230678', 'uuid-lslong': '12272551269927182418'}, 'enable': 'true', 'created': '2025-12-25T02:56:45', 'last-modified': '2025-12-25T02:56:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.151335'} 2025-12-25 02:56:48,100 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-25 02:56:48,107 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98189681:ctest-vn-79902988', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98189681', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11757312030576230678', 'uuid-lslong': '12272551269927182418'}, 'enable': 'true', 'created': '2025-12-25T02:56:45', 'last-modified': '2025-12-25T02:56:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.181716'} 2025-12-25 02:56:48,115 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-25 02:56:48,115 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79902988 passed 2025-12-25 02:56:48,116 - DEBUG - ====Verifying policy data for ctest-vn-79902988 in API_Server ====== 2025-12-25 02:56:48,116 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-12-25 02:56:48,123 - DEBUG - Requesting: http://10.0.0.27:8082/domain/d4f5d7ea-1779-482f-9e93-03873d431e99 2025-12-25 02:56:48,139 - DEBUG - Requesting: http://10.0.0.27:8082/project/65ce4e1f-89a6-40a4-afe3-9eb389b9cd3e 2025-12-25 02:56:48,238 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a32a5cff-b7ec-4116-aa50-dc5b73c76052 2025-12-25 02:56:48,260 - DEBUG - ==>Verifying data for policy with id: 634a94f1-60f0-4866-b09e-633a2db5927d, fqn: ['default-domain', 'ctest-TestBasicPolicy-98189681', 'ctest-policy-allow-all-68395765'] 2025-12-25 02:56:48,260 - INFO - VN ctest-vn-79902988 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-25 02:56:48,260 - DEBUG - Verifying the vn in opserver 2025-12-25 02:56:48,261 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98189681:ctest-vn-79902988 virtual network link through opserver 10.0.0.27 2025-12-25 02:56:48,261 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-12-25 02:56:48,627 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-12-25 02:56:48,701 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98189681:ctest-vn-79902988', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98189681:ctest-vn-79902988?flat'} 2025-12-25 02:56:48,701 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98189681:ctest-vn-79902988 virtual network link through opserver 10.0.0.33 2025-12-25 02:56:48,701 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-12-25 02:56:49,072 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-12-25 02:56:49,164 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98189681:ctest-vn-79902988', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98189681:ctest-vn-79902988?flat'} 2025-12-25 02:56:49,164 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98189681:ctest-vn-79902988 virtual network link through opserver 10.0.0.23 2025-12-25 02:56:49,164 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-12-25 02:56:49,510 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-12-25 02:56:49,608 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98189681:ctest-vn-79902988', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98189681:ctest-vn-79902988?flat'} 2025-12-25 02:56:49,608 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98189681:ctest-vn-79902988 is found in opserver 2025-12-25 02:56:49,632 - DEBUG - Do not have enough data to verify VN in agent 2025-12-25 02:56:49,643 - DEBUG - VRF ids for VN ctest-vn-79902988: {} 2025-12-25 02:56:49,643 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-12-25 02:56:49,650 - DEBUG - Requesting: http://10.0.0.27:8082/domain/d4f5d7ea-1779-482f-9e93-03873d431e99 2025-12-25 02:56:49,662 - DEBUG - Requesting: http://10.0.0.27:8082/project/65ce4e1f-89a6-40a4-afe3-9eb389b9cd3e 2025-12-25 02:56:49,779 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/458b7d26-3cc8-4624-b572-41b142839013 2025-12-25 02:56:49,798 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/458b7d26-3cc8-4624-b572-41b142839013 2025-12-25 02:56:49,809 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/3bd6ff73-a714-42bd-88d6-85bb5d8ea3bd 2025-12-25 02:56:49,819 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/3bd6ff73-a714-42bd-88d6-85bb5d8ea3bd 2025-12-25 02:56:49,828 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/558e23ec-0de8-4b72-beb6-bc6986b7353c 2025-12-25 02:56:49,837 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-12-25 02:56:49,837 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/458b7d26-3cc8-4624-b572-41b142839013 2025-12-25 02:56:49,850 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/3bd6ff73-a714-42bd-88d6-85bb5d8ea3bd 2025-12-25 02:56:49,868 - INFO - Verified VN network id 16 for VN 458b7d26-3cc8-4624-b572-41b142839013 2025-12-25 02:56:49,869 - INFO - Verifications in API Server for VN ctest-vn-60939560 passed 2025-12-25 02:56:49,869 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/458b7d26-3cc8-4624-b572-41b142839013 2025-12-25 02:56:49,880 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/3bd6ff73-a714-42bd-88d6-85bb5d8ea3bd 2025-12-25 02:56:49,890 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/3bd6ff73-a714-42bd-88d6-85bb5d8ea3bd 2025-12-25 02:56:49,900 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/558e23ec-0de8-4b72-beb6-bc6986b7353c 2025-12-25 02:56:49,915 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98189681:ctest-vn-60939560', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98189681', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5011236613561796132', 'uuid-lslong': '13074584897790906387'}, 'enable': 'true', 'created': '2025-12-25T02:56:46', 'last-modified': '2025-12-25T02:56:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.745760'} 2025-12-25 02:56:49,923 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-12-25 02:56:49,929 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98189681:ctest-vn-60939560', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98189681', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5011236613561796132', 'uuid-lslong': '13074584897790906387'}, 'enable': 'true', 'created': '2025-12-25T02:56:46', 'last-modified': '2025-12-25T02:56:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.760771'} 2025-12-25 02:56:49,937 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-12-25 02:56:49,947 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98189681:ctest-vn-60939560', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98189681', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5011236613561796132', 'uuid-lslong': '13074584897790906387'}, 'enable': 'true', 'created': '2025-12-25T02:56:46', 'last-modified': '2025-12-25T02:56:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.781122'} 2025-12-25 02:56:49,957 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-12-25 02:56:49,957 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60939560 passed 2025-12-25 02:56:49,957 - DEBUG - ====Verifying policy data for ctest-vn-60939560 in API_Server ====== 2025-12-25 02:56:49,957 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-12-25 02:56:49,965 - DEBUG - Requesting: http://10.0.0.27:8082/domain/d4f5d7ea-1779-482f-9e93-03873d431e99 2025-12-25 02:56:49,979 - DEBUG - Requesting: http://10.0.0.27:8082/project/65ce4e1f-89a6-40a4-afe3-9eb389b9cd3e 2025-12-25 02:56:50,086 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/458b7d26-3cc8-4624-b572-41b142839013 2025-12-25 02:56:50,098 - DEBUG - ==>Verifying data for policy with id: 634a94f1-60f0-4866-b09e-633a2db5927d, fqn: ['default-domain', 'ctest-TestBasicPolicy-98189681', 'ctest-policy-allow-all-68395765'] 2025-12-25 02:56:50,098 - INFO - VN ctest-vn-60939560 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-25 02:56:50,098 - DEBUG - Verifying the vn in opserver 2025-12-25 02:56:50,098 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98189681:ctest-vn-60939560 virtual network link through opserver 10.0.0.27 2025-12-25 02:56:50,098 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-12-25 02:56:50,171 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98189681:ctest-vn-60939560', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98189681:ctest-vn-60939560?flat'} 2025-12-25 02:56:50,171 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98189681:ctest-vn-60939560 virtual network link through opserver 10.0.0.33 2025-12-25 02:56:50,171 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-12-25 02:56:50,248 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98189681:ctest-vn-60939560', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98189681:ctest-vn-60939560?flat'} 2025-12-25 02:56:50,248 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98189681:ctest-vn-60939560 virtual network link through opserver 10.0.0.23 2025-12-25 02:56:50,248 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-12-25 02:56:50,319 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98189681:ctest-vn-60939560', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98189681:ctest-vn-60939560?flat'} 2025-12-25 02:56:50,319 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98189681:ctest-vn-60939560 is found in opserver 2025-12-25 02:56:50,352 - DEBUG - Do not have enough data to verify VN in agent 2025-12-25 02:56:50,369 - DEBUG - VRF ids for VN ctest-vn-60939560: {} 2025-12-25 02:56:50,446 - DEBUG - Services list from nova: [, , , ] 2025-12-25 02:56:51,730 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4927-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4927-1) 2025-12-25 02:56:53,396 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4927-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4927-2) 2025-12-25 02:56:53,397 - INFO - Waiting for VM ctest-TestBasicPolicy-98189681-25621396 to be up.. 2025-12-25 02:56:53,520 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-12-25 02:56:58,635 - DEBUG - VM is in ACTIVE state now 2025-12-25 02:56:58,635 - INFO - VM name : ctest-TestBasicPolicy-98189681-25621396 2025-12-25 02:56:58,751 - DEBUG - VM ctest-TestBasicPolicy-98189681-25621396 ID is 02cf8b40-3859-4552-a5b7-0157fbf8475c 2025-12-25 02:56:58,785 - DEBUG - VM ctest-TestBasicPolicy-98189681-25621396 launched on Node an-jenkins-deploy-platform-ansible-os-4927-1 2025-12-25 02:56:58,892 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/02cf8b40-3859-4552-a5b7-0157fbf8475c 2025-12-25 02:56:59,341 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/02cf8b40-3859-4552-a5b7-0157fbf8475c 2025-12-25 02:56:59,414 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/77b56e85-d204-4f99-956e-f6772d5d75fb 2025-12-25 02:57:02,613 - 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 1021ms') 2025-12-25 02:57:02,613 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-98189681-25621396 failed! 2025-12-25 02:57:02,634 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-98189681:ctest-vn-79902988 is 46.199.249.193 and allocation pool is NOT set 2025-12-25 02:57:06,704 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1009ms') 2025-12-25 02:57:06,705 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-98189681-25621396 failed! 2025-12-25 02:57:06,721 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-98189681:ctest-vn-79902988 is 46.199.249.193 and allocation pool is NOT set 2025-12-25 02:57:10,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 1019ms') 2025-12-25 02:57:10,808 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-98189681-25621396 failed! 2025-12-25 02:57:10,824 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-98189681:ctest-vn-79902988 is 46.199.249.193 and allocation pool is NOT set 2025-12-25 02:57:14,900 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1008ms') 2025-12-25 02:57:14,900 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-98189681-25621396 failed! 2025-12-25 02:57:14,915 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-98189681:ctest-vn-79902988 is 46.199.249.193 and allocation pool is NOT set 2025-12-25 02:57:18,998 - 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-12-25 02:57:18,998 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-98189681-25621396 failed! 2025-12-25 02:57:19,015 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-98189681:ctest-vn-79902988 is 46.199.249.193 and allocation pool is NOT set 2025-12-25 02:57:23,088 - 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-12-25 02:57:23,088 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-98189681-25621396 failed! 2025-12-25 02:57:23,104 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-98189681:ctest-vn-79902988 is 46.199.249.193 and allocation pool is NOT set 2025-12-25 02:57:27,185 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1019ms') 2025-12-25 02:57:27,185 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-98189681-25621396 failed! 2025-12-25 02:57:27,201 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-98189681:ctest-vn-79902988 is 46.199.249.193 and allocation pool is NOT set 2025-12-25 02:57:31,286 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1017ms') 2025-12-25 02:57:31,286 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-98189681-25621396 failed! 2025-12-25 02:57:31,302 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-98189681:ctest-vn-79902988 is 46.199.249.193 and allocation pool is NOT set 2025-12-25 02:57:33,363 - 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.09 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.84 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.842/3.967/5.093/1.125 ms') 2025-12-25 02:57:33,364 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-98189681-25621396 passed 2025-12-25 02:57:33,438 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-25 02:57:33,438 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-98189681-25621396, IP 46.199.249.195, Port 22 2025-12-25 02:57:33,506 - 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-12-25 02:57:33,607 - DEBUG - VM ctest-TestBasicPolicy-98189681-25621396 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-25 02:57:38,608 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-25 02:57:38,608 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-98189681-25621396, IP 46.199.249.195, Port 22 2025-12-25 02:57:38,674 - 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-12-25 02:57:38,789 - DEBUG - VM ctest-TestBasicPolicy-98189681-25621396 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-25 02:57:43,789 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-25 02:57:43,790 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-98189681-25621396, IP 46.199.249.195, Port 22 2025-12-25 02:57:43,857 - 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-12-25 02:57:43,975 - DEBUG - VM ctest-TestBasicPolicy-98189681-25621396 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-25 02:57:48,976 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-25 02:57:48,976 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-98189681-25621396, IP 46.199.249.195, Port 22 2025-12-25 02:57:49,032 - 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-12-25 02:57:49,141 - DEBUG - VM ctest-TestBasicPolicy-98189681-25621396 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-25 02:57:54,141 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-25 02:57:54,141 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-98189681-25621396, IP 46.199.249.195, Port 22 2025-12-25 02:57:54,308 - DEBUG - VM ctest-TestBasicPolicy-98189681-25621396 is ready for SSH connections 2025-12-25 02:57:54,308 - INFO - Waiting for VM ctest-TestBasicPolicy-98189681-03680485 to be up.. 2025-12-25 02:57:54,410 - DEBUG - VM is in ACTIVE state now 2025-12-25 02:57:54,410 - INFO - VM name : ctest-TestBasicPolicy-98189681-03680485 2025-12-25 02:57:54,533 - DEBUG - VM ctest-TestBasicPolicy-98189681-03680485 ID is 54e1fb2a-c382-4a8a-9045-3b4dd2eee120 2025-12-25 02:57:54,533 - DEBUG - VM ctest-TestBasicPolicy-98189681-03680485 launched on Node an-jenkins-deploy-platform-ansible-os-4927-2 2025-12-25 02:57:54,648 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/54e1fb2a-c382-4a8a-9045-3b4dd2eee120 2025-12-25 02:57:54,660 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/8372d242-6c41-4454-9915-fea3a5140b96 2025-12-25 02:57:55,827 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=4.34 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.83 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 2.830/3.583/4.337/0.753 ms') 2025-12-25 02:57:55,827 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-98189681-03680485 passed 2025-12-25 02:57:55,898 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-25 02:57:55,898 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-98189681-03680485, IP 112.115.165.131, Port 22 2025-12-25 02:57:55,954 - 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-12-25 02:57:56,049 - DEBUG - VM ctest-TestBasicPolicy-98189681-03680485 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-25 02:58:01,050 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-25 02:58:01,050 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-98189681-03680485, IP 112.115.165.131, Port 22 2025-12-25 02:58:01,220 - DEBUG - VM ctest-TestBasicPolicy-98189681-03680485 is ready for SSH connections 2025-12-25 02:58:01,220 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-25 02:58:01,220 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 112.115.165.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.19, gateway password: c0ntrail123 2025-12-25 02:58:01,220 - DEBUG - ping -s 56 -c 3 -W 1 112.115.165.131 2025-12-25 02:58:19,665 - DEBUG - PING 112.115.165.131 (112.115.165.131) 56(84) bytes of data. 64 bytes from 112.115.165.131: icmp_req=1 ttl=63 time=7.19 ms 64 bytes from 112.115.165.131: icmp_req=2 ttl=63 time=1.34 ms 64 bytes from 112.115.165.131: icmp_req=3 ttl=63 time=1.46 ms --- 112.115.165.131 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 1.345/3.337/7.199/2.731 ms 2025-12-25 02:58:19,666 - INFO - Ping to IP 112.115.165.131 from VM ctest-TestBasicPolicy-98189681-25621396 passed 2025-12-25 02:58:19,920 - DEBUG - Policy Update Response {"network-policy": {"uuid": "634a94f1-60f0-4866-b09e-633a2db5927d", "href": "http://10.0.0.23:8082/network-policy/634a94f1-60f0-4866-b09e-633a2db5927d"}} 2025-12-25 02:58:19,920 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-25 02:58:19,920 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 112.115.165.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.19, gateway password: c0ntrail123 2025-12-25 02:58:19,920 - DEBUG - ping -s 56 -c 3 -W 1 112.115.165.131 2025-12-25 02:58:23,396 - DEBUG - PING 112.115.165.131 (112.115.165.131) 56(84) bytes of data. 64 bytes from 112.115.165.131: icmp_req=1 ttl=63 time=4.29 ms --- 112.115.165.131 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2011ms rtt min/avg/max/mdev = 4.298/4.298/4.298/0.000 ms 2025-12-25 02:58:23,396 - WARNING - Ping to IP 112.115.165.131 from VM ctest-TestBasicPolicy-98189681-25621396 failed 2025-12-25 02:58:23,396 - INFO - Deleting VM ctest-TestBasicPolicy-98189681-03680485 2025-12-25 02:58:23,484 - INFO - Deleting VM ctest-TestBasicPolicy-98189681-25621396 2025-12-25 02:58:24,055 - INFO - Deleted policy ctest-policy-allow-all-68395765 2025-12-25 02:58:24,055 - INFO - Deleting VN ctest-vn-60939560 2025-12-25 02:58:24,114 - DEBUG - VN 458b7d26-3cc8-4624-b572-41b142839013 still in use: Unable to complete operation on network 458b7d26-3cc8-4624-b572-41b142839013. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b49574eb-520d-49d1-9429-ab7f41774e08'] 2025-12-25 02:58:24,114 - WARNING - Deleting VN ctest-vn-60939560 failed..Will retry 2025-12-25 02:58:26,275 - DEBUG - Response for deleting network () 2025-12-25 02:58:26,275 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/3bd6ff73-a714-42bd-88d6-85bb5d8ea3bd 2025-12-25 02:58:26,283 - DEBUG - Response Code: 404 2025-12-25 02:58:26,283 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-12-25 02:58:26,291 - DEBUG - Requesting: http://10.0.0.27:8082/domain/d4f5d7ea-1779-482f-9e93-03873d431e99 2025-12-25 02:58:26,319 - DEBUG - Requesting: http://10.0.0.27:8082/project/65ce4e1f-89a6-40a4-afe3-9eb389b9cd3e 2025-12-25 02:58:26,419 - INFO - Validated that VN ctest-vn-60939560 is not found in API Server 2025-12-25 02:58:26,432 - DEBUG - VN ctest-vn-60939560 is not present in Agent 10.0.0.19 2025-12-25 02:58:26,443 - DEBUG - VN ctest-vn-60939560 is not present in Agent 10.0.0.130 2025-12-25 02:58:26,443 - INFO - Validated that VN ctest-vn-60939560 is not in any agent 2025-12-25 02:58:26,482 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-60939560 info 2025-12-25 02:58:26,482 - INFO - Deleting VN ctest-vn-79902988 2025-12-25 02:58:26,713 - DEBUG - Response for deleting network () 2025-12-25 02:58:26,713 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/45da4785-a68c-469d-b111-96c7344103ce 2025-12-25 02:58:26,725 - DEBUG - Response Code: 404 2025-12-25 02:58:26,725 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-12-25 02:58:26,733 - DEBUG - Requesting: http://10.0.0.27:8082/domain/d4f5d7ea-1779-482f-9e93-03873d431e99 2025-12-25 02:58:26,752 - DEBUG - Requesting: http://10.0.0.27:8082/project/65ce4e1f-89a6-40a4-afe3-9eb389b9cd3e 2025-12-25 02:58:26,865 - INFO - Validated that VN ctest-vn-79902988 is not found in API Server 2025-12-25 02:58:26,877 - DEBUG - VN ctest-vn-79902988 is not present in Agent 10.0.0.19 2025-12-25 02:58:26,887 - DEBUG - VN ctest-vn-79902988 is not present in Agent 10.0.0.130 2025-12-25 02:58:26,887 - INFO - Validated that VN ctest-vn-79902988 is not in any agent 2025-12-25 02:58:26,922 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-79902988 info 2025-12-25 02:58:28,226 - DEBUG - No XMPP flaps were noticed during the test
2025-12-25 02:58:28,226 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:45]
2025-12-25 02:58:28,226 - INFO - -------------------------------------------------------------------------------- 2025-12-25 02:58:29,086 - INFO - Deleted project: ctest-TestBasicPolicy-98189681, ID : 65ce4e1f-89a6-40a4-afe3-9eb389b9cd3e