Ask Your Question
1

how to change host name of openstack nova service?

asked 2015-03-14 20:03:02 -0600

aupres gravatar image

I try to make instance on openstack private cloud web UI. But it fails.The error code is Failed to launch instance "test": Please try again later [Error: No valid host was found. ]. So i executed the following command

$ nova-manage service list

and found the nova service worked well but hosts were different.

Binary           Host                      Zone             Status     State Updated_At
nova-consoleauth localhost.localdomain    internal         enabled    :-)   2015-03-14 20:42:58
nova-scheduler   localhost.localdomain    internal         enabled    :-)   2015-03-14 20:42:58
nova-conductor   localhost.localdomain    internal         enabled    :-)   2015-03-14 20:42:57
nova-cert        localhost.localdomain    internal         enabled    :-)   2015-03-14 20:42:58
nova-compute     localhost.localdomain     nova            enabled    :-)   2015-03-14 20:42:58

This is /etc/hosts

192.168.200.51   publiccloud
# openstack configuration ip and hostname
10.0.15.11       privatecloud

How can i modify host name of nova service? Your advice will be deeply appreciated. Thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-03-18 10:18:42 -0600

Poonam Agarwal gravatar image

Did you set the system hostname at all?

  1. Modify /etc/hostname to reflect the hostname that you want

    cloud-controller-01 ( for example )
    
  2. In /etc/hosts add entries as below

    127.0.0.1       localhost
    192.168.200.51    cloud-controller-01 cloud-controller-01.example.com
    

Is should pick up the right name after you do that.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-03-14 20:01:44 -0600

Seen: 3,267 times

Last updated: Mar 18 '15