Re: [Openstack] Installation errors

2011-08-30 Thread Leandro Reox
what is the output of euca-get-console-output $instancename and the
nova-compute.log on the running node

On Tue, Aug 30, 2011 at 1:55 AM, bhaskar kotha kothabhas...@gmail.comwrote:

 Dear All,

 I was able to run the instances but the problem I am facing is that the
 instances are in shutdown state.
 1.
 #euca-run-instances ami-0003 -k test -t m1.tiny
 # euca-describe-instances
 RESERVATION r-6t4mze5l  admin   default
 INSTANCEi-0002  ami-000310.0.0.4
 10.0.0.4shutdowntest (admin, nova-dx2480-MT)
 0   m1.tiny 2011-08-30T04:29:16Znovaaki-0001
 ari-0002

 how can I make the instance to be in running state. Please suggest.

 Thanks,
 Bhaskar







 On Mon, Aug 29, 2011 at 8:21 PM, Leo van den Bulck lvdbu...@gmail.comwrote:

 Mauricio,

 This is the one that I used:

 http://cloudbuilders.github.com/deploy.sh/hacking-nova.html

 It pulls the sources from Bazaar/Launchpad or from Git/Github (you can
 choose which one you want to use by setting environment variables).
 Then you use nova.sh to build, install and run nova/openstack.

 I liked the nova.sh approach because nova.sh gives you plenty control
 and flexibility over the process. For instance, apart from the GIT variable
 there are some other environment variables that you can tweak, e.g. you can
 have the Dashboard (web based management console) running under Apache httpd
 instead of just as a standalone Django server.

 Compared to the other installation approach which uses 'Chef', I liked the
 nova.sh approach better because (1) the Chef procedure requires you to
 become familiar with yet another tool (Chef), (2) the Chef procedure threw
 an error which I had to fix in the Chef cookbooks before being able to
 proceed. Nova.sh on the other hand is just a shell script and therefore much
 more accessible if you don't know Chef. The nova,.sh script is even
 documented somewhere in a blog.

 Anyway, so you also get this Dashboard, which is nice, but I had to do
 quite a bit of tweaking/hacking to get that part working. For instance I had
 to create some symlinks to get Dashboard/Apache working and had to tweak a
 few Python sources to get rid of some errors. For the rest it worked fine
 (or almost so) out of the box (I believe there was one error thrown by the
 Nova API process which required tweaking a Python module, otherwise only the
 EC2 api runs and not the Nova API - which causes authentication to fail in
 the Dashboard to begin with).

 I'm running it within a VirtualBox/Vagrant session (Ubuntu) under Max OS
 X, but that isn't important really, you should be able to use the same
 procedure directly under Ubuntu if you have a Linux box.

 I could do a little writeup of what I did exactly to get all of it
 working.

 --Leo--


 On Aug 29, 2011, at 4:21 PM, Mauricio Arango wrote:

 Leo,

 Could you please send the link to the Openstack setup that worked for
 you.
 Thanks,

 Mauricio



 On Mon, Aug 29, 2011 at 9:45 AM, bhaskar kotha kothabhas...@gmail.comwrote:


 Dear Leo van den Bulck ,
 When i am doing ./nova.sh install
 i am getting following error
  Downloading/unpacking glance from bzr+https://launchpad.net/glance(from 
 -r /root/dash/openstack-dashboard/tools/pip-requires (line 19))
   Checking out https://launchpad.net/glance to
 ./.dashboard-venv/build/glance
 bzr: ERROR: Connection error: curl connection error (server certificate
 verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile:
 none)
 
  i am having restriction with curl but if i know from where the curl
 commond runs i can put -k option.
 But here this is from line 19: pip-requires file bzr+
 https://launchpad.net/glance#egg=glance

  so here i am not getting how to disable curl certification fail.



 please can any one help me to resolve this issue.

 Thanks,
 Bhaskar.K


 On Mon, Aug 29, 2011 at 4:22 PM, Leo van den Bulck 
 lvdbu...@gmail.comwrote:

 Hi,

 Why don't you use this guide to set up Openstack (nova//glance):


 I tried numerous procedures that I found all over the internet (it's
 REALLY confusing which is which and what's the status of all those
 documents) and permutations thereof, but finally this one worked for me and
 it's really easy.
 (the other ones include complete Ubuntu images from Stackops, complete
 manual installation, automated installation with Vagrant/Chef etc etc - 
 none
 of them really worked for me)

 It even includes installation of the Dashboard (web-based management
 interface for Nova) integrated with Keystone (unified authentication
 service).
 However to get Dashboard/Keystone working I had to do some hacking
 because this didn't work out of the box. I can send you my notes on that if
 you want to get Dashboard working as well.

 Cheers,
 Leo


 On Aug 29, 2011, at 12:13 PM, KothaBhaskar wrote:

  Dear All,

  I am  interested in Openstack development,
  i started installation setup, i am getting some errors like
  when i am doing 

Re: [Openstack] Installation errors

2011-08-30 Thread bhaskar kotha
hi,

The output for euca-get-console-output i-0008 is:

*i-0008
2011-08-30T06:17:52Z*

Thanks,
Bhaskar

On Tue, Aug 30, 2011 at 11:45 AM, Leandro Reox leandro.r...@gmail.comwrote:

 what is the output of euca-get-console-output $instancename and the
 nova-compute.log on the running node


 On Tue, Aug 30, 2011 at 1:55 AM, bhaskar kotha kothabhas...@gmail.comwrote:

 Dear All,

 I was able to run the instances but the problem I am facing is that the
 instances are in shutdown state.
 1.
 #euca-run-instances ami-0003 -k test -t m1.tiny
 # euca-describe-instances
 RESERVATION r-6t4mze5l  admin   default
 INSTANCEi-0002  ami-000310.0.0.4
 10.0.0.4shutdowntest (admin, nova-dx2480-MT)
 0   m1.tiny 2011-08-30T04:29:16Znovaaki-0001
 ari-0002

 how can I make the instance to be in running state. Please suggest.

 Thanks,
 Bhaskar







 On Mon, Aug 29, 2011 at 8:21 PM, Leo van den Bulck lvdbu...@gmail.comwrote:

 Mauricio,

 This is the one that I used:

 http://cloudbuilders.github.com/deploy.sh/hacking-nova.html

 It pulls the sources from Bazaar/Launchpad or from Git/Github (you can
 choose which one you want to use by setting environment variables).
 Then you use nova.sh to build, install and run nova/openstack.

 I liked the nova.sh approach because nova.sh gives you plenty control
 and flexibility over the process. For instance, apart from the GIT variable
 there are some other environment variables that you can tweak, e.g. you can
 have the Dashboard (web based management console) running under Apache httpd
 instead of just as a standalone Django server.

 Compared to the other installation approach which uses 'Chef', I liked
 the nova.sh approach better because (1) the Chef procedure requires you to
 become familiar with yet another tool (Chef), (2) the Chef procedure threw
 an error which I had to fix in the Chef cookbooks before being able to
 proceed. Nova.sh on the other hand is just a shell script and therefore much
 more accessible if you don't know Chef. The nova,.sh script is even
 documented somewhere in a blog.

 Anyway, so you also get this Dashboard, which is nice, but I had to do
 quite a bit of tweaking/hacking to get that part working. For instance I had
 to create some symlinks to get Dashboard/Apache working and had to tweak a
 few Python sources to get rid of some errors. For the rest it worked fine
 (or almost so) out of the box (I believe there was one error thrown by the
 Nova API process which required tweaking a Python module, otherwise only the
 EC2 api runs and not the Nova API - which causes authentication to fail in
 the Dashboard to begin with).

 I'm running it within a VirtualBox/Vagrant session (Ubuntu) under Max OS
 X, but that isn't important really, you should be able to use the same
 procedure directly under Ubuntu if you have a Linux box.

 I could do a little writeup of what I did exactly to get all of it
 working.

 --Leo--


 On Aug 29, 2011, at 4:21 PM, Mauricio Arango wrote:

 Leo,

 Could you please send the link to the Openstack setup that worked for
 you.
 Thanks,

 Mauricio



 On Mon, Aug 29, 2011 at 9:45 AM, bhaskar kotha 
 kothabhas...@gmail.comwrote:


 Dear Leo van den Bulck ,
 When i am doing ./nova.sh install
 i am getting following error
  Downloading/unpacking glance from bzr+https://launchpad.net/glance(from 
 -r /root/dash/openstack-dashboard/tools/pip-requires (line 19))
   Checking out https://launchpad.net/glance to
 ./.dashboard-venv/build/glance
 bzr: ERROR: Connection error: curl connection error (server certificate
 verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile:
 none)
 
  i am having restriction with curl but if i know from where the curl
 commond runs i can put -k option.
 But here this is from line 19: pip-requires file bzr+
 https://launchpad.net/glance#egg=glance

  so here i am not getting how to disable curl certification fail.



 please can any one help me to resolve this issue.

 Thanks,
 Bhaskar.K


 On Mon, Aug 29, 2011 at 4:22 PM, Leo van den Bulck 
 lvdbu...@gmail.comwrote:

 Hi,

 Why don't you use this guide to set up Openstack (nova//glance):


 I tried numerous procedures that I found all over the internet (it's
 REALLY confusing which is which and what's the status of all those
 documents) and permutations thereof, but finally this one worked for me 
 and
 it's really easy.
 (the other ones include complete Ubuntu images from Stackops, complete
 manual installation, automated installation with Vagrant/Chef etc etc - 
 none
 of them really worked for me)

 It even includes installation of the Dashboard (web-based management
 interface for Nova) integrated with Keystone (unified authentication
 service).
 However to get Dashboard/Keystone working I had to do some hacking
 because this didn't work out of the box. I can send you my notes on that 
 if
 you want to get Dashboard working as well.

 Cheers,
 Leo


 On 

Re: [Openstack] Error while attaching a Compute node

2011-08-30 Thread Leandro Reox
Are running diablo milestone ?

There's only 3 ways to get this mysql error :


   - If the two fields ( field and the foreing field) uses non-compatible
   field types


   - If its using “On Delete Set Null” but the field doesnt allow that
   - The FK name is not unique



A quick solution is to disable Foreing Key check before the query and
reenabling it,

set foreign_key_checks = 0 ;
NOVA DB SYNC
now enable by, set foreign_key_checks = 1

but i dont know if this is actually a bug. If youre running on release
this should not happen.

Regards


