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

[kfp-persistence] config-change hook failed with ValueError #574

Open
rgildein opened this issue Oct 4, 2024 · 3 comments
Open

[kfp-persistence] config-change hook failed with ValueError #574

rgildein opened this issue Oct 4, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@rgildein
Copy link
Contributor

rgildein commented Oct 4, 2024

Bug Description

After deploying kfp-persistence from 2.2/stable channel, the config-changed hook failed with ValueError.

To Reproduce

  1. juju add-model kubeflow
  2. juju deploy kubeflow --channel 1.9/stable --trust

Environment

Juju 3.5.3
MicroK8s v1.30.5 revision 7235

Relevant Log Output

unit-kfp-persistence-0: 12:55:12 INFO juju.worker.uniter awaiting error resolution for "config-changed" hook
unit-kfp-persistence-0: 12:56:28 INFO juju.worker.uniter awaiting error resolution for "config-changed" hook
unit-kfp-persistence-0: 12:56:28 WARNING unit.kfp-persistence/0.config-changed Traceback (most recent call last):
unit-kfp-persistence-0: 12:56:28 WARNING unit.kfp-persistence/0.config-changed   File "./src/charm.py", line 31, in <module>
unit-kfp-persistence-0: 12:56:28 WARNING unit.kfp-persistence/0.config-changed     from components.sa_token_component import SaTokenComponent
unit-kfp-persistence-0: 12:56:28 WARNING unit.kfp-persistence/0.config-changed   File "/var/lib/juju/agents/unit-kfp-persistence-0/charm/src/components/sa_token_component.py", line 11, in <module>
unit-kfp-persistence-0: 12:56:28 WARNING unit.kfp-persistence/0.config-changed     import kubernetes
unit-kfp-persistence-0: 12:56:28 WARNING unit.kfp-persistence/0.config-changed   File "/var/lib/juju/agents/unit-kfp-persistence-0/charm/venv/kubernetes/__init__.py", line 21, in <module>
unit-kfp-persistence-0: 12:56:28 WARNING unit.kfp-persistence/0.config-changed     from . import dynamic
unit-kfp-persistence-0: 12:56:28 WARNING unit.kfp-persistence/0.config-changed   File "/var/lib/juju/agents/unit-kfp-persistence-0/charm/venv/kubernetes/dynamic/__init__.py", line 15, in <module>
unit-kfp-persistence-0: 12:56:28 WARNING unit.kfp-persistence/0.config-changed     from .client import *  # NOQA
unit-kfp-persistence-0: 12:56:28 WARNING unit.kfp-persistence/0.config-changed   File "/var/lib/juju/agents/unit-kfp-persistence-0/charm/venv/kubernetes/dynamic/client.py", line 18, in <module>
unit-kfp-persistence-0: 12:56:28 WARNING unit.kfp-persistence/0.config-changed     from kubernetes import watch
unit-kfp-persistence-0: 12:56:28 WARNING unit.kfp-persistence/0.config-changed   File "/var/lib/juju/agents/unit-kfp-persistence-0/charm/venv/kubernetes/watch/__init__.py", line 15, in <module>
unit-kfp-persistence-0: 12:56:28 WARNING unit.kfp-persistence/0.config-changed     from .watch import Watch
unit-kfp-persistence-0: 12:56:28 WARNING unit.kfp-persistence/0.config-changed   File "/var/lib/juju/agents/unit-kfp-persistence-0/charm/venv/kubernetes/watch/watch.py", line 16, in <module>
unit-kfp-persistence-0: 12:56:28 WARNING unit.kfp-persistence/0.config-changed     import pydoc
unit-kfp-persistence-0: 12:56:28 WARNING unit.kfp-persistence/0.config-changed   File "/usr/lib/python3.8/pydoc.py", line 73, in <module>
unit-kfp-persistence-0: 12:56:28 WARNING unit.kfp-persistence/0.config-changed     import sysconfig
unit-kfp-persistence-0: 12:56:28 WARNING unit.kfp-persistence/0.config-changed   File "<frozen importlib._bootstrap>", line 991, in _find_and_load
unit-kfp-persistence-0: 12:56:28 WARNING unit.kfp-persistence/0.config-changed   File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
unit-kfp-persistence-0: 12:56:28 WARNING unit.kfp-persistence/0.config-changed   File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
unit-kfp-persistence-0: 12:56:28 WARNING unit.kfp-persistence/0.config-changed   File "<frozen importlib._bootstrap_external>", line 844, in exec_module
unit-kfp-persistence-0: 12:56:28 WARNING unit.kfp-persistence/0.config-changed   File "<frozen importlib._bootstrap_external>", line 976, in get_code
unit-kfp-persistence-0: 12:56:28 WARNING unit.kfp-persistence/0.config-changed   File "<frozen importlib._bootstrap_external>", line 640, in _compile_bytecode
unit-kfp-persistence-0: 12:56:28 WARNING unit.kfp-persistence/0.config-changed ValueError: bad marshal data (invalid reference)
unit-kfp-persistence-0: 12:56:29 ERROR juju.worker.uniter.operation hook "config-changed" (via hook dispatching script: dispatch) failed: exit status 1
unit-kfp-persistence-0: 12:56:29 INFO juju.worker.uniter awaiting error resolution for "config-changed" hook
unit-kfp-persistence-0: 12:59:12 INFO juju.worker.uniter awaiting error resolution for "config-changed" hook
unit-kfp-persistence-0: 12:59:12 WARNING unit.kfp-persistence/0.config-changed Traceback (most recent call last):
unit-kfp-persistence-0: 12:59:12 WARNING unit.kfp-persistence/0.config-changed   File "./src/charm.py", line 31, in <module>
unit-kfp-persistence-0: 12:59:12 WARNING unit.kfp-persistence/0.config-changed     from components.sa_token_component import SaTokenComponent
unit-kfp-persistence-0: 12:59:12 WARNING unit.kfp-persistence/0.config-changed   File "/var/lib/juju/agents/unit-kfp-persistence-0/charm/src/components/sa_token_component.py", line 11, in <module>
unit-kfp-persistence-0: 12:59:12 WARNING unit.kfp-persistence/0.config-changed     import kubernetes
unit-kfp-persistence-0: 12:59:12 WARNING unit.kfp-persistence/0.config-changed   File "/var/lib/juju/agents/unit-kfp-persistence-0/charm/venv/kubernetes/__init__.py", line 21, in <module>
unit-kfp-persistence-0: 12:59:12 WARNING unit.kfp-persistence/0.config-changed     from . import dynamic
unit-kfp-persistence-0: 12:59:12 WARNING unit.kfp-persistence/0.config-changed   File "/var/lib/juju/agents/unit-kfp-persistence-0/charm/venv/kubernetes/dynamic/__init__.py", line 15, in <module>
unit-kfp-persistence-0: 12:59:12 WARNING unit.kfp-persistence/0.config-changed     from .client import *  # NOQA
unit-kfp-persistence-0: 12:59:12 WARNING unit.kfp-persistence/0.config-changed   File "/var/lib/juju/agents/unit-kfp-persistence-0/charm/venv/kubernetes/dynamic/client.py", line 18, in <module>
unit-kfp-persistence-0: 12:59:12 WARNING unit.kfp-persistence/0.config-changed     from kubernetes import watch
unit-kfp-persistence-0: 12:59:12 WARNING unit.kfp-persistence/0.config-changed   File "/var/lib/juju/agents/unit-kfp-persistence-0/charm/venv/kubernetes/watch/__init__.py", line 15, in <module>
unit-kfp-persistence-0: 12:59:12 WARNING unit.kfp-persistence/0.config-changed     from .watch import Watch
unit-kfp-persistence-0: 12:59:12 WARNING unit.kfp-persistence/0.config-changed   File "/var/lib/juju/agents/unit-kfp-persistence-0/charm/venv/kubernetes/watch/watch.py", line 16, in <module>
unit-kfp-persistence-0: 12:59:12 WARNING unit.kfp-persistence/0.config-changed     import pydoc
unit-kfp-persistence-0: 12:59:12 WARNING unit.kfp-persistence/0.config-changed   File "/usr/lib/python3.8/pydoc.py", line 73, in <module>
unit-kfp-persistence-0: 12:59:12 WARNING unit.kfp-persistence/0.config-changed     import sysconfig
unit-kfp-persistence-0: 12:59:12 WARNING unit.kfp-persistence/0.config-changed   File "<frozen importlib._bootstrap>", line 991, in _find_and_load
unit-kfp-persistence-0: 12:59:12 WARNING unit.kfp-persistence/0.config-changed   File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
unit-kfp-persistence-0: 12:59:12 WARNING unit.kfp-persistence/0.config-changed   File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
unit-kfp-persistence-0: 12:59:12 WARNING unit.kfp-persistence/0.config-changed   File "<frozen importlib._bootstrap_external>", line 844, in exec_module
unit-kfp-persistence-0: 12:59:12 WARNING unit.kfp-persistence/0.config-changed   File "<frozen importlib._bootstrap_external>", line 976, in get_code
unit-kfp-persistence-0: 12:59:12 WARNING unit.kfp-persistence/0.config-changed   File "<frozen importlib._bootstrap_external>", line 640, in _compile_bytecode
unit-kfp-persistence-0: 12:59:12 WARNING unit.kfp-persistence/0.config-changed ValueError: bad marshal data (invalid reference)
unit-kfp-persistence-0: 12:59:13 ERROR juju.worker.uniter.operation hook "config-changed" (via hook dispatching script: dispatch) failed: exit status 1
unit-kfp-persistence-0: 12:59:13 INFO juju.worker.uniter awaiting error resolution for "config-changed" hook

Additional Context

No response

@rgildein rgildein added the bug Something isn't working label Oct 4, 2024
Copy link

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/KF-6384.

This message was autogenerated

@orfeas-k
Copy link
Contributor

orfeas-k commented Oct 9, 2024

@rgildein Thank you for reporting this. We 'll need more information in order to assess the issue. Some questions that would help us with that:

  • Did you make a specific configuration or does this refer to the config-changed hook run during deployment?
  • Was this a one time thing or have you observed it consisently?
  • Have you been able to reproduce this with Juju 3.4? We do not support 3.5.x right now, as we haven't tested our charms with it.

@rgildein
Copy link
Contributor Author

rgildein commented Oct 9, 2024

Did you make a specific configuration or does this refer to the config-changed hook run during deployment?

No, I did not.

Was this a one time thing or have you observed it consisently?

It happened two times, but not I could not reproduce it.

Have you been able to reproduce this with Juju 3.4? We do not support 3.5.x right now, as we haven't tested our charms with it.

I did not try to use Juju 3.4, on the third try it worked fine with 3.5. I deployed it again now (doing some testing) and it worked fine again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants