Fail to create cluster if there is Chinese in tenant name

Bug #1711308 reported by Wang Bo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
New
Undecided
Wang Bo

Bug Description

This is only tested for k8s_fedora_atomic driver

How to reproduce:
Create cluster with a user having chinese tenant name.
Found following Error Log in heat-engine:
Resource CREATE failed: UnicodeEncodeError: resources.kube_masters.resources[1].resources.kube_master_init: 'ascii' codec can't encode characters in position 897-1151: ordinal not in range(128)

Solutions:
Magnum will save TENANT_NAME into VM by user-data, but TENANT_NAME is not in using now after changed to trustee. ref: https://review.openstack.org/#/c/445404/. So remove TENANT_NAME

Wang Bo (chestack)
Changed in magnum:
assignee: nobody → Wang Bo (chestack)
description: updated
description: updated
description: updated
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to magnum (master)

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

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

Reviewed: https://review.openstack.org/494446
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=048400bd4bbbf3bdf80f8b391712c5bc1e9dde79
Submitter: Jenkins
Branch: master

commit 048400bd4bbbf3bdf80f8b391712c5bc1e9dde79
Author: chestack <wangbo_bupt@163.com>
Date: Thu Aug 17 16:26:28 2017 +0800

    Remove TENANT_NAME from /etc/sysconfig/heat-params

    1. It will fail to create cluster if there is chinese in tenant name
    2. TENANT_NAME is unnecessary after changing to trustee

    this patch is for k8s_fedora_atomic and k8s_fedora_ironic

    Change-Id: Ie072f183110ae95861fb3694a913a3a4526549fb
    Close-Bug: #1711308

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

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

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

Reviewed: https://review.openstack.org/497153
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=44d21724a9da1d63e4bd26daf04ba7ab88200690
Submitter: Jenkins
Branch: stable/pike

commit 44d21724a9da1d63e4bd26daf04ba7ab88200690
Author: chestack <wangbo_bupt@163.com>
Date: Thu Aug 17 16:26:28 2017 +0800

    Remove TENANT_NAME from /etc/sysconfig/heat-params

    1. It will fail to create cluster if there is chinese in tenant name
    2. TENANT_NAME is unnecessary after changing to trustee

    this patch is for k8s_fedora_atomic and k8s_fedora_ironic

    Change-Id: Ie072f183110ae95861fb3694a913a3a4526549fb
    Close-Bug: #1711308
    (cherry picked from commit 048400bd4bbbf3bdf80f8b391712c5bc1e9dde79)

tags: added: in-stable-pike
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.