You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by "Jake G." <dj...@yahoo.com> on 2013/01/24 10:58:07 UTC

Custom instance names ?

Hi All,

Wondering if it is possible to include the Account Name or User Name in the instance name that is auto-created by cloudstack 4.0 (vCenter 5).

Example:
Current naming schema -> i-50-VM
Custom naming schema -> i-50-VM-companyA   or   i-50-VM-companyA-jimsmith

Seems like it should be possible with some variables added somewhere, but not sure.

Thank you for all your help!

Jake

Re: Custom instance names ?

Posted by "Jake G." <Dj...@yahoo.com>.
Just wondering :) 

Was gonna try to use some sort of injection hack and see if it works. Chances are it would but doesn't hurt to try. 

On 2013/01/30, at 17:04, Pranav Saxena <pr...@citrix.com> wrote:

> Jake ,
> 
> Without the dev version installed , how would you build your customized source code , even if you know about the lines of code which need to be modified . Just like I told you earlier about the one of the java files ( VirtualMachineName.java) which is used to generate the VM names.
> 
> Regards,
> Pranav
> 
> 

FW: Custom instance names ?

Posted by Pranav Saxena <pr...@citrix.com>.
Jake ,

Without the dev version installed , how would you build your customized source code , even if you know about the lines of code which need to be modified . Just like I told you earlier about the one of the java files ( VirtualMachineName.java) which is used to generate the VM names.

Regards,
Pranav



Re: Custom instance names ?

Posted by "Jake G." <Dj...@yahoo.com>.
I know about that global setting. 
I wonder as a workaround, could I enter the variable for account or user name in there? 

Since I don't have the dev version installed, would anyone know the lines of code for that global setting? Care to share here? 

Also the correct variable name for account or user name?

Thanks!

On 2013/01/30, at 1:03, "Fuchs, Andreas (SwissTXT)" <An...@swisstxt.ch> wrote:

> The only option i'm aware off is adding the instance name:
> 
> vm.instancename.flag    -> If true, will append guest VMs display Name (if set) to its internal name and set hostname and display name to the conjoined value
> 
> -----Original Message-----
> From: Jake G. [mailto:dj_dark_junglist@yahoo.com] 
> Sent: Donnerstag, 24. Januar 2013 10:59
> To: cloudstack-users@incubator.apache.org
> Subject: Custom instance names ?
> 
> Hi All,
> 
> Wondering if it is possible to include the Account Name or User Name in the instance name that is auto-created by cloudstack 4.0 (vCenter 5).
> 
> Example:
> Current naming schema -> i-50-VM
> Custom naming schema -> i-50-VM-companyA   or   i-50-VM-companyA-jimsmith
> 
> Seems like it should be possible with some variables added somewhere, but not sure.
> 
> Thank you for all your help!
> 
> Jake

RE: Custom instance names ?

Posted by "Fuchs, Andreas (SwissTXT)" <An...@swisstxt.ch>.
The only option i'm aware off is adding the instance name:

vm.instancename.flag	-> If true, will append guest VMs display Name (if set) to its internal name and set hostname and display name to the conjoined value

-----Original Message-----
From: Jake G. [mailto:dj_dark_junglist@yahoo.com] 
Sent: Donnerstag, 24. Januar 2013 10:59
To: cloudstack-users@incubator.apache.org
Subject: Custom instance names ?

Hi All,

Wondering if it is possible to include the Account Name or User Name in the instance name that is auto-created by cloudstack 4.0 (vCenter 5).

Example:
Current naming schema -> i-50-VM
Custom naming schema -> i-50-VM-companyA   or   i-50-VM-companyA-jimsmith

Seems like it should be possible with some variables added somewhere, but not sure.

Thank you for all your help!

Jake

RE: CloudStack 4.0 API

Posted by Geoff Higginbottom <ge...@shapeblue.com>.
Hi Jake

You should take a look at http://www.shapeblue.com/2012/05/10/using-the-api-for-advanced-network-management/ it gives an example of using the API

Also take a look at the Cloudmonkey page https://cwiki.apache.org/CLOUDSTACK/cloudstack-cloudmonkey-cli.html

When we build clouds, we effectively do so without using the GUI, we do it all using the API, and are now adopting Cloudmonkey as our preferred scripting engine.

Regards

Geoff Higginbottom

D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581

geoff.higginbottom@shapeblue.com

-----Original Message-----
From: DJ Dark [mailto:Dj_dark_junglist@yahoo.com]
Sent: 28 January 2013 09:47
To: cloudstack-users@incubator.apache.org
Subject: Re: CloudStack 4.0 API

Thanks for the reply!

Do you know of any good source of usage examples or templates I can build off of?

On 2013/01/28, at 18:07, Tariq Iqbal <ta...@shapeblue.com> wrote:

> Hi Jake,
>
> The API is included in the base cloudstack install, in fact the cloudstack UI is based on it.
>
> Further details for using the API can be found in the developers guide: http://incubator.apache.org/cloudstack/docs/en-US/Apache_CloudStack/4.0.0-incubating/html/API_Developers_Guide/index.html
>
> There are also a number of clients available should you want to use these - Python, Php, Perl, Ruby including CloudMonkey!
>
> Regards,
>
> Tariq Iqbal
>
> S: +44 20 3603 0540 | M: +447909911600
>
> tariq.iqbal@shapeblue.com
>
>
> -----Original Message-----
> From: Jake G. [mailto:dj_dark_junglist@yahoo.com]
> Sent: 28 January 2013 06:07
> To: cloudstack-users@incubator.apache.org
> Subject: CloudStack 4.0 API
>
> Hi all!
>
> I have cloudstack 4.0 installed from YUM on CentOS 6. I want to start testing with the API but wondering if I have to install anything extra or if the API is already included in the base cloudstack install.
>
> Thank you,
> Jake
> ShapeBlue provides a range of strategic and technical consulting and implementation services to help IT Service Providers and Enterprises to build a true IaaS compute cloud. ShapeBlue’s expertise, combined with CloudStack technology, allows IT Service Providers and Enterprises to deliver true, utility based, IaaS to the customer or end-user.
>
> ________________________________
>
> This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales.

ShapeBlue provides a range of strategic and technical consulting and implementation services to help IT Service Providers and Enterprises to build a true IaaS compute cloud. ShapeBlue’s expertise, combined with CloudStack technology, allows IT Service Providers and Enterprises to deliver true, utility based, IaaS to the customer or end-user.

________________________________

This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales.

Re: CloudStack 4.0 API

Posted by DJ Dark <Dj...@yahoo.com>.
Thanks for the reply!

Do you know of any good source of usage examples or templates I can build off of?

On 2013/01/28, at 18:07, Tariq Iqbal <ta...@shapeblue.com> wrote:

> Hi Jake,
> 
> The API is included in the base cloudstack install, in fact the cloudstack UI is based on it.
> 
> Further details for using the API can be found in the developers guide: http://incubator.apache.org/cloudstack/docs/en-US/Apache_CloudStack/4.0.0-incubating/html/API_Developers_Guide/index.html
> 
> There are also a number of clients available should you want to use these - Python, Php, Perl, Ruby including CloudMonkey!
> 
> Regards,
> 
> Tariq Iqbal
> 
> S: +44 20 3603 0540 | M: +447909911600
> 
> tariq.iqbal@shapeblue.com
> 
> 
> -----Original Message-----
> From: Jake G. [mailto:dj_dark_junglist@yahoo.com]
> Sent: 28 January 2013 06:07
> To: cloudstack-users@incubator.apache.org
> Subject: CloudStack 4.0 API
> 
> Hi all!
> 
> I have cloudstack 4.0 installed from YUM on CentOS 6. I want to start testing with the API but wondering if I have to install anything extra or if the API is already included in the base cloudstack install.
> 
> Thank you,
> Jake
> ShapeBlue provides a range of strategic and technical consulting and implementation services to help IT Service Providers and Enterprises to build a true IaaS compute cloud. ShapeBlue’s expertise, combined with CloudStack technology, allows IT Service Providers and Enterprises to deliver true, utility based, IaaS to the customer or end-user.
> 
> ________________________________
> 
> This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales.

RE: CloudStack 4.0 API

Posted by Tariq Iqbal <ta...@shapeblue.com>.
Hi Jake,

The API is included in the base cloudstack install, in fact the cloudstack UI is based on it.

Further details for using the API can be found in the developers guide: http://incubator.apache.org/cloudstack/docs/en-US/Apache_CloudStack/4.0.0-incubating/html/API_Developers_Guide/index.html

There are also a number of clients available should you want to use these - Python, Php, Perl, Ruby including CloudMonkey!

Regards,

Tariq Iqbal

S: +44 20 3603 0540 | M: +447909911600

tariq.iqbal@shapeblue.com


-----Original Message-----
From: Jake G. [mailto:dj_dark_junglist@yahoo.com]
Sent: 28 January 2013 06:07
To: cloudstack-users@incubator.apache.org
Subject: CloudStack 4.0 API

Hi all!

I have cloudstack 4.0 installed from YUM on CentOS 6. I want to start testing with the API but wondering if I have to install anything extra or if the API is already included in the base cloudstack install.

Thank you,
Jake
ShapeBlue provides a range of strategic and technical consulting and implementation services to help IT Service Providers and Enterprises to build a true IaaS compute cloud. ShapeBlue’s expertise, combined with CloudStack technology, allows IT Service Providers and Enterprises to deliver true, utility based, IaaS to the customer or end-user.

________________________________

This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales.

CloudStack 4.0 API

Posted by "Jake G." <dj...@yahoo.com>.
Hi all!

I have cloudstack 4.0 installed from YUM on CentOS 6. I want to start testing with the API but wondering if I have to install anything extra or if the API is already included in the base cloudstack install.

Thank you,
Jake

RE: Custom instance names ?

Posted by Pranav Saxena <pr...@citrix.com>.
Well , follow this well written document to set up your developer's environment- https://cwiki.apache.org/confluence/display/CLOUDSTACK/How+to+build+on+master+branch  :)  

Regards,
Pranav

-----Original Message-----
From: Jake G. [mailto:dj_dark_junglist@yahoo.com] 
Sent: Friday, January 25, 2013 11:20 AM
To: cloudstack-users@incubator.apache.org
Subject: Re: Custom instance names ?

Pranav,

