Search Results: "ean"

22 September 2006

Scott James Remnant: Upstart can now replace sysvinit

Today I reached another milestone in the development of upstart, the packages in universe can now replace the existing sysvinit package. Before trying this, make sure your installation is up to date as we’ve had to split out some parts of sysvinit into a new sysvutils package. If you’re up to date, and want to try it out, install the upstart and upstart-compat-sysv packages from universe. Note that the first reboot after you’ve installed the packages (from sysvinit to upstart) will be a little tricky … use reboot -f. If your system boots and shuts down normally, everything’s working just fine. Note that both will be somewhat more quiet than you’re used to, unless you have usplash running. Throughout the rest of this entry, I’ll try to answer some of the questions and comments that I’ve received since the last post. Events As I talked about previously, upstart is an event-based init daemon. Events are the primary force for having your services and tasks started and stopped at the appropriate time and in the appropriate order. So what are events and where do they come from? (Note that this part is under development, so may change in later releases). Events are just simple strings that may be sent by any process when something it is tracking the state of changes. They have no state or longevity, and if, when queued, they do not cause any job state changes, then they have no effect unless they are sent again. Jobs can list which events cause them to be started if they are not already running and which events cause them to be stopped if they are running. Multiple start and stop events may be listed, in which case the first to occur changes the job until the next one occurs. upstart itself generates the following system events: The shutdown tool included in the package also causes one of the following events to be sent once the “shutdown” event has been handled: Jobs also generate events whenever they change state, this is the primary source of events for ordering: And as mentioned, any other process on the system may send events through the control socket or just by using initctl trigger EVENT. For now this is just the event string, however it’s intended that the event may include other details including environment variables and even file descriptors. Typical example To clarify how it all hangs together, here’s an example (using fictional names) of how the tasks and events can be arranged to provide race-free mounting of filesystems. By breaking this job into these small tasks, we can see how the pieces fit together. Because everything is now done on events, there are no race conditions; we know that any filesystem listed in /etc/fstab will be checked and mounted. The only reason they wouldn’t be is if there’s an error of some kind, and that means you have larger problems anyway and the system administrator would have a shell to fix it. Of course, the moment they finish checking the filesystem and mount it, the boot process would carry on. There’s no reason that any of these events need to be generated by the upstart daemon itself, it can receive them from any other daemon on the system such as udev, acpid, etc. This keeps the focus of the init daemon narrow. A large part of the future development will be working out exactly what kinds of events we want init itself to generate, what kinds we want to come from elsewhere, and what the contents of an event can be. Getting Involved If you want to get involved with trying to nudge the direction of upstart development, you can join the upstart-devel mailing list at http://lists.netsplit.com/ Or if you just want to grab the source code, tarballs are published at http://people.ubuntu.com/\scott/software/upstart/ and the bzr archive is at http://bazaar.launchpad.net/\keybuk/upstart/main

Scott James Remnant: Upstart in Universe

upstart is a replacement for the init daemon, the process spawned by the kernel that is responsible for starting, supervising and stopping all other processes on the system. The existing daemon is based on the one found in UNIX System V, and is thus known as sysvinit. It separates jobs into different “run levels” and can either run a job when particular run levels are entered (e.g. /etc/init.d/rc 2) or continually during a particular run level (e.g. /sbin/getty). The /etc/init.d/rc script is also based on the System V one (and is in the sysv-rc package), it simply executes the stop then start scripts found in /etc/rcN.d (where N is the run level) in numerical order. Why change it? Running a fixed set of scripts, one after the other, in a particular order has served us reasonably well until now. However as Linux has got better and better at dealing with modern computing (arguably Linux’s removable device support is better than Windows’ now) this approach has begun to have problems. The old approach works as long as you can guarantee when in the boot sequence things are available, so you can place your init script after that point and know that it will work. Typical ordering requirements are: This worked ten years ago, why doesn’t it work now? The simple answer is that our computer has become far more flexible: We’ve been able to hack the existing system to make much of this possible, however the result is chock-full of race conditions and bugs. It was time to design a new system that can cope with all of these things without any problems. What we needed was an init system that could dynamically order the start up sequence based on the configuration and hardware found as it went along. Design of upstart upstart is an event-based init daemon; events generated by the system cause jobs to be started and running jobs to be stopped. Events can include things such as: In fact, any process on the system may send events to the init daemon over its control socket (subject to security restrictions, of course) so there is no limit. Each job has a life-cycle which is shown in the graph below: The two states shown in red (“waiting” and “running”) are rest states, normally we expect the job to remain in these states until an event comes in, at which point we need to take actual to get the job into the next state. The other states are temporary states; these allow a job to run shell script to prepare for the job itself to be run (“starting”) and clean up afterwards (“stopping”). For services that should be respawned if they terminate before an event that stops them is received, they may run shell script before the process is started again (“respawning”). Jobs leave a state because the process associated with them terminates (or gets killed) and move to the next appropriate state, following the green arrow if the job is to be started or the red arrow if it is to be stopped. When a script returns a non-zero exit status, or is killed, the job will always be stoped. When the main process terminates and the job should not be respawned, the job will also always be stopped. As already covered, events generated by the init daemon or received from other processes cause jobs to be started or stopped; also manual requests to start or stop a job may be received. The communication between the init daemon and other processes is bi-directional, so the status of jobs may be queries and even changes of state to all jobs be received. How does it differ from launchd? launchd is the replacement init system used in MacOS X developed as an “Open Source” project by Apple. For much of its life so far, the licence has actually been entirely non-free and thus it has only become recently interesting with the licence change. Much of the goal of both systems appears initially to be the same; they both start jobs based on system events, however the launchd system severly limits the events to only the following: Therefore it does not actually allow us to directly solve the problems we currently have; we couldn’t mount filesystems once the “filesystem checked” event has been recived, we couldn’t check filesystems when the block device is added and we certainly couldn’t start daemons once the complete filesystem (as described by /etc/fstab) is available and writable. The launchd model expects the job to “sit and wait” if it is unable to start, rather than provide a mechanism for the job to only be started when it doesn’t need to wait. Jobs that need /usr to be mounted would need to spin in a loop waiting for /usr to be available before continuing (or use a file in a tmpfs to indicate it’s available, and use that modification as the event). This is not especially surprising given that Apple have a high degree of control over both their hardware and the actual underlying operating system; they don’t need to deal with the wide array of different configurations that we have in the Linux world. Had the licence been sufficiently free at the point we began development of our own system, we would probably have extended launchd rather than implement our own. At the point Apple changed the licence, our own system was already more suitable for our purposes. How does it differ from initng? Initng by Jimmy Wennlund is another replacement init daemon intended to replace the sysvinit system used by Linux. It is a dependency-based system, where upstart is an event-based system. The notion of a dependency-based system is interesting to talk about at this point. Jobs declare dependencies on other jobs that need to happen before the job itself can be started. Starting the job causes its dependencies to be started first, and their dependencies, and so on. When jobs are stopped, if running jobs have no dependencies, they themselves can be stopped. It’s a neat solution to the problem of ordering a fixed boot sequence and the problem of keeping the number of running processes to a minimum needed. However this means that you need to have goals in mind when you boot the system, you need to have decided that you want gdm to be started in order for it, and its dependencies, to be started. Initng uses run levels to ensure this happens, where a run level is a list of goal jobs that should be running in that run level. It’s also not clear how the dependencies interact with the different types of job, a dependency on Apache would need the daemon to be running where a dependency on “checkroot” would need the script to have finished running. Upstart handles this by using different events (“apache running” vs. “checkroot stopping”). Again while interesting, Initng does not solve the problems that we wanted to solve. It can reorder a fixed set of jobs, but cannot dynamically determine the set of jobs needed for that particular boot. A typical example would be that if the only dependency on the job that configures networking is the mount network filesystems job, then should that job fail or notbe a goal (e.g. because there are no network filesystems to be mounted) the result is that network devices themselves will not be configured. You could make everything a goal, and just use the dependencies to determine the order, however this is less efficient than just ordering the existing sysv-rc scripts (which can be done at install time). Another example is that often you simply don’t know whether something is a dependency or not without reading other configuration, for example the mount network filesystems may be a dependency of everything under /usr or may just be a dependency of anything allowing the user to login if it just mounts /home. The difference in model can be summed up as “initng starts with a list of goals and works out how to get there, upstart starts with nothing and finds out where it gets to.” How does it differ from Solaris SMF? SMF is another approach to replacing init developed by Sun for the Solaris operating system. Like initng it’s a dependency-based system, so see above for the differences between those systems and upstart. SMF’s main focus is serive management; making sure that once services are running, they stay running, and allowing the system administrator to query and modify the states of jobs on the system. Upstart provides the same set of functionality in this regard, services are respawned when they fail and system administrators can at any time query the state of running services and adjust the state to their liking. Will it replace cron, inetd, etc? The goal of upstart is to replace those daemons, so that there is only one place (/etc/event.d) where system administrators need to configure when and how jobs should be run. In fact, the goal is that upstart should also replace the “run event scripts” functionality of any daemon on the system. Daemons such as acpid, apmd and Network Manager would send events to init instead of running scripts themselves with their own perculiar configuration and semantics. A system administrator who only wanted a particular daemon to be run while the computer was on AC power would simply need to edit /etc/event.d/daemon and change “on startup” to “on ac power”. What about compatibility? There’s a lot of systems administrators out there who have learned how Linux works already and will not want to learn again immediately, there’s also a large number of books that cover the existing software and won’t cover upstart for at least a couple of years. For this reason, compatibility is very important. upstart will continue to run the existing scripts for the forseeable future so that packages will not need to be updated until the author wants. Compatibility command-line tools that behave like their existing equivalents will also be implemented, a system administrator would never need to know that crontab -e is actually changing upstart jobs. Does it use D-BUS?
“To D-BUS people, every problem seems like a D-BUS problem.” —Erik Troan
The UNIX philosophy is that something should do just one job, and do it very well. upstart’s one job is starting, supervising and stopping other jobs; D-BUS’s one job is passing messages between other jobs. D-BUS does provide a mechanism for services to be activated when the first message is sent to them, thereby starting other jobs. Some people have taken this idea and extended it to suggest that all a replacement init system need do is register jobs with D-BUS and turn booting into a simple matter of message parsing. This seems wrong to me, D-BUS would need to be extended to supervise these services, provide means for them to be restarted and stopped; as well as deal with being process #1 which means cleaning up after children whose parent’s have died, etc. It seems far simpler to arrange for D-BUS to send an event to init when it needs a service to be started, and focus on being a very good message passing system. The IPC mechanism used by upstart is not currently D-BUS because of various problems, however it’s always been expected that even if init itself doesn’t communicate with D-BUS directly, there would be a D-BUS proxy that would ensure messages about all init jobs and events would be given to D-BUS and D-BUS clients could send messages to init to query and change the state of jobs. What is the implementation plan? Because this is process #1 we are changing, we want to make sure that we get it right. Therefore instead of releasing a fully-featured daemon and configuration to the world, we’re developing it in the following stages:
  1. Principal development; at the end of this stage the daemon has been implemented and can manage jobs as described.
  2. Replacement of /sbin/init while running the existing sysv-rc scripts. This is the shake-down test of the daemon, can it perform the same job as the existing sysvinit daemon without any regressions?
  3. /etc/rcS.d scripts replaced by upstart jobs. These consitute the majority of tasks for booting the system into at least single-user mode, and contain many of the current ordering problems and race conditions. If the daemon solves the problems here, it will be a success.
  4. Other daemon’s scripts replaced by upstart jobs on a package-by-package basis; this will be an ongoing effort during which upstart will continue running the existing sysv-rc scripts as well as its own jobs. During this time the event system may be tweaked to ensure it truly solves the problems we need.
  5. Replcement of cron, atd, anacron and inetd. This will happen alongside the above and result in a single place to configure system jobs.
  6. Modification of other daemons and processes to send events to init instead of trying to run things themselves.
The current plan is that we will be at least part of the way into stage #3 by the time edgy is released, with that release shipping with upstart as the init daemon and the most critical rcS scripts being run by it to correct the major problems For edgy+1 we hope to have completed stage #5 and be at least part of the way into the implementation of stage #6. From the start of development of edgy+2, no new packages will be accepted unless they provide upstart jobs instead of init scripts and init scripts will be considered deprecated. What state is it in now? The init daemon has been written and is able to manage jobs as described above, receiving events on the control socket to start and stop them. This has now been uploaded to the Ubuntu universe component in the upstart package for testing before it becomes the init daemon. We welcome any experienced users who want to help test this; install the package and follow the instructions in /usr/share/doc/upstart/README.Debian to add a boot option that will use upstart instead of init. If your system boots and shut downs normally (other than a slightly more verbose boot without usplash running) then it is working correctly. Other types of events will be added as required during development and testing. Currently only a basic client tool (initctl) has been written, compatibility tools such as shutdown will be written over the next week or two before it replaces our sysvinit package.

Scott James Remnant: Having Left Debian

It’s been over a year now since my last proper upload to Debian, and nine months since I announced my intent to put aside working on Debian for a while. With Matthew Garrett’s resignation from Debian, several people have compared it to my own “resignation” from Debian. It has got my thinking about whether I currently intend to ever end my “Sabbatical” and return as an active Debian Developer. I think that the end of my love-affair with Debian started at Debconf last year where several developers treated those of us who also worked on Ubuntu quite rudely. Someone was attacked for wearing an Ubuntu t-shirt at the conference, while someone else was applauded for wearing a “Fuck Ubuntu” t-shirt. That’s where I realised that maybe I didn’t have as much in common with these people as I thought I did. I still don’t understand why Debian singles Ubuntu out for this kind of treatment, we’re still the only derviative distribution that makes all of our patches to Debian available, yet Ubuntu is claimed to not do anything at all. Another example is that Ubuntu is being asked to change the Maintainer field of every package, something no other derivative is being asked to do or has ever been asked to do. Martin Krafft has had some interesting things to say about this strange relationship in the past. If that was the start of my falling out with Debian, I think that Debian considering removing documentation and firmware from the distribution, especially the documentation, was another point I started wondering whether I shared anything in common with the project anymore. Call me strange, but I think that one of the fundamental purposes of a Linux distribution is to be useful to its users. If nobody can use the distribution because it doesn’t support their hardware, and even if it did, all the documentation has been stripped out; I started to wonder what it’s aims are. It became increasingly apparent that the only users Debian was considering a priority were its own developer. And the third thing is simply a matter of Fun. Fun for me, at the moment at least, has been to build a system that fits together extremely nicely with each component doing the right thing. For Ubuntu this has meant being a driving force for it being Linux 2.6 only, with reliance on udev for hardware, etc. Upstart is just a continuation of these goals, getting a system which all “just works”, even if it means throwing out a few things people were previously fond of. All of these things would have been impossible to do in Debian itself. Getting upstart installable required changes to twelve different packages, including sysvinit itself; at a worst case, this would have required the agreement of twelve different maintainers in Debian. It’s often exhausting just persuading one of the reason for the change, persuading a dozen would have been a herculian effort. Perhaps Matthew is right, what Debian lacks is a single leadership. There’s nobody in Debian I could have gone to for approval over the changes I wanted to make, whose decision developers cannot overrule. Ubuntu has such people (the Technical Board and sabdfl), which gives the project an obvious direction instead of a couple of hundred people all pulling in different directions. In a way, I don’t feel that I’ve left Debian. I feel like I was happily going along, only to realise the mob had gone in a different direction and with no easy way of rejoining the group.

