admin_password inject failed in kvm

Bug #1421084 reported by Eric Xie
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Expired
Undecided
Unassigned

Bug Description

Inject "admin_password" info to instance's image with modifying the content of image not config_drive.

Instance booted successfully, but i got the log below:
2015-02-12 14:11:28.119 20000 WARNING nova.virt.disk.api [req-bebb329c-ee79-48d2-b800-e02e2e7ffbd5 189303f928574600af4f95a00f13c280 94b44a817f9a4c40a21b136de7cefee7] Ignoring error injecting data into image (Error mounting /var/lib/nova/instances/eb030d0d-2f39-453b-9faa-4bffaef2ee9c/disk with libguestfs (/usr/bin/qemu-system-x86_64 exited with error status 1.

And login failed when i use the password above.

Reproduce:
1. prepare environment:
With libvirt and kvm.
In nova.conf
inject_partition=-1
inject_password=true
2. Launch one instance with "admin_pass" configured.

Revision history for this message
Eric Xie (mark-xiett) wrote :

I tried it after changing to "root" user. And it worked.

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

So is this still a problem/bug?

Changed in nova:
status: New → Incomplete
Revision history for this message
Eric Xie (mark-xiett) wrote :

Were there some bugs same as this bug i commit? Please give me some tips:) Thanks.

Revision history for this message
Eric Xie (mark-xiett) wrote :

@Davanum, should i add some additional info?

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack Compute (nova) because there has been no activity for 60 days.]

Changed in nova:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.