environments/hyperconverged-ceph.yaml fails with Error validating value 'storage_mgmt': Unable to find network with name or id 'storage_mgmt'

Bug #1731104 reported by John Fulton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
John Fulton

Bug Description

As of Pike, when a deployment uses -e /usr/share/openstack-tripleo-heat-templates/environments/hyperconverged-ceph.yaml it fails with:

017-11-02 00:40:28Z [overcloud.Compute]: CREATE_FAILED resources.Compute: resources.StorageMgmtPort: resources[2].Property error: resource
s.StorageMgmtPort.properties.network: Error validating value 'storage_mgmt': Unable to find network with name or id 'storage_mgmt'
2017-11-02 00:40:28Z [overcloud.Controller]: CREATE_FAILED CREATE aborted
2017-11-02 00:40:28Z [overcloud]: CREATE_FAILED Resource CREATE failed: resources.Compute: resources.StorageMgmtPort: resources[2].Property
 error: resources.StorageMgmtPort.properties.network: Error validating value 'storage_mgmt': Unable to find network with name or id 'storage
_mgmt'

Revision history for this message
John Fulton (jfulton-org) wrote :

This happens because environments/hyperconverged-ceph.yaml references network/ports/storage_mgmt.yaml [1], but starting in Pike, network/ports/storage_mgmt.yaml removed because it would instead be rendered by the changes introduced with composable networks.

The environments/hyperconverged-ceph.yaml file was only introduced to make it easier for users to deploy HCI without having to compose their own roles, which could be error prone. Instead they would just add "-e environments/hyperconverged-ceph.yaml" to their "openstack overcloud deploy ... " command.

However, starting in Pike there is an alternative method to deploy HCI without having to edit roles files. I will post that two step process in my next update to this bug.

[1] https://github.com/openstack/tripleo-heat-templates/blob/master/environments/hyperconverged-ceph.yaml#L4

Revision history for this message
John Fulton (jfulton-org) wrote :

Instead of using "-e environments/hyperconverged-ceph.yaml" use the new "openstack overcloud role" make a Compute HCI role along with the other roles that are being deployed. E.g. If you're deploying Controllers and ComputeHCI then do the following:

 openstack overcloud roles generate -o roles_data.yaml Controller ComputeHCI

The above will generate a roles_data.yaml for you and then you just need to include it in your deployment with "-r roles_data.yaml".

Note that `openstack overcloud role list` lists computeHCI along with other available roles. See https://docs.openstack.org/tripleo-docs/latest/install/advanced_deployment/custom_roles.html#provided-example-roles

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/518650

Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
Giulio Fidente (gfidente) wrote :

I think storage_mgmt.yaml is generated from the jinja template and uploaded into swift before the deployment starts, the reason why the file doesn't exist is that the Compute role doesn't have the StorageMgmt network enabled, only ComputeHCI has

Unfortunately I don't think there is a simple method to make an environment file enable a role nor I think we want people to enable StorageMgmt on the Compute role... we should probably simply deprecate the environment file and update references in the docs.

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

Reviewed: https://review.openstack.org/518650
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=1e1a86e0b7d012456a0afdd8466e7976edcca85e
Submitter: Zuul
Branch: master

commit 1e1a86e0b7d012456a0afdd8466e7976edcca85e
Author: John Fulton <email address hidden>
Date: Wed Nov 8 23:40:50 2017 -0500

    Deprecate hyperconverged-ceph.yaml

    This file was introduced in Newton to allow for HCI deployments
    without requiring the user to edit roles_data.yaml. However, a
    more general solution exists to use composable roles without
    manually editing roles_data.yaml. This change adds a comment
    describing how to use the new method instead.

    Change-Id: I72a29a1ddb77fbdf10c9cf190d2ad5e02100d138
    Closes-Bug: #1731104

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 8.0.0.0b2

This issue was fixed in the openstack/tripleo-heat-templates 8.0.0.0b2 development milestone.

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

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/529089

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/pike)

Reviewed: https://review.openstack.org/529089
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=a640b5fd43ca1640a6c955ace97eef9036ba9a4d
Submitter: Zuul
Branch: stable/pike

commit a640b5fd43ca1640a6c955ace97eef9036ba9a4d
Author: John Fulton <email address hidden>
Date: Wed Nov 8 23:40:50 2017 -0500

    Deprecate hyperconverged-ceph.yaml

    This file was introduced in Newton to allow for HCI deployments
    without requiring the user to edit roles_data.yaml. However, a
    more general solution exists to use composable roles without
    manually editing roles_data.yaml. This change adds a comment
    describing how to use the new method instead.

    Change-Id: I72a29a1ddb77fbdf10c9cf190d2ad5e02100d138
    Closes-Bug: #1731104
    (cherry picked from commit 1e1a86e0b7d012456a0afdd8466e7976edcca85e)

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 7.0.8

This issue was fixed in the openstack/tripleo-heat-templates 7.0.8 release.

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.