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

Noorul Islam K M noorul at noorul.com
Tue Aug 13 04:23:16 UTC 2013


XINYU ZHAO <xyzjerry at gmail.com> writes:

> Name: oslo.config
> Version: 1.2.0.a192.gc65d70c
> Location: /opt/stack/new/oslo.config
> Requires: six
>

I had similar issues with pbr

This is what I did

pulled latest source from github

git remote update
git pull --ff-only origin master

sudo python setup.py develop

Thanks and Regards
Noorul


>
> On Mon, Aug 12, 2013 at 7:59 PM, Noorul Islam K M <noorul at noorul.com> wrote:
>
>> XINYU ZHAO <xyzjerry at gmail.com> writes:
>>
>> > Hi Sean
>> > I uninstalled the oslo.config 1.1.1 version and run devstack, but this
>> time
>> > it stopped at
>> >
>> > 2013-08-09 18:55:16 + /opt/stack/new/keystone/bin/keystone-manage db_sync
>> > 2013-08-09 18:55:16 Traceback (most recent call last):
>> > 2013-08-09 18:55:16   File
>> > "/opt/stack/new/keystone/bin/keystone-manage", line 16, in <module>
>> > 2013-08-09 18:55:16     from keystone import cli
>> > 2013-08-09 18:55:16   File "/opt/stack/new/keystone/keystone/cli.py",
>> > line 23, in <module>
>> > 2013-08-09 18:55:16     from oslo.config import cfg
>> > 2013-08-09 18:55:16 ImportError: No module named config
>> > 2013-08-09 18:55:16 + [[ PKI == \P\K\I ]]
>> >
>> >
>> > An unexpected error prevented the server from fulfilling your request.
>> > (ProgrammingError) (1146, "Table 'keystone.service' doesn't exist")
>> 'INSERT
>> > INTO service (id, type, extra) VALUES (%s, %s, %s)'
>> > ('32578395572b4cf2a70ba70b6031cd1d', 'identity', '{"name": "keystone",
>> > "description": "Keystone Identity Service"}') (HTTP 500)
>> > 2013-08-12 18:36:45 + KEYSTONE_SERVICE=
>> > 2013-08-12 18:36:45 + keystone endpoint-create --region RegionOne
>> > --service_id --publicurl http://127.0.0.1:5000/v2.0 --adminurl
>> > http://127.0.0.1:35357/v2.0 --internalurl http://127.0.0.1:5000/v2.0
>> >
>> > it seems that  oslo.config was not properly imported after i re-installed
>> > it.
>> > but when i list the pip installations, it is there.
>> >
>> > /usr/local/bin/pip freeze |grep oslo.config
>> > -e git+
>> >
>> http://10.145.81.234/openstackci/gerrit/p/oslo.config@c65d70c02494805ce50b88f343f8fafe7a521724#egg=oslo.config-master
>> > root at devstack-4:/# /usr/local/bin/pip search oslo.config
>> > oslo.config               - Oslo configuration API
>> >   INSTALLED: 1.2.0.a192.gc65d70c
>> >   LATEST:    1.1.1
>> >
>> >
>> >
>>
>> Please paste the output of
>>
>> pip show oslo.config
>>
>> Thanks and Regards
>> Noorul
>>
>> >
>> > On Sat, Aug 10, 2013 at 7:07 AM, 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 <
>> OpenStack-dev at lists.openstack.org>
>> >>>>>
>> http://lists.openstack.org/**cgi-bin/mailman/listinfo/**openstack-dev<
>> 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 <OpenStack-dev at lists.openstack.org>
>> >> http://lists.openstack.org/**cgi-bin/mailman/listinfo/**openstack-dev<
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev>
>> >>
>> > _______________________________________________
>> > 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