On Thursday, December 19, 2013 2:54:39 PM UTC-6, Alexander Petrovsky wrote:
Hi!
Did you find out why does it happens? I got the same error, on amazon linux, puppet 3.0.2.
It is a normal behavior of yum. Yum uses a lock file to prevent multiple sessions from proceeding contemporaneously. It needs to do something of the sort to ensure transactional consistency.
Inasmuch as package management is a maintenance procedure, not a routine operation, it is appropriate to consider whether this is even a problem that needs to be resolved. Otherwise, either Puppet will proceed after the lock is released, or it will fail that run but more than likely succeed on the next one.
There is a related issue that you might want to look into however: some plugins cause yum to hold onto its lock after the actual package manipulations are complete, while it performs additional actions, typically in a separate process. This behavior can significantly extend locks' duration, so you may want to consider avoiding such plugins.
John