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
Bootstrapping of vmx 18.2 isn't working #183
Comments
Perhaps related:
|
After a fresh start, there seems to be something built in in vmx that does a factory reset after "a while" using the "button".
adding a "time.sleep(15)" in the beginning of bootstrap_config helps:
|
I don't think that commit fixed this issue completely. The auto image upgrade gets started on boot when it can't find the saved config and adds some special autoimage config. When this happens before we run
I've solved it by making the config session exclusive, like this:
happy to do a pull request if everyone's happy with this |
looks like it was just a false positive when i thought that workaround actually worked. this auto image upgrade thing will kick you out even if you're in exclusive session. In fact there are many other ways it can fail the bootstrap. So the only solution that is more or less stable for me is this
It adds 10 extra seconds to build time (who cares when it's 15 mins anyway), but like any timer-based solution can still fail. The benefit is that if build phases passes, you're guaranteed that all subsequent runs of that images will be successful. |
@networkop can you elaborate on the solution (second/last one) you suggested? What does that mgd command do? Feel free to open PR. I just want a better explanation so I understand what is going on here (the next maintainer needs to understand) and I've never seen this initialsetup-commit stuff before. I agree 10 seconds is nothing for long build time (it's more like 5 minutes for me though). Can't we write a for loop and make sure it's configured the way we want it? You think config-drive for run-time only or for build or both? |
Based on my understanding, that mgd command is what triggers the auto-image-upgrade mode on vMX. it can be found in For loop can be a better solution, however, sleep is a) simpler and b) does the job in all 100% of my cases, but ultimately it may be a more robust solution. I think config-drive for run-time since we don't really need to do much during build/install phases. I'm assuming that config-drive will prevent So in my view, solutions to this problem in order of preference are:
|
Thats funny how 2yr later I still hit the very same issue =) Thanks @networkop, your witchery with ADD: unfortunately that workaround seems to have its problems.
|
unfortunately this workaround doesn't work all the time. |
I'm working with vmx-bundle-18.2R1.9.tgz
The reason it isn't working seems to be related to the bootstrapping of the config.
I have tried adding "set system services ssh root-login allow" to the bootstrapping but I'm not quite there yet.
The text was updated successfully, but these errors were encountered: