[Bug 809218] [NEW] Cobbler should generate a usable /etc/rsyncd.conf file but doesn't

2011-07-12 Thread David Dyball
Public bug reported:

`cat /etc/lsb-release`

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.04
DISTRIB_CODENAME=natty
DISTRIB_DESCRIPTION=Ubuntu 11.04

`apt-cache policy cobbler`

cobbler:
  Installed: 2.1.0-0ubuntu7
  Candidate: 2.1.0-0ubuntu7
  Version table:
 *** 2.1.0-0ubuntu7 0
500 http://gb.archive.ubuntu.com/ubuntu/ natty/universe i386 Packages
100 /var/lib/dpkg/status


Expected:

In order to make use of the cobbler replicate feature to sync between
two cobbler servers, Cobbler is supposed to generate a usable
/etc/rsyncd.conf file based on /etc/cobbler/rsyncd.template. A fresh
install of Cobbler does not generate this file at all on an Ubuntu
system. I don't run RHEL or CentOS cobbler instances so I can't confirm
whether or not this is Ubuntu specific though.

What Happens:

The documentation for cobbler says that the Rsync ops should be handled
over SSH or scp, but this is not the case at all as it tries to connect
to the non-existent Rsync server on the master when trying to sync,
which fails.

Workaround:

Manually building the config for rsyncd.conf using the template as a
guide works without issue it just appears that cobbler never tries to
generate it during `cobbler sync` or a restart of cobbler.

** Affects: cobbler (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cobbler in Ubuntu.
https://bugs.launchpad.net/bugs/809218

Title:
  Cobbler should generate a usable /etc/rsyncd.conf file but doesn't

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cobbler/+bug/809218/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 741661] Re: Web UI does not work from default install (2.1.0~bzr-2009-0ubuntu1)l

2011-04-05 Thread David Dyball
Possible regression with 2.1.0-0ubuntu4. I had to comment out the
CustomLog lines in cobbler_web.conf before Apache would start. I will
try and confirm, but at this stage my system has had a million different
versions of cobbler installed over the past 2 days, so I can't be sure.

Will try on a fresh system and let you know.

Cheers,
David.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cobbler in Ubuntu.
https://bugs.launchpad.net/bugs/741661

Title:
  Web UI does not work from default install (2.1.0~bzr-2009-0ubuntu1)l

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 741661] Re: Web UI does not work from default install (2.1.0~bzr-2009-0ubuntu1)l

2011-04-05 Thread David Dyball
Confirmed that a fresh install of Natty +

apt-get update
apt-get dist-upgrade
apt-get install cobbler cobbler-web

Still has a non-working web config. Apache fails to start with:

[error] (2)No such file or directory: could not open transfer log file
/etc/apache2/logs/access_log

The fatal line in /etc/cobbler/cobbler_web.conf is:

9:CustomLog logs/access_log combined env=!dontlog


Commenting out this line fixes Apache startup, but i prefer to change the 
access log to be something more sensible, like:

CustomLog /var/log/cobbler/web_access.log

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cobbler in Ubuntu.
https://bugs.launchpad.net/bugs/741661

Title:
  Web UI does not work from default install (2.1.0~bzr-2009-0ubuntu1)l

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 741661] Re: Web UI does not work from default install (2.1.0~bzr-2009-0ubuntu1)l

2011-04-05 Thread David Dyball
Scratch that... the packaged version is still cobbler-2.1.0-0ubuntu2 in
the repos. The patches in cobbler-2.1.0-0ubuntu4 source have fixed all
of the above issues.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cobbler in Ubuntu.
https://bugs.launchpad.net/bugs/741661

Title:
  Web UI does not work from default install (2.1.0~bzr-2009-0ubuntu1)l

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 741661] Re: Web UI does not work from default install (2.1.0~bzr-2009-0ubuntu1)l

2011-04-04 Thread David Dyball
Hi Dustin,

Just wanted to report that the issues are resolved in the cobbler
package from your PPA, but the one in the PPA also introduces new bugs
with viewing kickstart and snippet files (CX: tainted file location
exceptions):


Fault at /ksfile/edit/var/lib/cobbler/kickstarts/default.ks
Fault 1: class 'cobbler.cexceptions.CX':'tainted file location'
Request Method: GET
Request URL:
http://server/cobbler_web/ksfile/edit/var/lib/cobbler/kickstarts/default.ks
Django Version: 1.2.5
Exception Type: Fault
Exception Value:
Fault 1: class 'cobbler.cexceptions.CX':'tainted file location'
Exception Location: /usr/lib/python2.7/xmlrpclib.py in close, line 793
Python Executable:  /usr/bin/python
Python Version: 2.7.1
Python Path:['/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', 
'/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', 
'/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', 
'/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/gtk-2.0', 
'/usr/lib/pymodules/python2.7', '/usr/share/cobbler/web', 
'/usr/share/cobbler/web/cobbler_web']
Server time:Mon, 4 Apr 2011 12:19:54 +


Is the plan to move your package into the cobbler tree, or will you just submit 
a patch to the post-install scripts for the current cobbler-web packages?

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cobbler in Ubuntu.
https://bugs.launchpad.net/bugs/741661

Title:
  Web UI does not work from default install (2.1.0~bzr-2009-0ubuntu1)l

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 741661] Re: Web UI does not work from default install (2.1.0~bzr-2009-0ubuntu1)l

2011-04-04 Thread David Dyball
Hi Dustin,

Just in the process of testing on a fresh Natty install. I'll snapshot
my VM and try the same process with the ubuntu2 packages from natty and
then again with the packages from your PPA and confirm.

Judging from this:

http://www.mail-archive.com/cobbler-
de...@lists.fedorahosted.org/msg01200.html

I believe it is an issue with the latest upstream source. It appears to
have happened around the same time they moved to a form-based
Authentication for the login to cobbler_web.

More results to follow.

Cheers,
David.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cobbler in Ubuntu.
https://bugs.launchpad.net/bugs/741661

Title:
  Web UI does not work from default install (2.1.0~bzr-2009-0ubuntu1)l

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 741661] Re: Web UI does not work from default install (2.1.0~bzr-2009-0ubuntu1)l

2011-04-04 Thread David Dyball
Just noted in the cobbler-devel lists this message:

http://www.mail-archive.com/cobbler-
de...@lists.fedorahosted.org/msg01202.html

commit 41a92b11969ab9c30b749ab99be70566cd943093
Author: James Cammarata j...@sngx.net
Date:   Wed Mar 30 16:42:18 2011 -0500

Fix for snippet/kickstart editing via the web interface, where a
'tainted file path' error was thrown


Seems to have been a dormant bug that didn't rear it's ugly head until they did 
some unrelated changes. Apparently patched though, so perhaps you could apply 
said patch and re-post some packages for testing?

Cheers,
David.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cobbler in Ubuntu.
https://bugs.launchpad.net/bugs/741661

Title:
  Web UI does not work from default install (2.1.0~bzr-2009-0ubuntu1)l

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 741661] Re: Web UI does not work from default install (2.1.0~bzr-2009-0ubuntu1)l

2011-04-04 Thread David Dyball
Just to confirm, this is a regression with the new upload in your PPA,
as the ubuntu1 packages (the ones that didn't setup the webUI correctly)
did not exhibit this issue.

Seems to be an upstream regression though.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cobbler in Ubuntu.
https://bugs.launchpad.net/bugs/741661

Title:
  Web UI does not work from default install (2.1.0~bzr-2009-0ubuntu1)l

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 741661] Re: Web UI does not work from default install (2.1.0~bzr-2009-0ubuntu1)l

2011-04-04 Thread David Dyball
OK, just to clarify a bunch of stuff:

1) The original cobbler-2.1.0-0ubuntu1 packages worked once you
reconfigured the the cobbler_web.conf and re-created the symlinks

2) The cobbler_web.conf  is /NOT/ fixed in cobbler-2.1.0-0ubuntu2. With
this package I still had to change the authz_configfile setting in
modules.conf and `chown www-data:www-data
/var/lib/cobbler/webui_sessions` before I could login.

3) Using the package in your PPA (cobbler-2.1.0-0ubuntu3~ppa1) the
install completes fine and the web-config is working out of the box.

** BUT **

The new bug concerning tainted file location errors now exists in both
the PPA:cobbler-2.1.0-0ubuntu3~ppa1 and cobbler-2.1.0-0ubuntu2 (current
in Natty).

I'll raise a new bug for the Tainted File Location. If you merge your
changes for the postinst/postrm and config files that should resolve
this bug.

There is a patch for the new bug, but that can be discussed separately.

Cheers,
David.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cobbler in Ubuntu.
https://bugs.launchpad.net/bugs/741661

Title:
  Web UI does not work from default install (2.1.0~bzr-2009-0ubuntu1)l

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 750402] [NEW] Editing Kickstarts/Snippets errors with tainted file location

2011-04-04 Thread David Dyball
Public bug reported:

Binary package hint: cobbler

Description: The latest packages for cobbler, cobbler-common and
cobbler-web in Natty, (cobbler-2.1.0-0ubuntu2) give an errors when
trying to use the web-based editor to modify kickstart or snippet files:

Release: Ubuntu Natty (development Branch) 11.04


Steps To Recreate
1) Install cobbler, cobbler-web and cobbler-common
2) Login to the web-interface
3) Navigate to Snippets and/or Kickstart Templates
4) Click Edit next to any file and get the error bellow:

What should happen:
- You should be able to edit files using the in-browser editor

What does happen:
- You get an error like the one bellow


Fault at /ksfile/edit/var/lib/cobbler/kickstarts/default.ks

Fault 1: class 'cobbler.cexceptions.CX':'tainted file location'

Request Method: GET
Request URL:
http://servername-scrubbed/cobbler_web/ksfile/edit/var/lib/cobbler/kickstarts/default.ks
Django Version: 1.2.5
Exception Type: Fault
Exception Value:

Fault 1: class 'cobbler.cexceptions.CX':'tainted file location'

Exception Location: /usr/lib/python2.7/xmlrpclib.py in close, line 793
Python Executable:  /usr/bin/python
Python Version: 2.7.1
Python Path:['/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', 
'/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', 
'/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', 
'/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/gtk-2.0', 
'/usr/lib/pymodules/python2.7', '/usr/share/cobbler/web', 
'/usr/share/cobbler/web/cobbler_web']
Server time:Mon, 4 Apr 2011 15:32:43 +


This appears to be a regression in the latest code for cobbler in
upstream (see initial reporting here: http://www.mail-archive.com
/cobbler-de...@lists.fedorahosted.org/msg01200.html) where the in-place
editor does not like handling files that don't begin with a /.

A patch has been released (http://www.mail-archive.com/cobbler-
de...@lists.fedorahosted.org/msg01202.html):


commit 41a92b11969ab9c30b749ab99be70566cd943093
Author: James Cammarata j...@sngx.net
Date:   Wed Mar 30 16:42:18 2011 -0500

Fix for snippet/kickstart editing via the web interface, where a
'tainted file path' error was thrown


URL:
https://github.com/jimi1283/cobbler/commit/41a92b11969ab9c30b749ab99be70566cd943093

Not sure if the decision will be to apply the patch to the Ubuntu
package, or wait for it to get put into upstream (seems serious enough
that it will be included though).

Cheers,
David.

** Affects: cobbler (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cobbler in Ubuntu.
https://bugs.launchpad.net/bugs/750402

Title:
  Editing Kickstarts/Snippets errors with tainted file location

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 750402] Re: Editing Kickstarts/Snippets errors with tainted file location

