Giter Site home page Giter Site logo

Comments (9)

adersberger avatar adersberger commented on June 25, 2024 4

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.

jgarcia-mesosphere avatar jgarcia-mesosphere commented on June 25, 2024

Hey there, would you post your terraform.tfvars (obscure secrets, please) and paste that up for me to take a look?

from packet-terraform.

krystalcode avatar krystalcode commented on June 25, 2024
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.

adersberger avatar adersberger commented on June 25, 2024

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.

zsmithnyc avatar zsmithnyc commented on June 25, 2024

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.

adersberger avatar adersberger commented on June 25, 2024

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.

jedisct1 avatar jedisct1 commented on June 25, 2024

Just had the exact same problem. Thanks, @adersberger :)

from packet-terraform.

anandkolli avatar anandkolli commented on June 25, 2024

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.

jimleitch01 avatar jimleitch01 commented on June 25, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.