I am trying to push in gerrit with the following commit message:
Changed some of the packing code for the PLC protocol packet handler.
remote: ERROR: missing Change-Id in commit message footer
remote: Hint: A potential Change-Id was found, but it was not in the footer (last paragraph) of the commit message.
Probably you're pushing more than one commit to Gerrit at the same time. Remember that ALL new commits in your branch will be pushed to Gerrit. Execute a "git log" command and check how many of the last commits are new and if they all have Change-Id in the commit message.
What Gerrit version are you using? The Gerrit 2.13 has improved the error message to prevent this kind of issue. See the "Issue 4488" solution at here.