incorrect datatype for "OctaviaFlavorId"

Bug #1810415 reported by Pratik Pravin Bandarkar
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo-heat-templates (Ubuntu)
In Progress
Undecided
Pratik Pravin Bandarkar

Bug Description

Description:

Heat templates will expect “OctaviaFlavorId” value to “number”. The default value is “65”. Where the actual flavor ID will be in the format of "number+string+special char".
For ex. “3a6b8284-2382-4e9a-9e9b-6ea31203b0b3” which cant be number/integer/float datatype and hence, while upgrading the openstack setup, the `openstack overcloud upgrade prepare` command will fail:
<snip>
2018-12-21 14:32:44.354 18144 ERROR heat.engine.resource raise exception.ResourceFailure(message, self, action=self.action)
2018-12-21 14:32:44.354 18144 ERROR heat.engine.resource ResourceFailure: resources.OctaviaWorkerPuppetBase: Parameter 'OctaviaFlavorId' is invalid: invalid literal for float(): 3a6b8284-2382-4e9a-9e9b-6ea31203b0b3
</snip>

To fix the issue, instead of using "Number" we can expect "String":
<snip>
  OctaviaFlavorId:
    default: 65
    description: Nova flavor ID to be used when creating the nova flavor for
                 amphora.
    #type: number #<==
    type: string #<==
</snip>

Steps to reproduce:
1. Deployed "Pike" release with Octavia
2. Created few Octavia load balancers
3. As Octavia loadbalancer was using custom flavor(3a6b8284-2382-4e9a-9e9b-6ea31203b0b3), while upgrading the setup(Pike --> Queens), I specified "OctaviaFlavorId"(3a6b8284-2382-4e9a-9e9b-6ea31203b0b3). But, `openstack overcloud upgrade prepare` command filed with the error mentioned in the description.
4. To fix the issue, I updated data type for "OctaviaFlavorId" from "number" to "String".

Environment:
- Pike
- Queens
- Rocky

Expected result: Installation/upgradation of OpenStack with alphanumeric OctaviaFlavorId should be successful.

Actual result: Upgradation of OpenStack with alphanumeric OctaviaFlavorId fails.

I think(not tested), even for the fresh installation if the user tries to specify OctaviaFlavorId in alphanumeric format, the installation will fail.

Changed in tripleo-heat-templates (Ubuntu):
assignee: nobody → Pratik Pravin Bandarkar (pratik-bandarkar)
no longer affects: tripleo
Changed in tripleo-heat-templates (Ubuntu):
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 10.3.0

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

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

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

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

This issue was fixed in the openstack/tripleo-heat-templates queens-eol 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.