Ask Your Question
0

How do I solve "Error finding address for http://controller:9292/v2/schemas/image: HTTPConnectionPool(host='controller', port=9292): Max retries exceeded with url: /v2/schemas/image " While uploading Glance Image in Openstack

asked 2020-02-16 15:28:11 -0500

Gimjam gravatar image

updated 2020-03-03 19:31:21 -0500

Command Executed on Ubuntu 18.04 Terminal:

root@controller:~# openstack image create --container-format bare --disk-format qcow2 --file cirros-0.4.0-x86_64-disk.img cirros-0.4.0-x86_64
Missing value auth-url required for auth plugin password
root@controller:~#

When I run the tail error log command I get:

root@controller:~# tail -f /var/log/apache2/error.log
[Fri Feb 14 05:07:44.099071 2020] [wsgi:error] [pid 3728:tid 140444761962240] [remote 127.0.0.1:50708]     obj, resp = next(self._self_wrapped)
[Fri Feb 14 05:07:44.099077 2020] [wsgi:error] [pid 3728:tid 140444761962240] [remote 127.0.0.1:50708]   File "/usr/lib/python2.7/dist-packages/glanceclient/v2/images.py", line 183, in list
[Fri Feb 14 05:07:44.099084 2020] [wsgi:error] [pid 3728:tid 140444761962240] [remote 127.0.0.1:50708]     for image, resp in paginate(url, page_size, limit):
[Fri Feb 14 05:07:44.099091 2020] [wsgi:error] [pid 3728:tid 140444761962240] [remote 127.0.0.1:50708]   File "/usr/lib/python2.7/dist-packages/glanceclient/v2/images.py", line 110, in paginate
[Fri Feb 14 05:07:44.099097 2020] [wsgi:error] [pid 3728:tid 140444761962240] [remote 127.0.0.1:50708]     resp, body = self.http_client.get(next_url, headers=req_id_hdr)
[Fri Feb 14 05:07:44.099104 2020] [wsgi:error] [pid 3728:tid 140444761962240] [remote 127.0.0.1:50708]   File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 286, in get
[Fri Feb 14 05:07:44.099111 2020] [wsgi:error] [pid 3728:tid 140444761962240] [remote 127.0.0.1:50708]     return self._request('GET', url, **kwargs)
[Fri Feb 14 05:07:44.099118 2020] [wsgi:error] [pid 3728:tid 140444761962240] [remote 127.0.0.1:50708]   File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 253, in _request
[Fri Feb 14 05:07:44.099124 2020] [wsgi:error] [pid 3728:tid 140444761962240] [remote 127.0.0.1:50708]     raise exc.CommunicationError(message=message)
[Fri Feb 14 05:07:44.099147 2020] [wsgi:error] [pid 3728:tid 140444761962240] [remote 127.0.0.1:50708] CommunicationError: Error finding address for http://controller:9292/v2/images?limit=1000&sort_key=created_at&sort_dir=desc: HTTPConnectionPool(host='controller', port=9292): Max retries exceeded with url: /v2/images?limit=1000&sort_key=created_at&sort_dir=desc (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbbbb47c5d0>: Failed to establish a new connection: [Errno 111] Connection refused',))

I have already downloaded a copy on local host and when I run ls command (as user and root) I can see:

stack@controller:~$ ls admin-openrc demo-openrc Documents Music Public Videos cirros-0.4.0-x86_64-disk.img Desktop Downloads Pictures Templates

root@controller:~# ls cirros-0.4.0-x86_64-disk.img

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-02-16 17:46:50 -0500

The error message on the command line means that you didn't tell the openstack client how to contact Keystone. There are two ways to do that: With a command line option --os-auth-url, or an environment variable OS_AUTH_URL. See https://docs.openstack.org/python-ope....

On your controller, the environment variable can be set by sourcing admin-openrc or demo-openrc.

Furthermore, the error in the Apache log file indicates that your web server is unable to contact Glance. I guess the Glance API process is not running at that very moment.

I also think that the two messages are unrelated. The error log contains a request to list images, not to create an image. Does the timestamp in the Apache log correlate with the image create command above?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2020-02-16 15:28:11 -0500

Seen: 63 times

Last updated: Mar 03