@tonbo/cli 0.11.0 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/tonbo.js +5 -2
- package/package.json +1 -1
package/dist/bin/tonbo.js
CHANGED
|
@@ -3507,6 +3507,7 @@ var MACHINE_WAKE_BLOCKED_HINTS = {
|
|
|
3507
3507
|
capacity: "No host had room for its shape; the next request tries again.",
|
|
3508
3508
|
region_closed: "Machines are closed in its region for now; the next request after they reopen wakes it."
|
|
3509
3509
|
};
|
|
3510
|
+
var MACHINE_ACCOUNT_EGRESS_BLOCKED_HINT = "If this is the free egress cap: 10 GiB a month without purchased credit; buy credit at <billing> to lift it.";
|
|
3510
3511
|
function conditionText(name, condition, billing) {
|
|
3511
3512
|
switch (condition.type) {
|
|
3512
3513
|
case "wake_blocked": {
|
|
@@ -3518,8 +3519,10 @@ function conditionText(name, condition, billing) {
|
|
|
3518
3519
|
return `still creating since ${condition.since}, longer than usual; Tonbo's operators are alerted, and creation goes on until it is active or failed.`;
|
|
3519
3520
|
case "node_unreachable":
|
|
3520
3521
|
return `its host is unreachable since ${condition.since}`;
|
|
3521
|
-
case "egress_blocked":
|
|
3522
|
-
|
|
3522
|
+
case "egress_blocked": {
|
|
3523
|
+
const blocked = `outbound access blocked for the ${condition.scope} since ${condition.since}${condition.until ? ` until ${condition.until}` : ""}`;
|
|
3524
|
+
return condition.scope === "account" && condition.until ? `${blocked}. ${MACHINE_ACCOUNT_EGRESS_BLOCKED_HINT.replaceAll("<billing>", billing)}` : blocked;
|
|
3525
|
+
}
|
|
3523
3526
|
case "volume_purged":
|
|
3524
3527
|
return `its Volume ${condition.volume} was purged (${condition.reason.replaceAll("_", " ")}) since ${condition.since}; its data is gone and it boots without it. Bind another with \`tonbo machine update ${name} --volume <volume>:<path>\`, or none with \`--no-volume\`.`;
|
|
3525
3528
|
default:
|