Launchpad Entry: injection
Created: 2011-02-21
Contributors: Christian Berendt
Summary
Should be possible to define the injection of (at the moment ssh keys and network configuration) per image with nova-manage.
Release Note
- no code provided for a release at the moment, so no release notes
Rationale
- ??? what should i write here ???
User stories
For example the user wants to use Debian, RHEL and SLES11 images. At the moment the network configuration injecting is only working for Debian-based images. Because he can't use DHCP to configure the network he has a problem at the moment.
Assumptions
- use the default values used at the moment by _inject_net_into_fs and _inject_net_into_fs in nova/virt/disk.py
Design
- method _inject_files_into_fs is called by inject_data in nova/virt/disk.py
Implementation
UI Changes
- not needed
Code Changes
- create new {methods,classes} in nova/db/api.py and nova/db/sqlalchemy/{api.py,models.py) to represent the injection
- rewrite the injection methods in nova/virt/disk.py to retrieve the data from the database or to use default values (set via some flags in /etc/nova/nova.conf)
- create a new class Injection in bin/nova-manage that can handle all required actions to manage the definitions in the database (delete, add, list)
Migration
- we have to create a new table injections to handle the data (type, image_id, template, destination)
Test/Demo Plan
This need not be added or completed until the specification is nearing beta.
Unresolved issues
- no implementation at the moment, so there are no unresolved issues
BoF agenda and discussion
- no discussion at the moment