distro-specific logic in python-cobbler

Bug #1266061 reported by JudeN
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linux Mint
Invalid
Undecided
Unassigned
cobbler (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Version: Linux Mint 16 Petra / Cinamon 64-bit

Installed cobbler-web package, consistently got a <Fault 1 "<class: 'cobbler.cexceptions.CX'>:'login failed'"> exception when visiting http://localhost/cobbler_web BEFORE reaching any sort of login screen

The problem ended up being that /var/lib/cobbler/web.ss was owned by root:root instead of www-data:www-data
When I manually changed the ownership of the file to www-data:www-data, http://localhost/cobbler_web worked

I traced this to the this line in the source:
https://bazaar.launchpad.net/~ubuntu-branches/ubuntu/precise/cobbler/precise/view/head:/cobbler/cobblerd.py#L68

It looks like the line
  if utils.check_dist() in [ "debian", "ubuntu" ]:

should be
  if utils.check_dist() in [ "debian", "ubuntu",'linuxmint' ]:

Changed in cobbler (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

feel free to submit that upstream

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

does mint have /etc/debian_version?

Revision history for this message
chemicalfan (mike-lumsden) wrote :

As per tjaalton's comment, please submit this as a patch against upstream cobbler, and it will be fixed upstream

Changed in linuxmint:
status: New → Invalid
Revision history for this message
Nish Aravamudan (nacc) wrote :

Cobbler in 16.10 correctly installs web.ss as:

-rw------- 1 www-data root 1.0K Jul 7 23:42 /var/lib/cobbler/web.ss

Changed in cobbler (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.