system¶
system is the command-line interface for System Inventory and Maintenance.
This page documents the system command in StarlingX.
For a full description of usage and optional arguments for a specific system command, enter:
~(keystone_admin)]$ system help <command>
system usage¶
system [--version] [--debug] [-v] [-k] [--cert-file CERT_FILE]
[--key-file KEY_FILE] [--ca-file CA_FILE] [--timeout TIMEOUT]
[--os-username OS_USERNAME] [--os-password OS_PASSWORD]
[--os-tenant-id OS_TENANT_ID] [--os-tenant-name OS_TENANT_NAME]
[--os-auth-url OS_AUTH_URL] [--os-region-name OS_REGION_NAME]
[--os-auth-token OS_AUTH_TOKEN] [--system-url SYSTEM_URL]
[--system-api-version SYSTEM_API_VERSION]
[--os-service-type OS_SERVICE_TYPE]
[--os-endpoint-type OS_ENDPOINT_TYPE]
[--os-user-domain-id OS_USER_DOMAIN_ID]
[--os-user-domain-name OS_USER_DOMAIN_NAME]
[--os-project-id OS_PROJECT_ID]
[--os-project-name OS_PROJECT_NAME]
[--os-project-domain-id OS_PROJECT_DOMAIN_ID]
[--os-project-domain-name OS_PROJECT_DOMAIN_NAME]
<subcommand> ...
For a list of all system subcommands and options, enter:
system help
Subcommands¶
For a full description of usage and optional arguments for a specific system command, enter:
system help COMMAND
Certificate management¶
Certificate management commands allow you to install custom certificates for a variety of StarlingX use cases. For example:
StarlingX REST APIs and StarlingX Horizon web server.
StarlingX local Docker registry.
OpenStack REST APIs and OpenStack Horizon web server.
StarlingX trusted certificate authority(s).
certificate-installInstall certificate.
certificate-listList certificates.
certificate-showShow certificate details.
certificate-uninstallUninstall certificate; only applicable to trusted certificate authority(s).
Local Docker registry management¶
Local Docker registry management commands enable you to remove images and free disk resources consumed by the local Docker registry. This is required if the local Docker registry’s file system (docker-distribution) becomes full.
registry-garbage-collectRun the registry garbage collector.
This frees up the space on the file system used by deleted images. In rare cases, the system may trigger a swact in the small time window when garbage-collect is running. This may cause the registry to get stuck in read-only mode. If this occurs, run garbage-collect again to take the registry out of read-only mode.
Note
The registry-garbage-collect command executes background tasks that may affect access to the docker registry. It is recommended to wait a few minutes before executing other registry related commands.
registry-image-deleteRemove the specified Docker image from the local registry.
The image should be specified in the form name:tag. This command only removes the image from the local Docker registry. It does not free space on the file system.
Note
Any stx-openstack images in a system with stx-openstack applied should not be deleted. If space is needed, you can delete the older tags of stx-openstack images, but do not delete the most recent one. Deleting both the registry stx-openstack images and the one from the Docker cache will prevent failed pods from recovering. If this happens, manually download the deleted images from the same source as application-apply and push it to the local registry under the same name and tag.
registry-image-listList all images in local docker registry.
registry-image-tagsList all tags for a Docker image from the local registry.
Host/controller file system configuration¶
Host/controller file system configuration commands manage file systems on hosts. These commands primarily support the ability to resize the file systems.
Use host-fs-* commands to manage un-synchronized file systems on controller and worker nodes.
Use controllerfs-* commands to manage DRBD-synchronized file systems on controller nodes.
host-fs-addAdd an optional host file system; e.g. image-conversion file system.
host-fs-deleteDelete an optional host file system; e.g. image-conversion file system.
host-fs-listShow list of host file systems.
host-fs-modifyModify the size of a file system.
host-fs-showShow details of a host file system.
controllerfs-listShow list of controller file systems.
controllerfs-modifyModify controller file system sizes.
controllerfs-showShow details of a controller file system.
drbdsync-modifyModify DRBD sync rate parameters.
drbdsync-showShow DRBD sync config details.
System configuration¶
The following set of commands enable configuration of:
Basic system attributes
OAM IP address(es), subnet, and gateway
Remote DNS servers for StarlingX hosts
Time synchronization protocols, for example: NTP and/or PTP
modifyModify system attributes.
showShow system attributes.
dns-modifyModify DNS attributes.
dns-showShow DNS (Domain Name Server) attributes.
ntp-modifyModify NTP attributes.
ntp-showShow NTP (Network Time Protocol) attributes.
ptp-applyApply modified PTP attributes to hosts.
ptp-modifyModify PTP attributes.
ptp-showShow PTP (Precision Time Protocol) attributes.
oam-modifyModify external OAM attributes.
oam-showShow external OAM attributes.
System configuration service-parameter¶
Service parameters provide a generic mechanism to configure a variety of configurable parameters in StarlingX, including:
HTTP and HTTPS ports
StarlingX Horizon authentication lockout parameters
StarlingX Keystone token expiration
StarlingX host management parameters such as heartbeat intervals and host boot timeouts
service-parameter-addAdd service parameter.
service-parameter-applyApply the service parameters.
service-parameter-deleteDelete a service parameter.
service-parameter-listList service parameters.
service-parameter-modifyModify service parameter attributes.
service-parameter-showShow service parameter.
Host IPMI configuration and management¶
The host-sensor* commands provide the ability to:
Display the sensors collected from hosts over IPMI.
Define thresholds.
Configure behavior when thresholds are crossed (for example ignore, log, or reset).
host-sensor-listList sensors.
host-sensor-modifyModify a sensor.
host-sensor-showShow host sensor details.
host-sensorgroup-listList sensor groups.
host-sensorgroup-modifyModify sensor group of a host.
host-sensorgroup-relearnRelearn sensor model.
host-sensorgroup-showShow host sensor group attributes.
Application management¶
StarlingX provides an application package management based on FluxCD and Kubernetes Helm. The StarlingX application management provides:
System Helm overrides to automatically apply StarlingX applications according to the particular StarlingX configuration currently running.
Management for user specified Helm overrides.
helm-chart-attribute-modifyModify Helm chart attributes.
helm-override-deleteDelete overrides for a chart.
helm-override-listList system Helm charts.
helm-override-showShow overrides for chart.
helm-override-updateUpdate Helm chart user overrides.
application-abortAbort the current application operation.
application-applyApply/reapply the application manifest.
application-deleteRemove the uninstalled application from the system.
application-listList all containerized applications.
application-removeUninstall the application.
application-showShow application details.
application-updateUpdate the deployed application to a different version.
application-uploadUpload application Helm chart(s) and manifest.
SNMP configuration¶
StarlingX supports SNMPv2c and SNMPv3, but it is now configured using Helm charts.
For more information, see StarlingX Fault Management: SNMP overview.
Host configuration¶
Host commands manage the general configuration of a StarlingX host. This includes assignment of CPU cores to platform or hosted applications, the configuration of amount and size for memory huge pages, and the configuration of Kubernetes node labels.
host-listList hosts.
host-showShow host attributes.
host-addAdd a new host.
host-bulk-addAdd multiple new hosts.
host-bulk-exportExport host bulk configurations.
host-cpu-listList CPU cores.
host-cpu-modifyModify CPU core assignments.
host-cpu-showShow CPU core attributes.
host-memory-listList memory nodes.
host-memory-modifyModify platform reserved and/or application huge page memory attributes for worker nodes.
host-memory-showShow memory attributes.
host-label-assignUpdate the Kubernetes labels on a host.
host-label-listList Kubernetes labels assigned to a host.
host-label-removeRemove Kubernetes label(s) from a host
host-deleteDelete a host.
Host operational commands¶
The following set of commands provides operational host commands, including taking a host in and out of service (lock/unlock), resetting a host, rebooting a host, and powering a host on and off.
host-lockLock a host.
host-unlockUnlock a host.
host-swactSwitch activity away from this active host.
host-power-offPower off a host.
host-power-onPower on a host.
host-rebootReboot a host.
host-resetReset a host.
host-reinstallReinstall a host.
Host interface configuration¶
The following set of commands manages the display and configuration of host interfaces.
host-ethernet-port-listList host Ethernet ports.
host-ethernet-port-showShow host Ethernet port attributes.
host-port-listList host ports. Displays the L1 host ports and their attributes.
host-port-showShow host port details. Displays the L1 host ports and their attributes.
host-if-addAdd an interface. Adds L2 host interfaces (Ethernet, VLAN, and LAG type L2 host interfaces).
host-if-deleteDelete an interface. Deletes L2 host interfaces (Ethernet, VLAN, and LAG type L2 host interfaces).
host-if-listList interfaces. Displays L2 host interfaces (Ethernet, VLAN, and LAG type L2 host interfaces).
host-if-modifyModify interface attributes. Modifies L2 host interfaces (Ethernet, VLAN, and LAG type L2 host interfaces).
host-if-showShow interface attributes. Displays L2 host interfaces (Ethernet, VLAN, and LAG type L2 host interfaces).
Host platform L2 network, IP addressing, and routing¶
The following set of commands defines types of L2 platform networks, assignment of L2 platform networks to interfaces, and configuration of L3 IP interfaces and routing.
network-addAdd a network.
network-deleteDelete a network.
network-listList IP networks on host.
network-showShow IP network details.
host-addr-addAdd an IP address.
host-addr-deleteDelete an IP address.
host-addr-listList IP addresses on host.
host-addr-showShow IP address attributes.
addrpool-addAdd an IP address pool.
addrpool-deleteDelete an IP address pool.
addrpool-listList IP address pools.
addrpool-modifyModify interface attributes.
addrpool-showShow IP address pool attributes.
host-route-addAdd an IP route.
host-route-deleteDelete an IP route.
host-route-listList IP routes on host.
host-route-showShow IP route attributes.
interface-network-assignAssign a network to an interface.
interface-network-listList network interfaces.
interface-network-removeRemove an assigned network from an interface.
interface-network-showShow interface network details.
Host data networks¶
The following set of commands defines types of L2 data networks and assignment of L2 data networks to interfaces. Data networks represent the underlying L2 networks for Kubernetes SRIOV/PCIPASSTHROUGH network attachments or OpenStack tenant networks.
datanetwork-addAdd a data network.
datanetwork-deleteDelete a data network.
datanetwork-listList data networks.
datanetwork-modifyModify a data network.
datanetwork-showShow data network details.
interface-datanetwork-assignAssign a data network to an interface.
interface-datanetwork-listList data network interfaces.
interface-datanetwork-removeRemove an assigned data network from an interface.
interface-datanetwork-showShow interface data network details.
Host disk configuration¶
The following set of commands enables the display and configuration of host disks, volume groups, and disk partitions.
host-disk-listList disks.
host-disk-showShow disk attributes.
host-disk-wipeWipe disk and GPT format it.
host-lvg-addAdd a local volume group.
host-lvg-deleteDelete a local volume group.
host-lvg-listList local volume groups.
host-lvg-modifyModify the attributes of a local volume group.
host-lvg-showShow local volume group attributes.
host-pv-addAdd a physical volume.
host-pv-deleteDelete a physical volume.
host-pv-listList physical volumes.
host-pv-showShow physical volume attributes.
host-disk-partition-addAdd a disk partition to a disk of a specified host.
host-disk-partition-deleteDelete a disk partition.
host-disk-partition-listList disk partitions.
host-disk-partition-modifyModify the attributes of a disk partition.
host-disk-partition-showShow disk partition attributes.
Ceph configuration¶
The following set of commands is used to configure and manage Ceph OSDs, Ceph tiers, and Ceph storage cluster backends.
ceph-mon-addAdd a ceph monitor to a specific host.
ceph-mon-deleteDelete a ceph monitor from a specific host.
ceph-mon-listList Ceph mons.
ceph-mon-modifyModify parameters of a ceph monitor on a specific host.
ceph-mon-showShow ceph_mon of a specific host.
cluster-listList ceph clusters.
cluster-showShow ceph cluster attributes.
host-stor-addAdd a ceph storage disk (i.e. journal or OSD) to a host.
host-stor-deleteDelete a ceph storage disk (i.e. journal or OSD) from a host.
host-stor-listList ceph storage disks (i.e. journal or OSD) of a host.
host-stor-showShow attributes of a ceph storage disk (i.e. journal or OSD) on a host.
host-stor-updateModify ceph journal or OSD attributes.
storage-backend-addAdd a storage backend.
storage-backend-deleteDelete a storage backend.
storage-backend-listList storage backends.
storage-backend-modifyModify a storage backend.
storage-backend-showShow a storage backend.
storage-tier-addAdd a storage tier to a disk of a specified cluster.
storage-tier-deleteDelete a storage tier.
storage-tier-listList storage tiers.
storage-tier-modifyModify the attributes of a storage tier.
storage-tier-showShow storage tier attributes.
Host PCI device management¶
The following set of commands provides host PCI device management (not including NICs).
host-device-listList devices.
host-device-modifyModify device availability for worker nodes.
host-device-showShow device attributes.
Host LLDP operational commands¶
The following set of commands displays neighbor information learned from the Link Layer Discovery Protocol (LLDP), which runs on all host interfaces.
host-lldp-agent-listList host LLDP agents.
lldp-agent-showShow LLDP agent attributes.
host-lldp-neighbor-listList host LLDP neighbors.
lldp-neighbor-showShow LLDP neighbor attributes.
Controller services management¶
The following set of commands enables display of services running on the StarlingX controllers. Optional services can be enabled or disabled using these commands.
servicenode-listList service nodes.
servicenode-showShow a service node’s attributes.
servicegroup-listList service groups.
servicegroup-showShow a service group.
service-disableDisable optional service
service-enableEnable optional service
service-listList services.
service-showShow a service.
Unsupported commands¶
Important
The following commands are no longer supported.
remotelogging-modifyModify remote logging attributes.
remotelogging-showShow remote logging attributes.
sdn-controller-addAdd an SDN controller.
sdn-controller-deleteDelete an SDN controller.
sdn-controller-listList all SDN controllers.
sdn-controller-modifyModify SDN controller attributes.
sdn-controller-showShow SDN controller details and attributes.
Licensing commands¶
Important
The following commands are not supported upstream.
license-installInstall license file.
license-showShow license file content.
Software upgrade commands¶
Important
The following commands are not yet supported.
host-downgradePerform software downgrade for the specified host.
host-patch-rebootCommand has been deprecated.
host-updateUpdate host attributes.
host-upgradePerform software upgrade for a host.
host-upgrade-listList software upgrade info for hosts.
load-deleteDelete a load.
load-importImport a load.
load-listList all loads.
load-showShow load attributes.
upgrade-abortAbort a software upgrade.
upgrade-abort-completeComplete a software upgrade.
upgrade-activateActivate a software upgrade.
upgrade-completeComplete a software upgrade.
upgrade-showShow software upgrade details and attributes.
upgrade-startStart a software upgrade.
health-queryRun the health check.
health-query-upgradeRun the health check for an upgrade.
Host FPGA Configuration - Intel N3000¶
The following set of commands allow you to update the Intel N3000 FPGA PAC user image on StarlingX hosts.
For more information, see N3000 FPGA Overview.
host-device-image-updateUpdate device image on a host.
host-device-image-update-abortAbort device image update on a host.
device-image-applyApply the device image.
device-image-deleteDelete a device image.
device-image-listList device images.
device-image-removeRemove the device image.
device-image-showShow device image details.
device-image-uploadUpload a device image.
device-image-state-listList image to device mapping with status.
device-label-listList all device labels.
host-device-label-assignAssign a label to a device of a host.
host-device-label-listList device labels.
host-device-label-removeRemove a device label from a device of a host.
Kubernetes version upgrade¶
The following set of commands allow you to upgrade the version of Kubernetes. For more information, see Manual Kubernetes Version Upgrade.
kube-host-upgradePerform Kubernetes upgrade for a host.
kube-host-upgrade-listList Kubernetes upgrade info for hosts.
health-query-kube-upgradeRun the health check for a Kubernetes upgrade.
host-label-listList Kubernetes labels assigned to a host.
kube-cluster-listList all Kubernetes clusters.
kube-cluster-showShow Kubernetes cluster details.
kube-version-listList all Kubernetes versions.
kube-version-showShow Kubernetes version details.
kube-upgrade-completeComplete a Kubernetes upgrade.
kube-upgrade-deleteDelete a Kubernetes upgrade.
kube-upgrade-download-imagesDownload Kubernetes images.
kube-upgrade-networkingUpgrade Kubernetes networking.
kube-upgrade-showShow Kubernetes upgrade details and attributes.