Unable set hostname in fuelmenu

Bug #1543357 reported by Alexander Podrepniy
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Maksim Malchuk
8.0.x
Fix Released
High
Maksim Malchuk

Bug Description

Summary:

Manual installation fuel-master node. Unable set hostname in fuelmenu on first node boot.

Fuel 8.0 build 529 (RC1)

[root@fuel log]# cat /etc/fuel/version.yaml
VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "8.0"
  api: "1.0"
  build_number: "529"
  build_id: "529"
  fuel-nailgun_sha: "baec8643ca624e52b37873f2dbd511c135d236d9"
  python-fuelclient_sha: "4f234669cfe88a9406f4e438b1e1f74f1ef484a5"
  fuel-agent_sha: "658be72c4b42d3e1436b86ac4567ab914bfb451b"
  fuel-nailgun-agent_sha: "b2bb466fd5bd92da614cdbd819d6999c510ebfb1"
  astute_sha: "b81577a5b7857c4be8748492bae1dec2fa89b446"
  fuel-library_sha: "e2d79330d5d708796330fac67722c21f85569b87"
  fuel-ostf_sha: "3bc76a63a9e7d195ff34eadc29552f4235fa6c52"
  fuel-mirror_sha: "fb45b80d7bee5899d931f926e5c9512e2b442749"
  fuelmenu_sha: "e071216cb214e34b4d861478033425ee6a54a3be"
  shotgun_sha: "63645dea384a37dde5c01d4f8905566978e5d906"
  network-checker_sha: "a43cf96cd9532f10794dce736350bf5bed350e9d"
  fuel-upgrade_sha: "616a7490ec7199f69759e97e42f9b97dfc87e85b"
  fuelmain_sha: "a365f05b903368225da3fea9aa42afc1d50dc9b4"

Steps to reproduce:
1. Start Fuel installation from ISO image
2. After CentOS installation complete and the node reboot first time wait until fuelmenu apply default setting and press any key for run fuelmenu
3. Choice "DNS & Hostname"
4. Change:
   - Hostname: kh-env-1-fuel-80-259
   - Domain: kh.local
   - Search Domain: kh.local
5. Don't change any other option. All other settings filled by default values.
6. Choice "Quit Seup" -> "Save and Quit"

Expected result:
   After installation complete, hostname has entered name - "kh-env-1-fuel-80-259".
   Entered name of host saved in /etc/hostname file.

Actual result:
   Hostname is "fuel.domain.tld"
   In "/etc/hostname" file: fuel.domain.tld
   In "/etc/hosts" file: 10.20.0.2 kh-env-1-fuel-80-259.kh.local kh-env-1-fuel-80-259

Revision history for this message
Alexander Podrepniy (apodrepniy) wrote :
Changed in fuel:
milestone: none → 8.0
tags: added: area-python module-fuelmenu team-bugfix
Dmitry Pyzhov (dpyzhov)
no longer affects: fuel/mitaka
Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Maksim Malchuk (mmalchuk)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-menu (master)

Fix proposed to branch: master
Review: https://review.openstack.org/281725

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-menu (master)

Reviewed: https://review.openstack.org/281725
Committed: https://git.openstack.org/cgit/openstack/fuel-menu/commit/?id=b14b7a69a81dc9980e4abb9dbb84fdc0678e43af
Submitter: Jenkins
Branch: master

commit b14b7a69a81dc9980e4abb9dbb84fdc0678e43af
Author: Maksim Malchuk <email address hidden>
Date: Thu Feb 18 12:43:51 2016 +0300

    Correctly set hostname via hostnamectl

    This commit correctly set hostname under CentOS via hostnamectl.

    Change-Id: I2d6e0db042058be0bc48c9d66ce4d9066561153c
    Closes-Bug: #1543357

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-menu (stable/8.0)

Fix proposed to branch: stable/8.0
Review: https://review.openstack.org/282036

Revision history for this message
ElenaRossokhina (esolomina) wrote :

verified on 9.0 iso#305
fuel info http://paste.openstack.org/show/496749/

Changed in fuel:
status: Fix Committed → Fix Released
Revision history for this message
Rudy McComb (rmccomb) wrote :

Seeing same issue on MOS 6.1

Revision history for this message
Rudy McComb (rmccomb) wrote :

Disregard my 6.1 comment

Revision history for this message
Dmitry Sutyagin (dsutyagin) wrote :

Customer found for 8.0, setting milestone to 8.0-mu-4 for now

tags: added: customer-found support
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-menu (stable/8.0)

Reviewed: https://review.openstack.org/282036
Committed: https://git.openstack.org/cgit/openstack/fuel-menu/commit/?id=daef8de1145d48fe756bd5a8b6a7180de63c3674
Submitter: Jenkins
Branch: stable/8.0

commit daef8de1145d48fe756bd5a8b6a7180de63c3674
Author: Maksim Malchuk <email address hidden>
Date: Thu Feb 18 12:43:51 2016 +0300

    Correctly set hostname via hostnamectl

    This commit correctly set hostname under CentOS via hostnamectl.
    (cherry picked from commit b14b7a69a81dc9980e4abb9dbb84fdc0678e43af)

    Also it contains utils.execute function.
    (cherry picked from commit d2a14d489850da1327ab9aa5281c7f37d6d00db9)

    Change-Id: I2d6e0db042058be0bc48c9d66ce4d9066561153c
    Closes-Bug: #1543357

tags: added: on-verification
Revision history for this message
TatyanaGladysheva (tgladysheva) wrote :

Verified on 8.0 + MU4 updates.

tags: removed: on-verification
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.