Configure username on the EC2 plugin

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Configure username on the EC2 plugin

slider3
Hello,
I am trying to use the ec2 plugin to start ec2 instances running images that someone created for me. I configured everything well and hudson was able to launch a new ec2 instance but it failed trying to login. Then I found out that who created the image doesn't allow root login and created a user that I may use. The problem is that on hudson's plugin I have no way to configure the user, or am I missing something?
Also, I noticed that in the advanced options of the plugin there's a field 'User Data'. Anyone knows what's that for?
Thank you!
Reply | Threaded
Open this post in threaded view
|

Re: Configure username on the EC2 plugin

Kohsuke Kawaguchi
Administrator
I think this is already implemented in the latest EC2 plugin as
"remote admin" under the advanced button.

2010/2/14 Mário Duarte <[hidden email]>:

> Hello,
> I am trying to use the ec2 plugin to start ec2 instances running images that
> someone created for me. I configured everything well and hudson was able to
> launch a new ec2 instance but it failed trying to login. Then I found out
> that who created the image doesn't allow root login and created a user that
> I may use. The problem is that on hudson's plugin I have no way to configure
> the user, or am I missing something?
> Also, I noticed that in the advanced options of the plugin there's a field
> 'User Data'. Anyone knows what's that for?
> Thank you!
>



--
Kohsuke Kawaguchi

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Configure username on the EC2 plugin

slider3
Yes it is. I didn't have the latest version but now I've updated and I see that option.
Thank you.

On Tue, Feb 16, 2010 at 6:06 PM, Kohsuke Kawaguchi <[hidden email]> wrote:
I think this is already implemented in the latest EC2 plugin as
"remote admin" under the advanced button.

2010/2/14 Mário Duarte <[hidden email]>:
> Hello,
> I am trying to use the ec2 plugin to start ec2 instances running images that
> someone created for me. I configured everything well and hudson was able to
> launch a new ec2 instance but it failed trying to login. Then I found out
> that who created the image doesn't allow root login and created a user that
> I may use. The problem is that on hudson's plugin I have no way to configure
> the user, or am I missing something?
> Also, I noticed that in the advanced options of the plugin there's a field
> 'User Data'. Anyone knows what's that for?
> Thank you!
>



--
Kohsuke Kawaguchi

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: Configure username on the EC2 plugin

slider3
I just noticed now that if I restard hudson the configuration of the EC2 plugin is gone. I guess it is not being picked at start time.

2010/2/17 Mário Duarte <[hidden email]>
Yes it is. I didn't have the latest version but now I've updated and I see that option.
Thank you.


On Tue, Feb 16, 2010 at 6:06 PM, Kohsuke Kawaguchi <[hidden email]> wrote:
I think this is already implemented in the latest EC2 plugin as
"remote admin" under the advanced button.

2010/2/14 Mário Duarte <[hidden email]>:
> Hello,
> I am trying to use the ec2 plugin to start ec2 instances running images that
> someone created for me. I configured everything well and hudson was able to
> launch a new ec2 instance but it failed trying to login. Then I found out
> that who created the image doesn't allow root login and created a user that
> I may use. The problem is that on hudson's plugin I have no way to configure
> the user, or am I missing something?
> Also, I noticed that in the advanced options of the plugin there's a field
> 'User Data'. Anyone knows what's that for?
> Thank you!
>



--
Kohsuke Kawaguchi

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]



Reply | Threaded
Open this post in threaded view
|

Re: Configure username on the EC2 plugin

Kohsuke Kawaguchi-2
Mário Duarte wrote:
> I just noticed now that if I restard hudson the configuration of the EC2
> plugin is gone. I guess it is not being picked at start time.

Uh oh, does that mean we lost the forward compatibility of the
configuration data? That's very, very bad.

>
> 2010/2/17 Mário Duarte <[hidden email]>
>
>> Yes it is. I didn't have the latest version but now I've updated and I see
>> that option.
>> Thank you.
>>
>>
>> On Tue, Feb 16, 2010 at 6:06 PM, Kohsuke Kawaguchi <[hidden email]> wrote:
>>
>>> I think this is already implemented in the latest EC2 plugin as
>>> "remote admin" under the advanced button.
>>>
>>> 2010/2/14 Mário Duarte <[hidden email]>:
>>> > Hello,
>>> > I am trying to use the ec2 plugin to start ec2 instances running images
>>> that
>>> > someone created for me. I configured everything well and hudson was able
>>> to
>>> > launch a new ec2 instance but it failed trying to login. Then I found
>>> out
>>> > that who created the image doesn't allow root login and created a user
>>> that
>>> > I may use. The problem is that on hudson's plugin I have no way to
>>> configure
>>> > the user, or am I missing something?
>>> > Also, I noticed that in the advanced options of the plugin there's a
>>> field
>>> > 'User Data'. Anyone knows what's that for?
>>> > Thank you!
>>> >
>>>
>>>
>>>
>>> --
>>> Kohsuke Kawaguchi
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [hidden email]
>>> For additional commands, e-mail: [hidden email]
>>>
>>>
>>
>


