Bug #2988

Phone Home: uuid is not unique

Added by Edoardo Spadoni over 6 years ago. Updated over 6 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-phonehome
Target version:v6.5
Security class: Resolution:
Affected version:v6.5-final NEEDINFO:No

Description

To collect data from NethServer's installations uuid is not valid because is not unique. For example DigitalOcean uses the same uuid from multiple virtual machine instances. In fact, every time the cron jobs send data, the uuid is replaced and the associated ip disappeared.

Associated revisions

Revision a20588d8
Added by Giacomo Sanchietti over 6 years ago

db defaults: add uuid prop. Refs #2988

Revision 8029e89d
Added by Giacomo Sanchietti over 6 years ago

createlinks: execute uuid init. Refs #2988

History

#1 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from NEW to TRIAGED
  • Target version set to v6.5
  • % Done changed from 0 to 20

We should generate our own uuid and save it inside the configuration db. Below script can be used as configuration action:

#!/bin/bash
#
# Generate UUID if not exists 
#

uuid=`/sbin/e-smith/config getprop phone-home uuid`

if [ "x$uuid" == "x" ]; then
    /sbin/e-smith/config setprop phone-home uuid `/usr/bin/uuidgen`
fi

exit 0

#2 Updated by Edoardo Spadoni over 6 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Edoardo Spadoni
  • % Done changed from 20 to 30

#3 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from ON_DEV to MODIFIED
  • Assignee deleted (Edoardo Spadoni)
  • % Done changed from 30 to 60

#4 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70
Package in nethserver-testing:
  • nethserver-phonehome-1.0.0-4.0git8029e89d.ns6.noarch.rpm
Test case
  • Install the package
  • Check the uuid is generated
  • Check the weekly script sends the correct uuid

#5 Updated by Edoardo Spadoni over 6 years ago

  • Assignee set to Edoardo Spadoni

#6 Updated by Edoardo Spadoni over 6 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (Edoardo Spadoni)
  • % Done changed from 70 to 90
Test Case: OK
  • After rpm installation the uuid is correctly generated and the script sends the correct data.

#7 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100
Released in nethserver-updates:
  • nethserver-phonehome-1.0.1-1.ns6.noarch.rpm

Also available in: Atom PDF