[E2E] network lifecycle test scenario

Aperta
#1,666 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

@chanchiwai-ray ci sta già lavorando.

Dal 30/11/2026.

  • #1701 di @chanchiwai-ray — aperta

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go

Direzione di ricerca

Start by locating the repository’s E2E test entry points and existing network and instance lifecycle scenarios; the issue does not name files or tests. Use the supplied Gherkin scenario as the acceptance checklist for OVN network creation, instance connectivity, DHCP range behavior, detach and deletion, including cleanup after failures.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

As a user, I expect the network lifecycle should works on the microcloud cluster.

Example test scenario:

Feature: Network lifecycle

  Background:
    Given a MicroCloud cluster with all members Online
    And the "e2e-testing" project exists

  Scenario: Create, configure, attach, and delete OVN networks across live instances
    Given two randomly generated network names prefixed with "e2e-net-"
      ("net1", kept for the whole scenario, and "net2", removed partway through)
    And each network is deleted at the end of the scenario, even if a prior step fails

    When I create "net1" as an OVN network, using the cluster's "UPLINK" network,
      with IPv6 enabled
    And I create "net2" as an OVN network, using the cluster's "UPLINK" network,
      with IPv6 enabled
    Then both networks are created successfully and report state "Created"

    Given two randomly generated instance names prefixed with "e2e-net-lifecycle-"
      ("instance-a" and "instance-b"), targeted at two distinct, randomly selected
      cluster members
    And each instance is deleted at the end of the scenario, even if a prior step fails

    When I create "instance-a" with a NIC on "net1" and a NIC on "net2"
    And I create "instance-b" with a NIC on "net1" only
    And I start both instances
    Then both instances reach the "Running" state
    And "instance-a" acquires an IPv4 address on each of its NICs
    And "instance-b" acquires an IPv4 address on its NIC
    And if "net1"/"net2" report IPv6 as enabled, each instance also acquires an
      IPv6 address on the corresponding NIC(s); otherwise this is noted and skipped

    When "instance-b" probes "instance-a" on its "net1" address(es)
    Then the probe succeeds
    When "instance-b" probes "instance-a" on its "net2" address(es)
    Then the probe succeeds

    When I set "ipv4.dhcp.ranges" on "net2" to a narrow, randomly generated subrange
      of its subnet
    And I create a third instance, "instance-c", with a NIC on "net2" only, and
      the instance is deleted at the end of the scenario even if a prior step fails
    And I start "instance-c"
    Then "instance-c" reaches the "Running" state
    And "instance-c"'s acquired IPv4 address falls inside the narrowed range

    When I delete "instance-c"
    And I detach "instance-a"'s NIC on "net2"
    Then "instance-a" no longer reports an address on "net2"

    When "instance-b" probes "instance-a"'s former "net2" address(es)
    Then the probe consistently fails over a short window, showing the address
      is no longer reachable
    When "instance-b" probes "instance-a" on its "net1" address(es)
    Then the probe still succeeds

    When I delete "net2"
    Then "net2" no longer appears in the network list

    When I delete "instance-a" and "instance-b"
    And I delete "net1"
    Then "net1" no longer appears in the network list
Lingua principale
Go
Stelle
552
Fork
96
Merge medio
4g 10h
PR unite (30g)
21

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di canonical/microcloud

Tutte le issue di canonical/microcloud

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.