[ RFC V2 ] Manage guest CDROM devices
by Rodrigo Trujillo
Reference:
https://github.com/kimchi-project/kimchi/wiki/Todo-1.2
https://github.com/kimchi-project/kimchi/wiki/customize-VM
According to discussion in other thread:
_API__definition_
**URI:** /vms/*:name*/storages
* **GET**: Retrieve all storages attached to the VM
* **POST**: Attatch new storage to specified virtual machine
* dev : The guest device name of the storage
* type: The type of the storage: cdrom, disk
* path: Path of ISO or DISK.
### Sub-resource: storage
**URI:** /vms/*:name*/storages/*:dev*
* **GET**: Retrieve the storage information
* dev: The guest device name of the storage
* path: Path of the storage
* type: Type of the storage
* **PUT**: Update storage information
* name: The name of the storage in the VM
* path: Path of ISO or DISK
* **DELETE**: Remove the storage
_User __possibilities_
* List cdroms (GET - collection)
* Add new cdrom (will be used to attach cd) (POST - collection)
* Lookup information of a cdrom (GET - resource)
* Update parameters of a cdrom (PUT - resource)
* Delete a cdrom (will be used to detach) (DELETE - resource)
- Will not be possible to detach and attach new cd on the same device.
This operation will be done removing and adding new storage
- Eject cd operation will not be provided
_Perfomance/Tunning_
* Still to be defined
10 years, 10 months
[PATCH V3 0/4] (WIP) Storagepool SCSI/FC
by Rodrigo Trujillo
Still working in test cases and mockmodel
V3:
- Changed API to only receive the scsi host name when creating new pool
- Changed API to require LUN when creating new VM on SCSI pool
- Created feature test and removed libvirt test function
- Rebased with new model structure
- Added error function handlers to UIs
- Fixed LUN selection window
V2:
- Implements Fibre Channel devices discover in the host
- Allow vms_create receive a volume to create the disk (if pool is SCSI)
- Create basic UI to select SCSI Host when creating SCSI FC pool
- Draft of UI to select LUN to create new VM when template has a SCSI
pool configured. (Need help of UI guys here!)
Rodrigo Trujillo (4):
Storagepool SCSI/FC: Implement node devices API backend
Storagepool SCSI/FC: Backend implementation
Storagepool SCSI/FC: Implement UI for FC scsi_host pool
Storagepool SCSI/FC: Modifies UI flow to select a LUN to new VM
docs/API.md | 5 ++-
src/kimchi/API.json | 14 ++++++-
src/kimchi/control/host.py | 16 +++++++
src/kimchi/featuretests.py | 27 ++++++++++++
src/kimchi/model/config.py | 5 ++-
src/kimchi/model/host.py | 54 ++++++++++++++++++++++++
src/kimchi/model/libvirtstoragepool.py | 45 ++++++++++++++++++++
src/kimchi/model/storagepools.py | 22 ++++++++--
src/kimchi/model/templates.py | 5 +++
src/kimchi/model/vms.py | 25 ++++++++++-
src/kimchi/vmtemplate.py | 31 +++++++++++++-
ui/js/src/kimchi.api.js | 24 +++++++++++
ui/js/src/kimchi.guest_add_main.js | 72 ++++++++++++++++++++++++++++++--
ui/js/src/kimchi.storagepool_add_main.js | 46 +++++++++++++++++++-
ui/pages/i18n.html.tmpl | 4 ++
ui/pages/storagepool-add.html.tmpl | 12 ++++++
16 files changed, 392 insertions(+), 15 deletions(-)
--
1.8.5.3
10 years, 10 months
[PATCH V2 0/7] (WIP) Storagepool SCSI/FC
by Rodrigo Trujillo
There is still some work to be done in this functionality.
V2:
- Implements Fibre Channel devices discover in the host
- Allow vms_create receive a volume to create the disk (if pool is SCSI)
- Create basic UI to select SCSI Host when creating SCSI FC pool
- Draft of UI to select LUN to create new VM when template has a SCSI
pool configured. (Need help of UI guys here!)
Rodrigo Trujillo (7):
Storagepool SCSI/FC: SCSI/Fibre Channel backend implementation
Storagepool SCSI/FC: Function to check libvirt version
Storagepool SCSI/FC: Assign SCSI fibre channel LUN as disk to a new
guest
Storagepool SCSI/FC: Implement node devices API backend
Storagepool SCSI/FC: Implement UI when a FC scsi_host will be the pool
Storagepool SCSI/FC: Create new VM with given SCSI FC LUN (backend)
Storagepool SCSI/FC: Draft UI to allow user to select a LUN to new VM
docs/API.md | 7 ++
src/kimchi/API.json | 19 ++++-
src/kimchi/control/devices.py | 40 +++++++++++
src/kimchi/control/host.py | 3 +
src/kimchi/model.py | 117 +++++++++++++++++++++++++++++--
src/kimchi/utils.py | 18 ++++-
src/kimchi/vmtemplate.py | 48 ++++++++++++-
ui/js/src/kimchi.api.js | 24 +++++++
ui/js/src/kimchi.guest_add_main.js | 32 +++++++++
ui/js/src/kimchi.storagepool_add_main.js | 40 ++++++++++-
ui/pages/i18n.html.tmpl | 1 +
ui/pages/storagepool-add.html.tmpl | 12 ++++
12 files changed, 350 insertions(+), 11 deletions(-)
create mode 100644 src/kimchi/control/devices.py
--
1.8.4.2
10 years, 10 months