Troubleshooting steps

In the previous chapter, we have seen some troubleshooting steps, which are also applicable here, such as checking the configuration files for extra spaces in the URI configuration and restarting the services and the location of the log files.

There are some additional troubleshooting steps specific to Swift, which have been discussed in this section.

Swift authentication error

If the Swift service doesn't start or gives an authentication error when upi try to execute the swift stat command, follow these steps:

  • Check the Swift endpoint:
    • Execute the command Keystone endpoint-list and check that Swift's endpoint has the AUTH_ variable in the URI of the public and the private endpoint address.
    • If there is an error in the endpoint, just delete it with the Keystone endpoint-delete command and recreate it as shown in this chapter.
  • Check the Swift configuration files:
    • Check that the tempauth is not enabled in the pipeline. The tempauth is the temporary authentication module of Swift. Since we are offloading the authentication to Keystone, it needs to be enabled.
  • Check that the /etc/swift directory has all the required configuration files and permissions:
    • Ensure that the /etc/swift directory is owned by Swift, that it has the configuration file swift.conf, and depending on the node type, it has policy, account, and object configuration files.
  • Check that the ring files have been redistributed:
    • Ensure that the .gz ring files for all the three rings are available on all the nodes irrespective of it being a proxy or a storage node.
    • If not available, copy it to all the nodes using the scp example.

Ring files don't get created

If the ring files don't get created, ensure that you have typed in the rebalance command for all the three. The rebalance command is the one that creates the ring.gz file, and it needs to be run in the case of all the three rings individually.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset