{% extends 'generic/_base.html' %} {% load helpers %} {% load i18n %} {% block head %} {% if refresh %} {% endif %} {% endblock head %} {% block title %}{% blocktrans with name=object.name %}Project change of {{ name }}{% endblocktrans %}{% endblock %} {% block subtitle %}
{% trans "Latest check" %} {% if check_job_viewable %} #{{ check_job.pk }} {% else %} #{{ check_job.pk }} {% endif %} {% badge check_job.get_status_display bg_color=job_status_colors|get_key:check_job.status %}
{% if check_running %}{% trans "The check lists the servers and networks of the new project. This page refreshes every 10 seconds until it finishes." %}
{% else %}{% trans "This check did not prepare a review of the pending credential. Check again." %}
{% endif %} {% else %}{% trans "The new project has not been checked yet. Check again." %}
{% endif %}{% trans "Latest check" %} {% if check_job_viewable %} #{{ check_job.pk }} {% else %} #{{ check_job.pk }} {% endif %} {% badge check_job.get_status_display bg_color=job_status_colors|get_key:check_job.status %}
{{ check_job.error|placeholder }}
{% trans "The servers or networks of this provider changed after the last check. Check again to review the current state." %}
{% trans "The project change can be applied when these jobs finish. This page refreshes every 10 seconds." %}
{% trans "These servers were already created again in the new project. The project change finishes when every old server is deleted." %}
| {% trans "Virtual machine" %} | {% trans "Server name" %} | {% trans "New server" %} | {% trans "Old server" %} | {% trans "Next step" %} |
|---|---|---|---|---|
| {% if old_server.virtual_machine %} {{ old_server.virtual_machine|linkify }} {% else %} {% trans "hidden" %} {% endif %} | {{ old_server.name|placeholder }} | {{ old_server.new_server_id }} | {{ old_server.old_server_id }} |
{% if old_server.status == "gone" %}
{% blocktrans with new=old_server.new_server_id old=old_server.old_server_id %}New server {{ new }} is not listed in the new project. When the next apply confirms that it is gone, it sets this server back to old server {{ old }} and creates it again in the new project.{% endblocktrans %}
{% if default_ssh_key.error %}
{% blocktrans with blocker=default_key_blocker %}{{ blocker }} The next apply only sets it back to the old server.{% endblocktrans %}
{% elif default_ssh_key.credential %}
{% trans "Default SSH key" %}: {{ default_ssh_key.credential.name }}
{% if old_server.extra_ssh_keys %}
{% trans "Extra SSH keys" %}: {% for key in old_server.extra_ssh_keys %}{% if key.hidden %}{% trans "hidden" %}{% else %}{{ key.name }}{% endif %}{% if not forloop.last %}, {% endif %}{% endfor %}
{% endif %}
{% else %}
{% blocktrans with provider=object.name %}Provider {{ provider }} has no default SSH key, so the next apply only sets it back to the old server and the review after that offers a recreate.{% endblocktrans %}
{% endif %}
{% elif old_server.status == "not_ready" %}
{% blocktrans with new=old_server.new_server_id old=old_server.old_server_id %}New server {{ new }} is not ready yet. The next apply waits for it and then deletes old server {{ old }}.{% endblocktrans %}
{% elif old_server.status == "blocked" %}
{% blocktrans with old=old_server.old_server_id %}The old token cannot delete old server {{ old }}, for example because it was revoked.{% endblocktrans %}
{% blocktrans with old=old_server.old_server_id provider_type=object.get_provider_type_display %}Delete server {{ old }} in the old project yourself, for example in the {{ provider_type }} console, before you confirm. After the confirmation NetBox no longer tracks the old server and never deletes it: if it still exists, it keeps running and is billed.{% endblocktrans %}
{% if old_server.may_confirm and not running_migration and not old_server.power_job_running %}
{% elif running_migration %}
{% trans "Wait until the project change job finishes before you confirm." %}
{% elif old_server.power_job_running %}
{% trans "Wait until the server is started or stopped before you confirm." %}
{% else %}
{% trans "You are not permitted to confirm that this old server was removed." %}
{% endif %}
{% else %}
{% blocktrans with old=old_server.old_server_id %}The next apply deletes old server {{ old }} with the old token.{% endblocktrans %}
{% endif %}
|
{{ default_key_blocker }}
{% else %}{% blocktrans with name=default_ssh_key.credential.name %}Recreated servers always get the default SSH key {{ name }} of this provider.{% endblocktrans %}
{% endif %}| {% trans "Credential" %} | {% if default_ssh_key.credential_viewable %} {{ default_ssh_key.credential.name }} {% else %} {{ default_ssh_key.credential.name }} {% endif %} |
|---|---|
| {% trans "In new project" %} | {{ default_ssh_key.state|capfirst }} {{ default_ssh_key.text }} |
| {% trans "Fingerprint" %} | {{ default_ssh_key.fingerprint|placeholder }} |
{{ default_ssh_key.text }}