Closed dangermccann closed 10 years ago
what are the node definitions that you get out of the ec2 plugin? specifically, what is the hostname
value set to?
you can view the XML for all of the nodes by entering the following URL after logging into rundeck:
http://<rundeck>/api/11/project/<projectname>/resources
What is the mapping configuration you use for the ec2 plugin?
It looks like some of the hostnames are empty strings. But others are not. The ones that have the hostname set to an empty string are the ones that aren't working. Why are some hostnames not being set?
OK, user error. These VMs are in a private VPC. I have fixed the issue by adding this to my mapping: hostname.selector=privateDnsName
When I create a job that is intended to be dispatched to nodes that are discovered by this plugin, the job actually runs on the local rundeck host, not the target EC2 node. This problem is unique to nodes that are discovered by this plugin. If I manually add the EC2 node to my resources.xml file, the job is correctly dispatched to the node.
The XML below will output the hostname of the rundeck server, not the hostname of the target node.