-
-
Notifications
You must be signed in to change notification settings - Fork 648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make install / apt-get leaves stale files? (was: cobbler version: throws exception) #1108
Comments
works for me with todays sources:
it's strange you see yaml errors; the cobbler version command has been reworked to use ConfigParser instead of PyYaml |
this is super strange. I'm building this "from source", ala $(clean-dirs)
( cd $(bld_dir) && git clone $(pkg_src) )
$(in_pkg_bld_dir) make
$(in_pkg_bld_dir) make install DESTDIR=$(dst_dir)/$(pkg) and then package it with fpm: $(fpm) -n $(pkg) -v $(pkg_ver) --iteration $(pkg_rev) \
--description $(pkg_desc) --url $(pkg_url) \
$(pkg_dep) \
$(shell find $(dst_dir)/$(pkg)/etc/$(pkg) -type f | sed -r 's|$(dst_dir)/$(pkg)(.*)|--config-files \1|g' ) \
-p $(package_dir)/NAME_FULLVERSION_ARCH.TYPE \
-C $(dst_dir)/$(pkg) .
touch $@ This does, indeed, result in an [cobbler]
gitdate = Mon Jul 28 14:33:22 2014 +0200
gitstamp = 709cffd
builddate = Tue Jul 29 08:23:20 2014
version = 2.7.0
version_tuple = [2, 7, 0] |
To give you the idea where this is going: I'm trying to fix a puppet cobbler module's "cobbler distro add" semantics, which expects that a (e.g.: % sudo /usr/bin/cobbler distro edit --name=ubuntu-14.04.1-x86_64 --os-version=trusty
exception on server: '--os-version for breed ubuntu must be one of precise, saucy, oneiric, lucid, quantal, raring, given was trusty' |
Hmz, is trusty in your distro_signatures.json ? For now it doesn't look like this is caused by Cobbler.... btw, your Puppet module looks kinda neat. |
Trusty is in the signatures, that's why I'm so weirded out by all this behaviour. As I mentioned, the package is generated from a fresh git clone. That is after I've put up a gist with a full file listing of the resulting package ( |
btw, all the files that are in igalic@steak ~ % find /usr/lib/py*/**/*cobbler* /usr/lib/py*/**/*koan* \
-type f -exec dpkg -S {} + | cut -d: -f1 | sort -u
cobbler |
Any progress on this mystery? :) |
If stuff doesn't work after the make install (before packaging), let me know and i will re-open. |
so, the problem turns out to be this line in /etc/init.d/cobblerd: [ -x /usr/loca/bin/cobblerd ] || exit 0 This made me (and the system) assume that the restart worked out fine, while actually nothing happened at all. Fixing this (cruedely with igalic@steak ~ % sudo cobbler version
Cobbler 2.7.0
source: e537aea, Fri Aug 1 16:47:26 2014 +0200
build time: Mon Aug 4 14:53:27 2014
igalic@steak ~ % |
when running cobbler console (on master), I'm getting the following exception:
The log says,
The text was updated successfully, but these errors were encountered: