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

salt execution module junos.install_os with reboot=True fails #115

Open
rsmekala opened this issue Apr 25, 2019 · 1 comment
Open

salt execution module junos.install_os with reboot=True fails #115

rsmekala opened this issue Apr 25, 2019 · 1 comment

Comments

@rsmekala
Copy link

rsmekala commented Apr 25, 2019

Description of Issue/Question

root@nms5-salt-master-b:~# salt "vmx1" junos.install_os salt://junos-install-mx-x86-64-19.3I-20190409_dev_common.0.2212.tgz no_copy=False reboot=True
[WARNING ] /usr/local/lib/python2.7/site-packages/salt/payload.py:149: DeprecationWarning: encoding is deprecated, Use raw=False instead.
  ret = msgpack.loads(msg, use_list=True, ext_hook=ext_type_decoder, encoding=encoding)

vmx1:
    ----------


        Installation failed due to: "PCDATA invalid Char value 7, line 106, column 33 (line 106)"
    out:
        False

@rsmekala rsmekala self-assigned this Apr 25, 2019
@rsmekala rsmekala changed the title salt execution module junos.install_os with dev_timout fails with Installation failed due to: "pkgadd() got multiple values for keyword argument 'dev_timeout'" salt execution module junos.install_os with reboot=True fails Apr 25, 2019
@rsmekala
Copy link
Author

The offending line is here:

conn.sw.install(path, progress=True, **op)

Currently, when the reboot parameter is passed to salt it is also passed down to PyEZ sw.install(). PyEZ treats this argument as an additional keyword argument to the pkg_add RPC call, causing the device to perform a reboot

RPC fired onto device:

<request-package-add>
    <no-validate/>
     <re0/>
     <package-name>
          /var/tmp/__salt.tmp.SN00Sm
     </package-name>
     <reboot/>
</request-package-add>

This is an unexpected reboot for sw.install(), hence the above error is seen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant