| Summary: | [RFE][horizon]: openstack-nova: enable to attach an existing volume together with a bootable image | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Tzach Shefi <tshefi> |
| Component: | python-django-horizon | Assignee: | Radomir Dopieralski <rdopiera> |
| Status: | CLOSED WONTFIX | QA Contact: | Shai Revivo <srevivo> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | medium | ||
| Version: | 4.0 | CC: | athomas, beth.white, eglynn, mrunge, nbarcet, srevivo, tshefi |
| Target Milestone: | --- | Keywords: | FutureFeature, Triaged |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-05-23 15:33:35 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: | |
|
Description
Tzach Shefi
2013-11-27 13:22:16 UTC
Hi Tzach, could you be more specific with your request? With Havana it is possible to launch an instance and specify any kind of block device mapping you have to attach (See [1]). For example, for booting an instance from an image and attaching a volume to it [during boot] you can use the following command line: $ nova boot --image <image_id> --flavor <flavor_id> --block-device source=volume,dest=volume,id=<volume_id> <instance_name> If what you want is to be able to do this from the dashboard you should move the BZ to the python-django-horizon component. [1] https://wiki.openstack.org/wiki/BlockDeviceConfig#Command_line_syntax_for_block_config Hi Xavier, Understood, Moved BZ to python-django-horizon component. Thanks It is possible to add a block device to an instance, and that option has been there for a long time in Horizon. So, could you please be more specific? This isn't the same as adding a block device to instance, what i mean is adding a pre existing volume during instance launch then booting off an image. Today on “Lunch instance” page, under “Instance boot source” -> Boot from image (creates a new volume). Why only this option for a new volume? Would be a good idea to add another option -> Boot from image (add a pre existing volume). Plus an option to choose which volume i want to to use. To be clear: you want to be able to share a boot volume by several instances? No well not share the exact same boot volume online. More like move or clone that boot volume from an existing instance, to a new instance and then booting of an image say iso file. Horizon has many launch options, including 3 that are already related to volumes: 1. Boot from an existing volume 2. Boot from an image (creates a new volume) 3. Boot from a volume snapshot (creates a new volume) The comments seem to suggest different things so it's difficult to understand what's requested... Based on comment 7, something like the following? 4. Boot from the clone of a volume currently attached to a running instance (creates a new volume) If so, is there an existing nova API to do this in one command? Currently the only way to create a snapshot or image from an attached volume ("in-use" status) requires using a "force" option, suggesting this is a dangerous operation. I'd be disinclined to add this to Horizon if there is no safe way to do it. Or is it: 5. Boot from an image, and also attach an existing non-bootable (probably?) volume I guess the use case is having access to existing data? What's the Nova command to achieve this? Could you open an upstream bug for what you want? Including the use case to clarify the need for another boot option, and also indicating which nova API it should map to and how to call it to produce the expected result would be really helpful. I'll try to explain it better 1. Create an instance from a volume 2. Lets say that this instance (with critical data saved on volume) now has a problem, it can no longer boot-up by it self. 3. I must repair/fix this instance, but I need the data and don't want to spin up another instance in it's place. If instance was a "regular" pc, I'd just use a Linux/Windows Installation media CD. Booting off this CD would enable fixing boot issue - problem fixed. Take out the temp CD and bootup the so called PC. 4. In case of an instance I can't do this special case, where I have an instance but would like to temporarily boot from A Glance ISO image (Linux or Windows installation media) just to repair my broken instance's volume. BTW not sure there is a valid nova API for this case. That might be to be the upstream bug case to begin with. It's a rare use case for Openstack, not sure it's worth while chasing this, I'll ask around. What do you think? Hi Tzach, thank you for taking the time to explain further, I think I understand the use case a bit better. You say yourself that this is a rare use case, so I would be reluctant to add it to the Launch Instance screen because it's a screen that's used often and can already be pretty overwhelming. It sounds like there is already a workaround, of force-cloning the volume and then changing the attachment or starting a new instance. From the way you describe it though, I'm not sure if attaching the same volume to 2 instances is possible...? So a new instance might need to be created anyway. Is this feature request still relevant? Yes I think so, but I'd rather have a PM decide/answer. Use case comment #10 remains valid. To this day I still can't mount an ISO as boot device just to fix an instance's OS installation, should I ever need to do so. I mean other than bypassing Openstack/Nova using virt-manager to connect an iso image and changing boot order of that instance. |