mancdaz / banana

test issue import
0 stars 0 forks source link

Glance requires an entry for snet endpoint even when not using swift for the image backend. #15

Open mancdaz opened 10 years ago

mancdaz commented 10 years ago

Issue by cloudnull Monday Aug 25, 2014 at 20:43 GMT Originally opened as https://github.com/rcbops/ansible-lxc-rpc-orig/issues/463


When running a new installation the system attempts to laydown a host name for a service_net endpoint even when using a file backend. The desired outcome would be that all swift related options are optional and only parsed when set to a backend of swift.

The task that is attempting to execute: https://github.com/rcbops/ansible-lxc-rpc/blob/ead8d1d698aa2820f53a20c753f4f6db03e44b64/rpc_deployment/roles/glance_snet_override/tasks/main.yml

Valid Endpoints: https://github.com/rcbops/ansible-lxc-rpc/blob/ead8d1d698aa2820f53a20c753f4f6db03e44b64/rpc_deployment/inventory/group_vars/glance_all.yml#L98-L116

Glance Options: https://github.com/rcbops/ansible-lxc-rpc/blob/master/etc/rpc_deploy/user_variables.yml#L56-L65

TASK: [glance_snet_override | Remove hosts entry if glance_swift_enable_snet is False] ***
fatal: [infra1_glance_container-dbd3a387] => One or more undefined variables: 'dict object' has no attribute 'SomeRegion'

FATAL: all hosts have already failed -- aborting

glance_swift_enable_snet: true

TASK: [glance_snet_override | Add hosts entry if glance_swift_enable_snet is True] ***
fatal: [infra1_glance_container-dbd3a387] => One or more undefined variables: 'dict object' has no attribute 'SomeRegion'

FATAL: all hosts have already failed -- aborting

Related Issue: https://github.com/rcbops/ansible-lxc-rpc/issues/260

mancdaz commented 10 years ago

Comment by andymcc Friday Aug 29, 2014 at 15:58 GMT


In order to fix this we probably need to adjust the way glance is templated Related: #452

Because we are using a "configuration generator" for glance it means we can't do an "if this is specified" section in the template configuration.