scenario002 ResourceInError: resources.volume1: Went to status error due to "Unknown"

Bug #1658755 reported by Alex Schultz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
os-brick
Fix Released
High
Lee Yarwood
tripleo
Fix Released
Critical
Lee Yarwood

Bug Description

Tags: ci
Changed in tripleo:
milestone: none → ocata-3
Revision history for this message
Gorka Eguileor (gorka) wrote :

It looks like it's a regression in os-brick introduced by [1], as the volume type for cinder is using an out of tree encryption provider "nova.volume.encryptors.luks.LuksEncryptor" because it's no longer being detected as a LuksEncryptor and is being used directly instead.

There's an os-brick warning [2], and it should have been able to detect is lucks and use internal code like it used to, but since it doesn't the effect we see is that nova/conf/availability_zone.py is trying to register configuration option default_availability_zone that has already been defined by cinder.

[1] https://review.openstack.org/#/c/416672/
[2] http://logs.openstack.org/15/423815/1/check/gate-tripleo-ci-centos-7-scenario002-multinode-puppet/22178ca/logs/subnode-2/var/log/cinder/volume.txt.gz#_2017-01-23_17_04_51_492
[3] http://logs.openstack.org/15/423815/1/check/gate-tripleo-ci-centos-7-scenario002-multinode-puppet/22178ca/logs/subnode-2/var/log/cinder/volume.txt.gz#_2017-01-23_17_04_52_890

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)

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

Changed in tripleo:
assignee: nobody → Emilien Macchi (emilienm)
status: Confirmed → In Progress
Revision history for this message
Emilien Macchi (emilienm) wrote :

Gorka, if I understand correctly, Nova is using the old name:
nova.volume.encryptors.luks.LuksEncryptor.

Shouldn't we fix Nova also?

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-heat-templates (master)

Change abandoned by Emilien Macchi (<email address hidden>) on branch: master
Review: https://review.openstack.org/424302
Reason: https://review.openstack.org/424307

Eric Harney (eharney)
Changed in os-brick:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to os-brick (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/424539

Changed in tripleo:
assignee: Emilien Macchi (emilienm) → Lee Yarwood (lyarwood)
Revision history for this message
Lee Yarwood (lyarwood) wrote :

Apologies about this, the os-brick needed to include the legacy nova.volume.encryptor paths for this use case to work correctly. I've added these in now and updated the THT change to use the new `luks` constant so we don't have to change this again for Pike.

As noted in the os-brick change I'll create a Cinder bug to tackle updating these legacy paths to the new provider format constants in Pike.

Lee Yarwood (lyarwood)
Changed in os-brick:
assignee: nobody → Lee Yarwood (lyarwood)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on os-brick (master)

Change abandoned by Lee Yarwood (<email address hidden>) on branch: master
Review: https://review.openstack.org/424539
Reason: Duplicate of https://review.openstack.org/#/c/424324/

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

Change abandoned by Emilien Macchi (<email address hidden>) on branch: master
Review: https://review.openstack.org/424302

Revision history for this message
Emilien Macchi (emilienm) wrote :
tags: removed: alert
Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.openstack.org/424307
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=44ec61345d128065df24ff99d04c11a82811df80
Submitter: Jenkins
Branch: master

commit 44ec61345d128065df24ff99d04c11a82811df80
Author: Emilien Macchi <email address hidden>
Date: Mon Jan 23 14:42:23 2017 -0500

    scenario002: updating volume encryption provider

    https://review.openstack.org/#/c/416672 made the new luks provider required.
    Let's use it.

    Closes-Bug: #1658755
    Change-Id: Icc7c3c933af6621959ce3e6af99c73b4afd87509

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

Reviewed: https://review.openstack.org/424324
Committed: https://git.openstack.org/cgit/openstack/os-brick/commit/?id=10a5e3f5d569d7691c6a7181e6225a4895569008
Submitter: Jenkins
Branch: master

commit 10a5e3f5d569d7691c6a7181e6225a4895569008
Author: Eric Harney <email address hidden>
Date: Mon Jan 23 15:17:57 2017 -0500

    Encryptors: Fix compat with Nova encryptors for Ocata

    The change 916cfaf "Introduce encryption provider constants"
    intended to issue deprecation messages for encryptors that
    are no longer going to be supported in Pike, and continue
    loading the current os_brick encryptors instead.

    However, since it removed the "'LuksEncryptor' in provider"
    style checks, any config values that were not explicitly listed
    in LEGACY_PROVIDER_CLASS_TO_FORMAT_MAP will not be translated.

    This results in a configuration using a provider of
    "nova.volume.encryptors.luks.LuksEncryptor" to attempt to
    import this module directly into Cinder when previously it
    would use the os_brick encryptor. This is generally wrong
    and causes a number of problems.

    Closes-Bug: #1658755

    Change-Id: I3ec6e3fe919bc03d158da04a18fb8b651002ed52

Changed in os-brick:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/os-brick 1.11.0

This issue was fixed in the openstack/os-brick 1.11.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 6.0.0.0rc1

This issue was fixed in the openstack/tripleo-heat-templates 6.0.0.0rc1 release candidate.

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.