On Tue, Aug 30, 2011 at 4:34 AM, Rasika Karunathilaka 
rasika.karunathil...@gmail.com wrote:


 Hi Team,

  When I am trying to attach a compute node into Cloud Control node , I am
 getting following error on /var/log/nova/nova-compute.log . Server1 is the
 cloud control node, Server2 is the compute node which I am trying to attach.

 *2011-08-30 12:16:18+0500 [-]   File
 /usr/lib/python2.6/dist-packages/sqlalchemy/engine/default.py, line 288,
 in do_execute
 2011-08-30 12:16:18+0500 [-] cursor.execute(statement, parameters)
 2011-08-30 12:16:18+0500 [-]   File
 /usr/lib/pymodules/python2.6/MySQLdb/cursors.py, line 166, in execute
 2011-08-30 12:16:18+0500 [-] self.errorhandler(self, exc, value)
 2011-08-30 12:16:18+0500 [-]   File
 /usr/lib/pymodules/python2.6/MySQLdb/connections.py, line 35, in
 defaulterrorhandler
 2011-08-30 12:16:18+0500 [-] raise errorclass, errorvalue
 2011-08-30 12:16:18+0500 [-] sqlalchemy.exc.OperationalError:
 (OperationalError) (1005, Can't create table 'nova.network_indexes' (errno:
 150)) '\nCREATE TABLE network_indexes (\n\tcreated_at DATETIME,
 \n\tupdated_at DATETIME, \n\tdeleted_at DATETIME, \n\tdeleted BOOL, \n\tid
 INTEGER NOT NULL AUTO_INCREMENT, \n\t`index` INTEGER, \n\tnetwork_id
 INTEGER, \n\tPRIMARY KEY (id), \n\tCHECK (deleted IN (0, 1)), \n\tFOREIGN
 KEY(network_id) REFERENCES networks (id), \n\tUNIQUE
 (`index`)\n)ENGINE=InnoDB\n\n' ()
 2011-08-30 12:22:26+0500 [-] Log opened.**
 *
  Compute node's nova-compute.conf file is;

 --ca_path=/var/lib/nova/CA
 --keys_path=/var/lib/nova/keys
 --instances_path=/var/lib/nova/instances
 --injected_network_template=/usr/share/nova/interfaces.template
 --libvirt_xml_template=/usr/share/nova/libvirt.qemu.xml.template
 --libvirt_uml_xml_template=/usr/share/nova/libvirt.uml.xml.template
 --vpn_client_template=/usr/share/nova/client.ovpn.template
 --credentials_template=/usr/share/nova/novarc.template
 --logfile=/var/log/nova/nova-compute.log
 --dhcpbridge=/usr/bin/nova-dhcpbridge
 --logdir=/var/log/nova
 --lock_path=/var/lock/nova
 --state_path=/var/lib/nova
 --verbose
 --s3_host=192.168.104.1
 --rabbit_host=192.168.104.1
 --cc_host=192.168.104.1
 --ec2_url=http://192.168.104.1:8773/services/Cloud
 --fixed_range=192.168.104.0/24
 --network_size=8
 --FAKE_subdomain=ec2
 --routing_source_ip=192.168.104.1
 --sql_connection=mysql://root:passwd@192.168.104.1/nova
 --glance_host=192.168.104.1
 --image_service=nova.image.glance.GlanceImageService

  Could you please help to resolve this!

 Cheers!
 Rasika Karunathilaka.

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


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


[Openstack] Error while attaching a Compute node

2011-08-30 Thread Rasika Karunathilaka
Hi Team,

 When I am trying to attach a compute node into Cloud Control node , I am
getting following error on /var/log/nova/nova-compute.log . Server1 is the
cloud control node, Server2 is the compute node which I am trying to attach.

*2011-08-30 12:16:18+0500 [-]   File
/usr/lib/python2.6/dist-packages/sqlalchemy/engine/default.py, line 288,
in do_execute
2011-08-30 12:16:18+0500 [-] cursor.execute(statement, parameters)
2011-08-30 12:16:18+0500 [-]   File
/usr/lib/pymodules/python2.6/MySQLdb/cursors.py, line 166, in execute
2011-08-30 12:16:18+0500 [-] self.errorhandler(self, exc, value)
2011-08-30 12:16:18+0500 [-]   File
/usr/lib/pymodules/python2.6/MySQLdb/connections.py, line 35, in
defaulterrorhandler
2011-08-30 12:16:18+0500 [-] raise errorclass, errorvalue
2011-08-30 12:16:18+0500 [-] sqlalchemy.exc.OperationalError:
(OperationalError) (1005, Can't create table 'nova.network_indexes' (errno:
150)) '\nCREATE TABLE network_indexes (\n\tcreated_at DATETIME,
\n\tupdated_at DATETIME, \n\tdeleted_at DATETIME, \n\tdeleted BOOL, \n\tid
INTEGER NOT NULL AUTO_INCREMENT, \n\t`index` INTEGER, \n\tnetwork_id
INTEGER, \n\tPRIMARY KEY (id), \n\tCHECK (deleted IN (0, 1)), \n\tFOREIGN
KEY(network_id) REFERENCES networks (id), \n\tUNIQUE
(`index`)\n)ENGINE=InnoDB\n\n' ()
2011-08-30 12:22:26+0500 [-] Log opened.**
*
 Compute node's nova-compute.conf file is;

--ca_path=/var/lib/nova/CA
--keys_path=/var/lib/nova/keys
--instances_path=/var/lib/nova/instances
--injected_network_template=/usr/share/nova/interfaces.template
--libvirt_xml_template=/usr/share/nova/libvirt.qemu.xml.template
--libvirt_uml_xml_template=/usr/share/nova/libvirt.uml.xml.template
--vpn_client_template=/usr/share/nova/client.ovpn.template
--credentials_template=/usr/share/nova/novarc.template
--logfile=/var/log/nova/nova-compute.log
--dhcpbridge=/usr/bin/nova-dhcpbridge
--logdir=/var/log/nova
--lock_path=/var/lock/nova
--state_path=/var/lib/nova
--verbose
--s3_host=192.168.104.1
--rabbit_host=192.168.104.1
--cc_host=192.168.104.1
--ec2_url=http://192.168.104.1:8773/services/Cloud
--fixed_range=192.168.104.0/24
--network_size=8
--FAKE_subdomain=ec2
--routing_source_ip=192.168.104.1
--sql_connection=mysql://root:passwd@192.168.104.1/nova
--glance_host=192.168.104.1
--image_service=nova.image.glance.GlanceImageService

 Could you please help to resolve this!

Cheers!
Rasika Karunathilaka.
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Error while attaching a Compute node

2011-08-30 Thread Rasika Karunathilaka
Hi Leandra/Team,
 I set the set foreign_key_checks = 0 ;  at mysql DB and then executed;
/etc/init.d/nova-compute start

However still I am getting the same error on /var/log/nova/nova-compute.log
stating;

*sqlalchemy.exc.OperationalError: (OperationalError) (1005, Can't create
table 'nova.network_indexes' (errno: 150)) '\nCREATE TABLE network_indexes
(\n\tcreated_at DATETIME, \n\tupdated_at DATETIME, \n\tdeleted_at DATETIME,
\n\tdeleted BOOL, \n\tid INTEGER NOT NULL AUTO_INCREMENT, \n\t`index`
INTEGER, \n\tnetwork_id INTEGER, \n\tPRIMARY KEY (id), \n\tCHECK (deleted IN
(0, 1)), \n\tUNIQUE (`index`), \n\tFOREIGN KEY(network_id) REFERENCES
networks (id)\n)ENGINE=InnoDB\n\n' ()

*
NOVA server is running on Ubuntu 11.04 - 64 bit server
NOVA Compute is running on Ubuntu 10.10  - 64 bit desktop

I got nova for the compute node Ubuntu repository using apt-get and the
version displays as
 nova-compute 0.9.1~bzr331-0ubuntu2

Nova version at the Server displays as:   2011.2-0ubuntu1

Appreciate your help.


Cheers!
Rasika K



On Tue, Aug 30, 2011 at 12:47 PM, Leandro Reox leandro.r...@gmail.comwrote:

 Are running diablo milestone ?

 There's only 3 ways to get this mysql error :


- If the two fields ( field and the foreing field) uses non-compatible
field types


- If its using “On Delete Set Null” but the field doesnt allow that
- The FK name is not unique



 A quick solution is to disable Foreing Key check before the query and
 reenabling it,

 set foreign_key_checks = 0 ;
 NOVA DB SYNC
 now enable by, set foreign_key_checks = 1

 but i dont know if this is actually a bug. If youre running on release
 this should not happen.

 Regards


 On Tue, Aug 30, 2011 at 4:34 AM, Rasika Karunathilaka 
 rasika.karunathil...@gmail.com wrote:


 Hi Team,

  When I am trying to attach a compute node into Cloud Control node , I am
 getting following error on /var/log/nova/nova-compute.log . Server1 is the
 cloud control node, Server2 is the compute node which I am trying to attach.

 *2011-08-30 12:16:18+0500 [-]   File
 /usr/lib/python2.6/dist-packages/sqlalchemy/engine/default.py, line 288,
 in do_execute
 2011-08-30 12:16:18+0500 [-] cursor.execute(statement, parameters)
 2011-08-30 12:16:18+0500 [-]   File
 /usr/lib/pymodules/python2.6/MySQLdb/cursors.py, line 166, in execute
 2011-08-30 12:16:18+0500 [-] self.errorhandler(self, exc, value)
 2011-08-30 12:16:18+0500 [-]   File
 /usr/lib/pymodules/python2.6/MySQLdb/connections.py, line 35, in
 defaulterrorhandler
 2011-08-30 12:16:18+0500 [-] raise errorclass, errorvalue
 2011-08-30 12:16:18+0500 [-] sqlalchemy.exc.OperationalError:
 (OperationalError) (1005, Can't create table 'nova.network_indexes' (errno:
 150)) '\nCREATE TABLE network_indexes (\n\tcreated_at DATETIME,
 \n\tupdated_at DATETIME, \n\tdeleted_at DATETIME, \n\tdeleted BOOL, \n\tid
 INTEGER NOT NULL AUTO_INCREMENT, \n\t`index` INTEGER, \n\tnetwork_id
 INTEGER, \n\tPRIMARY KEY (id), \n\tCHECK (deleted IN (0, 1)), \n\tFOREIGN
 KEY(network_id) REFERENCES networks (id), \n\tUNIQUE
 (`index`)\n)ENGINE=InnoDB\n\n' ()
 2011-08-30 12:22:26+0500 [-] Log opened.**
 *
  Compute node's nova-compute.conf file is;

 --ca_path=/var/lib/nova/CA
 --keys_path=/var/lib/nova/keys
 --instances_path=/var/lib/nova/instances
 --injected_network_template=/usr/share/nova/interfaces.template
 --libvirt_xml_template=/usr/share/nova/libvirt.qemu.xml.template
 --libvirt_uml_xml_template=/usr/share/nova/libvirt.uml.xml.template
 --vpn_client_template=/usr/share/nova/client.ovpn.template
 --credentials_template=/usr/share/nova/novarc.template
 --logfile=/var/log/nova/nova-compute.log
 --dhcpbridge=/usr/bin/nova-dhcpbridge
 --logdir=/var/log/nova
 --lock_path=/var/lock/nova
 --state_path=/var/lib/nova
 --verbose
 --s3_host=192.168.104.1
 --rabbit_host=192.168.104.1
 --cc_host=192.168.104.1
 --ec2_url=http://192.168.104.1:8773/services/Cloud
 --fixed_range=192.168.104.0/24
 --network_size=8
 --FAKE_subdomain=ec2
 --routing_source_ip=192.168.104.1
 --sql_connection=mysql://root:passwd@192.168.104.1/nova
 --glance_host=192.168.104.1
 --image_service=nova.image.glance.GlanceImageService

  Could you please help to resolve this!

 Cheers!
 Rasika Karunathilaka.

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





