Skip to content

lxc sig conflicts with the old select func. #23830

Closed

Description

@kiorky

This was exhibited in #23772, most of lxc.init parameters are filetered recently when coming from salt cloud.

Activity

  1. kiorky commented on May 17, 2015

    @kiorky
    ContributorAuthor
  2. kiorky commented on May 17, 2015

    @kiorky
    ContributorAuthor

    im not sure if it is load_args_and_kwargs
    But i come from

    salt.minion:thread_return with such data

    {'__pub_arg': ['foobar85',
                   {'autostart': True,
                    'bootstrap_args': None,
                    'bootstrap_shell': 'sh',
                    'bootstrap_url': None,
                    'clone_from': None,
                    'config': {'master': '10.5.0.2', 'master_port': 4506},
                    'dnsservers': ['8.8.8.8', '4.4.4.4'],
                    'force_install': True,
                    'fstype': None,
                    'lvname': None,
                    'memory': 0,
                    'network_profile': 'ubuntu',
                    'nic_opts': {'eth0': {}},
                    'password': 's3cr3t',
                    'password_encrypted': False,
                    'priv_key': None,
                    'profile': {'backing': 'dir',
                                'options': {'arch': 'amd64',
                                            'release': 'trusty'},
                                'template': 'ubuntu'},
                    'pub_key': None,
                    'seed': True,
                    'size': '20G',
                    'snapshot': False,
                    'unconditional_install': False,
                    'users': [],
                    'vgname': None}],
     '__pub_fun': 'lxc.init',
     '__pub_jid': '20150517154837173161',
     '__pub_ret': '',
     '__pub_tgt': 'xxxet',
     '__pub_tgt_type': 'glob',
     '__pub_user': 'root',
     'autostart': True,
     'bootstrap_args': None,
     'bootstrap_shell': 'sh',
     'bootstrap_url': None,
     'clone_from': None,
     'config': {'master': '10.5.0.2', 'master_port': 4506},
     'dnsservers': ['8.8.8.8', '4.4.4.4'],
     'force_install': True,
     'fstype': None,
     'lvname': None,
     'memory': 0,
     'network_profile': 'ubuntu',
     'nic_opts': {'eth0': {}},
     'password': 's3cr3t',
     'password_encrypted': False,
     'priv_key': None,
     'profile': {'backing': 'dir',
                 'options': {'arch': 'amd64', 'release': 'trusty'},
                 'template': 'ubuntu'},
     'pub_key': None,
     'seed': True,
     'size': '20G',
     'snapshot': False,
     'unconditional_install': False,
     'users': [],
     'vgname': None}
    

    but the minion function (lxc.init) only receives

    {'__pub_arg': ['foobar85',
                   {'autostart': True,
                    'bootstrap_args': None,
                    'bootstrap_shell': 'sh',
                    'bootstrap_url': None,
                    'clone_from': None,
                    'config': {'master': '10.5.0.2', 'master_port': 4506},
                    'dnsservers': ['8.8.8.8', '4.4.4.4'],
                    'force_install': True,
                    'fstype': None,
                    'lvname': None,
                    'memory': 0,
                    'network_profile': 'ubuntu',
                    'nic_opts': {'eth0': {}},
                    'password': 's3cr3t',
                    'password_encrypted': False,
                    'priv_key': None,
                    'profile': {'backing': 'dir',
                                'options': {'arch': 'amd64',
                                            'release': 'trusty'},
                                'template': 'ubuntu'},
                    'pub_key': None,
                    'seed': True,
                    'size': '20G',
                    'snapshot': False,
                    'unconditional_install': False,
                    'users': [],
                    'vgname': None}],
     '__pub_fun': 'lxc.init',
     '__pub_jid': '20150517154837173161',
     '__pub_ret': '',
     '__pub_tgt': 'xxxxt',
     '__pub_tgt_type': 'glob',
     '__pub_user': 'root',
     'clone_from': None,
     'fstype': None,
     'lvname': None,
     'seed': True,
     'size': '20G',
     'snapshot': False,
     'vgname': None}
    
    
  3. changed the title [-]load_args_and_kwargs filters too much[/-] [+][ultra critical] load_args_and_kwargs filters too much[/+] on May 17, 2015
  4. changed the title [-][ultra critical] load_args_and_kwargs filters too much[/-] [+][ultra critical] something filters fun args/kwargs too much[/+] on May 17, 2015
  5. kiorky commented on May 17, 2015

    @kiorky
    ContributorAuthor

    this is definitivly not load_args_and_kwargs but something that arrises between fun(*args, **kwargs) from the minion code down to the first line of the exec mod (lxc.init) function.

    Maybe a recent lazyloader check add ?

    @jacksontj, does it call something to you ?

  6. kiorky commented on May 17, 2015

    @kiorky
    ContributorAuthor

    im going to remove the threading stuff locally to try to do some pdb ....

  7. kiorky commented on May 17, 2015

    @kiorky
    ContributorAuthor

    damn with the tornado stuff, that cant be done.

  8. kiorky commented on May 17, 2015

    @kiorky
    ContributorAuthor

    I was not enougth precise:
    at https://github.com/saltstack/salt/blob/develop/salt/minion.py#L1005
    the kwargs are correct

    but something change them before the start of the lxc.init function.

  9. kiorky commented on May 17, 2015

    @kiorky
    ContributorAuthor

    Damn,,

  10. kiorky commented on May 17, 2015

    @kiorky
    ContributorAuthor

    The problem is that lxc.init sig was changed to receive some named parameters, which are no more then, on kwargs .... sorry for the noise.

  11. changed the title [-][ultra critical] something filters fun args/kwargs too much[/-] [+]lxc sig conflicts with the old select func.[/+] on May 17, 2015
  12. reopened this on May 19, 2015
  13. kiorky commented on May 19, 2015

    @kiorky
    ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions