Hostname not fully set during Fuelmenu and breaks rabbitmq

Bug #1631444 reported by Scott Machtmes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Won't Fix
Medium
Fuel Sustaining
Mitaka
Won't Fix
Medium
Fuel Sustaining

Bug Description

Summary: Fuel 9.0 - Despite the inclusion of hostnamectl in Fuelmenu from bug https://bugs.launchpad.net/fuel/+bug/1543357 , a hostname entered in Fuelmenu does not cause the server to boot up with correct hostname in all required locations.

The net effect is that rabbitmq gets broken and won't start by still being configured for the default fuel.domain.tld hostname.

Further Details:

- To reproduce, install a fuel server using default settings except hostname. Change the hostname to some new name.

- When fuel server completes and boots up to login prompt, login and compare /etc/hostname, /etc/hosts, and output of hostname command, uname -n, and hostnamectl status. There will be a mix of default and new hostname.

- /etc/hosts and /etc/hostname will have the new name.
- hostname command and uname -n will show the default fuel name. sysctl kernel.hostname shows the still default hostname present from the utsname structure.

Also, hostnamectl status will show mix of names. Example:

[root@fuel ~]# hostnamectl
   Static hostname: maui
Transient hostname: fuel.domain.tld
         Icon name: computer-vm
           Chassis: vm
        Machine ID: 9fe38d589a644660b3522847df186ca9
           Boot ID: 61ee4120e2064c57bb85dce97436d188
    Virtualization: kvm
  Operating System: CentOS Linux 7 (Core)
       CPE OS Name: cpe:/o:centos:centos:7
            Kernel: Linux 3.10.0-327.18.2.el7.x86_64
      Architecture: x86-64

Also as a result, rabbitmq fails to start due to default fuel name still present in /etc/rabbitmq/rabbitmq-env.conf. Changing the nodename in this file now will allow rabbitmq to start, however, rabbitmq will be missing many required vhosts, settings, perms. Rabbitmq has started with a default configuration at this point.

Final notes:
Rebooting the fuel server now again manually will yield the correct hostname when the server comes back up. But the damage has already been done to rabbitmq server.

Revision history for this message
Oleksiy Molchanov (omolchanov) wrote :

What fuel version is it?

Changed in fuel:
status: New → Incomplete
assignee: nobody → Fuel Sustaining (fuel-sustaining-team)
Revision history for this message
Scott Machtmes (smachtmes) wrote :

My apologies, for the omission. It is Fuel 9.0. I've updated the bug description also.

description: updated
Changed in fuel:
status: Incomplete → Confirmed
importance: Undecided → Medium
milestone: none → 9.2
tags: added: area-library
Revision history for this message
Dmitry Pyzhov (dpyzhov) wrote :

FYI. Workaround for rabbitmq is described in bug #1630518

Revision history for this message
Scott Machtmes (smachtmes) wrote :

Should this bug be marked duplicate then?

Revision history for this message
Oleksiy Molchanov (omolchanov) wrote :

Scott, have you tried latest 9.x version?

Revision history for this message
Oleksiy Molchanov (omolchanov) wrote :

Scott, we have a fix for this issue https://review.openstack.org/#/c/346694/, but you can apply it just after you set up a master. Unfortunately it makes no sense.

Changed in fuel:
status: Confirmed → Won't Fix
Revision history for this message
Dmitry Pyzhov (dpyzhov) wrote :

@Scott, this bug is not duplicate because it also covers issue with stalled hostname in sysctl. We should fix it at least in master branch.

Changed in fuel:
status: Won't Fix → Confirmed
Roman Vyalov (r0mikiam)
Changed in fuel:
status: Confirmed → Won't Fix
Revision history for this message
Oleksiy Molchanov (omolchanov) wrote :

Marking as won't fix, because patch can be applied just after you set up a master. Unfortunately it makes no sense.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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