Using sudo in cloud-init script hangs for 25 seconds

Solution Verified - Updated -


If cloud-init script is using sudo to perform some operations in SELinux enabled environment, then those commands can cause 25 seconds delays before executing successfully.


  • Red Hat Enterprise Linux
  • SELinux

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content