<div dir="ltr">Hi Sean<div>I uninstalled the oslo.config 1.1.1 version and run devstack, but this time it stopped at </div><div><br></div><div><pre style="white-space:pre-wrap;color:rgb(80,0,80);font-size:11px;margin-bottom:0px;margin-top:0px;word-wrap:break-word">
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 ]]</pre></div><div><br></div><div><div>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)</div>
<div>2013-08-12 18:36:45 + KEYSTONE_SERVICE=</div><div>2013-08-12 18:36:45 + keystone endpoint-create --region RegionOne --service_id --publicurl <a href="http://127.0.0.1:5000/v2.0">http://127.0.0.1:5000/v2.0</a> --adminurl <a href="http://127.0.0.1:35357/v2.0">http://127.0.0.1:35357/v2.0</a> --internalurl <a href="http://127.0.0.1:5000/v2.0">http://127.0.0.1:5000/v2.0</a></div>
</div><div><br></div><div>it seems that oslo.config was not properly imported after i re-installed it. </div><div>but when i list the pip installations, it is there. </div><div><br></div><div><div>/usr/local/bin/pip freeze |grep oslo.config</div>
<div>-e git+<a href="http://10.145.81.234/openstackci/gerrit/p/oslo.config@c65d70c02494805ce50b88f343f8fafe7a521724#egg=oslo.config-master">http://10.145.81.234/openstackci/gerrit/p/oslo.config@c65d70c02494805ce50b88f343f8fafe7a521724#egg=oslo.config-master</a></div>
<div>root@devstack-4:/# /usr/local/bin/pip search oslo.config</div><div>oslo.config - Oslo configuration API</div><div> INSTALLED: 1.2.0.a192.gc65d70c</div><div> LATEST: 1.1.1</div></div><div><br></div>
<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Aug 10, 2013 at 7:07 AM, Sean Dague <span dir="ltr"><<a href="mailto:sean@dague.net" target="_blank">sean@dague.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Silly pip, trix are for kids.<br>
<br>
Ok, well:<br>
<br>
sudo pip install -I oslo.config==1.1.1<br>
<br>
then pip uninstall oslo.config<br>
<br>
On 08/09/2013 06:58 PM, Roman Gorodeckij wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
stack@hp:~/devstack$ sudo pip install oslo.config<br>
Requirement already satisfied (use --upgrade to upgrade): oslo.config in /opt/stack/oslo.config<br>
Requirement already satisfied (use --upgrade to upgrade): six in /usr/local/lib/python2.7/dist-<u></u>packages (from oslo.config)<br>
Cleaning up...<br>
stack@hp:~/devstack$ sudo pip uninstall oslo.config<br>
Can't uninstall 'oslo.config'. No files were found to uninstall.<br>
stack@hp:~/devstack$<br>
<br>
stack@hp:~/devstack$ cat /tmp/devstack/log//screen-n-<u></u>api.log<br>
| touch "/opt/stack/status/stack/n-<u></u>api.failure"nova && /usr/local/bin/nova-api |<div class="im"><br>
Traceback (most recent call last):<br></div>
File "/usr/local/bin/nova-api", line 6, in <module><br>
from nova.cmd.api import main<br>
File "/opt/stack/nova/nova/cmd/api.<u></u>py", line 29, in <module><br>
from nova import config<br>
File "/opt/stack/nova/nova/config.<u></u>py", line 22, in <module><br>
from nova.openstack.common.db.<u></u>sqlalchemy import session as db_session<br>
File "/opt/stack/nova/nova/<u></u>openstack/common/db/<u></u>sqlalchemy/session.py", line 279, in <module><br>
deprecated_opts=[cfg.<u></u>DeprecatedOpt('sql_connection'<u></u>,<br>
AttributeError: 'module' object has no attribute 'DeprecatedOpt'<br>
<br>
nothing changed.<br>
<br>
On Aug 9, 2013, at 6:11 PM, Sean Dague <<a href="mailto:sean@dague.net" target="_blank">sean@dague.net</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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)<br>
<br>
sudo pip install oslo.config<br>
sudo pip uninstall oslo.config<br>
<br>
rerun devstack, see if it works.<br>
<br>
-Sean<br>
<br>
On 08/09/2013 09:14 AM, Roman Gorodeckij wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Tried to install devstack to dedicated server, ip's are defined.<br>
<br>
Here's the output:<br>
<br>
13-08-09 09:06:28 ++ echo -ne '\015'<br>
<br>
2013-08-09 09:06:28 + NL=$'\r'<br>
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-<u></u>api.failure"<br>
2013-08-09 09:06:28 + echo 'Waiting for nova-api to start...'<br>
2013-08-09 09:06:28 Waiting for nova-api to start...<br>
2013-08-09 09:06:28 + wait_for_service 60<a href="http://192.168.1.6:8774" target="_blank">http://192.168.1.6:8774</a><br>
2013-08-09 09:06:28 + local timeout=60<br>
2013-08-09 09:06:28 + local url=<a href="http://192.168.1.6:8774" target="_blank">http://192.168.1.6:8774</a><br>
2013-08-09 09:06:28 + timeout 60 sh -c 'while ! http_proxy= https_proxy= curl -shttp://<a href="http://192.168.1.6:8774" target="_blank">192.168.1.6:8774</a> >/dev/null; do sleep 1; done'<br>
2013-08-09 09:07:28 + die 698 'nova-api did not start'<br>
2013-08-09 09:07:28 + local exitcode=0<br>
stack@hp:~/devstack$ 2013-08-09 09:07:28 + set +o xtrace<br>
<br>
Here's the log:<br>
<br>
2013-08-09 09:07:28 [ERROR] ./stack.sh:698 nova-api did not start<br>
stack@hp:~/devstack$ cat /tmp/devstack/log//screen-n-<u></u>api.log<br>
t/stack/status/stack/n-api.<u></u>failure"nova && /usr/local/bin/nova-api || touch "/op<div class="im"><br>
Traceback (most recent call last):<br></div>
File "/usr/local/bin/nova-api", line 6, in <module><br>
from nova.cmd.api import main<br>
File "/opt/stack/nova/nova/cmd/api.<u></u>py", line 29, in <module><br>
from nova import config<br>
File "/opt/stack/nova/nova/config.<u></u>py", line 22, in <module><br>
from nova.openstack.common.db.<u></u>sqlalchemy import session as db_session<br>
File "/opt/stack/nova/nova/<u></u>openstack/common/db/<u></u>sqlalchemy/session.py", line 279, in <module><br>
deprecated_opts=[cfg.<u></u>DeprecatedOpt('sql_connection'<u></u>,<br>
AttributeError: 'module' object has no attribute 'DeprecatedOpt'<br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.<u></u>org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/<u></u>cgi-bin/mailman/listinfo/<u></u>openstack-dev</a><br>
<br>
</blockquote>
<br><span class="HOEnZb"><font color="#888888">
<br>
--<br>
Sean Dague<br>
<a href="http://dague.net" target="_blank">http://dague.net</a><br>
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<br>
-- <br>
Sean Dague<br>
<a href="http://dague.net" target="_blank">http://dague.net</a><br>
<br>
______________________________<u></u>_________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.<u></u>org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/<u></u>cgi-bin/mailman/listinfo/<u></u>openstack-dev</a><br>
</font></span></blockquote></div><br></div>