<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:18:50 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-8922] Log in as read write user on secondary database</title>
                <link>https://jira.mongodb.org/browse/SERVER-8922</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;We have created a read-write user on our primary database but we cannot log on with this user to our secondary databases. Is this default behaviour?&lt;/p&gt;</description>
                <environment>CentOS release 6.3 (Final)</environment>
        <key id="67859">SERVER-8922</key>
            <summary>Log in as read write user on secondary database</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="5">Cannot Reproduce</resolution>
                                        <assignee username="rassi">J Rassi</assignee>
                                    <reporter username="sumathy">Sumathy Panicker</reporter>
                        <labels>
                    </labels>
                <created>Sat, 9 Mar 2013 01:24:55 +0000</created>
                <updated>Wed, 10 Dec 2014 23:18:28 +0000</updated>
                            <resolved>Mon, 25 Mar 2013 15:42:28 +0000</resolved>
                                    <version>2.2.3</version>
                                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="297913" author="rassi@10gen.com" created="Mon, 25 Mar 2013 15:42:28 +0000"  >&lt;p&gt;I&apos;m going to close out this ticket &amp;#8211; please feel free to reopen if you have any further related questions.&lt;/p&gt;</comment>
                            <comment id="290981" author="rassi@10gen.com" created="Sat, 16 Mar 2013 18:42:06 +0000"  >&lt;p&gt;The warning &quot;cannot wait for replication since we no longer have auth&quot; is unrelated: it indicates that the shell cannot &lt;b&gt;confirm&lt;/b&gt; that the user entry has been replicated; it doesn&apos;t indicate that replication can&apos;t occur.  Typically, the addUser function blocks until replication of the call has finished to a majority of members; however, if you&apos;re &lt;a href=&quot;http://docs.mongodb.org/manual/tutorial/control-access-to-mongodb-with-authentication/#authentication-on-localhost&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;authenticating via a localhost connection&lt;/a&gt; and adding the first admin user, then the addUser function returns immediately (since the connection becomes marked as unauthenticated); but, the user is still replicated (since the connections between replica set members, which are authenticated as the __system user, are unaffected).  Thus, assuming the secondary is up to date, you should in fact be able to log into the secondary immediately after running addUser on the primary.&lt;/p&gt;

&lt;p&gt;Was the user added when the mongod instance was running in standalone mode (not running with the --replSet option)?  Changes made while in standalone mode are not written to the oplog, and thus won&apos;t get replicated.&lt;/p&gt;

&lt;p&gt;Was the user added to the local database?  Changes to the local database also do not get written to the oplog.&lt;/p&gt;</comment>
                            <comment id="289496" author="sumathy" created="Thu, 14 Mar 2013 20:25:12 +0000"  >&lt;p&gt;Yes I do see it in the primary. I don&apos;t see it on the secondary. However I figured out the issue.&lt;/p&gt;

&lt;p&gt;While setting up replications sets for another env I understood what might have&lt;br/&gt;
happened to the admin user. When I created the admin user on primary I got&lt;br/&gt;
this error - I remember getting this error in prod also.&lt;/p&gt;


&lt;p&gt;addUser succeeded, but cannot wait for replication since we no longer have&lt;br/&gt;
auth&lt;/p&gt;

&lt;p&gt;so the user did not replicate to secondaries as we did not authenticate&lt;br/&gt;
against the admin database.( as we turned auth on in mongo.conf and&lt;br/&gt;
restarted mongo)&lt;/p&gt;

&lt;p&gt;Once you authenticate and create the user - it gets replicated ...&lt;/p&gt;
</comment>
                            <comment id="285225" author="rassi@10gen.com" created="Sat, 9 Mar 2013 18:12:16 +0000"  >&lt;p&gt;Do you see the user in question when you run db.system.users.find() on the primary?  Do you see the same user when you run rs.slaveOk() + db.system.users.find() on the secondary?&lt;/p&gt;</comment>
                            <comment id="285217" author="sumathy" created="Sat, 9 Mar 2013 17:48:55 +0000"  >&lt;p&gt;Hi Jason&lt;/p&gt;

&lt;p&gt;Thanks for the reply. The secondary is up to date and I was logging against the correct database. I created another read-write user from the primary and it was replicated successfully to the 2 secondaries. So I think we are ok now . The mystery of why the first read user did not get replicated remains?&lt;/p&gt;

&lt;p&gt;-Sumathy&lt;/p&gt;</comment>
                            <comment id="284919" author="rassi@10gen.com" created="Sat, 9 Mar 2013 02:29:34 +0000"  >&lt;p&gt;No, you are supposed to be able to do this; user information is replicated to secondaries.&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Is the secondary up to date?&lt;/li&gt;
	&lt;li&gt;Are you sure you are logging in against the correct database?&lt;/li&gt;
&lt;/ul&gt;
</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sat, 9 Mar 2013 02:29:34 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 47 weeks, 2 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            10 years, 47 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>rassi</customfieldvalue>
            <customfieldvalue>sumathy</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrn273:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrmlpj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>45595</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht03dr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>