Bug 1108455
Summary: | [RFE] Task for direct URL image based provisioning of guest recipes | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Retired] Beaker | Reporter: | Nick Coghlan <ncoghlan> | ||||||
Component: | tests | Assignee: | matt jia <mjia> | ||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Amit Saha <asaha> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | develop | CC: | aigao, asaha, dcallagh, ebaak, jzhao, mjia, rmancy | ||||||
Target Milestone: | 19.0 | Keywords: | FutureFeature, Patch | ||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Enhancement | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2014-11-25 07:18:34 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Nick Coghlan
2014-06-12 05:20:19 UTC
Via cloudbase-init, this may even allow for Windows images as guests (although you couldn't actually run tasks there): http://www.cloudbase.it/cloud-init-for-windows-instances/ Created attachment 937796 [details]
a diff file for run-test.sh between orginal virt-install task and new cloud-init task
Created attachment 937797 [details]
a script to translate kickstart file to cloud-init user-data
Docs are here: https://beaker-project.org/docs-develop/user-guide/beaker-provided-tasks.html#distribution-virt-image-install Suggested test case: 1. Create a job with a guest recipe containing /distribution/install,/distribution/reservesys. In the guest recipe, use Fedora 20. 2. In the host recipe, have the following tasks: /distribution/install /distribution/virt/image-install CLOUD_IMAGE=http://download.fedoraproject.org/pub/fedora/linux/updates/20/Images/x86_64/Fedora-x86_64-20-20140407-sda.qcow2 /distribution/virt/start Expected results: Guest recipe successfully runs. After reservesys is reached, you can log in to the guest recipe using your SSH key. I uploaded /distribution/virt/image-install 1.0-2 which fixes a mistake in the Makefile, which was causing get_user_data.py to be omitted from the RPM. ./runtest.sh: line 972: ./get_user_data.py: No such file or directory /distribution/virt/image-install 1.0-3 adds the requirement on pykickstart which I originally missed. I have tested with /distribution/virt/image-install 1.0-3, and found I can installed guest successfully, but I can only login ths guest with ssh keys, if I don't set my ssh keys, I can not login the guest. (In reply to xuezhi ma from comment #10) > I have tested with /distribution/virt/image-install 1.0-3, and found I can > installed guest successfully, but I can only login ths guest with ssh keys, > if I don't set my ssh keys, I can not login the guest. I think that this is a property of the Fedora cloud image. I think the user is fedora and password is fedora and the "root" a/c is locked/disabled. Right, that is the expected behaviour of the F20 cloud image. The root account is not locked, and you can log in as root using your Beaker public SSH keys, because we update /root/.ssh/authorized_keys. But sshd is configured not to accept passwords in the cloud image. For now we aren't planning to work around or hide those differences in /distribution/virt/image-install. Beaker 19.0 has been released. |