Re: Error on Terraform with creating many networks

2017-08-14 Thread Simon Weller

Dennis,


Cloudstack is an Orchestrator, so it works well with all of the major 
hypervisors (KVM, XenServer, VMWare et al). Each hypervisor has it's own 
limitations and all of them work slightly differently in terms of how they 
support various features.


- Si



From: Dennis Meyer <snooop...@gmail.com>
Sent: Monday, August 14, 2017 6:32 AM
To: users@cloudstack.apache.org
Subject: Re: Error on Terraform with creating many networks

Is this limitation only on XenServer? What Hypervisor works best with
CloudStack?

2017-08-14 13:27 GMT+02:00 Paul Angus <paul.an...@shapeblue.com>:

> XenServer only supports 7 vNICs on a guest which obviously limits the
> number of tiers, and although vSphere supports 10, there seems to be a code
> bug which means guests can't start if they have more than 7 NICs attached
> (although you can attach more once the instances has started).
>
>
> Kind regards,
>
> Paul Angus
>
> paul.an...@shapeblue.com
> www.shapeblue.com<http://www.shapeblue.com>
[http://www.shapeblue.com/wp-content/uploads/2017/06/logo.png]<http://www.shapeblue.com/>

Shapeblue - The CloudStack Company<http://www.shapeblue.com/>
www.shapeblue.com
Rapid deployment framework for Apache CloudStack IaaS Clouds. CSForge is a 
framework developed by ShapeBlue to deliver the rapid deployment of a 
standardised ...



> 53 Chandos Place, Covent Garden, London  WC2N 4HSUK
> @shapeblue
>
>
>
>
> -Original Message-
> From: Rene Moser [mailto:m...@renemoser.net]
> Sent: 14 August 2017 11:12
> To: users@cloudstack.apache.org
> Subject: Re: Error on Terraform with creating many networks
>
> Hi Dennis
>
> On 08/14/2017 11:46 AM, Dennis Meyer wrote:
> > Hi,
> > i try to create a vpc and some networks with terraform.
>
> Not sure but wasn't there a issue with more than (or equal 8) VPC networks?
>
> https://issues.apache.org/jira/browse/CLOUDSTACK-
>
> However, not sure which versions of cloudstack is affected.
>
> René
>
>


Re: Error on Terraform with creating many networks

2017-08-14 Thread Dennis Meyer
Is this limitation only on XenServer? What Hypervisor works best with
CloudStack?

2017-08-14 13:27 GMT+02:00 Paul Angus <paul.an...@shapeblue.com>:

> XenServer only supports 7 vNICs on a guest which obviously limits the
> number of tiers, and although vSphere supports 10, there seems to be a code
> bug which means guests can't start if they have more than 7 NICs attached
> (although you can attach more once the instances has started).
>
>
> Kind regards,
>
> Paul Angus
>
> paul.an...@shapeblue.com
> www.shapeblue.com
> 53 Chandos Place, Covent Garden, London  WC2N 4HSUK
> @shapeblue
>
>
>
>
> -Original Message-
> From: Rene Moser [mailto:m...@renemoser.net]
> Sent: 14 August 2017 11:12
> To: users@cloudstack.apache.org
> Subject: Re: Error on Terraform with creating many networks
>
> Hi Dennis
>
> On 08/14/2017 11:46 AM, Dennis Meyer wrote:
> > Hi,
> > i try to create a vpc and some networks with terraform.
>
> Not sure but wasn't there a issue with more than (or equal 8) VPC networks?
>
> https://issues.apache.org/jira/browse/CLOUDSTACK-
>
> However, not sure which versions of cloudstack is affected.
>
> René
>
>


Re: Error on Terraform with creating many networks

2017-08-14 Thread Rene Moser
Hi Dennis

On 08/14/2017 11:46 AM, Dennis Meyer wrote:
> Hi,
> i try to create a vpc and some networks with terraform.

Not sure but wasn't there a issue with more than (or equal 8) VPC networks?

https://issues.apache.org/jira/browse/CLOUDSTACK-

However, not sure which versions of cloudstack is affected.

René



Error on Terraform with creating many networks

2017-08-14 Thread Dennis Meyer
Hi,
i try to create a vpc and some networks with terraform.
Thats my main.tf:

# creating the vpc
resource "cloudstack_vpc" "myvpc" {
  name  = "myvpc"
  cidr  = "10.230.0.0/16"
  vpc_offering  = "Default VPC offering"
  zone  = "${var.zone}"
  project   = "${var.project}"
}

# create our network inside the vpc
resource "cloudstack_network" "public" {
  name  = "public"
  cidr  = "10.230.200.0/24"
  network_offering  = "Default VPC Network with LB"
  zone  = "${var.zone}"
  vpc_id= "${cloudstack_vpc.myvpc.id}"
  project   = "${var.project}"
  acl_id= "ebefcc96-75f5-11e7-adb3-e2bd27d4977e" # default
static id of cloudstack
  depends_on= ["cloudstack_vpc.myvpc"]
}

# create our network inside the vpc
resource "cloudstack_network" "network1" {
  name  = "network1"
  cidr  = "10.230.1.0/24"
  gateway   = "10.230.1.1"
  network_offering  = "${var.network_offering_internalwithrouter}"
  zone  = "${var.zone}"
  vpc_id= "${cloudstack_vpc.myvpc.id}"
  project   = "${var.project}"
  acl_id= "ebefcc96-75f5-11e7-adb3-e2bd27d4977e" # default
static id of cloudstack
  depends_on= ["cloudstack_network.public"]
}

# create our network inside the vpc
resource "cloudstack_network" "network2" {
  name  = "network2"
  cidr  = "10.230.2.0/24"
  gateway   = "10.230.2.1"
  network_offering  = "${var.network_offering_internalwithrouter}"
  zone  = "${var.zone}"
  vpc_id= "${cloudstack_vpc.myvpc.id}"
  project   = "${var.project}"
  acl_id= "ebefcc96-75f5-11e7-adb3-e2bd27d4977e" # default
static id of cloudstack
  depends_on= ["cloudstack_network.network1"]
}

# create our network inside the vpc
resource "cloudstack_network" "network3" {
  name  = "network3"
  cidr  = "10.230.3.0/24"
  gateway   = "10.230.3.1"
  network_offering  = "${var.network_offering_internalwithrouter}"
  zone  = "${var.zone}"
  vpc_id= "${cloudstack_vpc.myvpc.id}"
  project   = "${var.project}"
  acl_id= "ebefcc96-75f5-11e7-adb3-e2bd27d4977e" # default
static id of cloudstack
  depends_on= ["cloudstack_network.network2"]
}
# create our network inside the vpc
resource "cloudstack_network" "network4" {
  name  = "network4"
  cidr  = "10.230.4.0/24"
  gateway   = "10.230.4.1"
  network_offering  = "${var.network_offering_internalwithrouter}"
  zone  = "${var.zone}"
  vpc_id= "${cloudstack_vpc.myvpc.id}"
  project   = "${var.project}"
  acl_id= "ebefcc96-75f5-11e7-adb3-e2bd27d4977e" # default
static id of cloudstack
  depends_on= ["cloudstack_network.network3"]
}
# create our network inside the vpc
resource "cloudstack_network" "network5" {
  name  = "network5"
  cidr  = "10.230.5.0/24"
  gateway   = "10.230.5.1"
  network_offering  = "${var.network_offering_internalwithrouter}"
  zone  = "${var.zone}"
  vpc_id= "${cloudstack_vpc.myvpc.id}"
  project   = "${var.project}"
  acl_id= "ebefcc96-75f5-11e7-adb3-e2bd27d4977e" # default
static id of cloudstack
  depends_on= ["cloudstack_network.network4"]
}
# create our network inside the vpc
resource "cloudstack_network" "network6" {
  name  = "network6"
  cidr  = "10.230.6.0/24"
  gateway   = "10.230.6.1"
  network_offering  = "${var.network_offering_internalwithrouter}"
  zone  = "${var.zone}"
  vpc_id= "${cloudstack_vpc.myvpc.id}"
  project   = "${var.project}"
  acl_id= "ebefcc96-75f5-11e7-adb3-e2bd27d4977e" # default
static id of cloudstack
  depends_on= ["cloudstack_network.network5"]
}


And thats the terraform error i get after applying this:
cloudstack_network.network6: Creating...
  acl_id:   "" => "ebefcc96-75f5-11e7-adb3-e2bd27d4977e"
  cidr: "" => "10.230.6.0/24"
  display_text: "" => ""
  endip:"" => ""
  gateway:  "" => "10.230.6.1"
  name: "" => "network6"
  network_domain:   "" => ""
  network_offering: "" => "VPC Default Network"
  project:  "" => "Meyer_TF"
  startip:  "" => ""
  tags.%:   "" => ""
  vpc_id:   "" => "5a418049-6e9a-49ef-af98-953f53a3262d"
  zone: "" => "Germany Nuernberg QSC"
Error applying plan:

1 error(s) occurred:

* cloudstack_network.network6: 1 error(s) occurred:

* cloudstack_network.network6: Error creating network network6: CloudStack
API error 530 (CSExceptionErrorCode: 4250): Internal error executing
command, please contact your system administrator

Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated