← Back to team overview

savanna-all team mailing list archive

Re: installation problem

 

hi,

i updated but still same problem.
[root@aolin23 ~(keystone_arindam)]# savanna-venv/bin/pip list | grep savanna
savanna (0.1.2)


(keystone_arindam)]# keystone token-get
+-----------+----------------------------------+
|  Property |              Value               |
+-----------+----------------------------------+
|  expires  |       2013-07-13T15:12:00Z       |
|     id    | edc3f04332c1471fbcccf4263de46fe4 |
| tenant_id | 96b716ba9ce84ef7947d3c42ad185eae |
|  user_id  | 6519f85ab0cf426cb6bd80970df1e433 |
+-----------+----------------------------------+
[root@aolin23 ~(keystone_arindam)]# export AUTH_TOKEN="edc3f04332c1471fbcccf4263de46fe4"
[root@aolin23 ~(keystone_arindam)]# export TENANT_ID="96b716ba9ce84ef7947d3c42ad185eae"
[root@aolin23 ~(keystone_arindam)]# export SAVANNA_URL="http://localhost:8386/v1.0/$TENANT_ID";
[root@aolin23 ~(keystone_arindam)]# http $SAVANNA_URL/plugins X-Auth-Token:$AUTH_TOKEN
HTTP/1.1 404 NOT FOUND
Content-Length: 156
Content-Type: application/json
Date: Fri, 12 Jul 2013 15:14:06 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."
}


The savannadashboard should be installed using python-pip or savanna-venv/bin/pip? I tried both and both gives same result.

in savanna-bin/bin there are a few scripts like activate, do i have to run them?




Date: Fri, 12 Jul 2013 18:59:32 +0400
Subject: Re: [Savanna-all] installation problem
From: dmescheryakov@xxxxxxxxxxxx
To: arindam@xxxxxxxx
CC: savanna-all@xxxxxxxxxxxxxxxxxxx

Hmm, I've got an idea on what might be wrong here: did you usesavanna-venv/bin/pip install savanna

to install Savanna? If yes, that is the problem: we still have Savanna 0.1.2 in pypi. We will put Savanna 0.2 here on 'official' release on next Monday. Sorry for that :-(

Right now you should usesavanna-venv/bin/pip install 'http://tarballs.openstack.org/savanna/savanna-master.tar.gz#egg=savanna'

to install the latest Savanna


2013/7/12 Arindam Choudhury <arindam@xxxxxxxx>




Hi,








(keystone_arindam)]# keystone token-get


+-----------+----------------------------------+


|  Property |              Value               |


+-----------+----------------------------------+


|  expires  |       2013-07-13T14:37:27Z       |


|     id    | 58e3d598d9e442e69a9c0b8f45bf7d3c |


| tenant_id | 96b716ba9ce84ef7947d3c42ad185eae |


|  user_id  | 6519f85ab0cf426cb6bd80970df1e433 |


+-----------+----------------------------------+


[root@aolin23 savanna-venv(keystone_arindam)]# export AUTH_TOKEN="58e3d598d9e442e69a9c0b8f45bf7d3c"


[root@aolin23 savanna-venv(keystone_arindam)]# export TENANT_ID="96b716ba9ce84ef7947d3c42ad185eae"


[root@aolin23 savanna-venv(keystone_arindam)]# export SAVANNA_URL="http://localhost:8386/v1.0/$TENANT_ID";


[root@aolin23 savanna-venv(keystone_arindam)]# http $SAVANNA_URL/plugins X-Auth-Token:$AUTH_TOKEN


HTTP/1.1 404 NOT FOUND


Content-Length: 156


Content-Type: application/json


Date: Fri, 12 Jul 2013 14:38:56 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."


}





The logs.





# savanna-venv/bin/python savanna-venv/bin/savanna-api -d --config-file savanna-venv/etc/savanna.conf


2013-07-12 16:37:13     INFO [keystoneclient.middleware.auth_token] Starting keystone auth_token middleware


2013-07-12 16:37:13     INFO [keystoneclient.middleware.auth_token] 
Using /tmp/keystone-signing-3GOTXG as cache directory for signing 
certificate


(7756) wsgi starting up on http://0.0.0.0:8386/


(7756) accepted ('127.0.0.1', 54127)


2013-07-12 16:38:56    DEBUG [keystoneclient.middleware.auth_token] Authenticating user token


2013-07-12 16:38:56    DEBUG [keystoneclient.middleware.auth_token] 
Removing headers from request environment: 
X-Identity-Status,X-Domain-Id,X-Domain-Name,X-Project-Id,X-Project-Name,X-Project-Domain-Id,X-Project-Domain-Name,X-User-Id,X-User-Name,X-User-Domain-Id,X-User-Domain-Name,X-Roles,X-Service-Catalog,X-User,X-Tenant-Id,X-Tenant-Name,X-Tenant,X-Role



2013-07-12 16:38:56    DEBUG [keystoneclient.middleware.auth_token] Server reports support for api versions: v3.0, v2.0


2013-07-12 16:38:56     INFO [keystoneclient.middleware.auth_token] Auth Token confirmed use of v2.0 apis