--
Kohsuke Kawaguchi
Sun Microsystems                   http://weblogs.java.net/blog/kohsuke/

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Configure username on the EC2 plugin

slider3
Not just that. I re-configured the plugin and then restarted hudson again. And once again the configuration was gone.

On Fri, Feb 19, 2010 at 3:45 AM, Kohsuke Kawaguchi <[hidden email]> wrote:
Mário Duarte wrote:
> I just noticed now that if I restard hudson the configuration of the EC2
> plugin is gone. I guess it is not being picked at start time.

Uh oh, does that mean we lost the forward compatibility of the
configuration data? That's very, very bad.

>
> 2010/2/17 Mário Duarte <[hidden email]>
>
>> Yes it is. I didn't have the latest version but now I've updated and I see
>> that option.
>> Thank you.
>>
>>
>> On Tue, Feb 16, 2010 at 6:06 PM, Kohsuke Kawaguchi <[hidden email]> wrote:
>>
>>> I think this is already implemented in the latest EC2 plugin as
>>> "remote admin" under the advanced button.
>>>
>>> 2010/2/14 Mário Duarte <[hidden email]>:
>>> > Hello,
>>> > I am trying to use the ec2 plugin to start ec2 instances running images
>>> that
>>> > someone created for me. I configured everything well and hudson was able
>>> to
>>> > launch a new ec2 instance but it failed trying to login. Then I found
>>> out
>>> > that who created the image doesn't allow root login and created a user
>>> that
>>> > I may use. The problem is that on hudson's plugin I have no way to
>>> configure
>>> > the user, or am I missing something?
>>> > Also, I noticed that in the advanced options of the plugin there's a
>>> field
>>> > 'User Data'. Anyone knows what's that for?
>>> > Thank you!
>>> >
>>>
>>>
>>>
>>> --
>>> Kohsuke Kawaguchi
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [hidden email]
>>> For additional commands, e-mail: [hidden email]
>>>
>>>
>>
>


--
Kohsuke Kawaguchi
Sun Microsystems                   http://weblogs.java.net/blog/kohsuke/

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: Configure username on the EC2 plugin

slider3
Regarding this issue, I noticed these Exceptions in Hudson's log:
Feb 22, 2010 11:43:07 AM hudson.util.RobustReflectionConverter doUnmarshal
WARNING: Failed to resolve a type
java.lang.InstantiationError
	at hudson.util.DescribableList$ConverterImpl.unmarshal(DescribableList.java:236)
	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
	at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
	at hudson.util.RobustReflectionConverter.unmarshallField(RobustReflectionConverter.java:265)
	at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:223)
	at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:174)
	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
	at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
	at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
	at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
	at hudson.util.XStream2.unmarshal(XStream2.java:70)
	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
	at hudson.XmlFile.unmarshal(XmlFile.java:148)
	at hudson.model.Hudson$11.run(Hudson.java:2076)
	at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
	at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
	at hudson.model.Hudson$3.runTask(Hudson.java:649)
	at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
	at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.InstantiationException: hudson.plugins.ec2.EC2Cloud
	at java.lang.Class.newInstance0(Class.java:340)
	at java.lang.Class.newInstance(Class.java:308)
	at hudson.util.DescribableList$ConverterImpl.unmarshal(DescribableList.java:232)
	... 26 more
Feb 22, 2010 11:43:06 AM hudson.util.CopyOnWriteList$ConverterImpl unmarshal
WARNING: Failed to resolve class
java.lang.InstantiationError: hudson.plugins.ec2.EC2Cloud
	at sun.reflect.GeneratedSerializationConstructorAccessor5.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider.newInstance(Sun14ReflectionProvider.java:76)
	at hudson.util.RobustReflectionConverter.instantiateNewInstance(RobustReflectionConverter.java:306)
	at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:173)
	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
	at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
	at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
	at hudson.util.CopyOnWriteList$ConverterImpl.unmarshal(CopyOnWriteList.java:186)
	at hudson.util.DescribableList$ConverterImpl.unmarshal(DescribableList.java:229)
	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
	at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
	at hudson.util.RobustReflectionConverter.unmarshallField(RobustReflectionConverter.java:265)
	at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:223)
	at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:174)
	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
	at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
	at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
	at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
	at hudson.util.XStream2.unmarshal(XStream2.java:70)
	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
	at hudson.XmlFile.unmarshal(XmlFile.java:148)
	at hudson.model.Hudson$11.run(Hudson.java:2076)
	at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
	at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
	at hudson.model.Hudson$3.runTask(Hudson.java:649)
	at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
	at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)