← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1883661] [NEW] Race condition while starting cloud-init systemd services

 

Public bug reported:

cloud-init runs into some weird race condition while it's services are
restarted repeatedly in a loop and sometimes during boot.


Following is my test script to reproduce the issue

#Start of test script

#!/bin/bash

set -e

for i in {1..30}; do
  echo -n "$i "
  cloud-init clean -ls
  sleep 1
  systemctl restart cloud-*.service
done
echo ""

#End of test script

Looks like this is a cloud-init service file issue. Please help me
resolve this issue.


Attaching the necessary logs.

** Affects: cloud-init
     Importance: Undecided
         Status: New

** Attachment added: "cloud-init-services-issue-log.zip"
   https://bugs.launchpad.net/bugs/1883661/+attachment/5384271/+files/cloud-init-services-issue-log.zip

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1883661

Title:
  Race condition while starting cloud-init systemd services

Status in cloud-init:
  New

Bug description:
  cloud-init runs into some weird race condition while it's services are
  restarted repeatedly in a loop and sometimes during boot.

  
  Following is my test script to reproduce the issue

  #Start of test script

  #!/bin/bash

  set -e

  for i in {1..30}; do
    echo -n "$i "
    cloud-init clean -ls
    sleep 1
    systemctl restart cloud-*.service
  done
  echo ""

  #End of test script

  Looks like this is a cloud-init service file issue. Please help me
  resolve this issue.

  
  Attaching the necessary logs.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1883661/+subscriptions


Follow ups