Error when you try to rename Hostname: deque(['hostname']): u'node-1dsfvlkdfl;vkdfl;vkdl;fvkd;' does not match...

Bug #1567875 reported by Anastasia Palkina
22
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
Medium
Georgy Kibardin

Bug Description

Steps to reproduce:
1. Create new environment with default settings
2. Add some nodes
3. Click on cogwheel on one of nodes
4. Click on hostname and try to rename it with ";" symbol or with Cyrillic or just enter very long name
5. Error appears (see screens)

Expected result: clear human readable explanation of hostname restrictions.

ISO #172, 9.0

Revision history for this message
Anastasia Palkina (apalkina) wrote :
Revision history for this message
Anastasia Palkina (apalkina) wrote :
description: updated
description: updated
Revision history for this message
Bug Checker Bot (bug-checker) wrote : Autochecker

(This check performed automatically)
Please, make sure that bug description contains the following sections filled in with the appropriate data related to the bug you are describing:

actual result

For more detailed information on the contents of each of the listed sections see https://wiki.openstack.org/wiki/Fuel/How_to_contribute#Here_is_how_you_file_a_bug

tags: added: need-info
Changed in fuel:
status: New → Confirmed
Revision history for this message
Dmitry Pyzhov (dpyzhov) wrote :

I agree that error message is not very clear. However it contains all needed information. Setting medium priority and moving to 10.0 release.

tags: added: team-bugfix
Changed in fuel:
milestone: 9.0 → 10.0
importance: High → Medium
Revision history for this message
Dmitry Pyzhov (dpyzhov) wrote :

Also hostname can contain only limited number of characters:
A "name" (Net, Host, Gateway, or Domain name) is a text string up
   to 24 characters drawn from the alphabet (A-Z), digits (0-9), minus
   sign (-), and period (.)
https://tools.ietf.org/html/rfc952

I'll update bug description

description: updated
Changed in fuel:
importance: Medium → Low
importance: Low → Medium
Changed in fuel:
status: Confirmed → In Progress
assignee: Fuel Python (Deprecated) (fuel-python) → Georgy Kibardin (gkibardin)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (master)

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

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

Reviewed: https://review.openstack.org/326248
Committed: https://git.openstack.org/cgit/openstack/fuel-web/commit/?id=17b4878e601f56a89a956b5be978189dc737ae43
Submitter: Jenkins
Branch: master

commit 17b4878e601f56a89a956b5be978189dc737ae43
Author: Georgy Kibardin <email address hidden>
Date: Tue Jun 7 09:29:09 2016 +0300

    Human friendly message for invalid hostname

    Unfortuanately json schema validators don't allow specifying more human
    friendly message as an alternative to complex regex patterns. So, the
    only way is to perform hostname validation "manually".

    Change-Id: Iee1717a3034fe4e33569fbeff6553b5bc949605e
    Closes-Bug: #1567875

Changed in fuel:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.