[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Openshift broker: domain 'XXX' not found



Hi!

I'm sorry I missed your response.

Thanks for giving the idea. I followed your advice and I was able to
find that userID matches.

I attached responses from
https://localhost/broker/rest/domains.json
and
https://localhost/broker/rest/user.json

There are two mongo databases. here what I get from the first one:
=====
# mongo admin
MongoDB shell version: 2.4.6
connecting to: admin
> db['domains'].find().pretty()
error: { "$err" : "not authorized for query on admin.domains", "code" : 16550 }
> db.auth('openshift',"password")
1
> db['domains'].find().pretty()
>
=====

And here is what I get from the second one:
=====
# /usr/bin/mongo localhost/openshift_broker_dev
MongoDB shell version: 2.4.6
connecting to: localhost/openshift_broker_dev
> db.auth('openshift',"password")
1
> db['domains'].find().pretty()
{
    "_id" : ObjectId("521f6614a9877ac35e000001"),
    "canonical_namespace" : "antonio",
    "created_at" : ISODate("2013-08-29T15:17:40.356Z"),
    "env_vars" : [ ],
    "namespace" : "antonio",
    "owner_id" : ObjectId("5215f05ba9877acd60000001"),
    "pending_ops" : [ ],
    "updated_at" : ISODate("2013-08-29T15:17:40.356Z"),
    "user_ids" : [
         ObjectId("5215f05ba9877acd60000001")
    ]
}
>
=====

Actually I have a similar issue in an another broker instance. When I
enter /console/settings, it offers to create a new namespace.

Is there a way to recover the existing namespace in this situation?

Thank you,
Anthony

On Thu, Jun 5, 2014 at 7:58 PM, Jordan Liggitt <jliggitt redhat com> wrote:
>
> To check that, call the broker API /broker/rest/user.json the same way, and see what user is returned.
>
> Jordan
>
>
>
> On 06/05/2014 12:57 PM, Abhishek Gupta wrote:
>
> One reason could be the user account used to query the domain using REST and the user account used to create the domain are different. The owner ID you see in the domain document is the one that needs to match the user account that the rest call is using.
>
>
> Abhishek
>
> ________________________________
> From: "Anthony Ananich" <anton ananich inpun com>
> To: dev lists openshift redhat com
> Sent: Thursday, June 5, 2014 9:45:54 AM
> Subject: Openshift broker: domain 'XXX' not found
>
> Hi!
>
> I have a OpenShift appliance. I connect to mongodb and make a query:
>
> > db['domains'].find().pretty()
> {
> "_id" : ObjectId("521f6614a9877ac35e000001"),
> "canonical_namespace" : "antonio",
> "created_at" : ISODate("2013-08-29T15:17:40.356Z"),
> "env_vars" : [ ],
> "namespace" : "XXX",
> "owner_id" : ObjectId("5215f05ba9877acd60000001"),
> "pending_ops" : [ ],
> "updated_at" : ISODate("2013-08-29T15:17:40.356Z"),
> "user_ids" : [ObjectId("5215f05ba9877acd60000001")]
> }
>
> Than I use broker's API and get URL https://localhost/broker/rest/domains.json
> It returns:
> {"api_version":1.6,"data":[],"messages":[],"status":"ok","supported_api_versions":[1.0,1.1,1.2,1.3,1.4,1.5,1.6],"type":"domains","version":"1.6"}
>
> How can I find why broker can not find the domain stored in the mongodb?
>
> Thanks,
> Anthony
>
> _______________________________________________
> dev mailing list
> dev lists openshift redhat com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
>
>
>
> _______________________________________________
> dev mailing list
> dev lists openshift redhat com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
>
>

Attachment: domains.json
Description: application/json

Attachment: user.json
Description: application/json


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]