OK
:( Took me forever to get cloudstack running installed and running perfect with advance zones.

Not sure I am ready to take on the developers environment just yet, unless you have any recommendations for good install instructions?

Thanks again!






________________________________
 From: Pranav Saxena <pr...@citrix.com>
To: Jake G. <dj...@yahoo.com>; "cloudstack-users@incubator.apache.org" <cl...@incubator.apache.org>
Sent: Friday, January 25, 2013 2:45 PM
Subject: RE: Custom instance names ?
 
I see , then you won’t be able to make the source code changes. You need to set up a developer’s environment from the links Ahmad just now shared and then build the source code after you have made the changes.

Thanks,
Pranav

From: Jake G. [mailto:dj_dark_junglist@yahoo.com]
Sent: Friday, January 25, 2013 11:12 AM
To: Pranav Saxena; cloudstack-users@incubator.apache.org
Subject: Re: Custom instance names ?

Pranav,

Is is not a developers environment just the normal version. I installed from a RPM with the repo # CloudStack Repository [cloudstack] name=cloudstack baseurl=http://cloudstack.apt-get.eu/rhel/4.0/
enabled=1
gpgcheck=0

I used yum install cloud-client to install




________________________________
From: Pranav Saxena <pr...@citrix.com>
To: "cloudstack-users@incubator.apache.org" <cl...@incubator.apache.org>; Jake G. <dj...@yahoo.com>
Sent: Friday, January 25, 2013 2:34 PM
Subject: RE: Custom instance names ?

Jake ,

Can you tell me how have you set up your environment for Cloudstack ?  Is it a developer's environment ?  If yes , then you must have cloned the cloudstack repository which contains all the source code files . You should be able to find that file in the path I mentioned previously.

Thanks,
Pranav

-----Original Message-----
From: Jake G. [mailto:dj_dark_junglist@yahoo.com<ma...@yahoo.com>]
Sent: Friday, January 25, 2013 11:03 AM
To: cloudstack-users@incubator.apache.org<ma...@incubator.apache.org>
Subject: Re: Custom instance names ?

Trying to find the file Pranav mentioned to do some testing but cant seem to find it. Any ideas?


________________________________
From: Ahmad Emneina <Ah...@citrix.com>>
To: "cloudstack-users@incubator.apache.org<ma...@incubator.apache.org>" <cl...@incubator.apache.org>>; Jake G. <dj...@yahoo.com>>
Sent: Friday, January 25, 2013 2:30 PM
Subject: Re: Custom instance names ?

Gotcha, you might want to check out the source code and find what Pranav was talking about. You'll have to modify more code if you want things like security groups to work... OR file a feature request. I don’t believe this behavior exists 'out of the box'.

On 1/24/13 9:23 PM, "Jake G." <dj...@yahoo.com>> wrote:

>Hi Ahmad,
>
>I am aware of that global setting, but the problem is I would like 
>instance name to include the company or user name of the account that 
>created the instance.
> 'instance.name<http://instance.name/>' Global setting only allows be 
>to add static text globally, which is not what I am trying to do.
>
>Thank you for your reply.
>Jake
>
>
>
>
>
>________________________________
> From: Ahmad Emneina 
><Ah...@citrix.com>>
>To: "cloudstack-users@incubator.apache.org<ma...@incubator.apache.org>"
><cl...@incubator.apache.org>>; Jake G.
><dj...@yahoo.com>>
>Sent: Friday, January 25, 2013 2:18 PM
>Subject: Re: Custom instance names ?
>
>
>>-----Original Message-----
>>From: Jake G. 
>>[mailto:dj_dark_junglist@yahoo.com<ma...@yahoo.com>]
>>Sent: Thursday, January 24, 2013 3:28 PM
>>To: 
>>cloudstack-users@incubator.apache.org<mailto:cloudstack-users@incubato
>>r.apache.org>
>>Subject: Custom instance names ?
>>
>>Hi All,
>>
>>Wondering if it is possible to include the Account Name or User Name 
>>in the instance name that is auto-created by cloudstack 4.0 (vCenter 5).
>>
>>Example:
>>Current naming schema -> i-50-VM
>>Custom naming schema -> i-50-VM-companyA   or 
>>i-50-VM-companyA-jimsmith
>>
>>Seems like it should be possible with some variables added somewhere, 
>>but not sure.
>>
>>Thank you for all your help!
>>
>>Jake
>
>
>Navigate to your global settings and search for 'instance.name'. There 
>you can append whatever you like, the default value is 'VM'. That¹s 
>where you get the instance name 'I-<account_id>-<vm_instance_id>-VM'.
>Since this is a global, all vm's managed by the cloudstack instance will reflect this.
>
>--
>Æ


--
Æ

Re: Custom instance names ?

Posted by "Jake G." <dj...@yahoo.com>.
Pranav,

OK 
:( Took me forever to get cloudstack running installed and running perfect with advance zones.

Not sure I am ready to take on the developers environment just yet, unless you have any recommendations for good install instructions?

Thanks again!






________________________________
 From: Pranav Saxena <pr...@citrix.com>
To: Jake G. <dj...@yahoo.com>; "cloudstack-users@incubator.apache.org" <cl...@incubator.apache.org> 
Sent: Friday, January 25, 2013 2:45 PM
Subject: RE: Custom instance names ?
 
I see , then you won’t be able to make the source code changes. You need to set up a developer’s environment from the links Ahmad just now shared and then build the source code after you have made the changes.

Thanks,
Pranav

From: Jake G. [mailto:dj_dark_junglist@yahoo.com]
Sent: Friday, January 25, 2013 11:12 AM
To: Pranav Saxena; cloudstack-users@incubator.apache.org
Subject: Re: Custom instance names ?

Pranav,

Is is not a developers environment just the normal version. I installed from a RPM with the repo
# CloudStack Repository
[cloudstack]
name=cloudstack
baseurl=http://cloudstack.apt-get.eu/rhel/4.0/ 
enabled=1
gpgcheck=0

I used yum install cloud-client to install




________________________________
From: Pranav Saxena <pr...@citrix.com>
To: "cloudstack-users@incubator.apache.org" <cl...@incubator.apache.org>; Jake G. <dj...@yahoo.com>
Sent: Friday, January 25, 2013 2:34 PM
Subject: RE: Custom instance names ?

Jake ,

Can you tell me how have you set up your environment for Cloudstack ?  Is it a developer's environment ?  If yes , then you must have cloned the cloudstack repository which contains all the source code files . You should be able to find that file in the path I mentioned previously.

Thanks,
Pranav

-----Original Message-----
From: Jake G. [mailto:dj_dark_junglist@yahoo.com<ma...@yahoo.com>]
Sent: Friday, January 25, 2013 11:03 AM
To: cloudstack-users@incubator.apache.org<ma...@incubator.apache.org>
Subject: Re: Custom instance names ?

Trying to find the file Pranav mentioned to do some testing but cant seem to find it. Any ideas?


________________________________
From: Ahmad Emneina <Ah...@citrix.com>>
To: "cloudstack-users@incubator.apache.org<ma...@incubator.apache.org>" <cl...@incubator.apache.org>>; Jake G. <dj...@yahoo.com>>
Sent: Friday, January 25, 2013 2:30 PM
Subject: Re: Custom instance names ?

Gotcha, you might want to check out the source code and find what Pranav was talking about. You'll have to modify more code if you want things like security groups to work... OR file a feature request. I don’t believe this behavior exists 'out of the box'.

On 1/24/13 9:23 PM, "Jake G." <dj...@yahoo.com>> wrote:

>Hi Ahmad,
>
>I am aware of that global setting, but the problem is I would like
>instance name to include the company or user name of the account that
>created the instance.
> 'instance.name<http://instance.name/>' Global setting only allows be to add static text
>globally, which is not what I am trying to do.
>
>Thank you for your reply.
>Jake
>
>
>
>
>
>________________________________
> From: Ahmad Emneina <Ah...@citrix.com>>
>To: "cloudstack-users@incubator.apache.org<ma...@incubator.apache.org>"
><cl...@incubator.apache.org>>; Jake G.
><dj...@yahoo.com>>
>Sent: Friday, January 25, 2013 2:18 PM
>Subject: Re: Custom instance names ?
>
>
>>-----Original Message-----
>>From: Jake G. [mailto:dj_dark_junglist@yahoo.com<ma...@yahoo.com>]
>>Sent: Thursday, January 24, 2013 3:28 PM
>>To: cloudstack-users@incubator.apache.org<ma...@incubator.apache.org>
>>Subject: Custom instance names ?
>>
>>Hi All,
>>
>>Wondering if it is possible to include the Account Name or User Name
>>in the instance name that is auto-created by cloudstack 4.0 (vCenter 5).
>>
>>Example:
>>Current naming schema -> i-50-VM
>>Custom naming schema -> i-50-VM-companyA   or
>>i-50-VM-companyA-jimsmith
>>
>>Seems like it should be possible with some variables added somewhere,
>>but not sure.
>>
>>Thank you for all your help!
>>
>>Jake
>
>
>Navigate to your global settings and search for 'instance.name'. There
>you can append whatever you like, the default value is 'VM'. That¹s
>where you get the instance name 'I-<account_id>-<vm_instance_id>-VM'.
>Since this is a global, all vm's managed by the cloudstack instance will reflect this.
>
>--
>Æ


--
Æ

RE: Custom instance names ?

Posted by Pranav Saxena <pr...@citrix.com>.
I see , then you won’t be able to make the source code changes. You need to set up a developer’s environment from the links Ahmad just now shared and then build the source code after you have made the changes.

Thanks,
Pranav

From: Jake G. [mailto:dj_dark_junglist@yahoo.com]
Sent: Friday, January 25, 2013 11:12 AM
To: Pranav Saxena; cloudstack-users@incubator.apache.org
Subject: Re: Custom instance names ?

Pranav,

Is is not a developers environment just the normal version. I installed from a RPM with the repo
# CloudStack Repository
[cloudstack]
name=cloudstack
baseurl=http://cloudstack.apt-get.eu/rhel/4.0/
enabled=1
gpgcheck=0

I used yum install cloud-client to install




________________________________
From: Pranav Saxena <pr...@citrix.com>
To: "cloudstack-users@incubator.apache.org" <cl...@incubator.apache.org>; Jake G. <dj...@yahoo.com>
Sent: Friday, January 25, 2013 2:34 PM
Subject: RE: Custom instance names ?

Jake ,

Can you tell me how have you set up your environment for Cloudstack ?  Is it a developer's environment ?  If yes , then you must have cloned the cloudstack repository which contains all the source code files . You should be able to find that file in the path I mentioned previously.

Thanks,
Pranav

-----Original Message-----
From: Jake G. [mailto:dj_dark_junglist@yahoo.com<ma...@yahoo.com>]
Sent: Friday, January 25, 2013 11:03 AM
To: cloudstack-users@incubator.apache.org<ma...@incubator.apache.org>
Subject: Re: Custom instance names ?

Trying to find the file Pranav mentioned to do some testing but cant seem to find it. Any ideas?


________________________________
From: Ahmad Emneina <Ah...@citrix.com>>
To: "cloudstack-users@incubator.apache.org<ma...@incubator.apache.org>" <cl...@incubator.apache.org>>; Jake G. <dj...@yahoo.com>>
Sent: Friday, January 25, 2013 2:30 PM
Subject: Re: Custom instance names ?

Gotcha, you might want to check out the source code and find what Pranav was talking about. You'll have to modify more code if you want things like security groups to work... OR file a feature request. I don’t believe this behavior exists 'out of the box'.

On 1/24/13 9:23 PM, "Jake G." <dj...@yahoo.com>> wrote:

>Hi Ahmad,
>
>I am aware of that global setting, but the problem is I would like
>instance name to include the company or user name of the account that
>created the instance.
> 'instance.name<http://instance.name/>' Global setting only allows be to add static text
>globally, which is not what I am trying to do.
>
>Thank you for your reply.
>Jake
>
>
>
>
>
>________________________________
> From: Ahmad Emneina <Ah...@citrix.com>>
>To: "cloudstack-users@incubator.apache.org<ma...@incubator.apache.org>"
><cl...@incubator.apache.org>>; Jake G.
><dj...@yahoo.com>>
>Sent: Friday, January 25, 2013 2:18 PM
>Subject: Re: Custom instance names ?
>
>
>>-----Original Message-----
>>From: Jake G. [mailto:dj_dark_junglist@yahoo.com<ma...@yahoo.com>]
>>Sent: Thursday, January 24, 2013 3:28 PM
>>To: cloudstack-users@incubator.apache.org<ma...@incubator.apache.org>
>>Subject: Custom instance names ?
>>
>>Hi All,
>>
>>Wondering if it is possible to include the Account Name or User Name
>>in the instance name that is auto-created by cloudstack 4.0 (vCenter 5).
>>
>>Example:
>>Current naming schema -> i-50-VM
>>Custom naming schema -> i-50-VM-companyA   or
>>i-50-VM-companyA-jimsmith
>>
>>Seems like it should be possible with some variables added somewhere,
>>but not sure.
>>
>>Thank you for all your help!
>>
>>Jake
>
>
>Navigate to your global settings and search for 'instance.name'. There
>you can append whatever you like, the default value is 'VM'. That¹s
>where you get the instance name 'I-<account_id>-<vm_instance_id>-VM'.
>Since this is a global, all vm's managed by the cloudstack instance will reflect this.
>
>--
>Æ


--
Æ


Re: Custom instance names ?

Posted by "Jake G." <dj...@yahoo.com>.
Pranav,

Is is not a developers environment just the normal version. I installed from a RPM with the repo
# CloudStack Repository
[cloudstack]
name=cloudstack
baseurl=http://cloudstack.apt-get.eu/rhel/4.0/
enabled=1
gpgcheck=0

I used yum install cloud-client to install






________________________________
 From: Pranav Saxena <pr...@citrix.com>
To: "cloudstack-users@incubator.apache.org" <cl...@incubator.apache.org>; Jake G. <dj...@yahoo.com> 
Sent: Friday, January 25, 2013 2:34 PM
Subject: RE: Custom instance names ?
 
Jake , 

Can you tell me how have you set up your environment for Cloudstack ?  Is it a developer's environment ?  If yes , then you must have cloned the cloudstack repository which contains all the source code files . You should be able to find that file in the path I mentioned previously. 

Thanks,
Pranav

-----Original Message-----
From: Jake G. [mailto:dj_dark_junglist@yahoo.com] 
Sent: Friday, January 25, 2013 11:03 AM
To: cloudstack-users@incubator.apache.org
Subject: Re: Custom instance names ?

Trying to find the file Pranav mentioned to do some testing but cant seem to find it. Any ideas?


________________________________
From: Ahmad Emneina <Ah...@citrix.com>
To: "cloudstack-users@incubator.apache.org" <cl...@incubator.apache.org>; Jake G. <dj...@yahoo.com>
Sent: Friday, January 25, 2013 2:30 PM
Subject: Re: Custom instance names ?

Gotcha, you might want to check out the source code and find what Pranav was talking about. You'll have to modify more code if you want things like security groups to work... OR file a feature request. I don’t believe this behavior exists 'out of the box'.

On 1/24/13 9:23 PM, "Jake G." <dj...@yahoo.com> wrote:

>Hi Ahmad,
>
>I am aware of that global setting, but the problem is I would like 
>instance name to include the company or user name of the account that 
>created the instance.
> 'instance.name' Global setting only allows be to add static text 
>globally, which is not what I am trying to do.
>
>Thank you for your reply.
>Jake
>
> 
>
>
>
>________________________________
> From: Ahmad Emneina <Ah...@citrix.com>
>To: "cloudstack-users@incubator.apache.org"
><cl...@incubator.apache.org>; Jake G.
><dj...@yahoo.com>
>Sent: Friday, January 25, 2013 2:18 PM
>Subject: Re: Custom instance names ?
> 
>
>>-----Original Message-----
>>From: Jake G. [mailto:dj_dark_junglist@yahoo.com]
>>Sent: Thursday, January 24, 2013 3:28 PM
>>To: cloudstack-users@incubator.apache.org
>>Subject: Custom instance names ?
>>
>>Hi All,
>>
>>Wondering if it is possible to include the Account Name or User Name 
>>in the instance name that is auto-created by cloudstack 4.0 (vCenter 5).
>>
>>Example:
>>Current naming schema -> i-50-VM
>>Custom naming schema -> i-50-VM-companyA   or   
>>i-50-VM-companyA-jimsmith
>>
>>Seems like it should be possible with some variables added somewhere, 
>>but not sure.
>>
>>Thank you for all your help!
>>
>>Jake
>
>
>Navigate to your global settings and search for 'instance.name'. There 
>you can append whatever you like, the default value is 'VM'. That¹s 
>where you get the instance name 'I-<account_id>-<vm_instance_id>-VM'. 
>Since this is a global, all vm's managed by the cloudstack instance will reflect this.
>
>--
>Æ


-- 
Æ

RE: Custom instance names ?

Posted by Pranav Saxena <pr...@citrix.com>.
Jake , 

Can you tell me how have you set up your environment for Cloudstack ?  Is it a developer's environment ?  If yes , then you must have cloned the cloudstack repository which contains all the source code files . You should be able to find that file in the path I mentioned previously. 

Thanks,
Pranav

-----Original Message-----
From: Jake G. [mailto:dj_dark_junglist@yahoo.com] 
Sent: Friday, January 25, 2013 11:03 AM
To: cloudstack-users@incubator.apache.org
Subject: Re: Custom instance names ?

Trying to find the file Pranav mentioned to do some testing but cant seem to find it. Any ideas?


________________________________
 From: Ahmad Emneina <Ah...@citrix.com>
To: "cloudstack-users@incubator.apache.org" <cl...@incubator.apache.org>; Jake G. <dj...@yahoo.com>
Sent: Friday, January 25, 2013 2:30 PM
Subject: Re: Custom instance names ?
 
Gotcha, you might want to check out the source code and find what Pranav was talking about. You'll have to modify more code if you want things like security groups to work... OR file a feature request. I don’t believe this behavior exists 'out of the box'.

On 1/24/13 9:23 PM, "Jake G." <dj...@yahoo.com> wrote:

>Hi Ahmad,
>
>I am aware of that global setting, but the problem is I would like 
>instance name to include the company or user name of the account that 
>created the instance.
> 'instance.name' Global setting only allows be to add static text 
>globally, which is not what I am trying to do.
>
>Thank you for your reply.
>Jake
>
> 
>
>
>
>________________________________
> From: Ahmad Emneina <Ah...@citrix.com>
>To: "cloudstack-users@incubator.apache.org"
><cl...@incubator.apache.org>; Jake G.
><dj...@yahoo.com>
>Sent: Friday, January 25, 2013 2:18 PM
>Subject: Re: Custom instance names ?
> 
>
>>-----Original Message-----
>>From: Jake G. [mailto:dj_dark_junglist@yahoo.com]
>>Sent: Thursday, January 24, 2013 3:28 PM
>>To: cloudstack-users@incubator.apache.org
>>Subject: Custom instance names ?
>>
>>Hi All,
>>
>>Wondering if it is possible to include the Account Name or User Name 
>>in the instance name that is auto-created by cloudstack 4.0 (vCenter 5).
>>
>>Example:
>>Current naming schema -> i-50-VM
>>Custom naming schema -> i-50-VM-companyA   or   
>>i-50-VM-companyA-jimsmith
>>
>>Seems like it should be possible with some variables added somewhere, 
>>but not sure.
>>
>>Thank you for all your help!
>>
>>Jake
>
>
>Navigate to your global settings and search for 'instance.name'. There 
>you can append whatever you like, the default value is 'VM'. That¹s 
>where you get the instance name 'I-<account_id>-<vm_instance_id>-VM'. 
>Since this is a global, all vm's managed by the cloudstack instance will reflect this.
>
>--
>Æ


-- 
Æ

Re: Custom instance names ?

Posted by Ahmad Emneina <Ah...@citrix.com>.
Get git: http://git-scm.com/download

Then clone the following repository:
https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git


On 1/24/13 9:32 PM, "Jake G." <dj...@yahoo.com> wrote:

>Trying to find the file Pranav mentioned to do some testing but cant seem
>to find it. Any ideas?
>
>
>________________________________
> From: Ahmad Emneina <Ah...@citrix.com>
>To: "cloudstack-users@incubator.apache.org"
><cl...@incubator.apache.org>; Jake G.
><dj...@yahoo.com>
>Sent: Friday, January 25, 2013 2:30 PM
>Subject: Re: Custom instance names ?
> 
>Gotcha, you might want to check out the source code and find what Pranav
>was talking about. You'll have to modify more code if you want things like
>security groups to work... OR file a feature request. I don’t believe this
>behavior exists 'out of the box'.
>
>On 1/24/13 9:23 PM, "Jake G." <dj...@yahoo.com> wrote:
>
>>Hi Ahmad,
>>
>>I am aware of that global setting, but the problem is I would like
>>instance name to include the company or user name of the account that
>>created the instance.
>> 'instance.name' Global setting only allows be to add static text
>>globally, which is not what I am trying to do.
>>
>>Thank you for your reply.
>>Jake 
>>
>> 
>>
>>
>>
>>________________________________
>> From: Ahmad Emneina <Ah...@citrix.com>
>>To: "cloudstack-users@incubator.apache.org"
>><cl...@incubator.apache.org>; Jake G.
>><dj...@yahoo.com>
>>Sent: Friday, January 25, 2013 2:18 PM
>>Subject: Re: Custom instance names ?
>> 
>>
>>>-----Original Message-----
>>>From: Jake G. [mailto:dj_dark_junglist@yahoo.com]
>>>Sent: Thursday, January 24, 2013 3:28 PM
>>>To: cloudstack-users@incubator.apache.org
>>>Subject: Custom instance names ?
>>>
>>>Hi All,
>>>
>>>Wondering if it is possible to include the Account Name or User Name in
>>>the instance name that is auto-created by cloudstack 4.0 (vCenter 5).
>>>
>>>Example:
>>>Current naming schema -> i-50-VM
>>>Custom naming schema -> i-50-VM-companyA   or
>>>i-50-VM-companyA-jimsmith
>>>
>>>Seems like it should be possible with some variables added somewhere,
>>>but
>>>not sure.
>>>
>>>Thank you for all your help!
>>>
>>>Jake
>>
>>
>>Navigate to your global settings and search for 'instance.name'. There
>>you
>>can append whatever you like, the default value is 'VM'. That¹s where you
>>get the instance name 'I-<account_id>-<vm_instance_id>-VM'. Since this is
>>a global, all vm's managed by the cloudstack instance will reflect this.
>>
>>-- 
>>Æ
>
>
>-- 
>Æ


-- 
Æ




Re: Custom instance names ?

Posted by "Jake G." <dj...@yahoo.com>.
Trying to find the file Pranav mentioned to do some testing but cant seem to find it. Any ideas?


________________________________
 From: Ahmad Emneina <Ah...@citrix.com>
To: "cloudstack-users@incubator.apache.org" <cl...@incubator.apache.org>; Jake G. <dj...@yahoo.com> 
Sent: Friday, January 25, 2013 2:30 PM
Subject: Re: Custom instance names ?
 
Gotcha, you might want to check out the source code and find what Pranav
was talking about. You'll have to modify more code if you want things like
security groups to work... OR file a feature request. I don’t believe this
behavior exists 'out of the box'.

On 1/24/13 9:23 PM, "Jake G." <dj...@yahoo.com> wrote:

>Hi Ahmad,
>
>I am aware of that global setting, but the problem is I would like
>instance name to include the company or user name of the account that
>created the instance.
> 'instance.name' Global setting only allows be to add static text
>globally, which is not what I am trying to do.
>
>Thank you for your reply.
>Jake 
>
> 
>
>
>
>________________________________
> From: Ahmad Emneina <Ah...@citrix.com>
>To: "cloudstack-users@incubator.apache.org"
><cl...@incubator.apache.org>; Jake G.
><dj...@yahoo.com>
>Sent: Friday, January 25, 2013 2:18 PM
>Subject: Re: Custom instance names ?
> 
>
>>-----Original Message-----
>>From: Jake G. [mailto:dj_dark_junglist@yahoo.com]
>>Sent: Thursday, January 24, 2013 3:28 PM
>>To: cloudstack-users@incubator.apache.org
>>Subject: Custom instance names ?
>>
>>Hi All,
>>
>>Wondering if it is possible to include the Account Name or User Name in
>>the instance name that is auto-created by cloudstack 4.0 (vCenter 5).
>>
>>Example:
>>Current naming schema -> i-50-VM
>>Custom naming schema -> i-50-VM-companyA   or   i-50-VM-companyA-jimsmith
>>
>>Seems like it should be possible with some variables added somewhere, but
>>not sure.
>>
>>Thank you for all your help!
>>
>>Jake
>
>
>Navigate to your global settings and search for 'instance.name'. There you
>can append whatever you like, the default value is 'VM'. That¹s where you
>get the instance name 'I-<account_id>-<vm_instance_id>-VM'. Since this is
>a global, all vm's managed by the cloudstack instance will reflect this.
>
>-- 
>Æ


-- 
Æ

Re: Custom instance names ?

Posted by Ahmad Emneina <Ah...@citrix.com>.
Gotcha, you might want to check out the source code and find what Pranav
was talking about. You'll have to modify more code if you want things like
security groups to work... OR file a feature request. I don’t believe this
behavior exists 'out of the box'.

On 1/24/13 9:23 PM, "Jake G." <dj...@yahoo.com> wrote:

>Hi Ahmad,
>
>I am aware of that global setting, but the problem is I would like
>instance name to include the company or user name of the account that
>created the instance.
> 'instance.name' Global setting only allows be to add static text
>globally, which is not what I am trying to do.
>
>Thank you for your reply.
>Jake 
>
> 
>
>
>
>________________________________
> From: Ahmad Emneina <Ah...@citrix.com>
>To: "cloudstack-users@incubator.apache.org"
><cl...@incubator.apache.org>; Jake G.
><dj...@yahoo.com>
>Sent: Friday, January 25, 2013 2:18 PM
>Subject: Re: Custom instance names ?
> 
>
>>-----Original Message-----
>>From: Jake G. [mailto:dj_dark_junglist@yahoo.com]
>>Sent: Thursday, January 24, 2013 3:28 PM
>>To: cloudstack-users@incubator.apache.org
>>Subject: Custom instance names ?
>>
>>Hi All,
>>
>>Wondering if it is possible to include the Account Name or User Name in
>>the instance name that is auto-created by cloudstack 4.0 (vCenter 5).
>>
>>Example:
>>Current naming schema -> i-50-VM
>>Custom naming schema -> i-50-VM-companyA   or   i-50-VM-companyA-jimsmith
>>
>>Seems like it should be possible with some variables added somewhere, but
>>not sure.
>>
>>Thank you for all your help!
>>
>>Jake
>
>
>Navigate to your global settings and search for 'instance.name'. There you
>can append whatever you like, the default value is 'VM'. That¹s where you
>get the instance name 'I-<account_id>-<vm_instance_id>-VM'. Since this is
>a global, all vm's managed by the cloudstack instance will reflect this.
>
>-- 
>Æ


-- 
Æ




Re: Custom instance names ?

Posted by "Jake G." <dj...@yahoo.com>.
Hi Ahmad,

I am aware of that global setting, but the problem is I would like instance name to include the company or user name of the account that created the instance.
 'instance.name' Global setting only allows be to add static text globally, which is not what I am trying to do.

Thank you for your reply.
Jake 

 



________________________________
 From: Ahmad Emneina <Ah...@citrix.com>
To: "cloudstack-users@incubator.apache.org" <cl...@incubator.apache.org>; Jake G. <dj...@yahoo.com> 
Sent: Friday, January 25, 2013 2:18 PM
Subject: Re: Custom instance names ?
 

>-----Original Message-----
>From: Jake G. [mailto:dj_dark_junglist@yahoo.com]
>Sent: Thursday, January 24, 2013 3:28 PM
>To: cloudstack-users@incubator.apache.org
>Subject: Custom instance names ?
>
>Hi All,
>
>Wondering if it is possible to include the Account Name or User Name in
>the instance name that is auto-created by cloudstack 4.0 (vCenter 5).
>
>Example:
>Current naming schema -> i-50-VM
>Custom naming schema -> i-50-VM-companyA   or   i-50-VM-companyA-jimsmith
>
>Seems like it should be possible with some variables added somewhere, but
>not sure.
>
>Thank you for all your help!
>
>Jake


Navigate to your global settings and search for 'instance.name'. There you
can append whatever you like, the default value is 'VM'. That¹s where you
get the instance name 'I-<account_id>-<vm_instance_id>-VM'. Since this is
a global, all vm's managed by the cloudstack instance will reflect this.

-- 
Æ

Re: Custom instance names ?

Posted by Ahmad Emneina <Ah...@citrix.com>.
>-----Original Message-----
>From: Jake G. [mailto:dj_dark_junglist@yahoo.com]
>Sent: Thursday, January 24, 2013 3:28 PM
>To: cloudstack-users@incubator.apache.org
>Subject: Custom instance names ?
>
>Hi All,
>
>Wondering if it is possible to include the Account Name or User Name in
>the instance name that is auto-created by cloudstack 4.0 (vCenter 5).
>
>Example:
>Current naming schema -> i-50-VM
>Custom naming schema -> i-50-VM-companyA   or   i-50-VM-companyA-jimsmith
>
>Seems like it should be possible with some variables added somewhere, but
>not sure.
>
>Thank you for all your help!
>
>Jake


Navigate to your global settings and search for 'instance.name'. There you
can append whatever you like, the default value is 'VM'. That¹s where you
get the instance name 'I-<account_id>-<vm_instance_id>-VM'. Since this is
a global, all vm's managed by the cloudstack instance will reflect this.

-- 
Æ




Re: Custom instance names ?

Posted by "Jake G." <dj...@yahoo.com>.
Hi Pranav,

I am using CentOS 6.3. I tried to find that file again but still no luck. I even tried  the search find -name VirtualMachineName.java without results.

Could the path be different for CentOS? I dont think I understand exactly where you are asking me to look. Could you clarify for me?

Thanks again,
Jake





________________________________
 From: Pranav Saxena <pr...@citrix.com>
To: "cloudstack-users@incubator.apache.org" <cl...@incubator.apache.org>; Jake G. <dj...@yahoo.com> 
Sent: Friday, January 25, 2013 11:25 AM
Subject: RE: Custom instance names ?
 
HI  Jake ,

When you would cloned the incubator-cloudstack repository , you just need to navigate to this path within it - core/src/com/cloud/vm/VirtualMachineName.java .

Hope you are able to find this.

Thanks,
Pranav

-----Original Message-----
From: Jake G. [mailto:dj_dark_junglist@yahoo.com] 
Sent: Friday, January 25, 2013 7:01 AM
To: cloudstack-users@incubator.apache.org
Subject: Re: Custom instance names ?

Hi Pranav,

Thanks for the reply. I cannot seem to find the file VirtualMachineName.java on my management server. Would you happen to know the full path?
I installed this cloudstack from a repository and not from source as per the official installation documentation.

Best regards,
Jake


________________________________
From: Pranav Saxena <pr...@citrix.com>
To: "cloudstack-users@incubator.apache.org" <cl...@incubator.apache.org>; Jake G. <dj...@yahoo.com> 
Sent: Thursday, January 24, 2013 8:12 PM
Subject: RE: Custom instance names ?

Hey Jake ,

I think this should be very much possible but would require some effort to modify the java code here - incubator-cloudstack/core/src/com/cloud/vm/VirtualMachineName.java . This file tries to use the StringBuilder class to generate the VM name ( instance or router VM etc) and writing it to the db.

Thanks,
Pranav

-----Original Message-----
From: Jake G. [mailto:dj_dark_junglist@yahoo.com] 
Sent: Thursday, January 24, 2013 3:28 PM
To: cloudstack-users@incubator.apache.org
Subject: Custom instance names ?

Hi All,

Wondering if it is possible to include the Account Name or User Name in the instance name that is auto-created by cloudstack 4.0 (vCenter 5).

Example:
Current naming schema -> i-50-VM
Custom naming schema -> i-50-VM-companyA   or   i-50-VM-companyA-jimsmith

Seems like it should be possible with some variables added somewhere, but not sure.

Thank you for all your help!

Jake

RE: Custom instance names ?

Posted by Pranav Saxena <pr...@citrix.com>.
HI  Jake ,

When you would cloned the incubator-cloudstack repository , you just need to navigate to this path within it - core/src/com/cloud/vm/VirtualMachineName.java .

Hope you are able to find this.

Thanks,
Pranav

-----Original Message-----
From: Jake G. [mailto:dj_dark_junglist@yahoo.com] 
Sent: Friday, January 25, 2013 7:01 AM
To: cloudstack-users@incubator.apache.org
Subject: Re: Custom instance names ?

Hi Pranav,

Thanks for the reply. I cannot seem to find the file VirtualMachineName.java on my management server. Would you happen to know the full path?
I installed this cloudstack from a repository and not from source as per the official installation documentation.

Best regards,
Jake


________________________________
 From: Pranav Saxena <pr...@citrix.com>
To: "cloudstack-users@incubator.apache.org" <cl...@incubator.apache.org>; Jake G. <dj...@yahoo.com> 
Sent: Thursday, January 24, 2013 8:12 PM
Subject: RE: Custom instance names ?
 
Hey Jake ,

I think this should be very much possible but would require some effort to modify the java code here - incubator-cloudstack/core/src/com/cloud/vm/VirtualMachineName.java . This file tries to use the StringBuilder class to generate the VM name ( instance or router VM etc) and writing it to the db.

Thanks,
Pranav

-----Original Message-----
From: Jake G. [mailto:dj_dark_junglist@yahoo.com] 
Sent: Thursday, January 24, 2013 3:28 PM
To: cloudstack-users@incubator.apache.org
Subject: Custom instance names ?

Hi All,

Wondering if it is possible to include the Account Name or User Name in the instance name that is auto-created by cloudstack 4.0 (vCenter 5).

Example:
Current naming schema -> i-50-VM
Custom naming schema -> i-50-VM-companyA   or   i-50-VM-companyA-jimsmith

Seems like it should be possible with some variables added somewhere, but not sure.

Thank you for all your help!

Jake

Re: Custom instance names ?

Posted by "Jake G." <dj...@yahoo.com>.
Hi Pranav,

Thanks for the reply. I cannot seem to find the file VirtualMachineName.java on my management server. Would you happen to know the full path?
I installed this cloudstack from a repository and not from source as per the official installation documentation.

Best regards,
Jake


________________________________
 From: Pranav Saxena <pr...@citrix.com>
To: "cloudstack-users@incubator.apache.org" <cl...@incubator.apache.org>; Jake G. <dj...@yahoo.com> 
Sent: Thursday, January 24, 2013 8:12 PM
Subject: RE: Custom instance names ?
 
Hey Jake ,

I think this should be very much possible but would require some effort to modify the java code here - incubator-cloudstack/core/src/com/cloud/vm/VirtualMachineName.java . This file tries to use the StringBuilder class to generate the VM name ( instance or router VM etc) and writing it to the db.

Thanks,
Pranav

-----Original Message-----
From: Jake G. [mailto:dj_dark_junglist@yahoo.com] 
Sent: Thursday, January 24, 2013 3:28 PM
To: cloudstack-users@incubator.apache.org
Subject: Custom instance names ?

Hi All,

Wondering if it is possible to include the Account Name or User Name in the instance name that is auto-created by cloudstack 4.0 (vCenter 5).

Example:
Current naming schema -> i-50-VM
Custom naming schema -> i-50-VM-companyA   or   i-50-VM-companyA-jimsmith

Seems like it should be possible with some variables added somewhere, but not sure.

Thank you for all your help!

Jake

RE: Custom instance names ?

Posted by Pranav Saxena <pr...@citrix.com>.
Hey Jake ,

I think this should be very much possible but would require some effort to modify the java code here - incubator-cloudstack/core/src/com/cloud/vm/VirtualMachineName.java . This file tries to use the StringBuilder class to generate the VM name ( instance or router VM etc) and writing it to the db.

Thanks,
Pranav

-----Original Message-----
From: Jake G. [mailto:dj_dark_junglist@yahoo.com] 
Sent: Thursday, January 24, 2013 3:28 PM
To: cloudstack-users@incubator.apache.org
Subject: Custom instance names ?

Hi All,

Wondering if it is possible to include the Account Name or User Name in the instance name that is auto-created by cloudstack 4.0 (vCenter 5).

Example:
Current naming schema -> i-50-VM
Custom naming schema -> i-50-VM-companyA   or   i-50-VM-companyA-jimsmith

Seems like it should be possible with some variables added somewhere, but not sure.

Thank you for all your help!

Jake