← Back to team overview

savanna-all team mailing list archive

Re: installation problem

 

Just to make sure that simple things work correctly can you execute this simple command? 

$ http $SAVANNA_URL/plugins X-Auth-Token:$AUTH_TOKEN

Response should look like:

HTTP/1.1 200 OK
Content-Length: 214
Content-Type: application/json
Date: Thu, 11 Jul 2013 13:19:12 GMT

{
    "plugins": [
        {
            "description": "This plugin provides an ability to launch vanilla Apache Hadoop cluster without any management consoles.",
            "name": "vanilla",
            "title": "Vanilla Apache Hadoop",
            "versions": [
                "1.1.2"
            ]
        }
    ]
}



Otherwise, could you please start Savanna with "-d" flag (which enables debug logging) repeat previous steps and send back debug logs.

Thanks for interest in the project!
Ruslan


On Friday, July 12, 2013 at 5:22 PM, Arindam Choudhury wrote:

> Thanks,
> 
> But still I have the same error:
> 
> (keystone_arindam)]# cat keystonerc_arindam 
> export OS_USERNAME=arindam
> export OS_TENANT_NAME=user
> export OS_PASSWORD=arindam
> export OS_AUTH_URL=http://158.109.65.223:5000/v2.0/
> export PS1='[\u@\h \W(keystone_arindam)]\$ '
> 
> (keystone_arindam)]# source keystonerc_arindam 
> 
> (keystone_arindam)]# keystone token-get
> +-----------+----------------------------------+
> |  Property |              Value               |
> +-----------+----------------------------------+
> |  expires  |       2013-07-13T13:18:02Z       |
> |     id    | d235fa6e0c4f461c8e6ce1e5b61ce2b6 |
> | tenant_id | 96b716ba9ce84ef7947d3c42ad185eae |
> |  user_id  | 6519f85ab0cf426cb6bd80970df1e433 |
> +-----------+----------------------------------+
> 
> (keystone_arindam)]# export AUTH_TOKEN="d235fa6e0c4f461c8e6ce1e5b61ce2b6"
> 
> (keystone_arindam)]# export TENANT_ID="96b716ba9ce84ef7947d3c42ad185eae"
> 
> (keystone_arindam)]# glance image-list --name savanna-0.2-vanilla-hadoop-ubuntu.qcow2
> +--------------------------------------+-----------------------------------------+-------------+------------------+-----------+--------+
> | ID                                   | Name                                    | Disk Format | Container Format | Size      | Status |
> +--------------------------------------+-----------------------------------------+-------------+------------------+-----------+--------+
> | 2ce47dc7-06ee-472e-a48d-180f86cd410b | savanna-0.2-vanilla-hadoop-ubuntu.qcow2 | qcow2       | bare             | 551699456 | active |
> +--------------------------------------+-----------------------------------------+-------------+------------------+-----------+--------+
> 
> (keystone_arindam)]# export IMAGE_ID="2ce47dc7-06ee-472e-a48d-180f86cd410b"
> 
> (keystone_arindam)]# netstat -an |grep 8386
> tcp        0      0 0.0.0.0:8386                0.0.0.0:*                   LISTEN   
>    
> [root@aolin23 ~(keystone_arindam)]# export SAVANNA_URL="http://localhost:8386/v1.0/$TENANT_ID";
> 
> (keystone_arindam)]# http POST $SAVANNA_URL/images/$IMAGE_ID X-Auth-Token:$AUTH_TOKEN username=ubuntu
> HTTP/1.1 404 NOT FOUND
> Content-Length: 156
> Content-Type: application/json
> Date: Fri, 12 Jul 2013 13:19:59 GMT
> 
> {
>     "error": 404, 
>     "error_message": "The requested URL was not found on the server.  If you entered the URL manually please check your spelling and try again."
> }
> 
> 
> Date: Fri, 12 Jul 2013 14:55:34 +0400
> From: rkamaldinov@xxxxxxxxxxxx (mailto:rkamaldinov@xxxxxxxxxxxx)
> To: arindam@xxxxxxxx (mailto:arindam@xxxxxxxx)
> CC: savanna-all@xxxxxxxxxxxxxxxxxxx (mailto:savanna-all@xxxxxxxxxxxxxxxxxxx); openstack-dev@xxxxxxxxxxxxxxxxxxx (mailto:openstack-dev@xxxxxxxxxxxxxxxxxxx)
> Subject: Re: [Savanna-all] installation problem
> 
> That's ok. You need to specify tenant id and provide auth token in headers. 
> You can find detailed how-tos here https://savanna.readthedocs.org/en/latest/devref/quickstart.html
> 
> 
> btw, please use openstack-dev mail-list for Savanna-related questions. Just prefix mail subject with [Savanna].
> 
> Ruslan 
> 
> On Friday, July 12, 2013 at 1:59 PM, Arindam Choudhury wrote:
> 
> > Hi,
> > 
> > The new document works great except this command $ sudo pip install savannadashboard.
> > 
> > I changed the savanna config to:
> > [DEFAULT]
> > 
> > # REST API config
> > port=8386
> > allow_cluster_ops=true
> > 
> > # Address and credentials that will be used to check auth tokens
> > os_auth_host=192.168.122.11
> > os_auth_port=35357
> > os_admin_username=admin
> > os_admin_password=openstack
> > os_admin_tenant_name=admin
> > 
> > # (Optional) Name of log file to output to. If not set,
> > # logging will go to stdout. (string value)
> > log_file=/home/arindam/savanna.log
> > 
> > [cluster_node]
> > 
> > # An existing user on Hadoop image (string value)
> > #username=root
> > 
> > # User's password (string value)
> > #password=swordfish
> > 
> > # When set to false, Savanna uses only internal IP of VMs.
> > # When set to true, Savanna expects OpenStack to auto-assign
> > # floating IPs to cluster nodes. Internal IPs will be used for
> > # inter-cluster communication, while floating ones will be
> > # used by Savanna to configure nodes. Also floating IPs will
> > # be exposed in service URLs (boolean value)
> > use_floating_ips=true
> > 
> > [sqlalchemy]
> > 
> > # URL for sqlalchemy database (string value)
> > database_uri=sqlite:////tmp/savanna-server.db
> > 
> > 
> > and I changed config of dashboard as specified.
> > 
> > but I can not access the savanna dashboard:
> > 
> > [arindam@sl-3 ~]$ curl http://localhost:8386/v1.0
> > <html>
> >  <head>
> >   <title>401 Unauthorized</title>
> >  </head>
> >  <body>
> >   <h1>401 Unauthorized</h1>
> >   This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.<br /><br />
> > Authentication required
> > 
> > 
> >  </body>
> > </html>
> > 
> > 
> > From: arindam@xxxxxxxx (mailto:arindam@xxxxxxxx)
> > To: rkamaldinov@xxxxxxxxxxxx (mailto:rkamaldinov@xxxxxxxxxxxx)
> > Subject: RE: [Savanna-all] installation problem
> > Date: Fri, 12 Jul 2013 11:33:24 +0200
> > 
> > Thanks.
> > 
> > Date: Fri, 12 Jul 2013 13:25:45 +0400
> > From: rkamaldinov@xxxxxxxxxxxx (mailto:rkamaldinov@xxxxxxxxxxxx)
> > To: arindam@xxxxxxxx (mailto:arindam@xxxxxxxx)
> > CC: openstack-dev@xxxxxxxxxxxxxxxxxxx (mailto:openstack-dev@xxxxxxxxxxxxxxxxxxx); savanna-all@xxxxxxxxxxxxxxxxxxx (mailto:savanna-all@xxxxxxxxxxxxxxxxxxx)
> > Subject: Re: [Savanna-all] installation problem
> > 
> > It seems that you're using the latest code from Savanna v0.2, but following instructions from Savanna v0.1.
> > Please follow these docs: https://savanna.readthedocs.org/en/latest/
> > 
> > 
> > Ruslan 
> > 
> > On Friday, July 12, 2013 at 1:19 PM, Arindam Choudhury wrote:
> > 
> > > Hi,
> > > 
> > > While installing savanna I am getting this error:
> > > 
> > > [arindam@sl-3 savanna]$ tox -evenv -- bin/savanna-db-manage --config-file etc/savanna/savanna.conf reset-db --with-gen-templates
> > > GLOB sdist-make: /home/arindam/savanna/setup.py
> > > venv inst-nodeps: /home/arindam/savanna/.tox/dist/savanna-0.2.a12.gf85d74f.zip
> > > venv runtests: commands[0] | bin/savanna-db-manage --config-file etc/savanna/savanna.conf reset-db --with-gen-templates
> > > ERROR: InvocationError: could not find executable 'bin/savanna-db-manage'
> > > _________________________________________________________________ summary __________________________________________________________________
> > > ERROR:   venv: commands failed
> > > 
> > > 
> > > Regards,
> > > Arindam
> > > -- 
> > > Mailing list: https://launchpad.net/~savanna-all
> > > Post to : savanna-all@xxxxxxxxxxxxxxxxxxx (mailto:savanna-all@xxxxxxxxxxxxxxxxxxx)
> > > Unsubscribe : https://launchpad.net/~savanna-all
> > > More help : https://help.launchpad.net/ListHelp
> > > 
> > > 
> > 
> > 
> > 
> > -- 
> > Mailing list: https://launchpad.net/~savanna-all
> > Post to : savanna-all@xxxxxxxxxxxxxxxxxxx (mailto:savanna-all@xxxxxxxxxxxxxxxxxxx)
> > Unsubscribe : https://launchpad.net/~savanna-all
> > More help : https://help.launchpad.net/ListHelp
> > 
> > 
> 
> 
> 
> -- 
> Mailing list: https://launchpad.net/~savanna-all
> Post to : savanna-all@xxxxxxxxxxxxxxxxxxx (mailto:savanna-all@xxxxxxxxxxxxxxxxxxx)
> Unsubscribe : https://launchpad.net/~savanna-all
> More help : https://help.launchpad.net/ListHelp
> 
> 



References