Skip to content

Migrate rascsi data to piscsi with easyinstall#1021

Merged
rdmark merged 17 commits intodevelopfrom
rdmark-piscsi-easyinstall
Dec 7, 2022
Merged

Migrate rascsi data to piscsi with easyinstall#1021
rdmark merged 17 commits intodevelopfrom
rdmark-piscsi-easyinstall

Conversation

@rdmark
Copy link
Copy Markdown
Member

@rdmark rdmark commented Dec 6, 2022

Hybrid approach of:

  • Always checking for legacy services for each workflow that involves installing new services, then disable and rename them.
  • Check for the rascsi group, as well as old rascsi.conf, rascsi_bridge, config dir and secret file inline whenever the script interacts with them, then rename them.
  • Check for the old self signed cert and key, as well as compiled protobuf libs, and delete them when the web ui is installed

Also fixed:

  • the old manpage renaming script which should keep the old 'rascsi' names.
  • removed the ancient apache cleanup, since it's been over 2 years now since the PHP webapp was deprecated.
  • general purpose stop/disable/status functions for systemd services
  • general purpose deleteFile function
  • default to half of the max no. of cores for compiling
  • use the SKIP_PACKAGES flag in more functions
  • introduce a SKIP_MAKE_CLEAN flag

@rdmark rdmark requested a review from nucleogenic December 6, 2022 09:24
@rdmark
Copy link
Copy Markdown
Member Author

rdmark commented Dec 6, 2022

Note that I haven't actually tested this yet. It's too late at night. ;)

@rdmark rdmark mentioned this pull request Dec 6, 2022
9 tasks
@rdmark rdmark marked this pull request as ready for review December 6, 2022 18:29
@rdmark
Copy link
Copy Markdown
Member Author

rdmark commented Dec 6, 2022

All tested and ready for review!

@rdmark
Copy link
Copy Markdown
Member Author

rdmark commented Dec 6, 2022

Just realized that we need to delete all old binaries and manpages as well. Putting back to draft.

@rdmark rdmark marked this pull request as draft December 6, 2022 20:25
@rdmark rdmark marked this pull request as ready for review December 6, 2022 21:54
fi
}

# Stops the piscsi-web and apache2 processes
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should put something in the release notes that this was removed. Please help me remember :)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was from before my time! When I looked through the commit history I saw that @erichelgeson added these lines when he replaced the PHP web app with the Python web app. The PHP app used apache2, while the Python app uses nginx. Hence, the need for shutting down the apache2 service.

If you prefer I can keep it. I just thought that it is going to be more and more ultra rare that anyone would upgrade from the PHP web app era of rascsi to piscsi.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope! I'm fully on board with removing it. That was a long, long, long, long time ago!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok! We can just leave a note in the release notes then. Clean up your old apache server yourself, you lazy bum :P

@akuker
Copy link
Copy Markdown
Member

akuker commented Dec 7, 2022

Looks good to me! thanks!

@rdmark
Copy link
Copy Markdown
Member Author

rdmark commented Dec 7, 2022

Thanks for reviewing! I found two more files to be updated: rascsi.conf in /etc/rsyslog.d and rascsi_bridge in /etc/network/interfaces.d

I wonder if syslog needs to be restarted somehow after changing that configuration?

@rdmark rdmark merged commit 35447cc into develop Dec 7, 2022
@rdmark rdmark deleted the rdmark-piscsi-easyinstall branch December 7, 2022 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants