Failed to upload images when Swift is enabled

Bug #1279384 reported by Victoria Martinez de la Cruz
72
This bug affects 15 people
Affects Status Importance Assigned to Milestone
devstack
Fix Released
Undecided
Unassigned

Bug Description

Latest version of the stack.sh script fails with an Internal Server Error (500) when uploading images.

## stack.sh log

(...)
2014-02-12 11:17:44 + KERNEL_ID=
2014-02-12 11:17:44 + '[' -n /home/vkmc/devstack/files/images/cirros-0.3.1-x86_64-uec/cirros-0.3.1-x86_64-initrd ']'
2014-02-12 11:17:44 ++ get_field 2
2014-02-12 11:17:44 ++ read data
2014-02-12 11:17:44 ++ grep ' id '
2014-02-12 11:17:44 ++ glance --os-auth-token <token> --os-image-url http://10.0.2.15:9292 image-create --name cirros-0.3.1-x86_64-uec-ramdisk --is-public True --container-format ari --disk-format ari
2014-02-12 11:17:44 500 Internal Server Error
2014-02-12 11:17:44 Failed to upload image 1dc67b92-c4fa-4092-8b61-550b952ace7c
2014-02-12 11:17:44 (HTTP 500)
2014-02-12 11:17:44 + RAMDISK_ID=
2014-02-12 11:17:44 + glance --os-auth-token <token> --os-image-url http://10.0.2.15:9292 image-create --name cirros-0.3.1-x86_64-uec --is-public True --container-format ami --disk-format ami
2014-02-12 11:17:45 500 Internal Server Error
2014-02-12 11:17:45 Failed to upload image 31de8cdd-39a4-48e1-928a-b0f966cf1d72
2014-02-12 11:17:45 (HTTP 500)
2014-02-12 11:17:45 ++ failed
2014-02-12 11:17:45 ++ local r=1
2014-02-12 11:17:45 +++ jobs -p
2014-02-12 11:17:45 ++ kill
2014-02-12 11:17:45 ++ set +o xtrace
2014-02-12 11:17:45 stack.sh failed: full log in stack.sh.log.2014-02-12-111313

Looking through g-api logs, it seems like it's failing to authenticate with 'glance-swift' user.

## g-api log

(...)
2014-02-12 11:17:45.054 4508 DEBUG keystoneclient.session [-] RESP: [401] CaseInsensitiveDict({'date': 'Wed, 12 Feb 2014 14:17:45 GMT', 'vary': 'X-Auth-Token', 'content
-length': '98', 'content-type': 'application/json', 'www-authenticate': 'Keystone uri="http://10.0.2.15:5000/"'})
RESP BODY: {"error": {"message": "Could not find user, glance-swift.", "code": 401, "title": "Unauthorized"}}
 _send_request /opt/stack/python-keystoneclient/keystoneclient/session.py:227
2014-02-12 11:17:45.054 4508 DEBUG keystoneclient.session [-] Request returned failure status: 401 request /opt/stack/python-keystoneclient/keystoneclient/session.py:20
3
2014-02-12 11:17:45.054 4508 DEBUG keystoneclient.v2_0.client [-] Authorization Failed. get_raw_token_from_identity_service /opt/stack/python-keystoneclient/keystonecli
ent/v2_0/client.py:166
2014-02-12 11:17:45.054 4508 ERROR swiftclient [-] Unauthorised. Check username, password and tenant name/id
2014-02-12 11:17:45.054 4508 TRACE swiftclient Traceback (most recent call last):
2014-02-12 11:17:45.054 4508 TRACE swiftclient File "/opt/stack/python-swiftclient/swiftclient/client.py", line 1155, in _retry
2014-02-12 11:17:45.054 4508 TRACE swiftclient self.url, self.token = self.get_auth()
2014-02-12 11:17:45.054 4508 TRACE swiftclient File "/opt/stack/python-swiftclient/swiftclient/client.py", line 1131, in get_auth
2014-02-12 11:17:45.054 4508 TRACE swiftclient insecure=self.insecure)
2014-02-12 11:17:45.054 4508 TRACE swiftclient File "/opt/stack/python-swiftclient/swiftclient/client.py", line 312, in get_auth
2014-02-12 11:17:45.054 4508 TRACE swiftclient insecure=insecure)
2014-02-12 11:17:45.054 4508 TRACE swiftclient File "/opt/stack/python-swiftclient/swiftclient/client.py", line 247, in get_keystoneclient_2_0
2014-02-12 11:17:45.054 4508 TRACE swiftclient raise ClientException('Unauthorised. Check username, password'
2014-02-12 11:17:45.054 4508 TRACE swiftclient ClientException: Unauthorised. Check username, password and tenant name/id
2014-02-12 11:17:45.054 4508 TRACE swiftclient
2014-02-12 11:17:45.054 4508 ERROR glance.api.v1.upload_utils [b7d12b87-51f5-43dd-825e-6a028fd0cb1b 8743359a2ad847819b36cc7b8a7df4bc 3198e1e7237b4096b8ffc57c6ffaa467] Failed to upload image 31de8cdd-39a4-48e1-928a-b0f966cf1d72
2014-02-12 11:17:45.054 4508 TRACE glance.api.v1.upload_utils Traceback (most recent call last):
2014-02-12 11:17:45.054 4508 TRACE glance.api.v1.upload_utils File "/opt/stack/glance/glance/api/v1/upload_utils.py", line 99, in upload_data_to_store
2014-02-12 11:17:45.054 4508 TRACE glance.api.v1.upload_utils store)
2014-02-12 11:17:45.054 4508 TRACE glance.api.v1.upload_utils File "/opt/stack/glance/glance/store/__init__.py", line 367, in store_add_to_backend
2014-02-12 11:17:45.054 4508 TRACE glance.api.v1.upload_utils (location, size, checksum, metadata) = store.add(image_id, data, size)
2014-02-12 11:17:45.054 4508 TRACE glance.api.v1.upload_utils File "/opt/stack/glance/glance/store/swift.py", line 389, in add
2014-02-12 11:17:45.054 4508 TRACE glance.api.v1.upload_utils self._create_container_if_missing(location.container, connection)
2014-02-12 11:17:45.054 4508 TRACE glance.api.v1.upload_utils File "/opt/stack/glance/glance/store/swift.py", line 555, in _create_container_if_missing
2014-02-12 11:17:45.054 4508 TRACE glance.api.v1.upload_utils connection.head_container(container)
2014-02-12 11:17:45.054 4508 TRACE glance.api.v1.upload_utils File "/opt/stack/python-swiftclient/swiftclient/client.py", line 1220, in head_container
2014-02-12 11:17:45.054 4508 TRACE glance.api.v1.upload_utils return self._retry(None, head_container, container)
2014-02-12 11:17:45.054 4508 TRACE glance.api.v1.upload_utils File "/opt/stack/python-swiftclient/swiftclient/client.py", line 1155, in _retry
2014-02-12 11:17:45.054 4508 TRACE glance.api.v1.upload_utils self.url, self.token = self.get_auth()
2014-02-12 11:17:45.054 4508 TRACE glance.api.v1.upload_utils File "/opt/stack/python-swiftclient/swiftclient/client.py", line 1131, in get_auth
2014-02-12 11:17:45.054 4508 TRACE glance.api.v1.upload_utils insecure=self.insecure)
2014-02-12 11:17:45.054 4508 TRACE glance.api.v1.upload_utils File "/opt/stack/python-swiftclient/swiftclient/client.py", line 312, in get_auth
2014-02-12 11:17:45.054 4508 TRACE glance.api.v1.upload_utils insecure=insecure)
2014-02-12 11:17:45.054 4508 TRACE glance.api.v1.upload_utils File "/opt/stack/python-swiftclient/swiftclient/client.py", line 247, in get_keystoneclient_2_0
2014-02-12 11:17:45.054 4508 TRACE glance.api.v1.upload_utils raise ClientException('Unauthorised. Check username, password'
2014-02-12 11:17:45.054 4508 TRACE glance.api.v1.upload_utils ClientException: Unauthorised. Check username, password and tenant name/id
2014-02-12 11:17:45.054 4508 TRACE glance.api.v1.upload_utils
2014-02-12 11:17:45.055 4508 DEBUG glance.registry.client.v1.api [b7d12b87-51f5-43dd-825e-6a028fd0cb1b 8743359a2ad847819b36cc7b8a7df4bc 3198e1e7237b4096b8ffc57c6ffaa467] Updating image metadata for image 31de8cdd-39a4-48e1-928a-b0f966cf1d72... update_image_metadata /opt/stack/glance/glance/registry/client/v1/api.py:166
2014-02-12 11:17:45.055 4508 DEBUG glance.common.client [b7d12b87-51f5-43dd-825e-6a028fd0cb1b 8743359a2ad847819b36cc7b8a7df4bc 3198e1e7237b4096b8ffc57c6ffaa467] Constructed URL: http://0.0.0.0:9191/images/31de8cdd-39a4-48e1-928a-b0f966cf1d72 _construct_url /opt/stack/glance/glance/common/client.py:408
2014-02-12 11:17:45.079 4508 DEBUG glance.registry.client.v1.client [b7d12b87-51f5-43dd-825e-6a028fd0cb1b 8743359a2ad847819b36cc7b8a7df4bc 3198e1e7237b4096b8ffc57c6ffaa467] Registry request PUT /images/31de8cdd-39a4-48e1-928a-b0f966cf1d72 HTTP 200 request id req-4e7f0d9e-1dab-4714-87e0-e14187bccc78 do_request /opt/stack/glance/glance/registry/client/v1/client.py:114
2014-02-12 11:17:45.155 4508 INFO glance.wsgi.server [b7d12b87-51f5-43dd-825e-6a028fd0cb1b 8743359a2ad847819b36cc7b8a7df4bc 3198e1e7237b4096b8ffc57c6ffaa467] 10.0.2.15 - - [12/Feb/2014 11:17:45] "POST /v1/images HTTP/1.1" 500 293 0.179425

## Workaround

Disable Swift

Revision history for this message
David Lyle (david-lyle) wrote :

I experienced the same behavior. Can verify disabling swift is a workaround.

Changed in devstack:
status: New → Confirmed
Revision history for this message
Sangram Roy (sangram-roy) wrote :
Download full text (6.0 KiB)

I am also facing the same issue .But i need to run swift tests .then how to do it ?

4-04-04 07:16:21.997 | (HTTP 500)
2014-04-04 07:16:22.083 | + RAMDISK_ID=
2014-04-04 07:16:22.085 | + glance --os-auth-token MIIQYAYJKoZIhvcNAQcCoIIQUTCCEE0CAQExCTAHBgUrDgMCGjCCDrYGCSqGSIb3DQEHAaCCDqcEgg6jeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxNC0wNC0wNFQwNzoxNjoxNi41Nzg3ODAiLCAiZXhwaXJlcyI6ICIyMDE0LTA0LTA0VDA4OjE2OjE2WiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogbnVsbCwgImVuYWJsZWQiOiB0cnVlLCAiaWQiOiAiZGM0Y2ZlNDY4MmU2NDUxZTg5NGRiYmYyZjRlYTM5OGUiLCAibmFtZSI6ICJhZG1pbiJ9fSwgInNlcnZpY2VDYXRhbG9nIjogW3siZW5kcG9pbnRzIjogW3siYWRtaW5VUkwiOiAiaHR0cDovLzEwLjEwLjEwLjU2Ojg3NzQvdjIvZGM0Y2ZlNDY4MmU2NDUxZTg5NGRiYmYyZjRlYTM5OGUiLCAicmVnaW9uIjogIlJlZ2lvbk9uZSIsICJpbnRlcm5hbFVSTCI6ICJodHRwOi8vMTAuMTAuMTAuNTY6ODc3NC92Mi9kYzRjZmU0NjgyZTY0NTFlODk0ZGJiZjJmNGVhMzk4ZSIsICJpZCI6ICIxZmNiZDFiMjNiMGI0MTAyOWY1M2RiNTI1MzkwMjgzOCIsICJwdWJsaWNVUkwiOiAiaHR0cDovLzEwLjEwLjEwLjU2Ojg3NzQvdjIvZGM0Y2ZlNDY4MmU2NDUxZTg5NGRiYmYyZjRlYTM5OGUifV0sICJlbmRwb2ludHNfbGlua3MiOiBbXSwgInR5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Read more...

Revision history for this message
Julie Pichon (jpichon) wrote :

I noticed this was still happening when I last tried it a couple of weeks ago, unfortunately I'm not aware of a good workaround when needing to also work with Swift, and I haven't had a chance to investigate the problem further yet. If someone had debugging tips to offer, that would be welcome.

Revision history for this message
Yves-Gwenael Bourhis (yves-gwenael-bourhis) wrote :

I confirm having the same issue. I have to deactivate swift in my localrc.

Revision history for this message
Yves-Gwenael Bourhis (yves-gwenael-bourhis) wrote :
Download full text (27.5 KiB)

I noticed the following: the "glance --os-auth-token $token --os-image-url http://$GLANCE_HOSTPORT image-create --name "$IMAGE_NAME-ramdisk" $IMG_PROPERTY --is-public True --container-format ari --disk-format ari" command which fails with an error 500 during .stack.sh, if I copy the failing command and paste it in the terminal (after .stack.sh failed), the command succeeds... so there must be a race condition somwhere (looks like we try to upload the image before a service started).

example:
=======
during .stack.sh:

++ glance --os-auth-token MIIRjgYJKoZIhvcNAQcCoIIRfzCCEXsCAQExCTAHBgUrDgMCGjCCD+QGCSqGSIb3DQEHAaCCD9UEgg-ReyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxNC0wNC0wOFQwOToxOTo0My41MDAxNjciLCAiZXhwaXJlcyI6ICIyMDE0LTA0LTA4VDEwOjE5OjQzWiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogbnVsbCwgImVuYWJsZWQiOiB0cnVlLCAiaWQiOiAiZGIxMzU3OGY1Y2Q2NDU1ZGJlMGMyNjIwZTQxYjE3NjQiLCAibmFtZSI6ICJhZG1pbiJ9fSwgInNlcnZpY2VDYXRhbG9nIjogW3siZW5kcG9pbnRzIjogW3siYWRtaW5VUkwiOiAiaHR0cDovLzE5Mi4xNjguNTYuNDo4Nzc0L3YyL2RiMTM1NzhmNWNkNjQ1NWRiZTBjMjYyMGU0MWIxNzY0IiwgInJlZ2lvbiI6ICJSZWdpb25PbmUiLCAiaW50ZXJuYWxVUkwiO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uNDo4Nzc2L3YyL2RiMTM1NzhmNWNkNjQ1NWRiZTBjMjYyMGU0MWIxNzY0In1dLCAiZW5kcG9pbnRzX2xpbmtzIjogW10sICJ0eXBlIjogInZvbHVtZXYyIiwgIm5hbWUiOiAiY2luZGVydjIifSwgeyJlbmRwb2ludHMiOiBbeyJhZG1pblVSTCI6ICJodHRwOi8vMTkyLjE2OC41Ni40Ojg3NzQvdjMiLCAicmVnaW9uIjogIlJlZ2lvbk9uZSIsICJpbnRlcm5hbFVSTCI6ICJodHRwOi8vMTkyLjE2OC41Ni40Ojg3NzQvdjMiLCAiaWQiOiAiOTEyMGM1Mzc3MGM1NDRmMDk0OTkwN2FhOTllZjc2ZTAiLCAicHVibGljVVJMIjogImh0dHA6Ly8xOTIuMTY4LjU2LjQ6ODc3NC92MyJ9XSwgImVuZHBvaW50c19saW5rcyI6IFtdLCAidHlwZSI6ICJjb21wdXRldjMiLCAibmFtZSI6ICJub3ZhdjMifSwgeyJlbmRwb2ludHMiOiBbeyJhZG1pblVSTCI6ICJodHRwOi8vMTkyLjE2OC41Ni40OjMzMzMiLCAicmVnaW9uIjogIlJlZ2lvbk9uZSIsICJpbnRlcm5hbFVSTCI6ICJodHRwOi8vMTkyLjE2OC41Ni40OjMzMzMiLCAiaWQiOiAiMGFiYTYwMWI1Yjc0NDAxMzhiYThiMmFiNTFhNzVlZjMiLCAicHVibGljVVJMIjogImh0dHA6Ly8xOTIuMTY4LjU2LjQ6MzMzMyJ9XSwgImVuZHBvaW50c19saW5rcyI6IFtdLCAidHlwZSI6ICJzMyIsICJuYW1lIjogInMzIn0sIHsiZW5kcG9pbnRzIjogW3siYWRtaW5VUkwiOiAiaHR0cDovLzE5Mi4xNjguNTYuNDo5MjkyIiwgInJlZ2lvbiI6ICJSZWdpb25PbmUiLCAiaW50ZXJuYWxVUkwiOiAiaHR0cDovLzE5Mi4xNjguNTYu...

Revision history for this message
Yves-Gwenael Bourhis (yves-gwenael-bourhis) wrote :

Here is a workaround with swift activated:

if you do not already have a local.conf file, create one, then in the local.conf file add these 3 lines:

[[post-config|$GLANCE_API_CONF]]
[DEFAULT]
default_store=file

Then swift works

Revision history for this message
Mehdi Abaakouk (sileht) wrote :

After investigation it only occurs when localrc have 'swift' but not 's-*' in ENABLED_SERVICES.

Changed in devstack:
assignee: nobody → Mehdi Abaakouk (sileht)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack (master)

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

Changed in devstack:
status: Confirmed → In Progress
Revision history for this message
gordon chung (chungg) wrote :

this seems to be a dup of bug #1276029. we should probably close one of them.

Revision history for this message
Julie Pichon (jpichon) wrote :

I can confirm that by default, Devstack still fails when having both Glance and Swift enabled (even with the s- services enabled rather than 'swift') ( s-proxy s-object s-container s-account).

+ glance --os-auth-token <token> --os-image-url http://192.168.100.188:9292 image-create --name cirros-0.3.2-x86_64-uec --is-public True --container-format ami --disk-format ami
500 Internal Server Error
Failed to upload image ecd83eb9-1148-4a99-858c-9b2f25a61792
    (HTTP 500)
+ exit_trap
+ local r=1
++ jobs -p
+ jobs=
+ [[ -n '' ]]
+ kill_spinner
+ '[' '!' -z '' ']'
+ exit 1

However, using Yves-Gwenael's tip in comment #7 does resolve the issue for me. Thanks!

Revision history for this message
Ashish Chandra (ashish-chandra) wrote :

Julie can you please check again, its working now with "enable service s-proxy s-account s-container s-object" and glance enabled(by default).
"enable service swift" in devstack is deprecated, as it is obvious from the patch https://review.openstack.org/#/c/87140/.
Now to enable swift we have to enable each of its services by using:
"enable service s-proxy s-account s-container s-object".

So IMHO we should close this bug.

Revision history for this message
Julie Pichon (jpichon) wrote :

Yes, I can confirm that running devstack with "enable_service s-proxy s-account s-container s-object" in the localrc now works fine. Thanks!

Mehdi Abaakouk (sileht)
Changed in devstack:
assignee: Mehdi Abaakouk (sileht) → nobody
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.