Ask Your Question
0

Object PUT failed -- Error on swift upload [closed]

asked 2014-12-15 08:30:16 -0500

updated 2014-12-17 11:31:57 -0500

Hi All,

Thank you for your advise. Now I am getting error while upload a file.. Please suggest me.

Here I did 1 wrong entry with port number for object.builder.. Please let me know is this the issue, If it is please advise me how could I delete the entry for object.builder..

Document URL - https://access.redhat.com/documentati...

[root@ control ~(keystone_admin)]#ll data1.file
-rw-r--r-- 1 root root 512 Dec 17 20:00 data1.file

[root@ control ~(keystone_admin)]#swift upload c1 data1.file
Object PUT failed: http://192.168.2.51:8080/v1/AUTH_9d70490f1dfe4b88bfab45f552a27e75/c1/data1.file 503 Service Unavailable  [first 60 chars of response] <html><h1>Service Unavailable</h1><p>The server is currently

[root@ control ~(keystone_admin)]#swift stat
       Account: AUTH_9d70490f1dfe4b88bfab45f552a27e75
    Containers: 1
       Objects: 0
         Bytes: 0
 Accept-Ranges: bytes
   X-Timestamp: 1418826500.08059
    X-Trans-Id: tx239ac2ac237f46d8b535d-005491a0fa
  Content-Type: text/plain; charset=utf-8


[root@ control ~(keystone_admin)]#swift-ring-builder /etc/swift/object.builder
/etc/swift/object.builder, build version 4
262144 partitions, 3.000000 replicas, 1 regions, 1 zones, 2 devices, 0.00 balance
The minimum number of hours before a partition can be reassigned is 1
Devices:    id  region  zone      ip address  port  replication ip  replication port      name weight partitions balance meta
             0       1     1    192.168.2.51  6001    192.168.2.51              6001      lun1 100.00     393216    0.00
             1       1     1    192.168.2.51  6000    192.168.2.51              6000      lun1 100.00     393216    0.00


[root@ control ~(keystone_admin)]#swift-ring-builder /etc/swift/container.builder
/etc/swift/container.builder, build version 1
262144 partitions, 3.000000 replicas, 1 regions, 1 zones, 1 devices, 0.00 balance
The minimum number of hours before a partition can be reassigned is 1
Devices:    id  region  zone      ip address  port  replication ip  replication port      name weight partitions balance meta
             0       1     1    192.168.2.51  6001    192.168.2.51              6001      lun1 100.00     786432    0.00


[root@ control ~(keystone_admin)]#swift-ring-builder /etc/swift/account.builder
/etc/swift/account.builder, build version 1
262144 partitions, 3.000000 replicas, 1 regions, 1 zones, 1 devices, 0.00 balance
The minimum number of hours before a partition can be reassigned is 1
Devices:    id  region  zone      ip address  port  replication ip  replication port      name weight partitions balance meta
             0       1     1    192.168.2.51  6002    192.168.2.51              6002      lun1 100.00     786432    0.00
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Pradipta_OS_M
close date 2014-12-17 11:58:03.693614

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-12-16 23:36:38 -0500

create the ring files and distribute them to the nodes , then restart the service.

edit flag offensive delete link more

Comments

Thank you Rishi for the update, that issue I have fixed, but now I am unable to upload the file.. Please have a look the above

Pradipta_OS_M gravatar imagePradipta_OS_M ( 2014-12-17 09:29:58 -0500 )edit
0

answered 2014-12-17 11:56:47 -0500

Issue has fixed ,,

Delete the wrong entry ..

[root@ control ~(keystone_admin)]#swift-ring-builder /etc/swift/object.builder remove d0
d0r1z1-192.168.2.51:6001R192.168.2.51:6001/lun1_"" marked for removal and will be removed next rebalance.
[23:24:05] Pradipta Kumar Sahoo: [root@ control ~(keystone_admin)]#swift-ring-builder /etc/swift/object.builder rebalance
Reassigned 262144 (100.00%) partitions. Balance is now 0.00.

after rebalance the issue got fixed..

[root@ control ~(keystone_admin)]#swift list c1
data1.file
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-12-15 08:30:16 -0500

Seen: 3,068 times

Last updated: Dec 17 '14