Comments (9)
I had the same problem like @krystalcode. Root cause: I used the packet.net project name and not the real project id (see "Settings" tab within packet.net) as packet_project_id parameter.
from packet-terraform.
Hey there, would you post your terraform.tfvars
(obscure secrets, please) and paste that up for me to take a look?
from packet-terraform.
packet_api_key = "some-api-key"
packet_project_id = "some-project-id"
packet_facility = "sjc1"
packet_agent_type = "baremetal_0"
packet_master_type = "baremetal_0"
packet_boot_type = "baremetal_0"
dcos_cluster_name = "packet-dcos"
dcos_master_count = "1"
dcos_agent_count = "1"
dcos_public_agent_count = "1"
dcos_installer_url = "https://downloads.dcos.io/dcos/EarlyAccess/dcos_generate_config.sh"
dcos_ssh_key_path = "./packet-key"
dcos_ssh_public_key_path = "packet-key.pub"
I have generated the keys, I have also tried different datacenters, different nodes of nodes incl. with the defaults (3, 4, 3), always getting the same error.
The full output is:
packet_device.dcos_master: Creating...
billing_cycle: "" => "hourly"
created: "" => "<computed>"
facility: "" => "sjc1"
hostname: "" => "packet-dcos-master-00"
locked: "" => "<computed>"
network.#: "" => "<computed>"
operating_system: "" => "coreos_stable"
plan: "" => "baremetal_0"
project_id: "" => "some-project-id"
state: "" => "<computed>"
updated: "" => "<computed>"
user_data: "" => "#cloud-config\n\nssh_authorized_keys:\n - \"ssh-rsa public-key-here\n\"\n"
packet_device.dcos_bootstrap: Creating...
billing_cycle: "" => "hourly"
created: "" => "<computed>"
facility: "" => "sjc1"
hostname: "" => "packet-dcos-bootstrap-00"
locked: "" => "<computed>"
network.#: "" => "<computed>"
operating_system: "" => "coreos_stable"
plan: "" => "baremetal_0"
project_id: "" => "some-project-id"
state: "" => "<computed>"
updated: "" => "<computed>"
user_data: "" => "#cloud-config\n\nssh_authorized_keys:\n - \"ssh-rsa publi-key-here\n\"\n"
Error applying plan:
2 error(s) occurred:
* packet_device.dcos_master:
* packet_device.dcos_bootstrap:
Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
from packet-terraform.
same here with a little bit more error details:
2 error(s) occurred:
- packet_device.dcos_bootstrap: Project must have at least one SSH key
- packet_device.dcos_master: Project must have at least one SSH key
from packet-terraform.
This doesn't look to be an issue with the Terraform vars or provider, but simply that you need to ensure you've configured your Packet account appropriately by adding in your public SSH key to your profile in the Packet.net interface. Once you've done that, please re-test and it should just work (tm).
from packet-terraform.
Perfect. Now it works for me. Update of DC/OS docs (https://dcos.io/docs/1.7/administration/installing/cloud/packet/https://dcos.io/docs/1.7/administration/installing/cloud/packet/) is maybe helpful to prevent others from running into this problem.
from packet-terraform.
Just had the exact same problem. Thanks, @adersberger :)
from packet-terraform.
Guide me in resolving the below issue:
i am trying to create a server on packet.net but its failing with below error
sudo terraform apply
packet_device.testme: Creating...
billing_cycle: "" => "hourly"
created: "" => ""
facility: "" => "sjc1"
hostname: "" => "test1"
locked: "" => ""
network.#: "" => ""
operating_system: "" => "ubuntu_16_04"
plan: "" => "baremetal_0"
project_id: "" => "008d19ce-e5f6-4aab-8f58-025355a363a8"
state: "" => ""
updated: "" => ""
Error applying plan:
1 error(s) occurred:
- packet_device.testme: Not found
Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
from packet-terraform.
Hi, like the poster above said, you need to add your packet project ID to the tfvars file, the UUID like string, not the name.
So the top of my tfvars file looks a bit like this:
==========================================
packet_api_key = "xxxxtWmXiB9aLicSevrpa9bQGKyyyy"
packet_project_id = "d83md73n-d84g-d8r0-d94l-xxxxxxxxxxxxx"
packet_facility = "ewr1"
packet_agent_type = "baremetal_2"
packet_master_type = "baremetal_2"
packet_boot_type = "baremetal_2"
dcos_cluster_name = "packet-dcos"
from packet-terraform.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packet-terraform.