incubator-cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcus Sorensen <shadow...@gmail.com>
Subject Re: iptonetworklist, networkids
Date Fri, 10 Aug 2012 19:42:38 GMT
I should mention that if I remove 'ipaddress' from the networkids
version, then it works. That's the only thing that works, though.

On Fri, Aug 10, 2012 at 1:24 PM, Marcus Sorensen <shadowsor@gmail.com> wrote:
> Hi all,
>   I'm testing the ability to specify an IP address to use, and have
> run into a few issues. I'm running 3.0.2 off of the website.
>
> If I use iptonetworklist,  I never even get the network I want. It
> creates a new private source nat network or uses the default one
> currently existing for the account. Doesn't complain though, it's as
> though it doesn't even see the parameters.
>
> If I use networkids, and specify an ipaddress, the resulting VM is in
> an error state. Looking at the VM, the resulting NIC is not set to
> default, and the job error code says "errortext Resource [Host:91] is
> unreachable: Host 91: Unable to start instance due to null /errortext
> "
>
> Am I doing something wrong?
>
> Here is an example of iptonetworklist:
>
> ?php
>
> $curl_parameters = array(
>  'command' => 'deployVirtualMachine',
>  'serviceofferingid' => '13ccbfab-66f5-4be3-86bf-d2d7bc67f117',
>  'templateid' => '3556a6f7-c3e1-46d4-ad73-1e7b3c721d87',
>  'zoneid' => '5f8e5844-f744-43fc-bacf-e316a65eab15',
>  'displayname' => 'marcustestb',
>  'name' => 'marcustestb',
>  'iptonetworklist[0].ip' => '67.11.4.232',
>  'iptonetworklist[0].networkid' => '4564ca5f-2711-45b2-a2f4-9f2a20d97ce1'
> );
>
> $curl_options = array(
>   CURLOPT_URL  => "http://localhost:8096/client/api?".
> http_build_query($curl_parameters),
>   CURLOPT_HTTP_VERSION => 1.0,
>   CURLOPT_RETURNTRANSFER => true,
>   CURLOPT_HEADER => false
> );
>
> $curl = curl_init();
> curl_setopt_array( $curl, $curl_options);
> $result = curl_exec($curl);
>
> if ( $error = curl_error($curl) )
> echo 'ERROR: ',$error;
>
> curl_close($curl);
> print $result;
> ?
>
>
>
> and my example of networkids:
>
> ?php
>
> $curl_parameters = array(
>  'command' => 'deployVirtualMachine',
>  'serviceofferingid' => '13ccbfab-66f5-4be3-86bf-d2d7bc67f117',
>  'templateid' => '3556a6f7-c3e1-46d4-ad73-1e7b3c721d87',
>  'zoneid' => '5f8e5844-f744-43fc-bacf-e316a65eab15',
>  'displayname' => 'marcustestb',
>  'name' => 'marcustestb',
>  'ipaddress' => '67.11.4.232',
>  'networkids' => '4564ca5f-2711-45b2-a2f4-9f2a20d97ce1'
> );
>
> $curl_options = array(
>   CURLOPT_URL  => "http://localhost:8096/client/api?".
> http_build_query($curl_parameters),
>   CURLOPT_HTTP_VERSION => 1.0,
>   CURLOPT_RETURNTRANSFER => true,
>   CURLOPT_HEADER => false
> );
>
> $curl = curl_init();
> curl_setopt_array( $curl, $curl_options);
> $result = curl_exec($curl);
>
> if ( $error = curl_error($curl) )
> echo 'ERROR: ',$error;
>
> curl_close($curl);
> print $result;
> ?

Mime
View raw message