This repository was archived by the owner on Jan 16, 2024. It is now read-only.
  
  
  - 
                Notifications
    You must be signed in to change notification settings 
- Fork 69
    This repository was archived by the owner on Jan 16, 2024. It is now read-only.
  
  
Race condition in script start locking #61
Copy link
Copy link
Closed
Description
Multiple instances can run in parallel
  492 ?        S      0:00  \_ /usr/lib/systemd/systemd-udevd
  524 ?        S      0:00  |   \_ /bin/sh /usr/sbin/one-context-reconfigure
  526 ?        S      0:00  |       \_ /bin/sh /usr/sbin/one-context-reconfigure
 2084 ?        S      0:00  |           \_ /bin/bash /usr/sbin/one-contextd reconfigure
 2093 ?        S      0:00  |               \_ curl -o /tmp/context.sh.new http://169.254.169.254/latest/user-data
  493 ?        S      0:00  \_ /usr/lib/systemd/systemd-udevd
  494 ?        S      0:00  \_ /usr/lib/systemd/systemd-udevd
  495 ?        S      0:00  \_ /usr/lib/systemd/systemd-udevd
  525 ?        S      0:00  |   \_ /bin/sh /usr/sbin/one-context-reconfigure
  527 ?        S      0:00  |       \_ /bin/sh /usr/sbin/one-context-reconfigure
 2085 ?        S      0:00  |           \_ /bin/bash /usr/sbin/one-contextd reconfigure
 2094 ?        S      0:00  |               \_ curl -o /tmp/context.sh.new http://169.254.169.254/latest/user-data
  496 ?        S      0:00  \_ /usr/lib/systemd/systemd-udevd
  512 ?        S      0:00  |   \_ /bin/sh /usr/sbin/one-context-reconfigure
  513 ?        S      0:00  |       \_ /bin/sh /usr/sbin/one-context-reconfigure
 2086 ?        S      0:00  |           \_ /bin/bash /usr/sbin/one-contextd reconfigure
 2095 ?        S      0:00  |               \_ curl -o /tmp/context.sh.new http://169.254.169.254/latest/user-data
  497 ?        S      0:00  \_ /usr/lib/systemd/systemd-udevd
# head -8 /tmp/context.log
Waiting one minute to reconfigure the machine
Waiting one minute to reconfigure the machine
Waiting one minute to reconfigure the machine
Reconfiguring
Reconfiguring
Reconfiguring
+ get_new_context
+ get_new_contextMetadata
Metadata
Assignees
Labels
No labels