Search Results: "hle"

25 February 2010

David Pashley: Reducing Coupling between modules

In the past, several of my Puppet modules have been tightly coupled. A perfect example is Apache and Munin. When I install Apache, I want munin graphs set up. As a result my apache class has the following snippet in it:
munin::plugin   "apache_accesses":  
munin::plugin   "apache_processes":  
munin::plugin   "apache_volume":  
This should make sure that these three plugins are installed and that munin-node is restarted to pick them up. The define was implemented like this:
define munin::plugin (
      $enable = true,
      $plugin_name = false,
      )  
   include munin::node
   file   "/etc/munin/plugins/$name":
      ensure => $enable ?  
         true => $plugin_name ?  
            false => "/usr/share/munin/plugins/$name",
            default => "/usr/share/munin/plugins/$plugin_name"
          ,
         default => absent
       ,
      links => manage,
      require => Package["munin-node"],
      notify => Service["munin-node"],
    
 
(Note: this is a slight simplification of the define). As you can see, the define includes munin::node, as it needs the definition of the munin-node service and package. As a result of this, installing Apache drags in munin-node on your server too. It would be much nicer if the apache class only installed the munin plugins if you also install munin on the server. It turns out that is is possible, using virtual resources. Virtual resources allow you to define resources in one place, but not make them happen unless you realise them. Using this, we can make the file resource in the munin::plugin virtual and realise it in our munin::node class. Our new munin::plugin looks like:
define munin::plugin (
      $enable = true,
      $plugin_name = false,
      )  
   # removed "include munin::node"
   # Added @ in front of the resource to declare it as virtual
   @file   "/etc/munin/plugins/$name":
      ensure => $enable ?  
         true => $plugin_name ?  
            false => "/usr/share/munin/plugins/$name",
            default => "/usr/share/munin/plugins/$plugin_name"
          ,
         default => absent
       ,
      links => manage,
      require => Package["munin-node"],
      notify => Service["munin-node"],
      tag => munin-plugin,
    
 
We add the following line to our munin::node class:
File<  tag == munin-plugin  >
The odd syntax in the munin::node class realises all the virtual resources that match the filter, in this case, any that is tagged munin-plugin. We've had to define this tag ourself, as the auto-generated tags don't seem to work. You'll also notice that we've removed the munin::node include from the munin::plugin define, which means that we no longer install munin-node just by using the plugin define. I've used a similar technique for logcheck, so additional rules are not installed unless I've installed logcheck. I'm sure there are several other places where I can use it to reduce such tight coupling between classes.
Read Comments (2)

18 February 2010

Alexander Reichle-Schmehl: RC-Bug statistics for Squeeze, calendar week 7:

Note: Please see RC-Bug statistics for Squeeze, calendar week 7 for an explanation of the numbers.
Total:699+49
Affecting Squeeze:559+41
Squeeze-only:117+23
Unfixed bugs remaining in Squeeze:442+18
Of these 442 bugs...
... are pending36+4
... are patched:65+1
... are duplicates:47+-0
... are in Non-free or contrib:10+10
... are claimed by someone:14-3
... are fixed in the delayed queue:5-1
... are somehow marked as fixed:53+14
Or in other words:
Release critical bugs left in squeeze, when ignoring all these:
262 (+2 compared to previous week). With this release managers views, 472 (+48 compared to previous week) bugs remain to be fixed somehow before we can release. Some notes: So much for this week. Let's see, how the numbers evolve in the coming seven days...

11 February 2010

Alexander Reichle-Schmehl: [Updated] RC-Bug statistics for Squeeze, calendar week 6:

Back in the Lenny release cycle, I published some statistics of the release critical bugs. As we are (try to) get nearer to a freeze of Squeeze I think it's time to start that again. But first, a small explanation follows, what these numbers actually mean. If you look at our official bug tracking system currently lists 750 release critical bugs affecting the next stable release. While this number is kind of true, it is not accurate to use it to measure the state of the release. The unofficial rc bug thingy at bts.turmzimmer.net is quite more powerful to actual get some interesting numbers, as you can ignore specific kinds of bug and filter them properly. Note, that at the very end of the detailed list of the bugs you get the total number. With that interface you can for example filter them by different distributions. For example it currently lists 650 rc bugs in total for any distribution, but if you filter for squeeze bugs, you get only 518. That's a different number as the official bug tracker shows; I'm not entirely sure why, but a part of that difference is that both the official and the unofficial web pages are only synced periodically. Should someone be able to give a good explanation about the differences, please step forward ;) But let's play more: You can filter for bugs valid in squeeze-only, but not in sid. These bugs are already fixed in sid, but the packages haven't yet migrated to squeeze. Currently that are 94 bugs. We can furthermore ignore bugs only in sid; when squeeze is unaffected, we just don't migrate the broken package from sid to squeeze. The number that is most interesting for contributors is the number of bugs affecting both, sid and squeeze, as these are the ones which really need to be fixed as no fix is known, yet. So filtering for bugs for both we are down to 424 at the moment. But of these 424 remaining release critical bugs, we can still ignore some (for now). For example bugs concerning packages in non-free or contrib (9 currently) won't stop us from release, will they? There are also many bugs marked as pending (32), meaning that the maintainer is aware of the bug has a fix prepared and is just waiting with the upload a moment. Some of this bugs have already a patch (64), but no one reviewed it and uploaded it by now. You'll also see that you can ignore merged bug reports (47). That are bug reports reporting the very same bug several times. Finally there are bug fixes already uploaded to the so called delayed queue (6). This are bug fixes which where uploaded by someone else than the real maintainer, but to give the maintainer a chance to act on himself or to comment, the upload is delayed by some days before it will actually hit the archive. Currently 6 bugs are fixed by uploads to delayed. 17 bugs are claimed meaning that someone already said he will take care of this bug (but they are not finished, yet). You could also ignore the bugs invalidated by today's britney bug category, representing bugs which will vanish after the next migration of packages from sid to freeze, but as we are only looking at rc bugs in both sid and squeeze, this number will always 0 ;) That leaves bugs somehow other marked as fixed which are bugs (39) where I honestly have no Idea what they are... If someone can explain them, please do so ;) Here is a small tabular showing the above numbers:
Total:650
Affecting Squeeze:518
Squeeze-only:94
Unfixed bugs remaining in Squeeze:424
Of these 424 bugs...
... are pending32
... are patched:64
... are duplicates:47
... are in Non-free or contrib:9
... are claimed by someone:17
... are fixed in the delayed queue:6
... are somehow marked as fixed:39
Or in other words:
Release critical bugs left in squeeze, when ignoring all these:
260 That's a pretty number, isn't it? There are only 260 bugs left which need our immediate attention :) But that is a rather optimistic view of the situation. We e.g. assume that all bugs having a patch are really fixed by the patch. We also ignored, that some bugs in squeeze are already fixed in sid, but the package can't migrate because the package in sid contains a new bug. (Which happens to release wizard Marc Brockschmidt quite often.) So if we take off the purple classes and take a more pessimistic view (release mangers must be pessimists to ensure high quality packages ;) we count the bugs in squeeze and ignore only those bugs, which are: With this release managers views, 424 bugs remain to be fixed somehow before we can release. As far as I know, we can freeze once that number is reliable under 300. So we better get working ;) When asked, what is the thing mostly needed to help the release, I was told: mips porter!
As you might have read we have some problems with the mips and mipsel architectures. It seems we have all the hardware we need, but it doesn't work very reliable. I have been told, that over 300 packages are only waiting to be build on mips* architectures. So if you can help us in that regard, please contact our mips porter mailing list. Update: Andreas Barth just told me, that he already send a couple of mails to the mips list describing the problem and asking questions. Answers to these questions would be most welcome and accpeted gladly.

10 February 2010

Mike Hommey: Iceweasel upgrade homepage, a week later

When users upgrade Firefox, they are shown a special web page after restart. As this was obviously very Firefox oriented, this was disabled in Iceweasel. Until a week ago. A week ago, I created a (quite raw) web page that users of Iceweasel 3.5.6-2 would see after they install or upgrade. The idea behind this page was suggested by Moritz Muehlenhoff during my BoF at DebConf 9, and consisted of displaying a call for help message in a splash screen. What most looked like this in Iceweasel is the Firefox feature mentioned above. I unfortunately wasn t able to implement it until now. So, a week after these pages were put online and Iceweasel 3.5.6-2 was uploaded, even though I can t say it s a huge success, it at least led to some movement: More than 12000 users (still growing) saw the pages, out of which almost 1800 (roughly 15%) followed the link for a new logo. While there was no contribution for a new logo yet, there has already been several translations contributions for the web pages, in german, spanish and italian. Next iceweasel upload will consequently send users to a localized version of the web page when it exists. The server logs also allow to have some figures on the usage of localized versions of Iceweasel, but as this is based on user agent strings, it is not totally accurate, though somehow interesting:
  1. english: 58.3%
  2. german: 15.2%
  3. french: 7.9%
  4. spanish: 3.8%
  5. italian: 2.7%
  6. polish: 2.5%
  7. japanese: 2.2%
  8. russian: 2.1%
  9. portuguese: 1%
  10. czech: 0.6%
Another interesting figure is that apparently 2.4% of users haven t upgraded xulrunner-1.9.1 and are not using version 1.9.1.6 with their Iceweasel 3.5.6. I m afraid of what this can mean for stable security updates, although, as being security updates, they may be followed better. Somewhere around 7% of users have, at some point, changed their user agent string to include Firefox in it, because web sites suck. This is a very interesting figure because despite that being quite significant, we haven t got that many complaints (I m not saying there weren t, but I would have expected more, considering the amount of users involved). Fortunately, this was changed recently, so all these users could reset their user agent string. And last but not least, except amd64 and x86 users, we saw 14 powerpc users and 7 arm users.

3 February 2010

Alexander Reichle-Schmehl: Dear lazyweb, I have problem understanding ACLs, maybe you can help me?

It was easy to understand how to activate and set ACLs and I also understood the mask, which defines the maximum rights a user might get through ACLs. However, what I don't understand is, why this mask is dynamically calculated and set with every chmod (or equivalent) access... Perhaps I should describe my problem a bit more: For our (web-) developers Linux workstations I need to grant them some additional rights to the configuration files. As they always get no tasks and need to install new software (solved via sudo) and change the configuration, I so far thought the easiest would be to grant them write privileges on /etc (safe some special files like /etc/shadow of course). So I thought I could use ACLs to grant them rwx-privileges. Using default-ACLs (which are inherited when creating new files) it would be easy, if they e.g. install an own Apache web server, as the new directory and the new files inherit the default ACL. However, due to the mask being set to r-x, our developers still don't get write permission on /etc/apache2/foo. I tried to set a default mask, too, which seems to be inherited. But as soon as the package management does the equivalent of chmod 740 the mask gets recalculated and my ACLs don't work any more. Appearently, ACLs are not the solution to my problem :( But how do I solve my problem? And why is the mask always recalculated?

1 February 2010

Erich Schubert: Maps-Calendar Mashup

Well, I'd not call it a Mashup - it's actually backed by a custom database, a Xapian index for full text search and so on. To me, a true mashup would work without own server side code.Anyway, what it does is this: It's using the Maps V3 API, currently in public testing, which seems to give quite some extra speed compared to earlier versions. I've also added two extra controls, a search box at the top center, and a "Go to" menu on the left, which uses the visitor position from Google.The data is coming from swing dancing calendars, so it's real world data, and you should get different results every day. Most of the data is from Germany, so that is where you can see the marker aggregation and these things in effect.Here's the prototype.There is still lots of things to do, but this is just my free time project, when I'm not at work, dancing or with my friends. I don't know yet if this will remain online, it's more of a toy project for me. Still it's cool to see where there are swing dancing events, and it's cool to be able to just zoom to another city and see where you could "hop by" for a dancing event while you're there. But there are just a lot of UI issues to solve to get this really usable, and I'm not much of an UI guy...P.S. if it doesn't work, that probably means I'm currently working on it. There is no staging, and no "production system".

29 January 2010

Alexander Reichle-Schmehl: [Update] When fixing RC bugs...

... please try to prevent your upload from hitting the NEW queue (by changing your binary packages). While we try to process the NEW queue as soon as possible, it would be a shame, if your release critical bug fix is delayed, because all ftp-foo are busy. PS: That's especially true, if you NMU a package...
Update: I stand corrected: The NMU I had in mind was a legitimate addition of a new package due to library changes. In these cases a ping in the #debian-ftp channel would be welcome.

25 January 2010

Andrew Pollock: [life] Mostly moved

Moving today went as about as well as you could possibly ask for. The movers arrived at a few minutes to 9, had most of the place packed up within 30 minutes, and I think we headed to the new place in a little over an hour. Mad props to Handle With Care Moving. The guys were really great. The rain also held off for the duration, thankfully. There's just dregs left at the old place, oh and the entire kitchen. I think we're both subconsciously dreading (and therefore avoiding) moving the kitchen stuff, because we really don't want to unpack at the new place, because the kitchen is going to get totally destroyed in hopefully a couple of weeks time. I'm finding wall space to be a bit of a premium at the new place. We're trying to keep the second bedroom as usable as a bedroom as possible, while primarily using it as a study, so that when we have house guests, we can throw some sort of bed down in that room and not have it all become ridiculously cluttered. When you've got desks all against one wall, a built-in wardrobe against another wall, and a full length sliding door on the other wall, that doesn't leave too many options for a bookshelf and retaining space for a bed. I think we might have to avail ourselves of some more elfa shelving and ditch the Ikea bookshelf we currently have. On the other hand, our bedroom is looking pretty good. For the first time in ages, it's just going to be a bedroom. No desks, no filing, no storage. The wardrobe has less space than our old place, so we're having to be pretty ruthless with clothing. Oh, and the bathroom storage: way less. Not sure how we're going to sort that one out at the moment. The phone and cable TV should get hooked up tomorrow, and then I'll get the DSL moved over, so hopefully by Wednesday, we'll have Internet connectivity. We brought the cats over this afternoon. They're still confined to our bedroom at the moment until they calm down a bit. We have until next Sunday to officially be out of the old place.

24 January 2010

Alexander Reichle-Schmehl: Question:

How many DDs does it take to open the CD-ROM drive of a PowerPC G4 running Mac OS X 10.2? 9 and two external helpers. And they need more than 25 minutes. I'm sure pictures will follow soon... PS: I don't mention how to do it, to not take the fun for future observers...

23 January 2010

Joerg Jaspert: Uploaders index

For a long time we had a bug against the archive asking us to export a file similar to the Maintainers index, just for the Uploaders (aka Co-Maintainers). Back then it wasn t that easy, but this changed. A while ago I also got a patch from Emilio Pozuelo Monfort against the first bug asking for it (#120262 !, and so went to integrate it. Of course this told us about a deficit in daks code parsing the Uploaders field. No, it is not good to solely split on a comma, when we have at least one Maintainer with a comma in their name field. We now split on the end of a mail address, followed by a comma. This simple idea is from Alexander Reichle-Schmehl, I was always thinking of a more complicated parser for it But heck, why? Yes, this can easily go wrong, if people, for whatever reason, add a space in there. But it only harms them, not us, so I don t think it is a big problem. Let us help you shot in your own foot. :) The new file will be exported as Uploaders.gz right besides the Maintainers.gz we already have on every mirror in the indices/ directory, starting with the next dinstall run (that will start in 2 hours and some 42 minutes, at time of writing this entry). Until then you can find a version at my space, to poke around and find bugs. A good example is right at the top - a52dec. Bug already filed, they missed a comma between two Uploaders. Feel free to hunt for your own bugs. :) And while I am writing already: Are you working with data generated out of the Debian archive, but have to generate the data yourself? (Like people had with the Uploaders index in the past, for example). Feel free to ask for it to be generated during dinstall. If the data is available (or can be made) and makes sense to have for more than just a personal pet project, we are happy to merge patches, help with it, provide it. (And really, asking cost nothing, we can t do more than deny it).

21 January 2010

Alexander Reichle-Schmehl: tofrodos_1.7.8.debian.1-2_i386.changes ACCEPTED

Cool, eh? Okay, not that tofrodos has any new features, but at least the following will return zero tomorrow: wget -q http://ftp.de.debian.org/debian/dists/sid/main/binary-i386/Packages.bz2 -O- bzgrep Schmehl grep -v -c Reichle. Just took me a bit more than a year and a half to find a reason to upload all of my packages at least once... Now let's take a look at the team maintained packages, which are still left..

14 January 2010

Alexander Reichle-Schmehl: Installing Oracle XE under Debian

Should have problems getting Oracle XE run under Debian, check that you are using the package from their repository not the ones available at their website. The later ones seem to be outdated and buggy; don't know why the haven't changed their website yet; the fixed packages are only available since May 2006...

11 January 2010

Gunnar Wolf: Engineer? Scientist?

Looking over some articles in the March 2009 issue of the Communications of the ACM magazine, I found a very good piece column (Is software engineering engineering?, Denning, Peter J., and Riehle Richard D. , Communications of the ACM, 03/2009, Volume 52, Number 3, p.24-26, (2009) ). Quoting from it:
The search for an alternative to the programmer image is already a generation old. In 1989 we asked: Are we mathematicians? Scientists? Engineers? We concluded that we are all three. We adopted the term "computing", an analogue to the European "informatics", to avoid bias towards any one label or description. (...) Predictable outcomes (principle of least surprise) Engineers believe that unexpected behaviors can be not only costly, but dangerous; consequently, they work hard to build systems whose behaviorthey can predict. In software engineering, we try to eliminate surprises by deriving rigurous specifications from well-researched requirements, then using tools from program verification and process management to assure that the specifications are met. The ACM Risks Forum documents a seemingly unending series of surprises from systems on which such attengion has been lavished. Writing in ACM SIGSOFT in 2005, Riehle suggested a cultural side of this: where researchers and artists have a high tolerance, if not love, for surprises, engineers do everything in their power to eliminate surprises. Many of our software developers have been raised in a research tradition, not an engineering tradition.
It would be an interesting excercise to find how people rate themselves in this regard in a large group of developers, and find the differences in their coding styles, or how varied (in developer profiles) are each of the sub-groups.

8 January 2010

Chris Lawrence: From the department of bad statistics

I m glad to see that some things never change; in this case, it s the low quality of local news reporting in Laredo. Pro8News breathlessly reports that Mexican drivers are less likely to be ticketed since less than 25% of parking tickets in Laredo are issued to Mexican-licensed vehicles. This story just begs to be placed on a research methods final as one of those identify all of the problems with this analysis questions. Bonus points for invoking Bayes theorem.

22 December 2009

David Pashley: Maven and Grails 1.2 snapshot

Because I couldn't find the information anywhere else, if you want to use maven with Grails 1.2 snapshot, use:
mvn org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate
-DarchetypeGroupId=org.grails
-DarchetypeArtifactId=grails-maven-archetype
-DarchetypeVersion=1.2-SNAPSHOT     -DgroupId=uk.org.catnip
-DartifactId=armstrong
-DarchetypeRepository=http://snapshots.maven.codehaus.org/maven2
Read Comments (0)

18 December 2009

Julian Andres Klode: The previous post


Well, it seems that several news sites (golem.de, pro-linux.de, linux-magazin.de, linux-magazine.com, ubuntu-user.de [the last ones all from the same publishing house]), especially German ones have picked up the last blog post with same false impressions. First, they stated that I am planning an APT2 release for Christmas. They took the statement
[...] the internal branch has seen a lot of new code[...]. Most of the code will need to be reworked before it will be published, but I hope to have this completed until Christmas.
as a proof for this. But in the context of this paragraph, publish was not meant in the term of publishing a release, but in the term of publishing the code (of the internal branch) in the public repository. The code is public now and lives in a temp branch and will be reworked there for inclusion in the master branch. Secondly, those news sites called me an Ubuntu developer. While I do contribute to Ubuntu, and am an Ubuntu Member, I am NOT an Ubuntu Developer, as I am NOT a member of the relevant ubuntu-dev team at launchpad. Thirdly, those who stated that speed is a goal (mostly pro-linux, at least from my understanding): It is not, at least not now. It is just a coincidence caused by using a relational database. Furthermore, the test was not really fair, since the other package managers both provide more information than capt; information which has yet to be made accessible in APT2. It was just an initial conclusion that SQLite is quite fast. Please note that APT2 is a free time project in development, and the programming language used is still in development as well; as well as some other reverse dependencies. I should also state that neither Debian nor Ubuntu have any plans to drop apt at the moment; and APT is still actively developed. Posted in APT2

8 December 2009

Bastian Venthur: Printing

Funny coincidence that David writes how well Linux and Printers go together for 12 years, while it is apparently impossible to print something with CUPS in unstable since a week ;)

