set hostname using cli "fuel node --node $id --hostname $new_hostname" does not change name in "fuel node" or UI

Bug #1557986 reported by Noam Angel
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
High
Fuel Python (Deprecated)

Bug Description

set
set hostname using cli "fuel node --node $id --hostname $new_hostname"

does not affect name field in "fuel node" or UI.

[root@fuel ~]# fuel node
id | status | name | cluster | ip | mac | roles | pending_roles | online | group_id
---|-------------|------------------|---------|------------|-------------------|------------|---------------|--------|---------
91 | provisioned | Untitled (00:6c) | 15 | 10.20.0.42 | f8:bc:12:4e:00:6c | compute | | True | 15
90 | provisioned | Untitled (e4:1c) | 15 | 10.20.0.43 | f8:bc:12:4e:e4:1c | compute | | True | 15
92 | provisioned | Untitled (8a:99) | 15 | 10.20.0.44 | c8:1f:66:f3:8a:99 | controller | | True | 15
88 | provisioned | Untitled (69:cc) | 15 | 10.20.0.39 | f8:bc:12:50:69:cc | controller | | False | 15

VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "8.0"
  api: "1.0"
  build_number: "570"
  build_id: "570"
  fuel-nailgun_sha: "558ca91a854cf29e395940c232911ffb851899c1"
  python-fuelclient_sha: "4f234669cfe88a9406f4e438b1e1f74f1ef484a5"
  fuel-agent_sha: "658be72c4b42d3e1436b86ac4567ab914bfb451b"
  fuel-nailgun-agent_sha: "b2bb466fd5bd92da614cdbd819d6999c510ebfb1"
  astute_sha: "b81577a5b7857c4be8748492bae1dec2fa89b446"
  fuel-library_sha: "c2a335b5b725f1b994f78d4c78723d29fa44685a"
  fuel-ostf_sha: "3bc76a63a9e7d195ff34eadc29552f4235fa6c52"
  fuel-mirror_sha: "fb45b80d7bee5899d931f926e5c9512e2b442749"
  fuelmenu_sha: "78ffc73065a9674b707c081d128cb7eea611474f"
  shotgun_sha: "63645dea384a37dde5c01d4f8905566978e5d906"
  network-checker_sha: "a43cf96cd9532f10794dce736350bf5bed350e9d"
  fuel-upgrade_sha: "616a7490ec7199f69759e97e42f9b97dfc87e85b"
  fuelmain_sha: "d605bcbabf315382d56d0ce8143458be67c53434"

Tags: area-python
Noam Angel (noama)
summary: set hostname using cli "fuel node --node $id --hostname $new_hostname"
- does not change name in "fuel node"
+ does not change name in "fuel node" or UI
Changed in fuel:
milestone: none → 8.0-updates
assignee: nobody → Fuel Python Team (fuel-python)
importance: Undecided → High
status: New → Confirmed
tags: added: area-python
Revision history for this message
Vitalii Kulanov (vitaliy-t) wrote :

Hm...
Strange, as far as I understand you want to change node name (name field in "fuel node" or UI) not node hostname, then you have to use this command:

            fuel node --node-id 1 --name NewName

Please, see the results: http://paste.openstack.org/show/491665/

node 'hostname' is not the same as node 'name'

Revision history for this message
Noam Angel (noama) wrote :

it can work for me. but it seem like double action for same thing..

Revision history for this message
Rodion Tikunov (rtikunov) wrote :

Command "fuel node --node $id --hostname $new_hostname" changes node hostname when the node is deployed. And works as described here [0].
[root@localhost ~]# fuel2 node show 7 -c hostname
+----------+-------+
| Field | Value |
+----------+-------+
| hostname | test1 |
+----------+-------+
[root@localhost ~]# fuel node --node-id 7 --hostname test2
Hostname for node with id 7 has been changed to test2.
[root@localhost ~]# fuel2 node show 7 -c hostname
+----------+-------+
| Field | Value |
+----------+-------+
| hostname | test2 |
+----------+-------+

[0] https://specs.openstack.org/openstack/fuel-specs/specs/7.0/configurable-hostnames-for-physical-nodes.html

Changed in fuel:
status: Confirmed → Invalid
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.