Ask Your Question
0

Moving glance to a storage node off the controller

asked 2013-10-14 14:43:26 -0500

Kupo gravatar image

Working on moving glance & cinder off my controller server but running into some issues. I've copied my entire glance configuration from the controller server with;

[root@cp glance]# scp -P 9914 * root@backup01:/etc/glance/
root@IPADDR's password:
glance-api.conf                                            100%  515     0.5KB/s   00:00
glance-api.conf.rpmnew                                     100%   16KB  15.8KB/s   00:00
glance-api.conf.rpmsave                                    100%   16KB  15.6KB/s   00:00
glance-api-paste.ini                                       100%    0     0.0KB/s   00:00
glance-cache.conf                                          100%  171     0.2KB/s   00:00
glance-cache.conf.rpmnew                                   100% 6183     6.0KB/s   00:00
glance-cache.conf.rpmsave                                  100% 6268     6.1KB/s   00:00
glance-registry.conf                                       100%  333     0.3KB/s   00:00
glance-registry.conf.rpmnew                                100% 3174     3.1KB/s   00:00
glance-registry.conf.rpmsave                               100% 3190     3.1KB/s   00:00
glance-registry-paste.ini                                  100%    0     0.0KB/s   00:00
glance-scrubber.conf                                       100% 1743     1.7KB/s   00:00
policy.json                                                100%  101     0.1KB/s   00:00
schema-image.json                                          100% 1259     1.2KB/s   00:00

openstack-glance-api & openstack-glance-registry start fine on my backup node however when I attempt to create a snapshot or Image from Horizon I get

Something went wrong!
An unexpected error has occurred. Try refreshing the page. If that doesn't help, contact your local administrator.

Any help would be appreciated.

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
1

answered 2015-03-20 18:24:24 -0500

Chris gravatar image

updated 2015-03-23 15:48:18 -0500

I successfully move glance off the controller node, to another node, namely glance2.

Here is what I did (for icehouse):

1. Prepare glance2 according to "Basic environment configuration", except the "Messaging server" part;

2. Install glance on glance2 according to "Configure the Image Service";

3. Copy all glance configuration files from controller to glance2 (as I used host name instead of IP, so I didn't have to make any change);

4. Modify endpoint table in mysql database on controller:

mysql> use keystone;

mysql> show tables;

mysql> update endpoint set url='http://glance2:9292' where service_id='d0bf18b2dc4b4bffb62b2544516f8d07';

Query OK, 2 rows affected (0.03 sec)

Rows matched: 3  Changed: 3  Warnings: 0

You can find out your service_id for glance by

mysql> select * from service;

5. Stop openstack-glance-api and openstack-glance-registry on controller, and start them on glance2;

6. Verify image service by creating a new image.

7. Copy all old images from controller to glance2.

8. modify all nova.conf and change glance_api_servers = <glance2 IP>:9292, restart all nova related services on controller and compute nodes.

Hooray! Everything is up.

edit flag offensive delete link more

Comments

Hi, I've done that, got these error on api.log from new glance server when I try issue openstack image list command..

Internal Server Error (HTTP 500);
edsonh gravatar imageedsonh ( 2017-07-04 21:38:39 -0500 )edit
1

answered 2013-10-14 23:32:45 -0500

fetahi gravatar image

Just copying the config files is not enough, right? You need to make sure that all parameters in the config files are correct (e.g., IP address to mysql and rabbitmq servers, etc.) You may also need to verify that your mysql credentials allow remote access to the glance/cinder database. Finally, you should update the endpoints in keystone. Also, have a look at the log file for nova-api (/var/log/nova-api). It will most likely tell you what went wrong.

edit flag offensive delete link more
0

answered 2017-02-03 03:45:45 -0500

Karthik Prasad gravatar image

Here are the steps I followed "Installation Guide to Create Glance Server "

  1. In Environment Section. Follow all the steps except Installation of Database and RabbitMQ.
  2. Follow the image service installation guide. while installing image service, change the endpoint url hostname to glance server hostname. Rest all the configureation remain same.
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-10-14 14:43:26 -0500

Seen: 1,063 times

Last updated: Feb 03 '17