[openstack-dev] [OpenStack-Infra] Devstack error when running g-reg: 401 Unauthorized

liuxinguo liuxinguo at huawei.com
Fri Feb 6 03:08:08 UTC 2015


Our CI get the following error when build devstack, begin from service ‘g-reg’ when uploading image:

is_service_enabled g-reg
2015-02-05 03:14:54.966 | + return 0
2015-02-05 03:14:54.968 | ++ keystone token-get
2015-02-05 03:14:54.968 | ++ grep ' id '
2015-02-05 03:14:54.969 | ++ get_field 2
2015-02-05 03:14:54.970 | ++ local data field
2015-02-05 03:14:54.970 | ++ read data
2015-02-05 03:14:55.797 | ++ '[' 2 -lt 0 ']'
2015-02-05 03:14:55.798 | ++ field='$3'
2015-02-05 03:14:55.799 | ++ echo '|     id    | 9660a765e04d4d0a8bc3f0f44b305161 |'
2015-02-05 03:14:55.800 | ++ awk '-F[ \t]*\\|[ \t]*' '{print $3}'
2015-02-05 03:14:55.802 | ++ read data
2015-02-05 03:14:55.804 | + TOKEN=9660a765e04d4d0a8bc3f0f44b305161
2015-02-05 03:14:55.804 | + die_if_not_set 1137 TOKEN 'Keystone fail to get token'
2015-02-05 03:14:55.804 | + local exitcode=0
2015-02-05 03:14:55.810 | + echo_summary 'Uploading images'
2015-02-05 03:14:55.810 | + [[ -t 3 ]]
2015-02-05 03:14:55.810 | + [[ True != \T\r\u\e ]]
2015-02-05 03:14:55.810 | + echo -e Uploading images
2015-02-05 03:14:55.810 | + [[ -n '' ]]
2015-02-05 03:14:55.810 | + for image_url in '${IMAGE_URLS//,/ }'
2015-02-05 03:14:55.811 | + upload_image http://download.cirros-cloud.net/0.3.2/cirros-0.3.2-x86_64-uec.tar.gz 9660a765e04d4d0a8bc3f0f44b305161
2015-02-05 03:14:55.811 | + local image_url=http://download.cirros-cloud.net/0.3.2/cirros-0.3.2-x86_64-uec.tar.gz
2015-02-05 03:14:55.811 | + local token=9660a765e04d4d0a8bc3f0f44b305161
2015-02-05 03:14:55.811 | + local image image_fname image_name
2015-02-05 03:14:55.811 | + mkdir -p /opt/stack/new/devstack/files/images
2015-02-05 03:14:55.813 | ++ basename http://download.cirros-cloud.net/0.3.2/cirros-0.3.2-x86_64-uec.tar.gz
2015-02-05 03:14:55.815 | + image_fname=cirros-0.3.2-x86_64-uec.tar.gz
2015-02-05 03:14:55.815 | + [[ http://download.cirros-cloud.net/0.3.2/cirros-0.3.2-x86_64-uec.tar.gz != file* ]]
2015-02-05 03:14:55.815 | + [[ ! -f /opt/stack/new/devstack/files/cirros-0.3.2-x86_64-uec.tar.gz ]]
2015-02-05 03:14:55.816 | ++ stat -c %s /opt/stack/new/devstack/files/cirros-0.3.2-x86_64-uec.tar.gz
2015-02-05 03:14:55.818 | + [[ 8655821 = \0 ]]
2015-02-05 03:14:55.818 | + image=/opt/stack/new/devstack/files/cirros-0.3.2-x86_64-uec.tar.gz
2015-02-05 03:14:55.819 | + [[ http://download.cirros-cloud.net/0.3.2/cirros-0.3.2-x86_64-uec.tar.gz =~ openvz ]]
2015-02-05 03:14:55.819 | + [[ http://download.cirros-cloud.net/0.3.2/cirros-0.3.2-x86_64-uec.tar.gz =~ \.vmdk ]]
2015-02-05 03:14:55.819 | + [[ http://download.cirros-cloud.net/0.3.2/cirros-0.3.2-x86_64-uec.tar.gz =~ \.vhd\.tgz ]]
2015-02-05 03:14:55.819 | + [[ http://download.cirros-cloud.net/0.3.2/cirros-0.3.2-x86_64-uec.tar.gz =~ \.xen-raw\.tgz ]]
2015-02-05 03:14:55.819 | + local kernel=
2015-02-05 03:14:55.819 | + local ramdisk=
2015-02-05 03:14:55.819 | + local disk_format=
2015-02-05 03:14:55.819 | + local container_format=
2015-02-05 03:14:55.819 | + local unpack=
2015-02-05 03:14:55.819 | + local img_property=
2015-02-05 03:14:55.819 | + case "$image_fname" in
2015-02-05 03:14:55.819 | + '[' cirros-0.3.2-x86_64-uec '!=' cirros-0.3.2-x86_64-uec.tar.gz ']'
2015-02-05 03:14:55.819 | + image_name=cirros-0.3.2-x86_64-uec
2015-02-05 03:14:55.819 | + local xdir=/opt/stack/new/devstack/files/images/cirros-0.3.2-x86_64-uec
2015-02-05 03:14:55.819 | + rm -Rf /opt/stack/new/devstack/files/images/cirros-0.3.2-x86_64-uec
2015-02-05 03:14:55.912 | + mkdir /opt/stack/new/devstack/files/images/cirros-0.3.2-x86_64-uec
2015-02-05 03:14:55.913 | + tar -zxf /opt/stack/new/devstack/files/cirros-0.3.2-x86_64-uec.tar.gz -C /opt/stack/new/devstack/files/images/cirros-0.3.2-x86_64-uec
2015-02-05 03:14:56.619 | ++ for f in '"$xdir/"*-vmlinuz*' '"$xdir/"aki-*/image'
2015-02-05 03:14:56.619 | ++ '[' -f /opt/stack/new/devstack/files/images/cirros-0.3.2-x86_64-uec/cirros-0.3.2-x86_64-vmlinuz ']'
2015-02-05 03:14:56.619 | ++ echo /opt/stack/new/devstack/files/images/cirros-0.3.2-x86_64-uec/cirros-0.3.2-x86_64-vmlinuz
2015-02-05 03:14:56.619 | ++ break
2015-02-05 03:14:56.620 | ++ true
2015-02-05 03:14:56.620 | + kernel=/opt/stack/new/devstack/files/images/cirros-0.3.2-x86_64-uec/cirros-0.3.2-x86_64-vmlinuz
2015-02-05 03:14:56.621 | ++ for f in '"$xdir/"*-initrd*' '"$xdir/"ari-*/image'
2015-02-05 03:14:56.622 | ++ '[' -f /opt/stack/new/devstack/files/images/cirros-0.3.2-x86_64-uec/cirros-0.3.2-x86_64-initrd ']'
2015-02-05 03:14:56.622 | ++ echo /opt/stack/new/devstack/files/images/cirros-0.3.2-x86_64-uec/cirros-0.3.2-x86_64-initrd
2015-02-05 03:14:56.622 | ++ break
2015-02-05 03:14:56.622 | ++ true
2015-02-05 03:14:56.623 | + ramdisk=/opt/stack/new/devstack/files/images/cirros-0.3.2-x86_64-uec/cirros-0.3.2-x86_64-initrd
2015-02-05 03:14:56.624 | ++ for f in '"$xdir/"*.img' '"$xdir/"ami-*/image'
2015-02-05 03:14:56.624 | ++ '[' -f /opt/stack/new/devstack/files/images/cirros-0.3.2-x86_64-uec/cirros-0.3.2-x86_64-blank.img ']'
2015-02-05 03:14:56.625 | ++ echo /opt/stack/new/devstack/files/images/cirros-0.3.2-x86_64-uec/cirros-0.3.2-x86_64-blank.img
2015-02-05 03:14:56.625 | ++ break
2015-02-05 03:14:56.625 | ++ true
2015-02-05 03:14:56.626 | + image=/opt/stack/new/devstack/files/images/cirros-0.3.2-x86_64-uec/cirros-0.3.2-x86_64-blank.img
2015-02-05 03:14:56.626 | + [[ -z cirros-0.3.2-x86_64-uec ]]
2015-02-05 03:14:56.626 | + is_arch ppc64
2015-02-05 03:14:56.628 | ++ uname -m
2015-02-05 03:14:56.631 | + [[ x86_64 == \p\p\c\6\4 ]]
2015-02-05 03:14:56.631 | + '[' '' = bare ']'
2015-02-05 03:14:56.631 | + local kernel_id= ramdisk_id=
2015-02-05 03:14:56.631 | + '[' -n /opt/stack/new/devstack/files/images/cirros-0.3.2-x86_64-uec/cirros-0.3.2-x86_64-vmlinuz ']'
2015-02-05 03:14:56.633 | ++ openstack --os-token 9660a765e04d4d0a8bc3f0f44b305161 --os-url http://127.0.0.1:9292 image create cirros-0.3.2-x86_64-uec-kernel --public --container-format aki --disk-format aki
2015-02-05 03:14:56.633 | ++ grep ' id '
2015-02-05 03:14:56.633 | ++ get_field 2
2015-02-05 03:14:56.634 | ++ local data field
2015-02-05 03:14:56.634 | ++ read data
2015-02-05 03:15:05.062 | ERROR: openstack <html>
2015-02-05 03:15:05.062 |  <head>
2015-02-05 03:15:05.062 |   <title>401 Unauthorized</title>
2015-02-05 03:15:05.062 |  </head>
2015-02-05 03:15:05.062 |  <body>
2015-02-05 03:15:05.063 |   <h1>401 Unauthorized</h1>
2015-02-05 03:15:05.063 |   This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.<br /><br />
2015-02-05 03:15:05.063 |
2015-02-05 03:15:05.063 |  </body>
2015-02-05 03:15:05.063 | </html> (HTTP 401)
2015-02-05 03:15:05.107 | + kernel_id=
2015-02-05 03:15:05.108 | + '[' -n /opt/stack/new/devstack/files/images/cirros-0.3.2-x86_64-uec/cirros-0.3.2-x86_64-initrd ']'
2015-02-05 03:15:05.109 | ++ openstack --os-token 9660a765e04d4d0a8bc3f0f44b305161 --os-url http://127.0.0.1:9292 image create cirros-0.3.2-x86_64-uec-ramdisk --public --container-format ari --disk-format ari
2015-02-05 03:15:05.109 | ++ grep ' id '
2015-02-05 03:15:05.111 | ++ get_field 2
2015-02-05 03:15:05.112 | ++ local data field
2015-02-05 03:15:05.116 | ++ read data
2015-02-05 03:15:13.492 | ERROR: openstack <html>
2015-02-05 03:15:13.498 |  <head>
2015-02-05 03:15:13.498 |   <title>401 Unauthorized</title>
2015-02-05 03:15:13.498 |  </head>
2015-02-05 03:15:13.498 |  <body>
2015-02-05 03:15:13.499 |   <h1>401 Unauthorized</h1>
2015-02-05 03:15:13.499 |   This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.<br /><br />
2015-02-05 03:15:13.499 |
2015-02-05 03:15:13.499 |  </body>
2015-02-05 03:15:13.499 | </html> (HTTP 401)
2015-02-05 03:15:13.538 | + ramdisk_id=
2015-02-05 03:15:13.538 | + openstack --os-token 9660a765e04d4d0a8bc3f0f44b305161 --os-url http://127.0.0.1:9292 image create cirros-0.3.2-x86_64-uec --public --container-format ami --disk-format ami
2015-02-05 03:15:22.069 | ERROR: openstack <html>
2015-02-05 03:15:22.069 |  <head>
2015-02-05 03:15:22.070 |   <title>401 Unauthorized</title>
2015-02-05 03:15:22.070 |  </head>
2015-02-05 03:15:22.070 |  <body>
2015-02-05 03:15:22.070 |   <h1>401 Unauthorized</h1>
2015-02-05 03:15:22.070 |   This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.<br /><br />
2015-02-05 03:15:22.070 |
2015-02-05 03:15:22.070 |  </body>
2015-02-05 03:15:22.071 | </html> (HTTP 401)
2015-02-05 03:15:22.215 | + exit_trap‍


·         Any one familiar with<app:ds:be%20familiar%20with> this?
·
Thanks and regards,
Liu
·

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150206/f43e4cb3/attachment.html>


More information about the OpenStack-dev mailing list