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

snowflake package name changed to snowflake-uuid #15352

Open
rogerpueyo opened this issue Dec 11, 2023 · 1 comment
Open

snowflake package name changed to snowflake-uuid #15352

rogerpueyo opened this issue Dec 11, 2023 · 1 comment
Labels
type: bug Something isn't working

Comments

@rogerpueyo
Copy link
Contributor

rogerpueyo commented Dec 11, 2023

Environment

  • Version: v1.8, master?
  • Affected Component: Access Gateway, Federation Gateway?
  • Affected Subcomponent: AGW MME, AGW Vagrant dev VM, FeG containers?
  • Deployment Environment: Vagrant (AGW), Docker (FeG)?

Describe the Issue

The Python package used by Magma to generate an AGW's or a FeG's UUID changed its name in PyPI from snowflake to snowflake-uuid. The former snowflake now corresponds to another project with the same name with different functionalities. For more info, see:

Launching a VM using Vagrant and building the v1.8 AGW from source leads to downloading the wrong new snowflake package (which does not provide the required UUID capabilities), instead of the now-renamed-to snowflake-uuid package (which is the correct one).

To Reproduce

  1. Run AGW v1.8 dev VM with Vagrant
  2. Build the AGW from source (cd ~/magma/lte/gateway; make run with Magma AGW v1.8)
  3. Show logs ($ sudo journalctl -fu magma*)
Dec 11 15:29:10 i2cat-gs75-magma-v1p8pp-agw systemd[1]: magma@magmad.service: Scheduled restart job, restart counter is at 5.
Dec 11 15:29:10 i2cat-gs75-magma-v1p8pp-agw systemd[1]: Stopped Magma magmad service.
Dec 11 15:29:10 i2cat-gs75-magma-v1p8pp-agw systemd[1]: Started Magma magmad service.
Dec 11 15:29:10 i2cat-gs75-magma-v1p8pp-agw magmad[32135]: INFO:root:Sentry disabled because of missing dsn_python. See documentation (Configure > AGW) on how to configure Sentry dsn.
Dec 11 15:29:10 i2cat-gs75-magma-v1p8pp-agw magmad[32135]: Traceback (most recent call last):
Dec 11 15:29:10 i2cat-gs75-magma-v1p8pp-agw magmad[32135]:   File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
Dec 11 15:29:10 i2cat-gs75-magma-v1p8pp-agw magmad[32135]:     return _run_code(code, main_globals, None,
Dec 11 15:29:10 i2cat-gs75-magma-v1p8pp-agw magmad[32135]:   File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
Dec 11 15:29:10 i2cat-gs75-magma-v1p8pp-agw magmad[32135]:     exec(code, run_globals)
Dec 11 15:29:10 i2cat-gs75-magma-v1p8pp-agw magmad[32135]:   File "/home/vagrant/magma/orc8r/gateway/python/magma/magmad/main.py", line 316, in <module>
Dec 11 15:29:10 i2cat-gs75-magma-v1p8pp-agw magmad[32135]:     main()
Dec 11 15:29:10 i2cat-gs75-magma-v1p8pp-agw magmad[32135]:   File "/home/vagrant/magma/orc8r/gateway/python/magma/magmad/main.py", line 61, in main
Dec 11 15:29:10 i2cat-gs75-magma-v1p8pp-agw magmad[32135]:     logging.info('Starting magmad for UUID: %s', snowflake.make_snowflake())
Dec 11 15:29:10 i2cat-gs75-magma-v1p8pp-agw magmad[32135]:   File "/home/vagrant/build/python/lib/python3.8/site-packages/snowflake/_legacy/__init__.py", line 27, in make_snowflake
Dec 11 15:29:10 i2cat-gs75-magma-v1p8pp-agw magmad[32135]:     raise NotImplementedError('This function is only available in the snowflake-uuid package')
Dec 11 15:29:10 i2cat-gs75-magma-v1p8pp-agw magmad[32135]: NotImplementedError: This function is only available in the snowflake-uuid package
Dec 11 15:29:11 i2cat-gs75-magma-v1p8pp-agw systemd[1]: magma@magmad.service: Main process exited, code=exited, status=1/FAILURE
Dec 11 15:29:11 i2cat-gs75-magma-v1p8pp-agw magmad[32149]: ERROR:root:Failed to write to redis, status Error 111 connecting to 127.0.0.1:6380. Connection refused.
Dec 11 15:29:11 i2cat-gs75-magma-v1p8pp-agw magmad[32149]: ERROR:root:Logging exit info instead
Dec 11 15:29:11 i2cat-gs75-magma-v1p8pp-agw magmad[32149]: latest_service_result: EXIT_CODE
Dec 11 15:29:11 i2cat-gs75-magma-v1p8pp-agw magmad[32149]: latest_exit_code: EXITED
Dec 11 15:29:11 i2cat-gs75-magma-v1p8pp-agw magmad[32149]: latest_rc: 1
Dec 11 15:29:11 i2cat-gs75-magma-v1p8pp-agw systemd[1]: magma@magmad.service: Failed with result 'exit-code'.
@rogerpueyo rogerpueyo added the type: bug Something isn't working label Dec 11, 2023
@rogerpueyo rogerpueyo changed the title Snowflake package name changed snowflake package name changed to snowflake-uuid Dec 12, 2023
@rogerpueyo
Copy link
Contributor Author

This is printed during the make run process, showing we got the wrong snowflake package instead of the renamed snowflake-uuid one.

[...]
[56/94] Building CXX object CMakeFiles/SESSION_MANAGER.dir/orc8r/protos/digest.pb.cc.oERROR: pydantic 1.10.13 has requirement typing-extensions>=4.2.0, but you'll have typing-extensions 3.10.0.2 which is incompatible.
ERROR: snowflake-connector-python 3.6.0 has requirement cryptography<42.0.0,>=3.1.0, but you'll have cryptography 2.8 which is incompatible.
ERROR: snowflake-connector-python 3.6.0 has requirement typing-extensions<5,>=4.3, but you'll have typing-extensions 3.10.0.2 which is incompatible.
ERROR: snowflake-snowpark-python 1.11.1 has requirement typing-extensions<5.0.0,>=4.1.0, but you'll have typing-extensions 3.10.0.2 which is incompatible.
ERROR: snowflake-core 0.5.1 has requirement python-dateutil>=2.8.2, but you'll have python-dateutil 2.8.1 which is incompatible.
[57/94] Building CXX object CMakeFiles/SESSION_MANAGER.dir/orc8r/protos/directoryd.pb.cc.omake[2]: Leaving directory '/home/vagrant/magma/orc8r/gateway/python'
[...]

rogerpueyo pushed a commit to rogerpueyo/magma that referenced this issue Dec 12, 2023
The snowflake package used to create a UUID, e.g., for an AGW's
/etc/snowflake file has been renamed to snowflake-uuid, and the former
snowflake package has been taken over by a completely different piece of
software. Pinning the package version to v0.0.3 ensures that we fetch
the latest available release of the former snowflake package, before the
name change.

Fixes magma#15352.

Signed-off-by: Roger Pueyo Centelles <roger.pueyo@i2cat.net>
rogerpueyo pushed a commit to rogerpueyo/magma that referenced this issue Dec 12, 2023
The snowflake package used to create a UUID, e.g., for an AGW's
/etc/snowflake file has been renamed to snowflake-uuid, and the former
snowflake package has been taken over by a completely different piece of
software. Pinning the package version to v0.0.3 ensures that we fetch
the latest available release of the former snowflake package, before the
name change.

Fixes magma#15352.

Signed-off-by: Roger Pueyo Centelles <roger.pueyo@i2cat.net>
Signed-off-by: Roger Pueyo Centelles <NUC>
rogerpueyo pushed a commit to rogerpueyo/magma that referenced this issue Dec 12, 2023
The snowflake package used to create a UUID, e.g., for an AGW's
/etc/snowflake file has been renamed to snowflake-uuid, and the former
snowflake package has been taken over by a completely different piece of
software. Pinning the package version to v0.0.3 ensures that we fetch
the latest available release of the former snowflake package, before the
name change.

Fixes magma#15352 for v1.8.

Signed-off-by: Roger Pueyo Centelles <roger.pueyo@i2cat.net>
rogerpueyo added a commit to rogerpueyo/magma that referenced this issue Dec 12, 2023
The snowflake package used to create a UUID, e.g., for an AGW's
/etc/snowflake file has been renamed to snowflake-uuid, and the former
snowflake package has been taken over by a completely different piece of
software. Pinning the package version to v0.0.3 ensures that we fetch
the latest available release of the former snowflake package, before the
name change.

Fixes magma#15352 for v1.8.

Signed-off-by: Roger Pueyo Centelles <roger.pueyo@i2cat.net>
rogerpueyo added a commit to rogerpueyo/magma that referenced this issue Jan 8, 2024
The snowflake package used to create a UUID, e.g., for an AGW's
/etc/snowflake file has been renamed to snowflake-uuid, and the former
snowflake package has been taken over by a completely different piece of
software. Pinning the package version to v0.0.3 ensures that we fetch
the latest available release of the former snowflake package, before the
name change.

Fixes magma#15352 for v1.8.

Signed-off-by: Roger Pueyo Centelles <roger.pueyo@i2cat.net>
rogerpueyo added a commit to rogerpueyo/magma that referenced this issue Feb 12, 2024
The snowflake package used to create a UUID, e.g., for an AGW's
/etc/snowflake file has been renamed to snowflake-uuid, and the former
snowflake package has been taken over by a completely different piece of
software. Pinning the package version to v0.0.3 ensures that we fetch
the latest available release of the former snowflake package, before the
name change.

Fixes magma#15352 for v1.8.

Signed-off-by: Roger Pueyo Centelles <roger.pueyo@i2cat.net>
rogerpueyo added a commit to rogerpueyo/magma that referenced this issue Feb 29, 2024
The snowflake package used to create a UUID, e.g., for an AGW's
/etc/snowflake file has been renamed to snowflake-uuid, and the former
snowflake package has been taken over by a completely different piece of
software. Pinning the package version to v0.0.3 ensures that we fetch
the latest available release of the former snowflake package, before the
name change.

Fixes magma#15352 for v1.8.

Signed-off-by: Roger Pueyo Centelles <roger.pueyo@i2cat.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant