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

v1.2.0+ Enhancements and Known Bugs #46

Open
PackeTsar opened this issue May 24, 2019 · 7 comments
Open

v1.2.0+ Enhancements and Known Bugs #46

PackeTsar opened this issue May 24, 2019 · 7 comments
Assignees

Comments

@PackeTsar
Copy link
Owner

PackeTsar commented May 24, 2019

Logging enhancement requests and known bugs here. If you have reported a bug or feature request and it is accepted as such, then it will show up here and your original issue will be closed.

@PackeTsar
Copy link
Owner Author

PackeTsar commented May 24, 2019

Enhancements

  • Enhancement 1: Add a global keystore setting to allow injection of variables into all keystores (Global Variables #64)
  • Enhancement 2: Add caching options into ZTP config to avoid need to restart the service after changes (Request // re-cache templates or keystores without 'service restart' #34)
  • Enhancement 3: Add the ztp request lookup feature (Request // Command to query external-keystore; ztp query <keystore_id> #28)
  • Enhancement 4: Add option to ztp request merge-test <keystore_name> (allow-logging) to write the config file out to the log file described by the merged-config-to-custom-file setting
  • Enhancement 5: Add ztp clear provisioning <keystoreid> option to clear the provisioning info for a specific keystore
  • Enhancement 6: Build external script functionality, allowing FreeZTP to kick off an external job after a certain action.

@PackeTsar
Copy link
Owner Author

PackeTsar commented May 24, 2019

Bugs

@PackeTsar
Copy link
Owner Author

From v1.1.0

Enhancement ideas carried from v1.1.0 tracker

  • Slack notifications?
  • Google Sheets integration
  • Easy config backup and restore
  • Add show config <section> commands
  • Push .py script to Cisco IOS to automate configuration?

Repository owner deleted a comment from chuckbales Jul 27, 2019
@PackeTsar
Copy link
Owner Author

PackeTsar commented Jul 27, 2019

Completed

Enhancements and Bugs included in 1.X releases

@PackeTsar PackeTsar self-assigned this Jul 27, 2019
@EarlRamirez
Copy link

@PackeTsar If you need any data regarding #22 issue I have loads of it, I believe you are correct with the concurrent writes. I see this every time I deploy a few hundred switches. Even after deleting the pdb and purging the logs the error still persist. I have also seen where the temporary ID ZTP- is given to the switch hostname. This is very common during large batches of switches, for example, fifty. Now I power on ~20 to try and get past that.

@kbarton1212
Copy link

@PackeTsar @EarlRamirez I am running into this same issue on a Rpi 3b. I am running Raspbian Buster, and I need to manually issue the following commands in order for the ztp service to start and run, because by default after the RPi boots, it shows as failed with (code=exited, status=1/FAILURE):

mv /etc/ztp/pdb /etc/ztp/pdb.bak
ztp service restart

I was messing around with the autostart on the RPi, and pasting those commands in there in an attempt to get it up and running at boot, but no luck. Any chance you've had any luck @EarlRamirez ?

@EarlRamirez
Copy link

@kbarton1212 - what I observed is concurrent writes corrupt the file and deleting/moving the PDB file works. Initially, I would truncate the file, this removes the provisioning and tracking JSON collections, and since the file already exists it will not be created. Therefore deleting/moving is the workaround.

The expert @PackeTsar can shed some light on this, but what I have been working on is to try and have both provisioning and tracking write to MongoDB which should resolve the issue with the ZTP service failing because of PDB being corrupted.

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

3 participants