--
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] Automated Test Suite for OpenStack

2011-08-30 Thread Kiran . Murari
 Hello List,I have been testing OpenStack for a while and would be interested in any automated test suites that are available.On searching what I could find was Soren's presentation at EuroPython-2011http://lanyrd.com/2011/europython/sfwky/Is the test battery that is run against the installed "cloud" available for download.Would appreciate any pointers on getting an automated test suite.Thanks,Kiran

E-mail Disclaimer: http://www.csscorp.com/common/email-disclaimer.php

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


Re: [Openstack] Automated Test Suite for OpenStack

2011-08-30 Thread Jay Pipes
On Tue, Aug 30, 2011 at 4:34 AM,  kiran.mur...@csscorp.com wrote:
 Hello List,

Hello! :)

 I have been testing OpenStack for a while and would be interested in any
 automated test suites that are available.

There are a number of them...

 On searching what I could find was Soren's presentation at EuroPython-2011
 http://lanyrd.com/2011/europython/sfwky/

 Is the test battery that is run against the installed cloud available for
 download.

 Would appreciate any pointers on getting an automated test suite.

Actually, Soren is working on combining many of the existing
partially-complete or duplicated efforts around functional/integration
testing into a single unified functional test framework. Part of that
work is aggregating the numerous test *cases* into this new framework.

Expect to see an email in the next couple days from Soren announcing
this work and explaining ways that you can contribute!

Cheers!
jay

 Thanks,
 Kiran
 E-mail Disclaimer: http://www.csscorp.com/common/email-disclaimer.php

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



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


[Openstack] nova-vncproxy configuration issue

2011-08-30 Thread Rasika Karunathilaka
Hi Team,
 I tried configuring nova-vncproxy, but at

 /usr/bin/nova-vncproxy --vncproxy_wwwroot /home/localadmin/src/noVNC
--flagfile=/etc/nova/nova.conf

 I am getting following error at /var/log/nova/nova-vncproxy.log


*2011-08-30 17:39:10,698 CRITICAL nova [-] name '_' is not defined
(nova): TRACE: Traceback (most recent call last):
(nova): TRACE:   File /usr/bin/nova-vncproxy, line 84, in module
(nova): TRACE: LOG.audit(_(Starting nova-vncproxy node (version %s)),
(nova): TRACE: NameError: name '_' is not defined
(nova): TRACE:
*
I included following entries on nova.conf, highly appreciate if you could
help me to resolve this.

*--vnc_console_proxy_url=http://192.168.104.1:6080
--vnc_enabled=True
--vncproxy_host=192.168.104.1
--vncproxy_url=http://192.168.104.1:6080

*
Cheers!
Rasika K.
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Automated Test Suite for OpenStack

2011-08-30 Thread Dan Prince


I Kiran,


If you are interested in functionally testing the various openstack API's you 
might check out the following:


https://github.com/rackspace-titan/stacktester (v1.1 OSAPI tests written in 
Python)


https://github.com/dprince/openstack_vpc/tree/master/tests/ruby (v1.0 OSAPI 
tests using Ruby bindings)


Also, You can run the nova 'smoketests' directory tests which help verify the 
EC2 API functionality.


We've also got a system called 'SmokeStack' which has the ability to run these 
three test suites on Nova configurations using both libvirt and XenServer. If 
you are interested in a system to run tests on arbitrary nova/glance branch 
builds you might check out:


http://wiki.openstack.org/smokestack
 
Hope this helps.
 
Dan
 
-Original Message-
From: kiran.mur...@csscorp.com
Sent: Tuesday, August 30, 2011 5:34am
To: openstack@lists.launchpad.net
Subject: [Openstack] Automated Test Suite for OpenStack



Hello List,

I have been testing OpenStack for a while and would be interested in any 
automated test suites that are available.

On searching what I could find was Soren's presentation at EuroPython-2011
[http://lanyrd.com/2011/europython/sfwky/] 
http://lanyrd.com/2011/europython/sfwky/

Is the test battery that is run against the installed cloud available for 
download.

Would appreciate any pointers on getting an automated test suite.

Thanks,
Kiran 
 E-mail Disclaimer: http://www.csscorp.com/common/email-disclaimer.php ___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Installation errors

2011-08-30 Thread Vishvananda Ishaya
If the instance is going into shutdown, it is having trouble booting for some 
reason.

If you check /var/log/libvirt/qemu/instance-.log, you should see an 
error message explaining why the image failed to boot. It could be permissions 
or a bad kernel, but you should get some info there.

Vish


On Aug 29, 2011, at 11:22 PM, bhaskar kotha wrote:

 Please find the attached log file.
 
 On Tue, Aug 30, 2011 at 11:49 AM, bhaskar kotha kothabhas...@gmail.com 
 wrote:
 
 snip
 
 -- 
 Thanks,
 Bhaskar.K
 nova-compute.log___
 Mailing list: https://launchpad.net/~openstack
 Post to : openstack@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~openstack
 More help   : https://help.launchpad.net/ListHelp

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


Re: [Openstack] nova-vncproxy configuration issue

2011-08-30 Thread Vishvananda Ishaya
Hmm, the _ is installed when nova is imported.  I'm nots sure what would make 
it get missed.  Is it possible you have an old version of nova installed in 
your path somewhere that doesn't have an __init__.py that does gettext.install?

from nova import flags and similar lines should be installing it.

As a workaround, you could do:

import gettext
gettext.install('nova',unicode=1)

but it would be good to figure out why that isn't being done at import.

Vish

On Aug 30, 2011, at 5:17 AM, Rasika Karunathilaka wrote:

 Hi Team,
  I tried configuring nova-vncproxy, but at 
 
  /usr/bin/nova-vncproxy --vncproxy_wwwroot /home/localadmin/src/noVNC 
 --flagfile=/etc/nova/nova.conf
 
  I am getting following error at /var/log/nova/nova-vncproxy.log
 
 
 2011-08-30 17:39:10,698 CRITICAL nova [-] name '_' is not defined
 (nova): TRACE: Traceback (most recent call last):
 (nova): TRACE:   File /usr/bin/nova-vncproxy, line 84, in module
 (nova): TRACE: LOG.audit(_(Starting nova-vncproxy node (version %s)),
 (nova): TRACE: NameError: name '_' is not defined
 (nova): TRACE: 
 
 I included following entries on nova.conf, highly appreciate if you could 
 help me to resolve this.
 
 --vnc_console_proxy_url=http://192.168.104.1:6080
 --vnc_enabled=True
 --vncproxy_host=192.168.104.1
 --vncproxy_url=http://192.168.104.1:6080
 
 
 Cheers!
 Rasika K.
 ___
 Mailing list: https://launchpad.net/~openstack
 Post to : openstack@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~openstack
 More help   : https://help.launchpad.net/ListHelp

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


Re: [Openstack] Nova: Admin API blueprints

2011-08-30 Thread Vishvananda Ishaya
users/tenants should be managed with keystone.  So this would really be in the 
purview of the keystone admin api.

On Aug 30, 2011, at 10:20 AM, Nguyen, Liem Manh wrote:

 Hi Glen,
  
 This may be a tangential question, but I don’t see a Nova Admin API to allow 
 creation/deletion of projects and user accounts.  With Keystone integration, 
 we can do that lazily; but, is there a proactive way to do so via an API?
  
 Thanks,
 Liem

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


Re: [Openstack] Nova: Admin API blueprints

2011-08-30 Thread Nguyen, Liem Manh
How is Nova project/user deletion handled then?  There is no synchronization 
for that currently.

Liem

From: Vishvananda Ishaya [mailto:vishvana...@gmail.com]
Sent: Tuesday, August 30, 2011 11:04 AM
To: Nguyen, Liem Manh
Cc: Glen Campbell; openstack@lists.launchpad.net
Subject: Re: [Openstack] Nova: Admin API blueprints

users/tenants should be managed with keystone.  So this would really be in the 
purview of the keystone admin api.

On Aug 30, 2011, at 10:20 AM, Nguyen, Liem Manh wrote:


Hi Glen,

This may be a tangential question, but I don't see a Nova Admin API to allow 
creation/deletion of projects and user accounts.  With Keystone integration, we 
can do that lazily; but, is there a proactive way to do so via an API?

Thanks,
Liem

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


Re: [Openstack] Nova: Admin API blueprints

2011-08-30 Thread Nguyen, Liem Manh
So, by the release of Diablo, the account and project operations from the 
nova-manage command won't be there anymore, and things should be done via 
Keystone?  I assume role will go away as well, since this is also covered by 
Keystone.   Is this correct?

Thanks,
Liem

From: Vishvananda Ishaya [mailto:vishvana...@gmail.com]
Sent: Tuesday, August 30, 2011 11:31 AM
To: Nguyen, Liem Manh
Cc: Glen Campbell; openstack@lists.launchpad.net
Subject: Re: [Openstack] Nova: Admin API blueprints

With keystone in use, there is no user and project object in nova anymore.  So 
the only thing that would make sense inside of nova is: delete all resources 
associated with a  given project_id string.

Vish


On Aug 30, 2011, at 11:11 AM, Nguyen, Liem Manh wrote:


How is Nova project/user deletion handled then?  There is no synchronization 
for that currently.

Liem
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Nova: Admin API blueprints

2011-08-30 Thread Vishvananda Ishaya
With keystone in use, there is no user and project object in nova anymore.  So 
the only thing that would make sense inside of nova is: delete all resources 
associated with a  given project_id string.

Vish


On Aug 30, 2011, at 11:11 AM, Nguyen, Liem Manh wrote:

 How is Nova project/user deletion handled then?  There is no synchronization 
 for that currently.
  
 Liem
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Error while attaching a Compute node

2011-08-30 Thread Vishvananda Ishaya
using two different versions of nova on the different hosts will cause a 
problem.  0.9.1 is ancient at this point.

On Aug 30, 2011, at 12:34 AM, Rasika Karunathilaka wrote:

 
 Hi Team,
 
  When I am trying to attach a compute node into Cloud Control node , I am 
 getting following error on /var/log/nova/nova-compute.log . Server1 is the 
 cloud control node, Server2 is the compute node which I am trying to attach.
 
 2011-08-30 12:16:18+0500 [-]   File 
 /usr/lib/python2.6/dist-packages/sqlalchemy/engine/default.py, line 288, in 
 do_execute
 2011-08-30 12:16:18+0500 [-] cursor.execute(statement, parameters)
 2011-08-30 12:16:18+0500 [-]   File 
 /usr/lib/pymodules/python2.6/MySQLdb/cursors.py, line 166, in execute
 2011-08-30 12:16:18+0500 [-] self.errorhandler(self, exc, value)
 2011-08-30 12:16:18+0500 [-]   File 
 /usr/lib/pymodules/python2.6/MySQLdb/connections.py, line 35, in 
 defaulterrorhandler
 2011-08-30 12:16:18+0500 [-] raise errorclass, errorvalue
 2011-08-30 12:16:18+0500 [-] sqlalchemy.exc.OperationalError: 
 (OperationalError) (1005, Can't create table 'nova.network_indexes' (errno: 
 150)) '\nCREATE TABLE network_indexes (\n\tcreated_at DATETIME, 
 \n\tupdated_at DATETIME, \n\tdeleted_at DATETIME, \n\tdeleted BOOL, \n\tid 
 INTEGER NOT NULL AUTO_INCREMENT, \n\t`index` INTEGER, \n\tnetwork_id INTEGER, 
 \n\tPRIMARY KEY (id), \n\tCHECK (deleted IN (0, 1)), \n\tFOREIGN 
 KEY(network_id) REFERENCES networks (id), \n\tUNIQUE 
 (`index`)\n)ENGINE=InnoDB\n\n' ()
 2011-08-30 12:22:26+0500 [-] Log opened.
 
  Compute node's nova-compute.conf file is;
 
 --ca_path=/var/lib/nova/CA
 --keys_path=/var/lib/nova/keys
 --instances_path=/var/lib/nova/instances
 --injected_network_template=/usr/share/nova/interfaces.template
 --libvirt_xml_template=/usr/share/nova/libvirt.qemu.xml.template
 --libvirt_uml_xml_template=/usr/share/nova/libvirt.uml.xml.template
 --vpn_client_template=/usr/share/nova/client.ovpn.template
 --credentials_template=/usr/share/nova/novarc.template
 --logfile=/var/log/nova/nova-compute.log
 --dhcpbridge=/usr/bin/nova-dhcpbridge
 --logdir=/var/log/nova
 --lock_path=/var/lock/nova
 --state_path=/var/lib/nova
 --verbose
 --s3_host=192.168.104.1
 --rabbit_host=192.168.104.1
 --cc_host=192.168.104.1
 --ec2_url=http://192.168.104.1:8773/services/Cloud
 --fixed_range=192.168.104.0/24
 --network_size=8
 --FAKE_subdomain=ec2
 --routing_source_ip=192.168.104.1
 --sql_connection=mysql://root:passwd@192.168.104.1/nova
 --glance_host=192.168.104.1
 --image_service=nova.image.glance.GlanceImageService
 
  Could you please help to resolve this!
 
 Cheers!
 Rasika Karunathilaka.
 ___
 Mailing list: https://launchpad.net/~openstack
 Post to : openstack@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~openstack
 More help   : https://help.launchpad.net/ListHelp

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


