8000 Reusing provision IDs · Issue #47 · OpenNebula/minione · GitHub
[go: up one dir, main page]

Skip to content

Reusing provision IDs #47

Open
Open

Description

@vholer

miniONE could reuse IDs for edge provisions (and VM templates!) if the previous deployment is cleaned and recreated again:

minione/minione

Lines 1317 to 1326 in f66be4a

get_next_packet_id() {
local ID
ID=$(onecluster list -l ID | grep -E '[0-9]+' | sort | tail -1)
if [[ -z "$ID" || "$ID" -lt 100 ]]; then
ID=100
else
ID=$(( ID + 1 ))
fi
echo $ID
}

It would be better to use unique identifications, e.g. based on date/time?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0