Raphaël Hertzog: Some words about dunc-tank

Madcoder decided to quote some bits of an IRC conversation held on #debian-devel-fr and (of course, given his current frustration) he munges the meaning of my quote. I was explaining that for me dunc-tank was definitely not perfect but that it was a first step in a global direction that I’d like to explore. I explained my long term project with dunc-tank in a french blog entry and I also explained it to Bruce Byfield who interviewed me as a member of dunc-tank. My long term project always involved that decision-making of what to fund would be shared between the donors and all Debian developers. I sincerly hope to avoid many of the current criticism with this infrastructure but I can’t be sure. In the mean time, the current experiment is not run because it’s perfect and ready for generalization but because we want to see if it’s possible to get enough funding, and if it’s actually worth to invest more time in developing something more acceptable to everybody. (And also because we would really love to have etch release in december) This is my opinion: I’m not speaking for dunc-tank although I have the feeling that others members of the board are there for similar reasons. Update: following sam’s bad interpretation I fixed my wording to say “…decision-making of what to fund would be shared…”.

21 September 2006

Ian Murdock: What s new with the LSB

It’s been a while since I’ve written about the LSB here, so I figured I was overdue to give an update. In short, it’s been a great year. Highlights include: » All major distributions, including Asianux, Debian, Mandriva, Red Hat, SUSE, and Ubuntu, are either already certified to LSB 3, in the process of certifying, or planning to certify their next version (see our list of expected distribution coverage for LSB 3). » A number of ISVs (independent software vendors), including MySQL and RealNetworks, are in the process of certifying applications to LSB 3. For ISVs, LSB certification means fewer distribution specific packages without sacrificing distribution coverage (take a look at the MySQL download page for an example of how crazy it can get). For users, LSB certification means greater application availability with a minimum of hoops to jump through. Expect a lot more announcements about LSB certified applications in the coming months. » We’ve put together a solid roadmap for the LSB going forward. The LSB aims to provide a “highest common denominator” across the various Linux distributions—in other words, to provide a single target for ISVs writing or porting to the Linux platform, where “the Linux platform” is defined by a short (and potentially different from ISV to ISV) list of distributions on which their applications must run. To serve as an effective highest common denominator, it needs to be easy to map from LSB versions to distributions and vice versa; and it needs to be possible to target a version of the LSB with assurance that the application will work not only on that version but on future versions as well (i.e., an LSB 3.0 application will run on LSB 3.0, 3.1, 3.2, 4.0, … compliant distributions). We’ve made great strides toward these goals in the past few months. To satisfy the “easy mapping” requirement, each major version of the LSB now corresponds to a major version, or “generation”, of the enterprise distributions. So, for example, LSB 3.x corresponds to the current generation (Red Hat Enterprise Linux 5, SUSE Linux Enterprise 10, etc.), LSB 4.x corresponds to the next generation (RHEL 6, SLE 11, etc.), etc. To satisfy the application compatibility requirement, LSB versions both major and minor beginning with 3.0 are strictly backward compatible with previous versions. At a high level, then, the LSB roadmap looks something like this:
LSB 3.x (2006-2008) LSB 4.x (2008-2010)
Asianux 2.0
Debian 4.0 (”etch”)
Mandriva Corporate 4.0
Red Hat Enterprise Linux 4 & 5
SUSE Linux Enterprise 9 & 10
Ubuntu 6.06 LTS (”dapper”)
[…]
Asianux 3.0
Debian “etch” + 1
Mandriva Corporate 5.0
Red Hat Enterprise Linux 6
SUSE Linux Enterprise 11
Ubuntu LTS “dapper” + 1
[…]
» Speaking of the LSB roadmap, we’re hard at work on LSB 3.2, to be released Q2 2007. The short list of new features include the addition of Perl, Python, several freedesktop.org specifications for desktop interoperability, CUPS, HPIJS, ALSA, and more. For LSB 4.0, we’ll be uplifting LSB Core to GCC 4.1 and glibc 2.4 and looking at two longstanding issues, the addition of Java and a packaging facility for ISVs, among many other things. The roadmap will be posted for public comment shortly. » We’re making it easier than ever to build portable applications using the LSB. We released the LSB SDK (Software Development Kit), which bundles everything a developer needs to write or port to the LSB, with LSB 3.1. We’re building something called the LSB Application Testkit, which aims to be the LSB’s validator.w3.org, an easy to use tool that developers can use to test for application portability. And we quietly launched a beta version of the LSB Developer Network last month. » In July, we hired Till Kamppeter, making linuxprinting.org, the de facto standard repository of Linux printer drivers, an FSG project. We’re adding both distribution neutral printer drivers (delivered, naturally, as LSB packages) to the linuxprinting.org foomatic database as well as an API that third party printer management tools can use to install and update printer drivers. We also plan to extend the LSB certification program to cover printers in addition to distributions and applications. If all goes well, you’ll be able to look for the LSB Certified mark on a printer at the store and know that it will work on your distribution of choice in the not too distant future. » Last, but certainly not least, we’re embarking on an exciting new project in partnership with the Institute for Systems Programming at the Russian Academy of Sciences to build the next generation LSB database and test suite infrastructure. The new system will interlink the various moving parts that make up the Linux platform to an unprecedented degree, providing upstream developers and distribution vendors a powerful set of tools for coordinating their work and improving the quality of the platform, as well as giving ISVs a more efficient way to provide feedback to both parties. This is a key tool for enabling the backward compatibility guarantee mentioned earlier, and it will also vastly improve the coverage and quality of the LSB tests, an area where we’ve been criticized in the past (our goal is 75% interface coverage by LSB 4.0). More details here. I’ll drill down on all of these topics and more in the coming months. In the meantime, you can keep up with the latest at the FSG and LSB by visiting the FSG web site or by signing up for the FSG newsletter (sorry, no RSS feed yet, though I’m told we’re working on it). Finally, if you’re interested in participating in the LSB project, join the lsb-discuss mailing list or the IRC channel #lsb on irc.freestandards.org, where the bulk of LSB development happens.

Wouter Verhelst: GR season

It seems to be the season to propose general resolutions. We seem to be having Personally, I've lost count as to how many proposals there are out now, and how many of them got the required amount of seconds and whatnot. Lucky me I'm not the secretary. But know what, since it seems to be trendy to propose GR's these days, I'll add my contribution for today:
-----BEGIN PROPOSAL-----
The DPL, seen as how he's fairly important for our inner workings,
should not choose his job lightly; having a bad DPL might have a
detrimental effect on the project as a whole. Therefore, we must make
sure that we discourage our fellow developers from becoming DPL unless
they mean it. It is, thus, imperative to make the DPL job not a very
nice one.
In that light, the Debian Project resolves that:
When the DPL makes an important decision that will have an effect on the
project as a whole, he is only allowed to do so provided he balances on
his left hand, puts his right big toe in his left ear and has his left
toe point towards the ceiling, types the command with his right hand,
doing all this while poking his nose with his tongue. The help of a yoga
master in training for this procedure is allowed; the help of a yoga
master or anyone else while actually performing the procedure for real
is not allowed.
To prove that the DPL did in fact follow procedure, a video should be
produced by the DPL or any of his relatives which is GPG-signed by at
least the DPL and a second developer who witnessed the proceedings
first-hand.
-----END PROPOSAL-----
A nice side-effect of this is that there will be no more DPL decisions once this resolution passes. That seems to be what people want. (oh, and for all you who take yourselves too seriously: the above is called "satire")

20 September 2006

Simon Richter: Wacky ideas #7: more and better reverse dependencies

The Enhances relationship is currently only seldom used. I think its popularity could be expanded a lot if there was proper boolean algebra in dependency relations, which would allow a package to enhance the combination of two packages; also something on the level of Recommends would be nice ("Complements"?). With this, it should be easy to have a metapackage for German translations, and as soon as that one was installed, all packages containing German translations for any installed packages would be Recommended.

Simon Richter: Wacky ideas #2: splitting Installed-Size by partition

On a lot of systems, the Debian installation is spread over a set of partitions. This makes it pretty difficult for a package manager to determine whether unpacking a package is possible at all, since assuming the worst case would mean that all partitions have to have Installed-Size kilobytes free. However, the set of "sane" partitioning schemes is pretty small, so I think packages could list the amount of space required on the root, usr, var partitions, respectively, and the package manager would just add the numbers up if it found that some of them are on the same partition.

Stefano Zacchiroli: hello world

Hello (ikiwiki), World!\n ikiwiki succeeded where other competitors failed: convincing myself to set up a blog. This is the unavoidable "Hello, world!\n" post. Thanks Joey for this valuable piece of software, I love the subverted wiki concept and I('m starting to) like also the markdown syntax. Still, the experience in setting up the blog has not been painless, here are some rough edges I haven't yet addressed with ikiwiki (IOW dear lazyweb section from now on): Again and nonetheless, kudos to Joey for ikiwiki, it rocks!

19 September 2006

Edd Dumbill: EuroFoo reflections

I got an enormous amount out of the just-finished European FooCamp, with lots of thoughts sparking off and interesting things to consider. Jon Mountjoy proposed a theory to me that Web 2.0 and the enterprise weren't in fact as far apart as a naive observe might imagine. He reckons that mashups, tagging and the like do happen within the enterprise, and in fact are often solving harder problems than found in the wilds of the web. There is a lot in common between Web 2.0 and SOA (even aside from buzzword compliance factors). This is a theme I'd like to follow through. Who are the hackers on the inside of companies, and what stories do they have to tell? Gavin Starks from Global Cool really opened our eyes again to the problem of the environment, and introduced the interesting position that Global Cool are taking. If you want to do anything real right now to avoid catastrophic consequences, it's too late to wait for government initiatives to bear fruit. Private citizens must act too. And that's the aim of Global Cool: educating and lobbying the individual, not the government. I was struck, as were others, by the unfortunate irony that conferences have a big environmental cost in the travel involved, as we sat there among people from many countries. I want to now investigate how XTech could be better in this regard, through carbon offsetting and similar schemes. I guess being in Paris is already a good start, as trains are apparently only 25% as polluting as planes, though this still seems like a lot! Claus Dahl led an interesting and wide-ranging discussion about Second Life as a prototyping space for real life invention. Too many themes there to summarise neatly, but we did have an entertaining side discussion about Second Life's potential environmental impact due to CPU consumption and data centers. One suggestion was that objects and activities could be annotated in-world with their environmental cost. Simon Willison energetically explained OpenID, a decentralized identity system proposed by SixApart and already live in systems such as LiveJournal. It attempts to solve the problem of a username and password pair for every site you visit, without the controversy of centralisation suffered by projects such as Microsoft's passport. Simon demonstrated a proof of concept that I think will be a very neat answer to site providers who ask "why should I support OpenID?" (Sneak preview: because if you don't, it's going to be astonishingly easy for a middleman to provide it, and you wouldn't want that.) I also took time to learn about something I'd been interested in but not known much about, 3D printing and "fabbing". Simon Wardley led a great overview of current systems for 3D printing and their various attributes, and indicated where the current trends were going. It doesn't seem so unrealistic that there'll soon be affordable 3D printing bureaux similar to walk-in reprographic facilities like Kinkos. Plenty more went on that I've not got time to transcribe, but I think will flavour my thinking over the months to come. I was fortunate to be among some incredibly intelligent and welcoming people. My thanks to O'Reilly for putting this on, and to everyone else who went for being inspiring companions. Oh, one more thing. Belgians are excellent at confectionery.

Steve Kemp: Everybody rolls with their fingers crossed

I’ve been using monit on my Debian servers for a long time now. For those that don’t know monit is a simple monitoring service which allows you to check that processes are running, automatically restarting them on failure, etc. When I first started using monit I manually added all the checks to /etc/monit/monitrc - but that soon became unwieldy, even with only three machines to maintain. Adding new software meant I had to keep updating the file, and because each server ran different services things couldn’t be shared. Not good. After I while I figured I’d create /etc/monit/includes and just drop files into there - that way I could include them:
# /etc/monit/monitrc
	
include /etc/monit/include/*.monit
Now to monitor a service I’d just create the appropriate file with a .monit suffix. All was good. Until I needed to start monitoring different services on different systems where adding and removing the files got to be painful. Surely there must be a better way I wondered to myself? Now there is. I’ve come up with a nice approach (perhaps the obvious one to everybody else?): I now have two directories: The master.d can have all your *.monit files dropped into it, regardless of whether they apply to the given host or not. To actually monitor a service you’d symlink master.d/foo.monit to include.d/foo.monit - In much the same way as you use symlinks to handle Apache sites and modules in Apache2.x Now the really clever bit is that you write a (perl) script to automatically parse each .monit file and only link in the ones which apply to this host. That means you can use cfengine to copy everything into the master.d/ file - and not care if some tests only apply to other hots. (e.g. You can crteate apache2.monit - and that will be symlinked in if apache2 is installed on the current host, but ignored otherwise.) For the moment my parsing and detection code is very simple, but it is working. In the future I guess I could create foo.monit and foo.package - then only link in the file foo.monit if the Debian package contained in foo.package was installed. The script is in my cvs repository along with a collection of test files.
I will attempt to catch up on mail tomorrow…

Clint Adams: Draft Debian Code of Business Conduct

The following Code of Business Conduct ('the Code') has not been approved by the Board of Directors of Debian, SPI, or any U.N. committees: Debian and its subsidiary companies operate in many different markets and countries throughout the world. In most instances, we respect national laws and industry codes of conduct. We, the directors and employees of all companies under the Debian umbrella ('corrupt fuckers'), recognize our obligations to all who have a stake in our success including shareowners, clients, employees, and suppliers, unless those obligations run counter to our profitability; Information about our business shall be communicated clearly, and accurately in a non-discriminatory manner and in accordance with local regulations, unless doing so would impact negatively our profitability; We select and promote employees on the basis of their willingness to support our aims and their potential for profitability, without discrimination or concern for race, religion, national origin, creed, sex, sexual orientation, age, disability, or scruples, as long as doing so would improve our profitability; We believe that the Debian mailing lists should be safe and civilized; we will not tolerate sexual harassment, discrimination or offensive behavior of any kind, which includes the persistent demeaning of individuals through words or actions, the display or distribution of offensive material, or the questioning of our integrity, unless such tolerance would improve our profitability; We will not use, possess or distribute illegal drugs or software, unless doing so would improve our profitability; We will treat all information relating to Debian's business, or to its clients, as confidential. In particular, 'insider trading' is expressly prohibited and confidential information must not be used for personal gain, unless such personal gain is acceptable to at least two of the persons involved; We will not knowingly create work which contains statements, suggestions or images offensive to general public decency and will give appropriate consideration to the impact of our work on minority segments of the population, whether that minority be by race, religion, national origin, creed, sex, sexual orientation, age, disability or scruples, unless that minority can be safely ignored without damaging our bottom line; We will not for personal or family gain directly or indirectly engage in any activity which competes with companies within the Debian umbrella or with our obligations to any such company; We will not offer any items of personal inducement to secure business. This is not intended to prohibit appropriate entertainment, the making of occasional gifts of minor value, or any monetary contributions transferred through PayPal, unless the client has a policy which restricts this; No corporate contributions of any kind, including the provision of services or materials for less than the market value, may be made to politicians, political parties or action committees, without the prior written approval of the DPL and a clear assessment of the rate of return on the investment; and we will comply with all applicable local laws and regulations, and any other laws with an international reach, such as the US Foreign Corrupt Practices Act, where relevant; We will disclose fully to the DPL the nature and all relevant details of inducements paid to us by external parties, whether or not such inducements affect our judgments and actions, and we will accord the DPL a percentage of such inducements for use in re-election campaigns or discretionary spending; When we engage in bookmaking, the standard vig should be 10%, and any exceptions should be appealed to the Racketeering Committee, a self-selecting committee with no external oversight; We will not NMU or hijack any packages if the maintainer is refusing to act on said packages as part of a negotiation for inducements; We will not underbid our colleagues in the midst of such negotiations; We will always assume that any inaction or incompetence is due to such negotiations, whether or not that has been disclosed, as it is often the wish of the persons involved to keep such dealings hush-hush; We will spout trite falsehoods such as We are all volunteers here , and At some point you just have to trust people , as a standard business practice; We will avoid sarcasm at all costs.

Russell Coker: siteminder - what you expect from CA

Recently I've been unfortunate enough to be the sys-admin of some systems running CA software, the specific horror in this case is Siteminder.

The latest excitement was when an important machine stopped working abruptly and gave the error "ff ff ff ff" in the Apache error log. I have been familiar with the error message "ff ff ff" which means that the Siteminder policy server can not be contacted. But it took me a while to discover a message in the policy server logs indicating that a client was connecting to it with an invalid shared secret. It seems that the policy server had suddenly changed it's shared secret for no reason I could determine.

A google search for this issue turned up a single blog entry about it, which reports the "ff ff ff ff" error message as appearing in the case where the "ff ff ff" error occurs on the machines I run. Maybe I'm running a newer version, or maybe drax0r wrote the wrong error message by mistake. My colleagues have seen the error message "ff ff", we are still unsure of what that means.

For people who haven't used Siteminder I'll briefly describe how it works. There is a 2MB Apache module (larger than httpd and all the modules shipped in the RHEL package) that implements the access control and content management (compiled with -g, presumably because it will SEGV if compiled with -O2). This module spawns a daemon from Apache. Unfortunately the daemon code drops the root UID but does not drop the root GID (fun for security), I wrote a patch to the runuser program that can be used to address this by changing GID before running Apache. Then all communication between Apache and the policy server goes via the daemon process via sys-v IPC. Of course if the daemon crashes then the IPC resources are not freed and then it won't restart unless the system is rebooted or the semaphores are manually removed.

18 September 2006

Lars Wirzenius: Debian Inquirer: Debian and Diebold join forces

The Debian Project has chosen Diebold as its official preferred electronic voting provider. This move comes at an opportune moment since the project has several votes coming up. "The double D partnership, as we like to call it, is going to change the shape of the Internet", says O. Fiend, the current Master of Voting of Debian. "We got tired of picking up paper ballots from all over the world, especially since flight security no longer allows locked steel containers handcuffed to the courier's wrist. Sea travel is so damn boring." Diebold is the global leader in the electronic voting market segment. They will bring much needed experience and expertese to Debian's proceedings. "Yep, those guys didn't know anything about cheating until we showed up. Wait, I meant voting", adds the Diebold CEO. Not everyone is happy, though. "Their stuff don't run onna m86k, dat's dumb, I wanna run it on my own-a box", claims Steve Vorlovski, one of the Debian Project's more prominent opposition members. "Stupid cabal, I hate them, hate, hate, hate." says another opposition member who prefers that we not reveal his identity, in fear of retaliation, so we'll just call him #808. The project expects to use the Diebold machines as build daemons when a vote is not going on. "The Debian GNU/Windows port is really lacking in build daemons and porter machines right now", admits Lars Wirzenius. "We don't have any, in fact." The Debian Inquirer joins the crowd congratulating Debian on getting this defect fixed.

17 September 2006

Marco d'Itri: Supporting old kernels

(From a debian-devel@ post arguing against support for 2.4 kernels.) The problem with supporting old kernels is not just the need to maintain a few packages like initrd-tools or modutils, but that every important package cannot rely on features of modern kernels: inotify, sysfs, etc. This means that Debian as a whole will either lack support for features relying on these kernel features or will become more and more complex due to compatibility code. Please consider carefully the effects of advocating support for old kernels.

Paul Wise: 16 Sep 2006

[RV Heraclitus SE Asia voyage: blog photos] So, I've been on the ship for a week or so now, learning knots and nautical stuff, cooking, cleaning, making inventories and otherwise preparing for the voyage. So far, we're just sitting in the harbour in Cairns, learning and working until the 24th. It feels weird to be away from the Internet for so long and the communities with whom my main contact has been Internet based; Debian, Perth/Indymedia & Cat@lyst. Kinda like being shipwrecked on an island, cut off from the outside world; no access to communication networks or ability to move around. However, the ship has an SSB (single sideband) radio (as well as VHF), I'm hoping that will satisfy my communications addiction. I've been learning about the SSB radio; if anyone knows of any information about, or free software (gratis and/or libre, preferably Windows based as there is only Windows - and a Mac and a Knoppix CD on board) that can access WEFAX (weatherfax) or the Internet via SSB, please email me about it. argh! damn German keYboards have the Y and the Z in the wrong places!!!

David Nusinow: Rock

Finally, after too long, I can indulge in the glory that is the internet and Debian infighting from the privacy of my own home.

You may have noticed that Drew Parsons has been delivering swift kicks to the junk of the idea that Debian ships old X software. Thanks to his tireless efforts, we've got all the X libs for 7.1 in unstable right now. The server is basically ready to go, and Steve "OMG I GOT A HACKERGOTCHI FINALLY!!!" Langasek is attacking the terrifying task of a mesa update to lay the final bit of groundwork for the server and drivers. We should be able to get the new server and drivers in unstable within a week, at which point the XSF enters the home stretch of cleaning and polishing for the release. There's tons of this that we have to do, but to be honest I'm amazed at how far we've come over the past year or two, and I'm sure that people will be happy with the packages we ship with etch.

For post-etch, there's bigger things (like World Peace) in store, but the whole XSF has worked really hard on this and I believe the effort shows.

16 September 2006

Edd Dumbill: Euro(star FOO OSCON)

Today I'm travelling to Belgium to take my part in the orgy of elitist conspiracy that is O'Reilly's European Foo Camp and open source convention. I've elected to undertake the journey by train.It is difficult to overemphasize how magnificent a thing the Eurostar service is. Were it left to our drab and utilitarian government alone, such a thing would never exist.Instead, in two and a half hours of clean, comfortable carriages and more than tolerable coffee I will be in Brussels, just a short tram ride away from my hotel. With the increasing difficulty and odiousness of air travel, things could hardly be more of a contrast.The price seems to me insanely cheap. My journey to Brussels and back costs under £60, less than my journey down to London from York in the first place.It almost makes you wish for the heady days of the Major government's flirtation with Europe. Life seemed simpler then. (We even had a prime minister who understood cricket, but that's another story.)EuroFOOFoo Camp is an event where O'Reilly Media invite a bunch of people to create an ad-hoc conference. For O'Reilly, it's a great way to take the pulse of earlier-than-thou early adopters and mad inventors, which in turn feeds their business. For the invitees, it's a great way to meet others, put your ideas out there, and get your mind expanded. For those outside the fold, exclusion has taken on an importance far out of proportion to its actual significance, which appears sadly inevitable.Although I was present at the US Foo a few weeks ago, illness meant I missed the bulk of it while recovering in a darkened room. So, I'm looking forward this time to playing a bigger part.One of the themes I'm seeing developing, and for which we intend to focus on at XTech 2007, is that of the increasing connectivity and blurring of distinction between the web and the world. Things to watch include Second Life, Thinglink, mobile, geotagging, ubiquitous computing.I'm also looking forward to hearing the low-down on Railsconf Europe from those who went. Sadly pressure of time meant I couldn't go, but the write-ups I've been seeing make it sound like an excellent event, and a great progression from the Chicago one.

Martin-Éric Racine: Co-Maintainers Wanted

During Debconf5, I voiced the opinion that all Debian packages with a priority Standard or higher, as well as packages with a high Popularity Contest rating and development packages with a priority Optional or Extra that many people rely upon for development work, ought to be team-maintained as a matter of Policy. I justified this by pointing out that Debian's Social Contract puts our users among our key priorities, which implies that keeping the packages that our users value the most in excellent shape ought to be the embodiment of this value, and that the best way of meeting this goal is to enforce a policy of team maintenance and easy NMU for those packages. While my own packages are rather modest contributions to Debian's pool and few of them rate anywhere close to the top in popularity, I honestly feel like practicing what I preach is the best example I could give. Another reason is that several business ideas that I'm working on are monopolizing my time, which means that I'm not as available as I would like to be to participate in Debian. I however see this situation as only temporary, which is why I have not orphaned my packages. Instead, I am soliciting Debian Developers to come as co-maintainers. Interested parties should check my QA page for packages that might interest them and contact me for details. Thanks! PS: in case this wasn't obvious, the whole point of enforcing team maintenance and allowing NMU on non-RC but annoying bugs is to avoid unresponsive lone wolf maintainers who let tons of bug reports pile up on their packages without fixing them or even acknowledging them. Ubuntu avoids this by allowing anyone on their development team to chip in, while Debian still clings on to each maintainer's absolute reign over their packages, which leaves users of neglected packages completely in the dust.

Jonathan McDowell: Fighting YAFFS gives me the giggles

I have been fighting YAFFS on and off for the past week or so. Well, not quite fighting, more trying to persuade to work happily with 2.6.18-rc5 and the updated NAND driver I've written for my balloon (more on that at another time). Anyway. I'm now getting the following error message: yaffs tragedy: existing chunk < 0 in scan Which keeps making me think of the Bee Gees. Or worse, the Steps cover of the Bee Gees. Update: Just for JD, who is too lazy to read the comments, I meant the Bee Gees not ABBA. Which means I'm hearing Steps in my head. Argh.

Next.

Previous.