Kcr19 / mender_gcp_ota_demo

Demo scripts for a GCP+Mender demo.
Apache License 2.0
0 stars 1 forks source link

artifact fetch not working #19

Open ptone opened 5 years ago

ptone commented 5 years ago

https://gist.github.com/ptone/bd140ed3dfce498d4e40e38a056043fa

Is there another host we need to send in mender.conf ?

Is there something we can change in the way the artifact is getting built?

ptone commented 5 years ago

origin seems to be here: https://github.com/Kcr19/mender_gcp_ota_demo/blob/mender-gcp/server/prod.yml#L114

If this is not set - will the client simply use the conf provided serverUrl setting?

ptone commented 5 years ago

The attempt to set the hosts file I did in the activation script allowed the artifact to be pulled, but it still failed to complete the update: https://gist.github.com/ptone/8ed98dea7da6c2f978f2d0d165619379

Kcr19 commented 5 years ago

i was able to reproduce the same error in the artifact deployment step. Looking through the /etc/hosts files there is an entry for 35.232.93.249 gcs.mender.gcpotademo.com which is basically the mender storage proxy and none for mender.gcpotademo.com for API gateway which should be present. Last time we had the issue and had the deployment working was adding the host entry during the build process part of the environment variables. Host entries need to get into the artifact either during build or modifying post build manually. Not sure if this can be handled via activation script if not can we go back to adding the host entries during the build?