Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Cancelling a rollback and trying it again fails

オープン
#4,232 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
ruby
領域
api, backend

調査の方向性

cf rollback --strategy canary、cf cancel-deployment、cf revisions を使ってシーケンスを再現し、その後 rollback を再試行して失敗を確認します。Cloud Controller における cancellation と rollback の処理を追跡し、canary と rolling の両方の戦略で、キャンセルされた rollback を再度正常に試行できるようになった時点で issue 完了とします。

索引モデルが issue の本文から書いたものです。

説明

Hey
I was working on a scenario where I was doing the following steps but I am getting an error from CAPI.

  1. push an app
  2. restage it to create a new revision
  3. Execute cf revisions test-dora and get the output
Getting revisions for app test-dora in org test / space test as admin...

revision       description                                        deployable   revision guid                          created at
10(deployed)   New droplet deployed.                              true         7e2f381b-f8d3-49a7-a81a-faedaed348c1   2025-02-21T18:45:16Z
9              New droplet deployed. Rolled back to revision 1.   true         1df6188f-518b-4237-adea-8018ddd4bd58   2025-02-20T18:08:17Z
8              New droplet deployed.                              true         208c4716-38bd-4935-b7a2-23e3a10cf5a8   2025-02-20T18:05:51Z
7              New droplet deployed. Rolled back to revision 1.   true         580a624d-b2b2-47d1-b2dc-bd7b38d91d67   2025-02-20T17:35:46Z
6              New droplet deployed.                              true         a8bba232-9e64-4a2b-9d1a-57610e215c38   2025-02-20T17:19:00Z
5              New droplet deployed. Rolled back to revision 1.   true         acf05ec4-0a26-4569-9570-5fc653793e68   2025-02-20T17:13:05Z
4              New droplet deployed.                              true         b719c3f8-8a91-42e2-a5af-ceed6a045be6   2025-02-20T17:11:38Z
3              New droplet deployed. Rolled back to revision 1.   true         a9d3d8e3-808b-40a6-8249-666eb2eade27   2025-02-19T18:59:04Z
2              New droplet deployed.                              true         617a33e0-2245-4c99-a722-de447094feea   2025-02-19T18:57:13Z
1              Initial revision.                                  true         edbe120e-d62e-43f9-aa64-30f9ce278b68   2025-02-19T18:52:35Z
  1. do cf rollback --strategy canary dora -v 1
  2. execute cf revisions test-dora with the output
Getting revisions for app test-dora in org test / space test as admin...

Info: this app is in the middle of a rolling deployment. More than one revision is deployed.

Info: this app is in the middle of a deployment. More than one revision is deployed.

revision       description                                        deployable   revision guid                          created at
11(deployed)   New droplet deployed. Rolled back to revision 1.   true         73facf40-ea02-4d75-9cbe-7bfed584838f   2025-02-21T18:46:30Z
10(deployed)   New droplet deployed.                              true         7e2f381b-f8d3-49a7-a81a-faedaed348c1   2025-02-21T18:45:16Z
9              New droplet deployed. Rolled back to revision 1.   true         1df6188f-518b-4237-adea-8018ddd4bd58   2025-02-20T18:08:17Z
8              New droplet deployed.                              true         208c4716-38bd-4935-b7a2-23e3a10cf5a8   2025-02-20T18:05:51Z
7              New droplet deployed. Rolled back to revision 1.   true         580a624d-b2b2-47d1-b2dc-bd7b38d91d67   2025-02-20T17:35:46Z
6              New droplet deployed.                              true         a8bba232-9e64-4a2b-9d1a-57610e215c38   2025-02-20T17:19:00Z
5              New droplet deployed. Rolled back to revision 1.   true         acf05ec4-0a26-4569-9570-5fc653793e68   2025-02-20T17:13:05Z
4              New droplet deployed.                              true         b719c3f8-8a91-42e2-a5af-ceed6a045be6   2025-02-20T17:11:38Z
3              New droplet deployed. Rolled back to revision 1.   true         a9d3d8e3-808b-40a6-8249-666eb2eade27   2025-02-19T18:59:04Z
2              New droplet deployed.                              true         617a33e0-2245-4c99-a722-de447094feea   2025-02-19T18:57:13Z
1              Initial revision.                                  true         edbe120e-d62e-43f9-aa64-30f9ce278b68   2025-02-19T18:52:35Z
  1. execute cf cancel-deployment dora
  2. Execute cf revisions test-dora with the output
Getting revisions for app test-dora in org test / space test as admin...

revision       description                                        deployable   revision guid                          created at
11             New droplet deployed. Rolled back to revision 1.   true         73facf40-ea02-4d75-9cbe-7bfed584838f   2025-02-21T18:46:30Z
10(deployed)   New droplet deployed.                              true         7e2f381b-f8d3-49a7-a81a-faedaed348c1   2025-02-21T18:45:16Z
9              New droplet deployed. Rolled back to revision 1.   true         1df6188f-518b-4237-adea-8018ddd4bd58   2025-02-20T18:08:17Z
8              New droplet deployed.                              true         208c4716-38bd-4935-b7a2-23e3a10cf5a8   2025-02-20T18:05:51Z
7              New droplet deployed. Rolled back to revision 1.   true         580a624d-b2b2-47d1-b2dc-bd7b38d91d67   2025-02-20T17:35:46Z
6              New droplet deployed.                              true         a8bba232-9e64-4a2b-9d1a-57610e215c38   2025-02-20T17:19:00Z
5              New droplet deployed. Rolled back to revision 1.   true         acf05ec4-0a26-4569-9570-5fc653793e68   2025-02-20T17:13:05Z
4              New droplet deployed.                              true         b719c3f8-8a91-42e2-a5af-ceed6a045be6   2025-02-20T17:11:38Z
3              New droplet deployed. Rolled back to revision 1.   true         a9d3d8e3-808b-40a6-8249-666eb2eade27   2025-02-19T18:59:04Z
2              New droplet deployed.                              true         617a33e0-2245-4c99-a722-de447094feea   2025-02-19T18:57:13Z
1              Initial revision.                                  true         edbe120e-d62e-43f9-aa64-30f9ce278b68   2025-02-19T18:52:35Z
  1. execute cf rollback --strategy canary test-dora --version 1 with the output
Rolling 'test-dora' back to revision '1' will create a new revision. The new revision will use the settings from revision '1'.
Are you sure you want to continue? [yN]: y
Rolling back to revision 1 for app test-dora in org test / space test as admin...
Creating deployment for app test-dora...

Unable to rollback. The code and configuration you are rolling back to is the same as the deployed revision.
FAILED

This happens with both strategies canary and rolling.

主要言語
Ruby
スター
207
フォーク
374
平均マージ
3日 6時間
マージ済み PR(30日)
44

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

cloudfoundry/cloud_controller_ng のほかの issue

cloudfoundry/cloud_controller_ng の issue をすべて見る

似ている issue

Ruby の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。