Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grains defined within salt-cloud map file are not propagated to a newly bootstrapped LXC minion #31294

Closed
abulkavs opened this issue Feb 17, 2016 · 6 comments
Labels
Bug broken, incorrect, or confusing behavior P2 Priority 2 RIoT Relates to integration with cloud providers, hypervisors, API-based services, etc. Salt-Cloud severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around stale
Milestone

Comments

@abulkavs
Copy link

My assumption is that happens because LXC provider uses a separate builtin bootstrap function in comparison to other cloud providers.

The following map file doesn't work:

<lxc profile>:
  - <node name>
      grains:
        <grain_1>: <value>
        ...
        <grain_N>: <value>
@jfindlay jfindlay added the info-needed waiting for more info label Feb 18, 2016
@jfindlay jfindlay added this to the Blocked milestone Feb 18, 2016
@jfindlay
Copy link
Contributor

@abulkavs, thanks for reporting. What version of salt are you using?

@abulkavs
Copy link
Author

2015.8.1 (Beryllium)

@jfindlay jfindlay modified the milestones: Approved, Blocked Feb 19, 2016
@jfindlay jfindlay added Bug broken, incorrect, or confusing behavior severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around Salt-Cloud RIoT Relates to integration with cloud providers, hypervisors, API-based services, etc. P2 Priority 2 and removed info-needed waiting for more info labels Feb 19, 2016
@smakar-vs
Copy link

the same 😢

Salt Version:
           Salt: 2015.8.8.2

Dependency Versions:
         Jinja2: 2.7.2
       M2Crypto: 0.21.1
           Mako: Not Installed
         PyYAML: 3.11
          PyZMQ: 14.7.0
         Python: 2.7.5 (default, Nov 20 2015, 02:00:19)
           RAET: Not Installed
        Tornado: 4.2.1
            ZMQ: 4.0.5
           cffi: Not Installed
       cherrypy: 3.2.2
       dateutil: Not Installed
          gitdb: 0.5.4
      gitpython: 0.3.2 RC1
          ioflo: Not Installed
        libgit2: Not Installed
        libnacl: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.4.7
   mysql-python: Not Installed
      pycparser: Not Installed
       pycrypto: 2.6.1
         pygit2: Not Installed
   python-gnupg: Not Installed
          smmap: 0.9.0
        timelib: Not Installed

System Versions:
           dist: centos 7.2.1511 Core
        machine: x86_64
        release: 3.10.0-327.18.2.el7.x86_64
         system: CentOS Linux 7.2.1511 Core

@abulkavs
Copy link
Author

abulkavs commented Jun 22, 2016

I tired to wait for proper fix so I've done quick one. You can find it in attachments. It could be used as a hint for a real one.

lxc.grains.hotfix.txt

Please, have someone review modules.lxc.cloud_init_interface function, since it cuts off many other useful parameters, might be passed within map files, not only grains.

Ideally, it would be better to revise architecture, since it's only lxc cloud provider has such side-effect and all others work more or less in uniform way despite a lot of duplication code across cloud provider implementations what soon or later will make them to diverge anyway.

@jfindlay
Copy link
Contributor

Thanks, @abulkavs. Ping @techhat.

@stale
Copy link

stale bot commented May 25, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

@stale stale bot added the stale label May 25, 2018
@stale stale bot closed this as completed Jun 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior P2 Priority 2 RIoT Relates to integration with cloud providers, hypervisors, API-based services, etc. Salt-Cloud severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around stale
Projects
None yet
Development

No branches or pull requests

3 participants