-
Notifications
You must be signed in to change notification settings - Fork 64
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
We should support the Atomic host natively #78
Comments
This feature depends on #68 |
This requires screen in the atomic host. This was added in https://git.fedorahosted.org/cgit/fedora-atomic.git/commit/?id=268fabe30ae6640293bc0c1a57372e0c83f504c4 but is not yet available in the builds I have tested. If there is a new vagrant-libvirt box build to test, please leave the link here.
|
This requires the root user setup correctly as expected by vagrant. It requires both the password set to 'vagrant' as well as the insecure private key added. I have reported this to the Atomic folks, but I'm not sure if it was fixed yet. If someone has an up-to-date vagrant-libvirt box with the correct fixes, please let me know.
|
The docker group does not exist. Ideally it should be added. If there is a reason this should be different from every other host that uses docker, then the upstream vagrant docker provisioner needs to be patched to detect atomic, and work around these weird quirks. Example:
|
You'll find a feature branch for atomic support in omv located here: https://github.com/purpleidea/oh-my-vagrant/tree/feat/atomic It is based on the https://github.com/purpleidea/oh-my-vagrant/tree/feat/hostmanager branch which is not currently in git master because of the upstream issues in #68. Once the other issues mentioned in this tracker are addressed then we can continue testing this branch. Cheers! |
To work around the docker issues and continue debugging to see if there are other issues with the atomic host, you can do the following workaround:
At the end of this second command, the following error is seen:
This is happening because the kubernetes setup seems to be somehow not working correctly. This is either due to an issue with the kubernetes version installed on the machine, a mis-match in the way it should be configured, or some other issue. As a result, this needs investigation from a kubernetes expert since this works fine for other operating systems. An example of the issue can be seen by running:
Normally we see the other hosts as "NotReady", but the command returns an exit code of zero. |
@goern and https://github.com/cgwalters hopefully the above information is helpful to you. Until some of those blockers are resolved, I'm at a dead end for the moment. Cheers, |
This was posted to atomic-devel here: https://lists.projectatomic.io/projectatomic-archives/atomic-devel/2015-April/msg00046.html |
@cgwalters thanks for the background on docker group! I guess there are three possibilities:
I recommend doing at least #2 and #3. #1 is up to the atomic devel folks. |
(In the meantime, I think the code itself is ready for git master, even if the boxes aren't...) |
I added this patch to hopefully preempt any issues with subscription manager + atomic + omv not working: f3e2e6a |
After talking with https://github.com/rwmjones it appears two bugs are currently blocking atomic+virt-builder and these should be fixed so that developers can hack on atomic more easily, along with many more use cases. The two bugs are: https://bugzilla.redhat.com/show_bug.cgi?id=1102241 Beverages, eternal fame or other prizes will be awarded to whoever gets these fixed :) |
The docker changes are needed so we don't upset the docker provisioner which expects the docker group to be present. This might not be what we want in production because of the constant security issues in docker.
Note that wrt |
Agreed... Actually I was just having this conversation with imcleod about how I'd use the other tools if they were easy to use and had the features... So atm, the goal of a tool that's easy for a user to use and take home is virt-builder... Virt-builder can do metal. It can build an image which you can dd to a drive or anywhere... |
The idea to do this is thanks to @cgwalters. Good hack, thanks! #78
After a discussion with @cgwalters, he suggested a workaround for the docker group issue, and it turns out it works great! It's definitely a hack, but it's good enough for oh-my-vagrant until something better comes along, and it's good enough for git master: d8d1cb1 Great idea @cgwalters ! In parallel, someone who wants vagrant+atomic to work long term should really patch this upstream so future atomic quirks don't break vagrant. CoreOS does this for example: https://github.com/mitchellh/vagrant/tree/master/plugins/guests/coreos I'm going to close this bug for now. Atomic now WFM (with the right image), and this is key, because a good number of the available images out there are still broken. (lack of screen, lack of root/vagrant users setup correctly, etc...) |
When using atomic host, I see that the second network interface in the guest (configured by omv) won't come up automatically after boot. Are you using some kind of workaround for it? |
@pschiffe It should come up... If it's not, please open a new ticket, including vagrant versions, more info, etc... |
This requires some fixes to the sync dir, and we should detect and do this automatically if the box name starts with 'atomic-'
The text was updated successfully, but these errors were encountered: