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

[Feature] Support scp_from and scp_to for k8s charm #1029

Open
chanchiwai-ray opened this issue Feb 21, 2024 · 0 comments
Open

[Feature] Support scp_from and scp_to for k8s charm #1029

chanchiwai-ray opened this issue Feb 21, 2024 · 0 comments
Labels
wishlisted requested feature

Comments

@chanchiwai-ray
Copy link

Description

It would be nice for python-libjuju to support scp_from and scp_to for k8s charm. For example, when running unit.scp_from, the follow error happen (in juju==3.2.4, libjuju==3.2.2):

  File "/snap/openstack/x10/lib/python3.10/site-packages/sunbeam/jobs/juju.py", line 467, in scp_from                   
    await unit.scp_from(source, destination)                                                                            
  File "/snap/openstack/x10/lib/python3.10/site-packages/juju/unit.py", line 333, in scp_from                           
    await self.machine.scp_from(source, destination, user=user,                                                         
AttributeError: 'NoneType' object has no attribute 'scp_from' 

So, it seems like those feature are not available for k8s charm. Related bug that was closed: #885

Urgency

Casually wishlisting

Code I'd Like to Run

unit.scp_from(source_in_the_container, destination_in_the_host, ...)
unit.scp_to(source_in_the_host, destination_in_the_container, ...)
@chanchiwai-ray chanchiwai-ray added the wishlisted requested feature label Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wishlisted requested feature
Projects
None yet
Development

No branches or pull requests

1 participant