← Back to team overview

openstack team mailing list archive

Re: No proper displau with Horizon

 

Hi Dolph,

I figured it out. This is not a keystone problem but actually a problem in the Ubuntu OpenStack theme.
I just commented these lines
=====================
# Enable the Ubuntu theme if it is present.
#try:
#    from ubuntu_theme import *
#except ImportError:
#    pass
========================
so that i can go back at using the default OpenStack theme , restarted apache and memcached I am still getting the no endpoint problem but at least i get a proper display to work with :)


Le 08/10/2012 11:14, Bilel Msekni a écrit :
Response to :

{
    "endpoints": [
        {
            "adminurl": "http://x.x.x.x:9696/";,
            "region": "RegionOne",
            "internalurl": "http://x.x.x.x:9696/";,
            "service_id": "020a5c2b03074e89972202f3822fa95f",
            "id": "2febceec3f324755b0c9c7fe3ba2d29d",
            "publicurl": "http://x.x.x.x:9696/";
        },
        {
            "adminurl": "http://x.x.x.x:8774/v2/$(tenant_id)s",
            "region": "RegionOne",
            "internalurl": "http://x.x.x.x:8774/v2/$(tenant_id)s",
            "service_id": "c6011214a82645fe97b4bbd64608ad9b",
            "id": "649d5e5b5cd8467c89b218b2adc29009",
            "publicurl": "http://x.x.x.x:8774/v2/$(tenant_id)s"
        },
        {
            "adminurl": "http://x.x.x.x:35357/v2.0";,
            "region": "RegionOne",
            "internalurl": "http://x.x.x.x:5000/v2.0";,
            "service_id": "9733c366161f4f7f8e8484fe702ee840",
            "id": "7b25b6283dd4408d8c8f7541b9b9d2f0",
            "publicurl": "http://x.x.x.x:5000/v2.0";
        },
        {
            "adminurl": "http://x.x.x.x:9292/v2";,
            "region": "RegionOne",
            "internalurl": "http://x.x.x.x:9292/v2";,
            "service_id": "776d3b71749f4711bf1c956ccfeb2728",
            "id": "9ebfa2784d78425fa08a146aa27e786b",
            "publicurl": "http://x.x.x.x:9292/v2";
        },
        {
            "adminurl": "http://x.x.x.x:8776/v1/$(tenant_id)s",
            "region": "RegionOne",
            "internalurl": "http://x.x.x.x:8776/v1/$(tenant_id)s",
            "service_id": "4ef30c360f4e4e0aaac9d1247dcaafe8",
            "id": "f321ae42d39d4d9a9d5e771be459f6ba",
            "publicurl": "http://x.x.x.x:8776/v1/$(tenant_id)s"
        },
        {
            "adminurl": "http://x.x.x.x:8773/services/Admin";,
            "region": "RegionOne",
            "internalurl": "http://x.x.x.x:8773/services/Cloud";,
            "service_id": "2b3d91dd9110493a92ea5eb7909d41cf",
            "id": "f7ef924364614d91b49a589ca7719ce6",
            "publicurl": "http://x.x.x.x:8773/services/Cloud";
        }
    ]
}

i didn't edit my local_settings.py, i just disabled the quantum then i restarted apache and memcached services.

Le 08/10/2012 10:59, Dolph Mathews a écrit :
Hmm... I don't see anything wrong there. Any chance you've overridden AVAILABLE_REGIONS in your horizon configuration? If so, what's the new value?

Also, to make sure service_id references are configured correctly, can you paste the raw output of:

    curl http://x.x.x.x:35357/v2.0/endpoints -H 'x-auth-token: ADMIN'

Substitute your own IP for keystone and a valid token.

-Dolph


On Mon, Oct 8, 2012 at 3:47 AM, Bilel Msekni <skible@xxxxxxxxxx <mailto:skible@xxxxxxxxxx>> wrote:

    Thanks for replying Dolph:


    keystone service-list
    +----------------------------------+----------+----------+------------------------------+
| id | name | type | description |
    +----------------------------------+----------+----------+------------------------------+
    | 020a5c2b03074e89972202f3822fa95f | quantum  | network  |
    OpenStack Networking service |
| 2b3d91dd9110493a92ea5eb7909d41cf | ec2 | ec2 | OpenStack EC2 service | | 4ef30c360f4e4e0aaac9d1247dcaafe8 | cinder | volume | OpenStack Volume Service | | 776d3b71749f4711bf1c956ccfeb2728 | glance | image | OpenStack Image Service | | 9733c366161f4f7f8e8484fe702ee840 | keystone | identity | OpenStack Identity | | c6011214a82645fe97b4bbd64608ad9b | nova | compute | OpenStack Compute Service |
    +----------------------------------+----------+----------+------------------------------+

    keystone endpoint-list
    +----------------------------------+-----------+----------------------------------------------+----------------------------------------------+----------------------------------------------+
| id | region | publicurl | internalurl | adminurl |
    +----------------------------------+-----------+----------------------------------------------+----------------------------------------------+----------------------------------------------+
    | 2febceec3f324755b0c9c7fe3ba2d29d | RegionOne |
    http://x.x.x.x:9696/ | http://x.x.x.x:9696/ | http://x.x.x.x:9696/ |
    | 649d5e5b5cd8467c89b218b2adc29009 | RegionOne |
    http://x.x.x.x:8774/v2/$(tenant_id)s
    <http://x.x.x.x:8774/v2/$%28tenant_id%29s> |
    http://x.x.x.x:8774/v2/$(tenant_id)s
    <http://x.x.x.x:8774/v2/$%28tenant_id%29s> |
    http://x.x.x.x:8774/v2/$(tenant_id)s
    <http://x.x.x.x:8774/v2/$%28tenant_id%29s> |
    | 7b25b6283dd4408d8c8f7541b9b9d2f0 | RegionOne |
    http://x.x.x.x:5000/v2.0 | http://x.x.x.x:5000/v2.0 |
    http://x.x.x.x:35357/v2.0 |
    | 9ebfa2784d78425fa08a146aa27e786b | RegionOne |
    http://x.x.x.x:9292/v2 | http://x.x.x.x:9292/v2 |
    http://x.x.x.x:9292/v2 |
    | f321ae42d39d4d9a9d5e771be459f6ba | RegionOne |
    http://x.x.x.x:8776/v1/$(tenant_id)s
    <http://x.x.x.x:8776/v1/$%28tenant_id%29s> |
    http://x.x.x.x:8776/v1/$(tenant_id)s
    <http://x.x.x.x:8776/v1/$%28tenant_id%29s> |
    http://x.x.x.x:8776/v1/$(tenant_id)s
    <http://x.x.x.x:8776/v1/$%28tenant_id%29s> |
    | f7ef924364614d91b49a589ca7719ce6 | RegionOne |
    http://x.x.x.x:8773/services/Cloud |
    http://x.x.x.x:8773/services/Cloud |
    http://x.x.x.x:8773/services/Admin |
    +----------------------------------+-----------+----------------------------------------------+----------------------------------------------+----------------------------------------------+

    x.x.x.x refers to my Host address :)



    Le 08/10/2012 10:18, Dolph Mathews a écrit :
    "it seems like it is looking for an endpoint which are all
    there" are you sure? -- it looks like your service catalog is
    missing the 'identity' service entirely... can you paste the
    output of the following two commands?:

        $ keystone service-list
        $ keystone endpoint-list

    -Dolph


    On Mon, Oct 8, 2012 at 2:59 AM, Bilel Msekni <skible@xxxxxxxxxx
    <mailto:skible@xxxxxxxxxx>> wrote:

        Good day everyone,

        I have installed OpenStack Folsom successfully but i am
        experiencing a wierd bug in the dashboard: It's not giving
        me any proper display.
        This is the error log i got from apache,
        http://pastebin.com/P44Edku5
         it seems like it is looking for an endpoint which are all
        there and working fine.

        P.S: I used this script to populate my database

        ===========================================================

        create_endpoint () {


        case $1 in


            compute)
            keystone endpoint-create --region $KEYSTONE_REGION
        --service-id $2 --publicurl
        'http://'"$MASTER"':8774/v2/$(tenant_id)s' --adminurl
        'http://'"$MASTER"':8774/v2/$(tenant_id)s' --internalurl
        'http://'"$MASTER"':8774/v2/$(tenant_id)s'


            ;;
            volume)


            keystone endpoint-create --region $KEYSTONE_REGION
        --service-id $2 --publicurl
        'http://'"$MASTER"':8776/v1/$(tenant_id)s' --adminurl
        'http://'"$MASTER"':8776/v1/$(tenant_id)s' --internalurl
        'http://'"$MASTER"':8776/v1/$(tenant_id)s'


            ;;
            image)

            keystone endpoint-create --region $KEYSTONE_REGION
        --service-id $2 --publicurl 'http://'"$MASTER"':9292/v2'
        --adminurl 'http://'"$MASTER"':9292/v2' --internalurl
        'http://'"$MASTER"':9292/v2'


            ;;
            object-store)


        if [ $SWIFT_MASTER ]; then


        keystone endpoint-create --region $KEYSTONE_REGION
        --service-id $2 --publicurl
        'http://'"$SWIFT_MASTER"':8080/v1/AUTH_$(tenant_id)s'
        --adminurl 'http://'"$SWIFT_MASTER"':8080/v1' --internalurl
        'http://'"$SWIFT_MASTER"':8080/v1/AUTH_$(tenant_id)s'


        else
        keystone endpoint-create --region $KEYSTONE_REGION
        --service-id $2 --publicurl
        'http://'"$MASTER"':8080/v1/AUTH_$(tenant_id)s' --adminurl
        'http://'"$MASTER"':8080/v1' --internalurl
        'http://'"$MASTER"':8080/v1/AUTH_$(tenant_id)s'


        fi
            ;;
            identity)
            keystone endpoint-create --region $KEYSTONE_REGION
        --service-id $2 --publicurl 'http://'"$MASTER"':5000/v2.0'
        --adminurl 'http://'"$MASTER"':35357/v2. 0' --internalurl
        'http://'"$MASTER"':5000/v2.0'


            ;;
            ec2)
            keystone endpoint-create --region $KEYSTONE_REGION
        --service-id $2 --publicurl
        'http://'"$MASTER"':8773/services/Cloud' --adminurl
        'http://'"$MASTER"':8773/services/Admin' --internalurl
        'http://'"$MASTER"':8773/services/Cloud'


            ;;
            network)


            keystone endpoint-create --region $KEYSTONE_REGION
        --service-id $2 --publicurl 'http://'"$MASTER"':9696/'
        --adminurl 'http://'"$MASTER"':9696/' --internalurl
        'http://'"$MASTER"':9696/'


            ;;
        esac
        }
        ====================================================================================================================



        Please, i need some help


        _______________________________________________
        Mailing list: https://launchpad.net/~openstack
        <https://launchpad.net/%7Eopenstack>
        Post to     : openstack@xxxxxxxxxxxxxxxxxxx
        <mailto:openstack@xxxxxxxxxxxxxxxxxxx>
        Unsubscribe : https://launchpad.net/~openstack
        <https://launchpad.net/%7Eopenstack>
        More help   : https://help.launchpad.net/ListHelp







_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to     : openstack@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


References