Nova complains of poorly configured glance_api_servers

Bug #1596084 reported by Travis Truman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Medium
mar
Mitaka
Fix Committed
Undecided
Ian Cordasco

Bug Description

Installing nova from master as of today results in the nova-compute service complaining about the value of:

** Snippet of /etc/nova/nova.conf **
[glance]
api_servers = 192.168.1.20:9292
** End snippet **

The logged message is: "No protocol specified in for api_server 'http://192.168.1.20:9292', please update [glance] api_servers with fully qualified url including scheme (http / https)

This appears to be due to the lack of protocol in the default value in openstack-ansible group_vars at openstack-ansible/playbooks/inventory/group_vars/all.yml:122 of:

glance_api_servers: "{{ internal_lb_vip_address }}:{{ glance_service_port }}"

Revision history for this message
Jean-Philippe Evrard (jean-philippe-evrard) wrote :
Changed in openstack-ansible:
assignee: nobody → Travis Truman (travis-truman)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible (master)

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

Changed in openstack-ansible:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-os_nova (master)

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

Changed in openstack-ansible:
importance: Undecided → Medium
Changed in openstack-ansible:
assignee: Travis Truman (travis-truman) → Jesse Pretorius (jesse-pretorius)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible (master)

Reviewed: https://review.openstack.org/335111
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible/commit/?id=08beb6fd6b5d33a3c55822d2afce8f2f95b06d07
Submitter: Jenkins
Branch: master

commit 08beb6fd6b5d33a3c55822d2afce8f2f95b06d07
Author: Travis Truman <email address hidden>
Date: Tue Jun 28 11:59:29 2016 -0400

    glance_api_servers must contain a valid url with protocol

    This addresses a Nova config deprecation in the Mitaka release
    documented here: http://docs.openstack.org/releasenotes/nova/mitaka.html#deprecation-notes

    Adding nova_glance_api_servers to the nova_all group vars to address
    a nova role namespacing issue as well.

    Needed-By: If33d3ce9e9dfee827a92c9c0813b7c0a18cb8a7b
    Change-Id: Ibc0a5b70d4da2e905b10b4c1334b57a6f0f3b4ed
    Closes-Bug: #1596084

Changed in openstack-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-os_nova (master)

Reviewed: https://review.openstack.org/335113
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-os_nova/commit/?id=1f7819c13bec5e5aa6197ca1fa65ac15b0e39c8b
Submitter: Jenkins
Branch: master

commit 1f7819c13bec5e5aa6197ca1fa65ac15b0e39c8b
Author: Travis Truman <email address hidden>
Date: Tue Jul 12 13:38:06 2016 +0100

    Nova role should not default vars outside the nova namespace

    This patch resolves the following:

    - Removing the default var declaration of glance_api_servers
      and declaring it within the functional test vars since the
      role does require the variable be defined.

    - Fix absence of neutron_openvswitch_agent due to
      https://review.openstack.org/338129

    - Adjust the use of rabbitmq vars to ensure that they're
      properly namespaced. https://review.openstack.org/339810

    Co-Authored-By: Jean-Philippe Evrard <email address hidden>
    Depends-On: Ibc0a5b70d4da2e905b10b4c1334b57a6f0f3b4ed
    Change-Id: If33d3ce9e9dfee827a92c9c0813b7c0a18cb8a7b
    Partial-Bug: #1596084

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/openstack-ansible 14.0.0.0b2

This issue was fixed in the openstack/openstack-ansible 14.0.0.0b2 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/366879

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-os_nova (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/366881

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible (stable/mitaka)

Reviewed: https://review.openstack.org/366879
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible/commit/?id=98c7625e5535b6f8237a171a64eea2d254626585
Submitter: Jenkins
Branch: stable/mitaka

commit 98c7625e5535b6f8237a171a64eea2d254626585
Author: Travis Truman <email address hidden>
Date: Tue Jun 28 11:59:29 2016 -0400

    glance_api_servers must contain a valid url with protocol

    This addresses a Nova config deprecation in the Mitaka release
    documented here: http://docs.openstack.org/releasenotes/nova/mitaka.html#deprecation-notes

    Adding nova_glance_api_servers to the hosts group vars to address
    a nova role namespacing issue as well.

    Needed-By: If33d3ce9e9dfee827a92c9c0813b7c0a18cb8a7b
    Change-Id: Ibc0a5b70d4da2e905b10b4c1334b57a6f0f3b4ed
    Closes-Bug: #1596084
    (cherry picked from commit 08beb6fd6b5d33a3c55822d2afce8f2f95b06d07)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-os_nova (stable/mitaka)

Reviewed: https://review.openstack.org/366881
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-os_nova/commit/?id=fda87703c5e57730685650e8e45696e12d6f0b20
Submitter: Jenkins
Branch: stable/mitaka

commit fda87703c5e57730685650e8e45696e12d6f0b20
Author: Travis Truman <email address hidden>
Date: Tue Jul 12 13:38:06 2016 +0100

    Nova role should not default vars outside the nova namespace

    This patch resolves the following:

    - Removing the default var declaration of glance_api_servers
      and declaring it within the functional test vars since the
      role does require the variable be defined.

    Co-Authored-By: Jean-Philippe Evrard <email address hidden>
    Depends-On: Ibc0a5b70d4da2e905b10b4c1334b57a6f0f3b4ed
    Change-Id: If33d3ce9e9dfee827a92c9c0813b7c0a18cb8a7b
    Partial-Bug: #1596084
    (cherry picked from commit 1f7819c13bec5e5aa6197ca1fa65ac15b0e39c8b)

tags: added: in-stable-mitaka
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible 13.3.4

This issue was fixed in the openstack/openstack-ansible 13.3.4 release.

mar (marioscancarello)
Changed in openstack-ansible:
assignee: Jesse Pretorius (jesse-pretorius) → mar (marioscancarello)
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.