Include blkid bin in sriov-network-operator-config-daemon image and configure it properly #329
Reference in New Issue
Block a user
Delete Branch "antaloala/Factory:edge-1773"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR updates the sriov-network-operator-config-daemon-image's Dockerfile as follows:
Adds "util-linux" package; it provides the blkid command required in sriov-network-operator-config-daemon image (platform=openstack);
see https://jira.suse.com/browse/SEL3-47 and related https://bugzilla.suse.com/show_bug.cgi?id=1247914
CHKSTAT_ALLOW_INSECURE_MODE_IF_NO_PROC var setting is required when zypper-installing the "util-linux" package;
see https://suse.slack.com/archives/C02AF8LALDA/p1729223703721189 (describes the problem) and
https://suse.slack.com/archives/C02AF8LALDA/p1738062791106829?thread_ts=1729223703.721189&cid=C02AF8LALDA plus
https://bugzilla.suse.com/show_bug.cgi?id=1219736#c54 (describe the solution, based on setting this env var)
Finally, to avoid blkid waiting on udev (which is not running in the container image), a proper blkid.conf file is needed;
see https://bugzilla.suse.com/show_bug.cgi?id=1247914
@@ -11,2 +11,4 @@rm -rf /var/log/*# Adding "util-linux" package; it provides the blkid command required in sriov-network-operator-config-daemon image (platform=openstack);# see https://jira.suse.com/browse/SEL3-47?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel and relatedI guess you can remove the arguments on the URL like: https://jira.suse.com/browse/SEL3-47
@@ -13,0 +15,4 @@# https://bugzilla.suse.com/show_bug.cgi?id=1247914## CHKSTAT_ALLOW_INSECURE_MODE_IF_NO_PROC var setting is required when zypper-installing the "util-linux" package;# see https://suse.slack.com/archives/C02AF8LALDA/p1729223703721189 (describes the problem) andNot sure if we would like to link to slack or just the BZ
I am removing all the slack links
@@ -13,0 +23,4 @@# see https://bugzilla.suse.com/show_bug.cgi?id=1247914#RUN export CHKSTAT_ALLOW_INSECURE_MODE_IF_NO_PROC=1; \zypper --installroot /installroot --non-interactive install --no-recommends util-linux; \Stupid thing but perhaps you can put together the two export sentences (to help me with my OCD :D)
You are right (I forgot to do so after first splitting and later re-merging the different RUN commands).
Updating the Dockerfile as you propose (thanks).
Tests on new generated image passed (a summary included here below):
eb54c2aee6tod0aae6beecd0aae6beectobb39e4fbeaWIP: Include blkid bin in sriov-network-operator-config-daemon image and configure it properlyto Include blkid bin in sriov-network-operator-config-daemon image and configure it properlybb39e4fbeato5bae234647LGTM