Documentation related to Akash Network upgrade to version 0.24.0
:
Upgrade Details
- Upgrade Height:
12606074
- Upgrade Timer
Akash v0.24.0 Node Upgrade Guide
Network Upgrade Schedule
Countdown to network upgrade is listed below.
Upgrade Details
Akash Network v0.24.0
Akash Mainnet
- Upgrade Height:
12606074
- Upgrade Timer
Upgrade Guidelines
Update Go
Go toolchain 1.21.0
is required. For more information, see Go.
Common Steps for All Upgrade Options
In the sections that follow both Cosmovisor
and non-Cosmovisor
upgrade paths are provided. Prior to detailing specifics steps for these upgrade paths, in this section we cover steps required regardless of upgrade path chosen.
NOTE - The following steps are not required if the auto-download option is enabled for Cosmovisor.
Either download the Akash binary (v0.24.0) or build it from source. We highly recommend using a pre-complied binary but provide instructions to build from source here in the rare event it would be necessary.
Option 1: Upgrade Using Cosmovisor
The following instructions assume the akash
and cosmovisor
binaries are already installed and cosmovisor is set up as a systemd service.
The section that follows will detail the install/configuration of Cosmovisor. If additional details are necessary, visit Start a node with Cosmovisor for instructions on how to install and set up the binaries.
NOTE - Cosmovisor 1.0 is required
Configure Cosmovisor
Note: The following steps are not required if Cosmovisor v1.0 is already installed and configured to your preferred settings.
To install cosmovisor
by running the following command:
Check to ensure the installation was successful:
Update cosmovisor
systemd service file and make sure the environment variables are set to the appropriate values (the following example includes the recommended settings).
- NOTE - It is preferable if you start your service under a dedicated non-system user other than root.
- NOTE -
DAEMON_SHUTDOWN_GRACE
(optional, default none), if set, send interrupt to binary and wait the specified time to allow for cleanup/cache flush to disk before sending the kill signal. The value must be a duration (e.g. 1s).
Cosmovisor can be configured to automatically download upgrade binaries. It is recommended that validators do not use the auto-download option and that the upgrade binary is compiled and placed manually.
If you would like to enable the auto-download option, update the following environment variable in the systemd configuration file:
Cosmovisor will automatically create a backup of the data directory at the time of the upgrade and before the migration.
If you would like to disable the auto-backup, update the following environment variable in the systemd configuration file:
Move the file to the systemd directory:
Restart cosmovisor
to ensure the environment variables have been updated:
Check the status of the cosmovisor
service:
Enable cosmovisor
to start automatically when the machine reboots:
Prepare Upgrade Binary
Skip this section if you have enabled DAEMON_ALLOW_DOWNLOAD_BINARIES cosmovisor parameter. It will automatically create the correct path and download the binary based on the plan info from the govt proposal.
Create the folder for the upgrade binary (v0.24.0) - cloned in this step - and copy the akash binary into the folder.
This next step assumes that the akash binary was built from source and stored in the current (i.e., akash) directory:
At the proposed block height, cosmovisor
will automatically stop the current binary (v0.20.X), set the upgrade binary as the new current binary (v0.24.0), and then restart the node.\
Option 2: Upgrade Without Cosmovisor
Using Cosmovisor to perform the upgrade is not mandatory.
Node operators also have the option to manually update the akash
binary at the time of the upgrade. Doing it before the upgrade height will stop the node.
When the chain halts at the proposed upgrade height, stop the current process running akash
.
Either download the Akash upgrade binary (v0.24.0) or build from source - completed in this step - and ensure the akash
binary has been updated:
Update configuration with
Restart the process running akash
.
Appendix
Build Binary From Source
NOTE - we highly recommend downloading a complied Akash binary over building the binary from source
Akash v0.26.1 Node Upgrade Guide
Network Upgrade Schedule
Countdown to network upgrade is listed below.
Upgrade Details
Akash Network v0.26.1
Akash Mainnet
- Upgrade Height:
12992204
- Upgrade Timer
Upgrade Guidelines
Update Go
Go toolchain 1.21.0
is required. For more information, see Go.
Common Steps for All Upgrade Options
In the sections that follow both Cosmovisor
and non-Cosmovisor
upgrade paths are provided. Prior to detailing specifics steps for these upgrade paths, in this section we cover steps required regardless of upgrade path chosen.
NOTE - The following steps are not required if the auto-download option is enabled for Cosmovisor.
Either download the Akash binary (v0.26.1) or build it from source. We highly recommend using a pre-complied binary but provide instructions to build from source here in the rare event it would be necessary.
Option 1: Upgrade Using Cosmovisor
The following instructions assume the akash
and cosmovisor
binaries are already installed and cosmovisor is set up as a systemd service.
The section that follows will detail the install/configuration of Cosmovisor. If additional details are necessary, visit Start a node with Cosmovisor for instructions on how to install and set up the binaries.
NOTE - Cosmovisor 1.0 is required
Configure Cosmovisor
Note: The following steps are not required if Cosmovisor v1.0 is already installed and configured to your preferred settings.
To install cosmovisor
by running the following command:
Check to ensure the installation was successful:
Update cosmovisor
systemd service file and make sure the environment variables are set to the appropriate values (the following example includes the recommended settings).
- NOTE - It is preferable if you start your service under a dedicated non-system user other than root.
- NOTE -
DAEMON_SHUTDOWN_GRACE
(optional, default none), if set, send interrupt to binary and wait the specified time to allow for cleanup/cache flush to disk before sending the kill signal. The value must be a duration (e.g. 1s).
Cosmovisor can be configured to automatically download upgrade binaries. It is recommended that validators do not use the auto-download option and that the upgrade binary is compiled and placed manually.
If you would like to enable the auto-download option, update the following environment variable in the systemd configuration file:
Cosmovisor will automatically create a backup of the data directory at the time of the upgrade and before the migration.
If you would like to disable the auto-backup, update the following environment variable in the systemd configuration file:
Move the file to the systemd directory:
Restart cosmovisor
to ensure the environment variables have been updated:
Check the status of the cosmovisor
service:
Enable cosmovisor
to start automatically when the machine reboots:
Prepare Upgrade Binary
Skip this section if you have enabled DAEMON_ALLOW_DOWNLOAD_BINARIES cosmovisor parameter. It will automatically create the correct path and download the binary based on the plan info from the govt proposal.
Create the folder for the upgrade binary (v0.26.1) - cloned in this step - and copy the akash binary into the folder.
This next step assumes that the akash binary was built from source and stored in the current (i.e., akash) directory:
At the proposed block height, cosmovisor
will automatically stop the current binary (v0.24.X), set the upgrade binary as the new current binary (v0.26.1), and then restart the node.\
Option 2: Upgrade Without Cosmovisor
Using Cosmovisor to perform the upgrade is not mandatory.
Node operators also have the option to manually update the akash
binary at the time of the upgrade. Doing it before the upgrade height will stop the node.
When the chain halts at the proposed upgrade height, stop the current process running akash
.
Either download the Akash upgrade binary (v0.26.1) or build from source - completed in this step - and ensure the akash
binary has been updated:
Update configuration with
Restart the process running akash
.
Appendix
Build Binary From Source
NOTE - we highly recommend downloading a complied Akash binary over building the binary from source
Mainnet6 Provider Upgrade Procedure
Overview
This is a comprehensive guide that covers the steps necessary to upgrade from Mainnet5 to Mainnet6 of Akash Network and Akash Provider components in a Kubernetes cluster.
Provider Components to be Upgraded
provider-services
is the main binary of theakash-provider
,akash-hostname-operator
,akash-inventory-operator
, andakash-ip-operator
helm chartsakash
is the main binary of theakash-node
helm chart
Mainnet5 Versions
provider-services
:0.2.1
node
:0.20.0
/0.22.0
(akash network0.20.0
)
Mainnet6 Versions
provider-services
:0.4.6
node
:0.24.0
(akash network0.24.0
)
Prerequisites
- ENSURE TO EXAMINE ENTIRE GUIDE PRIOR DOING ANYTHING
- Ensure Helm installed and configured
- Ensure
kubectl
is installed - Ensure
kubectl
is configured to access your provider(s) cluster(s) - Provider key imported on your local machine
- Environment is configured:
AKASH_NODE
is set to your preferable RPC nodeAKASH_CHAIN_ID=akashnet-2
- Install provider-services
v0.4.6
on your local machine
Upgrade Procedure
IMPORTANT! Seek help if you encounter an issue at any step or have doubts! Please seek the support in the #providers
Akash Network Devs Discord room here.
STEP 1 - Scale down to 0 replicas the akash-provider
This step is crucial to prevent unexpected behavior during the upgrade.
NOTE: The Akash Deployments will continue to run as usual while
akash-provider
service is stopped. The only impact is that users won’t be able to performlease-<shell|events|logs>
against their deployments nor deploy/update or terminate them.
STEP 2 - Akash Provider Migration
NOTE - the migration procedure covered in this step is only necessary if your provider has active leases which need to be migrated for Mainnet6 provider use. If you provider has no active leases - proeed directly to Step 3.
NOTE - when the dry run migration step (2.1) is run the command should output text stating “loaded CRDs” and “loaded active leases for provider”. If blank output is received instead this indicates that no active leases were found for your provider. If the provider does in fact have active leases - please check the RPC node used for possible issue.
2.1. Get the new provider-services binary file, which supports the migration
The link to the binary files in case if you have other than x86_64 (amd64) architecture https://github.com/akash-network/provider/releases/tag/v0.4.6
To install provider-services
v0.4.6
follow this doc
Verify you have installed the provider-services
properly:
Expected output:
2.2. Dry-run Provider Migration
IMPORTANT: If the following commands returns any error, please seek the support in the #providers Akash Network Devs Discord room here!
NOTE:
--crd-dry-run=true
by default
NOTE - for the
from
switch used in the command sets, issueprovider-services keys list
if unsure what the key name should be
NOTE - in the command syntax we include the
--kubeconfig
switch. The default location checked forkubeconfig
is/<home-directory>/.kube/config
The explicit switch can be removed ifkubeconfig
exists in the default directory.
2.3. If Previous Step Succeeded - Run Actual Migration
NOTE - Dry-run step above make backup of existing CRDs, you’ll be prompted to replace it, press y and hit Enter
STEP 3 - Upgrade the Helm Charts
Follow these steps to upgrade various Helm charts. Make sure you’ve backed up your existing Helm chart configurations.
Helm charts to be upgraded are: akash-node
(aka RPC node), akash-provider
, akash-hostname-operator
, akash-inventory-operator
, and akash-ip-operator
.
Do not upgrade the chart if you did not have it installed previously!
In this step you’ll be saving the current akash-node
, akash-provider
, akash-ip-operator
chart configs as files named akash-node-values.yml,
akash-provider-values.yml
, akash-ip-operator-values.yml
respectively.
We recommend switcingh into a new directory called mainnet6-chart-configs
where you will be saving them.
You can later move the chart config files to the directory of your choice (typically the one you originally configured & kept them at)
3.1. Upgrade the Repo
Verify you can see the correct chart/app versions:
3.2. akash-node Chart
Take the current akash-node
chart values:
Upgrade your akash-node
chart:
Prior to executing the Helm Upgrade command - inspect
akash-node-values.yml
forimage
tag and remove it if present.
3.3 akash-provider Chart
Take the current akash-provider
chart values:
Prior to executing the Helm Upgrade command - inspect
akash-provider-values.yml
forimage
tag and remove it if present.
IMPORTANT: Make sure your provider is using the latest bid price script! Here is the guide that tells you how you can set it for your akash-provider chart.
3.4 akash-hostname-operator Chart
3.5 akash-inventory-operator Chart
Skip this section if your provider does not provide persistent storage.
Note: This is not a typo, we are installing the inventory-operator without the akash- prefix.
3.6 akash-ip-operator Chart
Skip this section if your provider does not provide IP leasing.
Take the current akash-ip-operator chart values:
Prior to executing the Helm Upgrade command - inspect
akash-ip-operator-values.yml
forimage
tag and remove it if present.
STEP 4 - Verify the Charts Have Been Upgraded
Perform these checks to ensure the upgrade was successful.
Run this command to check the pods and their versions within the akash-services
namespace:
The charts upgrade went well, if you are seeing these images and versions:
- provider and operator image is:
ghcr.io/akash-network/provider:0.4.6
- node image is:
ghcr.io/akash-network/node:0.24.0
Example Result: