Documentation ¶
Overview ¶
Copyright 2016 The Rook Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2016 The Rook Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2016 The Rook Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2016 The Rook Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2016 The Rook Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2016 The Rook Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2016 The Rook Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- func AddDesiredDevice(etcdClient etcd.KeysAPI, nodeID, uuid string, osdID int) error
- func AddDesiredDir(etcdClient etcd.KeysAPI, dir, nodeID string) error
- func GetAppliedOSDs(nodeID string, etcdClient etcd.KeysAPI) (map[int]string, error)
- func GetCrushMap(adminConn client.Connection) (string, error)
- func RemoveDesiredDevice(etcdClient etcd.KeysAPI, nodeID, uuid string) error
- func Run(dcontext *clusterd.DaemonContext, agent *OsdAgent) error
- type Device
- type DeviceOsdIDEntry
- type DeviceOsdMapping
- type Leader
- type OsdAgent
Constants ¶
const ( DevicesValue = "devices" ForceFormatValue = "forceFormat" )
Variables ¶
This section is empty.
Functions ¶
func AddDesiredDevice ¶
add a device to the desired state
func AddDesiredDir ¶
add a device to the desired state
func GetAppliedOSDs ¶
For all applied OSDs, gets a mapping of their osd IDs to their data device uuid
func GetCrushMap ¶
func GetCrushMap(adminConn client.Connection) (string, error)
calls osd getcrushmap
func RemoveDesiredDevice ¶
remove a device from the desired state
Types ¶
type DeviceOsdIDEntry ¶ added in v0.3.0
type DeviceOsdMapping ¶ added in v0.3.0
type DeviceOsdMapping struct {
Entries map[string]*DeviceOsdIDEntry // device name to OSD ID mapping entry
}
func NewDeviceOsdMapping ¶ added in v0.3.0
func NewDeviceOsdMapping() *DeviceOsdMapping
type OsdAgent ¶ added in v0.3.0
type OsdAgent struct {
// contains filtered or unexported fields
}
func NewAgent ¶
func NewAgent(factory client.ConnectionFactory, devices, metadataDevice string, forceFormat bool, location string, bluestoreConfig partition.BluestoreConfig, cluster *mon.ClusterInfo) *OsdAgent
func (*OsdAgent) ConfigureLocalService ¶ added in v0.3.0
func (*OsdAgent) DestroyLocalService ¶ added in v0.3.0
func (*OsdAgent) Initialize ¶ added in v0.3.0
set the desired state in etcd