-
Notifications
You must be signed in to change notification settings - Fork 834
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add wait-for-disk functionality to disk_setup (#1832645) #710
Conversation
This is a work in progress |
b7c4963
to
7858d6d
Compare
c97a0dd
to
d1515f4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this branch @nibalizer! Some comments inline.
cloudinit/config/cc_disk_setup.py
Outdated
try: | ||
if definition.get("timeout"): | ||
util.wait_for_files([disk], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this move outside the try
block here? This call failing would not really be a "Failed partitioning operation", and perhaps should not be ignored in the same way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took a whack at this, let me know if you think this works better.
4dbb37c
to
ef6bae4
Compare
In a cloud environment, sometimes disks will attach while cloud-init is running and get missed. This adds a configurable timeout to wait for those disks.
ef6bae4
to
35243aa
Compare
Hello! Thank you for this proposed change to cloud-init. This pull request is now marked as stale as it has not seen any activity in 14 days. If no activity occurs within the next 7 days, this pull request will automatically close. If you are waiting for code review and you are seeing this message, apologies! Please reply, tagging mitechie, and he will ensure that someone takes a look soon. (If the pull request is closed, please do feel free to reopen it if you wish to continue working on it.) |
Could this be reopened? This feature would be quite useful. |
Github won't let us reopen this one because the base branch has changed, but we can certainly open a new PR referencing this one. @HeroCC or @nibalizer , are you interested in pushing this across the finish line? I think what we have currently looks good, but we'd need to also add/modify some unit testing before we'd be ready to merge it. |
Yeah stumled also on this on Equinix Metal... Would be nice to get this activated again... |
Proposed Commit Message
Add wait-for-disk functionality to disk_setup
In a cloud environment, sometimes disks will attach while cloud-init is
running and get missed. This adds a configurable timeout to wait for
those disks.
LP: #1832645
Additional Context
Test Steps
Checklist: