Recently i migrated an SLES image from AWS to GCP and when i tried to update the repositories using the command zypper ref I realized that the zypper was not working since the instance wasn't properly registered as a Cloud SLES.
I've created a new fresh SLES instance in GCP to check the zypper configurations and realised in /etc/hosts there was a entry for the GCP SMT servers.
I went back to the migrated compute engine in GCP, updated the /etc/hosts and ran the following commands:
SUSEConnect --status
SUSEConnect --cleanup
/usr/sbin/registercloudguest
And it didn't work.
I even tried by replicating the machine image with the flag of --licenses via gcloud https://cloud.google.com/sdk/gcloud/reference/compute/images/create but still no success.
Does anyone has any suggestions?