Hello everyone,<br><br><br>this is my first post in this list, so please forgive me if the question has already been posted. <br>Also, if this is not the right place for this question, please just let me know where I should go...<br>
<br><br>I am trying to get familiar with euca2ools. <br>I am running version 1.2 of the command line client [1]<br><br>The target is OpenStack version nova-essex.<br><br>I am trying to pass a value for the input variable  client_token. <br>
It is my understanding that EC2 interface accepts it. Seems to be part of the list of inputs for method run_instances() [2]<br>So what I have tried is to pass it from euca-run-instances [3], expecting to see it with euca-describe-instances. <br>
For that, I have added client_token to the list of inputs in print_instances() method [4]<br>However, when running   euca-describe-instances, the field for client_token appears blank. <br><br>So I am wondering if that variable is being ignored by nova-essex. <br>
Or I am not doing it in the right way...<br><br><br>Any comment is more than welcome.<br>Thanks a lot in advance,<br>Jose<br><br><br>------------------------------------------------------------------------------------------------------------------------------------<br>
[1]<br><br>
$ euca-run-instances --version<br>
    Version: 1.2 (BSD)<br><br>------------------------------------------------------------------------------------------------------------------------------------<br>[2]<br><br>$ cat /usr/lib/python2.7/site-package/boto/ec2/connection.py<br>
[...]<br>    def run_instances(self, image_id, min_count=1, max_count=1,<br>                      key_name=None, security_groups=None,<br>                      user_data=None, addressing_type=None,<br>                      instance_type='m1.small', placement=None,<br>
                      kernel_id=None, ramdisk_id=None,<br>                      monitoring_enabled=False, subnet_id=None,<br>                      block_device_map=None,<br>                      disable_api_termination=False,<br>
                      instance_initiated_shutdown_behavior=None,<br>                      private_ip_address=None,<br>                      placement_group=None, client_token=None,<br>                      security_group_ids=None):<br>
[...]<br><br>
------------------------------------------------------------------------------------------------------------------------------------<br>
[3]<br><br>$ cat euca-run-instances<br>[...]<br>           reservation = euca_conn.run_instances(<br>                image_id=image_id,<br>                min_count=min_count,<br>                max_count=max_count,<br>                key_name=keyname,<br>
                security_groups=group_names,<br>                user_data=user_data,<br>                addressing_type=addressing_type,<br>                instance_type=instance_type,<br>                placement=zone,<br>
                kernel_id=kernel_id,<br>                ramdisk_id=ramdisk_id,<br>                block_device_map=block_device_map,<br>                monitoring_enabled=monitor,<br>                subnet_id=subnet_id,<br>
                client_token="TESTING_CLIENT_TOKEN"<br>                )<br><br>[...]<br><br><br>

------------------------------------------------------------------------------------------------------------------------------------<br>

[4]<br><br>$ cat ..../euca2ools/__init__py<br>[...]<br>def print_instances(instances, nil=""):<br>    members=( "id", "image_id", "public_dns_name", "private_dns_name",<br>
        "state", "key_name", "ami_launch_index", "product_codes",<br>        "instance_type", "launch_time", "placement", "kernel",<br>        "ramdisk", "client_token" )<br>
<br>[...]<br><br><br>