Report swift server version

Bug #1245694 reported by Shri Javadekar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Fix Released
Undecided
Unassigned

Bug Description

Currently, there is no easy way to get the Swift server version. If I'm not wrong, the only way to do this is to run the following on the swift server/s.

python -c "import swift; print swift.__version__"

Instead there should be some way for a client to request for the server version.

Revision history for this message
Kun Huang (academicgareth) wrote :

Try this "swift --version", this should work for you

Revision history for this message
Kun Huang (academicgareth) wrote :

Sorry, above reports swift client version, not server version

Revision history for this message
John Dickinson (notmyname) wrote :

That is correct. There is no way to have a Swift cluster self-report its version via an API call.

This will probably be added with a currently-in-progress "feature discoverability" patch, but it does not exist now.

Revision history for this message
Shri Javadekar (shrinand) wrote :

How about making this info a part of the response to the HEAD request on an account?

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to swift (master)

Reviewed: https://review.openstack.org/54857
Committed: http://github.com/openstack/swift/commit/2c4bf81464ad2058226f457eb7ef64addb2f136e
Submitter: Jenkins
Branch: master

commit 2c4bf81464ad2058226f457eb7ef64addb2f136e
Author: Richard (Rick) Hawkins <email address hidden>
Date: Wed Oct 16 19:28:37 2013 -0500

    Added discoverable capabilities.

    Swift can now optionally be configured to allow requests to '/info',
    providing information about the swift cluster. Additionally a HMAC
    signed requests to
    '/info?swiftinfo_sig=<sign>&swiftinfo_expires=<expires>' can be
    configured allowing privileged access to more sensitive information
    not meant to be public.

    DocImpact
    Change-Id: I2379360fbfe3d9e9e8b25f1dc34517d199574495
    Implements: blueprint capabilities
    Closes-Bug: #1245694

Changed in swift:
status: New → Fix Committed
Revision history for this message
Shri Javadekar (shrinand) wrote :

This is awesome. Thanks for implementing this!

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to swift (feature/ec)

Fix proposed to branch: feature/ec
Review: https://review.openstack.org/59766

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to swift (feature/ec)
Download full text (43.6 KiB)

Reviewed: https://review.openstack.org/59766
Committed: http://github.com/openstack/swift/commit/239f88a42b00a71a07860f953d00771c8aef4305
Submitter: Jenkins
Branch: feature/ec

commit 8a64bff2dc28b43b3ed4fa7b65da1a9ea29677cc
Author: Samuel Merritt <email address hidden>
Date: Wed Nov 27 17:23:59 2013 -0800

    Report transaction ID in failure exceptions

    This way, when something fails in Jenkins, you have some chance of
    searching the logs for the relevant transaction.

    Change-Id: I3cf606cb4963e32b5c6ac3deda08e73541b3ff7d

commit e0147e60d800fd67bc05bc4299c315f1761bd60b
Author: Peter Portante <email address hidden>
Date: Fri Nov 22 16:59:09 2013 -0500

    Add a unit test to verify proxy logging fields

    Also bring unit test coverage to 100% (well, at least every line is
    reported as "covered").

    Change-Id: I659d0c02008368897b1307a7a5c9aaba73b80588
    Signed-off-by: Peter Portante <email address hidden>

commit 87cd5598476d0835c526918a9e1f03fe2d698866
Author: Alex Gaynor <email address hidden>
Date: Sun Nov 24 20:24:45 2013 -0600

    Account for a platform difference in semaphores

    On OS X (and probably other Operating Systems) it isn't possible to
    introspect the value of a semaphore. Account for this by skipping a
    test about this.

    Change-Id: I97824f9fc4e36de4f7a62c8ce53865e6977dfdfe

commit 3c7c355120a3ebe5c3f47e62176cec8cab824143
Author: Peter Portante <email address hidden>
Date: Mon Nov 25 13:30:41 2013 -0500

    Use TCP_NODELAY for created sockets.

    Mark Seger at HP has been looking at small objects, 1 and 2 KB size,
    and with Rick Jones' help noticed that TCP protocol traces showed
    effects from the Nagel algorithm client-to-server and
    server-to-client.

    This patch just addresses our WSGI server responses, but does not
    address out-bound connections from the various servers.

    Change-Id: I11f86df1f56fba1c6ab6084dc1f580c395f072dc
    Signed-off-by: Peter Portante <email address hidden>

commit 39032c359f01a5e397fce2eb8326b961c9673607
Author: Darrell Bishop <email address hidden>
Date: Wed Nov 27 12:07:42 2013 -0500

    Add HTML reporting for test branch coverage.

    When including branch coverage results, also generate HTML reports into
    a "cover" subdirectory under the directory in which .unittests resides
    (i.e. known location at the top of the swift tree).

    Change-Id: I493d74f38755f7bf0d7043052585efb27840b238

commit 0ba071f27c009e1d028189e812f722e8583a07ee
Author: Darrell Bishop <email address hidden>
Date: Tue Nov 26 15:08:13 2013 -0500

    Fix bug in obj updater run_once().

    The "not" in front of the ismount() call got accidentally dropped in a
    recent change. This patch adds it back along with a few more tests.

    Note that this bug only showed up on an SAIO during probe tests because
    I used actually-mounted (virtual) "disks". So keep that in mind when
    building SAIOs for development/testing.

    Change-Id: Ia193f3c4b73203605954036863575c22ddab6b03

commit edc9f62ed6c537c4c112cf552310705b99fa08b8
Author: Peter Portante <peter.portante@redha...

Changed in swift:
milestone: none → 1.11.0
Thierry Carrez (ttx)
Changed in swift:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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