equinix / terraform-equinix-metal-openstack

OpenStack Cloud on Equinix Metal
https://registry.terraform.io/modules/equinix/openstack/metal/latest
Apache License 2.0
13 stars 12 forks source link

Problem with asign IPv6 #74

Open halil-bugol opened 7 months ago

halil-bugol commented 7 months ago

I get an error like this when deploying Openstack. Do you have any ideas?

image (1)

displague commented 6 months ago

Based on https://github.com/equinix/terraform-metal-openstack/blob/main/ProviderNetwork.tf#L22-L29 which depends on https://github.com/equinix/terraform-metal-openstack/blob/main/BareMetal.tf#L13, what value are you using for the equinix_metal_create_project variable? Default is true.

If this was set to false and equinix_metal_project_id was not provided, I could see errors cropping up.

halil-bugol commented 6 months ago

I solved the IP problem. but now I think I'm getting an error related to the version and commands. Is the repo up to date? I think it gives errors at some points because it is not up to date. Do you know this error? @displague

null_resource.openstack-sample-workload-common: Still creating... [10s elapsed]
null_resource.openstack-sample-workload-common (remote-exec): Error while executing command: HttpException: 500, Request Failed: internal server error while processing your request.
null_resource.openstack-sample-workload-common (remote-exec): usage: openstack subnet create [-h] [-f {json,shell,table,value,yaml}]
null_resource.openstack-sample-workload-common (remote-exec):                                [-c COLUMN] [--noindent] [--prefix PREFIX]
null_resource.openstack-sample-workload-common (remote-exec):                                [--max-width <integer>] [--fit-width]
null_resource.openstack-sample-workload-common (remote-exec):                                [--print-empty] [--project <project>]
null_resource.openstack-sample-workload-common (remote-exec):                                [--project-domain <project-domain>]
null_resource.openstack-sample-workload-common (remote-exec):                                [--subnet-pool <subnet-pool> | --use-prefix-delegation USE_PREFIX_DELEGATION | --use-default-subnet-pool]
null_resource.openstack-sample-workload-common (remote-exec):                                [--prefix-length <prefix-length>]
null_resource.openstack-sample-workload-common (remote-exec):                                [--subnet-range <subnet-range>]
null_resource.openstack-sample-workload-common (remote-exec):                                [--dhcp | --no-dhcp]
null_resource.openstack-sample-workload-common (remote-exec):                                [--dns-publish-fixed-ip | --no-dns-publish-fixed-ip]
null_resource.openstack-sample-workload-common (remote-exec):                                [--gateway <gateway>] [--ip-version {4,6}]
null_resource.openstack-sample-workload-common (remote-exec):                                [--ipv6-ra-mode {dhcpv6-stateful,dhcpv6-stateless,slaac}]
null_resource.openstack-sample-workload-common (remote-exec):                                [--ipv6-address-mode {dhcpv6-stateful,dhcpv6-stateless,slaac}]
null_resource.openstack-sample-workload-common (remote-exec):                                [--network-segment <network-segment>] --network
null_resource.openstack-sample-workload-common (remote-exec):                                <network> [--description <description>]
null_resource.openstack-sample-workload-common (remote-exec):                                [--allocation-pool start=<ip-address>,end=<ip-address>]
null_resource.openstack-sample-workload-common (remote-exec):                                [--dns-nameserver <dns-nameserver>]
null_resource.openstack-sample-workload-common (remote-exec):                                [--host-route destination=<subnet>,gateway=<ip-address>]
null_resource.openstack-sample-workload-common (remote-exec):                                [--service-type <service-type>]
null_resource.openstack-sample-workload-common (remote-exec):                                [--tag <tag> | --no-tag]
null_resource.openstack-sample-workload-common (remote-exec):                                <name>
null_resource.openstack-sample-workload-common (remote-exec): openstack subnet create: error: argument --network: expected one argument
null_resource.openstack-sample-workload-common (remote-exec): usage: openstack router add subnet [-h] <router> <subnet>
null_resource.openstack-sample-workload-common (remote-exec): openstack router add subnet: error: the following arguments are required: <subnet>
╷
│ Error: remote-exec provisioner error
│ 
│   with null_resource.openstack-sample-workload-common,
│   on OpenStackSampleWorkload.tf line 36, in resource "null_resource" "openstack-sample-workload-common":
│   36:   provisioner "remote-exec" {
│ 
│ error executing "/tmp/terraform_1803657899.sh": Process exited with status 2
halil-bugol commented 6 months ago

ping @displague

displague commented 4 months ago

@halil-bugol there should be a PROVIDER4_ID debug output line ahead of that error. If the variable isn't set (is empty) that would make sense for the error you see. https://github.com/search?q=repo%3Aequinix%2Fterraform-equinix-metal-openstack%20%22--network%22&type=code

Checkout https://github.com/bjenkins-metal/openstack-cloud-foundation. It's a newer proof-of-concet project than this one and it has more recent deployment success.