Deployment with detached-keystone plugin failed - undefined method `collect' for nil:NilClass

Bug #1485641 reported by Vladimir Khlyunev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel Plugins
Fix Committed
Undecided
Bartłomiej Piotrowski
Fuel for OpenStack
Fix Released
Critical
Bartłomiej Piotrowski

Bug Description

ISO #182

Steps:
1) Build&Install detach-db and detach-keystone.
https://github.com/stackforge/fuel-plugin-detach-keystone
https://github.com/stackforge/fuel-plugin-detach-database
2) Create cluster:
HA, Neutron VLAN, Cinder, No additional components
3) Add:
3 controllers, 1 database, 3 keystones, 2 cinder+compute
4) Deploy the cluster

Result: (complete trace http://paste.openstack.org/show/420219/ )
2015-08-17 14:56:53 ERR Could not prefetch keystone_endpoint provider 'openstack': undefined method `collect' for nil:NilClass

Snapshot will be added after deployment stops.

description: updated
Revision history for this message
Vladimir Khlyunev (vkhlyunev) wrote :

After investigating https://bugs.launchpad.net/bugs/1484963 :
This bug is not duplicate because main error is
2015-08-17 14:56:53 ERR Could not prefetch keystone_endpoint provider 'openstack': undefined method `collect' for nil:NilClass

description: updated
description: updated
Changed in fuel:
assignee: Fuel Library Team (fuel-library) → Matthew Mosesohn (raytrac3r)
Revision history for this message
Vladimir Khlyunev (vkhlyunev) wrote :

Matthew have no ability to fix this bug. Bartlomiej, could you help him?

Changed in fuel:
assignee: Matthew Mosesohn (raytrac3r) → Bartlomiej Piotrowski (bpiotrowski)
Revision history for this message
Vladimir Khlyunev (vkhlyunev) wrote :

This bug still blocking QA, Matthew is working on another critical bug, Bartlomiej is not responding. Library-team, please decide who will fix this bug and when.

Changed in fuel:
assignee: Bartlomiej Piotrowski (bpiotrowski) → Fuel Library Team (fuel-library)
importance: High → Critical
Changed in fuel:
assignee: Fuel Library Team (fuel-library) → Bartlomiej Piotrowski (bpiotrowski)
Changed in fuel:
status: New → In Progress
Revision history for this message
Bartłomiej Piotrowski (bpiotrowski) wrote :

Unfortunately I have hit different issue locally that I'll investigate later. Looking at Vladimir's lab, deployment failed because of failure of getting endpoint list via openstackclient, although I'm not completely sure why it happens.

From 'openstack --debug endpoint list' output:

ConnectionRefused: Unable to establish connection to https://public.fuel.local:5000/v2.0/tokens

The problem is that in /etc/hosts, public.fuel.local points to wrong IP – public_vip instead of service_endpoint_vip. If user modifies /etc/hosts manually, openstackclient successfully returns the endpoint list.

tags: added: feature-plugins
Changed in fuel-plugins:
status: New → Confirmed
Changed in fuel-plugins:
assignee: nobody → Sergii Golovatiuk (sgolovatiuk)
Revision history for this message
Bartłomiej Piotrowski (bpiotrowski) wrote :
Changed in fuel-plugins:
assignee: Sergii Golovatiuk (sgolovatiuk) → Bartlomiej Piotrowski (bpiotrowski)
Changed in fuel:
status: In Progress → Fix Committed
Changed in fuel-plugins:
status: Confirmed → Fix Committed
Revision history for this message
Matthew Mosesohn (raytrac3r) wrote :

public_vip is used for non-ssl deployments in keystone.conf, breaking token generation. It should be set to public_service_endpoint VIP for non-SSL deployments.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/218851
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=e055af9dee6fbaf84cb8e86a9ebff9b25b07792e
Submitter: Jenkins
Branch: master

commit e055af9dee6fbaf84cb8e86a9ebff9b25b07792e
Author: Matthew Mosesohn <email address hidden>
Date: Mon Aug 31 16:18:33 2015 +0300

    Use public_service_endpoint if defined for keystone public addr

    Keystone with detached services should advertise the correct
    public address for issuing tokens.

    Note that for SSL deployment, the public SSL hostname is used
    and is not impacted.

    Change-Id: I866446364651a98bb742414640b1e41362570beb
    Closes-Bug: #1485641

Vasily Gorin (vgorin)
tags: added: on-verification
Revision history for this message
Maksym Strukov (unbelll) wrote :

Verified as fixed in 7.0-287

{"build_id": "287", "build_number": "287", "release_versions": {"2015.1.0-7.0": {"VERSION": {"build_id": "287", "build_number": "287", "api": "1.0", "fuel-library_sha": "43224223dab8cf9627b5ecf737e60216a3fdd114", "nailgun_sha": "46a7a2177a0b7ef91422284c1c90295fee8f5c84", "feature_groups": ["mirantis"], "fuel-nailgun-agent_sha": "d7027952870a35db8dc52f185bb1158cdd3d1ebd", "openstack_version": "2015.1.0-7.0", "fuel-agent_sha": "082a47bf014002e515001be05f99040437281a2d", "production": "docker", "python-fuelclient_sha": "1ce8ecd8beb640f2f62f73435f4e18d1469979ac", "astute_sha": "a717657232721a7fafc67ff5e1c696c9dbeb0b95", "fuel-ostf_sha": "1f08e6e71021179b9881a824d9c999957fcc7045", "release": "7.0", "fuelmain_sha": "6b83d6a6a75bf7bca3177fcf63b2eebbf1ad0a85"}}}, "auth_required": true, "api": "1.0", "fuel-library_sha": "43224223dab8cf9627b5ecf737e60216a3fdd114", "nailgun_sha": "46a7a2177a0b7ef91422284c1c90295fee8f5c84", "feature_groups": ["mirantis"], "fuel-nailgun-agent_sha": "d7027952870a35db8dc52f185bb1158cdd3d1ebd", "openstack_version": "2015.1.0-7.0", "fuel-agent_sha": "082a47bf014002e515001be05f99040437281a2d", "production": "docker", "python-fuelclient_sha": "1ce8ecd8beb640f2f62f73435f4e18d1469979ac", "astute_sha": "a717657232721a7fafc67ff5e1c696c9dbeb0b95", "fuel-ostf_sha": "1f08e6e71021179b9881a824d9c999957fcc7045", "release": "7.0", "fuelmain_sha": "6b83d6a6a75bf7bca3177fcf63b2eebbf1ad0a85"}

Changed in fuel:
status: Fix Committed → Fix Released
tags: removed: on-verification
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.