[Bug 1587261] Re: [SRU] Swift bucket X-Timestamp not set by Rados Gateway

Frode Nordahl frode.nordahl at gmail.com
Tue Dec 6 16:25:41 UTC 2016


$ juju ssh ceph-radosgw/0 dpkg -l radosgw
ii  radosgw                                      10.2.2-0ubuntu0.16.04.2~clo amd64                      $ swift post test
$ swift stat test
                      Account: v1
                    Container: test
                      Objects: 0
                        Bytes: 0
                     Read ACL:
                    Write ACL:
                      Sync To:
                     Sync Key:
                Accept-Ranges: bytes
                       Server: Apache/2.4.7 (Ubuntu)
X-Container-Bytes-Used-Actual: 0
                  X-Timestamp: 0.00000
                   X-Trans-Id: tx000000000000000000003-005846e2f9-10ce-default
             X-Storage-Policy: default-placement
                 Content-Type: text/plain; charset=utf-8
$ juju ssh ceph-radosgw/0 "sudo add-apt-repository cloud-archive:mitaka-proposed;sudo apt-get update;sudo apt-get -y dist-upgrade"
$ juju ssh ceph-radosgw/0 dpkg -l radosgw
ii  radosgw                                      10.2.3-0ubuntu0.16.04.2~clo amd64
$ juju ssh ceph-radosgw/0 sudo shutdown -r now
$ swift post test_sru
$ swift stat test_sru
                      Account: v1
                    Container: test_sru
                      Objects: 0
                        Bytes: 0
                     Read ACL:
                    Write ACL:
                      Sync To:
                     Sync Key:
                Accept-Ranges: bytes
                       Server: Apache/2.4.7 (Ubuntu)
X-Container-Bytes-Used-Actual: 0
                  X-Timestamp: 1481041211.87247
                   X-Trans-Id: tx000000000000000000003-005846e541-10b2-default
             X-Storage-Policy: default-placement
                 Content-Type: text/plain; charset=utf-8


** Tags removed: verification-mitaka-needed
** Tags added: verification-done-mitaka

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to Ubuntu Cloud Archive.
https://bugs.launchpad.net/bugs/1587261

Title:
  [SRU] Swift bucket X-Timestamp not set by Rados Gateway

Status in Ubuntu Cloud Archive:
  Invalid
Status in Ubuntu Cloud Archive mitaka series:
  Fix Committed
Status in ceph package in Ubuntu:
  Fix Released
Status in ceph source package in Xenial:
  Fix Released
Status in ceph source package in Yakkety:
  Fix Released
Status in ceph source package in Zesty:
  Fix Released

Bug description:
  [Impact]

   * A basic characteristic of a object store is the ability to create
     buckets and objects and to query for information about said
     buckets and objects.

   * In the current version of the ceph radosgw package it is not
     possible to get creation time for buckets. This is a serious
     defect and makes it impossible to use Ubuntu with ceph as a
     object store for some applications.

   * The issue has been fixed in upstream master

   * The proposed debdiff solves the issue by including patches cherry
     picked and adapted from upstream master branch fixing this issue.

  [Test Case]

   * Use Juju to deploy Ceph cluster with radosgw and relation to OpenStack
     Keystone. Example bundle: http://pastebin.ubuntu.com/23374308/

   * Install OpenStack Swift client

      sudo apt-get install python-swiftclient

   * Load OpenStack Credentials pointing to your test deployment

      wget https://raw.githubusercontent.com/openstack-charmers/openstack-bundles/master/development/shared/novarc
      . novarc

   * Create swift bucket

      swift post test

   * Display information about newly created bucket

      swift stat test

   * Observe that key 'X-Timestamp' has value 0.0

   * Delete bucket

      swift delete test

   * Install patched radosgw packages on 'ceph-radosgw' unit and repeat

   * Verify that key 'X-Timestamp' now has a value > 0.0 and corrensponding
     to the unixtime of when you created the bucket.

  [Regression Potential]

   * The patch is simple and I see little potential for any regression as a
     result of it being applied.

  [Original bug description]
  When creating a swift/radosgw bucket in horizon the bucket gets created, but shows up with a creation date of 19700101

  In the apache log one can observe

  curl -i http://10.11.140.241:80/swift/v1/bucket1 -I -H "X-Auth-Token:  ...
  Container HEAD failed: http://10.11.140.241:80/swift/v1/bucket1 404 Not Found

  However a manual curl call succeeds. Also the radosgw.log shows
  successful PUT/GET requests.

  I get similar results using the swift command line utility with
  containers inheriting a creation date of 19700101 even though I can
  see the correct date being passed to rados in the headers of the
  request.

  Also similarly issues with ceilometer intergration, similarly linked:

  2016-05-31 06:28:16.931 1117922 WARNING ceilometer.agent.manager [-] Continue after error from storage.containers.objects: Account GET failed: http://10.101.140.241:80/swift/v1/AUTH_025d6aa2af18415a87c012211edb7fea?format=json 404 Not Found  [first 60 chars of response] {"Code":"NoSuchBucket","BucketName":"AUTH_025d6aa2af18415a87
  2016-05-31 06:28:16.931 1117922 ERROR ceilometer.agent.manager Traceback (most recent call last):

  This is using charm version: 86 against Openstack Mitaka

  This also seems pretty reproduceable with any ceph, ceph-rados and
  mitaka install via the juju charms.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1587261/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list