a shell bug for “/etc/sysconfig/kube_openstack_config”

Bug #1599703 reported by Michael liu
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Magnum
Fix Released
Undecided
Michael liu

Bug Description

in file \magnum\templates\kubernetes\fragments\write-kube-os-config.sh
a shell bug is in line below

AUTH_URL=$(echo "$AUTH_URL" | tr -s "v3" "v2")

this command is used to change v3 to v2,but it will change any "3" to "2"

for example:AUTH_URL=10.43.166.108:5000/v3,the tr command will chang it to 10.42.166.108:5000/v2

i think we should chang it like this

AUTH_URL=$(echo "$AUTH_URL" | sed "s/v3/v2/")

Changed in magnum:
assignee: nobody → Michael liu (ztehypervisor)
Changed in magnum:
status: New → In Progress
Revision history for this message
LiChunlin (lichl) wrote :

@Michael, which branch? master or mitaka?

Revision history for this message
Michael liu (ztehypervisor) wrote :

@Forest Lee
only master

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/341991

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

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

commit a76097e5358a30ee22611c30f7a519650eb6009c
Author: ztetfger <email address hidden>
Date: Thu Jul 14 16:03:07 2016 +0800

    Fix bug for write-kube-os-config.sh

    In file write-kube-os-config.sh, the bug is in line below
    AUTH_URL=$(echo "$AUTH_URL" | tr -s "v3" "v2")
    this command is used to change v3 to v2,but it will change any "3" to
    "2". For example:
    AUTH_URL=10.43.166.108:5000/v3
    it will be changed to 10.42.166.108:5000/v2, where 43 is also changed
    to 42.

    Change-Id: Ia329b983ba59856783f2873722c9ade418d49cea
    Closes-Bug: #1599703

Changed in magnum:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/magnum 3.0.0

This issue was fixed in the openstack/magnum 3.0.0 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.