Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upstream Updates - Mon Oct 21 00:14:35 UTC 2024 #898

Closed
github-actions bot opened this issue Oct 21, 2024 · 0 comments
Closed

Upstream Updates - Mon Oct 21 00:14:35 UTC 2024 #898

github-actions bot opened this issue Oct 21, 2024 · 0 comments
Assignees
Labels
AUTO: Upstream Updates Auto-generated from tracking upstream repos

Comments

@github-actions
Copy link
Contributor

SIMD

Opened

Closed

Agave Wiki

4fbc2a6a9c8db85870d78d612aaa9ca7d72966af^..14151a72a71438adbd0dc6c9987fdf8a3c70155c

diff --git a/2024-10-09-Testnet-Rollback-and-Restart.md b/2024-10-09-Testnet-Rollback-and-Restart.md
index 3c8ee4d..d84e369 100644
--- a/2024-10-09-Testnet-Rollback-and-Restart.md
+++ b/2024-10-09-Testnet-Rollback-and-Restart.md
@@ -1,3 +1,10 @@
+## Edit
+As of 2024-10-14 22:51 UTC testnet is back online. The instructions below are no longer relevant, but you will need to update your shred version and start normally:
+
+    --expected-shred-version 10323 n+
+***
+
 This testnet restart is NOT urgent. Follow these instructions when you have time, but don’t skip sleep or disrupt other plans for this.
 
 ## Summary
@@ -41,8 +48,10 @@ This command creates a snapshot but removes the activated v2.0 feature gate acco
     --  296876255 <snapshot-path>
 
 The output should include this at (or near) the end:
+```
     Successfully created snapshot for slot 296876256, hash Ea1SMrWMbGnCiYV7cAZP3gWTeFeu5UkEBb7oDp8VKaLr: /home/sol/ledger-snapshots/incremental-snapshot-<BASE_SLOT>-296876256-<SNAPSHOT_HASH>.tar.zst
     Shred version: 10323
+```
 
 Note that each operator's snapshot file name may contain different base slot number and hash, but 
 * the bank hash should be Ea1SMrWMbGnCiYV7cAZP3gWTeFeu5UkEBb7oDp8VKaLr
diff --git a/2024-10-16-Testnet-Rollback-and-Restart.md b/2024-10-16-Testnet-Rollback-and-Restart.md
new file mode 100644
index 0000000..188f6b1
--- /dev/null
+++ b/2024-10-16-Testnet-Rollback-and-Restart.md
@@ -0,0 +1,119 @@
+## Edit
+As of 2024-10-18 20:07 UTC testnet is back online. The instructions below are no longer relevant. Nodes that haven't yet joined the cluster will need to update their shred version and start normally:
+
+    --expected-shred-version 27799 n+
+***
+This testnet restart is NOT urgent. Follow these instructions when you have time, but don’t skip sleep or disrupt other plans for this.
+
+## Summary
+In order to restart testnet on v1.18.26 we need to roll back 3 more feature gates that are not yet enabled on mainnet-beta.
+
+|Attribute|Value|
+|---------|-----|
+|Validator version|Agave: v1.18.26|
+|Snapshot slot|296877183|
+|Restart slot|296877184|
+|Shred version|27799|
+|Expected bank hash|ABuvd5grMYhbrjeLmu3qCNqiD8DaDRw6oyboMgZfaQS5|
+
+
+## Step 1. Stop validator process if you haven’t already
+
+## Step 2: Install Agave v1.18.26
+This is necessary in order to create the correct snapshot in step 3.
+
+Agave:  `agave-install init v1.18.26`
+
+Frankendancer: Please switch to Agave for this restart and the subsequent upgrade/downgrade cycle.
+
+## Step 3. Create snapshot
+This command creates a snapshot but removes 3 activated v1.18 feature gate accounts.
+
+    agave-ledger-tool --ledger <ledger-path> create-snapshot n+    --incremental n+    --snapshot-archive-path  <snapshot-path> n+    --hard-fork 296877183 n+    --deactivate-feature-gate n+    7uZBkJXJ1HkuP6R3MJfZs7mLwymBcDbKdqbF51ZWLier n+    tvcF6b1TRz353zKuhBjinZkKzjmihXmBAHJdjNYw1sQ n+    decoMktMcnmiq6t3u7g5BfgcQu91nKZr6RvMYf9z1Jb n+    --  296877183 <snapshot-path>
+
+
+The output should include this at (or near) the end:
+```
+    Successfully created snapshot for slot 296877184, hash ABuvd5grMYhbrjeLmu3qCNqiD8DaDRw6oyboMgZfaQS5: /home/sol/ledger-snapshots/incremental-snapshot-<BASE_SLOT>-296877184-<SNAPSHOT_HASH>.tar.zst
+    Shred version: 27799
+```
+
+Note that each operator's snapshot file name may contain different base slot number and hash, but 
+* the bank hash should be ABuvd5grMYhbrjeLmu3qCNqiD8DaDRw6oyboMgZfaQS5
+* the second slot number should be 296877184
+* the shred version should be 27799
+
+Once you have created a snapshot move all the other snapshots to a backup directory, so your snapshot directory contains one full snapshot and one incremental snapshot. Note that the <BASE_SLOT> in these two filenames should match.
+
+    snapshot-<BASE_SLOT>-<BASE_SNAPSHOT_HASH>.tar.zst
+    incremental-snapshot-<BASE_SLOT>-296877184-<SNAPSHOT_HASH>.tar.zst
+
+If you fail to create a snapshot see the appendix for possible fixes.
+
+## Step 4: Update startup config and start your validator
+### Agave
+Add these arguments to your validator startup script:
+
+    --wait-for-supermajority 296877184 n+    --expected-shred-version 27799 n+    --expected-bank-hash ABuvd5grMYhbrjeLmu3qCNqiD8DaDRw6oyboMgZfaQS5 n+
+
+As it starts, the validator will load the snapshot for slot `296877184` and wait for 80% of the stake to come online before producing/validating new blocks. 
+
+To confirm your restarted validator is correctly waiting for 80% stake, look for this periodic log message to confirm it is waiting:
+
+    INFO  solana_core::validator] Waiting for 80% of activated stake at slot 296877184 to be in gossip...
+
+And if you have RPC enabled, ask it for the current slot:
+
+    solana --url http://127.0.0.1:8899 slot
+
+Any number other than `296877184` means you did not complete the steps correctly.
+
+Once started you should see log entries for “active stake” visible in gossip and “waiting for 80% of stake” to be visible. You can track these to see how the stake progresses.
+
+
+***
+
+## Appendix (use this only if step 3 failed)
+
+If you get an error like this:
+
+    Error: Slot 296877183 is not available
+
+Or this:
+
+    Unable to process blockstore from starting slot <slot> to 296877183; the ending slot is less than the starting slot. The starting slot will be the latest snapshot slot, or genesis if the --no-snapshot flag is specified or if no snapshots are found.
+
+Your snapshots directory contains a snapshot that is for a slot `>296877183`. If you also have a snapshot for slot `<=296877183` then move snapshots for slots `>296877183` to a backup directory and run the `agave-ledger-tool` command again. If you do not have a snapshot for slot `<=296877183` then you will need to download a snapshot
+
+If you successfully created a snapshot, resume the instructions above starting at Step 4. If you are unable to create a snapshot, follow the instructions below on downloading a snapshot.
+
+If you couldn’t produce your snapshot locally follow these appendix steps
+
+### Step 1: Download a snapshot from a known validator
+
+If you are unable to generate a snapshot locally for slot `296877184` you will need to download one from a known validator. Add these lines to your startup script.
+
+    --known-validator 5D1fNXzvv5NjV1ysLjirC4WY92RNsVH18vjmcszZd8on n+    --expected-shred-version 27799 n+
+Remove the flag `--no-snapshot-fetch` in your startup script if it is present.
+
+### Step 2: After download, restart
+
+Verify that you have a new snapshot in your snapshot directory.  If the snapshot is done downloading, stop your validator process.
+
+Add the flag `--no-snapshot-fetch` to your startup script
+
+Resume the instructions above starting at Step 4.
diff --git a/Feature-Gate-Tracker-Schedule.md b/Feature-Gate-Tracker-Schedule.md
index 052a981..e52956e 100644
--- a/Feature-Gate-Tracker-Schedule.md
+++ b/Feature-Gate-Tracker-Schedule.md
@@ -29,6 +29,8 @@ The version floor is the current minimum supported software version for a cluste
 ### Pending Testnet Activation
 | Key | Version | Testnet | Devnet | Description | Owner |
 |-----|---------|---------|--------|-------------|-------|
+| CLCoTADvV64PSrnR6QXty6Fwrt9Xc6EdxSJE4wLRePjq | v2.0.0 |  |  | SIMD0127: sol_get_sysvar | 2501babe |
+| 4eohviozzEeivk1y9UbrnekbAFMDQyJz5JjA9Y6gyvky | v2.0.7 |  |  | Feature Gate: Programify Feature Gate | buffalojoec |
 |  |  |  |  | Pause activations during testnet v2.0 migration testing |  |
 | ed9tNscbWLYBooxWA7FE2B5KHWs8A6sxfY8EzezEcoo | v2.0.4 |  |  | Use verify_strict for signature verification in ed25519 precompile | samkim-crypto |
 | PERzQrt5gBD1XEe2c9XdFWqwgHY3mr7cYWbm5V772V8 | v2.0.9 |  |  | Partitioned Epoch Rewards with snapshot fix | CriesofCarrots, willhickey |
diff --git a/_Sidebar.md b/_Sidebar.md
index 2c795e5..13a895e 100644
--- a/_Sidebar.md
+++ b/_Sidebar.md
@@ -24,4 +24,5 @@
   * [2024-01-02 Testnet Restart](2024‐01‐02-Testnet-Rollback-and-Restart)
   * [2024-08-26 Testnet Restart](2024-08-26-Testnet-Restart)
   * [2024-10-09 Testnet Restart](2024-10-09-Testnet-Rollback-and-Restart)
+  * [2024-10-16 Testnet Restart](2024-10-16-Testnet-Rollback-and-Restart)
   
 No newline at end of file 
@github-actions github-actions bot added the AUTO: Upstream Updates Auto-generated from tracking upstream repos label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AUTO: Upstream Updates Auto-generated from tracking upstream repos
Projects
None yet
Development

No branches or pull requests

1 participant