Skip to content
This repository has been archived by the owner on Feb 10, 2021. It is now read-only.

'org.varlink.service.InvalidParameter' error while using Push function #56

Open
Phadated opened this issue Oct 1, 2019 · 3 comments
Open

Comments

@Phadated
Copy link
Contributor

Phadated commented Oct 1, 2019

Description: Push image function throws below error

Traceback (most recent call last):
  File "push.py", line 9, in <module>
    result= img.push("docker://docker.io/dhanisha/fedora")
  File "/root/.local/lib/python3.7/site-packages/podman/libs/images.py", line 88, in push
    sign_by)
  File "/root/.local/lib/python3.7/site-packages/podman/client.py", line 109, in __exit__
    raise error_factory(e)
  File "/root/.local/lib/python3.7/site-packages/podman/libs/images.py", line 88, in push
    sign_by)
  File "/root/.local/lib/python3.7/site-packages/varlink/client.py", line 86, in _wrapped
    return self._call(method.name, *args, **kwargs)
  File "/root/.local/lib/python3.7/site-packages/varlink/client.py", line 127, in _call
    parameters = self._interface.filter_params("client.call", method.in_type, False, args, kwargs)
  File "/root/.local/lib/python3.7/site-packages/varlink/scanner.py", line 382, in filter_params
    None)
  File "/root/.local/lib/python3.7/site-packages/varlink/scanner.py", line 359, in filter_params
    raise InvalidParameter(parent_name)
varlink.error.InvalidParameter: {'error': 'org.varlink.service.InvalidParameter', 'parameters': {'parameter': 'client.call.creds'}}

Use below code to reproduce the error:

img = client.images.get('fedora')
res= img.push("docker://docker.io/dhanisha/fedora")
print(res)

Can anyone please tell me whether my usage of the functionality is wrong.

@4383
Copy link
Collaborator

4383 commented Oct 3, 2019

Hello @Phadated

Which version of python-podman, varlink and libpod are in use there?

@Phadated
Copy link
Contributor Author

Varlink:- 17 version
podman:- podman version 1.3.1
python-podman: -I pulled the latest changes from the python-podman repository and built egg as per the instructions.

@4383
Copy link
Collaborator

4383 commented Oct 18, 2019

@Phadated thanks for your reply.

Please, can you execute and give us the output of:

pip freeze

I'm not sure but your error look like to an incompatibility issue between python-podman and libpod, where some varlink interfaces are not compatible with something expected.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants