input-output-hk / nixops-packet

NixOps Packet.net Plugin
GNU Lesser General Public License v3.0
5 stars 5 forks source link

nixops deploy --check --allow-recreate doesn't update the machine's metadata #19

Closed grahamc closed 3 years ago

grahamc commented 4 years ago

This means creating a new machine after it has been destroyed upstream will try to deploy the old machine's config, including IP addresses, partition IDs, and disk layout. After this recreation, it is important to sync the metadata from the machine back in to the database.

This should probably also work even when deploying with --dry-activate, since that is usually when I end up recreating machines.

johnalotoski commented 3 years ago

Fixed in https://github.com/input-output-hk/nixops-packet/commit/e9e37e3d71aed584f46fecb2b631173a567e8249 and prior commits.

johnalotoski commented 3 years ago

Closing. Re-open this ticket or create a new ticket if the issue persists.