I updated the lib/swift file and the devstack build failded with the same error 
when uploading image.

I commented the script in stack.sh to disable the uploading image procedure, 
but the build still failed when running "cinder type-create default ", the 
error is still " Unauthorized ":

2015-02-10 07:10:03.254 | + is_service_enabled c-api
2015-02-10 07:10:03.254 | + local service=c-vol
2015-02-10 07:10:03.254 | + local 'command=/usr/local/bin/cinder-volume 
--config-file /etc/cinder/cinder.conf'
2015-02-10 07:10:03.254 | + local group=
2015-02-10 07:10:03.254 | + exec
2015-02-10 07:10:03.254 | + exec
2015-02-10 07:10:03.259 | + return 0
2015-02-10 07:10:03.259 | + is_service_enabled tls-proxy
2015-02-10 07:10:03.365 | + return 1
2015-02-10 07:10:03.365 | + create_volume_types
2015-02-10 07:10:03.365 | + is_service_enabled c-api
2015-02-10 07:10:03.393 | + return 0
2015-02-10 07:10:03.393 | + [[ -n lvm:default ]]
2015-02-10 07:10:03.393 | + local be be_name be_type
2015-02-10 07:10:03.393 | + for be in '${CINDER_ENABLED_BACKENDS//,/ }'
2015-02-10 07:10:03.393 | + be_type=lvm
2015-02-10 07:10:03.393 | + be_name=default
2015-02-10 07:10:03.393 | + cinder type-create default
2015-02-10 07:10:11.416 | ERROR: Unauthorized (HTTP 401) (Request-ID: 
req-237ec280-2cda-4864-ac9a-d708d4e4de70)
2015-02-10 07:10:11.459 | ++ err_trap
2015-02-10 07:10:11.460 | ++ local r=1
2015-02-10 07:10:11.460 | stack.sh failed: full log in 
/opt/stack/new/devstacklog.txt.2015-02-09-230158

In c-api.log, I found this:
2015-02-09 23:10:07.751 3894 ERROR keystonemiddleware.auth_token [-] HTTP 
connection exception: SSL exception connecting to https://127.0.0.1:35357/
2015-02-09 23:10:07.751 3894 WARNING keystonemiddleware.auth_token [-] 
Authorization failed for token

I think there is something wrong with the keyston, but I don't know how to deal 
with it, all the source files have updated to the latest.


Date: Fri, 6 Feb 2015 13:11:13 +0000
From: Bob Ball <bob.b...@citrix.com>
To: "OpenStack Development Mailing List (not for usage questions)"
        <openstack-dev@lists.openstack.org>,
        "openstack-in...@lists.openstack.org"
        <openstack-in...@lists.openstack.org>
Cc: "Zhangli \(ISSP\)" <zhangl...@huawei.com>, Fanyaohong
        <fanyaoh...@huawei.com>, Chenzongliang <chenzongli...@huawei.com>
Subject: Re: [openstack-dev] [OpenStack-Infra] Devstack error when
        running g-reg: 401 Unauthorized
Message-ID:
        <bb824ea959b82f43820ffee5e6b00aa625ad2...@amspex01cl01.citrite.net>
Content-Type: text/plain; charset="cp1256"

This is likely https://launchpad.net/bugs/1415795 which is fixed by 
https://review.openstack.org/#/c/151506/

Make sure you have the above change in your devstack and it should work again.

Bob

From: liuxinguo [mailto:liuxin...@huawei.com]
Sent: 06 February 2015 03:08
To: OpenStack Development Mailing List (not for usage questions); 
openstack-in...@lists.openstack.org
Cc: Zhangli (ISSP); Fanyaohong; Chenzongliang
Subject: [openstack-dev] [OpenStack-Infra] Devstack error when running g-reg: 
401 Unauthorized

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

__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to