yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #83217
[Bug 1886428] [NEW] Cloud-Init on RHEL8 cannot parse #cloud-config user-data
Public bug reported:
When using a "valid" #cloud-config yaml file passed in via the user-data
service. Even though the file is valid, correct, and accessible via the
meta-data URL - cloud-config on RHEL8 will not read it/read it
incorrectly and therefore not process that file.
Passing the exact same #cloud-config file into a RHEL7 image causes it
to work just fine.
Technical Specs:
Working Server:
RHEL 7.8
[root@rhel7-test-hen ~]# uname -r
3.10.0-1127.13.1.el7.x86_64
[root@rhel7-test-hen ~]# rpm -qa | grep cloud-init
cloud-init-18.5-3.el7.x86_64
Non-Working Server:
RHEL 8.2
[root@rhel8-base ~]# uname -r
4.18.0-193.6.3.el8_2.x86_64
[root@rhel8-base ~]# rpm -qa | grep cloud-init
cloud-init-18.5-12.el8_2.2.noarch
Pastebin with specifics/commands/output: https://pastebin.com/1igasWkr
The pastebin has details/info to reproduce this, but i can reproduce it
100% consistently by attaching the same user-data (see pastebin) via
user-data. I can see it, pull it, hash it, its the same, its accessible,
and its usable. RHEL8 doesn't parse/proces it, RHEL7 does.
As a last resort i just did the following in the RHEL8 server:
- Confirmed it was up
- Confirmed networking was fine/working
- Confirmed i could curl the user-data file from metadata service correctly
- rm -rf /var/lib/cloud/instance
- cloud-init init
- cloud-init start
After doing this:
- /var/lib/cloud/instance/user-data.txt file was recreated (new date stamp) - but still incorrect (matches pastebin data)
- /var/lib/cloud/instance/user-data.txt.I file was recreated (new date stamp) - but still incorrect (matches pastebin data)
[root@rhel8-base log]# ls -al /var/lib/cloud/instance/ | grep user-data
-rw-------. 1 root root 0 Jul 6 09:17 user-data.txt
-rw-------. 1 root root 308 Jul 6 09:17 user-data.txt.i
** Affects: cloud-init
Importance: Undecided
Status: New
** Attachment added: "cloud-init.tar.gz"
https://bugs.launchpad.net/bugs/1886428/+attachment/5390200/+files/cloud-init.tar.gz
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1886428
Title:
Cloud-Init on RHEL8 cannot parse #cloud-config user-data
Status in cloud-init:
New
Bug description:
When using a "valid" #cloud-config yaml file passed in via the user-
data service. Even though the file is valid, correct, and accessible
via the meta-data URL - cloud-config on RHEL8 will not read it/read it
incorrectly and therefore not process that file.
Passing the exact same #cloud-config file into a RHEL7 image causes it
to work just fine.
Technical Specs:
Working Server:
RHEL 7.8
[root@rhel7-test-hen ~]# uname -r
3.10.0-1127.13.1.el7.x86_64
[root@rhel7-test-hen ~]# rpm -qa | grep cloud-init
cloud-init-18.5-3.el7.x86_64
Non-Working Server:
RHEL 8.2
[root@rhel8-base ~]# uname -r
4.18.0-193.6.3.el8_2.x86_64
[root@rhel8-base ~]# rpm -qa | grep cloud-init
cloud-init-18.5-12.el8_2.2.noarch
Pastebin with specifics/commands/output: https://pastebin.com/1igasWkr
The pastebin has details/info to reproduce this, but i can reproduce
it 100% consistently by attaching the same user-data (see pastebin)
via user-data. I can see it, pull it, hash it, its the same, its
accessible, and its usable. RHEL8 doesn't parse/proces it, RHEL7 does.
As a last resort i just did the following in the RHEL8 server:
- Confirmed it was up
- Confirmed networking was fine/working
- Confirmed i could curl the user-data file from metadata service correctly
- rm -rf /var/lib/cloud/instance
- cloud-init init
- cloud-init start
After doing this:
- /var/lib/cloud/instance/user-data.txt file was recreated (new date stamp) - but still incorrect (matches pastebin data)
- /var/lib/cloud/instance/user-data.txt.I file was recreated (new date stamp) - but still incorrect (matches pastebin data)
[root@rhel8-base log]# ls -al /var/lib/cloud/instance/ | grep user-data
-rw-------. 1 root root 0 Jul 6 09:17 user-data.txt
-rw-------. 1 root root 308 Jul 6 09:17 user-data.txt.i
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1886428/+subscriptions
Follow ups