Ask Your Question
2

Creating an instance with a specified name, or renaming an instance name after it got created?

asked 2014-06-20 18:41:54 -0600

I created 4 instances on OpenStack using euca-run-instances -k Franck -n 4 ami-00000023f.

The created instances have the following instance names (as listed on OpenStack's Horizon web interface)

  • Server b00b1b04-e9f9-4582-86ca-f5773a465f42-b00b1b04-e9f9-4582-86ca-f5773a465f42
  • Server 4d765b51-0511-474c-98f0-ef6199a23c7f-4d765b51-0511-474c-98f0-ef6199a23c7f
  • Server 378964ac-630e-4490-b738-383bed6bacb1-378964ac-630e-4490-b738-383bed6bacb1
  • Server b00b1b04-e9f9-4582-86ca-f5773a465f42-b00b1b04-e9f9-4582-86ca-f5773a465f42

Is there any way to create an instance with a specified name, or to rename an instance name after it got created?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
4

answered 2014-06-21 00:12:06 -0600

subha gravatar image

updated 2014-06-23 02:47:20 -0600

SGPJ gravatar image

Please go to Horizon dashboard --> Go to Instance and click Edit for renaming. CLI: usage: nova rename <server> <name>

edit flag offensive delete link more

Comments

Thanks, is there any way to do it programmatically?

Franck Dernoncourt gravatar imageFranck Dernoncourt ( 2014-06-21 18:30:07 -0600 )edit

I don't think it works in recent version, I do not see this option available in Pike. Has the command changed or completely removed?

Wajahat gravatar imageWajahat ( 2018-11-15 15:48:41 -0600 )edit
1

answered 2014-06-23 01:44:40 -0600

Source: http://docs.openstack.org/user-guide/content/novaclient_commands.html (http://docs.openstack.org/user-guide/...)

nova rename command

usage: nova rename <server> <name>

Positional arguments

<server>

Name (old name) or ID of server.

<name>

New name for the server.
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: 2014-06-20 18:41:54 -0600

Seen: 5,456 times

Last updated: Jun 23 '14