If there are no networks in project, packer just moves on

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

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

評価

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

調査の方向性

関連するエントリポイントは StepConnect に到達する OpenStack builder フローです。まず、サーバーの起動前に空のネットワーク構成がどのように処理されるかを追跡します。提供された構成とログを使ってネットワークなしのビルドを再現し、その後、このケースが SSH タイムアウトまで進むのではなく明示的に処理されることを示す、焦点を絞った回帰テストを追加します。

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

説明

bug

When filing a bug, please include the following headings if possible. Any
example text in this template can be deleted.

Overview of the Issue

If there are no networks in project, packer just moves on next step, creates volume, image, and try to connect to server without interfaces.

Reproduction Steps

Remove all network from openstack
Remove network id, cidr, any info about network in buildfile

Plugin and Packer version

From v1.0.1

Simplified Packer Buildfile

source "openstack" "test-1" {
flavor = var.flavor
identity_endpoint = var.identity_endpoint
image_disk_format = "raw"
image_name = "${local.image_name}"
image_tags = ["packer"]
region = "region"
source_image_name = var.source_image_name
ssh_clear_authorized_keys = true
ssh_username = "root"
use_blockstorage_volume = true
},
build {
sources = [
"source.openstack.test-1",
]
}

Operating system and Environment details
Log Fragments and crash.log files

2022-12-08T18:42:34+03:00: ==> openstack.test-1: Loading flavor: m1.tiny
2022-12-08T18:42:35+03:00: openstack.test-1: Verified flavor. ID: 1
2022-12-08T18:42:35+03:00: ==> openstack.test-1: Creating temporary RSA SSH key for instance...
2022-12-08T18:42:37+03:00: ==> openstack.test-1: Creating temporary keypair: packer_639205ea-c1ed-6490-cd4c-6e24092f53fd ...
2022-12-08T18:42:38+03:00: ==> openstack.test-1: Created temporary keypair: packer_639205ea-c1ed-6490-cd4c-6e24092f53fd
2022-12-08T18:42:38+03:00: openstack.test-1: Found Image ID: 56eeddc3-d88b-4138-84b8-2cd728419d47
2022-12-08T18:42:39+03:00: ==> openstack.test-1: Creating volume...
2022-12-08T18:42:40+03:00: ==> openstack.test-1: Waiting for volume packer_639205ea-4806-247b-2ee9-12f349cd4c3d (volume id: 2f9301b5-9b5f-4064-9435-daf0583ec3df) to become available...
2022-12-08T18:42:42+03:00: openstack.test-1: Volume ID: 2f9301b5-9b5f-4064-9435-daf0583ec3df
2022-12-08T18:42:42+03:00: ==> openstack.test-1: Launching server...
2022-12-08T18:42:42+03:00: ==> openstack.test-1: Launching server...
2022-12-08T18:42:48+03:00: openstack.test-1: Server ID: 97703c5d-e66e-44a7-82e5-46d3b0720ed6
2022-12-08T18:42:48+03:00: ==> openstack.test-1: Waiting for server to become ready...
2022-12-08T18:42:57+03:00: openstack.test-1: Floating IP not required
2022-12-08T18:42:58+03:00: ==> openstack.test-1: Waiting for SSH to become available...
2022-12-08T18:47:58+03:00: ==> openstack.test-1: Timeout waiting for SSH.
2022-12-08T18:47:58+03:00: ==> openstack.test-1: Timeout waiting for SSH.
2022-12-08T18:47:58+03:00: ==> openstack.test-1: Step "StepConnect" failed

主要言語
Go
スター
29
フォーク
27
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

hashicorp/packer-plugin-openstack のほかの issue

hashicorp/packer-plugin-openstack の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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