Successful Rockstor 5.1 → 5.5.3 Upgrade on Leap 15.6

Successful upgrade from 5.1.0 to 5.5.3 on openSUSE Leap 15.6

Hi guys,

I’m just sharing my experience here, maybe it helps someone.

I hadn’t seen any updates for a while, so I checked the forum. I was eager to get the new 5.5 version but reluctant because of the PostgreSQL jump. In the end I YOLO’d it and upgraded anyway.

What happened:

  • zypper refresh, zypper up, and zypper dup showed nothing.
  • zypper up rockstor triggered a PostgreSQL conflict. I chose Solution 1 (removed postgresql13-* packages and installed postgresql17 ones).
  • Ran systemctl start rockstor-bootstrap.service (took a while).

Current status:

  • Disks, pools, and shares are all OK
  • Rock-ons are up and running normally
  • WebUI working fine

The PostgreSQL migration went smoother than expected. No issues so far.

If you’re on 5.1 and hesitant, this worked well for me on Leap 15.6.

Thanks for reading and thanks to the contributors for making this possible.

(Planning to do the Leap 16.0 migration next)

4 Likes

To move to 16.0 (or even to SlowRoll or Tumbleweed) you can install the OpenSUSE migration tool.

It will ask to disable all non-openSUSE repos during the install, so you might have to clean those up afterwards (i.e. change if they are OS version dependent, or remove them because they’re not relevant anymore).
But you do have to check the SELinux settings to be permissive (as the new default is not apparmor anymore, but SELinux) and of course, aside from having backups of your data on Rockstor, also create and download a config backup of Rockstor, so that in the worst case, if a re-install is necessary, all settings can be restored accordingly.
My own experience was testing it on an older 15.6 VM, and it worked just fine (sample size of 1 :slight_smile: ) - I just had to ensure the repos were pointing to the new ones for Rockstor, as well as changing the SELinux to permissible. The SELinux change I after installation before rebooting using:

sed -i -e 's|^SELINUX=.*|SELINUX=permissive|g' \
-e 's|^SELINUXTYPE=.*|SELINUXTYPE=targeted|g' \
"/etc/selinux/config"

which, incidentally, is taken from the rockstor-installer setup configuration.

3 Likes

Thanks @Hooverdan !

I managed to get the update to apply successfully using a combination of information from this thread plus some extra help from Grok.

  1. On Leap 15.6:

    1. zypper refresh
      
    2. zypper up
      
    3. zypper in opensuse-migration-tool
      
    4. reboot
      
  2. applied the update via

    1. opensuse-migration-tool
      
    2. selected Leap 16.0;

    3. accepted default list of repos to disable;

    4. accepted default option of keeping SELinux;

    5. reboot
      
  3. After first reboot into Leap 16.0:

    1. zypper removerepo Rockstor-Testing
      
    2. zypper addrepo --refresh http://updates.rockstor.com:8999/rockstor-testing/leap/16.0 Rockstor-Testing
      
    3. zypper refresh
      
    4. zypper in rockstor
      
  4. Fixed SELinux (was blocking services):

    1. sed -i -e 's|^SELINUX=.*|SELINUX=permissive|g' \
      -e 's|^SELINUXTYPE=.*|SELINUXTYPE=targeted|g' "/etc/selinux/config"
      
    2. cp /etc/default/grub /etc/default/grub.bak
      
    3. sed -i 's/enforcing=1/enforcing=0/g' /etc/default/grub
      
    4. grub2-mkconfig -o /boot/grub2/grub.cfg
      
    5. reboot
      

After the final reboot, services started as expected;

All data/pools intact. Everything seems to be working normally now.

2 Likes

Just this morning, I did something similar for a migration to TW. I ran into a similar issue with rockstor-bootstrap not starting (also manually updated the rockstor repos), even though SELinux was already in the appropriate state. A zypper in --force rockstor and subsequent reboot then fixed the issue for me. The logs were not helpful for me to determine why dependencies were failing, so the force reinstall took care of it for some reason, similar to your approach.

3 Likes