You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
P2Priority 2RIoTRelates to integration with cloud providers, hypervisors, API-based services, etc.Salt-Cloudbugbroken, incorrect, or confusing behaviorseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around
I just installed salt cloud on a AWS node and I have it deploying other ec2 instances, unfortunately
python-jinja and possible other rpms are not installing. Even though the package comes from salt the keys that sign the package do not match the published key.
Versions of salt cloud, salt cloud errors, yum errors in the gists below:
@gwaters, thanks for the report. Do you have epel installed on the system, or at least the epel repo key? What command(s) did you run to produce the pasted output? How did you configure repo-saltstack-el7 on the system?
@jfindlay Yes, I have epel installed, and I believe I have the key installed. Both the epel repo and and the repo-saltstack-el7 came from the salt-cloud ec2 install.
I created this output via "salt-cloud -p $ec2-profile-name $instance-name". During the installation of the salt-minions of that ec2 is when the python-jinja2 error occurs. Note: this is the automatic portion of the install.
@gwaters, I have recently created a CentOS 7 VM on EC2 (ami-61bbf104) and was successfully able to bootstrap it with the latest develop version of the script.
@jfindlay
thanks works for me too! So that leads to this question:
Does salt-cloud -u not pull from that bootstrap file source?
The difference is the source for python-jinja2 at deploy time. when deploying directly from salt cloud the repo source is repo-saltstack-el7, but if you do it with the salt-ssh ( or in my case local root) the source for the rpm is my rhel7-repo.
@gwaters, thanks for your extra investigatory work. salt-cloud -u should update to the latest develop version from the salt-bootstrap github repo. The location for this updated script seems to be /etc/salt/cloud.deploy.d/bootstrap-salt.sh. Your point about the repo source of the package I think is the important issue here. The repos available from repo.saltstack.com should contain enough deps to bypass the need for epel, so should be relatively sufficient in the absence thereof. When I test the packages I ensure that epel is in fact not installed, so I am unsure how to reconcile this with your experience.
@jfindlay How come when I diff the curl'd file vs the one that salt-cloud -u has, there tons of differences? (/etc/salt/cloud.deploy.d/bootstrap-salt.sh)
(btw I just did a salt-cloud -u)
@jfindlay HA! if i copy that curl'd shell script, and replace /etc/salt/cloud.deploy.d/bootstrap-salt.sh, it works fine!
So whatever mechanism the salt team is using to promote and export the bootstrap script for salt-cloud to pick isnt working.
@jfindlay As I see from the code (2015.8), salt-cloud -u indeed downloads the stable version, not develop.
salt/utils/cloud.py:
2621defupdate_bootstrap(config, url=None):
2622'''2623 Update the salt-bootstrap script2624 2625 url can be either:2626 2627 - The URL to fetch the bootstrap script from2628 - The absolute path to the bootstrap2629 - The content of the bootstrap script2630 2631 2632 '''2633default_url=config.get('bootstrap_script_url',
2634'https://bootstrap.saltstack.com')
2635ifnoturl:
2636url=default_url
@gwaters Another "official" way to get the develop script is running such command on your host with salt-cloud installed:
Yes, we should probably not allow users to upgrade to the develop version of bootstrap unless they know what they're doing and are interested in bootstrap development.
@cro When are you guys going to update the stable version of the Bootstrap script ?
For me its fixed, but I just dont want other people like me to have the same issue if we can just promote and test the new bootstrap script.
P2Priority 2RIoTRelates to integration with cloud providers, hypervisors, API-based services, etc.Salt-Cloudbugbroken, incorrect, or confusing behaviorseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around
Activity
jfindlay commentedon Feb 16, 2016
@gwaters, thanks for the report. Do you have epel installed on the system, or at least the epel repo key? What command(s) did you run to produce the pasted output? How did you configure
repo-saltstack-el7on the system?gwaters commentedon Feb 16, 2016
@jfindlay Yes, I have epel installed, and I believe I have the key installed. Both the epel repo and and the repo-saltstack-el7 came from the salt-cloud ec2 install.
I created this output via "salt-cloud -p $ec2-profile-name $instance-name". During the installation of the salt-minions of that ec2 is when the python-jinja2 error occurs. Note: this is the automatic portion of the install.
I have tried a salt-cloud -u, then re-running the install, same effect.
I have even tried to run this manually and it will fail.
https://gist.github.com/gwaters/bba76adefdc41bbdf6b0
gwaters commentedon Feb 16, 2016
Added the yum repo files to the bottom of that gist.
jfindlay commentedon Feb 16, 2016
@gwaters, I have recently created a CentOS 7 VM on EC2 (ami-61bbf104) and was successfully able to bootstrap it with the latest develop version of the script.
gwaters commentedon Feb 17, 2016
@jfindlay
thanks works for me too! So that leads to this question:
Does salt-cloud -u not pull from that bootstrap file source?
The difference is the source for python-jinja2 at deploy time. when deploying directly from salt cloud the repo source is repo-saltstack-el7, but if you do it with the salt-ssh ( or in my case local root) the source for the rpm is my rhel7-repo.
jfindlay commentedon Feb 17, 2016
@gwaters, thanks for your extra investigatory work.
salt-cloud -ushould update to the latest develop version from the salt-bootstrap github repo. The location for this updated script seems to be/etc/salt/cloud.deploy.d/bootstrap-salt.sh. Your point about the repo source of the package I think is the important issue here. The repos available from repo.saltstack.com should contain enough deps to bypass the need for epel, so should be relatively sufficient in the absence thereof. When I test the packages I ensure that epel is in fact not installed, so I am unsure how to reconcile this with your experience.gwaters commentedon Feb 18, 2016
@jfindlay How come when I diff the curl'd file vs the one that salt-cloud -u has, there tons of differences? (/etc/salt/cloud.deploy.d/bootstrap-salt.sh)
(btw I just did a salt-cloud -u)
gwaters commentedon Feb 18, 2016
@jfindlay HA! if i copy that curl'd shell script, and replace /etc/salt/cloud.deploy.d/bootstrap-salt.sh, it works fine!
So whatever mechanism the salt team is using to promote and export the bootstrap script for salt-cloud to pick isnt working.
vutny commentedon Feb 23, 2016
I guess that
salt-cloud -ucommand updates thebootstrap-salt.shfrom stable branch, and it is very outdated for the moment.vutny commentedon Feb 26, 2016
@jfindlay As I see from the code (2015.8),
salt-cloud -uindeed downloads thestableversion, notdevelop.salt/utils/cloud.py:
@gwaters Another "official" way to get the
developscript is running such command on your host withsalt-cloudinstalled:salt-call config.gather_bootstrap_script 'https://bootstrap.saltstack.com/develop/bootstrap-salt.sh'I think the docs need to be updated.
jfindlay commentedon Feb 26, 2016
Yes, we should probably not allow users to upgrade to the develop version of bootstrap unless they know what they're doing and are interested in bootstrap development.
cro commentedon Feb 29, 2016
@gwaters Do you consider this resolved? We'll close it if you do.
gwaters commentedon Feb 29, 2016
@cro When are you guys going to update the stable version of the Bootstrap script ?
For me its fixed, but I just dont want other people like me to have the same issue if we can just promote and test the new bootstrap script.
vutny commentedon Mar 1, 2016
@gwaters I guess there is still work-in-progress to "stabilize" the bootstrap script. For now I think this issue could be closed.
vutny commentedon Mar 9, 2016
Ping @cro. Multiple issues have been opened in https://github.com/saltstack/salt-bootstrap/issues/ against "stable" bootstrap script. I believe more technical discussions should be continued there and this issue could be safely closed. Thanks.
cro commentedon Mar 9, 2016
Thanks @vutny , followup is much appreciated.