Re: [Openstack] Nova: Admin API blueprints

2011-08-30 Thread Vishvananda Ishaya
This is correct.  Well, they are still there, but marked deprecated.  One can 
still use the old user and project system by using the --use_deprecated_auth 
flag and using the modified middleware stack that is commented out in the 
default paste.ini file.

Vish


On Aug 30, 2011, at 11:37 AM, Nguyen, Liem Manh wrote:

 So, by the release of Diablo, the account and project operations from the 
 nova-manage command won’t be there anymore, and things should be done via 
 Keystone?  I assume role will go away as well, since this is also covered by 
 Keystone.   Is this correct?
  
 Thanks,
 Liem

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


Re: [Openstack] Nova: Admin API blueprints

2011-08-30 Thread Glen Campbell
We're in the midst of implementing these now:
https://blueprints.launchpad.net/nova/+spec/admin-account-actions

Essentially suspend/resume for all servers associated with a tenant ID.

We're still having discussions around the mass deletion and whether or not we 
want to expose something that risky (since it's easy enough just to list the 
servers and delete each one). If we do, it will almost certainly occur after 
this:
https://blueprints.launchpad.net/nova/+spec/deferred-delete-instance


[cid:9A0D0DA3-6B19-4D1E-9276-36B9E4A9DC3B]

From: Rouault, Jason (Cloud Services) 
jason.roua...@hp.commailto:jason.roua...@hp.com
Date: Tue, 30 Aug 2011 20:56:36 +
To: Vishvananda Ishaya vishvana...@gmail.commailto:vishvana...@gmail.com, 
Nguyen, Liem Manh liem_m_ngu...@hp.commailto:liem_m_ngu...@hp.com
Cc: openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net 
openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net
Subject: Re: [Openstack] Nova: Admin API blueprints

And does that interface exist?

Thanks,

Jason

From: 
openstack-bounces+jason.rouault=hp@lists.launchpad.netmailto:openstack-bounces+jason.rouault=hp@lists.launchpad.net
 [mailto:openstack-bounces+jason.rouault=hp@lists.launchpad.net] On Behalf 
Of Vishvananda Ishaya
Sent: Tuesday, August 30, 2011 12:31 PM
To: Nguyen, Liem Manh
Cc: openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net
Subject: Re: [Openstack] Nova: Admin API blueprints

With keystone in use, there is no user and project object in nova anymore.  So 
the only thing that would make sense inside of nova is: delete all resources 
associated with a  given project_id string.

Vish


On Aug 30, 2011, at 11:11 AM, Nguyen, Liem Manh wrote:


How is Nova project/user deletion handled then?  There is no synchronization 
for that currently.

Liem
___ Mailing list: 
https://launchpad.net/~openstack Post to : 
openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net Unsubscribe 
: https://launchpad.net/~openstack More help : 
https://help.launchpad.net/ListHelp
This email may include confidential information. If you received it in error, 
please delete it.
inline: signature[9].png___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Nova: Admin API blueprints

2011-08-30 Thread Rouault, Jason (Cloud Services)
Glen,

 

How does one list the servers associated with a particular tenant?  When I
look at the GET /servers interface it only acts on the account of the
'caller'.  

 

Jason

 

From: Glen Campbell [mailto:glen.campb...@rackspace.com] 
Sent: Tuesday, August 30, 2011 3:46 PM
To: Rouault, Jason (Cloud Services); Vishvananda Ishaya; Nguyen, Liem Manh
Cc: openstack@lists.launchpad.net
Subject: Re: [Openstack] Nova: Admin API blueprints

 

