.S3 Bucket and Swift Container list commands work as expected
There was an uninitialized variable that was getting accessed before it was initialized causing the variable to contain a random value. This was causing the S3 bucket and Swift container list commands to generate the following error:
Account not found
With this release, the code flow was fixed to initialize the variable before accessing it, resulting in the S3 bucket and Swift container list commands not to fail.
Description of problem:
Intermittent S3 bucket list and swift container list are broken after upgrading to RHCS 2.5.z2 - 10.2.10-40.el7cp
s3cmd list - gives nothing but if give the s3cmd list <bucket URL> it returns the object names.
swift list - gives the account not fount
Version-Release number of selected component (if applicable):
At customer side always
For now workaround - downgraded to RHCS 2.5.1 - 10.2.10-28.el7cp and both s3cmd list and swift list are working fine.
I am suspecting this is happening because of some changes went into RHCS 2.5.2 code -10.2.10-40.el7cp
with the help of this bug - https://bugzilla.redhat.com/show_bug.cgi?id=1516099 which has this upstream jewel PR attached - https://github.com/ceph/ceph/pull/20257.
Because I checked the 2.5.z2 errata - https://access.redhat.com/errata/RHBA-2018:2651 and I only see this above bug related to swift not sure why it is causing issues for S3 maybe some change in bucket list and container list part.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.