RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1478708 - [Cloud init] Failed to set hostname
Summary: [Cloud init] Failed to set hostname
Keywords:
Status: CLOSED DUPLICATE of bug 1450521
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: cloud-init
Version: 7.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Ryan McCabe
QA Contact: Israel Pinto
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-06 11:34 UTC by Israel Pinto
Modified: 2024-11-21 02:54 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-07 15:05:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
cloud-init.log (9.12 KB, application/x-xz)
2017-08-06 11:34 UTC, Israel Pinto
no flags Details

Description Israel Pinto 2017-08-06 11:34:13 UTC
Created attachment 1309647 [details]
cloud-init.log

Description of problem:
Hostname is not set via rhevm cloud init. 


Version-Release number of selected component (if applicable):
Red Hat Enterprise Linux Server release 7.4 (Maipo)
#uname -a:
Linux dhcp163-94.scl.lab.tlv.redhat.com 3.10.0-693.el7.x86_64 #1 SMP Thu Jul 6 19:56:57 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux
cloud init: cloud-init-0.7.9-9.el7.x86_64
RHVM:  4.1.5.1-0.1.el7
vdsm: vdsm-4.19.26-1.el7ev.x86_64


How reproducible:
all the time

Steps to Reproduce:
1. Create VM from rhel-guest-image with cloud init via rhevm.
2. Set hostname: cloud-init-test, user: root, password: 1, timezone: Pacific/Tongatapu 
3. Start VM

Actual results:
Hostname did not set.

Expected results:
Host name is set to FQDN 

Additional info:
payload on host:
{
  "availability_zone" : "nova",
  "hostname" : "cloud_init_test",
  "launch_index" : "0",
  "meta" : {
    "role" : "server",
    "dsmode" : "local",
    "essential" : "false"
  },
  "name" : "cloud_init_test",
  "uuid" : "ce251ba6-fe38-422f-b0d5-64b69072279a"
}#cloud-config
output:
  all: '>> /var/log/cloud-init-output.log'
password: '1'
disable_root: 0
runcmd:
- 'sed -i ''/^datasource_list: /d'' /etc/cloud/cloud.cfg; echo ''datasource_list:
  ["NoCloud", "ConfigDrive"]'' >> /etc/cloud/cloud.cfg'
timezone: Pacific/Tongatapu
ssh_pwauth: true
chpasswd:
  expire: false
user: root

Comment 2 Israel Pinto 2017-11-07 15:05:15 UTC
Duplicate BZ of: 1450521

*** This bug has been marked as a duplicate of bug 1450521 ***


Note You need to log in before you can comment on or make changes to this bug.