Bug 2158055
| Summary: | [Azure][RHEL8][Network][cloud-init] Can not acquire IPv6 address | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Li Tian <litian> |
| Component: | cloud-init | Assignee: | Virtualization Maintenance <virt-maint> |
| Status: | CLOSED MIGRATED | QA Contact: | Li Tian <litian> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.8 | CC: | andavis, anhvo, anujmaurya, bdas, cavery, decui, eterrell, gveitmic, huzhao, jgreguske, litian, manikroy, mathapli, mikelley, sisatia, vkuznets, xiachen, xiliang, xuli, xxiong, yacao, yuxisun |
| Target Milestone: | rc | Keywords: | MigratedToJIRA |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-09-22 15:44:27 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Hi Anuj,
Could you please help to check why Microsoft has this configuration in the RHEL images? Thanks!
# cat /etc/cloud/cloud.cfg.d/91-azure_datasource.cfg
...
datasource:
Azure:
apply_network_config: False
Refer to cloud-init upstream document, https://cloudinit.readthedocs.io/en/latest/topics/datasources/azure.html#configuration apply_network_config: Boolean set to True to use network configuration described by Azure’s IMDS endpoint instead of fallback network config of dhcp on eth0. so by the design of cloud-init, if using network configuration by Azure’s IMDS, it can configure IPv6, however the fallback network configure of dhcp does not support IPv6. The Microsoft document (https://learn.microsoft.com/en-us/azure/virtual-machines/linux/redhat-create-upload-vhd) shows that, Configure Azure datasource: echo "Allow only Azure datasource, disable fetching network setting via IMDS" cat > /etc/cloud/cloud.cfg.d/91-azure_datasource.cfg <<EOF datasource_list: [ Azure ] datasource: Azure: apply_network_config: False EOF so we would like to know why Microsoft has this configuration in the RHEL images to disable fetching network setting via IMDS. hi Yuxin and Xiachen, Adding @anhvo from MS cloud-init team to answer the queries. Adding Manik, Mayank, and Simrat from my team for visibility. Thanks, Anuj Maurya apply_network_config is set to False in RHEL is for backwards compatibility. Azure Linux Agent does not configure networking using IMDS. When we moved from Azure Linux Agent to cloud-init for provisioning, we decided to keep the same behavior to avoid surprises to the customer. The intention was to enable it in a major release of RHEL like RHEL 9. However, given that we already had RHEL 9 released without apply_network_config toggled on, it's probably best to maintain the same behavior until RHEL 10. Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug. This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there. Due to differences in account names between systems, some fields were not replicated. Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information. To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer. You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like: "Bugzilla Bug" = 1234567 In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information. |
Description of problem: VMs are not getting IPv6 addresses in client but only shown in Azure Portal. Probable cause is: # cat /etc/cloud/cloud.cfg.d/91-azure_datasource.cfg datasource_list: [ Azure ] datasource: Azure: apply_network_config: False After removing the last 3 lines in this file and do 'cloud-init clean' then reboot. IPv6 address is acquired fine. Version-Release number of selected component (if applicable): 4.18.0-348.el8.x86_64 with cloud-init 21.1-7.el8 (RHEL 8.5 from Azure Marketplace) How reproducible: 100% Steps to Reproduce: 1. Create a VM from any RHEL images in Azure Marketplace (by far, 8.5, 8.6, 8.7... all have this same issue) Actual results: No IPv6 address acquired in client. Expected results: IPv6 address acquired normally. Additional info: 1. Ubuntu images in Marketplace don't have above configuration or this issue. 2. Adding the above configuration in any of our images can reproduce this issue. 3. Previously QE has been testing without above configuration until recently. And no additional issues were observed before this.