Ask Your Question
0

ProtocolError('Connection aborted.', error(104, 'Connectoin reset by peer'))

asked 2017-10-19 20:26:14 -0600

hanchao gravatar image

The evironment is OpenStack pike release installed by rdo-packstack on CentOS 7.2.

Where I followed the github instruction and installed freezer components by hands. When I tried the basic command, like "freezer job-list", to have a try, it stucks for a short while, then returns the following error:

Traceback (most recent call last):
  File "/usr/bin/freezer", line 11, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/site-packages/freezerclient/shell.py", line 291, in main
    return FreezerShell().run(argv)
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 279, in run
    result = self.run_subcommand(remainder)
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 400, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/display.py", line 113, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python2.7/site-packages/freezerclient/v1/jobs.py", line 117, in take_action
    search=search
  File "/usr/lib/python2.7/site-packages/freezerclient/v1/managers/jobs.py", line 56, in list_all
    params=query, data=data, verify=self.verify)
  File "/usr/lib/python2.7/site-packages/requests/api.py", line 72, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/lib/python2.7/site-packages/requests/api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 618, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 405, in send
    conn = self.get_connection(request.url, proxies)
requests.exceptions.ConnectionError: ('Connection aborted.', error(104, 'Connection reset by peer'))

I even digged into the code section. Everything seems work fine, but after the following part (after timeout=timeout), the code stucks a short time that I mentioned perviously. Then it throw the exception of ProtocolError part and the traceback is reported.

try:
        if not chunked:
            resp = conn.urlopen(
                method=request.method,
                url=url,
                body=request.body,
                headers=request.headers,
                redirect=False,
                assert_same_host=False,
                preload_content=False,
                decode_content=False,
                retries=self.max_retries,
                timeout=timeout
            )

This is really weird, and I have really no idea. Hope experts could have a look and give some hints.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-10-23 01:35:56 -0600

hanchao gravatar image

updated 2017-10-23 02:43:29 -0600

The error is because the uri in freezer-api.conf is wrong... Once this is updated to the correct, the service works as expected.

edit flag offensive delete link more

Comments

Can you tell what should be the correct uri to add in freezer-api.conf

Deepa gravatar imageDeepa ( 2019-11-21 01:11:46 -0600 )edit

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: 2017-10-19 20:26:14 -0600

Seen: 823 times

Last updated: Oct 23 '17