spinnaker: Hayard v1.45.0 release installs the wrong version of Halyard from installation scripts

Issue Summary:

Unable to install Halyard v1.45.0 using Debian installation script, and also not able to upgrade the incorrect version that gets installed by the script using update-halyard.

Cloud Provider(s):

N/A

Environment:

  • Ubuntu 22.04 LTS
  • Ubuntu 20.04 LTS

Feature Area:

Halyard

Description:

  1. The stable version of Halyard at spinnaker-artifacts/halyard/stable/debian/halyard.tar.gz is version 1.44.1-20210628193525 and not 1.45.0, so the Debian installation script downloads the wrong version.
  2. Specifying the version when running the Debian installation script ./InstallHalyard.sh --version 1.45.0 fails, because it can’t find the file.
  3. Running the update-halyard fails to update Halyard, the version remains the same.

Steps to Reproduce:

  1. Halyard installing wrong version
cd /tmp
wget https://raw.githubusercontent.com/spinnaker/halyard/v1.45.0/install/debian/InstallHalyard.sh
chmod a+rx InstallHalyard.sh
sudo ./InstallHalyard.sh --user spinnaker -y
hal --version
  1. Halyard installation fails when specifying the version to install
cd /tmp
wget https://raw.githubusercontent.com/spinnaker/halyard/v1.45.0/install/debian/InstallHalyard.sh
chmod a+rx InstallHalyard.sh
sudo ./InstallHalyard.sh --user spinnaker --version 1.45.0 -y
hal --version
  1. Halyard upgrade fails
sudo update-halyard
hal --version

Additional Details:

None

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 5
  • Comments: 23

Most upvoted comments

If you are upgrading that should be fine, its more for new users. You just need to always run hal deploy apply with sudo because the Halyard daemon runs as the spinnaker user.

It is also important to note that you will first need to add the Spinnaker apt repo in order for the apt commands to work correctly.

sudo rm /etc/apt/sources.list.d/*spinnaker*
curl -fsSL https://us-apt.pkg.dev/doc/repo-signing-key.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/spinnaker.gpg > /dev/null
echo "deb [signed-by=/usr/share/keyrings/spinnaker.gpg arch=all] https://us-apt.pkg.dev/projects/spinnaker-community apt main" | sudo tee /etc/apt/sources.list.d/spinnaker.list > /dev/null
sudo apt update
sudo apt --only-upgrade install spinnaker-halyard

@marfenij Yes, I removed the update-halyard instructions from the docs and replaced it with:

sudo apt-get update
sudo apt --only-upgrade install spinnaker-halyard

Since update-halyard was not working anymore, and is no longer installed with newer Halyard versions.

Seeing the same issue here on Ubuntu 20.04

Validation in halconfig:

  • WARNING There is a newer version of Halyard available (1.45.0), please update when possible ? Run ‘sudo update-halyard’ to upgrade

$ sudo update-halyard

Here are the last lines from this command:

update-halyard /home/svc_halyard/gke-spinnaker Install completed… restarting Halyard The halyard daemon isn’t running yet… starting it manually… 1.44.1-20210628193525 Bash auto-completion updated. To use the updated auto-completion restart your shell. $ hal -v 1.44.1-20210628193525