Comment 5 for bug 2004650

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Attaching in 22.10

ubuntu@k2:~$ sudo pro attach xxxx
This machine is now attached to 'Ubuntu Pro (Apps-only) - Virtual'

SERVICE ENTITLED STATUS DESCRIPTION

NOTICES
Operation in progress: pro attach

Enable services with: pro enable <service>

                Account: xxxx
           Subscription: Ubuntu Pro (Apps-only) - Virtual
            Valid until: Fri Dec 31 23:59:59 3999 UTC
Technical support level: essential

Then testing status still seems fine:

ubuntu@k2:~$ pro status
SERVICE ENTITLED STATUS DESCRIPTION

Enable services with: pro enable <service>

                Account: Canonical - staff
           Subscription: Ubuntu Pro (Apps-only) - Virtual
            Valid until: Fri Dec 31 23:59:59 3999 UTC
Technical support level: essential
ubuntu@k2:~$ pro status --all
SERVICE ENTITLED STATUS DESCRIPTION
cc-eal yes n/a Common Criteria EAL2 Provisioning Packages
cis yes n/a Security compliance and audit tools
esm-apps yes n/a Expanded Security Maintenance for Applications
esm-infra yes n/a Expanded Security Maintenance for Infrastructure
fips yes n/a NIST-certified core packages
fips-updates yes n/a NIST-certified core packages with priority security updates
livepatch yes n/a Canonical Livepatch service
realtime-kernel yes n/a Ubuntu kernel with PREEMPT_RT patches integrated
ros yes n/a Security Updates for the Robot Operating System
ros-updates yes n/a All Updates for the Robot Operating System

Enable services with: pro enable <service>

                Account: Canonical - staff
           Subscription: Ubuntu Pro (Apps-only) - Virtual
            Valid until: Fri Dec 31 23:59:59 3999 UTC
Technical support level: essential
ubuntu@k2:~$ pro status --format json
{"_doc": "Content provided in json response is currently considered Experimental and may change", "_schema_version": "0.1", "account": {"created_at": "2019-10-11T13:55:56+00:00", "external_account_ids": [{"IDs": ["xxx"], "origin": "Salesforce"}, {"IDs": ["xxx"], "origin": "Stripe"}], "id": "xxx-xxx", "name": "Canonical - staff"}, "attached": true, "config": {"contract_url": "https://contracts.canonical.com", "daemon_log_file": "/var/log/ubuntu-advantage-daemon.log", "data_dir": "/var/lib/ubuntu-advantage", "log_file": "/var/log/ubuntu-advantage.log", "log_level": "debug", "security_url": "https://ubuntu.com/security", "timer_log_file": "/var/log/ubuntu-advantage-timer.log", "ua_config": {"apt_http_proxy": null, "apt_https_proxy": null, "http_proxy": null, "https_proxy": null, "metering_timer": 14400, "update_messaging_timer": 21600}}, "config_path": "/etc/ubuntu-advantage/uaclient.conf", "contract": {"created_at": "2020-09-29T15:52:51+00:00", "id": "xxx-xxx", "name": "Ubuntu Pro (Apps-only) - Virtual", "products": ["uaa-essential-virtual"], "tech_support_level": "essential"}, "effective": "2020-09-29T00:00:00+00:00", "environment_vars": [], "errors": [], "execution_details": "No Ubuntu Pro operations are running", "execution_status": "inactive", "expires": "3999-12-31T23:59:59+00:00", "features": {}, "machine_id": "xxx", "notices": [], "result": "success", "services": [], "simulated": false, "version": "27.13.3~22.10.1", "warnings": [{"message": "Failed to check for change in machine contract. Reason: Unauthorized: [https://contracts.canonical.com/v1/contracts/xxx-xxx/context/machines/xxx?architecture=amd64&kernel=5.19.0-26-generic&series=kinetic], unauthorized", "message_code": null, "service": null, "type": "system"}, {"message": "Trying to remove notice as non-root user", "message_code": null, "service": null, "type": "system"}, {"message": "Trying to remove notice as non-root user", "message_code": null, "service": null, "type": "system"}, {"message": "Trying to remove notice as non-root user", "message_code": null, "service": null, "type": "system"}, {"message": "Trying to remove notice as non-root user", "message_code": null, "service": null, "type": "system"}, {"message": "Trying to remove notice as non-root user", "message_code": null, "service": null, "type": "system"}, {"message": "Trying to remove notice as non-root user", "message_code": null, "service": null, "type": "system"}]}
ubuntu@k2:~$ echo $?
0