Openstack Ansible glance multiple back-end

asked 2019-02-25 04:17:27 -0500

saleh gravatar image

Hello

I deploy Openstack using ansible, my environment is three controller and multiple compute nodes,

i face a problem with glance as i didn't specify the storage directory,

glance part form openstack_user_config.yml

# glance
image_hosts:
  controller01-r3s14:
    ip: 172.29.236.39
  controller02-r3s13:
    ip: 172.29.236.38
  controller03-r2s1:
    ip: 172.29.236.16

the error when deploying instance:

2019-02-21 10:15:19.417 2556 WARNING glance.location [req-fc32ab86-33b5-4828-8b6f-64f8a8574316 75d26b4938a8438786142c8c3baa7e3f d08b9be9a38846aca7403946554e7eaf - default default] Get image 998c6d52-4f8c-468b-8569-3d6c3b07e399 data failed: Image /var/lib/glance/images/998c6d52-4f8c-468b-8569-3d6c3b07e399 not found.: NotFound: Image /var/lib/glance/images/998c6d52-4f8c-468b-8569-3d6c3b07e399 not found

the problem is clear, the three glance services store images on different path on the three host. and the HA proxy forward the requests for the three glance images randomly.

i need a method for solving the problem, is there any method to sync the three directory, or use one path for the three controller node on one of them.

edit retag flag offensive close merge delete