Ambiguous underlay network handling with `microcloud add`

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

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
go

調査の方向性

まず microcloud init、add、service add のフローを追跡し、次に issue に記載されている MicroOVN API の制限と、関連する LXD-1443 の作業を確認します。完了とは、フローが現在の underlay 構成を判定し、既存のシステムと新たに追加されたシステムに対して、その構成を一貫して取得または適用できることを意味します。

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

説明

Feature Jira

When setting up a cluster with microcloud init, and setting up OVN, we ask if the user wants to set up underlay networking. MicroOVN accepts configuration for each system over its API and applies it when initializing the system.

During microcloud add (and microcloud service add), we again offer the user to set up underlay networking, but which systems to set the networking up on cannot be easily determined.

Ideally, if the user previously did not configure underlay networking, we should let them configure it now that they are adding new systems. But that involves both fetching the existing configuration and applying it over the API on a running system.

MicroOVN does not have API support to fetch the existing underlay configuration, nor does it support setting the underlay configuration over the API after bootstrap/join.

We can't even really be conservative and only allow setting up new systems because if the user previously skipped setup, then not all systems will have an underlay network set.

So there's 2 parts to this:

  • We need a way to get the current underlay network configuration for the cluster. If we only have this, then we can check the existing cluster configuration and only present a table if a configuration exists. This table would be limited to just the new systems. This means we wouldn't be able to introduce underlay networking if it was not set up before running microcloud add.

  • Also add a way to set the underlay network configuration of existing systems. With this, we can inspect old systems and include them in the configuration if underlay networking was initially skipped. This is the same behaviour as storage pool, osd, and uplink network configuration.

LXD-1443

主要言語
Go
スター
552
フォーク
96
平均マージ
4日 10時間
マージ済み PR(30日)
21

環境構築

はじめの一歩

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

canonical/microcloud のほかの issue

canonical/microcloud の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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