Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 0.16.1 #1354

Merged
merged 2 commits into from
Oct 8, 2020
Merged

Version 0.16.1 #1354

merged 2 commits into from
Oct 8, 2020

Conversation

tomchristie
Copy link
Member

0.16.1 (October 8th, 2020)

Fixed

@tomchristie tomchristie added the release A new package release label Oct 8, 2020
@tomchristie tomchristie merged commit 92ca4d0 into master Oct 8, 2020
@tomchristie tomchristie deleted the version-0.16.1 branch October 8, 2020 12:14
@bdieng-sudo
Copy link

appying the httpx version =>0.16.1 here 1.0.5 still not correct the occuring :
"raise to_exc(exc) from None
httpcore.ConnectError: [Errno -2] Name or service not known"

what's going wrong?

@tomchristie
Copy link
Member Author

@bdieng-sudo Couldn't really say from that alone. I'd suggest start a discussion, and include a bit more information about what you're actually doing. Someone will probably be able to help you out a bit if you do that.

@bdieng-sudo
Copy link

Hi Tom,
thanks for your feedback.
Thus I'm tryinh to générate a shaman application with as an argument : a yaml file.
the error occurs at this stage as shown below:

shaman-install configuration.yaml

2021-05-10 15:46:58.203 | DEBUG | bb_wrapper.tunable_component.install_component:install_component:36 - Sending component data {'components': {'shaman_pbo_msr_profiling': {'plugin': '', 'header': 'sync', 'command': "rsh pboadm@hana02 'unpbo_shaman.sh'", 'ld_preload': None, 'parameters': {'nbthreads': {'type': 'int', 'default': 8, 'optional': False, 'env_var': True, 'description': 'Number of threads setting {1..10}', 'cmd_var': None, 'cli_var': None, 'flag': None, 'suffix': None}, 'msr_1a4': {'type': 'int', 'default': 0, 'optional': False, 'env_var': True, 'description': 'MSR 0x1a4 setting {0..15}', 'cmd_var': None, 'cli_var': None, 'flag': None, 'suffix': None}, 'msr_64': {'type': 'int', 'default': 0, 'optional': False, 'env_var': True, 'description': 'MSR 0x64 setting {0..15}', 'cmd_var': None, 'cli_var': None, 'flag': None, 'suffix': None}}, 'custom_target': 'parse_execution_time.parse_slurm_times'}}}to endpointhttp: // api: 5000components
Traceback (most recent call last):
File "/root/shaman-next/env/lib/python3.7/site-packages/httpx/_transports/default.py", line 61, in map_httpcore_exceptions
yield
File "/root/shaman-next/env/lib/python3.7/site-packages/httpx/_transports/default.py", line 184, in handle_request
extensions=extensions,
File "/root/shaman-next/env/lib/python3.7/site-packages/httpcore/_sync/connection_pool.py", line 231, in handle_request
method, url, headers=headers, stream=stream, extensions=extensions
File "/root/shaman-next/env/lib/python3.7/site-packages/httpcore/_sync/connection.py", line 99, in handle_request
self.socket = self._open_socket(timeout)
File "/root/shaman-next/env/lib/python3.7/site-packages/httpcore/_sync/connection.py", line 135, in _open_socket
local_address=self.local_address,
File "/root/shaman-next/env/lib/python3.7/site-packages/httpcore/_backends/sync.py", line 144, in open_tcp_stream
return SyncSocketStream(sock=sock)
File "/usr/local/lib/python3.7/contextlib.py", line 130, in exit
self.gen.throw(type, value, traceback)
File "/root/shaman-next/env/lib/python3.7/site-packages/httpcore/_exceptions.py", line 12, in map_exceptions
raise to_exc(exc) from None
httpcore.ConnectError: [Errno -2] Name or service not known

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/root/shaman-next/env/bin/shaman-install", line 5, in
cli()
File "/root/shaman-next/env/lib/python3.7/site-packages/typer/main.py", line 214, in call
return get_command(self)(*args, **kwargs)
File "/root/shaman-next/env/lib/python3.7/site-packages/click/core.py", line 829, in call
return self.main(*args, **kwargs)
File "/root/shaman-next/env/lib/python3.7/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/root/shaman-next/env/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/root/shaman-next/env/lib/python3.7/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/root/shaman-next/env/lib/python3.7/site-packages/typer/main.py", line 497, in wrapper
return callback(**use_params) # type: ignore
File "/root/shaman-next/shaman_project/bb_wrapper/tunable_component/install_component.py", line 42, in install_component
api_settings.component_endpoint, json=component.dict())
File "/root/shaman-next/env/lib/python3.7/site-packages/httpx/_client.py", line 1072, in post
timeout=timeout,
File "/root/shaman-next/env/lib/python3.7/site-packages/httpx/_client.py", line 748, in request
request, auth=auth, allow_redirects=allow_redirects, timeout=timeout
File "/root/shaman-next/env/lib/python3.7/site-packages/httpx/_client.py", line 836, in send
history=[],
File "/root/shaman-next/env/lib/python3.7/site-packages/httpx/_client.py", line 870, in _send_handling_auth
history=history,
File "/root/shaman-next/env/lib/python3.7/site-packages/httpx/_client.py", line 900, in _send_handling_redirects
response = self._send_single_request(request, timeout)
File "/root/shaman-next/env/lib/python3.7/site-packages/httpx/_client.py", line 939, in _send_single_request
extensions={"timeout": timeout.as_dict()},
File "/root/shaman-next/env/lib/python3.7/site-packages/httpx/_transports/default.py", line 184, in handle_request
extensions=extensions,
File "/usr/local/lib/python3.7/contextlib.py", line 130, in exit
self.gen.throw(type, value, traceback)
File "/root/shaman-next/env/lib/python3.7/site-packages/httpx/_transports/default.py", line 78, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ConnectError: [Errno -2] Name or service not known
(env) hana03:~/shaman-next #

@tomchristie
Copy link
Member Author

I'd suggest start a discussion, and include a bit more information about what you're actually doing.

I'd suggest using the "discussions" feature in the future...

Screenshot 2021-05-10 at 14 52 19

httpx.ConnectError: [Errno -2] Name or service not known

Most likely you're attempting to make a request to an invalid URL.

This... http://api:5000 looks wrong to me.

@bdieng-sudo
Copy link

that's the question.
the API:5000 is defined s a container as shown in the "podman ps -a" cmd
(env) hana03:/shaman-next # podman ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0bc8e8e93bd6 docker.io/hashicorp/http-echo:latest -text=hello 26 hours ago Up 26 hours ago serv
907b6812eda1 docker.io/library/mongo:4.0 mongo --host mong... 4 days ago Exited (0) 3 days ago 0.0.0.0:5001->5000/tcp, 0.0.0.0:27020->27017/tcp, 0.0.0.0:3000->3000/tcp mongo_init
10babde1f18c docker.io/library/redis:latest redis-server 4 days ago Up 4 days ago 0.0.0.0:5001->5000/tcp, 0.0.0.0:27020->27017/tcp, 0.0.0.0:3000->3000/tcp redis
cf74d6adcb87 docker.io/sphrbthyk/shaman-api:latest uvicorn shaman_ap... 4 days ago Up 4 days ago 0.0.0.0:5001->5000/tcp, 0.0.0.0:27020->27017/tcp, 0.0.0.0:3000->3000/tcp api
e7903da84873 docker.io/sphrbthyk/shaman-ui:latest npm run start 4 days ago Up 4 days ago 0.0.0.0:5001->5000/tcp, 0.0.0.0:27020->27017/tcp, 0.0.0.0:3000->3000/tcp ui
37b5e7c5de95 docker.io/library/mongo:4.0 mongod --bind_ip ... 4 days ago Up 3 days ago 0.0.0.0:5001->5000/tcp, 0.0.0.0:27020->27017/tcp, 0.0.0.0:3000->3000/tcp mongo
79770c21b1bd k8s.gcr.io/pause:3.2 4 days ago Up 4 days ago 0.0.0.0:5001->5000/tcp, 0.0.0.0:27020->27017/tcp, 0.0.0.0:3000->3000/tcp fbc8f144584c-infra
(env) hana03:
/shaman-next #

@bdieng-sudo
Copy link

this join your diagnostic Tom.
when simply run "curl http://api:5000"
........
........

The requested URL could not be retrieved


The following error was encountered while trying to retrieve the URL: http://api:5000/

Unable to determine IP address from host name api

The DNS server returned:

Name Error: The domain name does not exist.

This means that the cache was not able to resolve the hostname presented in the URL. Check if the address is correct.

@tomchristie
Copy link
Member Author

I don't know anything about podman, so you probably need to ask there instead. But you likely want to be connecting to http://127.0.0.1:5000, rather than http://api:5000/.

I can't really help you out anymore with this, since it's not an httpx issue.

Although we could do with a better error message for this case, making it more clear that the hostname "app" didn't resolve.

@bdieng-sudo
Copy link

Hi Tom,
thank U for your support. I have to check why the localhost IP has been substitute by API....
in SLES7, podman has some properties natiev to SUse i need to better understading i guest.
regards!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release A new package release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants