Further investigation shows a problem of /usr/bin/gcemetadata
from repo https://github.com/SUSE-Enceladus/gcemetadata
The call of meta.get_flattended_opts()
doesn't return a opt `--identity'.
See:
gce-ipa-test-fkscg:/home/susetest # /usr/bin/gcemetadata --query instance --identity http://smt-gce.susecloud.net --identity-format full --xml
[('--query', 'instance'), ('--identity', 'http://smt-gce.susecloud.net'), ('--identity-format', 'full'), ('--xml', '')]
compared to:
cfconrad-vm-18a8631147f68801:/home/susetest # /usr/bin/gcemetadata --query instance --identity http://smt-gce.susecloud.net --identity-format full --xml
[('--query', 'instance'), ('--identity-format', 'http://smt-gce.susecloud.net'), ('--identity-format', 'full'), ('--xml', '')]
This problem happens only, if we instantiate the VM with terraform. With IPA or google-console this failure doesn't appear.