Auto-attach image support is not available on none

Bug #2067059 reported by Abdul Latheef P H
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init (Ubuntu)
New
Undecided
Unassigned
ubuntu-advantage-tools (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

While following the conversion from Ubuntu to Ubuntu pro after following the steps mentioned in the following doc:

https://learn.microsoft.com/en-us/azure/virtual-machines/workloads/canonical/ubuntu-pro-in-place-upgrade

Getting the following error after running the pro auto attach command.

# pro auto-attach
Auto-attach image support is not available on none
See: https://canonical-ubuntu-pro-client.readthedocs-hosted.com/en/latest/explanations/what_are_ubuntu_pro_cloud_instances.html

Revision history for this message
Grant Orndorff (orndorffgrant) wrote :

Hello Abdul,

Thank you for taking the time to submit a bug report!

That message means that `cloud-init` was unable to detect what cloud you are on (more specifically, the `cloud-id` command didn't return a cloud name).

Can you provide what instance type and image you are using on Azure?

As a workaround, there is a lower-level way to auto-attach that you can use to tell pro what cloud you are on (this requires pro client version 31 or greater). Try:

pro api u.pro.attach.auto.full_auto_attach.v1 --data "{\"cloud_override\": \"azure\"}"

Revision history for this message
Abdul Latheef P H (lathu1412) wrote :

Hi Grant,

Thanks for the workaround. It works.

I am using the following version of Ubuntu 18.04 in Azure.

# cloud-id
none

# cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.6 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.6 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

# cloud-init --version
/usr/bin/cloud-init 23.1.2-0ubuntu0~18.04.1

Revision history for this message
Grant Orndorff (orndorffgrant) wrote :

Great! I'm glad the workaround works for you.

In order to try to reproduce and debug the original problem, It may help to provide a bit more information on the azure instance. Could you share the "Security type", "Size", and "Source image details" values for this problematic instance as seen in the "Properties" of the instance on the Azure portal?

Uploading the result of `cloud-init collect-logs` will also help.

Marking incomplete for ubuntu-advantage-tools and assigning to cloud-init so the right people see this since this seems to be only cloud-init related so far.

Changed in ubuntu-advantage-tools (Ubuntu):
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.