Skip to main content
NetApp Knowledge Base

Unable to add ONTAP Mediator in MetroCluster due to insufficient user privileges in the sudo server

Views:
163
Visibility:
Public
Votes:
0
Category:
metrocluster
Specialty:
metrocluster
Last Updated:

Applies to

  • MetroCluster IP
  • ONTAP Mediator
  • Third-party centralized sudo server

Issue

  • The following error is encountered while adding ONTAP Mediator in MetroCluster:

Cluster::> metrocluster configuration-settings mediator add -mediator-address 10.XX.XX.31
Adding the mediator and enabling Automatic Unplanned Switchover. It may take a few minutes to complete.
Please enter the username for the mediator: mediatoradmin
Please enter the password for the mediator:
Confirm the mediator password:
Creating mediator mailboxes...

Error: command failed: The request to reach the mediator failed during the add operation.
       Check if the mediator is reachable and then try the operation again.

  • The ONTAP mediator log reports the following error:

[root@user123 ~]# /opt/netapp/lib/ontap_mediator/log/ontap_mediator.log
[2022-05-04 15:45:43,610] [ERROR] [4] [restapi.py:105] ontap_mediator.controllers.targets.post_target() failed with an exception: 

  RAN: /usr/bin/sudo scstadmin -noprompt -add_target iqn.2012-05.local:mailbox.target.60a2eXXXX-XXXXX-XXXX-XXXX-d039eaXXXXX:9dXXXX-XXXX-XXX-XXX-dXXXXXXXX:1 -driver iscsi -attributes 'MaxSessions=4,IncomingUser=mccadmin 567fdbbcf71ed363'

  STDOUT:


  STDERR:
Sorry, user netapp is not allowed to execute '/usr/local/sbin/scstadmin -noprompt -add_target iqn.2012-05.local:mailbox.target.60a2e875-b6a1-11ec-9873-d039ea385bf8:9d2251a0-b5ef-11ec-a19b-d039ea37483b:1 -driver iscsi -attributes MaxSessions=4,IncomingUser=mccadmin 567fdbbcf71ed363' as root on ServXXXXX

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.