Rockstor on vanilla CentOS 7?

Hi,@suman ,How can I install Rockstor on CentOS 7 with the source code from github?

@Jeff_wu Welcome to the Rockstor community. I’m chipping in just in case it helps. Hopefully the information you need should be in the Developers section of the Contributing to Rockstor - Overview part of the docs. This takes one through forking on Github and then transferring the source to the target machine and finally how to initiate the build process, along with the various procedures necessary depending on what you change if anything.

Hope that helps.

1 Like

Hi,

I opt-in for centos, the reason why I gave rockstor a shot anyway. CentOS is used by a lot of companies instead of the redahat pendant for a good reason. It is conservative, yes, but this makes it so rock solid, stable and kind of unbreakable.
This is what a storage system should be, stable because we rely on the data on it.
Using BTFRs on rockstor is already pretty rebellious, it is not 100% stable and in active development which is good and bad in both ways.

So I trust centos more than opensuses and a rolling release, for the moment. They have to earn some kudos again after a lot of years being very very conservative in any way, and they made some bad decisions if the media can be trusted.

Thank you for your reply .I have clone the project from github,but I can’t run the python code,can you tell me what’s the problem?

From:

[root@localhost rockstor]# python manage.py runserver
Traceback (most recent call last):
File “manage.py”, line 10, in
execute_from_command_line(sys.argv)
File “/usr/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/core/management/init.py”, line 399, in execute_from_command_line
utility.execute()
File “/usr/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/core/management/init.py”, line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File “/usr/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/core/management/init.py”, line 261, in fetch_command
commands = get_commands()
File “/usr/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/core/management/init.py”, line 107, in get_commands
apps = settings.INSTALLED_APPS
File “/usr/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/conf/init.py”, line 54, in getattr
self._setup(name)
File “/usr/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/conf/init.py”, line 49, in _setup
self._wrapped = Settings(settings_module)
File “/usr/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/conf/init.py”, line 132, in init
% (self.SETTINGS_MODULE, e)
ImportError: Could not import settings ‘settings’ (Is it on sys.path? Is there an import error in the settings file?): No module named settings

@Jeff_wu Rockstor is not just a python program but a whole collection of systems tied together, including systemd initialized components that do some required setup tasks. Is is required that you go through the steps in the previously referenced doc so that all the components can be established / configured on the test system. Specifically the bootstrap related commands which should among other thing modify your systems systemd boot scripts to customize the install to that of a Rockstor one. Note however that a standard CentOS system will have way too old a kernel and btrfs tools to be usable as a Rockstor system. The systemd component then orchestrate the serialization of the Rockstor startup process.

I am curious why you need to build Rockstor on vanilla centos and not just use Rockstor?

I have already update the kernel to 4.2.2,then what‘s the step if I want to run rockstor on my on vanilla centos?How many systemd components shoud I setup?

Yes,excatly,I want to use the default CentOS kernel ,so I have to build Rockstor.Can you give me some suggestions?

@Jeff_wu at this point, the only broad suggestion I can really give you is to follow the contribution guidelines here to build Rockstor manually: http://rockstor.com/docs/contribute.html#developers You may run into an issue or two along the way which you should be able to troubleshoot yourself with a bit of programming and Linux knowledge. Good luck!

Hi,suman:
According to your approach to install Rockstor on centos 7,there is some question.When I execute “ yum install -y rockstor ”,an error has occurred, as follows:
`[root@localhost sage]# rm -f /var/run/yum.pid
[root@localhost sage]# yum install -y rockstor
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile

@suman,why i can’t install rockstor on centos 7.1 ,

`[root@localhost sage]# rm -f /var/run/yum.pid
[root@localhost sage]# yum install -y rockstor
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile

run yum repolist

words to get past spam filter

Hello Suman,
I’m very interested in Rockstor specifically because it uses CentOS and I’m trying to test a virtualized solution.
I’d like to verify that the repo information you supplied originally is still relevant. Can you reply?
EDIT:nvm I just grabbed the info from an exiting install.

Also, just a suggestion to assist folks like me who are attempting a virtual solution or for people who would like to test on VMWare, can you include the open-vm-tools package in future builds?

RedHat dropped support for btrfs back in August 2017 (almost exactly a year ago, today). CentOS 7.5 will not let /boot reside in a btrfs file system in the GUI installer. It complains that /boot cannot be on partition type lvmlv, and the installer will not let you progress.