[openstack-dev] can't install devstack - nova-api did not start

Michael Basnight mbasnight at gmail.com
Sun Aug 11 01:24:28 UTC 2013


Maybe sudo the 2nd cmd?

Sent from my digital shackles

On Aug 10, 2013, at 10:57 AM, Roman Gorodeckij <holms at holms.lt> wrote:

> ok.. nothing changes..
> 
> stack at hp:~/devstack$ sudo pip install -I oslo.config==1.1.1
> Downloading/unpacking oslo.config==1.1.1
> Downloading oslo.config-1.1.1.tar.gz (75kB): 75kB downloaded
> Running setup.py egg_info for package oslo.config
> 
> warning: no previously-included files found matching '.gitignore'
> warning: no previously-included files found matching '.gitreview'
> Installing collected packages: oslo.config
> Found existing installation: oslo.config 1.2.0.a11.gc85c8e6.a11.gc85c8e6
> Can't uninstall 'oslo.config'. No files were found to uninstall.
> Running setup.py install for oslo.config
> Skipping installation of /usr/local/lib/python2.7/dist-packages/oslo/__init__.py (namespace package)
> 
> warning: no previously-included files found matching '.gitignore'
> warning: no previously-included files found matching '.gitreview'
> Installing /usr/local/lib/python2.7/dist-packages/oslo.config-1.1.1-py2.7-nspkg.pth
> Successfully installed oslo.config
> Cleaning up…
> 
> 
> stack at hp:~/devstack$  pip uninstall oslo.config
> Can't uninstall 'oslo.config'. No files were found to uninstall.
> 
> 2013-08-10 12:10:55 + echo 'Waiting for nova-api to start...'
> 2013-08-10 12:10:55 Waiting for nova-api to start...
> 2013-08-10 12:10:55 + wait_for_service 60 http://192.168.1.6:8774
> 2013-08-10 12:10:55 + local timeout=60
> 2013-08-10 12:10:55 + local url=http://192.168.1.6:8774
> 2013-08-10 12:10:55 + timeout 60 sh -c 'while ! http_proxy= https_proxy= curl -s http://192.168.1.6:8774 >/dev/null; do sleep 1; done'
> 2013-08-10 12:11:55 + die 698 'nova-api did not start'
> 2013-08-10 12:11:55 + local exitcode=0
> stack at hp:~/devstack$ 2013-08-10 12:11:55 + set +o xtrace
> 2013-08-10 12:11:55 [ERROR] ./stack.sh:698 nova-api did not start
> 
> stack at hp:~/devstack$ cat /tmp/devstack/log//screen-n-api.log
> t/stack/status/stack/n-api.failure"nova && /usr/local/bin/nova-api || touch "/op
> Traceback (most recent call last):
> File "/usr/local/bin/nova-api", line 6, in <module>
> from nova.cmd.api import main
> File "/opt/stack/nova/nova/cmd/api.py", line 29, in <module>
> from nova import config
> File "/opt/stack/nova/nova/config.py", line 22, in <module>
> from nova.openstack.common.db.sqlalchemy import session as db_session
> File "/opt/stack/nova/nova/openstack/common/db/sqlalchemy/session.py", line 279, in <module>
> deprecated_opts=[cfg.DeprecatedOpt('sql_connection',
> AttributeError: 'module' object has no attribute 'DeprecatedOpt'
> 
> 
> 
> On Aug 10, 2013, at 5:07 PM, Sean Dague <sean at dague.net> wrote:
> 
>> Silly pip, trix are for kids.
>> 
>> Ok, well:
>> 
>> sudo pip install -I oslo.config==1.1.1
>> 
>> then pip uninstall oslo.config
>> 
>> On 08/09/2013 06:58 PM, Roman Gorodeckij wrote:
>>> stack at hp:~/devstack$ sudo pip install oslo.config
>>> Requirement already satisfied (use --upgrade to upgrade): oslo.config in /opt/stack/oslo.config
>>> Requirement already satisfied (use --upgrade to upgrade): six in /usr/local/lib/python2.7/dist-packages (from oslo.config)
>>> Cleaning up...
>>> stack at hp:~/devstack$ sudo pip uninstall oslo.config
>>> Can't uninstall 'oslo.config'. No files were found to uninstall.
>>> stack at hp:~/devstack$
>>> 
>>> stack at hp:~/devstack$ cat /tmp/devstack/log//screen-n-api.log
>>> | touch "/opt/stack/status/stack/n-api.failure"nova && /usr/local/bin/nova-api |
>>> Traceback (most recent call last):
>>> File "/usr/local/bin/nova-api", line 6, in <module>
>>> from nova.cmd.api import main
>>> File "/opt/stack/nova/nova/cmd/api.py", line 29, in <module>
>>> from nova import config
>>> File "/opt/stack/nova/nova/config.py", line 22, in <module>
>>> from nova.openstack.common.db.sqlalchemy import session as db_session
>>> File "/opt/stack/nova/nova/openstack/common/db/sqlalchemy/session.py", line 279, in <module>
>>> deprecated_opts=[cfg.DeprecatedOpt('sql_connection',
>>> AttributeError: 'module' object has no attribute 'DeprecatedOpt'
>>> 
>>> nothing changed.
>>> 
>>> On Aug 9, 2013, at 6:11 PM, Sean Dague <sean at dague.net> wrote:
>>> 
>>>> This should be addressed by the latest devstack, however because we moved to oslo.config out of git, some install environments might still have oslo.config 1.1.0 somewhere, that pip no longer sees (so can't uninstall)
>>>> 
>>>> sudo pip install oslo.config
>>>> sudo pip uninstall oslo.config
>>>> 
>>>> rerun devstack, see if it works.
>>>> 
>>>>    -Sean
>>>> 
>>>> On 08/09/2013 09:14 AM, Roman Gorodeckij wrote:
>>>>> Tried to install devstack to dedicated server, ip's are defined.
>>>>> 
>>>>> Here's the output:
>>>>> 
>>>>> 13-08-09 09:06:28 ++ echo -ne '\015'
>>>>> 
>>>>> 2013-08-09 09:06:28 + NL=$'\r'
>>>>> 2013-08-09 09:06:28 + screen -S stack -p n-api -X stuff 'cd /opt/stack/nova && /'sr/local/bin/nova-api || touch "/opt/stack/status/stack/n-api.failure"
>>>>> 2013-08-09 09:06:28 + echo 'Waiting for nova-api to start...'
>>>>> 2013-08-09 09:06:28 Waiting for nova-api to start...
>>>>> 2013-08-09 09:06:28 + wait_for_service 60http://192.168.1.6:8774
>>>>> 2013-08-09 09:06:28 + local timeout=60
>>>>> 2013-08-09 09:06:28 + local url=http://192.168.1.6:8774
>>>>> 2013-08-09 09:06:28 + timeout 60 sh -c 'while ! http_proxy= https_proxy= curl -shttp://192.168.1.6:8774  >/dev/null; do sleep 1; done'
>>>>> 2013-08-09 09:07:28 + die 698 'nova-api did not start'
>>>>> 2013-08-09 09:07:28 + local exitcode=0
>>>>> stack at hp:~/devstack$ 2013-08-09 09:07:28 + set +o xtrace
>>>>> 
>>>>> Here's the log:
>>>>> 
>>>>> 2013-08-09 09:07:28 [ERROR] ./stack.sh:698 nova-api did not start
>>>>> stack at hp:~/devstack$ cat /tmp/devstack/log//screen-n-api.log
>>>>> t/stack/status/stack/n-api.failure"nova && /usr/local/bin/nova-api || touch "/op
>>>>> Traceback (most recent call last):
>>>>> File "/usr/local/bin/nova-api", line 6, in <module>
>>>>> from nova.cmd.api import main
>>>>> File "/opt/stack/nova/nova/cmd/api.py", line 29, in <module>
>>>>> from nova import config
>>>>> File "/opt/stack/nova/nova/config.py", line 22, in <module>
>>>>> from nova.openstack.common.db.sqlalchemy import session as db_session
>>>>> File "/opt/stack/nova/nova/openstack/common/db/sqlalchemy/session.py", line 279, in <module>
>>>>> deprecated_opts=[cfg.DeprecatedOpt('sql_connection',
>>>>> AttributeError: 'module' object has no attribute 'DeprecatedOpt'
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> _______________________________________________
>>>>> OpenStack-dev mailing list
>>>>> OpenStack-dev at lists.openstack.org
>>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>> 
>>>> 
>>>> --
>>>> Sean Dague
>>>> http://dague.net
>> 
>> 
>> -- 
>> Sean Dague
>> http://dague.net
> 
> 
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



More information about the OpenStack-dev mailing list