Ask Your Question

jsubirat's profile - activity

2015-03-24 04:43:44 -0500 received badge  Famous Question (source)
2014-09-16 10:26:09 -0500 answered a question glance-manage db_sync problem

The oslo.config version that came with my Ubuntu was 1.2.1, which had this same error. Check it with:

root@controller:~# pip search oslo.config oslo.config - Oslo Configuration API INSTALLED: 1.2.1 LATEST: 1.4.0.0a5

So, what I did was to update it with:

pip --upgrade oslo.config

Then, check:

root@controller:~# pip search oslo.config oslo.config - Oslo Configuration API INSTALLED: 1.3.0 LATEST: 1.4.0.0a5

And with this, the command finally succeeded in its execution. Hope this helps!

UPDATE-WARNING: although what I posted helps executing the glance-manage db_sync command, from then on I haven't been able to anything with glance, as I always get the same error:

root@controller:~# glance image-list 'Discover' object has no attribute 'url_for'

2014-09-04 09:29:52 -0500 received badge  Notable Question (source)
2014-09-04 04:09:23 -0500 received badge  Popular Question (source)
2014-09-03 10:32:29 -0500 edited question nova-scheduler fails (no report updates), nova network-create not working

My OpenStack installation was working just fine but I was experiencing the problems described in:

https://bugs.launchpad.net/nova/+bug/1200439 (https://bugs.launchpad.net/nova/+bug/...)

I tried to manually change the permissions of the files in /var/lib/nova (mounted as a NFS share, working fine until now), and I dropped and recreated the nova database with the following commands (DO NOT USE THEM!):

user=root
password=myrootpass
passwordnova=mynovapass

service nova-api stop && service nova-cert stop && service nova-consoleauth stop && service nova-scheduler stop && service nova-conductor stop && service nova-novncproxy stop

mysql --user="$user" --password="$password" --execute="DROP DATABASE nova; CREATE DATABASE nova; GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'localhost' IDENTIFIED BY '$passwordnova'; GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'%' IDENTIFIED BY '$passwordnova';"

nova-manage db sync

When I restarted all the services in the controller node, I observed that the nova-compute services were not being reported anymore, and the nova-scheduler was reported as:

Binary           Host                                 Zone             Status     State Updated_At
nova-network     compute0                            internal         enabled    :-)   2014-09-03 14:38:49
nova-consoleauth controller                          internal         enabled    :-)   2014-09-03 14:38:50
nova-cert        controller                          internal         enabled    :-)   2014-09-03 14:38:50
nova-conductor   controller                          internal         enabled    :-)   2014-09-03 14:38:50
nova-scheduler   controller                          internal         enabled    XXX   None      
nova-network     compute1                            internal         enabled    :-)   2014-09-03 14:38:53

I checked the keystone database, and the report_count of nova-scheduler in the nova.services table is 0. Therefore, it looks like the nova-scheduler is not working properly. I've checked it's log (/var/log/nova/nova-scheduler.log), and it simply says:

2014-09-03 14:47:07.309 17835 AUDIT nova.service [-] Starting scheduler node (version 2013.1)
2014-09-03 14:47:08.252 INFO nova.openstack.common.rpc.common [req-484eed9e-0266-414d-aed9-5d34a19197fa None None] Connected to AMQP server on controller:5672
2014-09-03 14:47:08.315 INFO nova.openstack.common.rpc.common [req-484eed9e-0266-414d-aed9-5d34a19197fa None None] Connected to AMQP server on controller:5672

Given that I silly deleted the nova database, I also lost the previously created network (a flat one). So, I tried to recreate it with:

nova network-create vmnet --fixed-range-v4=10.0.0.0/24 --bridge=br100 --multi-host=T

But this command is hung forever. So, I executed it with --debug and I obtained:

http://pastebin.com/7479d0t2

I've reinstalled the packages but to no avail. Do you have an idea of what might be wrong? Many thanks!

EDIT: I deleted all the databases, purged all the OpenStack packages in the controller node, and started over again from the beginning, following the Havana tutorial. But when I get to the nova network-create step in:

http://docs.openstack.org/havana/install-guide/install/apt/content/nova-network.html (http://docs.openstack.org/havana/inst...)

It timeouts. Any idea? Thanks!

2014-09-03 10:32:29 -0500 received badge  Editor (source)