Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After reboot some setup is missing (CentOS 8) #71

Open
ospalax opened this issue Apr 16, 2021 · 3 comments
Open

After reboot some setup is missing (CentOS 8) #71

ospalax opened this issue Apr 16, 2021 · 3 comments

Comments

@ospalax
Copy link

ospalax commented Apr 16, 2021

After deploying minione on the CentOS 8 with this command:

bash minione --yes --password somepass --sunstone-port 9869

Everything is fine but once the machine is rebooted, there is not the iptables Masquerade (SNAT/DNAT) anymore and dnsmasq service is not started (VMs need it to be able resolve dns as it seems).

@kotoko
Copy link

kotoko commented Apr 26, 2022

I recently installed open nebula using miniONE script on Linux Mint 20.3 and faced the same issue and found the solution.

I searched a bit and found this question on askubuntu. In my case the problem was in names of files that miniONE creates inside /etc/network/interfaces.d/. The . (dot) is problematic character. If name contains dot then this file is skipped when reading configuration. (Dnsmasq was crashing at boot because of missing network interface.) I simply renamed files to names without dot and after reboot everything seemed working again.

sudo -su root
cd /etc/network/interfaces.d/
mv minionebr.cfg minionebr  
mv tap.cfg tap

IMHO this issue should be addressed/fixed by maintainers of miniONE.

@xorel
Copy link
Member

xorel commented May 10, 2022

I could not reproduce missing iptables rules, dnsmasq should be fixed. The network interfaces name should be fixed by #90

@kotoko
Copy link

kotoko commented May 12, 2022

Maybe I misread the commit's content but I think the problem is with names of created files and I do not see commit fixing it.

Lets look at manual for source-directory in ubuntu. There is fragment:

       Similarly, "source-directory" keyword is used to source multiple files  at  once,  without
       specifying  them  individually or using shell globs. Additionally, when "source-directory"
       is used, names of the files  are  checked  to  match  the  following  regular  expression:
       ^[a-zA-Z0-9_-]+$.  In  other  words,  the  names must consist entirely of ASCII upper- and
       lower-case letters, ASCII digits, ASCII  underscores,  and  ASCII  minus-hyphens.  In  the
       directory path, shell wildcards may be used as well.

The regex for filename is ^[a-zA-Z0-9_-]+$ which does not contain a dot as legal character. So path /etc/network/interfaces.d/minionebr.cfg is invalid from manual perspective. I guess that some distributions may have problem with that while others do not.

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

No branches or pull requests

3 participants