Hide Forgot
Description of problem: Fresh install of RHEL 6.2 choosing the 'minimal' configuration causes matahari agents who attempt to capture a UUID to return NULL. Since c++ doesn't like this we are hit with an exception terminate called after throwing an instance of 'std::logic_error' what(): basic_string::_S_construct NULL not valid Aborted Version-Release number of selected component (if applicable): 0.4.4-x How reproducible: 100% Steps to Reproduce: 1. install minimal os 2. install matahari 0.4.4 3. attempt to start an agent where both /etc/machine-id or /var/lib/dbus/machine-id are not present Actual results: terminate called after throwing an instance of 'std::logic_error' what(): basic_string::_S_construct NULL not valid Aborted Expected results: agents to connect to broker Additional info: https://github.com/matahari/matahari/blob/master/src/lib/utilities_linux.c#L83 We need to be returning an empty string here.
This worked for me. dbus gets installed and creates the machine-id file. here is the ks file for the install # Kickstart file automatically generated by anaconda. #version=DEVEL install url --url=http://download.devel.redhat.com/nightly/RHEL6.2-20110919.n.0/6.2/Server/x86_64/os/ lang en_US.UTF-8 keyboard us network --onboot yes --device eth0 --bootproto dhcp --ipv6 auto rootpw --iscrypted $6$DM3EWdHNCJPZUOk7$cVm0siBeU7BicmcsnqtLpOO87WYCdfY8UBWFHCgGhJ96ESWFeogXhQzWpycgBzf/gWiVeU9yxxTRS.tMlO10C0 firewall --service=ssh authconfig --enableshadow --passalgo=sha512 selinux --enforcing timezone --utc America/New_York bootloader --location=mbr --driveorder=sda --append=" rhgb crashkernel=auto quiet" # The following is the partition information you requested # Note that any partitions you deleted are not expressed # here so unless you clear all partitions first, this is # not guaranteed to work #clearpart --linux --drives=sda #volgroup VolGroup --pesize=4096 pv.008002 #logvol / --fstype=ext4 --name=lv_root --vgname=VolGroup --grow --size=1024 --maxsize=51200 #logvol swap --name=lv_swap --vgname=VolGroup --grow --size=1488 --maxsize=2976 #part /boot --fstype=ext4 --size=500 #part pv.008002 --grow --size=1 repo --name="Red Hat Enterprise Linux" --baseurl=http://download.devel.redhat.com/nightly/RHEL6.2-20110919.n.0/6.2/Server/x86_64/os/ --cost=100 %packages @core @server-policy %end
Fixed upstream: https://github.com/matahari/matahari/commit/050aac205efebd2f9779a33605bd88ff3a99da49 This change will ensure the agents don't crash if neither systemd or dbus are installed. The UUID field will be blank, but at least it doesn't crash ...
good 2 go with v0.4.4-9
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: No description required.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2011-1569.html