Update DevStack guide when querying the image UUID
The command to query the UUID of the default image to be deployed was retuning more than one UUID because of a grep problem, that would also cause the "nova boot" command to fail because it was passing more arguments that expected. This commit fix the regex to query the UUID of the image by ignoring what comes after the name of the image. Change-Id: I03ad610fdd3313977b61d0d82bd1b33811f7ece1
This commit is contained in:
parent
edc9bb038a
commit
1bd831bf33
@ -318,7 +318,7 @@ Source credentials, create a key, and spawn an instance::
|
||||
source ~/devstack/openrc
|
||||
|
||||
# query the image id of the default cirros image
|
||||
image=$(nova image-list | egrep "$DEFAULT_IMAGE_NAME" | awk '{ print $2 }')
|
||||
image=$(nova image-list | egrep "$DEFAULT_IMAGE_NAME[^-]" | awk '{ print $2 }')
|
||||
|
||||
# create keypair
|
||||
ssh-keygen
|
||||
|
Loading…
Reference in New Issue
Block a user