deploy cinder,glance with ceph failed when has no monitor node on kolla host

Bug #1631861 reported by jackning
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Won't Fix
Undecided
jackning

Bug Description

kolla version: stable/mitaka

First, i deployed ceph success.

Then, i have deployed cinder,glance using ceph, but there has two results.
One: if there has one monitor node on kolla host, deploy succeed.
Two: if there has no monitor node on kolla host, they are separately, deploy failed, the relative task skipping.

for example:
TASK: [glance | Creating the Glance service and endpoint] *********************
skipping: [ceph1] => (item={'interface': 'admin', 'url': u'http://192.168.11.126:9292'})
skipping: [ceph1] => (item={'interface': 'internal', 'url': u'http://192.168.11.126:9292'})
skipping: [ceph1] => (item={'interface': 'public', 'url': u'http://192.168.11.126:9292'})
......
......
TASK: [glance | Creating Glance database] *************************************
skipping: [ceph1]

TASK: [glance | Reading json from variable] ***********************************
skipping: [ceph1]
fatal: [localhost] => One or more undefined variables: 'dict object' has no attribute 'stdout'

jackning (ningyougang)
description: updated
description: updated
jackning (ningyougang)
description: updated
jackning (ningyougang)
description: updated
summary: - deploy cinder,glance with ceph failed when ceph monitor and kolla aren't
- on same node.
+ deploy cinder,glance with ceph failed when has no monitor node on kolla
+ host
Revision history for this message
Jeffrey Zhang (jeffrey4l) wrote :

which kolla version are u using?

and i do not think this could be happen.

if will be helpful if u can provide more log with `-vvv` parameter and you inventory file.

Revision history for this message
jackning (ningyougang) wrote :

kolla version: stable/mitaka
I added '-vvv', but has not much log.

description: updated
Revision history for this message
jackning (ningyougang) wrote :

Hi, @jeffrey Zhang,
Do you deploy success when there has no monitor node on kolla host?

Revision history for this message
jackning (ningyougang) wrote :

Hi, @jeffrey Zhang, i find the reason, why deploy fail when one monitor node doesn't on kolla host.

for example:
on ${kolla_src_code}/ansible/roles/glance/tasks/deploy.yml
....
- include: register.yml
  when: inventory_hostname in groups['glance-api']
...
ceph-mon's host doesn't in groups['glance-api'],so this task skipping, and the task is set to run only once
(run_once: True), so this task can't be executed for ever.

jackning (ningyougang)
Changed in kolla:
assignee: nobody → jackning (ningyougang)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (master)

Fix proposed to branch: master
Review: https://review.openstack.org/384878

Changed in kolla:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on kolla (master)

Change abandoned by Mark Goddard (<email address hidden>) on branch: master
Review: https://review.opendev.org/384878
Reason: Very old

Revision history for this message
Radosław Piliszek (yoctozepto) wrote :

very old

Changed in kolla:
status: In Progress → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.