Newton - Image Service unavailable?

asked 2017-03-29 05:02:42 -0600

anonymous user

Anonymous

Hi,

I'm installing Openstack (Newton) using the install guide (documentation) and having some issues.

Now I know I messed up here: https://docs.openstack.org/newton/install-guide-ubuntu/glance-install.html (https://docs.openstack.org/newton/ins...)

I forgot to add the keystone authtoken & paste_deploy in /etc/glance/glance-registry.conf

I then populated the image service database sudo su -s /bin/sh -c "glance-manage db_sync" glance

Then restarted the services, loaded admin creds and downloaded the images. When trying upload the image to the image service, I received a "Service unavailable".

openstack image create "cirros" --file cirros-0.3.4-x86_64-disk.img --disk-format qcow2 --container-format bare --public

I then went back and fixed everything, but I'm still getting the "Service unavailable" message.

I think the issue here is the database is not being synced using sudo su -s /bin/sh -c "glance-manage db_sync" glance

sudo su -s /bin/sh -c "glance-manage db_sync" glance
user1@controller:~$ sudo su -s /bin/sh -c "glance-manage db_sync" glance
/usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/enginefacade.py:1171: OsloDBDeprecationWarning: EngineFacade is deprecated; please use oslo_db.sqlalchemy.enginefacade
  expire_on_commit=expire_on_commit, _conf=conf)

user1@controller:~$ openstack image create "cirros" --file cirros-0.3.4-x86_64-disk.img --disk-format qcow2 --container-format bare --public
503 Service Unavailable
The server is currently unavailable. Please try again at a later time.
    (HTTP 503)
edit retag flag offensive close merge delete