The argus.introspection.cloud.base Module

class argus.introspection.cloud.base.CloudInstanceIntrospection(remote_client)

Introspection class for testing cloudbase-init.

get_cloudbaseinit_traceback()

Return the traceback, if any, from the cloudbaseinit’s logs.

get_cloudconfig_executed_plugins()

Get a dictionary of files, created by the cloud-config plugin.

The values are the actual file content.

get_disk_size()

Return the disk size from the instance.

get_group_members(group)

Get the members of the local group given.

get_instance_file_content(filepath)

Return the content of the given file from the instance.

get_instance_hostname()

Get the hostname of the instance.

get_instance_keys_path()

Return the authorized_keys file path from the instance.

get_instance_mtu()

Get the mtu value from the instance.

get_instance_ntp_peers()

Get the NTP peers from the instance.

get_network_interfaces()

Get IP available instance network adapters.

get_swap_status()

Get whether the swap memory is enabled or not.

Returns:True if swap memory is enabled, False if not.
Return type:bool
get_timezone()

Get the timezone of the instance.

get_userdata_executed_plugins()

Get the count of userdata executed plugins.

list_location(location)

Return the list of files and folder from the given location.

username_exists(username)

Check if the given username exists in the instance.