2013-07-12 16:38:56    DEBUG [keystoneclient.middleware.auth_token] Storing 58e3d598d9e442e69a9c0b8f45bf7d3c token in memcache


127.0.0.1 - - [12/Jul/2013 16:38:56] "GET /v1.0/96b716ba9ce84ef7947d3c42ad185eae/plugins HTTP/1.1" 404 272 0.162450


 


regards,


Arindam

From: arindam@xxxxxxxx
To: rkamaldinov@xxxxxxxxxxxx

Subject: RE: [Savanna-all] installation problem
Date: Fri, 12 Jul 2013 16:40:33 +0200




Hi,


(keystone_arindam)]# keystone token-get
+-----------+----------------------------------+
|  Property |              Value               |
+-----------+----------------------------------+

|  expires  |       2013-07-13T14:37:27Z       |
|     id    | 58e3d598d9e442e69a9c0b8f45bf7d3c |
| tenant_id | 96b716ba9ce84ef7947d3c42ad185eae |
|  user_id  | 6519f85ab0cf426cb6bd80970df1e433 |

+-----------+----------------------------------+
[root@aolin23 savanna-venv(keystone_arindam)]# export AUTH_TOKEN="58e3d598d9e442e69a9c0b8f45bf7d3c"
[root@aolin23 savanna-venv(keystone_arindam)]# export TENANT_ID="96b716ba9ce84ef7947d3c42ad185eae"

[root@aolin23 savanna-venv(keystone_arindam)]# export SAVANNA_URL="http://localhost:8386/v1.0/$TENANT_ID";
[root@aolin23 savanna-venv(keystone_arindam)]# http $SAVANNA_URL/plugins X-Auth-Token:$AUTH_TOKEN

HTTP/1.1 404 NOT FOUND
Content-Length: 156
Content-Type: application/json
Date: Fri, 12 Jul 2013 14:38:56 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."

}

The logs.

# savanna-venv/bin/python savanna-venv/bin/savanna-api -d --config-file savanna-venv/etc/savanna.conf
2013-07-12 16:37:13     INFO [keystoneclient.middleware.auth_token] Starting keystone auth_token middleware

2013-07-12 16:37:13     INFO [keystoneclient.middleware.auth_token] Using /tmp/keystone-signing-3GOTXG as cache directory for signing certificate
(7756) wsgi starting up on http://0.0.0.0:8386/

(7756) accepted ('127.0.0.1', 54127)
2013-07-12 16:38:56    DEBUG [keystoneclient.middleware.auth_token] Authenticating user token
2013-07-12 16:38:56    DEBUG [keystoneclient.middleware.auth_token] Removing headers from request environment: X-Identity-Status,X-Domain-Id,X-Domain-Name,X-Project-Id,X-Project-Name,X-Project-Domain-Id,X-Project-Domain-Name,X-User-Id,X-User-Name,X-User-Domain-Id,X-User-Domain-Name,X-Roles,X-Service-Catalog,X-User,X-Tenant-Id,X-Tenant-Name,X-Tenant,X-Role

2013-07-12 16:38:56    DEBUG [keystoneclient.middleware.auth_token] Server reports support for api versions: v3.0, v2.0
2013-07-12 16:38:56     INFO [keystoneclient.middleware.auth_token] Auth Token confirmed use of v2.0 apis

2013-07-12 16:38:56    DEBUG [keystoneclient.middleware.auth_token] Storing 58e3d598d9e442e69a9c0b8f45bf7d3c token in memcache
127.0.0.1 - - [12/Jul/2013 16:38:56] "GET /v1.0/96b716ba9ce84ef7947d3c42ad185eae/plugins HTTP/1.1" 404 272 0.162450

 
regards,
Arindam
Date: Fri, 12 Jul 2013 18:24:10 +0400
From: rkamaldinov@xxxxxxxxxxxx
To: arindam@xxxxxxxx

CC: savanna-all@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Savanna-all] 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 OKContent-Length: 214
Content-Type: application/jsonDate: 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
To: arindam@xxxxxxxx

CC: savanna-all@xxxxxxxxxxxxxxxxxxx; 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
To: 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
To: arindam@xxxxxxxx

CC: openstack-dev@xxxxxxxxxxxxxxxxxxx; 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-allPost to     : savanna-all@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~savanna-allMore help   : https://help.launchpad.net/ListHelp

                   
                   
                   
                   
                
                    


                 		 	   		   		 	   		  
-- Mailing list: https://launchpad.net/~savanna-allPost to     : savanna-all@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~savanna-allMore help   : https://help.launchpad.net/ListHelp

                  
                  
                  
                  
                
                    


                 		 	   		  
-- Mailing list: https://launchpad.net/~savanna-allPost to     : savanna-all@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~savanna-allMore help   : https://help.launchpad.net/ListHelp

                 
                 
                 
                 
                
                 
                
                    

                 		 	   		   		 	   		  

--

Mailing list: https://launchpad.net/~savanna-all

Post to     : savanna-all@xxxxxxxxxxxxxxxxxxx

Unsubscribe : https://launchpad.net/~savanna-all

More help   : https://help.launchpad.net/ListHelp



 		 	   		  

Follow ups

References