mdzidic / ovz-web-panel

Automatically exported from code.google.com/p/ovz-web-panel
Other
0 stars 0 forks source link

Guest creation should set machine name as well as hostname. #293

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Reason:
To allow another way to reference a OpenVZ guest.

Some scripts use the guest name, not veid.  It could be argued the guestname 
should never be blank.

Description:

The guest name could easily be set to the hostname.  To ensure the guest has a 
guest name equivalent to it's hostname simply modify virtual_server.rb to the 
following : 

/virtual_server.rb /opt/ovz-web-panel/app/models/virtual_server.rb
123a124
>       vzctl_set("--name #{host_name} --save") if !host_name.blank? and 
host_name_changed?

Original issue reported on code.google.com by pduboi...@gmail.com on 17 May 2011 at 2:29

GoogleCodeExporter commented 9 years ago
Any word on if this request is to be accepted or not ? 

Original comment by pduboi...@gmail.com on 1 Aug 2011 at 5:50

GoogleCodeExporter commented 9 years ago

Original comment by sibprogrammer on 1 May 2012 at 8:34