Bug #4691
closedUser story #4595: Support for AIX (agent only)
RPM postinst fails on AIX due to use of "uuidgen"
Description
"uuidgen" is not available in the AIX base system, not is it simply installable, so our postinst script fails:
var/opt/freeware/tmp/rpm-tmp.27302[43]: uuidgen: not found
However, AIX does come with it's own "uuid_gen": /etc/ncs/uuid_gen. This commands provides UUIDs from version 1, as defined in http://en.wikipedia.org/wiki/Universally_unique_identifier:
Conceptually, the original (version 1) generation scheme for UUIDs was to concatenate the UUID version with the MAC address of the computer that is generating the UUID, and with the number of 100-nanosecond intervals since the adoption of the Gregorian calendar in the West. This scheme has been criticized in that it is not sufficiently "opaque"; it reveals both the identity of the computer that generated the UUID and the time at which it did so. Its uniqueness across computers is guaranteed so long as MAC addresses are not duplicated (as can happen, for instance, via manual setting of the MAC address); however, given the speed of modern processors, successive invocations on the same machine of a naive implementation of a generator of version 1 UUIDs may produce the same UUID, violating the uniqueness property. (Non-naive implementations can avoid this problem by, for example, remembering the most recently generated UUID, "pocketing" unused UUIDs, and using pocketed UUIDs in case a duplicate is about to be generated.)
These limitations seem fine for us, since:
- We actually use the UUID to identify the machine in it's inventory, which already contains the MAC address
- We only generate one UUID on each machine, so no duplication is possible unless MAC addresses are duplicated, which is highly unlikely, and even more unlikely the UUIDs would be generated at the precise same 100-nanosecond interval.
So, I'm going to add a "uuidgen" wrapper in shell for /etc/ncs/uuid_gen that formats the UUID correctly.
Updated by Jonathan CLARKE over 10 years ago
- Status changed from In progress to Pending technical review
- Pull Request set to https://github.com/Normation/rudder-packages/pull/288
PR available: https://github.com/Normation/rudder-packages/pull/288
I chose to put the "uuidgen-magic" in a shell script, installed on AIX only, to make it available on the PATH, so that other scripts could use it too. The first of these is "check-rudder-agent", but some Techniques may require it too.
Updated by Jonathan CLARKE over 10 years ago
- Assignee changed from Jonathan CLARKE to Matthieu CERDA
Updated by Jonathan CLARKE over 10 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset commit:0e9068c5c620fe8f41ef39e2b115dcc27e133d3e.
Updated by Vincent MEMBRÉ over 10 years ago
Applied in changeset commit:2ff9032aac0181e285ab6c16bedb0a664cbf84d9.
Updated by Vincent MEMBRÉ over 10 years ago
- Target version changed from 2.10.1 to 2.10.0
Updated by Vincent MEMBRÉ over 10 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 2.10.0, which was released today.
Check out:
- The release announcement: http://www.rudder-project.org/pipermail/rudder-announce/2014-March/000085.html
- The full ChangeLog: http://www.rudder-project.org/foswiki/bin/view/System/Documentation:ChangeLog210
- Download information: https://www.rudder-project.org/site/get-rudder/downloads/