influxdb deployment failed with a long mysql username

Bug #1543939 reported by Swann Croiset
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StackLight
Fix Released
Medium
Swann Croiset

Bug Description

2016-02-09 22:26:47 ERR /etc/fuel/plugins/influxdb_grafana-0.9/puppet/modules/mysql/lib/puppet/type/mysql_user.rb:33:in `block (3 levels) in <top (required)>'
2016-02-09 22:26:47 ERR Parameter name failed on Mysql_user[grafana_stacklight@10.109.36.3]: MySQL usernames are limited to a maximum of 16 characters

The UI must validate the length of the MySQL username.
Also, there is also a possible limitation with the database name.

summary: - influxdb deployment failed with a long mysql usernamer
+ influxdb deployment failed with a long mysql username
tags: added: grafana
Changed in lma-toolchain:
status: New → Incomplete
status: Incomplete → Triaged
description: updated
Changed in lma-toolchain:
assignee: nobody → LMA-Toolchain Fuel Plugins (mos-lma-toolchain)
Revision history for this message
Swann Croiset (swann-w) wrote :

Doc:

https://dev.mysql.com/doc/refman/5.6/en/identifiers.html
https://dev.mysql.com/doc/refman/5.6/en/user-names.html

the username is limited to 16 characters
table and dbname are limited to 64 characters

too keep input validation simple, I propose to allow only these characteres:

ASCII: [0-9,a-z,A-Z$_] (basic Latin letters, digits 0-9, dollar, underscore)

Changed in lma-toolchain:
assignee: LMA-Toolchain Fuel Plugins (mos-lma-toolchain) → Swann Croiset (swann-w)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-plugin-influxdb-grafana (master)

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

Changed in lma-toolchain:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-plugin-influxdb-grafana (master)

Reviewed: https://review.openstack.org/278974
Committed: https://git.openstack.org/cgit/openstack/fuel-plugin-influxdb-grafana/commit/?id=fd26e819079ce5d0207021a252eef02f00513219
Submitter: Jenkins
Branch: master

commit fd26e819079ce5d0207021a252eef02f00513219
Author: Swann Croiset <email address hidden>
Date: Thu Feb 11 11:47:34 2016 +0100

    Restrict MySQL username and dbname with valid name

    Change-Id: Id15db3e5bb279007b071083eeeec4f42b86f8f39
    Fixes-bug: #1543939

Changed in lma-toolchain:
status: In Progress → Fix Committed
Changed in lma-toolchain:
status: Fix Committed → Fix Released
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.