Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Issue #1214: Add support for seed rolling #47

Closed
wants to merge 1 commit into from

Conversation

Sashwat-K
Copy link
Collaborator

Hello Team,
While performing seed rolling with the following Contract through Terraform, the terraform apply failed.

{
  "env" : {
    "type" : "env",
    "logging" : {
      "logDNA" : {
        "ingestionKey" : var.logdna_ingestion_key,
        "hostname" : var.logdna_ingestion_hostname,
        "port": 6514
      }
    },  
    "volumes": {
      "datavolume": {
        "seed": "testtest111",
        "previousSeed": "testtest11"
      }
    }
  },
  "workload" : {
    "type" : "workload",
    "compose" : {
      "archive" : hpcr_tgz.contract.rendered
    },
    "volumes": {
      "datavolume": {
        "filesystem": "ext4",
        "mount": "/mnt/data",
        "seed": "testtest111",
        "previousSeed": "testtest11"
      }
    }
  }
}

The error was the following:-

Plan: 0 to add, 5 to change, 0 to destroy.
╷
│ Error: /workload/volumes/datavolume: {"filesystem":"ext4"... additional properties are not allowed
│ 
│   with hpcr_contract_encrypted.contract,
│   on terraform.tf line 144, in resource "hpcr_contract_encrypted" "contract":
│  144:   contract = local.contract
│ 
╵
╷
│ Error: /env/volumes/datavolume: {"previousSeed":"tes... did not match any of the specified OneOf schemas

│   with hpcr_contract_encrypted.contract,
│   on terraform.tf line 144, in resource "hpcr_contract_encrypted" "contract":
│  144:   contract = local.contract

This PR resolves this issue.

@Sashwat-K
Copy link
Collaborator Author

LogDNA output for seed rolling

Sep 25 18:38:28 sashwatk-hpcr-seedrolling-compose-vsi hpcr-disk-mount info No key available with this passphrase. 
Sep 25 18:38:28 sashwatk-hpcr-seedrolling-compose-vsi hpcr-disk-mount debug Error while opening the LUKS layer for disk /dev/vdd2 
Sep 25 18:38:30 sashwatk-hpcr-seedrolling-compose-vsi hpcr-disk-mount info No key available with this passphrase. 
Sep 25 18:38:30 sashwatk-hpcr-seedrolling-compose-vsi hpcr-disk-mount debug Error while opening the LUKS layer for disk /dev/vdd2 
Sep 25 18:38:32 sashwatk-hpcr-seedrolling-compose-vsi hpcr-disk-mount info Disk /dev/vdd2 is encrypted with env and workload seeds 
Sep 25 18:38:32 sashwatk-hpcr-seedrolling-compose-vsi hpcr-disk-mount info HPL07012I: Seeds have been changed, modifying the LUKS passphrase with new seeds 
Sep 25 18:38:33 sashwatk-hpcr-seedrolling-compose-vsi hpcr-disk-mount info Received LUKS password change request for /dev/vdd2 
Sep 25 18:38:33 sashwatk-hpcr-seedrolling-compose-vsi hpcr-disk-mount info Data Volume to be encrypted is /dev/vdd2 

@CarstenLeue
Copy link
Contributor

Closing in favour of #48

@Sashwat-K Sashwat-K deleted the issue-#1214 branch September 26, 2023 09:31
@Sashwat-K Sashwat-K restored the issue-#1214 branch September 26, 2023 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants