-
Notifications
You must be signed in to change notification settings - Fork 24
Make /run/udev available to gd2 container from host #133
Conversation
Signed-off-by: Kotresh HR <[email protected]>
I tested with the patch. Add devices successfully passed.
|
@Madhu-1 @JohnStrunk PTAL |
good catch! |
This fixes the issue #129 |
this creates host dependency, we should RCA this |
Ah ok. The issue seems to be in lvm2 which is using udev database which was not there earlier. Reference: The issue seems to be because of this commit in lvm2
|
This is taking us in the wrong direction wrt host dependencies. Can this be solved by disabling udev in lvm.conf? Items to examine for applicability:
This may also affect the lvmetad settings |
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.
LGTM
@amarts can we merge this one? |
As long as we depend on LVM, IMO, we would be dependent on one or such things. And we have to compromise on scale, and performance if we don't do. Considering we are targeting to move with loopback based bricks in future version, I am inclined towards taking this in, so v1.0 our user's experience is better. @JohnStrunk @Madhu-1 my opinion is to take this in, and fix it again properly either ways (ie, to disable it totally, or to move with loopback brick in gd2). |
The image already has disabled udev_rules, udev_sync and use_lvmetad in lvm.conf. That should be enough to disable udev/lvmetad use by lvm. We should also try disabling the other options to see if it helps. |
We need to verify if this change did make it back to CentOS. The linked source thread is about Arch Linux which always carries the latest upstream bits of every project. RHEL (and CentOS) shouldn't be this quick in backporting such a new change. |
Since this is delaying the GCS 1.0 release much longer than anticipated, let's consider this as a workaround fix (if there're objections around the approach) and fix it in right way in the upcoming releases. |
Add devices phase in gcs setup was hung with following error in gd2 container.
" WARNING: Device /dev/vda not initialized in udev database even after waiting 10000000 microseconds."
All pv commands (e.g. pvdisplay, pvcreate..) takes lot of time causing the failure of gcs setup.
It's found out that exporting /run/udev solves the issue.
Signed-off-by: Kotresh HR [email protected]
Fixes #129