Code Monkey home page Code Monkey logo

Comments (3)

Akilesh1597 avatar Akilesh1597 commented on August 23, 2024

I need some more information to tell exactly why this is happenning. First
what is the salt id of your machines on which you are trying to install.
The reason why I ask this is There is a 'top.sls' file in the pillar roots.
That maps salt id to their pillar file. The pillar file are the ones where
all the dictionary items have been defined. So i would say your pillar
dictionary is not updated because it is not pointed to the correct pillar
file.

On Sun, Dec 22, 2013 at 2:33 AM, gstaicu [email protected] wrote:

Hello,

Really nice work. Thank you.
I am trying to test the automatically deployment of openstack using salt
but I receive an error:
On one of the minion:
root@hawk:~# salt-call state.highstate -l debug
the message is:
local:
Data failed to compile:

Traceback (most recent call last):

File "/usr/lib/pymodules/python2.7/salt/state.py", line 2349, in
call_highstate
top = self.get_top()
File "/usr/lib/pymodules/python2.7/salt/state.py", line 1926, in get_top
tops = self.get_tops()
File "/usr/lib/pymodules/python2.7/salt/state.py", line 1809, in get_tops
env=env
File "/usr/lib/pymodules/python2.7/salt/template.py", line 69, in
compile_template
ret = render(input_data, env, sls, **render_kwargs)
File "/usr/lib/pymodules/python2.7/salt/renderers/jinja.py", line 42, in
render
tmp_data.get('data', 'Unknown render error in jinja renderer')
SaltRenderError: Jinja variable 'dict object' has no attribute 'install';

line 2

havana:
{% for cluster_component in pillar['install'] %} <======================
{% for server in pillar[cluster_component] %}
{{ server }}:
{% for sls in pillar['install'][cluster_component] %}

  • {{ sls }}
    {% endfor %}
    [...]

On the salt-master I configured:
file_roots:
base:

  • /srv/salt/
    havana:
  • /srv/havana/file
    pillar_roots:
    base:
  • /srv/pillar
    havana:
  • /srv/havana/pillar

The project I put in /srv/havana

Thanks a lot,
Gabriel


Reply to this email directly or view it on GitHubhttps://github.com//issues/1
.

from openstack-automation.

Akilesh1597 avatar Akilesh1597 commented on August 23, 2024

Sorry for delay. I need some more information to tell exactly why this is happening. First what is the salt id of your machines on which you are trying to install. The reason why I ask this is There is a 'top.sls' file in the pillar roots. That maps salt id to their pillar file. The pillar file are the ones where all the dictionary items have been defined. So i would say your pillar dictionary is not updated because it is not pointed to the correct pillar file.

from openstack-automation.

Akilesh1597 avatar Akilesh1597 commented on August 23, 2024

Please use the latest formulas

from openstack-automation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.