Page MenuHomePhabricator

Create a Jessie image with diskimage-builder suitable for nodepool
Closed, ResolvedPublic

Description

We would need nodepool to craft specific images to boot instances from. First pass with Debian Jessie.

The minimum viable product is an image that boots on labs and that nodepool can ssh into to finish it is setup and thus flag it as READY.

Event Timeline

hashar raised the priority of this task from to Needs Triage.
hashar updated the task description. (Show Details)
hashar subscribed.
2015-06-17 22:14:52,744 DEBUG paramiko.transport: userauth is OK
2015-06-17 22:14:52,887 INFO paramiko.transport: Authentication (publickey) successful!

Progress!

Then nodepool bails out when asserting whether /etc/nodepool exists (it does not in the image):

2015-06-17 22:14:52,941 ERROR nodepool.NodeLauncher: Exception launching node id: 10 in provider: wmflabs-eqiad error:
Exception: Unable to test for config dir
command: ls /etc/nodepool

Thus the diskimage need a dummy /etc/nodepool which is writable by nodepoolmanager user.

hashar triaged this task as High priority.
hashar set Security to None.
hashar moved this task from Backlog to In-progress on the Continuous-Integration-Scaling board.

I had an instance created for Jessie using diskimage-builder. It even booted in labs!

Now I have to puppetize it the magic recipe.

hashar lowered the priority of this task from High to Medium.Jun 24 2015, 11:26 AM

The bulk of the disk image config is in nodepool.yaml puppetized at https://gerrit.wikimedia.org/r/#/c/201728/16/modules/nodepool/templates/nodepool.yaml.erb,unified + some follow up changes.

Bulk of the work is completed and merged in operations/puppet.git.