We're in the midst of implementing these now:

https://blueprints.launchpad.net/nova/+spec/admin-account-actions

 

Essentially suspend/resume for all servers associated with a tenant ID. 

 

We're still having discussions around the mass deletion and whether or not
we want to expose something that risky (since it's easy enough just to list
the servers and delete each one). If we do, it will almost certainly occur
after this:

https://blueprints.launchpad.net/nova/+spec/deferred-delete-instance

 

 



 

From: Rouault, Jason (Cloud Services) jason.roua...@hp.com
Date: Tue, 30 Aug 2011 20:56:36 +
To: Vishvananda Ishaya vishvana...@gmail.com, Nguyen, Liem Manh
liem_m_ngu...@hp.com
Cc: openstack@lists.launchpad.net openstack@lists.launchpad.net
Subject: Re: [Openstack] Nova: Admin API blueprints

 

And does that interface exist?

 

Thanks,


Jason

 

From: openstack-bounces+jason.rouault=hp@lists.launchpad.net
[mailto:openstack-bounces+jason.rouault=hp@lists.launchpad.net] On
Behalf Of Vishvananda Ishaya
Sent: Tuesday, August 30, 2011 12:31 PM
To: Nguyen, Liem Manh
Cc: openstack@lists.launchpad.net
Subject: Re: [Openstack] Nova: Admin API blueprints

 

With keystone in use, there is no user and project object in nova anymore.
So the only thing that would make sense inside of nova is: delete all
resources associated with a  given project_id string.

 

Vish

 

 

On Aug 30, 2011, at 11:11 AM, Nguyen, Liem Manh wrote:






How is Nova project/user deletion handled then?  There is no synchronization
for that currently.

 

Liem

___ Mailing list:
https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack More help :
https://help.launchpad.net/ListHelp This email may include confidential
information. If you received it in error, please delete it.

image001.png

smime.p7s
Description: S/MIME cryptographic signature
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Nova: Admin API blueprints

2011-08-30 Thread Nguyen, Liem Manh
Thanks, Vish...  Of course, now, I have more questions (naturally :)):


1.   So, if the Nova project/user objects go away, I assume the 
nova_auth_token middleware currently used for lazily creating Nova 
projects/users are not needed anymore?

2.   Also, now that user/project operations are deprecated, how do we 
export the environment (novarc) for a particular user or project so that the 
euca* tools function?

3.   Are the changes you mentioned in the Nova trunk already?

Liem

From: Vishvananda Ishaya [mailto:vishvana...@gmail.com]
Sent: Tuesday, August 30, 2011 12:44 PM
To: Nguyen, Liem Manh
Cc: Glen Campbell; openstack@lists.launchpad.net
Subject: Re: [Openstack] Nova: Admin API blueprints

This is correct.  Well, they are still there, but marked deprecated.  One can 
still use the old user and project system by using the --use_deprecated_auth 
flag and using the modified middleware stack that is commented out in the 
default paste.ini file.

Vish


On Aug 30, 2011, at 11:37 AM, Nguyen, Liem Manh wrote:


So, by the release of Diablo, the account and project operations from the 
nova-manage command won't be there anymore, and things should be done via 
Keystone?  I assume role will go away as well, since this is also covered by 
Keystone.   Is this correct?

Thanks,
Liem

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


Re: [Openstack] Nova: Admin API blueprints

2011-08-30 Thread Vishvananda Ishaya

On Aug 30, 2011, at 5:22 PM, Nguyen, Liem Manh wrote:

 Thanks, Vish…  Of course, now, I have more questions (naturally J):
  
 1.   So, if the Nova project/user objects go away, I assume the 
 nova_auth_token middleware currently used for lazily creating Nova 
 projects/users are not needed anymore?

Correct, the new middleware just sets the context, doesn't create keypairs.

 2.   Also, now that user/project operations are deprecated, how do we 
 export the environment (novarc) for a particular user or project so that the 
 euca* tools function?

Haven't solved this yet.  It may have to be a manual process or external tool.  
Access and secret keys are stored in keystone with the new code, so it will 
have to get the data and then generate the creds.

 3.   Are the changes you mentioned in the Nova trunk already?

Yes

  
 Liem
  
 From: Vishvananda Ishaya [mailto:vishvana...@gmail.com] 
 Sent: Tuesday, August 30, 2011 12:44 PM
 To: Nguyen, Liem Manh
 Cc: Glen Campbell; openstack@lists.launchpad.net
 Subject: Re: [Openstack] Nova: Admin API blueprints
  
 This is correct.  Well, they are still there, but marked deprecated.  One can 
 still use the old user and project system by using the --use_deprecated_auth 
 flag and using the modified middleware stack that is commented out in the 
 default paste.ini file.
  
 Vish
  
  
 On Aug 30, 2011, at 11:37 AM, Nguyen, Liem Manh wrote:
 
 
 So, by the release of Diablo, the account and project operations from the 
 nova-manage command won’t be there anymore, and things should be done via 
 Keystone?  I assume role will go away as well, since this is also covered by 
 Keystone.   Is this correct?
  
 Thanks,
 Liem

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


[Openstack] questions about rabbitmq channels

2011-08-30 Thread heut2008
hello  everybody,
  I installed rabbitmq-server management plugins to see the details about rpc 
.i find that every worker process for instance a nova-compute service makes for 
channels ibut only one channel has the three type(direct fanout topic) 
exchanges. 
  I wonder what the other channels used for? 

2011-08-31 



heut2008 
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp