fix: align lab02 and lab03 student verification flows

This commit is contained in:
Luca Sacchi Ricciardi
2026-04-10 13:43:02 +00:00
parent 49e15f7ea2
commit f4764253e4
13 changed files with 105 additions and 65 deletions
@@ -13,7 +13,7 @@ Verificare che:
## Prerequisiti
- Completati [Tutorial 1](./01-create-vpc-networks.md) e [Tutorial 2](./02-deploy-containers-networks.md)
- Container in esecuzione: `docker compose ps` mostra 3 container attivi
- Container in esecuzione: `docker ps` mostra almeno `lab02-web`, `lab02-app` e `lab02-db` attivi
---
@@ -22,11 +22,11 @@ Verificare che:
Esegui:
```bash
cd ~/laboratori-cloud/labs/lab-02-network
cd /home/luca/laboratori-cloud/labs/lab-02-network
docker compose ps
```
Assicurati che lab02-web, lab02-app, e lab02-db siano "Up".
Assicurati che `lab02-web`, `lab02-app` e `lab02-db` siano "Up". Se `docker compose ps` non mostra nulla ma `docker compose up -d` e andato a buon fine, verifica con `docker ps | grep '^lab02-'`.
Se non lo sono:
@@ -44,15 +44,15 @@ Esegui:
```bash
# Verifica: app puo raggiungere web (stessa rete pubblica)
docker exec lab02-app ping -c 2 lab02-web
docker exec lab02-app ping -c 2 web
```
Atteso:
```
PING lab02-web (10.0.1.10): 56 data bytes
PING web (10.0.1.10): 56 data bytes
64 bytes from 10.0.1.10: seq=0 ttl=64 time=0.123 ms
64 bytes from 10.0.1.10: seq=1 ttl=64 time=0.045 ms
--- lab02-web ping statistics ---
--- web ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
```
@@ -68,18 +68,18 @@ Esegui:
```bash
# Verifica: web NON puo raggiungere db (reti diverse)
docker exec lab02-web ping -c 2 lab02-db
docker exec lab02-web ping -c 2 db
```
Atteso:
```
ping: bad address 'lab02-db'
ping: bad address 'db'
```
Oppure:
```
PING lab02-db (10.0.2.10): 56 data bytes
--- lab02-db ping statistics ---
PING db (10.0.2.10): 56 data bytes
--- db ping statistics ---
2 packets transmitted, 0 packets received, 100% packet loss
```
@@ -97,7 +97,7 @@ Esegui:
```bash
# Verifica: app puo raggiungere web (stessa rete pubblica)
docker exec lab02-app ping -c 2 lab02-web
docker exec lab02-app ping -c 2 web
```
Atteso: SUCCESSO
@@ -106,7 +106,7 @@ Esegui:
```bash
# Verifica: app puo raggiungere db (stessa rete privata)
docker exec lab02-app ping -c 2 lab02-db
docker exec lab02-app ping -c 2 db
```
Atteso: SUCCESSO
@@ -123,12 +123,12 @@ Esegui:
```bash
# Test DNS nella stessa rete
docker exec lab02-app nslookup lab02-web
docker exec lab02-app nslookup web
```
Atteso:
```
Name: lab02-web
Name: web
Address 1: 10.0.1.10
```
@@ -136,7 +136,7 @@ Esegui:
```bash
# Test DNS cross-rete (dovrebbe fallire)
docker exec lab02-web nslookup lab02-db
docker exec lab02-web nslookup db
```
Atteso: Fallisce o restituisce errore