-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Compute] Update from CoreOS to Flatcar #18644
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -787,15 +787,22 @@ def _validate_vm_vmss_accelerated_networking(cli_ctx, namespace): | |
return | ||
|
||
# VMs need to be a supported image in the marketplace | ||
# Ubuntu 16.04 | 18.04, SLES 12 SP3, RHEL 7.4, CentOS 7.4, CoreOS Linux, Debian "Stretch" with backports kernel | ||
# Ubuntu 16.04 | 18.04, SLES 12 SP3, RHEL 7.4, CentOS 7.4, Flatcar, Debian "Stretch" with backports kernel | ||
# Oracle Linux 7.4, Windows Server 2016, Windows Server 2012R2 | ||
publisher, offer, sku = namespace.os_publisher, namespace.os_offer, namespace.os_sku | ||
if not publisher: | ||
return | ||
publisher, offer, sku = publisher.lower(), offer.lower(), sku.lower() | ||
|
||
if publisher == 'coreos' or offer == 'coreos': | ||
from azure.cli.core.parser import InvalidArgumentValueError | ||
raise InvalidArgumentValueError("As CoreOS is deprecated and there is no image in the marketplace any more," | ||
" please use Flatcar Container Linux instead.") | ||
|
||
Comment on lines
+797
to
+801
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The actionable error message for CoreOS |
||
distros = [('canonical', 'UbuntuServer', '^16.04|^18.04'), | ||
('suse', 'sles', '^12-sp3'), ('redhat', 'rhel', '^7.4'), | ||
('openlogic', 'centos', '^7.4'), ('coreos', 'coreos', None), ('credativ', 'debian', '-backports'), | ||
('openlogic', 'centos', '^7.4'), ('kinvolk', 'flatcar-container-linux-free', None), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. recommend to add actionable error message for value coreOS There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK, done, comment link There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggest " please use Flatcar Container Linux instead." (add "Container" and delete "of it"). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK, done |
||
('kinvolk', 'flatcar-container-linux', None), ('credativ', 'debian', '-backports'), | ||
('oracle', 'oracle-linux', '^7.4'), ('MicrosoftWindowsServer', 'WindowsServer', '^2016'), | ||
('MicrosoftWindowsServer', 'WindowsServer', '^2012-R2')] | ||
import re | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given python is already installed on "Azure-specific distribution of Flatcar", shouldn't we provide the command to install Azure CLI dependencies?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This description is provided by ahrkrak. @ahrkrak Hi, could you please help to have a look~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now I doubt if there is really someone to use Flatcar to install Azure CLI. 🤣