Re: [Openstack] No /etc/nova/nova.conf
Hi, I installed OpenStack using devsatck script (http://devstack.org/) on Ubuntu 11.10. Installation was successful but there is no /etc/nova/ directory and It looks like that devstack script doesn't install all the nova services. I tried the flowing commands; please see the error messages and let me know how I can fix it. python /opt/stack/keystone/bin/keystone /opt/stack/keystone/etc/keystone.conf Starting the Legacy Authentication component Service API listening on 0.0.0.0:5000 Admin API listening on 0.0.0.0:35357 Login to Dashboard takes a very long time after running those commands and then displays System Panel Overview page with the following error: Error: Unable to get service info: [Errno 110] Connection timed out Error: Unable to get usage info: [Errno 110] Connection timed out == python /opt/stack/keystone/run_tests.py /opt/stack/keystone/etc/keystone.conf SUCCESS: Endpoint 1 added to tenant customer-x. SUCCESS: Endpoint 2 added to tenant customer-x. SUCCESS: Endpoint 3 added to tenant customer-x. SUCCESS: Endpoint 4 added to tenant customer-x. SUCCESS: Endpoint 5 added to tenant customer-x. SUCCESS: Credentials admin created. Starting the RAX-KEY extension Starting the Legacy Authentication component Service API listening on 0.0.0.0:5000 Admin API listening on 0.0.0.0:35357 Running tests... Stopping the keystone server... Starting test 2 of 2 with config: ldap.conf.template Starting the keystone server... ERROR: Unable to load keystone-legacy-auth from configuration file /tmp/tmplaOkGe. Got: ImportError(Class keystone.backends.ldap cannot be found ('module' object has no attribute 'ldap'),) Stopping the keystone server... Traceback (most recent call last): File /opt/stack/keystone/run_tests.py, line 34, in module test_cls().run() File /opt/stack/keystone/keystone/test/__init__.py, line 121, in run self.tearDown() File /opt/stack/keystone/keystone/test/__init__.py, line 97, in tearDown self.server.kill() File /usr/lib/python2.7/subprocess.py, line 1457, in kill self.send_signal(signal.SIGKILL) File /usr/lib/python2.7/subprocess.py, line 1447, in send_signal os.kill(self.pid, sig) OSError: [Errno 3] No such process = /home/localadmin/devstack/exercise.sh ++ RUNNING_TIMEOUT=25 ++ export ASSOCIATE_TIMEOUT=10 ++ ASSOCIATE_TIMEOUT=10 + popd ~ ++ curl -s -d '{auth:{passwordCredentials: {username: demo, password: secrete}}}' -H 'Content-type: application/json' http://127.0.0.1:5000/v2.0/tokens ++ python -c 'import sys; import json; tok = json.loads(sys.stdin.read()); print tok['\''access'\'']['\''token'\'']['\''id'\''];' Traceback (most recent call last): File string, line 1, in module File /usr/lib/python2.7/json/__init__.py, line 326, in loads return _default_decoder.decode(s) File /usr/lib/python2.7/json/decoder.py, line 366, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File /usr/lib/python2.7/json/decoder.py, line 384, in raw_decode raise ValueError(No JSON object could be decoded) ValueError: No JSON object could be decoded + TOKEN= = = FAILED euca FAILED floating_ips FAILED swift FAILED volumes == Any comment on how to fix it? On Tue, Jan 24, 2012 at 12:48 PM, Joe Smithian joe.smith...@gmail.com wrote: Hi All, I installed OpenStack using devsatck script (http://devstack.org/) on Ubuntu 11.10. Installation was successful but there is no /etc/nova/ directory and It looks like that devstack script doesn't install all the nova services. Should I install them manually as described in the getting started documents? All the openStack are installed at /opt/stack/. Should I create symbolic link at /etc/nova? Thanks Joe ___ 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] No /etc/nova/nova.conf
When using Devstack the files are written to /opt/stack/component. So, you can find nova.conf in /opt/stack/nova/bin/. Regards. On Tue, Jan 24, 2012 at 3:48 PM, Joe Smithian joe.smith...@gmail.comwrote: Hi All, I installed OpenStack using devsatck script (http://devstack.org/) on Ubuntu 11.10. Installation was successful but there is no /etc/nova/ directory and It looks like that devstack script doesn't install all the nova services. Should I install them manually as described in the getting started documents? All the openStack are installed at /opt/stack/. Should I create symbolic link at /etc/nova? Thanks Joe ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- - MSc. Correa, J.L. ___ 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] No /etc/nova/nova.conf
There have been conversations about changing that. That nova should use /etc/nova/nova.conf Thoughts? On Tue, Jan 24, 2012 at 10:40 AM, Jorge Luiz Correa corre...@gmail.com wrote: When using Devstack the files are written to /opt/stack/component. So, you can find nova.conf in /opt/stack/nova/bin/. Regards. On Tue, Jan 24, 2012 at 3:48 PM, Joe Smithian joe.smith...@gmail.com wrote: Hi All, I installed OpenStack using devsatck script (http://devstack.org/) on Ubuntu 11.10. Installation was successful but there is no /etc/nova/ directory and It looks like that devstack script doesn't install all the nova services. Should I install them manually as described in the getting started documents? All the openStack are installed at /opt/stack/. Should I create symbolic link at /etc/nova? Thanks Joe ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- - MSc. Correa, J.L. ___ 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] No /etc/nova/nova.conf
Hi Kiall, Thanks for your reply, I was confused between DevStack and regular installation! The first time I installed devStack using the stack.sh script everything was fine and I was able to login to dashboard, but it doesn't work anymore, I think after I changed the IP address of the machine and moved it to another network. When I try to login to Dashboard it fails with this message: Error: Unable to communicate with identity service: [Errno 111] Connection refused. (HTTP 400) It looks like some nova and keystone services are not running. So my question is how to check the status and restart all services in devStack? I can't use commands like restart nova-api because they are not installed. There should be other ways to start services in devStack. Thanks again, Joe On Tue, Jan 24, 2012 at 2:14 PM, Kiall Mac Innes ki...@managedit.ie wrote: Hi Joe, DevStack is intended for installing an OpenStack development environment, rather than a production or even pre-production test environment. For this reason, things like init scripts and config files are not installed permanently. When using DevStack, you do not need to follow the instructions in the various doc's, these steps are all performed automatically to give you a clean development environment as fast as possible. Thanks, Kiall On Tue, Jan 24, 2012 at 5:48 PM, Joe Smithian joe.smith...@gmail.com wrote: Hi All, I installed OpenStack using devsatck script (http://devstack.org/) on Ubuntu 11.10. Installation was successful but there is no /etc/nova/ directory and It looks like that devstack script doesn't install all the nova services. Should I install them manually as described in the getting started documents? All the openStack are installed at /opt/stack/. Should I create symbolic link at /etc/nova? Thanks Joe ___ 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] No /etc/nova/nova.conf
Hi, Completely agreed that nova.conf should be moved to /etc/nova/nova.conf If the DB needs to be re-created the nova-manage db sync command will fail at least the nova.conf is in the /etc directory. So, if you are running devstack, you have to manually copy the file to avoid the problem. Thanks, Edgar -Original Message- From: openstack-bounces+eperdomo=cisco@lists.launchpad.net [mailto:openstack-bounces+eperdomo=cisco@lists.launchpad.net] On Behalf Of Jesse Andrews Sent: Tuesday, January 24, 2012 11:20 AM To: Jorge Luiz Correa Cc: openstack@lists.launchpad.net Subject: Re: [Openstack] No /etc/nova/nova.conf There have been conversations about changing that. That nova should use /etc/nova/nova.conf Thoughts? On Tue, Jan 24, 2012 at 10:40 AM, Jorge Luiz Correa corre...@gmail.com wrote: When using Devstack the files are written to /opt/stack/component. So, you can find nova.conf in /opt/stack/nova/bin/. Regards. On Tue, Jan 24, 2012 at 3:48 PM, Joe Smithian joe.smith...@gmail.com wrote: Hi All, I installed OpenStack using devsatck script (http://devstack.org/) on Ubuntu 11.10. Installation was successful but there is no /etc/nova/ directory and It looks like that devstack script doesn't install all the nova services. Should I install them manually as described in the getting started documents? All the openStack are installed at /opt/stack/. Should I create symbolic link at /etc/nova? Thanks Joe ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- - MSc. Correa, J.L. ___ 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 ___ 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] No /etc/nova/nova.conf
In general, it is unfortunate that there is such a big difference in the end result between deploying from source and from packages, even though they are supposed to function the same. Ideally the process structure, locations of configuration files, etc. could be the same. The location of nova.conf is just one small piece. The current situation is confusing to new users and makes it more difficult for old users to try new versions of OpenStack in real environments. I realize this is a difficult issue because different distros do the packaging differently. -David On 1/24/2012 2:19 PM, Jesse Andrews wrote: There have been conversations about changing that. That nova should use /etc/nova/nova.conf Thoughts? On Tue, Jan 24, 2012 at 10:40 AM, Jorge Luiz Correacorre...@gmail.com wrote: When using Devstack the files are written to /opt/stack/component. So, you can find nova.conf in /opt/stack/nova/bin/. Regards. On Tue, Jan 24, 2012 at 3:48 PM, Joe Smithianjoe.smith...@gmail.com wrote: Hi All, I installed OpenStack using devsatck script (http://devstack.org/) on Ubuntu 11.10. Installation was successful but there is no /etc/nova/ directory and It looks like that devstack script doesn't install all the nova services. Should I install them manually as described in the getting started documents? All the openStack are installed at /opt/stack/. Should I create symbolic link at /etc/nova? Thanks Joe ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- - MSc. Correa, J.L. ___ 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 ___ 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] No /etc/nova/nova.conf
It looks like some nova and keystone services are not running. So my question is how to check the status and restart all services in devStack? I can't use commands like restart nova-api because they are not installed. There should be other ways to start services in devStack. Devstack is for development. If you shut the machine off that's running it, you need to re-run the script. Many devs run devstack in a VM for convenience (pause command, easy to blow away if something gets screwed up, easy to do a clean install). ___ 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] No /etc/nova/nova.conf
Hi, On Tue, Jan 24, 2012 at 13:40, Jorge Luiz Correa corre...@gmail.com wrote: When using Devstack the files are written to /opt/stack/component. So, you can find nova.conf in /opt/stack/nova/bin/. Is there a reason why a configuration file is installed in a bin/ directory (not following the FHS [1])? In my understanding, the Editable Text Configuration files should be located in an etc/ directory. Cheers, Ignace M [1] http://www.pathname.com/fhs/pub/fhs-2.3.html#ETCHOSTSPECIFICSYSTEMCONFIGURATION ___ 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] No /etc/nova/nova.conf
This is really just a dev choice. In the newer devstack it can be in a different place (programmer determined). I am making it typically be the following. $ROOTDIR/$COMPONENT/app (for the git checked out code) $ROOTDIR/$COMPONENT/config (for configs - unless overridden by the component class) $ROOTDIR/$COMPONENT/traces (for traces of what happened during install/start/stop...) For production use I think u are right, they should be in /etc (or where distros put them). Just don't forget devstack is a an opinionated openstack developer installation. Although as more people use it we should try to adopt standard policies. Hopefully this newer one we are making can help that be possible. On 1/24/12 3:38 PM, Ignace Mouzannar ignace.mouzan...@enovance.com wrote: Hi, On Tue, Jan 24, 2012 at 13:40, Jorge Luiz Correa corre...@gmail.com wrote: When using Devstack the files are written to /opt/stack/component. So, you can find nova.conf in /opt/stack/nova/bin/. Is there a reason why a configuration file is installed in a bin/ directory (not following the FHS [1])? In my understanding, the Editable Text Configuration files should be located in an etc/ directory. Cheers, Ignace M [1] http://www.pathname.com/fhs/pub/fhs-2.3.html#ETCHOSTSPECIFICSYSTEMCONFIGURATION ___ 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] No /etc/nova/nova.conf
Where would u like all the configs to be. I can attempt to make this better in the new devstack2. Might as well get it right the second time around ;) On 1/24/12 1:28 PM, David Kranz david.kr...@qrclab.com wrote: In general, it is unfortunate that there is such a big difference in the end result between deploying from source and from packages, even though they are supposed to function the same. Ideally the process structure, locations of configuration files, etc. could be the same. The location of nova.conf is just one small piece. The current situation is confusing to new users and makes it more difficult for old users to try new versions of OpenStack in real environments. I realize this is a difficult issue because different distros do the packaging differently. -David On 1/24/2012 2:19 PM, Jesse Andrews wrote: There have been conversations about changing that. That nova should use /etc/nova/nova.conf Thoughts? On Tue, Jan 24, 2012 at 10:40 AM, Jorge Luiz Correacorre...@gmail.com wrote: When using Devstack the files are written to /opt/stack/component. So, you can find nova.conf in /opt/stack/nova/bin/. Regards. On Tue, Jan 24, 2012 at 3:48 PM, Joe Smithianjoe.smith...@gmail.com wrote: Hi All, I installed OpenStack using devsatck script (http://devstack.org/) on Ubuntu 11.10. Installation was successful but there is no /etc/nova/ directory and It looks like that devstack script doesn't install all the nova services. Should I install them manually as described in the getting started documents? All the openStack are installed at /opt/stack/. Should I create symbolic link at /etc/nova? Thanks Joe ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- - MSc. Correa, J.L. ___ 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 ___ 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