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

Unable to install Salt native minion on vQFX: malformed package #44

Open
ggiesen opened this issue Jun 2, 2021 · 2 comments
Open

Unable to install Salt native minion on vQFX: malformed package #44

ggiesen opened this issue Jun 2, 2021 · 2 comments

Comments

@ggiesen
Copy link

ggiesen commented Jun 2, 2021

Salt has recently open-sourced their Junos native minion (https://saltstack.gitlab.io/open/docs/salt-install-guide/topics/install/native/juniper.html) but it does not install on vQFX10k running 20.2R1.10:

root@vqfx-re> request system software add /var/tmp/salt-junos-x86-64-20201026-235317.tgz                      
malformed package: /var/tmp/salt-junos-x86-64-20201026-235317.tgz

{master:0}
root@vqfx-re> show log messages | match mgd 
Jun  2 18:26:35  vqfx-re mgd[3217]: /usr/libexec/ui/package -X update /var/tmp/salt-junos-x86-64-20201026-235317.tgz
Jun  2 18:26:40  vqfx-re mgd[3217]: UI_CHILD_EXITED: Child exited: PID 4404, status 9, command '/usr/libexec/ui/package'

For comparison, it runs just fine on an MX204 running 18.3R1.9:

root@mx204# run request system software add /var/tmp/salt-junos-x86-64-20201026-235317.tgz 
Verified salt-junos-x86-64-20201026-235317 signed by saltstack-packaging-commercial-1 method RSA2048+SHA1
Backing up salt-junos to /config/SaltBackup/salt-junos.tgz
Removing old /var/db/scripts/commit/salt.slax
Copying /packages/mnt/salt-junos/var/db/scripts/commit/salt.slax to /var/db/scripts/commit/salt.slax
Removing old /var/db/scripts/op/salt_dualrengine.slax
Copying /packages/mnt/salt-junos/var/db/scripts/op/salt_dualrengine.slax to /var/db/scripts/op/salt_dualrengine.slax
Removing old /var/db/scripts/event/salt_event.py
Copying /packages/mnt/salt-junos/var/db/scripts/event/salt_event.py to /var/db/scripts/event/salt_event.py
Removing old /var/db/scripts/event/salt_log.slax
Copying /packages/mnt/salt-junos/var/db/scripts/event/salt_log.slax to /var/db/scripts/event/salt_log.slax
root@mx204> edit
Entering configuration mode

[edit]
root@mx204# set system scripts op file salt_dualrengine.slax

[edit]
root@mx204# commit
commit complete

[edit]
root@mx204# exit
Exiting configuration mode

root@mx204>
root@mx204> edit
Entering configuration mode

[edit]
root@mx204# set system login user saltstack uid 2001

[edit]
root@mx204# set system login user saltstack class super-user

[edit]
root@mx204# set system login user saltstack authentication encrypted-password "salt@123"

[edit]
root@mx204# set system scripts commit file salt.slax

[edit]
root@mx204# set system scripts language python

[edit]
root@mx204# set event-options generate-event E1 time-interval 60

[edit]
root@mx204# set event-options policy SALT_POLICY events E1

[edit]
root@mx204# set event-options policy SALT_POLICY then event-script salt_event.py

[edit]
root@mx204# set event-options event-script file salt_event.py python-script-user saltstack

[edit]
root@mx204# deactivate event-options policy SALT_POLICY

[edit]
root@mx204# set event-options policy SALT_LOG_POLICY events SALT_LOG_ROTATE

[edit]
root@mx204# set event-options policy SALT_LOG_POLICY then event-script salt_log.slax

[edit]
root@mx204# set event-options event-script file salt_log.slax

[edit]
root@mx204# set event-options generate-event SALT_LOG_ROTATE time-interval 180

[edit]
root@mx204# commit
commit complete
@ggiesen ggiesen changed the title Unable to install Salt native minion vQFX Unable to install Salt native minion on vQFX Jun 2, 2021
@ggiesen ggiesen changed the title Unable to install Salt native minion on vQFX Unable to install Salt native minion on vQFX: malformed package Jun 2, 2021
@dmurphy18
Copy link

FYI the code was developed / tested / released with the use of a QFX 5120 running v18.4. Also it was additionally tested by Juniper too as part of a co-development.

@ggiesen
Copy link
Author

ggiesen commented Jun 2, 2021

Also tested on vQFX running 18.4R2-S2.3 and had the same issue

@ggiesen ggiesen closed this as completed Jun 2, 2021
@ggiesen ggiesen reopened this Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants