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

Reusing provision IDs #47

Open
vholer opened this issue Mar 6, 2020 · 0 comments
Open

Reusing provision IDs #47

vholer opened this issue Mar 6, 2020 · 0 comments

Comments

@vholer
Copy link
Contributor

vholer commented Mar 6, 2020

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?

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

No branches or pull requests

1 participant