Page MenuHomeVyOS Platform

GraphQL expects script otp.py that does not exists in 1.4
Closed, ResolvedPublicBUG

Description

We should copy this script to op-mode instead of the old show_openconnect_otp.py

To reproduce: Install vyos-1x

Setting up vyos-1x (1.4.0-rc3-28-gb61a06aa5) ...
Unit /lib/systemd/system/vyos-config-cloud-init.service is added as a dependency to a non-existent unit cloud-init-local.service.
Traceback (most recent call last):
  File "/usr/libexec/vyos/services/api/graphql/generate/generate_schema.py", line 24, in <module>
    generate_op_mode_definitions()
  File "/usr/libexec/vyos/services/api/graphql/generate/schema_from_op_mode.py", line 273, in generate_op_mode_definitions
    module = load_as_module(basename, os.path.join(OP_MODE_PATH, file))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vyos/utils/system.py", line 106, in load_as_module
    spec.loader.exec_module(mod)
  File "<frozen importlib._bootstrap_external>", line 936, in exec_module
  File "<frozen importlib._bootstrap_external>", line 1073, in get_code
  File "<frozen importlib._bootstrap_external>", line 1130, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/usr/libexec/vyos//op_mode/otp.py'
vyos@r1:~$

Details

Difficulty level
Unknown (require assessment)
Version
VyOS 1.4.0-rc3
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Unspecified (please specify)

Event Timeline

Viacheslav created this task.
Viacheslav renamed this task from GraphQL expects script opt.py that does not exists in 1.4 to GraphQL expects script otp.py that does not exists in 1.4.Jan 22 2024, 5:16 PM
c-po moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta board.