David Pashley: Conversations regarding printers

I just had the following conversation with my linux desktop:
Me: "Hi, I'd like to use my new printer please." Computer: "Do you mean this HP Laserjet CP1515n on the network?" Me: "Erm, yes I do." Computer: "Good. You've got a test page printing as we speak. Anything else I can help you with?"
Sadly I don't have any alternative modern operating systems to compare it to, but having done similar things with linux over the last 12 years, I'm impressed with how far we've come. Thank you to everyone who made this possible.
Read Comments (3)

4 December 2009

Alexander Reichle-Schmehl: Good advice for preseeding the debian-installer

If you use a script to do some customisations run via preseed/late_command then don't do it the following way:
d-i preseed/late_command string cp /hd-media/do-tib-stuff.sh /target/tmp ; in-target /tmp/do-tib-stuff.sh ; rm /target/tp/do-mystuff.sh!
That way you'll never notice, if your script run successfully as its exit code is eaten by the removal. When running several late-commands always use && to chain the commands, so if one command fails the processing will stop and the installer will show you a nice message that indeed something went wrong.

3 December 2009

Debian News: New Security Team member and new Security Team assistant

It is our pleasure to announce that Giuseppe Iuculano is now a full member of the Security Team.

Also, Raphael Geissert has been added as an assistant to the Security Team.

Moritz M hlenhoff, on behalf of the Security Team

Next.

Previous.