Skip to content
This repository was archived by the owner on Dec 16, 2024. It is now read-only.

Add linux-kvm builder type - #850

Merged
bors-servo merged 1 commit into
masterfrom
kvm
Jul 10, 2018
Merged

bors-servo merged 1 commit into
masterfrom
kvm

Conversation

@SimonSapin

@SimonSapin SimonSapin commented Jul 8, 2018 •

Copy link
Copy Markdown
Member

CC servo/servo#21124


This change is Reviewable

@SimonSapin

Copy link
Copy Markdown
Member Author

I’m stuck debugging this Travis failure:

          ID: /home/servo/buildbot/slave
    Function: file.recurse
      Result: False
     Comment: An exception occurred in this state: Traceback (most recent call last):
                File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1733, in call
                  **cdata['kwargs'])
                File "/usr/lib/python2.7/dist-packages/salt/loader.py", line 1652, in wrapper
                  return f(*args, **kwargs)
                File "/usr/lib/python2.7/dist-packages/salt/states/file.py", line 2581, in recurse
                  manage_file(dest, src)
                File "/usr/lib/python2.7/dist-packages/salt/states/file.py", line 2458, in manage_file
                  **pass_kwargs)
                File "/usr/lib/python2.7/dist-packages/salt/states/file.py", line 1644, in managed
                  **kwargs
                File "/usr/lib/python2.7/dist-packages/salt/modules/file.py", line 3953, in check_managed_changes
                  **kwargs)
                File "/usr/lib/python2.7/dist-packages/salt/modules/file.py", line 3623, in get_managed
                  **kwargs)
                File "/usr/lib/python2.7/dist-packages/salt/utils/templates.py", line 178, in render_tmpl
                  output = render_str(tmplstr, context, tmplpath)
                File "/usr/lib/python2.7/dist-packages/salt/utils/templates.py", line 386, in render_jinja_tmpl
                  buf=tmplstr)
              SaltRenderError: Jinja variable 'salt.utils.odict.OrderedDict object' has no attribute 'master'

/home/servo/buildbot/slave is presumably from buildbot/slave/init.sls, but master does not appear in that file (except in a comment). Jinja usually supports creating backtraces with template source lines, but that’s not happening here so it’s not clear even in which template the error occurs.

Grepping shows:

% rg '\{\{.*(\.|\[.)master'
salt/master.sls
65:    - name: {{ salt.master.pkg.name }}
66:    - version: {{ salt.master.pkg.version }}
84:        {{ salt.master.config|yaml(False)|indent(8) }}

buildbot/slave/files/config/buildbot.tac
30:buildmaster_host = '{{ pillar["buildbot"]["master"] }}'

… but I don’t know why any of those master keys/attributes would be missing.

@aneeshusa, any idea?

@SimonSapin
SimonSapin force-pushed the kvm branch 3 times, most recently from c2152aa to 7f9c210 Compare July 9, 2018 12:13
@jdm

jdm commented Jul 9, 2018

Copy link
Copy Markdown
Member

That is coming from this line of the info.tac jinja template.

@jdm

jdm commented Jul 9, 2018

Copy link
Copy Markdown
Member

this file needs to be modified in order to make the right pillars apply to the new node.

@SimonSapin

Copy link
Copy Markdown
Member Author

Aaaaaah, bitten again by ripgrep ignoring "hidden" files.

@SimonSapin

Copy link
Copy Markdown
Member Author

And it’s green! r? @jdm

@jdm

jdm commented Jul 10, 2018

Copy link
Copy Markdown
Member

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 208a7ee has been approved by jdm

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 208a7ee with merge 181a9a3...

bors-servo pushed a commit that referenced this pull request Jul 10, 2018
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - status-travis
Approved by: jdm
Pushing 181a9a3 to master...

@bors-servo
bors-servo merged commit 208a7ee into master Jul 10, 2018
This was referenced Jul 10, 2018
@SimonSapin
SimonSapin deleted the kvm branch July 10, 2018 16:25
@SimonSapin

Copy link
Copy Markdown
Member Author

The parts colored red when deploying this were:

          ID: /home/servo/buildbot/slave
    Function: file.recurse
      Result: False
     Comment: Recurse failed: none of the specified sources were found
     Started: 16:35:57.850025
    Duration: 2075.02 ms
     Changes:   
          ID: buildbot-slave
    Function: service.running
      Result: False
     Comment: One or more requisite failed: buildbot.slave./home/servo/buildbot/slave
     Started: 
    Duration: 
     Changes:   

@jdm

jdm commented Jul 10, 2018

Copy link
Copy Markdown
Member

That's #794. I recommend clearing the fileserver cache and highstating the new build machine directly afterwards.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants