[one-users] OpenNebula node package broke sudo?

Jaime Melis jmelis at opennebula.org
Fri Jan 10 01:51:22 PST 2014


Hi James,

terribly sorry for that, we've obviously tested that package and haven't
seen this before. I don't think any other user has reported this to the
mailing list before, so I think it might be an incompatibilty with your
local configuration of your sudoers and the one we ship.

What the OpenNebula package does is pretty simple: it installs a new file
called /etc/sudoers.d/opennebula which contains:
https://github.com/OpenNebula/one/blob/master/share/pkgs/CentOS/opennebula.sudoers

Once you have restored root privileges on the machine, could you please
send us the contents of /etc/sudoers and /etc/sudoers.d/opennebula. Ask
your administrator to make a backup of those broken sudoers files before
changing them and send them to us before fixing them. (Before sending them,
please review that you aren't sending anything sensitive to the mailing
list)

I would like to see also the list of opennebula packages you have
installed: $ rpm -qa | grep opennebula

regards,
Jaime



On Thu, Jan 9, 2014 at 9:26 PM, Bradfield, James
<James.Bradfield at njvc.com>wrote:

> Ran the yum package installer for opennebula-node-kvm on a remote RHEL 6
> box last thing yesterday before leaving, finished the install, and logged
> out. Logged back into the same machine today and got the following error
> dump whenever I tried to use sudo:
>
> sudo: >>> /etc/sudoers.d/opennebula: Alias `ONE_MISC' already defined near
> line 4 <<<
> sudo: >>> /etc/sudoers.d/opennebula: Alias `ONE_NET' already defined near
> line 4 <<<
> sudo: >>> /etc/sudoers.d/opennebula: Alias `ONE_LVM' already defined near
> line 4 <<<
> sudo: >>> /etc/sudoers.d/opennebula: Alias `ONE_ISCSI' already defined
> near line 4 <<<
> sudo: >>> /etc/sudoers.d/opennebula: Alias `ONE_OVS' already defined near
> line 4 <<<
> sudo: >>> /etc/sudoers.d/opennebula: Alias `ONE_XEN' already defined near
> line 4 <<<
> sudo: parse error in /etc/sudoers.d/opennebula near line 4
> sudo: no valid sudoers sources found, quitting
> sudo: unable to initialize policy plugin
>
> Clearly some duplicate definitions got created during the install process
> (not sure how, I’m like 99% sure these machines didn't have OpenNebula on
> them at any point before); unfortunately, I can’t sudo to fix it (since
> sudo is broken, obviously), don’t have the root password, and can't boot
> recovery since it’s a remote box (and I can't reboot the box from command
> line anyway since I don't have sudo). I’ve contacted the local IT guy who
> should be able to fix it easily, but I groused about it on Twitter and got
> asked to send this into the mailing list, so here you go.
>
> Jim Bradfield
> Software Engineer Associate, Chief Technology Office
> NJVC, LLC
>
> T 703.429.9498 | M 540.230.5571 | james.bradfield at njvc.com
> 14295 Park Meadow Drive, Chantilly, VA 20151
> www.njvc.com
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



-- 
Jaime Melis
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | jmelis at opennebula.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140110/27f41111/attachment-0002.htm>


More information about the Users mailing list