Merge pull request #6496 from thaJeztah/deprecate_criu_opt
runtime: deprecate runc --criu / -criu-path option
This commit is contained in:
		| @@ -78,7 +78,7 @@ func parseFlags() { | |||||||
| 	flag.StringVar(&addressFlag, "address", "", "grpc address back to main containerd") | 	flag.StringVar(&addressFlag, "address", "", "grpc address back to main containerd") | ||||||
| 	flag.StringVar(&workdirFlag, "workdir", "", "path used to storage large temporary data") | 	flag.StringVar(&workdirFlag, "workdir", "", "path used to storage large temporary data") | ||||||
| 	flag.StringVar(&runtimeRootFlag, "runtime-root", process.RuncRoot, "root directory for the runtime") | 	flag.StringVar(&runtimeRootFlag, "runtime-root", process.RuncRoot, "root directory for the runtime") | ||||||
| 	flag.StringVar(&criuFlag, "criu", "", "path to criu binary") | 	flag.StringVar(&criuFlag, "criu", "", "path to criu binary (deprecated: do not use)") | ||||||
| 	flag.BoolVar(&systemdCgroupFlag, "systemd-cgroup", false, "set runtime to use systemd-cgroup") | 	flag.BoolVar(&systemdCgroupFlag, "systemd-cgroup", false, "set runtime to use systemd-cgroup") | ||||||
| 	// currently, the `containerd publish` utility is embedded in the daemon binary. | 	// currently, the `containerd publish` utility is embedded in the daemon binary. | ||||||
| 	// The daemon invokes `containerd-shim -containerd-binary ...` with its own os.Executable() path. | 	// The daemon invokes `containerd-shim -containerd-binary ...` with its own os.Executable() path. | ||||||
| @@ -176,7 +176,6 @@ func executeShim() error { | |||||||
| 			Path:          path, | 			Path:          path, | ||||||
| 			Namespace:     namespaceFlag, | 			Namespace:     namespaceFlag, | ||||||
| 			WorkDir:       workdirFlag, | 			WorkDir:       workdirFlag, | ||||||
| 			Criu:          criuFlag, |  | ||||||
| 			SystemdCgroup: systemdCgroupFlag, | 			SystemdCgroup: systemdCgroupFlag, | ||||||
| 			RuntimeRoot:   runtimeRootFlag, | 			RuntimeRoot:   runtimeRootFlag, | ||||||
| 		}, | 		}, | ||||||
|   | |||||||
| @@ -79,7 +79,7 @@ type Init struct { | |||||||
| } | } | ||||||
|  |  | ||||||
| // NewRunc returns a new runc instance for a process | // NewRunc returns a new runc instance for a process | ||||||
| func NewRunc(root, path, namespace, runtime, criu string, systemd bool) *runc.Runc { | func NewRunc(root, path, namespace, runtime string, systemd bool) *runc.Runc { | ||||||
| 	if root == "" { | 	if root == "" { | ||||||
| 		root = RuncRoot | 		root = RuncRoot | ||||||
| 	} | 	} | ||||||
| @@ -89,7 +89,6 @@ func NewRunc(root, path, namespace, runtime, criu string, systemd bool) *runc.Ru | |||||||
| 		LogFormat:     runc.JSON, | 		LogFormat:     runc.JSON, | ||||||
| 		PdeathSignal:  unix.SIGKILL, | 		PdeathSignal:  unix.SIGKILL, | ||||||
| 		Root:          filepath.Join(root, namespace), | 		Root:          filepath.Join(root, namespace), | ||||||
| 		Criu:          criu, |  | ||||||
| 		SystemdCgroup: systemd, | 		SystemdCgroup: systemd, | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|   | |||||||
| @@ -23,6 +23,9 @@ file { | |||||||
|       number: 3 |       number: 3 | ||||||
|       label: LABEL_OPTIONAL |       label: LABEL_OPTIONAL | ||||||
|       type: TYPE_STRING |       type: TYPE_STRING | ||||||
|  |       options { | ||||||
|  |         deprecated: true | ||||||
|  |       } | ||||||
|       json_name: "criuPath" |       json_name: "criuPath" | ||||||
|     } |     } | ||||||
|     field { |     field { | ||||||
|   | |||||||
| @@ -26,9 +26,15 @@ var _ = math.Inf | |||||||
| const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package | const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package | ||||||
|  |  | ||||||
| type RuncOptions struct { | type RuncOptions struct { | ||||||
| 	Runtime              string   `protobuf:"bytes,1,opt,name=runtime,proto3" json:"runtime,omitempty"` | 	Runtime     string `protobuf:"bytes,1,opt,name=runtime,proto3" json:"runtime,omitempty"` | ||||||
| 	RuntimeRoot          string   `protobuf:"bytes,2,opt,name=runtime_root,json=runtimeRoot,proto3" json:"runtime_root,omitempty"` | 	RuntimeRoot string `protobuf:"bytes,2,opt,name=runtime_root,json=runtimeRoot,proto3" json:"runtime_root,omitempty"` | ||||||
| 	CriuPath             string   `protobuf:"bytes,3,opt,name=criu_path,json=criuPath,proto3" json:"criu_path,omitempty"` | 	// criu binary path. | ||||||
|  | 	// | ||||||
|  | 	// Deprecated: runc option --criu is now ignored (with a warning), and the | ||||||
|  | 	// option will be removed entirely in a future release. Users who need a non- | ||||||
|  | 	// standard criu binary should rely on the standard way of looking up binaries | ||||||
|  | 	// in $PATH. | ||||||
|  | 	CriuPath             string   `protobuf:"bytes,3,opt,name=criu_path,json=criuPath,proto3" json:"criu_path,omitempty"` // Deprecated: Do not use. | ||||||
| 	SystemdCgroup        bool     `protobuf:"varint,4,opt,name=systemd_cgroup,json=systemdCgroup,proto3" json:"systemd_cgroup,omitempty"` | 	SystemdCgroup        bool     `protobuf:"varint,4,opt,name=systemd_cgroup,json=systemdCgroup,proto3" json:"systemd_cgroup,omitempty"` | ||||||
| 	XXX_NoUnkeyedLiteral struct{} `json:"-"` | 	XXX_NoUnkeyedLiteral struct{} `json:"-"` | ||||||
| 	XXX_unrecognized     []byte   `json:"-"` | 	XXX_unrecognized     []byte   `json:"-"` | ||||||
| @@ -216,45 +222,45 @@ func init() { | |||||||
| } | } | ||||||
|  |  | ||||||
| var fileDescriptor_d20e2ba8b3cc58b9 = []byte{ | var fileDescriptor_d20e2ba8b3cc58b9 = []byte{ | ||||||
| 	// 605 bytes of a gzipped FileDescriptorProto | 	// 606 bytes of a gzipped FileDescriptorProto | ||||||
| 	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x94, 0xcf, 0x6e, 0xd3, 0x4a, | 	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x94, 0xcf, 0x6e, 0xd3, 0x40, | ||||||
| 	0x14, 0xc6, 0xeb, 0xfe, 0x49, 0x9c, 0x93, 0xa4, 0xbd, 0x77, 0xee, 0xad, 0xe4, 0xdb, 0xaa, 0x69, | 	0x10, 0xc6, 0xeb, 0xfe, 0x49, 0x9c, 0x49, 0xd2, 0xc2, 0x42, 0x25, 0x53, 0xd4, 0x34, 0x84, 0x3f, | ||||||
| 	0x6e, 0xf8, 0xa3, 0xb0, 0x49, 0x25, 0x10, 0x2b, 0x76, 0x4d, 0x11, 0xaa, 0x80, 0x52, 0x19, 0x2a, | 	0x0a, 0x97, 0x54, 0x02, 0x71, 0xe2, 0x96, 0x14, 0xa1, 0x0a, 0x28, 0x95, 0xa1, 0x42, 0x42, 0x48, | ||||||
| 	0x24, 0x84, 0x34, 0x72, 0xc7, 0x87, 0x64, 0x94, 0x78, 0x8e, 0xe5, 0x19, 0x93, 0x64, 0xc7, 0x13, | 	0x2b, 0x77, 0x3d, 0x24, 0xab, 0xc4, 0x3b, 0x96, 0x77, 0x4d, 0x92, 0x1b, 0xcf, 0xc0, 0xeb, 0xf0, | ||||||
| 	0xf0, 0x42, 0xbc, 0x40, 0x57, 0x88, 0x25, 0x2b, 0x44, 0xf3, 0x24, 0x68, 0xc6, 0x76, 0xda, 0x35, | 	0x02, 0x3d, 0x21, 0x8e, 0x9c, 0x10, 0xcd, 0x93, 0xa0, 0x5d, 0xc7, 0x69, 0xcf, 0x1c, 0xb9, 0xcd, | ||||||
| 	0x4b, 0x76, 0xe7, 0xfc, 0xce, 0x67, 0x9f, 0xa3, 0xef, 0x93, 0x0d, 0xc3, 0x91, 0x34, 0xe3, 0xfc, | 	0xfc, 0xbe, 0x2f, 0x9e, 0xd1, 0x37, 0xca, 0xc2, 0x60, 0x28, 0xcd, 0x28, 0x3f, 0xef, 0x09, 0x4a, | ||||||
| 	0x72, 0x20, 0x28, 0x39, 0x12, 0xa4, 0x4c, 0x24, 0x15, 0x66, 0xf1, 0xed, 0x32, 0xcb, 0x95, 0x91, | 	0x0e, 0x05, 0x29, 0x13, 0x49, 0x85, 0x59, 0x7c, 0xbd, 0xcc, 0x72, 0x65, 0x64, 0x82, 0x87, 0x13, | ||||||
| 	0x09, 0x1e, 0x4d, 0xa5, 0xca, 0xe7, 0xb6, 0x13, 0x66, 0x91, 0xa2, 0x76, 0xd5, 0x20, 0xcd, 0xc8, | 	0xa9, 0xf2, 0x99, 0xed, 0x84, 0x99, 0xa7, 0xa8, 0x5d, 0xd5, 0x4b, 0x33, 0x32, 0xc4, 0x76, 0xaf, | ||||||
| 	0x10, 0xdb, 0xbd, 0x91, 0x0f, 0x9c, 0x6c, 0x60, 0x87, 0x7b, 0xff, 0x8e, 0x68, 0x44, 0x4e, 0x71, | 	0xec, 0x3d, 0x67, 0xeb, 0x59, 0x71, 0xef, 0xf6, 0x90, 0x86, 0xe4, 0x1c, 0x87, 0xb6, 0x2a, 0xcc, | ||||||
| 	0x64, 0xab, 0x42, 0xdc, 0xfb, 0xec, 0x41, 0x33, 0xcc, 0x95, 0x78, 0x95, 0x1a, 0x49, 0x4a, 0xb3, | 	0x9d, 0x6f, 0x1e, 0xd4, 0xc3, 0x5c, 0x89, 0xb7, 0xa9, 0x91, 0xa4, 0x34, 0x0b, 0xa0, 0xba, 0x1c, | ||||||
| 	0x00, 0xea, 0xe5, 0x8a, 0xc0, 0xeb, 0x7a, 0xfd, 0x46, 0x58, 0xb5, 0xec, 0x7f, 0x68, 0x95, 0x25, | 	0x11, 0x78, 0x6d, 0xaf, 0x5b, 0x0b, 0xcb, 0x96, 0xdd, 0x83, 0xc6, 0xb2, 0xe4, 0x19, 0x91, 0x09, | ||||||
| 	0xcf, 0x88, 0x4c, 0xb0, 0xee, 0xc6, 0xcd, 0x92, 0x85, 0x44, 0x86, 0xed, 0x43, 0x43, 0x64, 0x32, | 	0xd6, 0x9d, 0x5c, 0x5f, 0xb2, 0x90, 0xc8, 0xb0, 0x03, 0xa8, 0x89, 0x4c, 0xe6, 0x3c, 0x8d, 0xcc, | ||||||
| 	0xe7, 0x69, 0x64, 0xc6, 0xc1, 0x86, 0x9b, 0xfb, 0x16, 0x9c, 0x47, 0x66, 0xcc, 0xee, 0xc1, 0xb6, | 	0x28, 0xd8, 0xb0, 0x7a, 0x7f, 0x3d, 0xf0, 0x42, 0xdf, 0xc2, 0xd3, 0xc8, 0x8c, 0xd8, 0x43, 0xd8, | ||||||
| 	0x5e, 0x68, 0x83, 0x49, 0xcc, 0xc5, 0x28, 0xa3, 0x3c, 0x0d, 0x36, 0xbb, 0x5e, 0xdf, 0x0f, 0xdb, | 	0xd6, 0x73, 0x6d, 0x30, 0x89, 0xb9, 0x18, 0x66, 0x94, 0xa7, 0xc1, 0x66, 0xdb, 0xeb, 0xfa, 0x61, | ||||||
| 	0x25, 0x1d, 0x3a, 0xd8, 0xfb, 0xba, 0x01, 0xed, 0x61, 0x86, 0x91, 0xc1, 0xea, 0xa4, 0x1e, 0xb4, | 	0x73, 0x49, 0x07, 0x0e, 0x76, 0x7e, 0x6c, 0x40, 0x73, 0x90, 0x61, 0x64, 0xb0, 0x5c, 0xab, 0x03, | ||||||
| 	0x15, 0xf1, 0x54, 0x7e, 0x24, 0x53, 0x6c, 0xf6, 0xdc, 0x73, 0x4d, 0x45, 0xe7, 0x96, 0xb9, 0xcd, | 	0x4d, 0x45, 0x3c, 0x95, 0x5f, 0xc8, 0x14, 0xd3, 0x3d, 0xf7, 0xbb, 0xba, 0xa2, 0x53, 0xcb, 0xdc, | ||||||
| 	0xff, 0x81, 0x4f, 0x29, 0x2a, 0x6e, 0x44, 0xea, 0x0e, 0xf3, 0xc3, 0xba, 0xed, 0xdf, 0x88, 0x94, | 	0xf4, 0x3b, 0xe0, 0x53, 0x8a, 0x8a, 0x1b, 0x91, 0xba, 0xe5, 0xfc, 0xb0, 0x6a, 0xfb, 0xf7, 0x22, | ||||||
| 	0x3d, 0x84, 0x5d, 0x9c, 0x1b, 0xcc, 0x54, 0x34, 0xe5, 0xb9, 0x92, 0x73, 0xae, 0x49, 0x4c, 0xd0, | 	0x65, 0x4f, 0x60, 0x17, 0x67, 0x06, 0x33, 0x15, 0x4d, 0x78, 0xae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xe2, 0x0a, 0x67, 0x7c, 0x82, 0x8b, 0x4c, 0xaa, 0x51, | 	0xf6, 0x86, 0x62, 0x64, 0x0f, 0x60, 0x5b, 0x11, 0x57, 0x38, 0xe5, 0x63, 0x9c, 0x67, 0x52, 0x0d, | ||||||
| 	0xe0, 0xbb, 0x85, 0x2d, 0x45, 0x67, 0x38, 0x7b, 0x5e, 0x30, 0x76, 0x08, 0x4d, 0x3d, 0x96, 0x49, | 	0x03, 0xdf, 0x0d, 0x6c, 0x28, 0x3a, 0xc1, 0xe9, 0xab, 0x82, 0xb1, 0x03, 0xa8, 0xeb, 0x91, 0x4c, | ||||||
| 	0xe5, 0x6b, 0xc3, 0xbd, 0x07, 0x2c, 0x2a, 0x4c, 0x65, 0xbb, 0x50, 0x93, 0xc4, 0x73, 0x19, 0x07, | 	0xca, 0x5c, 0x6b, 0xee, 0x3b, 0x60, 0x51, 0x11, 0x2a, 0xdb, 0x85, 0x8a, 0x24, 0x9e, 0xcb, 0x38, | ||||||
| 	0xd0, 0xf5, 0xfa, 0xed, 0x70, 0x4b, 0xd2, 0x85, 0x8c, 0x4b, 0x3c, 0x92, 0x71, 0xd0, 0xac, 0xf0, | 	0x80, 0xb6, 0xd7, 0x6d, 0x86, 0x5b, 0x92, 0xce, 0x64, 0xbc, 0xc4, 0x43, 0x19, 0x07, 0xf5, 0x12, | ||||||
| 	0x33, 0x19, 0xdb, 0xa5, 0x2e, 0xc6, 0x19, 0x65, 0x93, 0x22, 0xcb, 0x96, 0x7b, 0x63, 0xcb, 0xd2, | 	0xbf, 0x94, 0xb1, 0x1d, 0xea, 0x4e, 0x39, 0xa5, 0x6c, 0x5c, 0xdc, 0xb3, 0xe1, 0xbe, 0xd8, 0xb0, | ||||||
| 	0xb7, 0x94, 0x4d, 0x5c, 0x9e, 0xf7, 0x61, 0xc7, 0xa9, 0x64, 0x12, 0x8d, 0xb0, 0x90, 0xb5, 0x9d, | 	0xf4, 0x03, 0x65, 0x63, 0x77, 0xcf, 0x47, 0xb0, 0xe3, 0x5c, 0x32, 0x89, 0x86, 0x58, 0xd8, 0x9a, | ||||||
| 	0xac, 0x6d, 0xf1, 0xa9, 0xa5, 0x56, 0xd7, 0xfb, 0xb2, 0x0e, 0x7f, 0x0f, 0xc7, 0x28, 0x26, 0x29, | 	0xce, 0xd6, 0xb4, 0xf8, 0xd8, 0x52, 0xeb, 0xeb, 0x7c, 0x5f, 0x87, 0x9b, 0x83, 0x11, 0x8a, 0x71, | ||||||
| 	0x49, 0x65, 0xaa, 0x50, 0x19, 0x6c, 0xe2, 0x5c, 0x56, 0x59, 0xba, 0xfa, 0x8f, 0x0d, 0x71, 0x1f, | 	0x4a, 0x52, 0x99, 0xf2, 0xa8, 0x0c, 0x36, 0x71, 0x26, 0xcb, 0x5b, 0xba, 0xfa, 0xbf, 0x3d, 0xe2, | ||||||
| 	0x1a, 0x37, 0x56, 0xfa, 0xc5, 0x67, 0x31, 0xab, 0x6c, 0x3c, 0x00, 0xb8, 0xe5, 0x60, 0x11, 0x5d, | 	0x5d, 0xa8, 0x5d, 0x45, 0xe9, 0x3b, 0xdd, 0x9f, 0x96, 0x31, 0xee, 0x03, 0x5c, 0x4b, 0xb0, 0x38, | ||||||
| 	0x43, 0xae, 0xdc, 0x7b, 0x0c, 0xdb, 0xe7, 0x19, 0x09, 0xd4, 0xfa, 0x04, 0x4d, 0x24, 0xa7, 0x9a, | 	0x5d, 0x4d, 0xae, 0xd2, 0x7b, 0x06, 0xdb, 0xa7, 0x19, 0x09, 0xd4, 0xfa, 0x08, 0x4d, 0x24, 0x27, | ||||||
| 	0xdd, 0x81, 0x3a, 0xce, 0x51, 0x70, 0x19, 0x17, 0x5f, 0xe8, 0x31, 0x2c, 0x7f, 0x1c, 0xd6, 0x9e, | 	0x9a, 0xdd, 0x87, 0x2a, 0xce, 0x50, 0x70, 0x19, 0x17, 0xff, 0xd2, 0x3e, 0x2c, 0x7e, 0x1f, 0x54, | ||||||
| 	0xce, 0x51, 0x9c, 0x9e, 0x84, 0x35, 0x3b, 0x3a, 0x8d, 0x8f, 0xdf, 0x5f, 0x5d, 0x77, 0xd6, 0xbe, | 	0x5e, 0xcc, 0x50, 0x1c, 0x1f, 0x85, 0x15, 0x2b, 0x1d, 0xc7, 0xfd, 0x4f, 0x17, 0x97, 0xad, 0xb5, | ||||||
| 	0x5f, 0x77, 0xd6, 0x3e, 0x2d, 0x3b, 0xde, 0xd5, 0xb2, 0xe3, 0x7d, 0x5b, 0x76, 0xbc, 0x9f, 0xcb, | 	0x5f, 0x97, 0xad, 0xb5, 0xaf, 0x8b, 0x96, 0x77, 0xb1, 0x68, 0x79, 0x3f, 0x17, 0x2d, 0xef, 0xcf, | ||||||
| 	0x8e, 0xf7, 0xee, 0xf8, 0x77, 0x7f, 0x31, 0x4f, 0x56, 0xd5, 0x65, 0xcd, 0xfd, 0x3b, 0x1e, 0xfd, | 	0xa2, 0xe5, 0x7d, 0xec, 0xff, 0xeb, 0x33, 0xf3, 0x7c, 0x55, 0x9d, 0x57, 0xdc, 0xfb, 0xf1, 0xf4, | ||||||
| 	0x0a, 0x00, 0x00, 0xff, 0xff, 0x72, 0x8a, 0x0a, 0x26, 0xaf, 0x04, 0x00, 0x00, | 	0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe4, 0xbd, 0xd4, 0x57, 0xb3, 0x04, 0x00, 0x00, | ||||||
| } | } | ||||||
|  |  | ||||||
| func (m *RuncOptions) Marshal() (dAtA []byte, err error) { | func (m *RuncOptions) Marshal() (dAtA []byte, err error) { | ||||||
|   | |||||||
| @@ -9,7 +9,13 @@ option go_package = "github.com/containerd/containerd/runtime/linux/runctypes;ru | |||||||
| message RuncOptions { | message RuncOptions { | ||||||
| 	string runtime = 1; | 	string runtime = 1; | ||||||
| 	string runtime_root = 2; | 	string runtime_root = 2; | ||||||
| 	string criu_path = 3; | 	// criu binary path. | ||||||
|  | 	// | ||||||
|  | 	// Deprecated: runc option --criu is now ignored (with a warning), and the | ||||||
|  | 	// option will be removed entirely in a future release. Users who need a non- | ||||||
|  | 	// standard criu binary should rely on the standard way of looking up binaries | ||||||
|  | 	// in $PATH. | ||||||
|  | 	string criu_path = 3 [deprecated = true]; | ||||||
| 	bool systemd_cgroup = 4; | 	bool systemd_cgroup = 4; | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -217,12 +217,10 @@ func (b *bundle) decideShimAddress(namespace string) string { | |||||||
|  |  | ||||||
| func (b *bundle) shimConfig(namespace string, c *Config, runcOptions *runctypes.RuncOptions) shim.Config { | func (b *bundle) shimConfig(namespace string, c *Config, runcOptions *runctypes.RuncOptions) shim.Config { | ||||||
| 	var ( | 	var ( | ||||||
| 		criuPath      string |  | ||||||
| 		runtimeRoot   = c.RuntimeRoot | 		runtimeRoot   = c.RuntimeRoot | ||||||
| 		systemdCgroup bool | 		systemdCgroup bool | ||||||
| 	) | 	) | ||||||
| 	if runcOptions != nil { | 	if runcOptions != nil { | ||||||
| 		criuPath = runcOptions.CriuPath |  | ||||||
| 		systemdCgroup = runcOptions.SystemdCgroup | 		systemdCgroup = runcOptions.SystemdCgroup | ||||||
| 		if runcOptions.RuntimeRoot != "" { | 		if runcOptions.RuntimeRoot != "" { | ||||||
| 			runtimeRoot = runcOptions.RuntimeRoot | 			runtimeRoot = runcOptions.RuntimeRoot | ||||||
| @@ -232,7 +230,6 @@ func (b *bundle) shimConfig(namespace string, c *Config, runcOptions *runctypes. | |||||||
| 		Path:          b.path, | 		Path:          b.path, | ||||||
| 		WorkDir:       b.workDir, | 		WorkDir:       b.workDir, | ||||||
| 		Namespace:     namespace, | 		Namespace:     namespace, | ||||||
| 		Criu:          criuPath, |  | ||||||
| 		RuntimeRoot:   runtimeRoot, | 		RuntimeRoot:   runtimeRoot, | ||||||
| 		SystemdCgroup: systemdCgroup, | 		SystemdCgroup: systemdCgroup, | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -197,9 +197,6 @@ func newCommand(binary, daemonAddress string, debug bool, config shim.Config, so | |||||||
| 		"-containerd-binary", selfExe, | 		"-containerd-binary", selfExe, | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	if config.Criu != "" { |  | ||||||
| 		args = append(args, "-criu-path", config.Criu) |  | ||||||
| 	} |  | ||||||
| 	if config.RuntimeRoot != "" { | 	if config.RuntimeRoot != "" { | ||||||
| 		args = append(args, "-runtime-root", config.RuntimeRoot) | 		args = append(args, "-runtime-root", config.RuntimeRoot) | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -62,9 +62,15 @@ var ( | |||||||
|  |  | ||||||
| // Config contains shim specific configuration | // Config contains shim specific configuration | ||||||
| type Config struct { | type Config struct { | ||||||
| 	Path          string | 	Path      string | ||||||
| 	Namespace     string | 	Namespace string | ||||||
| 	WorkDir       string | 	WorkDir   string | ||||||
|  | 	// Criu is the path to the criu binary used for checkpoint and restore. | ||||||
|  | 	// | ||||||
|  | 	// Deprecated: runc option --criu is now ignored (with a warning), and the | ||||||
|  | 	// option will be removed entirely in a future release. Users who need a non- | ||||||
|  | 	// standard criu binary should rely on the standard way of looking up binaries | ||||||
|  | 	// in $PATH. | ||||||
| 	Criu          string | 	Criu          string | ||||||
| 	RuntimeRoot   string | 	RuntimeRoot   string | ||||||
| 	SystemdCgroup bool | 	SystemdCgroup bool | ||||||
| @@ -172,7 +178,6 @@ func (s *Service) Create(ctx context.Context, r *shimapi.CreateTaskRequest) (_ * | |||||||
| 		s.config.WorkDir, | 		s.config.WorkDir, | ||||||
| 		s.config.RuntimeRoot, | 		s.config.RuntimeRoot, | ||||||
| 		s.config.Namespace, | 		s.config.Namespace, | ||||||
| 		s.config.Criu, |  | ||||||
| 		s.config.SystemdCgroup, | 		s.config.SystemdCgroup, | ||||||
| 		s.platform, | 		s.platform, | ||||||
| 		config, | 		config, | ||||||
| @@ -637,7 +642,7 @@ func getTopic(ctx context.Context, e interface{}) string { | |||||||
| 	return runtime.TaskUnknownTopic | 	return runtime.TaskUnknownTopic | ||||||
| } | } | ||||||
|  |  | ||||||
| func newInit(ctx context.Context, path, workDir, runtimeRoot, namespace, criu string, systemdCgroup bool, platform stdio.Platform, r *process.CreateConfig, rootfs string) (*process.Init, error) { | func newInit(ctx context.Context, path, workDir, runtimeRoot, namespace string, systemdCgroup bool, platform stdio.Platform, r *process.CreateConfig, rootfs string) (*process.Init, error) { | ||||||
| 	var options runctypes.CreateOptions | 	var options runctypes.CreateOptions | ||||||
| 	if r.Options != nil { | 	if r.Options != nil { | ||||||
| 		v, err := typeurl.UnmarshalAny(r.Options) | 		v, err := typeurl.UnmarshalAny(r.Options) | ||||||
| @@ -647,7 +652,7 @@ func newInit(ctx context.Context, path, workDir, runtimeRoot, namespace, criu st | |||||||
| 		options = *v.(*runctypes.CreateOptions) | 		options = *v.(*runctypes.CreateOptions) | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	runtime := process.NewRunc(runtimeRoot, path, namespace, r.Runtime, criu, systemdCgroup) | 	runtime := process.NewRunc(runtimeRoot, path, namespace, r.Runtime, systemdCgroup) | ||||||
| 	p := process.New(r.ID, runtime, stdio.Stdio{ | 	p := process.New(r.ID, runtime, stdio.Stdio{ | ||||||
| 		Stdin:    r.Stdin, | 		Stdin:    r.Stdin, | ||||||
| 		Stdout:   r.Stdout, | 		Stdout:   r.Stdout, | ||||||
|   | |||||||
| @@ -210,7 +210,7 @@ func WriteRuntime(path, runtime string) error { | |||||||
|  |  | ||||||
| func newInit(ctx context.Context, path, workDir, namespace string, platform stdio.Platform, | func newInit(ctx context.Context, path, workDir, namespace string, platform stdio.Platform, | ||||||
| 	r *process.CreateConfig, options *options.Options, rootfs string) (*process.Init, error) { | 	r *process.CreateConfig, options *options.Options, rootfs string) (*process.Init, error) { | ||||||
| 	runtime := process.NewRunc(options.Root, path, namespace, options.BinaryName, options.CriuPath, options.SystemdCgroup) | 	runtime := process.NewRunc(options.Root, path, namespace, options.BinaryName, options.SystemdCgroup) | ||||||
| 	p := process.New(r.ID, runtime, stdio.Stdio{ | 	p := process.New(r.ID, runtime, stdio.Stdio{ | ||||||
| 		Stdin:    r.Stdin, | 		Stdin:    r.Stdin, | ||||||
| 		Stdout:   r.Stdout, | 		Stdout:   r.Stdout, | ||||||
|   | |||||||
| @@ -261,7 +261,7 @@ func (manager) Stop(ctx context.Context, id string) (shim.StopStatus, error) { | |||||||
| 		root = opts.Root | 		root = opts.Root | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	r := process.NewRunc(root, path, ns, runtime, "", false) | 	r := process.NewRunc(root, path, ns, runtime, false) | ||||||
| 	if err := r.Delete(ctx, id, &runcC.DeleteOpts{ | 	if err := r.Delete(ctx, id, &runcC.DeleteOpts{ | ||||||
| 		Force: true, | 		Force: true, | ||||||
| 	}); err != nil { | 	}); err != nil { | ||||||
|   | |||||||
| @@ -58,6 +58,9 @@ file { | |||||||
|       number: 8 |       number: 8 | ||||||
|       label: LABEL_OPTIONAL |       label: LABEL_OPTIONAL | ||||||
|       type: TYPE_STRING |       type: TYPE_STRING | ||||||
|  |       options { | ||||||
|  |         deprecated: true | ||||||
|  |       } | ||||||
|       json_name: "criuPath" |       json_name: "criuPath" | ||||||
|     } |     } | ||||||
|     field { |     field { | ||||||
|   | |||||||
| @@ -40,8 +40,13 @@ type Options struct { | |||||||
| 	BinaryName string `protobuf:"bytes,6,opt,name=binary_name,json=binaryName,proto3" json:"binary_name,omitempty"` | 	BinaryName string `protobuf:"bytes,6,opt,name=binary_name,json=binaryName,proto3" json:"binary_name,omitempty"` | ||||||
| 	// runc root directory | 	// runc root directory | ||||||
| 	Root string `protobuf:"bytes,7,opt,name=root,proto3" json:"root,omitempty"` | 	Root string `protobuf:"bytes,7,opt,name=root,proto3" json:"root,omitempty"` | ||||||
| 	// criu binary path | 	// criu binary path. | ||||||
| 	CriuPath string `protobuf:"bytes,8,opt,name=criu_path,json=criuPath,proto3" json:"criu_path,omitempty"` | 	// | ||||||
|  | 	// Deprecated: runc option --criu is now ignored (with a warning), and the | ||||||
|  | 	// option will be removed entirely in a future release. Users who need a non- | ||||||
|  | 	// standard criu binary should rely on the standard way of looking up binaries | ||||||
|  | 	// in $PATH. | ||||||
|  | 	CriuPath string `protobuf:"bytes,8,opt,name=criu_path,json=criuPath,proto3" json:"criu_path,omitempty"` // Deprecated: Do not use. | ||||||
| 	// enable systemd cgroups | 	// enable systemd cgroups | ||||||
| 	SystemdCgroup bool `protobuf:"varint,9,opt,name=systemd_cgroup,json=systemdCgroup,proto3" json:"systemd_cgroup,omitempty"` | 	SystemdCgroup bool `protobuf:"varint,9,opt,name=systemd_cgroup,json=systemdCgroup,proto3" json:"systemd_cgroup,omitempty"` | ||||||
| 	// criu image path | 	// criu image path | ||||||
| @@ -192,44 +197,44 @@ func init() { | |||||||
| } | } | ||||||
|  |  | ||||||
| var fileDescriptor_4e5440d739e9a863 = []byte{ | var fileDescriptor_4e5440d739e9a863 = []byte{ | ||||||
| 	// 586 bytes of a gzipped FileDescriptorProto | 	// 592 bytes of a gzipped FileDescriptorProto | ||||||
| 	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0x4f, 0x6f, 0xd3, 0x4c, | 	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0x41, 0x6f, 0xd3, 0x4a, | ||||||
| 	0x10, 0x87, 0xeb, 0xfe, 0x49, 0xec, 0x4d, 0x93, 0xbe, 0xef, 0x42, 0x25, 0xd3, 0x8a, 0x34, 0x94, | 	0x10, 0xc7, 0xeb, 0xb4, 0x4d, 0xec, 0x4d, 0x93, 0xbe, 0xb7, 0xef, 0x55, 0x32, 0x45, 0xa4, 0xa1, | ||||||
| 	0x82, 0xc2, 0x25, 0x11, 0x45, 0x9c, 0xb8, 0xa0, 0xb6, 0x08, 0x55, 0x40, 0xa9, 0x0c, 0x15, 0x52, | 	0x14, 0x14, 0x2e, 0x89, 0x28, 0xe2, 0xc4, 0x05, 0xa5, 0x45, 0xa8, 0x02, 0x4a, 0x65, 0xa8, 0x90, | ||||||
| 	0x2f, 0x2b, 0x77, 0x3d, 0x38, 0xa3, 0xc4, 0x3b, 0x96, 0x77, 0xd3, 0xa4, 0x37, 0xbe, 0x17, 0x5f, | 	0x7a, 0x59, 0xb9, 0xeb, 0xc1, 0x19, 0x25, 0xde, 0xb1, 0xbc, 0x9b, 0x26, 0xbd, 0xf1, 0xbd, 0xf8, | ||||||
| 	0xa0, 0x47, 0x8e, 0x9c, 0x10, 0xcd, 0x8d, 0x6f, 0x81, 0x76, 0xed, 0xa4, 0x3d, 0x73, 0xf2, 0xec, | 	0x02, 0x3d, 0x72, 0xe4, 0x84, 0x68, 0xee, 0x7c, 0x07, 0xb4, 0x6b, 0xa7, 0xed, 0x99, 0x53, 0x66, | ||||||
| 	0x33, 0x3f, 0x8f, 0xd7, 0xcf, 0x6a, 0xd9, 0x41, 0x8a, 0x66, 0x30, 0xbe, 0xe8, 0x49, 0xca, 0xfa, | 	0x7f, 0xf3, 0xcf, 0xec, 0xfa, 0xb7, 0x5a, 0x36, 0x4c, 0xd1, 0x8c, 0xa6, 0xe7, 0x7d, 0x49, 0xd9, | ||||||
| 	0x92, 0x94, 0x89, 0x51, 0x41, 0x91, 0xdc, 0x2d, 0x8b, 0xb1, 0x32, 0x98, 0x41, 0xff, 0x72, 0xdf, | 	0x40, 0x92, 0x32, 0x31, 0x2a, 0x28, 0x92, 0xbb, 0x65, 0x31, 0x55, 0x06, 0x33, 0x18, 0x5c, 0xec, | ||||||
| 	0x96, 0xb2, 0x4f, 0xb9, 0x41, 0x52, 0xba, 0x4f, 0x12, 0x7b, 0x79, 0x41, 0x86, 0x38, 0xbf, 0x4d, | 	0xdb, 0x52, 0x0e, 0x28, 0x37, 0x48, 0x4a, 0x0f, 0x48, 0x62, 0x3f, 0x2f, 0xc8, 0x10, 0xe7, 0xb7, | ||||||
| 	0xf7, 0x6c, 0xa4, 0x77, 0xf9, 0x7c, 0xeb, 0x7e, 0x4a, 0x29, 0xb9, 0x76, 0xdf, 0x56, 0x65, 0x72, | 	0xe9, 0xbe, 0x8d, 0xf4, 0x2f, 0x9e, 0x6d, 0xff, 0x9f, 0x52, 0x4a, 0xae, 0x3d, 0xb0, 0x55, 0x99, | ||||||
| 	0xf7, 0xcf, 0x32, 0xab, 0x7f, 0x2c, 0xdf, 0xe7, 0xbb, 0xac, 0xa9, 0x48, 0xe4, 0x78, 0x49, 0x46, | 	0xdc, 0xfd, 0x5d, 0x63, 0x8d, 0x0f, 0xe5, 0xff, 0xf9, 0x2e, 0x6b, 0x29, 0x12, 0x39, 0x5e, 0x90, | ||||||
| 	0x14, 0x44, 0x26, 0xf4, 0x3a, 0x5e, 0xd7, 0x8f, 0x1a, 0x8a, 0x4e, 0x2d, 0x8b, 0x88, 0x0c, 0xdf, | 	0x11, 0x05, 0x91, 0x09, 0xbd, 0xae, 0xd7, 0xf3, 0xa3, 0xa6, 0xa2, 0x13, 0xcb, 0x22, 0x22, 0xc3, | ||||||
| 	0x63, 0x2d, 0x45, 0x42, 0xc1, 0x44, 0x0c, 0xe1, 0xaa, 0x40, 0x95, 0x86, 0xcb, 0x2e, 0xb4, 0xae, | 	0xf7, 0x58, 0x5b, 0x91, 0x50, 0x30, 0x13, 0x63, 0xb8, 0x2c, 0x50, 0xa5, 0x61, 0xcd, 0x85, 0x36, | ||||||
| 	0xe8, 0x04, 0x26, 0xef, 0x4a, 0xc6, 0x77, 0x58, 0x43, 0x0f, 0x30, 0x13, 0x32, 0x2d, 0x68, 0x9c, | 	0x14, 0x1d, 0xc3, 0xec, 0x6d, 0xc9, 0xf8, 0x0e, 0x6b, 0xea, 0x11, 0x66, 0x42, 0xa6, 0x05, 0x4d, | ||||||
| 	0x87, 0x2b, 0x1d, 0xaf, 0x1b, 0x44, 0xcc, 0xa2, 0x43, 0x47, 0xf8, 0x26, 0xab, 0x21, 0x89, 0x31, | 	0xf3, 0x70, 0xb5, 0xeb, 0xf5, 0x82, 0x88, 0x59, 0x74, 0xe0, 0x08, 0xdf, 0x62, 0x75, 0x24, 0x31, | ||||||
| 	0x26, 0xe1, 0x6a, 0xc7, 0xeb, 0x36, 0xa3, 0x35, 0xa4, 0x33, 0x4c, 0x2a, 0x9c, 0x62, 0x12, 0xae, | 	0xc5, 0x24, 0x5c, 0xeb, 0x7a, 0xbd, 0x56, 0xb4, 0x8e, 0x74, 0x8a, 0x49, 0x85, 0x53, 0x4c, 0xc2, | ||||||
| 	0xcd, 0xf1, 0x5b, 0x4c, 0xec, 0xb8, 0x0b, 0x54, 0x71, 0x71, 0x25, 0x54, 0x9c, 0x41, 0x58, 0x2b, | 	0xf5, 0x25, 0x7e, 0x83, 0x89, 0x1d, 0x77, 0x8e, 0x2a, 0x2e, 0x2e, 0x85, 0x8a, 0x33, 0x08, 0xeb, | ||||||
| 	0xc7, 0x95, 0xe8, 0x24, 0xce, 0x80, 0x73, 0xb6, 0xea, 0x36, 0x5c, 0x77, 0x1d, 0x57, 0xf3, 0x6d, | 	0xe5, 0xb8, 0x12, 0x1d, 0xc7, 0x19, 0x70, 0xce, 0xd6, 0xdc, 0x81, 0x1b, 0xae, 0xe3, 0x6a, 0xbe, | ||||||
| 	0x16, 0xc8, 0x02, 0xc7, 0x22, 0x8f, 0xcd, 0x20, 0xf4, 0x5d, 0xc3, 0xb7, 0xe0, 0x34, 0x36, 0x03, | 	0xc3, 0x02, 0x59, 0xe0, 0x54, 0xe4, 0xb1, 0x19, 0x85, 0xbe, 0x6d, 0x0c, 0x6b, 0xa1, 0x17, 0xf9, | ||||||
| 	0xfe, 0x84, 0xb5, 0xf4, 0x95, 0x36, 0x90, 0x25, 0xf3, 0x3d, 0x06, 0xee, 0x37, 0x9a, 0x15, 0xad, | 	0x16, 0x9e, 0xc4, 0x66, 0xc4, 0x1f, 0xb3, 0xb6, 0xbe, 0xd4, 0x06, 0xb2, 0x64, 0x79, 0xce, 0xc0, | ||||||
| 	0xb6, 0xf9, 0x94, 0x6d, 0xb8, 0x19, 0x98, 0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 0x7e, 0x2d, 0x3a, 0xde, 0xd9, 0xab, 0xbf, 0x7d, 0x6c, 0x2f, 0xab, 0xdf, 0xf3, 0xba, 0x7b, | ||||||
| 	0xff, 0xff, 0x0d, 0x09, 0x46, 0xe5, 0xb3, 0x03, 0x00, 0x00, | 	0x47, 0xcf, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0xd7, 0x10, 0x71, 0xdd, 0xb7, 0x03, 0x00, 0x00, | ||||||
| } | } | ||||||
|  |  | ||||||
| func (m *Options) Marshal() (dAtA []byte, err error) { | func (m *Options) Marshal() (dAtA []byte, err error) { | ||||||
|   | |||||||
| @@ -21,8 +21,13 @@ message Options { | |||||||
| 	string binary_name = 6; | 	string binary_name = 6; | ||||||
| 	// runc root directory | 	// runc root directory | ||||||
| 	string root = 7; | 	string root = 7; | ||||||
| 	// criu binary path | 	// criu binary path. | ||||||
| 	string criu_path = 8; | 	// | ||||||
|  | 	// Deprecated: runc option --criu is now ignored (with a warning), and the | ||||||
|  | 	// option will be removed entirely in a future release. Users who need a non- | ||||||
|  | 	// standard criu binary should rely on the standard way of looking up binaries | ||||||
|  | 	// in $PATH. | ||||||
|  | 	string criu_path = 8 [deprecated = true]; | ||||||
| 	// enable systemd cgroups | 	// enable systemd cgroups | ||||||
| 	bool systemd_cgroup = 9; | 	bool systemd_cgroup = 9; | ||||||
| 	// criu image path | 	// criu image path | ||||||
|   | |||||||
| @@ -250,7 +250,7 @@ func (s *service) Cleanup(ctx context.Context) (*taskAPI.DeleteResponse, error) | |||||||
| 		root = opts.Root | 		root = opts.Root | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	r := process.NewRunc(root, path, ns, runtime, "", false) | 	r := process.NewRunc(root, path, ns, runtime, false) | ||||||
| 	if err := r.Delete(ctx, s.id, &runcC.DeleteOpts{ | 	if err := r.Delete(ctx, s.id, &runcC.DeleteOpts{ | ||||||
| 		Force: true, | 		Force: true, | ||||||
| 	}); err != nil { | 	}); err != nil { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Phil Estes
					Phil Estes