redhat-performance / openshift-psap

Example roles and yaml files for performance-sensitive applications running on OpenShift
18 stars 14 forks source link

race workaround #19

Closed jeremyeder closed 6 years ago

jeremyeder commented 6 years ago

this is bizarre. sometimes you see this:

root@ip-172-31-60-166: ~ # ls -alZ /dev/nvidia*                                       
crw-rw-rw-. root root unconfined_u:object_r:container_file_t:s0 /dev/nvidia0          
crw-rw-rw-. root root unconfined_u:object_r:container_file_t:s0 /dev/nvidia1          
crw-rw-rw-. root root unconfined_u:object_r:container_file_t:s0 /dev/nvidiactl        
crw-rw-rw-. root root system_u:object_r:container_file_t:s0 /dev/nvidia-modeset       
crw-rw-rw-. root root system_u:object_r:container_file_t:s0 /dev/nvidia-uvm           
crw-rw-rw-. root root system_u:object_r:container_file_t:s0 /dev/nvidia-uvm-tools     

The last 3 don't get labeled correctly, so the hook fails. If you run restorecon again they get labeled correctly and everything works.