Feature 11065: Ubuntu24 as base image for OSM installation

Change-Id: Ib55cbb7f14f66d6c72f96cecc88c17426cce494a
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/jenkins/ci-pipelines/ci_stage_2.groovy b/jenkins/ci-pipelines/ci_stage_2.groovy
index a5eba64..a588cf0 100644
--- a/jenkins/ci-pipelines/ci_stage_2.groovy
+++ b/jenkins/ci-pipelines/ci_stage_2.groovy
@@ -105,7 +105,7 @@
             def downstream_params_stage_3 = [
                 string(name: 'GERRIT_BRANCH', value: "${branch}"),
                 string(name: 'INSTALLER', value: "Default" ),
-                string(name: 'OPENSTACK_BASE_IMAGE', value: "ubuntu22.04" ),
+                string(name: 'OPENSTACK_BASE_IMAGE', value: "ubuntu24.04" ),
                 string(name: 'OPENSTACK_OSM_FLAVOR', value: "osm.sanity" ),
                 string(name: 'UPSTREAM_JOB_NAME', value: "${JOB_NAME}" ),
                 string(name: 'UPSTREAM_JOB_NUMBER', value: "${BUILD_NUMBER}" ),
diff --git a/jenkins/ci-pipelines/ci_stage_3.groovy b/jenkins/ci-pipelines/ci_stage_3.groovy
index f03dbe2..8ce0379 100644
--- a/jenkins/ci-pipelines/ci_stage_3.groovy
+++ b/jenkins/ci-pipelines/ci_stage_3.groovy
@@ -31,7 +31,7 @@
         string(defaultValue: 'artifactory-osm', description: '', name: 'ARTIFACTORY_SERVER'),
         string(defaultValue: 'osm-stage_4', description: '', name: 'DOWNSTREAM_STAGE_NAME'),
         string(defaultValue: 'testing-daily', description: '', name: 'DOCKER_TAG'),
-        string(defaultValue: 'ubuntu22.04', description: '', name: 'OPENSTACK_BASE_IMAGE'),
+        string(defaultValue: 'ubuntu24.04', description: '', name: 'OPENSTACK_BASE_IMAGE'),
         string(defaultValue: 'osm.sanity', description: '', name: 'OPENSTACK_OSM_FLAVOR'),
         booleanParam(defaultValue: false, description: '', name: 'TRY_OLD_SERVICE_ASSURANCE'),
         booleanParam(defaultValue: true, description: '', name: 'TRY_JUJU_INSTALLATION'),
@@ -889,7 +889,7 @@
                             "-o StrictHostKeyChecking=no " +
                             "-o UserKnownHostsFile=/dev/null " +
                             "ubuntu@${IP_ADDRESS} " +
-                            "'sudo systemctl restart sshd'")
+                            "'sudo systemctl restart ssh.service'")
                     //////////////////////////////////////////////////////////////////////////////////////////////
 
                 } // stage("Spawn Remote VM")
diff --git a/jenkins/public-clouds-tests/Jenkinsfile b/jenkins/public-clouds-tests/Jenkinsfile
index caea6df..aabe795 100644
--- a/jenkins/public-clouds-tests/Jenkinsfile
+++ b/jenkins/public-clouds-tests/Jenkinsfile
@@ -61,7 +61,7 @@
     environment {
         // Azure environment
         CLOUD_TYPE                 = 'azure'
-        SOURCE_IMAGE_NAME          = 'Canonical:0001-com-ubuntu-server-jammy:22_04-lts:latest'
+        SOURCE_IMAGE_NAME          = 'Canonical:ubuntu-24_04-lts:server:latest'
         FLAVOR_NAME                = 'Standard_D4as_v4'
         K8S_FLAVOR_NAME            = 'Standard_A2_v2'
         USE_PAAS_K8S               = 'FALSE'
@@ -84,7 +84,7 @@
         VIM_EXT_NET                = 'osm-ext'
         OVERRIDES                  = '--override-epa'
         FLAVOR_NAME                = 'osm.sanity'
-        SOURCE_IMAGE_NAME          = 'ubuntu22.04'
+        SOURCE_IMAGE_NAME          = 'ubuntu24.04'
         SSH_KEY_NAME               = 'niv2020'
         SDNC_USER                  = 'karaf'
         SDNC_PASSWORD              = 'karaf'