[BUG] When the Docker Compose File gets into a bad state
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- docker-compose, python
- 領域
- cli, devops, infrastructure
調査の方向性
まず ./ のようなデプロイメント マニフェストの bind パスを使って失敗を再現し、次に /root/.iotedgehubdev/data/data/docker-compose.yml と sudo iotedgedev simulator start のフローを調査します。完了条件は、マニフェストを変更してもシミュレーターの起動を妨げる無効な Compose ファイルが残らず、復旧のために生成されたファイルを手動で削除する必要がなくなることです。
索引モデルが issue の本文から書いたものです。
説明
Description
Have found a bug where its possible to get the docker compose file (/root/.iotedgehubdev/data/data/docker-compose.yml) into a bad state that you can't easily recover from with out taking the action of deleting the docker compose file
"createOptions": {
"HostConfig": {
"Binds": [
"./certs:/https:ro"
],
"PortBindings": {
"443/tcp": [
{
"HostPort": "5001"
}
]
}
}
}
sudo iotedgedev simulator start
ERROR: The Compose file '/root/.iotedgehubdev/data/data/docker-compose.yml' is invalid because:
volumes value './certs' does not match any of the regexes: '^[a-zA-Z0-9._-]+$'
ERROR: Error while executing command: docker-compose -f /root/.iotedgehubdev/data/data/docker-compose.yml down. Command '['docker-compose', '-f', '/root/.iotedgehubdev/data/data/docker-compose.yml', 'down']' returned non-zero exit status 1.
ERROR: Error while executing command: iotedgehubdev stop. Command '['iotedgehubdev', 'stop']' returned non-zero exit status 1.
cat /root/.iotedgehubdev/data/data/docker-compose.yml
volumes:
./certs:
name: ./certs
edgehubdev:
name: edgehubdev
edgemoduledev:
name: edgemoduledev
Possible fixes might be just need to add some more validation to the manifest to protect docker compose file
or maybe just delete the docker compose file (/root/.iotedgehubdev/data/data/docker-compose.yml) if it becomes invalid
Expected behavior
Changes to the deployment manifest should mean the down stream docker compose file is regenerated
Other possible fixes might be just need to add some more validation to the manifest to protect docker compose file
Or even just delete the docker compose file (/root/.iotedgehubdev/data/data/docker-compose.yml) if it becomes invalid
Actual behavior
Changing the deployment manifest after the docker compose file has got into a bad state has no effect and you are stuck, unless you force delete the docker compose file in /root/.iotedgehubdev/data/data/docker-compose.yml
Steps to Reproduce
Change your deployment manifest into something thats going to mean an invalid docker compose file
such as a bind path of ./
run commands such as
sudo iotedgedev simulator start
get ERROR: Error while executing command: docker-compose
Environment
iotedgedev, version 3.3.7
Python 3.7.15
pip 22.3.1 from /usr/local/lib/python3.7/dist-packages/pip (python 3.7)
WSL2 Ubuntu 22.04
- 主要言語
- Python
- スター
- 166
- フォーク
- 76
- 平均マージ
- 2時間 35分
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Azure/iotedgedev のほかの issue
-
feature triage
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
Azure/iotedgedev#641 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
Azure/iotedgedev#634 ·
-
feature triage
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
Azure/iotedgedev#633 · コメント 3 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
Azure/iotedgedev#632 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
Azure/iotedgedev#631 · コメント 1 件 ·
Azure/iotedgedev の issue をすべて見る
似ている issue
-
Validate non-divisible effective batch sizes in the Unsloth LoRA backend対応中かも @debesh-biswas が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
`rx.Model` event arguments emit `PydanticDeprecatedSince20` once per payload key対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
reflex-dev/reflex#7634 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
documentation
難易度 1/5 1〜3時間 初心者へのやさしさ 82/100
topoteretes/cognee#6239 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ranaroussi/yfinance#3009 ·
メンテナーはふだん 1 日以内に返信
-
Test discovery aborts on GPU builds without cuStateVec: check_cuStateVec expects a failed result but set_config() now raises RuntimeError対応中かも @dmeliksetian が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
Qiskit/qiskit-aer#2495 ·
メンテナーはふだん 1 日以内に返信