The hooks are executed while the instance is still locked, so they won't
be able to acquire the lock, thus leading to a deadlock.
You should add a "--submit" to the job, so that it's launched
asynchronously. Yes, the instance will be created first without tags,
and then immediately the tags will be added (so there will be a slight
interval when the instance will not have the tags).
Alternatively, you could add tags directly at the instance creation:
gnt-instance add --tags … [other options] $instance
hope this helps,
iustin
I like the idea but gnt-instance add-tags does not support "--submit".
> Alternatively, you could add tags directly at the instance creation:
>
> gnt-instance add --tags … [other options] $instance
Much better idea ! No need for asynchronous add-tags then.
> hope this helps,
Yes, many thanks.
Regards,
Simon
Oh, uh, well, that's called a "bug" then :), thanks for catching it.
Filled issue 220.
iustin