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

Changes to local system are troubling #12

Open
gmarcy opened this issue Feb 6, 2021 · 7 comments
Open

Changes to local system are troubling #12

gmarcy opened this issue Feb 6, 2021 · 7 comments

Comments

@gmarcy
Copy link

gmarcy commented Feb 6, 2021

I was surprised that the make start-iso was so destructive to the local machine I was running on.
In particular, the changes to the local NetworkManager service in virt-create-net.sh. I would only
expect changes to my sno-workdir and in the virtual machine being created to run the cluster.

@omertuc
Copy link
Collaborator

omertuc commented Feb 6, 2021

Sorry about that, I'll patch it shortly with a prompt / warning and later on figure out how to make it less destructive. Thank you

@omertuc
Copy link
Collaborator

omertuc commented Feb 6, 2021

Patched 22b518a

@gmarcy
Copy link
Author

gmarcy commented Feb 6, 2021

thanks. I've started to prototype standing up a container as described at https://matchbox.psdn.io/network-setup/#poseidondnsmasq which is how I provide the local network services for matchbox. the other approach I have seen is to put a dnsmasq configuration inside of your own images like at https://github.com/metal3-io/ironic-image/blob/master/scripts/rundnsmasq. in both cases the services are running in a container so the configuration is set there rather than on the local machine. cleanup is also a lot easier.

@eranco74
Copy link
Owner

eranco74 commented Feb 7, 2021

@gmarcy thanks for noticing.
The long-term plan is to set up DNS inside the node (similar to what baremetal platform is doing).
If you have a working prototype, a pull request is welcome.

@gmarcy
Copy link
Author

gmarcy commented Feb 7, 2021

I've come across a few SELinux issues. Are you running the make start-iso under setenforce 0 ?

@omertuc
Copy link
Collaborator

omertuc commented Feb 7, 2021

I believe it worked okay for me even when Enforcing (Fedora 33 if that matters). I mean, it installed and there was a control plane, didn't really make use of the cluster after that

@gmarcy
Copy link
Author

gmarcy commented Feb 7, 2021

running in centos 8.3, getting messages like

SELinux is preventing /usr/libexec/libvirt_leaseshelper from remove_name access on the directory labeled user_home_t.

with suggestions like

ausearch -c 'libvirt_leasesh' --raw | audit2allow -M my-libvirtleasesh
semodule -X 300 -i my-libvirtleasesh.pp

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