You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using runtime init with a 1nic GCP managed instance group is causing errors with project ID lookup. I find that if I use pre-onboard to increase restajavad memory then I have issues.
2022-04-07T23:00:33.080Z [19883]: info: Resolving parameters
2022-04-07T23:00:47.202Z [19883]: error: Error getting project id Unable to detect a Project Id in the current environment.
To learn more about authentication and Google APIs, visit:
https://cloud.google.com/docs/authentication/getting-started
Workaround
I inspected the GDM v2 bigip templates and noticed that the restjavad settings are configured much earlier in the bash script. I did the same, and now my autoscale example works each time.
# Optional optimizations required as early as possible in boot sequence before MCDP starts up.
# JeffGiroux - If placed into runtime init pre-onboard,
# you receive error "Error getting project
# ID Unable to detect a Project Id in the
# current environment"
echo "Provisioning extra restjavad memory"
/usr/bin/setdb provision.extramb 1024
/usr/bin/setdb restjavad.useextramb true
Troubleshooting
I set an admin password early during onboarding so when runtime init failed, I can login via ssh still and tshoot. I found that I was able to manually run the script /config/cloud/run_runtime_init.sh via CLI on the BIG-IP and it went through successfully. I figured this had to be a timing issue with 1nic and lack of nic swap maybe? Not sure. My other terraform GCP examples are all 3nic, so there is a nic swap involved. I don't see how moving restjavad memory outside of pre-onboard...essentially at top of bash script...helps resolve.
@shyawnkarim The documentation is confusing. There are examples where the extramb is set in the preonboard phase, and some where it is set earlier (as in this Git). Could the documentation/examples be aligned on what is the proper solution to run (or at least a notice in the documentation, if it's a cloud-specific issue)?
Using runtime init with a 1nic GCP managed instance group is causing errors with project ID lookup. I find that if I use pre-onboard to increase restajavad memory then I have issues.
error...
Workaround
I inspected the GDM v2 bigip templates and noticed that the restjavad settings are configured much earlier in the bash script. I did the same, and now my autoscale example works each time.
Troubleshooting
I set an admin password early during onboarding so when runtime init failed, I can login via ssh still and tshoot. I found that I was able to manually run the script /config/cloud/run_runtime_init.sh via CLI on the BIG-IP and it went through successfully. I figured this had to be a timing issue with 1nic and lack of nic swap maybe? Not sure. My other terraform GCP examples are all 3nic, so there is a nic swap involved. I don't see how moving restjavad memory outside of pre-onboard...essentially at top of bash script...helps resolve.
successful logs with workaround...
The text was updated successfully, but these errors were encountered: