Can not upload image to glance using swift backend

Solution In Progress - Updated -

Issue

  • /var/log/glance/api.log
2017-11-02 15:11:14.792 948408 ERROR glance.common.wsgi Got error from Swift: Container PUT failed: http://172.18.4.17:8080/v1/AUTH_4ac8137779464060a474f44b4b7c2eb5/glance 404 Not Found  [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.<.
2017-11-02 15:11:14.792 948408 ERROR glance.common.wsgi
  • or error could look like:
 Caught error: Failed to add container to Swift.
Got error from Swift: Container PUT failed: http://172.18.0.11:8080/v1/AUTH_b27bec4a62cd4e39bcf9de831139e350/glance 404 Not Found  [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.<.
  • Also in swift.log we see it tries to use ips that don't exist on the controller:
Dec 29 21:30:49 overcloud-controller-0 container-server: ERROR reading HTTP response from {'index': 0, u'replication_port': 6001, u'weight': 100.0, u'zone': 1, u'ip': u'172.19.0.18', u'region': 1, u'id': 2, u'replication_ip': u'172.19.0.18', u'meta': u'', u'device': u'd1', u'port': 6001}: Host unreachable 
Dec 29 21:31:06 overcloud-controller-0 swift: ERROR with Account server 172.19.0.11:6002/d1 re: Trying to HEAD /v1/.expiring_objects: ConnectionTimeout (0.5s) (txn: txfc7865f7599e4a9688b6b-005a46b41a) 
Dec 29 21:31:09 overcloud-controller-0 account-server: ERROR reading HTTP response from {'index': 0, u'replication_port': 6002, u'weight': 100.0, u'zone': 1, u'ip': u'172.19.0.11', u'region': 1, u'id': 0, u'replication_ip': u'172.19.0.11', u'meta': u'', u'device': u'd1', u'port': 6002}: Host unreachable

Environment

  • Red Hat OpenStack Platform 10.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content