Skip to main content
NetApp Knowledge Base

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

Views:
43
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

Scan to view the article on your device