Page MenuHomeVyOS Platform

Migration scripts fails for the circinus
Closed, ResolvedPublicBUG

Description

Currently, we have different flags for the migration scripts for the current/circinus

current

vyos_bld@611c34fd56e9:/vyos/work/tmp/current/vyos-1x/src/migration-scripts/ipoe-server$ ls -la 
total 24
drwxr-xr-x  2 vyos_bld vyos_bld 4096 Sep 11 08:31 .
drwxr-xr-x 47 vyos_bld vyos_bld 4096 Sep 11 08:31 ..
-rw-r--r--  1 vyos_bld vyos_bld 4130 Sep 11 08:31 1-to-2
-rw-r--r--  1 vyos_bld vyos_bld 1429 Sep 11 08:31 2-to-3
-rw-r--r--  1 vyos_bld vyos_bld 1220 Sep 11 08:31 3-to-4
vyos_bld@611c34fd56e9:/vyos/work/tmp/current/vyos-1x/src/migration-scripts/ipoe-server$

circinus

vyos_bld@611c34fd56e9:/vyos/work/tmp/circinus/vyos-1x/src/migration-scripts/ipoe-server$ ls -la 
total 24
drwxr-xr-x  2 vyos_bld vyos_bld 4096 Sep 11 08:32 .
drwxr-xr-x 47 vyos_bld vyos_bld 4096 Sep 11 08:31 ..
-rwxr-xr-x  1 vyos_bld vyos_bld 4216 Sep 11 08:32 1-to-2
-rwxr-xr-x  1 vyos_bld vyos_bld 1662 Sep 11 08:32 2-to-3
-rw-r--r--  1 vyos_bld vyos_bld 1220 Sep 11 08:31 3-to-4
vyos_bld@611c34fd56e9:/vyos/work/tmp/circinus/vyos-1x/src/migration-scripts/ipoe-server$

It is an issue for the circinus as /ipoe-server/3-to-4 has a new format migtation scripts, but previous scripts still have old format

vyos@r15# load /usr/libexec/vyos/tests/config/basic-api-service
Loading configuration from '/usr/libexec/vyos/tests/config/basic-api-service'

Migration script error: /opt/vyatta/etc/config-migrate/migrate/ipoe-server/3-to-4: [Errno 13] Permission denied: '/opt/vyatta/etc/config-migrate/migrate/ipoe-server/3-to-4'.
[edit]
vyos@r15# 

vyos@r15# run show ver
Version:          VyOS 1.5-circinus-202409101641
Release train:    circinus
Release flavor:   generic

Built by:         [email protected]
Built on:         Tue 10 Sep 2024 16:41 UTC
Build UUID:       ce4b9a41-5f06-4492-bc89-a06e359458f0
Build commit ID:  917325fafc9365

Details

Difficulty level
Unknown (require assessment)
Version
VyOS 1.5-circinus-202409101641
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)