Documentation

ServerManagerAbstraction extends OpenStackObjectManager
in package

Table of Contents

$errorLogName  : string
$warningLogName  : string
$apiVersion  : string
API Version
$authenticationManager  : AuthenticationManager
The authentication manager, used to interact with Open Stack APIs
$jobsLogName  : string
The name of the log in which we are going to log actions performed by jobs
__construct()  : mixed
changePassword()  : string
This function will ask to Open Stack to set a new password for the root user.
delete()  : bool
This function will send the delete request to the Open Stack API
fromOpenStack()  : Server
getAuthenticationManager()  : AuthenticationManager
getConsoleVnc()  : array<string|int, mixed>
This functions asks OpenStack the VNC Console Url for the server
hasChanged()  : bool
import()  : Server
logEntry()  : Activity
logEntryWithoutModel()  : Activity
logError()  : Activity
logWarning()  : Activity
pause()  : bool
Pause the OpenStack server instance
reboot()  : bool
This function will ask to Open Stack to reboot the server.
rebuild()  : bool
This function will ask to Open Stack to rebuild the server.
refresh()  : bool
It refreshes the Bennu server instance with data retrieved from OpenStack remote
resize()  : bool
This function asks OpenStack to start a resize action on the Server
resizeConfirm()  : bool
This function asks OpenStack to confirm the resizing operation on the server
resizeRevert()  : bool
retrieveOrImport()  : Server
setAuthenticationManager()  : OpenStackObjectManager
start()  : bool
Starts the OpenStack server instance
stop()  : bool
Stops the OpenStack server instance
toOpenStack()  : Server
toOpenStackArray()  : array<string|int, mixed>
unpause()  : bool
Unpause the OpenStack server instance
log()  : array<string|int, Activity>

Properties

$warningLogName

public static string $warningLogName = "warning"

$jobsLogName

The name of the log in which we are going to log actions performed by jobs

protected string $jobsLogName = "jobs"

Methods

logEntry()

public static logEntry(Model $model, array<string|int, mixed> $properties, string $description, string $event, string $logName) : Activity
Parameters
$model : Model
$properties : array<string|int, mixed>
$description : string
$event : string
$logName : string
Return values
Activity

logEntryWithoutModel()

public static logEntryWithoutModel(array<string|int, mixed> $properties, string $description, string $event, string $logName) : Activity
Parameters
$properties : array<string|int, mixed>
$description : string
$event : string
$logName : string
Return values
Activity

logError()

public static logError(Model $model, array<string|int, mixed> $properties, string $description, string $event) : Activity
Parameters
$model : Model
$properties : array<string|int, mixed>
$description : string
$event : string
Return values
Activity

logWarning()

public static logWarning(Model $model, array<string|int, mixed> $properties, string $description, string $event) : Activity
Parameters
$model : Model
$properties : array<string|int, mixed>
$description : string
$event : string
Return values
Activity

reboot()

This function will ask to Open Stack to reboot the server.

public reboot(Server $server[, bool $hardReboot = false ]) : bool
Parameters
$server : Server

the server instance

$hardReboot : bool = false

whether perform a hard reboot or a soft reboot

Tags
throws
NotImplementedException
Return values
bool

true on success, false otherwise

refresh()

It refreshes the Bennu server instance with data retrieved from OpenStack remote

public refresh(Server $server[, OperatorResource|null $openStackServer = null ], bool $refreshStatus) : bool
Parameters
$server : Server

the server instance

$openStackServer : OperatorResource|null = null

the openstack server instance (optional)

$refreshStatus : bool
Tags
throws
NotImplementedException
Return values
bool

true on success, false otherwise

retrieveOrImport()

public retrieveOrImport(string $external_id[, bool $refresh = false ][, bool $refreshStatus = true ]) : Server
Parameters
$external_id : string
$refresh : bool = false
$refreshStatus : bool = true
Tags
throws
NotImplementedException
Return values
Server

log()

protected log(Model|array<string|int, mixed> $models, array<string|int, mixed> $properties, string $description[, null $logName = null ]) : array<string|int, Activity>
Parameters
$models : Model|array<string|int, mixed>
$properties : array<string|int, mixed>
$description : string
$logName : null = null
Return values
array<string|int, Activity>

Search results