Page MenuHomeVyOS Platform

VyOS with Cloud-init and VRF stucks at reboot/shutdown process
Closed, ResolvedPublicBUG

Description

VyOS 1.4.0-rc1 with cloud-init config below will stuck when shutting down.

Reproduce:

  1. create qcow2 via vyos-vm-images (ansible-playbook qemu.yml -e vyos_iso_url='vyos-1.4.0-rc1.iso' -e disk_size=10 -e cloud_init=true -e cloud_init_ds=NoCloud,None -e grub_console=serial --skip-tags verify)
  2. Boot this image with QEMU (I used GNS3)
  3. use cloud-init with the config below
  4. login and reboot directly without any other operations.
  5. It will stuck
vyos@vyos:~$ reboot
yWarning: there are unsaved configuration changes!
Run 'save' command if you do not want to lose those changes after reboot/shutdown.
Are you sure you want to reboot this system? [y/N]

Broadcast message from root@vyos on pts/0 (Thu 2024-01-04 09:59:13 UTC):

The system will reboot now!


         Stopping session-1.scope - Session 1 of User vyos...
                                                             [  OK  ] Removed slice system-modpr…lice - Slice /system/modprobe.
                                               [  OK  ] Stopped target cloud-init.target - Cloud-init target.
                             [  OK  ] Stopped target cryptsetup.…get - Local Encrypted Volumes.
               [  OK  ] Stopped target graphical.target - Graphical Interface.
                                                                              [  OK  ] Stopped target integrityse…Local Integrity Protected Volumes.
                                                                    [  OK  ] Stopped target timers.target - Timer Units.
                                        [  OK  ] Stopped e2scrub_all.timer▒▒etadata Check for All Filesystems.
                              [  OK  ] Stopped fstrim.timer - Discard unused blocks once a week.
                [  OK  ] Stopped logrotate.timer - Daily rotation of log files.
                                                                               [  OK  ] Stopped systemd-tmpfiles-c… Cleanup of Temporary Directories.
                                                                     [  OK  ] Stopped target veritysetup… - Local Verity Protected Volumes.
                                                           [  OK  ] Stopped target vyos.target - VyOS target.
                             [  OK  ] Stopped cloud-final.servic… Execute cloud user/final scripts.
                   [  OK  ] Stopped target multi-user.target - Multi-User System.
 [  OK  ] Stopped target getty.target - Login Prompts.
                                                      [  OK  ] Stopped target stunnel.tar…services - per-config-file target.
                                                     Stopping acpid.service - ACPI event daemon...
                           Stopping atd.service - Deferred execution scheduler...
          Stopping atop.service …op advanced performance monitor...
                                                                            Stopping cron.service …round program processing daemon...
                                                              Stopping [email protected] - DHCP client on eth0...
                                              Stopping [email protected] - Getty on tty1...
                     Stopping netplug.service▒▒s up/down network automatically...
          Stopping rsyslog.service - System Logging Service...
                                                                       Stopping sendmail.service▒▒d scalable Mail Transport Agent...
                                                             Stopping serial-getty@ttyS…ice - Serial Getty on ttyS0...
                                               Stopping ssh.service - OpenBSD Secure Shell server...
                             Stopping systemd-binfmt.se…et Up Additional Binary Formats...
                   Stopping systemd-random-se…ice - Load/Save Random Seed...
                                                                                     Stopping systemd-update-ut…rd System Boot/Shutdown in UTMP...
                                                                  [  OK  ] Stopped acpid.service - ACPI event daemon.
                                     [  OK  ] Stopped cron.service -…kground program processing daemon.
                       [  OK  ] Stopped atd.service - Deferred execution scheduler.
   [  OK  ] Stopped atop.service - Atop advanced performance monitor.
                                                                     [  OK  ] Stopped ssh.service - OpenBSD Secure Shell server.
                                                [  OK  ] Stopped rsyslog.service - System Logging Service.
                          [  OK  ] Stopped [email protected] - Getty on tty1.
                                                                              [  OK  ] Stopped serial-getty@ttyS0…rvice - Serial Getty on ttyS0.
                                                                [  OK  ] Stopped sendmail.service▒▒and scalable Mail Transport Agent.
[  OK  ] Stopped systemd-binfmt.ser… Set Up Additional Binary Formats.
[  OK  ] Stopped systemd-random-see…rvice - Load/Save Random Seed.
[  OK  ] Stopped session-1.scope - Session 1 of User vyos.
[  OK  ] Stopped systemd-update-utm…cord System Boot/Shutdown in UTMP.
[  OK  ] Removed slice system-getty.slice - Slice /system/getty.
[  OK  ] Removed slice system-seria… - Slice /system/serial-getty.
[  OK  ] Unset automount proc-sys-f…rmats File System Automount Point.
         Stopping atopacct.service▒▒ Atop process accounting daemon...
         Stopping auditd.service - Security Auditing Service...
         Stopping systemd-logind.se…ice - User Login Management...
         Stopping [email protected] - User Manager for UID 1002...
[  OK  ] Stopped systemd-logind.service - User Login Management.
[  OK  ] Stopped atopacct.service▒▒ - Atop process accounting daemon.
[  OK  ] Stopped auditd.service - Security Auditing Service.
[  OK  ] Stopped [email protected] - User Manager for UID 1002.
[  OK  ] Stopped netplug.service▒▒ngs up/down network automatically.
[  OK  ] Stopped systemd-tmpfiles-s…te Volatile Files and Directories.
         Stopping systemd-user-sess…vice - Permit User Sessions...
         Stopping user-runtime-dir@…untime Directory /run/user/1002...
[  OK  ] Unmounted run-credentials-…ls/systemd-tmpfiles-setup.service.
[  OK  ] Stopped systemd-user-sessi…ervice - Permit User Sessions.
[  OK  ] Unmounted run-user-1002.mount - /run/user/1002.
[  OK  ] Stopped user-runtime-dir@1… Runtime Directory /run/user/1002.
[  OK  ] Removed slice user-1002.slice - User Slice of UID 1002.
[  OK  ] Stopped target remote-fs.target - Remote File Systems.
         Stopping dbus.service - D-Bus System Message Bus...
[  OK  ] Stopped dbus.service - D-Bus System Message Bus.
[  OK  ] Stopped [email protected] - DHCP client on eth0.
[  OK  ] Removed slice system-dhcli…lice - Slice /system/dhclient.
         Stopping vyos-router.service - VyOS Router...
[   96.895746] vyos-router[2712]: Stopping VyOS router:.
[   96.914035] vyos-router[2712]: Un-mounting VyOS Config...done.
[  OK  ] Unmounted opt-vyatta-config.mount - /opt/vyatta/config.
#cloud-config
vyos_config_commands:
  - set system login user vyos authentication encrypted-password '$6$rounds=656000$pV10YW6kOFKS3T8S$OyvGsNjWa7Rc/uuW3f8sVDrCvtOe3PVUlq31A7lH4vPuSBA51yKAUpm0HfjLiUfZQggdzSBt3AgO1zB/aKTnA/'
  - set interfaces ethernet eth0 address 'dhcp'
  - set interfaces ethernet eth0 vrf 'mgmt'
  - set vrf bind-to-all
  - set vrf name mgmt table '100'

Details

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