<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Error: Attempted to add a rule for a principal with no realm: ambari-qa in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Error-Attempted-to-add-a-rule-for-a-principal-with-no-realm/m-p/102378#M65313</link>
    <description>&lt;P&gt;Your issue is with the smoke user principal, on line 29 of the Kerberos Descriptor you posted:&lt;/P&gt;&lt;PRE&gt;  "value" : "${cluster-env/smokeuser}",
&lt;/PRE&gt;&lt;P&gt;It should be:&lt;/P&gt;&lt;PRE&gt;  "value" : "${cluster-env/smokeuser}@${realm}",
&lt;/PRE&gt;</description>
    <pubDate>Thu, 14 Jan 2016 02:49:22 GMT</pubDate>
    <dc:creator>rlevas</dc:creator>
    <dc:date>2016-01-14T02:49:22Z</dc:date>
    <item>
      <title>Error: Attempted to add a rule for a principal with no realm: ambari-qa</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-Attempted-to-add-a-rule-for-a-principal-with-no-realm/m-p/102375#M65310</link>
      <description>&lt;P&gt;
	I am trying to enable Kerberos on an HDP 2.3.2 Sandbox using FreeIPA on a standalone VM.  After stopping all of the HDP services the Kerberos wizard has a "prepare" task and that task is failing with this error message:&lt;/P&gt;
&lt;PRE&gt;13 Jan 2016 04:56:25,610  WARN [Server Action Executor Worker 495] ServerActionExecutor:479 - Task #495 failed to complete execution due to thrown exception: java.lang.IllegalArgumentException:Attempted to add a rule for a principal with no realm: ambari-qa
java.lang.IllegalArgumentException: Attempted to add a rule for a principal with no realm: ambari-qa
        at org.apache.ambari.server.controller.AuthToLocalBuilder.addRule(AuthToLocalBuilder.java:147)
        at org.apache.ambari.server.controller.KerberosHelperImpl.addIdentities(KerberosHelperImpl.java:1671)
        at org.apache.ambari.server.controller.KerberosHelperImpl.setAuthToLocalRules(KerberosHelperImpl.java:403)
        at org.apache.ambari.server.serveraction.kerberos.PrepareKerberosIdentitiesServerAction.processAuthToLocalRules(PrepareKerberosIdentitiesServerAction.java:177)
        at org.apache.ambari.server.serveraction.kerberos.PrepareEnableKerberosServerAction.execute(PrepareEnableKerberosServerAction.java:82)
        at org.apache.ambari.server.serveraction.ServerActionExecutor$Worker.execute(ServerActionExecutor.java:537)
        at org.apache.ambari.server.serveraction.ServerActionExecutor$Worker.run(ServerActionExecutor.java:474)
        at java.lang.Thread.run(Thread.java:745)
&lt;/PRE&gt;&lt;P&gt;
	&lt;EM&gt;ambari-qa &lt;/EM&gt;was not mentioned in the CSV file that the wizard generated, but after seeing the above error I created a service for it, but I'm still getting the same error.  &lt;/P&gt;
&lt;PRE&gt;Added service "ambari-qa/sandbox.hortonworks.com@HORTONWORKS.COM"
-----------------------------------------------------------------
  Principal: ambari-qa/sandbox.hortonworks.com@HORTONWORKS.COM
  Managed by: sandbox.hortonworks.com
&lt;/PRE&gt;&lt;P&gt;What does the error message mean and what can I do to resolve it?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 23:25:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-Attempted-to-add-a-rule-for-a-principal-with-no-realm/m-p/102375#M65310</guid>
      <dc:creator>vzlatkin</dc:creator>
      <dc:date>2016-01-13T23:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Attempted to add a rule for a principal with no realm: ambari-qa</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-Attempted-to-add-a-rule-for-a-principal-with-no-realm/m-p/102376#M65311</link>
      <description>&lt;P&gt;It seems like something may be wrong with the Kerberos Descriptor.  Did you edit any of the principal names on the &lt;STRONG&gt;&lt;EM&gt;Configure Identities&lt;/EM&gt;&lt;/STRONG&gt; page of the &lt;STRONG&gt;&lt;EM&gt;Enable Kerberos Wizard&lt;/EM&gt;&lt;/STRONG&gt; or did you not set the realm name on the &lt;STRONG&gt;&lt;EM&gt;Configure Kerberos &lt;/EM&gt;&lt;/STRONG&gt;page of the &lt;B&gt;&lt;EM&gt;Enable Kerberos Wizard&lt;/EM&gt;&lt;/B&gt;?&lt;/P&gt;&lt;P&gt;Can you post or attach the response to &lt;/P&gt;&lt;PRE&gt;&lt;A href="http://AMBARI_SERVER:8080/api/v1/clusters/CLUSTER_NAME/artifacts/kerberos_descriptor" target="_blank"&gt;http://AMBARI_SERVER:8080/api/v1/clusters/CLUSTER_NAME/artifacts/kerberos_descriptor&lt;/A&gt; &lt;/PRE&gt;&lt;UL&gt;&lt;LI&gt;Replacing AMBARI_SERVER with the hostname of your Ambari server&lt;/LI&gt;&lt;LI&gt;Replace CLUSTER_NAME with the name of your cluster&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 13 Jan 2016 23:58:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-Attempted-to-add-a-rule-for-a-principal-with-no-realm/m-p/102376#M65311</guid>
      <dc:creator>rlevas</dc:creator>
      <dc:date>2016-01-13T23:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Attempted to add a rule for a principal with no realm: ambari-qa</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-Attempted-to-add-a-rule-for-a-principal-with-no-realm/m-p/102377#M65312</link>
      <description>&lt;P&gt;Yes, I changed the identities as specified &lt;A href="https://github.com/abajwa-hw/security-workshops/blob/master/Setup-kerberos-IPA-23.md"&gt;here&lt;/A&gt;.  Realm was filled in during the first step of the &lt;EM&gt;Enable Kerberos Wizard&lt;/EM&gt;.  &lt;/P&gt;&lt;P&gt;The output of from the URL is very long, so I won't post it here.  There is no mention of &lt;EM&gt;ambari-qa, &lt;/EM&gt;and realm is a filled in property.   Is there anything specific that I should investigate?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 02:00:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-Attempted-to-add-a-rule-for-a-principal-with-no-realm/m-p/102377#M65312</guid>
      <dc:creator>vzlatkin</dc:creator>
      <dc:date>2016-01-14T02:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Attempted to add a rule for a principal with no realm: ambari-qa</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-Attempted-to-add-a-rule-for-a-principal-with-no-realm/m-p/102378#M65313</link>
      <description>&lt;P&gt;Your issue is with the smoke user principal, on line 29 of the Kerberos Descriptor you posted:&lt;/P&gt;&lt;PRE&gt;  "value" : "${cluster-env/smokeuser}",
&lt;/PRE&gt;&lt;P&gt;It should be:&lt;/P&gt;&lt;PRE&gt;  "value" : "${cluster-env/smokeuser}@${realm}",
&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Jan 2016 02:49:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-Attempted-to-add-a-rule-for-a-principal-with-no-realm/m-p/102378#M65313</guid>
      <dc:creator>rlevas</dc:creator>
      <dc:date>2016-01-14T02:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Attempted to add a rule for a principal with no realm: ambari-qa</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-Attempted-to-add-a-rule-for-a-principal-with-no-realm/m-p/102379#M65314</link>
      <description>&lt;P&gt;That worked!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 03:11:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-Attempted-to-add-a-rule-for-a-principal-with-no-realm/m-p/102379#M65314</guid>
      <dc:creator>vzlatkin</dc:creator>
      <dc:date>2016-01-14T03:11:50Z</dc:date>
    </item>
  </channel>
</rss>

