vci_kdump

package module
v0.0.0-...-5a5a40f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2021 License: BSD-3-Clause, GPL-2.0 Imports: 14 Imported by: 0

README

This repository contains the yang modules, VCI service and packaging for vyatta-kdump feature.

vci-kdump

  • vci-kdump implement the VCI configuration, state, and rpc services for vyatta-system-crash-dump-v1 yang module. vci-kdump creates the required configuration files for kdump-tools service and launches the systemd kdump-tools service. On normal boot kdump-tool.service uses kexce to load the crash dump kernel. When booted in the kdump kernel after a crash, it uses makedumpfile to capture the vmcore and save it to a file in /var/crash directory. The backend code reside in internal/kdump/kdump.go.

Documentation

Overview

Copyright (c) 2021, AT&T Intellectual Property. All rights reserved. SPDX-License-Identifier: GPL-2.0-only

Copyright (c) 2021, AT&T Intellectual Property. All rights reserved. SPDX-License-Identifier: GPL-2.0-only

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func ConfigNew

func ConfigNew(client *vci.Client, cache string) *Config

func (*Config) Check

func (c *Config) Check(proposedConfig *ConfigData) error

func (*Config) Get

func (c *Config) Get() *ConfigData

func (*Config) Set

func (c *Config) Set(newConfig *ConfigData) error

type ConfigData

type ConfigData struct {
	System struct {
		KDump *cfg.KDumpData `rfc7951:"vyatta-system-crash-dump-v1:kernel-crash-dump,omitempty"`
	} `rfc7951:"vyatta-system-v1:system"`
}

type RPC

type RPC struct {
	// contains filtered or unexported fields
}

func RPCNew

func RPCNew(conf *Config) *RPC

func (*RPC) DeleteCrashDumps

func (r *RPC) DeleteCrashDumps(in rpc.RPCInput) (struct{}, error)

func (*RPC) GetCrashDmesg

func (r *RPC) GetCrashDmesg(in rpc.RPCInput) (*rpc.CrashDMesgOut, error)

type State

type State struct {
	// contains filtered or unexported fields
}

func StateNew

func StateNew(conf *Config) *State

func (*State) Get

func (s *State) Get() *StateData

type StateData

type StateData struct {
	System struct {
		KDump struct {
			KDumpStatus *st.KDumpStatusData `rfc7951:"vyatta-system-crash-dump-v1:status"`
		} `rfc7951:"vyatta-system-crash-dump-v1:kernel-crash-dump"`
	} `rfc7951:"vyatta-system-v1:system"`
}

Directories

Path Synopsis
cmd
internal
log
rpc

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL