Make a crio restart failure a warning instead of an error.
This is a mismatch issue between new minikube versions and old ISO versions. It's also unlikely to cause a real issue because it requires users to opt-into crio and modify crio-specific settings to cause trouble.pull/2558/head
parent
ce6a727fc0
commit
9fe9154614
|
@ -201,12 +201,14 @@ CRIO_MINIKUBE_OPTIONS='{{ range .EngineOptions.InsecureRegistry }}--insecure-reg
|
|||
if err := t.Execute(&crioOptsBuf, p); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if _, err = p.SSHCommand(fmt.Sprintf("sudo mkdir -p %s && printf %%s \"%s\" | sudo tee %s", path.Dir(crioOptsPath), crioOptsBuf.String(), crioOptsPath)); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// This is unlikely to cause issues unless the user has explicitly requested CRIO, so just log a warning.
|
||||
if err := p.Service("crio", serviceaction.Restart); err != nil {
|
||||
return err
|
||||
log.Warn("Unable to restart crio service. Error: %s", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue