List of roles in InstanceSystemMetadata can be overflown

Bug #1855749 reported by Mykola Yakovliev
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
In Progress
Undecided
Mykola Yakovliev

Bug Description

Description
===========
Nova saves list of users roles in database in InstanceSystemMetadata#boot_roles.
This field limited by 255 characters.

Steps to reproduce
==================
1) Create bunch of roles with long names.
2) Assign roles to a user (combined length of names should be greater than 255 characters).
3) Use this user to create server.
4) Check InstanceSystemMetadata#boot_roles to validate corrupted data.

Expected result
===============
Nova should save all roles.

Actual result
=============
Nova save first 255 characters of combined role names.

Tags: metadata
Revision history for this message
Matt Riedemann (mriedem) wrote :
tags: added: metadata
Changed in nova:
status: New → In Progress
assignee: nobody → Mykola Yakovliev (vegasq)
Revision history for this message
Arnaud Morin (arnaud-morin) wrote :

Why not adding a simple config param to disable boot_roles system metadata?

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.