2011-04-04 Thread David Dyball
Confirmed that the following patch and changes works to fix the problem:

https://github.com/jimi1283/cobbler/commit/41a92b11969ab9c30b749ab99be70566cd943093

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cobbler in Ubuntu.
https://bugs.launchpad.net/bugs/750402

Title:
  Editing Kickstarts/Snippets errors with tainted file location

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 741661] Re: Web UI does not work from default install (2.1.0~bzr-2009-0ubuntu1)l

2011-04-04 Thread David Dyball
New bug for the regression raised:
https://bugs.launchpad.net/ubuntu/+source/cobbler/+bug/750402


Once the PPA postinst/postrm stuff is merged from Dustins PPA
(https://launchpad.net/~ubuntu-virt/+archive/ppa) package the original
bug (#741661) with cobbler-web installs not working out of the box will
most likely be resolved.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cobbler in Ubuntu.
https://bugs.launchpad.net/bugs/741661

Title:
  Web UI does not work from default install (2.1.0~bzr-2009-0ubuntu1)l

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 750402] Re: Editing Kickstarts/Snippets errors with tainted file location

2011-04-04 Thread David Dyball
Hi Dustin,

The github repo appears to just be a working-copy of the upstream source
tree for that particular devs work, so I can't say yes/no to it being
committed upstream, or even if the copy on that particular repo is
recent... It is maintained by jimi1283 which could be a handle for
James Cammarata, one of the regular cobbler contributors. I can pursue
this upstream if it's better suited there though?

I can generate a diff based on the modifications I made to get it
working though. Can you confirm that the latest Ubuntu package in Natty
is built from recent upstream source? (this should save me having to
pull it myself and test the newest source myself before submitting a
patch).

This is really the first bug-report I've ever filed for anything... so I
am easy pleased to send it upstream rather than provide a ubuntu-only
patch.

Cheers for looking into this Dustin. It's most appreciated.

David.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cobbler in Ubuntu.
https://bugs.launchpad.net/bugs/750402

Title:
  Editing Kickstarts/Snippets errors with tainted file location

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 750402] Re: Editing Kickstarts/Snippets errors with tainted file location

2011-04-04 Thread David Dyball
Just saw https://launchpad.net/ubuntu/+source/cobbler/2.1.0-0ubuntu4
that has the patch. Will pull this and try now on my test system.

Cheers,
Dave.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cobbler in Ubuntu.
https://bugs.launchpad.net/bugs/750402

Title:
  Editing Kickstarts/Snippets errors with tainted file location

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 750402] Re: Editing Kickstarts/Snippets errors with tainted file location

2011-04-04 Thread David Dyball
Confirmed that 2.1.0-0ubuntu4 fixes this issue.

Going to head upstream and try and make them aware of it, if they aren't
already.

Cheers,
David.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cobbler in Ubuntu.
https://bugs.launchpad.net/bugs/750402

Title:
  Editing Kickstarts/Snippets errors with tainted file location

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 750402] Re: Editing Kickstarts/Snippets errors with tainted file location

2011-04-04 Thread David Dyball
Confirmed that jimi1283 is indeed James Cammarata and that he is one of
the primary contributors for cobbler, so the aforementioned patches are
indeed James' work and he is aware of the issue. Hopefully his patch
will work its way into the upstream.

Under these circumstances, what are the options? Will cobbler get built
with patch-36 (tainted file location patch) for
cobbler-2.1.0-0ubuntu4, or will we just make continuous checks of
upstream to wait for them to fix the issue?

I will run with the deb-source packages for ubuntu4 that you uploaded
this evening though.

On a side-note, this contributing thing is rather cool. Might have to
keep it up ;-)

David.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cobbler in Ubuntu.
https://bugs.launchpad.net/bugs/750402

Title:
  Editing Kickstarts/Snippets errors with tainted file location

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs