Skip to content

Commit fda2466

Browse files
Sebastien Boeufbryteise
authored andcommitted
ch_integration_tests: Rely on upstream Ubuntu focal cloud image
The hypervisor-fw now supports booting upstream Focal images, which is why we can move to latest ones. The reason for this move is to have images with a kernel that includes evged driver so that ACPI hotplug can work for Cloud Hypervisor. Signed-off-by: Sebastien Boeuf <[email protected]>
1 parent ddbb254 commit fda2466

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

ch_integration_tests/run_tests.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ if [ ! -f "$FW" ]; then
1313
popd
1414
fi
1515

16-
FOCAL_OS_IMAGE_NAME="focal-server-cloudimg-amd64-custom-20210106-1.qcow2"
17-
FOCAL_OS_IMAGE_URL="https://cloudhypervisorstorage.blob.core.windows.net/images/$FOCAL_OS_IMAGE_NAME"
16+
FOCAL_OS_IMAGE_NAME="focal-server-cloudimg-amd64.img"
17+
FOCAL_OS_IMAGE_URL="https://cloud-images.ubuntu.com/focal/current/$FOCAL_OS_IMAGE_NAME"
1818
FOCAL_OS_IMAGE="$WORKLOADS_DIR/$FOCAL_OS_IMAGE_NAME"
1919
if [ ! -f "$FOCAL_OS_IMAGE" ]; then
2020
pushd $WORKLOADS_DIR
2121
time wget --quiet $FOCAL_OS_IMAGE_URL || exit 1
2222
popd
2323
fi
2424

25-
FOCAL_OS_RAW_IMAGE_NAME="focal-server-cloudimg-amd64-custom-20210106-1.raw"
25+
FOCAL_OS_RAW_IMAGE_NAME="focal-server-cloudimg-amd64.raw"
2626
FOCAL_OS_RAW_IMAGE="$WORKLOADS_DIR/$FOCAL_OS_RAW_IMAGE_NAME"
2727
if [ ! -f "$FOCAL_OS_RAW_IMAGE" ]; then
2828
pushd $WORKLOADS_DIR

ch_integration_tests/tests/integration.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ mod tests {
2121
use uuid::Uuid;
2222
use vmm_sys_util::tempdir::TempDir;
2323

24-
const FOCAL_IMAGE_NAME: &str = "focal-server-cloudimg-amd64-custom-20210106-1.raw";
24+
const FOCAL_IMAGE_NAME: &str = "focal-server-cloudimg-amd64.raw";
2525

2626
pub const DEFAULT_TCP_LISTENER_PORT: u16 = 8000;
2727
const DEFAULT_VCPUS: u8 = 1;
@@ -164,8 +164,10 @@ mod tests {
164164
}
165165

166166
fn wait_vm_boot(&self, custom_timeout: Option<i32>) -> Result<(), Error> {
167+
// Focal image requires more than default 80s to boot, that's why
168+
// we set the default to 120s.
167169
self.network
168-
.wait_vm_boot(custom_timeout)
170+
.wait_vm_boot(custom_timeout.or(Some(120)))
169171
.map_err(Error::WaitForBoot)
170172
}
171173

0 commit comments

Comments
 (0)