Comment 5 for bug 838419

Revision history for this message
Andrew Glen-Young (aglenyoung) wrote :

@Soren: The patch seems to work for me.

= Testing after patching and restarting nova-compute =

$ euca-describe-groups
GROUP user_project default default
PERMISSION user_project default ALLOWS tcp 22 22 FROM CIDR 0.0.0.0/0

$ euca-add-group user -d "test group"
GROUP user test group

$ euca-authorize --source-group user user
GROUP user
PERMISSION user ALLOWS tcp GRPNAME user FROM CIDR 0.0.0.0/0

$ euca-describe-groups
GROUP user_project user test group
PERMISSION user_project user ALLOWS GRPNAME user
GROUP user_project default default
PERMISSION user_project default ALLOWS tcp 22 22 FROM CIDR 0.0.0.0/0

$ euca-run-instances -k user -g user -t m1.tiny ami-00000002
RESERVATION r-8o0h5u0i user_project user
INSTANCE i-0000029e ami-00000002 scheduling user 0 m1.tiny 2011-09-02T13:33:27Z unknown zone aki-00000001 ami-00000000

$ euca-describe-instances i-0000029e
RESERVATION r-8o0h5u0i user_project user
INSTANCE i-0000029e ami-00000002 172.16.60.71 172.16.60.71 running user 0 m1.tiny 2011-09-02T13:33:27Z nova aki-00000001 ami-00000000

/var/log/nova/nova-compute.log:
2011-09-02 14:35:11,085 INFO nova.virt.libvirt_conn [-] Instance instance-0000029e spawned successfully.

Restarting nova-compute again with the running instance does not cause nova-compute to crash.