Skip to contentSkip to conversation

overriding the chef task

DISCUSSION Loic Dachary 1 participant 1 message Jul 5, 2015

lore
Share & tools
lore
#0 lore raw

Hi Zack,

I tried to override the chef task which is added by teuthology/teuthology/suite.py with a chef.yaml file

tasks:
- chef:
script_url: https://raw.githubusercontent.com/dachary/ceph-qa-chef/wip-6502-openstack/solo/solo-from-scratch
chef_repo: https://github.com/dachary/ceph-qa-chef.git
chef_branch: wip-6502-openstack

which translates into (according the teuthology-suite)

...
roles:
- - mon.a
- osd.0
sha1: 02b75beaee03f26b73afdc100b5243a966f59d94
stop_worker: true
suite: noop
suite_branch: master
suite_path: /home/ubuntu/src/ceph-qa-suite_master tasks:
- chef: null
- clock.check: null
- chef:

      branch: wip-6502-openstack
      repo: https://github.com/dachary/ceph-qa-chef.git
      script_url: https://raw.githubusercontent.com/dachary/ceph-qa-chef/wip-6502-openstack/solo/solo-from-scratch

- exec:
mon.a:
- echo "Well done !"
teuthology_branch: master

...

and the first one, with chef: null seems to win the competition because I get

2015-07-04 10:49:20,620.620 INFO:teuthology.orchestra.run.entercloudsuite000075:Running: "wget -O- 'http://git.ceph.com/?p=ceph-qa-chef.git;a=blob_plain;f=solo/solo-from-scratch;hb=HEAD' | CHEF_REPO= CHEF_BRANCH\

= sh -x"

I don't see a generic task override mechanism nor do I see the chef.py task handling overrides. What am I missing ?

Cheers

P.S. I keep in mind the ansible task is coming but I've seen a pull request fixing things in this area yesterday, which is why I try to stick to chef which is known to work. I have enough things to figure out and I'm a little conservative right now ;-)

Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre