Allow wget to handle Non-English output

Bug #1019942 reported by Edward
This bug report is a duplicate of:  Bug #978739: devstack stack.sh error. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack
Fix Released
Undecided
Edward

Bug Description

This bug has been reported and fixed before here: https://bugs.launchpad.net/devstack/+bug/978739
It seems that the fix has been broken unintentionally by merging the commit of '6b93f829c1a78b5e0a06a05a7e8966f6abfc3474'.
This is reopened as a new bug for fixing.

========================Devstack log=======================================
+ echo 'Waiting for keystone to start...'
Waiting for keystone to start...
+ timeout 60 sh -c 'while http_proxy= wget -O- http://192.168.156.156:5000/v2.0/ 2>&1 | grep -q '\''refused'\''; do sleep 1; done'
+ SERVICE_ENDPOINT=http://192.168.156.156:35357/v2.0
+ ADMIN_PASSWORD=openstack
+ SERVICE_TENANT_NAME=service
+ SERVICE_PASSWORD=openstack
+ SERVICE_TOKEN=openstack
+ SERVICE_ENDPOINT=http://192.168.156.156:35357/v2.0
+ SERVICE_HOST=192.168.156.156
+ S3_SERVICE_PORT=3333
+ KEYSTONE_CATALOG_BACKEND=template
+ DEVSTACK_DIR=/opt/stack/devstack
+ ENABLED_SERVICES=g-api,g-reg,key,n-api,n-crt,n-obj,n-cpu,n-net,n-vol,n-sch,n-novnc,n-xvnc,n-cauth,horizon,mysql,rabbit
+ bash /opt/stack/devstack/files/keystone_data.sh
No handlers could be found for logger "keystoneclient.client"
Unable to communicate with identity service: [Errno 111] Connection refused. (HTTP 400)
usage: keystone user-role-add --user_id <user-id> --role_id <role-id>
                              [--tenant_id <tenant-id>]
keystone user-role-add: error: argument --tenant_id: expected one argument
usage: keystone user-role-add --user_id <user-id> --role_id <role-id>
                              [--tenant_id <tenant-id>]
keystone user-role-add: error: argument --tenant_id: expected one argument
usage: keystone user-role-add --user_id <user-id> --role_id <role-id>
                              [--tenant_id <tenant-id>]
keystone user-role-add: error: argument --tenant_id: expected one argument
...
...
...
++ glance --os-auth-token --os-image-url http://192.168.156.156:9292 image-create --name cirros-0.3.0-x86_64-uec-kernel --public --container-format aki --disk-format aki
usage: glance [--os-username OS_USERNAME] [--os-password OS_PASSWORD]
              [--os-tenant-id OS_TENANT_ID] [--os-tenant-name OS_TENANT_NAME]
              [--os-auth-url OS_AUTH_URL] [--os-region-name OS_REGION_NAME]
              [--os-auth-token OS_AUTH_TOKEN] [--os-image-url OS_IMAGE_URL]
glance: error: argument --os-auth-token: expected one argument
+ KERNEL_ID=
+ '[' -n /opt/stack/devstack/files/images/cirros-0.3.0-x86_64-uec/cirros-0.3.0-x86_64-initrd ']'
++ get_field 2
++ read data
++ grep ' id '
++ glance --os-auth-token --os-image-url http://192.168.156.156:9292 image-create --name cirros-0.3.0-x86_64-uec-ramdisk --public --container-format ari --disk-format ari
usage: glance [--os-username OS_USERNAME] [--os-password OS_PASSWORD]
              [--os-tenant-id OS_TENANT_ID] [--os-tenant-name OS_TENANT_NAME]
              [--os-auth-url OS_AUTH_URL] [--os-region-name OS_REGION_NAME]
              [--os-auth-token OS_AUTH_TOKEN] [--os-image-url OS_IMAGE_URL]
glance: error: argument --os-auth-token: expected one argument
+ RAMDISK_ID=
+ glance --os-auth-token --os-image-url http://192.168.156.156:9292 image-create --name cirros-0.3.0-x86_64-uec --public --container-format ami --disk-format ami
usage: glance [--os-username OS_USERNAME] [--os-password OS_PASSWORD]
              [--os-tenant-id OS_TENANT_ID] [--os-tenant-name OS_TENANT_NAME]
              [--os-auth-url OS_AUTH_URL] [--os-region-name OS_REGION_NAME]
              [--os-auth-token OS_AUTH_TOKEN] [--os-image-url OS_IMAGE_URL]
glance: error: argument --os-auth-token: expected one argument
++ failed
++ local r=2
++ set +o xtrace
===================================================================

Edward (zhang-hare)
description: updated
Edward (zhang-hare)
Changed in devstack:
assignee: nobody → Edward (zhang-hare)
Changed in devstack:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to devstack (master)

Reviewed: https://review.openstack.org/9217
Committed: http://github.com/openstack-dev/devstack/commit/91b0acdefff432edf0021b00fe535637ecb8d789
Submitter: Jenkins
Branch: master

commit 91b0acdefff432edf0021b00fe535637ecb8d789
Author: Zhang Hua <email address hidden>
Date: Mon Jul 2 13:57:53 2012 +0800

    Allow wget to handle Non-English output

    The stack.sh has a loop to wait for keystone to start. But the output of wget tool has been globalized
    which means it won't return the English word 'refused' on Non-English environment even the keystone is
    not up. So the script will assume the keystone has been started and continue. The command of keystone
    tenant-create always failed immediately after skipping this loop since it require keystone to be started
    to authenticate. That's why you can see authentication error in the log because the tenant information
    was not correctly set up.

    Fix bug 1019942

    Change-Id: Icc2bd9551e235173683e3677880c2641faee62a9

Changed in devstack:
status: In Progress → 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.